D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
home
/
shubmkcj
/
designpitara.com
/
dash
/
assets
/
js
/
Filename :
app.js
back
Copy
!function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=327)}([function(t,e){function i(t,e){"createCanvas"===t&&(J=null),Z[t]=e}function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=j.call(t);if("[object Array]"===i){if(!H(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=n(t[r])}}else if(B[i]){if(!H(t)){var o=t.constructor;if(t.constructor.from)e=o.from(t);else{e=new o(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=n(t[r])}}}else if(!W[i]&&!H(t)&&!D(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=n(t[s]))}return e}function r(t,e,i){if(!M(e)||!M(t))return i?n(e):t;for(var a in e)if(e.hasOwnProperty(a)){var o=t[a],s=e[a];!M(s)||!M(o)||b(s)||b(o)||D(s)||D(o)||S(s)||S(o)||H(s)||H(o)?!i&&a in t||(t[a]=n(e[a],!0)):r(o,s,i)}return t}function a(t,e){for(var i=t[0],n=1,a=t.length;n<a;n++)i=r(i,t[n],e);return i}function o(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function s(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function l(){return J||(J=K().getContext("2d")),J}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function h(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var r in n)t.prototype[r]=n[r];t.prototype.constructor=t,t.superClass=e}function c(t,e,i){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,s(t,e,i)}function d(t){if(t)return"string"!=typeof t&&"number"==typeof t.length}function p(t,e,i){if(t&&e)if(t.forEach&&t.forEach===$)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function f(t,e,i){if(t&&e){if(t.map&&t.map===q)return t.map(e,i);for(var n=[],r=0,a=t.length;r<a;r++)n.push(e.call(i,t[r],r,t));return n}}function g(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===X)return t.reduce(e,i,n);for(var r=0,a=t.length;r<a;r++)i=e.call(n,i,t[r],r,t);return i}}function m(t,e,i){if(t&&e){if(t.filter&&t.filter===G)return t.filter(e,i);for(var n=[],r=0,a=t.length;r<a;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function v(t,e,i){if(t&&e)for(var n=0,r=t.length;n<r;n++)if(e.call(i,t[n],n,t))return t[n]}function y(t,e){var i=U.call(arguments,2);return function(){return t.apply(e,i.concat(U.call(arguments)))}}function _(t){var e=U.call(arguments,1);return function(){return t.apply(this,e.concat(U.call(arguments)))}}function b(t){return"[object Array]"===j.call(t)}function x(t){return"function"==typeof t}function w(t){return"[object String]"===j.call(t)}function M(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function S(t){return!!W[j.call(t)]}function k(t){return!!B[j.call(t)]}function D(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function T(t){return t!==t}function L(t){for(var e=0,i=arguments.length;e<i;e++)if(null!=arguments[e])return arguments[e]}function C(t,e){return null!=t?t:e}function I(t,e,i){return null!=t?t:null!=e?e:i}function A(){return Function.call.apply(U,arguments)}function P(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function E(t,e){if(!t)throw new Error(e)}function O(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function R(t){t[Q]=!0}function H(t){return t[Q]}function z(t){function e(t,e){i?n.set(t,e):n.set(e,t)}var i=b(t),n=this;t instanceof z?t.each(e):t&&p(t,e)}function Y(t){return new z(t)}function N(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];var r=t.length;for(n=0;n<e.length;n++)i[n+r]=e[n];return i}function F(){}var W={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},B={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},j=Object.prototype.toString,V=Array.prototype,$=V.forEach,G=V.filter,U=V.slice,q=V.map,X=V.reduce,Z={},K=function(){return Z.createCanvas()};Z.createCanvas=function(){return document.createElement("canvas")};var J,Q="__ec_primitive__";z.prototype={constructor:z,get:function(t){return this.hasOwnProperty(t)?this[t]:null},set:function(t,e){return this[t]=e},each:function(t,e){void 0!==e&&(t=y(t,e));for(var i in this)this.hasOwnProperty(i)&&t(this[i],i)},removeKey:function(t){delete this[t]}},e.$override=i,e.clone=n,e.merge=r,e.mergeAll=a,e.extend=o,e.defaults=s,e.createCanvas=K,e.getContext=l,e.indexOf=u,e.inherits=h,e.mixin=c,e.isArrayLike=d,e.each=p,e.map=f,e.reduce=g,e.filter=m,e.find=v,e.bind=y,e.curry=_,e.isArray=b,e.isFunction=x,e.isString=w,e.isObject=M,e.isBuiltInObject=S,e.isTypedArray=k,e.isDom=D,e.eqNaN=T,e.retrieve=L,e.retrieve2=C,e.retrieve3=I,e.slice=A,e.normalizeCssArray=P,e.assert=E,e.trim=O,e.setAsPrimitive=R,e.isPrimitive=H,e.createHashMap=Y,e.concatArray=N,e.noop=F},function(t,e,i){(function(t){!function(e,i){t.exports=i()}(this,function(){"use strict";function e(){return Cn.apply(null,arguments)}function n(t){Cn=t}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function s(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var i in e)c(e,i)&&(t[i]=e[i]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,i,n){return De(t,e,i,n,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(t){return null==t._pf&&(t._pf=f()),t._pf}function m(t){if(null==t._isValid){var e=g(t),i=In.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function v(t){var e=p(NaN);return null!=t?d(g(e),t):g(e).userInvalidated=!0,e}function y(t,e){var i,n,r;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=g(e)),s(e._locale)||(t._locale=e._locale),An.length>0)for(i=0;i<An.length;i++)n=An[i],r=e[n],s(r)||(t[n]=r);return t}function _(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Pn===!1&&(Pn=!0,e.updateOffset(this),Pn=!1)}function b(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function x(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function w(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=x(e)),i}function M(t,e,i){var n,r=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(n=0;n<r;n++)(i&&t[n]!==e[n]||!i&&w(t[n])!==w(e[n]))&&o++;return o+a}function S(t){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,i){var n=!0;return d(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),n){for(var r,a=[],o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){r+="\n["+o+"] ";for(var s in arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[o];a.push(r)}S(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return i.apply(this,arguments)},i)}function D(t,i){null!=e.deprecationHandler&&e.deprecationHandler(t,i),En[t]||(S(i),En[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function L(t){var e,i;for(i in t)e=t[i],T(e)?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(t,e){var i,n=d({},t);for(i in e)c(e,i)&&(a(t[i])&&a(e[i])?(n[i]={},d(n[i],t[i]),d(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)c(t,i)&&!c(e,i)&&a(t[i])&&(n[i]=d({},n[i]));return n}function I(t){null!=t&&this.set(t)}function A(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return T(n)?n.call(e,i):n}function P(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function E(){return this._invalidDate}function O(t){return this._ordinal.replace("%d",t)}function R(t,e,i,n){var r=this._relativeTime[i];return T(r)?r(t,e,i,n):r.replace(/%d/i,t)}function H(t,e){var i=this._relativeTime[t>0?"future":"past"];return T(i)?i(e):i.replace(/%s/i,e)}function z(t,e){var i=t.toLowerCase();Wn[i]=Wn[i+"s"]=Wn[e]=t}function Y(t){return"string"==typeof t?Wn[t]||Wn[t.toLowerCase()]:void 0}function N(t){var e,i,n={};for(i in t)c(t,i)&&(e=Y(i),e&&(n[e]=t[i]));return n}function F(t,e){Bn[t]=e}function W(t){var e=[];for(var i in t)e.push({unit:i,priority:Bn[i]});return e.sort(function(t,e){return t.priority-e.priority}),e}function B(t,e,i){var n=""+Math.abs(t),r=e-n.length,a=t>=0;return(a?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}function j(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(Gn[t]=r),e&&(Gn[e[0]]=function(){return B(r.apply(this,arguments),e[1],e[2])}),i&&(Gn[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function V(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function $(t){var e,i,n=t.match(jn);for(e=0,i=n.length;e<i;e++)Gn[n[e]]?n[e]=Gn[n[e]]:n[e]=V(n[e]);return function(e){var r,a="";for(r=0;r<i;r++)a+=T(n[r])?n[r].call(e,t):n[r];return a}}function G(t,e){return t.isValid()?(e=U(e,t.localeData()),$n[e]=$n[e]||$(e),$n[e](t)):t.localeData().invalidDate()}function U(t,e){function i(t){return e.longDateFormat(t)||t}var n=5;for(Vn.lastIndex=0;n>=0&&Vn.test(t);)t=t.replace(Vn,i),Vn.lastIndex=0,n-=1;return t}function q(t,e,i){hr[t]=T(e)?e:function(t,n){return t&&i?i:e}}function X(t,e){return c(hr,t)?hr[t](e._strict,e._locale):new RegExp(Z(t))}function Z(t){return K(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,r){return e||i||n||r}))}function K(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function J(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),l(e)&&(n=function(t,i){i[e]=w(t)}),i=0;i<t.length;i++)cr[t[i]]=n}function Q(t,e){J(t,function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)})}function tt(t,e,i){null!=e&&c(cr,t)&&cr[t](e,i._a,i,t)}function et(t){return it(t)?366:365}function it(t){return t%4===0&&t%100!==0||t%400===0}function nt(){return it(this.year())}function rt(t,i){return function(n){return null!=n?(ot(this,t,n),e.updateOffset(this,i),this):at(this,t)}}function at(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function ot(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&it(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),ht(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function st(t){return t=Y(t),T(this[t])?this[t]():this}function lt(t,e){if("object"==typeof t){t=N(t);for(var i=W(t),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit])}else if(t=Y(t),T(this[t]))return this[t](e);return this}function ut(t,e){return(t%e+e)%e}function ht(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=ut(e,12);return t+=(e-i)/12,1===i?it(t)?29:28:31-i%7%2}function ct(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Mr).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone}function dt(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Mr.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pt(t,e,i){var n,r,a,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=p([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===e?(r=xr.call(this._shortMonthsParse,o),r!==-1?r:null):(r=xr.call(this._longMonthsParse,o),r!==-1?r:null):"MMM"===e?(r=xr.call(this._shortMonthsParse,o),r!==-1?r:(r=xr.call(this._longMonthsParse,o),r!==-1?r:null)):(r=xr.call(this._longMonthsParse,o),r!==-1?r:(r=xr.call(this._shortMonthsParse,o),r!==-1?r:null))}function ft(t,e,i){var n,r,a;if(this._monthsParseExact)return pt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=p([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(a.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}}function gt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=w(e);else if(e=t.localeData().monthsParse(e),!l(e))return t;return i=Math.min(t.date(),ht(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function mt(t){return null!=t?(gt(this,t),e.updateOffset(this,!0),this):at(this,"Month")}function vt(){return ht(this.year(),this.month())}function yt(t){return this._monthsParseExact?(c(this,"_monthsRegex")||bt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Dr),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function _t(t){return this._monthsParseExact?(c(this,"_monthsRegex")||bt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Tr),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function bt(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],a=[];for(e=0;e<12;e++)i=p([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),a.push(this.months(i,"")),a.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),a.sort(t),e=0;e<12;e++)n[e]=K(n[e]),r[e]=K(r[e]);for(e=0;e<24;e++)a[e]=K(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function xt(t,e,i,n,r,a,o){var s=new Date(t,e,i,n,r,a,o);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function wt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Mt(t,e,i){var n=7+e-i,r=(7+wt(t,0,n).getUTCDay()-e)%7;return-r+n-1}function St(t,e,i,n,r){var a,o,s=(7+i-n)%7,l=Mt(t,n,r),u=1+7*(e-1)+s+l;return u<=0?(a=t-1,o=et(a)+u):u>et(t)?(a=t+1,o=u-et(t)):(a=t,o=u),{year:a,dayOfYear:o}}function kt(t,e,i){var n,r,a=Mt(t.year(),e,i),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?(r=t.year()-1,n=o+Dt(r,e,i)):o>Dt(t.year(),e,i)?(n=o-Dt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=o),{week:n,year:r}}function Dt(t,e,i){var n=Mt(t,e,i),r=Mt(t+1,e,i);return(et(t)-n+r)/7}function Tt(t){return kt(t,this._week.dow,this._week.doy).week}function Lt(){return this._week.dow}function Ct(){return this._week.doy}function It(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function At(t){var e=kt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Pt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Et(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ot(t,e){return t?r(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Rt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ht(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function zt(t,e,i){var n,r,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===e?(r=xr.call(this._weekdaysParse,o),r!==-1?r:null):"ddd"===e?(r=xr.call(this._shortWeekdaysParse,o),r!==-1?r:null):(r=xr.call(this._minWeekdaysParse,o),r!==-1?r:null):"dddd"===e?(r=xr.call(this._weekdaysParse,o),r!==-1?r:(r=xr.call(this._shortWeekdaysParse,o),r!==-1?r:(r=xr.call(this._minWeekdaysParse,o),r!==-1?r:null))):"ddd"===e?(r=xr.call(this._shortWeekdaysParse,o),r!==-1?r:(r=xr.call(this._weekdaysParse,o),r!==-1?r:(r=xr.call(this._minWeekdaysParse,o),r!==-1?r:null))):(r=xr.call(this._minWeekdaysParse,o),r!==-1?r:(r=xr.call(this._weekdaysParse,o),r!==-1?r:(r=xr.call(this._shortWeekdaysParse,o),r!==-1?r:null)))}function Yt(t,e,i){var n,r,a;if(this._weekdaysParseExact)return zt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=p([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pt(t,this.localeData()),this.add(t-e,"d")):e}function Ft(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Wt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Et(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Bt(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Pr),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function jt(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Er),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Vt(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Or),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $t(){function t(t,e){return e.length-t.length}var e,i,n,r,a,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)i=p([2e3,1]).day(e),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),a=this.weekdays(i,""),o.push(n),s.push(r),l.push(a),u.push(n),u.push(r),u.push(a);for(o.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=K(s[e]),l[e]=K(l[e]),u[e]=K(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Gt(){return this.hours()%12||12}function Ut(){return this.hours()||24}function qt(t,e){j(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Xt(t,e){return e._meridiemParse}function Zt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Kt(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"}function Jt(t){return t?t.toLowerCase().replace("_","-"):t}function Qt(t){for(var e,i,n,r,a=0;a<t.length;){for(r=Jt(t[a]).split("-"),e=r.length,i=Jt(t[a+1]),i=i?i.split("-"):null;e>0;){if(n=te(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&M(r,i,!0)>=e-1)break;e--}a++}return Rr}function te(e){var n=null;if(!Nr[e]&&"undefined"!=typeof t&&t&&t.exports)try{n=Rr._abbr;i(385)("./"+e),ee(n)}catch(r){}return Nr[e]}function ee(t,e){var i;return t&&(i=s(e)?re(t):ie(t,e),i?Rr=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Rr._abbr}function ie(t,e){if(null!==e){var i,n=Yr;if(e.abbr=t,null!=Nr[t])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Nr[t]._config;else if(null!=e.parentLocale)if(null!=Nr[e.parentLocale])n=Nr[e.parentLocale]._config;else{if(i=te(e.parentLocale),null==i)return Fr[e.parentLocale]||(Fr[e.parentLocale]=[]),Fr[e.parentLocale].push({name:t,config:e}),null;n=i._config}return Nr[t]=new I(C(n,e)),Fr[t]&&Fr[t].forEach(function(t){ie(t.name,t.config)}),ee(t),Nr[t]}return delete Nr[t],null}function ne(t,e){if(null!=e){var i,n,r=Yr;n=te(t),null!=n&&(r=n._config),e=C(r,e),i=new I(e),i.parentLocale=Nr[t],Nr[t]=i,ee(t)}else null!=Nr[t]&&(null!=Nr[t].parentLocale?Nr[t]=Nr[t].parentLocale:null!=Nr[t]&&delete Nr[t]);return Nr[t]}function re(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Rr;if(!r(t)){if(e=te(t))return e;t=[t]}return Qt(t)}function ae(){return On(Nr)}function oe(t){var e,i=t._a;return i&&g(t).overflow===-2&&(e=i[pr]<0||i[pr]>11?pr:i[fr]<1||i[fr]>ht(i[dr],i[pr])?fr:i[gr]<0||i[gr]>24||24===i[gr]&&(0!==i[mr]||0!==i[vr]||0!==i[yr])?gr:i[mr]<0||i[mr]>59?mr:i[vr]<0||i[vr]>59?vr:i[yr]<0||i[yr]>999?yr:-1,g(t)._overflowDayOfYear&&(e<dr||e>fr)&&(e=fr),g(t)._overflowWeeks&&e===-1&&(e=_r),g(t)._overflowWeekday&&e===-1&&(e=br),g(t).overflow=e),t}function se(t,e,i){return null!=t?t:null!=e?e:i}function le(t){var i=new Date(e.now());return t._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function ue(t){var e,i,n,r,a,o=[];if(!t._d){for(n=le(t),t._w&&null==t._a[fr]&&null==t._a[pr]&&he(t),null!=t._dayOfYear&&(a=se(t._a[dr],n[dr]),(t._dayOfYear>et(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),i=wt(a,0,t._dayOfYear),t._a[pr]=i.getUTCMonth(),t._a[fr]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=n[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[gr]&&0===t._a[mr]&&0===t._a[vr]&&0===t._a[yr]&&(t._nextDay=!0,t._a[gr]=0),t._d=(t._useUTC?wt:xt).apply(null,o),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[gr]=24),t._w&&"undefined"!=typeof t._w.d&&t._w.d!==r&&(g(t).weekdayMismatch=!0)}}function he(t){var e,i,n,r,a,o,s,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)a=1,o=4,i=se(e.GG,t._a[dr],kt(Te(),1,4).year),n=se(e.W,1),r=se(e.E,1),(r<1||r>7)&&(l=!0);else{a=t._locale._week.dow,o=t._locale._week.doy;var u=kt(Te(),a,o);i=se(e.gg,t._a[dr],u.year),n=se(e.w,u.week),null!=e.d?(r=e.d,(r<0||r>6)&&(l=!0)):null!=e.e?(r=e.e+a,(e.e<0||e.e>6)&&(l=!0)):r=a}n<1||n>Dt(i,a,o)?g(t)._overflowWeeks=!0:null!=l?g(t)._overflowWeekday=!0:(s=St(i,n,r,a,o),t._a[dr]=s.year,t._dayOfYear=s.dayOfYear)}function ce(t){var e,i,n,r,a,o,s=t._i,l=Wr.exec(s)||Br.exec(s);if(l){for(g(t).iso=!0,e=0,i=Vr.length;e<i;e++)if(Vr[e][1].exec(l[1])){r=Vr[e][0],n=Vr[e][2]!==!1;break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=$r.length;e<i;e++)if($r[e][1].exec(l[3])){a=(l[2]||" ")+$r[e][0];break}if(null==a)return void(t._isValid=!1)}if(!n&&null!=a)return void(t._isValid=!1);if(l[4]){if(!jr.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=r+(a||"")+(o||""),_e(t)}else t._isValid=!1}function de(t,e,i,n,r,a){var o=[pe(t),kr.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return a&&o.push(parseInt(a,10)),o}function pe(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function fe(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ge(t,e,i){if(t){var n=Ir.indexOf(t),r=new Date(e[0],e[1],e[2]).getDay();if(n!==r)return g(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function me(t,e,i){if(t)return qr[t];if(e)return 0;var n=parseInt(i,10),r=n%100,a=(n-r)/100;return 60*a+r}function ve(t){var e=Ur.exec(fe(t._i));if(e){var i=de(e[4],e[3],e[2],e[5],e[6],e[7]);if(!ge(e[1],i,t))return;t._a=i,t._tzm=me(e[8],e[9],e[10]),t._d=wt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function ye(t){var i=Gr.exec(t._i);return null!==i?void(t._d=new Date((+i[1]))):(ce(t),void(t._isValid===!1&&(delete t._isValid,ve(t),t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t)))))}function _e(t){if(t._f===e.ISO_8601)return void ce(t);if(t._f===e.RFC_2822)return void ve(t);t._a=[],g(t).empty=!0;var i,n,r,a,o,s=""+t._i,l=s.length,u=0;for(r=U(t._f,t._locale).match(jn)||[],i=0;i<r.length;i++)a=r[i],n=(s.match(X(a,t))||[])[0],n&&(o=s.substr(0,s.indexOf(n)),o.length>0&&g(t).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),u+=n.length),Gn[a]?(n?g(t).empty=!1:g(t).unusedTokens.push(a),tt(a,n,t)):t._strict&&!n&&g(t).unusedTokens.push(a);g(t).charsLeftOver=l-u,s.length>0&&g(t).unusedInput.push(s),t._a[gr]<=12&&g(t).bigHour===!0&&t._a[gr]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[gr]=be(t._locale,t._a[gr],t._meridiem),ue(t),oe(t)}function be(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?(n=t.isPM(i),n&&e<12&&(e+=12),n||12!==e||(e=0),e):e}function xe(t){var e,i,n,r,a;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)a=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],_e(e),m(e)&&(a+=g(e).charsLeftOver,a+=10*g(e).unusedTokens.length,g(e).score=a,(null==n||a<n)&&(n=a,i=e));d(t,i||e)}function we(t){if(!t._d){var e=N(t._i);t._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ue(t)}}function Me(t){var e=new _(oe(Se(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Se(t){var e=t._i,i=t._f;return t._locale=t._locale||re(t._l),null===e||void 0===i&&""===e?v({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),b(e)?new _(oe(e)):(u(e)?t._d=e:r(i)?xe(t):i?_e(t):ke(t),m(t)||(t._d=null),t))}function ke(t){var i=t._i;s(i)?t._d=new Date(e.now()):u(i)?t._d=new Date(i.valueOf()):"string"==typeof i?ye(t):r(i)?(t._a=h(i.slice(0),function(t){return parseInt(t,10)}),ue(t)):a(i)?we(t):l(i)?t._d=new Date(i):e.createFromInputFallback(t)}function De(t,e,i,n,s){var l={};return i!==!0&&i!==!1||(n=i,i=void 0),(a(t)&&o(t)||r(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=i,l._i=t,l._f=e,l._strict=n,Me(l)}function Te(t,e,i,n){return De(t,e,i,n,!1)}function Le(t,e){var i,n;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}function Ce(){var t=[].slice.call(arguments,0);return Le("isBefore",t)}function Ie(){var t=[].slice.call(arguments,0);return Le("isAfter",t)}function Ae(t){for(var e in t)if(xr.call(Jr,e)===-1||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<Jr.length;++n)if(t[Jr[n]]){if(i)return!1;parseFloat(t[Jr[n]])!==w(t[Jr[n]])&&(i=!0)}return!0}function Pe(){return this._isValid}function Ee(){return Je(NaN)}function Oe(t){var e=N(t),i=e.year||0,n=e.quarter||0,r=e.month||0,a=e.week||0,o=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,h=e.millisecond||0;this._isValid=Ae(e),this._milliseconds=+h+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+r+3*n+12*i,this._data={},this._locale=re(),this._bubble()}function Re(t){return t instanceof Oe}function He(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function ze(t,e){j(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+B(~~(t/60),2)+e+B(~~t%60,2)})}function Ye(t,e){var i=(e||"").match(t);if(null===i)return null;var n=i[i.length-1]||[],r=(n+"").match(Qr)||["-",0,0],a=+(60*r[1])+w(r[2]);return 0===a?0:"+"===r[0]?a:-a}function Ne(t,i){var n,r;return i._isUTC?(n=i.clone(),r=(b(t)||u(t)?t.valueOf():Te(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),e.updateOffset(n,!1),n):Te(t).local()}function Fe(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function We(t,i,n){var r,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(t=Ye(sr,t),null===t)return this}else Math.abs(t)<16&&!n&&(t=60*t);return!this._isUTC&&i&&(r=Fe(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==t&&(!i||this._changeInProgress?ni(this,Je(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Fe(this)}function Be(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function je(t){return this.utcOffset(0,t)}function Ve(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Fe(this),"m")),this}function $e(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ye(or,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ge(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60===0)}function Ue(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qe(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),t=Se(t),t._a){var e=t._isUTC?p(t._a):Te(t._a);this._isDSTShifted=this.isValid()&&M(t._a,e.toArray())>0; }else this._isDSTShifted=!1;return this._isDSTShifted}function Xe(){return!!this.isValid()&&!this._isUTC}function Ze(){return!!this.isValid()&&this._isUTC}function Ke(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Je(t,e){var i,n,r,a=t,o=null;return Re(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:l(t)?(a={},e?a[e]=t:a.milliseconds=t):(o=ta.exec(t))?(i="-"===o[1]?-1:1,a={y:0,d:w(o[fr])*i,h:w(o[gr])*i,m:w(o[mr])*i,s:w(o[vr])*i,ms:w(He(1e3*o[yr]))*i}):(o=ea.exec(t))?(i="-"===o[1]?-1:("+"===o[1],1),a={y:Qe(o[2],i),M:Qe(o[3],i),w:Qe(o[4],i),d:Qe(o[5],i),h:Qe(o[6],i),m:Qe(o[7],i),s:Qe(o[8],i)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=ei(Te(a.from),Te(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),n=new Oe(a),Re(t)&&c(t,"_locale")&&(n._locale=t._locale),n}function Qe(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function ti(t,e){var i={milliseconds:0,months:0};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function ei(t,e){var i;return t.isValid()&&e.isValid()?(e=Ne(e,t),t.isBefore(e)?i=ti(t,e):(i=ti(e,t),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ii(t,e){return function(i,n){var r,a;return null===n||isNaN(+n)||(D(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=i,i=n,n=a),i="string"==typeof i?+i:i,r=Je(i,n),ni(this,r,t),this}}function ni(t,i,n,r){var a=i._milliseconds,o=He(i._days),s=He(i._months);t.isValid()&&(r=null==r||r,s&>(t,at(t,"Month")+s*n),o&&ot(t,"Date",at(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),r&&e.updateOffset(t,o||s))}function ri(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ai(t,i){var n=t||Te(),r=Ne(n,this).startOf("day"),a=e.calendarFormat(this,r)||"sameElse",o=i&&(T(i[a])?i[a].call(this,n):i[a]);return this.format(o||this.localeData().calendar(a,this,Te(n)))}function oi(){return new _(this)}function si(t,e){var i=b(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&(e=Y(s(e)?"millisecond":e),"millisecond"===e?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())}function li(t,e){var i=b(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&(e=Y(s(e)?"millisecond":e),"millisecond"===e?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())}function ui(t,e,i,n){return n=n||"()",("("===n[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(e,i):!this.isAfter(e,i))}function hi(t,e){var i,n=b(t)?t:Te(t);return!(!this.isValid()||!n.isValid())&&(e=Y(e||"millisecond"),"millisecond"===e?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))}function ci(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function di(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function pi(t,e,i){var n,r,a;if(!this.isValid())return NaN;if(n=Ne(t,this),!n.isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=Y(e)){case"year":a=fi(this,n)/12;break;case"month":a=fi(this,n);break;case"quarter":a=fi(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-r)/864e5;break;case"week":a=(this-n-r)/6048e5;break;default:a=this-n}return i?a:x(a)}function fi(t,e){var i,n,r=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(r,"months");return e-a<0?(i=t.clone().add(r-1,"months"),n=(e-a)/(a-i)):(i=t.clone().add(r+1,"months"),n=(e-a)/(i-a)),-(r+n)||0}function gi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mi(t){if(!this.isValid())return null;var e=t!==!0,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?G(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(i,"Z")):G(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function vi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=e+'[")]';return this.format(i+n+r+a)}function yi(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=G(this,t);return this.localeData().postformat(i)}function _i(t,e){return this.isValid()&&(b(t)&&t.isValid()||Te(t).isValid())?Je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function bi(t){return this.from(Te(),t)}function xi(t,e){return this.isValid()&&(b(t)&&t.isValid()||Te(t).isValid())?Je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function wi(t){return this.to(Te(),t)}function Mi(t){var e;return void 0===t?this._locale._abbr:(e=re(t),null!=e&&(this._locale=e),this)}function Si(){return this._locale}function ki(t){switch(t=Y(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function Di(t){return t=Y(t),void 0===t||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function Ti(){return this._d.valueOf()-6e4*(this._offset||0)}function Li(){return Math.floor(this.valueOf()/1e3)}function Ci(){return new Date(this.valueOf())}function Ii(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Ai(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Pi(){return this.isValid()?this.toISOString():null}function Ei(){return m(this)}function Oi(){return d({},g(this))}function Ri(){return g(this).overflow}function Hi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function zi(t,e){j(0,[t,t.length],0,e)}function Yi(t){return Bi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ni(t){return Bi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Fi(){return Dt(this.year(),1,4)}function Wi(){var t=this.localeData()._week;return Dt(this.year(),t.dow,t.doy)}function Bi(t,e,i,n,r){var a;return null==t?kt(this,n,r).year:(a=Dt(t,n,r),e>a&&(e=a),ji.call(this,t,e,i,n,r))}function ji(t,e,i,n,r){var a=St(t,e,i,n,r),o=wt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Vi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function $i(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Gi(t,e){e[yr]=w(1e3*("0."+t))}function Ui(){return this._isUTC?"UTC":""}function qi(){return this._isUTC?"Coordinated Universal Time":""}function Xi(t){return Te(1e3*t)}function Zi(){return Te.apply(null,arguments).parseZone()}function Ki(t){return t}function Ji(t,e,i,n){var r=re(),a=p().set(n,e);return r[i](a,t)}function Qi(t,e,i){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ji(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Ji(t,n,i,"month");return r}function tn(t,e,i,n){"boolean"==typeof t?(l(e)&&(i=e,e=void 0),e=e||""):(e=t,i=e,t=!1,l(e)&&(i=e,e=void 0),e=e||"");var r=re(),a=t?r._week.dow:0;if(null!=i)return Ji(e,(i+a)%7,n,"day");var o,s=[];for(o=0;o<7;o++)s[o]=Ji(e,(o+a)%7,n,"day");return s}function en(t,e){return Qi(t,e,"months")}function nn(t,e){return Qi(t,e,"monthsShort")}function rn(t,e,i){return tn(t,e,i,"weekdays")}function an(t,e,i){return tn(t,e,i,"weekdaysShort")}function on(t,e,i){return tn(t,e,i,"weekdaysMin")}function sn(){var t=this._data;return this._milliseconds=da(this._milliseconds),this._days=da(this._days),this._months=da(this._months),t.milliseconds=da(t.milliseconds),t.seconds=da(t.seconds),t.minutes=da(t.minutes),t.hours=da(t.hours),t.months=da(t.months),t.years=da(t.years),this}function ln(t,e,i,n){var r=Je(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function un(t,e){return ln(this,t,e,1)}function hn(t,e){return ln(this,t,e,-1)}function cn(t){return t<0?Math.floor(t):Math.ceil(t)}function dn(){var t,e,i,n,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*cn(fn(s)+o),o=0,s=0),l.milliseconds=a%1e3,t=x(a/1e3),l.seconds=t%60,e=x(t/60),l.minutes=e%60,i=x(e/60),l.hours=i%24,o+=x(i/24),r=x(pn(o)),s+=r,o-=cn(fn(r)),n=x(s/12),s%=12,l.days=o,l.months=s,l.years=n,this}function pn(t){return 4800*t/146097}function fn(t){return 146097*t/4800}function gn(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if(t=Y(t),"month"===t||"year"===t)return e=this._days+n/864e5,i=this._months+pn(e),"month"===t?i:i/12;switch(e=this._days+Math.round(fn(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}}function mn(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function vn(t){return function(){return this.as(t)}}function yn(){return Je(this)}function _n(t){return t=Y(t),this.isValid()?this[t+"s"]():NaN}function bn(t){return function(){return this.isValid()?this._data[t]:NaN}}function xn(){return x(this.days()/7)}function wn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}function Mn(t,e,i){var n=Je(t).abs(),r=La(n.as("s")),a=La(n.as("m")),o=La(n.as("h")),s=La(n.as("d")),l=La(n.as("M")),u=La(n.as("y")),h=r<=Ca.ss&&["s",r]||r<Ca.s&&["ss",r]||a<=1&&["m"]||a<Ca.m&&["mm",a]||o<=1&&["h"]||o<Ca.h&&["hh",o]||s<=1&&["d"]||s<Ca.d&&["dd",s]||l<=1&&["M"]||l<Ca.M&&["MM",l]||u<=1&&["y"]||["yy",u];return h[2]=e,h[3]=+t>0,h[4]=i,wn.apply(null,h)}function Sn(t){return void 0===t?La:"function"==typeof t&&(La=t,!0)}function kn(t,e){return void 0!==Ca[t]&&(void 0===e?Ca[t]:(Ca[t]=e,"s"===t&&(Ca.ss=e-1),!0))}function Dn(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=Mn(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)}function Tn(t){return(t>0)-(t<0)||+t}function Ln(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n=Ia(this._milliseconds)/1e3,r=Ia(this._days),a=Ia(this._months);t=x(n/60),e=x(t/60),n%=60,t%=60,i=x(a/12),a%=12;var o=i,s=a,l=r,u=e,h=t,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var p=d<0?"-":"",f=Tn(this._months)!==Tn(d)?"-":"",g=Tn(this._days)!==Tn(d)?"-":"",m=Tn(this._milliseconds)!==Tn(d)?"-":"";return p+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(l?g+l+"D":"")+(u||h||c?"T":"")+(u?m+u+"H":"")+(h?m+h+"M":"")+(c?m+c+"S":"")}var Cn,In;In=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var An=e.momentProperties=[],Pn=!1,En={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var On;On=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)c(t,e)&&i.push(e);return i};var Rn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Hn={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},zn="Invalid date",Yn="%d",Nn=/\d{1,2}/,Fn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},Wn={},Bn={},jn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Vn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$n={},Gn={},Un=/\d/,qn=/\d\d/,Xn=/\d{3}/,Zn=/\d{4}/,Kn=/[+-]?\d{6}/,Jn=/\d\d?/,Qn=/\d\d\d\d?/,tr=/\d\d\d\d\d\d?/,er=/\d{1,3}/,ir=/\d{1,4}/,nr=/[+-]?\d{1,6}/,rr=/\d+/,ar=/[+-]?\d+/,or=/Z|[+-]\d\d:?\d\d/gi,sr=/Z|[+-]\d\d(?::?\d\d)?/gi,lr=/[+-]?\d+(\.\d{1,3})?/,ur=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,hr={},cr={},dr=0,pr=1,fr=2,gr=3,mr=4,vr=5,yr=6,_r=7,br=8;j("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),z("year","y"),F("year",1),q("Y",ar),q("YY",Jn,qn),q("YYYY",ir,Zn),q("YYYYY",nr,Kn),q("YYYYYY",nr,Kn),J(["YYYYY","YYYYYY"],dr),J("YYYY",function(t,i){i[dr]=2===t.length?e.parseTwoDigitYear(t):w(t)}),J("YY",function(t,i){i[dr]=e.parseTwoDigitYear(t)}),J("Y",function(t,e){e[dr]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return w(t)+(w(t)>68?1900:2e3)};var xr,wr=rt("FullYear",!0);xr=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),j("MMMM",0,0,function(t){return this.localeData().months(this,t)}),z("month","M"),F("month",8),q("M",Jn),q("MM",Jn,qn),q("MMM",function(t,e){return e.monthsShortRegex(t)}),q("MMMM",function(t,e){return e.monthsRegex(t)}),J(["M","MM"],function(t,e){e[pr]=w(t)-1}),J(["MMM","MMMM"],function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[pr]=r:g(i).invalidMonth=t});var Mr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Sr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),kr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Dr=ur,Tr=ur;j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),F("week",5),F("isoWeek",5),q("w",Jn),q("ww",Jn,qn),q("W",Jn),q("WW",Jn,qn),Q(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=w(t)});var Lr={dow:0,doy:6};j("d",0,"do","day"),j("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),j("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),j("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),q("d",Jn),q("e",Jn),q("E",Jn),q("dd",function(t,e){return e.weekdaysMinRegex(t)}),q("ddd",function(t,e){return e.weekdaysShortRegex(t)}),q("dddd",function(t,e){return e.weekdaysRegex(t)}),Q(["dd","ddd","dddd"],function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:g(i).invalidWeekday=t}),Q(["d","e","E"],function(t,e,i,n){e[n]=w(t)});var Cr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ir="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ar="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pr=ur,Er=ur,Or=ur;j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Gt),j("k",["kk",2],0,Ut),j("hmm",0,0,function(){return""+Gt.apply(this)+B(this.minutes(),2)}),j("hmmss",0,0,function(){return""+Gt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),qt("a",!0),qt("A",!1),z("hour","h"),F("hour",13),q("a",Xt),q("A",Xt),q("H",Jn),q("h",Jn),q("k",Jn),q("HH",Jn,qn),q("hh",Jn,qn),q("kk",Jn,qn),q("hmm",Qn),q("hmmss",tr),q("Hmm",Qn),q("Hmmss",tr),J(["H","HH"],gr),J(["k","kk"],function(t,e,i){var n=w(t);e[gr]=24===n?0:n}),J(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),J(["h","hh"],function(t,e,i){e[gr]=w(t),g(i).bigHour=!0}),J("hmm",function(t,e,i){var n=t.length-2;e[gr]=w(t.substr(0,n)),e[mr]=w(t.substr(n)),g(i).bigHour=!0}),J("hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[gr]=w(t.substr(0,n)),e[mr]=w(t.substr(n,2)),e[vr]=w(t.substr(r)),g(i).bigHour=!0}),J("Hmm",function(t,e,i){var n=t.length-2;e[gr]=w(t.substr(0,n)),e[mr]=w(t.substr(n))}),J("Hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[gr]=w(t.substr(0,n)),e[mr]=w(t.substr(n,2)),e[vr]=w(t.substr(r))});var Rr,Hr=/[ap]\.?m?\.?/i,zr=rt("Hours",!0),Yr={calendar:Rn,longDateFormat:Hn,invalidDate:zn,ordinal:Yn,dayOfMonthOrdinalParse:Nn,relativeTime:Fn,months:Sr,monthsShort:kr,week:Lr,weekdays:Cr,weekdaysMin:Ar,weekdaysShort:Ir,meridiemParse:Hr},Nr={},Fr={},Wr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Br=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jr=/Z|[+-]\d\d(?::?\d\d)?/,Vr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],$r=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Gr=/^\/?Date\((\-?\d+)/i,Ur=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,qr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Xr=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Te.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()}),Zr=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Te.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()}),Kr=function(){return Date.now?Date.now():+new Date},Jr=["year","quarter","month","week","day","hour","minute","second","millisecond"];ze("Z",":"),ze("ZZ",""),q("Z",sr),q("ZZ",sr),J(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=Ye(sr,t)});var Qr=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var ta=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ea=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Je.fn=Oe.prototype,Je.invalid=Ee;var ia=ii(1,"add"),na=ii(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ra=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),zi("gggg","weekYear"),zi("ggggg","weekYear"),zi("GGGG","isoWeekYear"),zi("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),q("G",ar),q("g",ar),q("GG",Jn,qn),q("gg",Jn,qn),q("GGGG",ir,Zn),q("gggg",ir,Zn),q("GGGGG",nr,Kn),q("ggggg",nr,Kn),Q(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=w(t)}),Q(["gg","GG"],function(t,i,n,r){i[r]=e.parseTwoDigitYear(t)}),j("Q",0,"Qo","quarter"),z("quarter","Q"),F("quarter",7),q("Q",Un),J("Q",function(t,e){e[pr]=3*(w(t)-1)}),j("D",["DD",2],"Do","date"),z("date","D"),F("date",9),q("D",Jn),q("DD",Jn,qn),q("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),J(["D","DD"],fr),J("Do",function(t,e){e[fr]=w(t.match(Jn)[0])});var aa=rt("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),F("dayOfYear",4),q("DDD",er),q("DDDD",Xn),J(["DDD","DDDD"],function(t,e,i){i._dayOfYear=w(t)}),j("m",["mm",2],0,"minute"),z("minute","m"),F("minute",14),q("m",Jn),q("mm",Jn,qn),J(["m","mm"],mr);var oa=rt("Minutes",!1);j("s",["ss",2],0,"second"),z("second","s"),F("second",15),q("s",Jn),q("ss",Jn,qn),J(["s","ss"],vr);var sa=rt("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return 10*this.millisecond()}),j(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),j(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),j(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),j(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),j(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),z("millisecond","ms"),F("millisecond",16),q("S",er,Un),q("SS",er,qn),q("SSS",er,Xn);var la;for(la="SSSS";la.length<=9;la+="S")q(la,rr);for(la="S";la.length<=9;la+="S")J(la,Gi);var ua=rt("Milliseconds",!1);j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var ha=_.prototype;ha.add=ia,ha.calendar=ai,ha.clone=oi,ha.diff=pi,ha.endOf=Di,ha.format=yi,ha.from=_i,ha.fromNow=bi,ha.to=xi,ha.toNow=wi,ha.get=st,ha.invalidAt=Ri,ha.isAfter=si,ha.isBefore=li,ha.isBetween=ui,ha.isSame=hi,ha.isSameOrAfter=ci,ha.isSameOrBefore=di,ha.isValid=Ei,ha.lang=ra,ha.locale=Mi,ha.localeData=Si,ha.max=Zr,ha.min=Xr,ha.parsingFlags=Oi,ha.set=lt,ha.startOf=ki,ha.subtract=na,ha.toArray=Ii,ha.toObject=Ai,ha.toDate=Ci,ha.toISOString=mi,ha.inspect=vi,ha.toJSON=Pi,ha.toString=gi,ha.unix=Li,ha.valueOf=Ti,ha.creationData=Hi,ha.year=wr,ha.isLeapYear=nt,ha.weekYear=Yi,ha.isoWeekYear=Ni,ha.quarter=ha.quarters=Vi,ha.month=mt,ha.daysInMonth=vt,ha.week=ha.weeks=It,ha.isoWeek=ha.isoWeeks=At,ha.weeksInYear=Wi,ha.isoWeeksInYear=Fi,ha.date=aa,ha.day=ha.days=Nt,ha.weekday=Ft,ha.isoWeekday=Wt,ha.dayOfYear=$i,ha.hour=ha.hours=zr,ha.minute=ha.minutes=oa,ha.second=ha.seconds=sa,ha.millisecond=ha.milliseconds=ua,ha.utcOffset=We,ha.utc=je,ha.local=Ve,ha.parseZone=$e,ha.hasAlignedHourOffset=Ge,ha.isDST=Ue,ha.isLocal=Xe,ha.isUtcOffset=Ze,ha.isUtc=Ke,ha.isUTC=Ke,ha.zoneAbbr=Ui,ha.zoneName=qi,ha.dates=k("dates accessor is deprecated. Use date instead.",aa),ha.months=k("months accessor is deprecated. Use month instead",mt),ha.years=k("years accessor is deprecated. Use year instead",wr),ha.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Be),ha.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qe);var ca=I.prototype;ca.calendar=A,ca.longDateFormat=P,ca.invalidDate=E,ca.ordinal=O,ca.preparse=Ki,ca.postformat=Ki,ca.relativeTime=R,ca.pastFuture=H,ca.set=L,ca.months=ct,ca.monthsShort=dt,ca.monthsParse=ft,ca.monthsRegex=_t,ca.monthsShortRegex=yt,ca.week=Tt,ca.firstDayOfYear=Ct,ca.firstDayOfWeek=Lt,ca.weekdays=Ot,ca.weekdaysMin=Ht,ca.weekdaysShort=Rt,ca.weekdaysParse=Yt,ca.weekdaysRegex=Bt,ca.weekdaysShortRegex=jt,ca.weekdaysMinRegex=Vt,ca.isPM=Zt,ca.meridiem=Kt,ee("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,i=1===w(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}}),e.lang=k("moment.lang is deprecated. Use moment.locale instead.",ee),e.langData=k("moment.langData is deprecated. Use moment.localeData instead.",re);var da=Math.abs,pa=vn("ms"),fa=vn("s"),ga=vn("m"),ma=vn("h"),va=vn("d"),ya=vn("w"),_a=vn("M"),ba=vn("y"),xa=bn("milliseconds"),wa=bn("seconds"),Ma=bn("minutes"),Sa=bn("hours"),ka=bn("days"),Da=bn("months"),Ta=bn("years"),La=Math.round,Ca={ss:44,s:45,m:45,h:22,d:26,M:11},Ia=Math.abs,Aa=Oe.prototype;return Aa.isValid=Pe,Aa.abs=sn,Aa.add=un,Aa.subtract=hn,Aa.as=gn,Aa.asMilliseconds=pa,Aa.asSeconds=fa,Aa.asMinutes=ga,Aa.asHours=ma,Aa.asDays=va,Aa.asWeeks=ya,Aa.asMonths=_a,Aa.asYears=ba,Aa.valueOf=mn,Aa._bubble=dn,Aa.clone=yn,Aa.get=_n,Aa.milliseconds=xa,Aa.seconds=wa,Aa.minutes=Ma,Aa.hours=Sa,Aa.days=ka,Aa.weeks=xn,Aa.months=Da,Aa.years=Ta,Aa.humanize=Dn,Aa.toISOString=Ln,Aa.toString=Ln,Aa.toJSON=Ln,Aa.locale=Mi,Aa.localeData=Si,Aa.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ln),Aa.lang=ra,j("X",0,0,"unix"),j("x",0,0,"valueOf"),q("x",ar),q("X",lr),J("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),J("x",function(t,e,i){i._d=new Date(w(t))}),e.version="2.22.2",n(Te),e.fn=ha,e.min=Ce,e.max=Ie,e.now=Kr,e.utc=p,e.unix=Xi,e.months=en,e.isDate=u,e.locale=ee,e.invalid=v,e.duration=Je,e.isMoment=b,e.weekdays=rn,e.parseZone=Zi,e.localeData=re,e.isDuration=Re,e.monthsShort=nn,e.weekdaysMin=on,e.defineLocale=ie,e.updateLocale=ne,e.locales=ae,e.weekdaysShort=an,e.normalizeUnits=Y,e.relativeTimeRounding=Sn,e.relativeTimeThreshold=kn,e.calendarFormat=ri,e.prototype=ha,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e})}).call(e,i(123)(t))},function(t,e,i){function n(t){return function(e,i,n){e=e&&e.toLowerCase(),et.prototype[t].call(this,e,i,n)}}function r(){et.call(this)}function a(t,e,i){function n(t,e){return t.__prio-e.__prio}i=i||{},"string"==typeof e&&(e=Zt[e]),this.id,this.group,this._dom=t;var a="canvas",o=this._zr=Z.init(t,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=gt(K.bind(o.flush,o),17);var e=K.clone(e);e&&ot(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new rt;var s=this._api=M(this);tt(Xt,n),tt(Gt,n),this._scheduler=new _t(this,s,Gt,Xt),et.call(this),this._messageCenter=new r,this._initEvents(),this.resize=K.bind(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),p(o,this),K.setAsPrimitive(this)}function o(t,e,i){var n,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=pt.parseFinder(r,e);for(var o=0;o<a.length;o++){var s=a[o];if(s[t]&&null!=(n=s[t](r,e,i)))return n}}function s(t){var e=t._model,i=t._scheduler;i.restorePipelines(e),i.prepareStageTasks(),f(t,"component",e,i),f(t,"chart",e,i),i.plan()}function l(t,e,i,n,r){function a(n){n&&n.__alive&&n[e]&&n[e](n.__model,o,t._api,i)}var o=t._model;if(!n)return void Mt(t._componentsViews.concat(t._chartsViews),a);var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var u=i.excludeSeriesId;null!=u&&(u=K.createHashMap(pt.normalizeToArray(u))),o&&o.eachComponent(l,function(e){u&&null!=u.get(e.id)||a(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)}function u(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})}function h(t,e){var i=t.type,n=t.escapeConnect,r=Vt[i],a=r.actionInfo,o=(a.update||"update").split(":"),u=o.pop();o=null!=o[0]&&Dt(o[0]),this[Yt]=!0;var h=[t],c=!1;t.batch&&(c=!0,h=K.map(t.batch,function(e){return e=K.defaults(K.extend({},e),t),e.batch=null,e}));var d,p=[],f="highlight"===i||"downplay"===i;Mt(h,function(t){d=r.action(t,this._model,this._api),d=d||K.extend({},t),d.type=a.event||d.type,p.push(d),f?l(this,u,t,"series"):o&&l(this,u,t,o.main,o.sub)},this),"none"===u||f||o||(this[Nt]?(s(this),Bt.update.call(this,t),this[Nt]=!1):Bt[u].call(this,t)),d=c?{type:a.event||i,escapeConnect:n,batch:p}:p[0],this[Yt]=!1,!e&&this._messageCenter.trigger(d.type,d)}function c(t){for(var e=this._pendingActions;e.length;){var i=e.shift();h.call(this,i,t)}}function d(t){!t&&this.trigger("updated")}function p(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[Nt]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}function f(t,e,i,n){function r(t){var e="_ec_"+t.id+"_"+t.type,r=s[e];if(!r){var h=Dt(t.type),c=a?ht.getClass(h.main,h.sub):ct.getClass(h.sub);r=new c,r.init(i,u),s[e]=r,o.push(r),l.add(r.group)}t.__viewId=r.__id=e,r.__alive=!0,r.__model=t,r.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!a&&n.prepareView(r,t,i,u)}for(var a="component"===e,o=a?t._componentsViews:t._chartsViews,s=a?t._componentsMap:t._chartsMap,l=t._zr,u=t._api,h=0;h<o.length;h++)o[h].__alive=!1;a?i.eachComponent(function(t,e){"series"!==t&&r(e)}):i.eachSeries(r);for(var h=0;h<o.length;){var c=o[h];c.__alive?h++:(!a&&c.renderTask.dispose(),l.remove(c.group),c.dispose(i,u),o.splice(h,1),delete s[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function g(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function m(t,e,i,n){v(t,e,i,n),Mt(t._chartsViews,function(t){t.__alive=!1}),y(t,e,i,n),Mt(t._chartsViews,function(t){t.__alive||t.remove(e,i)})}function v(t,e,i,n,r){Mt(r||t._componentsViews,function(t){var r=t.__model;t.render(r,e,i,n),w(r,t)})}function y(t,e,i,n,r){var a,o=t._scheduler;e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var s=i.renderTask;o.updatePayload(s,n),r&&r.get(e.uid)&&s.dirty(),a|=s.perform(o.getPerformArgs(s)),i.group.silent=!!e.get("silent"),w(e,i),x(e,i)}),o.unfinished|=a,b(t._zr,e),vt(t._zr.dom,e)}function _(t,e){Mt(qt,function(i){i(t,e)})}function b(t,e){var i=t.storage,n=0;i.traverse(function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!Q.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function x(t,e){var i=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.style.blend!==i&&t.setStyle("blend",i),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",i)})})}function w(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function M(t){var e=t._coordSysMgr;return K.extend(new nt(t),{getCoordinateSystems:K.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}function S(t){function e(t,e){for(var i=0;i<t.length;i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";Mt($t,function(o,s){t._messageCenter.on(s,function(o){if(Qt[t.group]&&t[a]!==i){if(o&&o.escapeConnect)return;var s=t.makeActionFromEvent(o),l=[];Mt(Jt,function(e){e!==t&&e.group===t.group&&l.push(e)}),e(l,i),Mt(l,function(t){t[a]!==n&&t.dispatchAction(s)}),e(l,r)}})})}function k(t,e,i){var n=C(t);if(n)return n;var r=new a(t,e,i);return r.id="ec_"+te++,Jt[r.id]=r,pt.setAttribute(t,ie,r.id),S(r),r}function D(t){if(K.isArray(t)){var e=t;t=null,Mt(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+ee++,Mt(e,function(e){e.group=t})}return Qt[t]=!0,t}function T(t){Qt[t]=!1}function L(t){"string"==typeof t?t=Jt[t]:t instanceof a||(t=C(t)),t instanceof a&&!t.isDisposed()&&t.dispose()}function C(t){ return Jt[pt.getAttribute(t,ie)]}function I(t){return Jt[t]}function A(t,e){Zt[t]=e}function P(t){Ut.push(t)}function E(t,e){F(Gt,t,e,It)}function O(t){qt.push(t)}function R(t,e,i){"function"==typeof e&&(i=e,e="");var n=kt(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,wt(Ft.test(n)&&Ft.test(e)),Vt[n]||(Vt[n]={action:i,actionInfo:t}),$t[e]=n}function H(t,e){rt.register(t,e)}function z(t){var e=rt.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Y(t,e){F(Xt,t,e,Pt,"layout")}function N(t,e){F(Xt,t,e,Ot,"visual")}function F(t,e,i,n,r){(St(e)||kt(e))&&(i=e,e=n);var a=_t.wrapStageHandler(i,r);return a.__prio=e,a.__raw=i,t.push(a),a}function W(t,e){Kt[t]=e}function B(t){return lt.extend(t)}function j(t){return ht.extend(t)}function V(t){return ut.extend(t)}function $(t){return ct.extend(t)}function G(t){K.$override("createCanvas",t)}function U(t,e,i){e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),"string"==typeof e&&(e="undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),ne[t]={geoJson:e,specialAreas:i}}function q(t){return ne[t]}var X=i(7),Z=(X.__DEV__,i(72)),K=i(0),J=i(26),Q=i(15),tt=i(93),et=i(36),it=i(257),nt=i(267),rt=i(22),at=i(471),ot=i(472),st=i(474),lt=i(16),ut=i(18),ht=i(79),ct=i(29),dt=i(3),pt=i(5),ft=i(38),gt=ft.throttle,mt=i(475),vt=i(476),yt=i(477),_t=i(478),bt=i(479),xt=i(480);i(268);var wt=K.assert,Mt=K.each,St=K.isFunction,kt=K.isObject,Dt=lt.parseClassType,Tt="4.1.0",Lt={zrender:"4.0.4"},Ct=1,It=1e3,At=5e3,Pt=1e3,Et=2e3,Ot=3e3,Rt=4e3,Ht=5e3,zt={PROCESSOR:{FILTER:It,STATISTIC:At},VISUAL:{LAYOUT:Pt,GLOBAL:Et,CHART:Ot,COMPONENT:Rt,BRUSH:Ht}},Yt="__flagInMainProcess",Nt="__optionUpdated",Ft=/^[a-zA-Z0-9_]+$/;r.prototype.on=n("on"),r.prototype.off=n("off"),r.prototype.one=n("one"),K.mixin(r,et);var Wt=a.prototype;Wt._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[Nt]){var e=this[Nt].silent;this[Yt]=!0,s(this),Bt.update.call(this),this[Yt]=!1,this[Nt]=!1,c.call(this,e),d.call(this,e)}else if(t.unfinished){var i=Ct,n=this._model,r=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),u(this,n),t.performVisualTasks(n),y(this,this._model,r,"remain"),i-=+new Date-a}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},Wt.getDom=function(){return this._dom},Wt.getZr=function(){return this._zr},Wt.setOption=function(t,e,i){var n;if(kt(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[Yt]=!0,!this._model||e){var r=new at(this._api),a=this._theme,o=this._model=new it(null,null,a,r);o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(t,Ut),i?(this[Nt]={silent:n},this[Yt]=!1):(s(this),Bt.update.call(this),this._zr.flush(),this[Nt]=!1,this[Yt]=!1,c.call(this,n),d.call(this,n))},Wt.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Wt.getModel=function(){return this._model},Wt.getOption=function(){return this._model&&this._model.getOption()},Wt.getWidth=function(){return this._zr.getWidth()},Wt.getHeight=function(){return this._zr.getHeight()},Wt.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Wt.getRenderedCanvas=function(t){if(Q.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},Wt.getSvgDataUrl=function(){if(Q.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return K.each(e,function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},Wt.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;Mt(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Mt(n,function(t){t.group.ignore=!1}),a},Wt.getConnectedDataURL=function(t){if(Q.canvasSupported){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(Qt[e]){var a=r,o=r,s=-r,l=-r,u=[],h=t&&t.pixelRatio||1;K.each(Jt,function(r,h){if(r.group===e){var c=r.getRenderedCanvas(K.clone(t)),d=r.getDom().getBoundingClientRect();a=i(d.left,a),o=i(d.top,o),s=n(d.right,s),l=n(d.bottom,l),u.push({dom:c,left:d.left,top:d.top})}}),a*=h,o*=h,s*=h,l*=h;var c=s-a,d=l-o,p=K.createCanvas();p.width=c,p.height=d;var f=Z.init(p);return Mt(u,function(t){var e=new dt.Image({style:{x:t.left*h-a,y:t.top*h-o,image:t.dom}});f.add(e)}),f.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},Wt.convertToPixel=K.curry(o,"convertToPixel"),Wt.convertFromPixel=K.curry(o,"convertFromPixel"),Wt.containPixel=function(t,e){var i,n=this._model;return t=pt.parseFinder(n,t),K.each(t,function(t,n){n.indexOf("Models")>=0&&K.each(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i|=!!r.containPoint(e);else if("seriesModels"===n){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(i|=a.containPoint(e,t))}},this)},this),!!i},Wt.getVisual=function(t,e){var i=this._model;t=pt.parseFinder(i,t,{defaultMainType:"series"});var n=t.seriesModel,r=n.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=a?r.getItemVisual(a,e):r.getVisual(e)},Wt.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Wt.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var Bt={prepareAndUpdate:function(t){s(this),Bt.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,r=this._coordSysMgr,a=this._scheduler;if(e){a.restoreData(e,t),a.performSeriesTasks(e),r.create(e,i),a.performDataProcessorTasks(e,t),u(this,e),r.update(e,i),g(e),a.performVisualTasks(e,t),m(this,e,i,t);var o=e.get("backgroundColor")||"transparent";if(Q.canvasSupported)n.setBackgroundColor(o);else{var s=J.parse(o);o=J.stringify(s,"rgb"),0===s[3]&&(o="transparent")}_(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var r=[];e.eachComponent(function(a,o){var s=i.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,n,t);l&&l.update&&r.push(s)}else r.push(s)});var a=K.createHashMap();e.eachSeries(function(r){var o=i._chartsMap[r.__viewId];if(o.updateTransform){var s=o.updateTransform(r,e,n,t);s&&s.update&&a.set(r.uid,1)}else a.set(r.uid,1)}),g(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:a}),y(i,e,n,t,a),_(e,this._api)}},updateView:function(t){var e=this._model;e&&(ct.markUpdateMethod(t,"updateView"),g(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),m(this,this._model,this._api,t),_(e,this._api))},updateVisual:function(t){Bt.update.call(this,t)},updateLayout:function(t){Bt.update.call(this,t)}};Wt.resize=function(t){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[Yt]=!0,i&&s(this),Bt.update.call(this),this[Yt]=!1,c.call(this,n),d.call(this,n)}},Wt.showLoading=function(t,e){if(kt(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Kt[t]){var i=Kt[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},Wt.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Wt.makeActionFromEvent=function(t){var e=K.extend({},t);return e.type=$t[t.type],e},Wt.dispatchAction=function(t,e){if(kt(e)||(e={silent:!!e}),Vt[t.type]&&this._model){if(this[Yt])return void this._pendingActions.push(t);h.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&Q.browser.weChat&&this._throttledZrFlush(),c.call(this,e.silent),d.call(this,e.silent)}},Wt.appendData=function(t){var e=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(e);n.appendData(t),this._scheduler.unfinished=!0},Wt.on=n("on"),Wt.off=n("off"),Wt.one=n("one");var jt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Wt._initEvents=function(){Mt(jt,function(t){this._zr.on(t,function(e){var i,n=this.getModel(),r=e.target;if("globalout"===t)i={};else if(r&&null!=r.dataIndex){var a=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=a&&a.getDataParams(r.dataIndex,r.dataType)||{}}else r&&r.eventData&&(i=K.extend({},r.eventData));i&&(i.event=e,i.type=t,this.trigger(t,i))},this)},this),Mt($t,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},Wt.isDisposed=function(){return this._disposed},Wt.clear=function(){this.setOption({series:[]},!0)},Wt.dispose=function(){if(!this._disposed){this._disposed=!0,pt.setAttribute(this.getDom(),ie,"");var t=this._api,e=this._model;Mt(this._componentsViews,function(i){i.dispose(e,t)}),Mt(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete Jt[this.id]}},K.mixin(a,et);var Vt={},$t={},Gt=[],Ut=[],qt=[],Xt=[],Zt={},Kt={},Jt={},Qt={},te=new Date-0,ee=new Date-0,ie="_echarts_instance_",ne={},re=T;N(Et,mt),P(ot),E(At,st),W("default",yt),R({type:"highlight",event:"highlight",update:"highlight"},K.noop),R({type:"downplay",event:"downplay",update:"downplay"},K.noop),A("light",bt),A("dark",xt);var ae={};e.version=Tt,e.dependencies=Lt,e.PRIORITY=zt,e.init=k,e.connect=D,e.disConnect=T,e.disconnect=re,e.dispose=L,e.getInstanceByDom=C,e.getInstanceById=I,e.registerTheme=A,e.registerPreprocessor=P,e.registerProcessor=E,e.registerPostUpdate=O,e.registerAction=R,e.registerCoordinateSystem=H,e.getCoordinateSystemDimensions=z,e.registerLayout=Y,e.registerVisual=N,e.registerLoading=W,e.extendComponentModel=B,e.extendComponentView=j,e.extendSeriesModel=V,e.extendChartView=$,e.setCanvasCreator=G,e.registerMap=U,e.getMap=q,e.dataTool=ae;var oe=i(269);!function(){for(var t in oe)oe.hasOwnProperty(t)&&(e[t]=oe[t])}()},function(t,e,i){function n(t){return Z.extend(t)}function r(t,e){return G.extendFromString(t,e)}function a(t,e,i,n){var r=G.createFromString(t,e),a=r.getBoundingRect();return i&&("center"===n&&(i=s(i,a)),l(r,i)),r}function o(t,e,i){var n=new J({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(s(e,r))}}});return n}function s(t,e){var i,n=e.width/e.height,r=t.height*n;r<=t.width?i=t.height:(r=t.width,i=r/n);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}function l(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function u(t){var e=t.shape,i=t.style.lineWidth;return gt(2*e.x1)===gt(2*e.x2)&&(e.x1=e.x2=c(e.x1,i,!0)),gt(2*e.y1)===gt(2*e.y2)&&(e.y1=e.y2=c(e.y1,i,!0)),t}function h(t){var e=t.shape,i=t.style.lineWidth,n=e.x,r=e.y,a=e.width,o=e.height;return e.x=c(e.x,i,!0),e.y=c(e.y,i,!0),e.width=Math.max(c(n+a,i,!1)-e.x,0===a?0:1),e.height=Math.max(c(r+o,i,!1)-e.y,0===o?0:1),t}function c(t,e,i){var n=gt(2*t);return(n+gt(e))%2===0?n/2:(n+(i?1:-1))/2}function d(t){return null!=t&&"none"!=t}function p(t){return"string"==typeof t?U.lift(t,-.1):t}function f(t){if(t.__hoverStlDirty){var e=t.style.stroke,i=t.style.fill,n=t.__hoverStl;n.fill=n.fill||(d(i)?p(i):null),n.stroke=n.stroke||(d(e)?p(e):null);var r={};for(var a in n)null!=n[a]&&(r[a]=t.style[a]);t.__normalStl=r,t.__hoverStlDirty=!1}}function g(t){if(!t.__isHover){if(f(t),t.useHoverLayer)t.__zr&&t.__zr.addHover(t,t.__hoverStl);else{var e=t.style,i=e.insideRollbackOpt;i&&E(e),e.extendFrom(t.__hoverStl),i&&(P(e,e.insideOriginalTextPosition,i),null==e.textFill&&(e.textFill=i.autoColor)),t.dirty(!1),t.z2+=1}t.__isHover=!0}}function m(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function v(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&g(t)}):g(t)}function y(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&m(t)}):m(t)}function _(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&f(t)}function b(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&v(this)}function x(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&y(this)}function w(){this.__isEmphasis=!0,v(this)}function M(){this.__isEmphasis=!1,y(this)}function S(t,e,i){t.__hoverSilentOnTouch=i&&i.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&_(t,e)}):_(t,e),t.on("mouseover",b).on("mouseout",x),t.on("emphasis",w).on("normal",M)}function k(t,e,i,n,r,a,o){r=r||yt;var s,l=r.labelFetcher,u=r.labelDataIndex,h=r.labelDimIndex,c=i.getShallow("show"),d=n.getShallow("show");(c||d)&&(l&&(s=l.getFormattedLabel(u,"normal",null,h)),null==s&&(s=$.isFunction(r.defaultText)?r.defaultText(u,r):r.defaultText));var p=c?s:null,f=d?$.retrieve2(l?l.getFormattedLabel(u,"emphasis",null,h):null,s):null;null==p&&null==f||(D(t,i,a,r),D(e,n,o,r,!0)),t.text=p,e.text=f}function D(t,e,i,n,r){return L(t,e,n,r),i&&$.extend(t,i),t.host&&t.host.dirty&&t.host.dirty(!1),t}function T(t,e,i){var n,r={isRectText:!0};i===!1?n=!0:r.autoColor=i,L(t,e,r,n),t.host&&t.host.dirty&&t.host.dirty(!1)}function L(t,e,i,n){if(i=i||yt,i.isRectText){var r=e.getShallow("position")||(n?null:"inside");"outside"===r&&(r="top"),t.textPosition=r,t.textOffset=e.getShallow("offset");var a=e.getShallow("rotate");null!=a&&(a*=Math.PI/180),t.textRotation=a,t.textDistance=$.retrieve2(e.getShallow("distance"),n?null:5)}var o,s=e.ecModel,l=s&&s.option.textStyle,u=C(e);if(u){o={};for(var h in u)if(u.hasOwnProperty(h)){var c=e.getModel(["rich",h]);I(o[h]={},c,l,i,n)}}return t.rich=o,I(t,e,l,i,n,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function C(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||yt).rich;if(i){e=e||{};for(var n in i)i.hasOwnProperty(n)&&(e[n]=1)}t=t.parentModel}return e}function I(t,e,i,n,r,a){if(i=!r&&i||yt,t.textFill=A(e.getShallow("color"),n)||i.color,t.textStroke=A(e.getShallow("textBorderColor"),n)||i.textBorderColor,t.textStrokeWidth=$.retrieve2(e.getShallow("textBorderWidth"),i.textBorderWidth),!r){if(a){var o=t.textPosition;t.insideRollback=P(t,o,n),t.insideOriginalTextPosition=o,t.insideRollbackOpt=n}null==t.textFill&&(t.textFill=n.autoColor)}t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),a&&n.disableBox||(t.textBackgroundColor=A(e.getShallow("backgroundColor"),n),t.textPadding=e.getShallow("padding"),t.textBorderColor=A(e.getShallow("borderColor"),n),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function A(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function P(t,e,i){var n,r=i.useInsideStyle;return null==t.textFill&&r!==!1&&(r===!0||i.isRectText&&e&&"string"==typeof e&&e.indexOf("inside")>=0)&&(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=i.autoColor,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),n}function E(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth)}function O(t,e){var i=e||e.getModel("textStyle");return $.trim([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function R(t,e,i,n,r,a){"function"==typeof r&&(a=r,r=null);var o=n&&n.isAnimationEnabled();if(o){var s=t?"Update":"",l=n.getShallow("animationDuration"+s),u=n.getShallow("animationEasing"+s),h=n.getShallow("animationDelay"+s);"function"==typeof h&&(h=h(r,n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null)),"function"==typeof l&&(l=l(r)),l>0?e.animateTo(i,l,h||0,u,a,!!a):(e.stopAnimation(),e.attr(i),a&&a())}else e.stopAnimation(),e.attr(i),a&&a()}function H(t,e,i,n,r){R(!0,t,e,i,n,r)}function z(t,e,i,n,r){R(!1,t,e,i,n,r)}function Y(t,e){for(var i=q.identity([]);t&&t!==e;)q.mul(i,t.getLocalTransform(),i),t=t.parent;return i}function N(t,e,i){return e&&!$.isArrayLike(e)&&(e=K.getLocalTransform(e)),i&&(e=q.invert([],e)),X.applyTransform([],t,e)}function F(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return a=N(a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function W(t,e,i,n){function r(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function a(t){var e={position:X.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=$.extend({},t.shape)),e}if(t&&e){var o=r(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var n=a(t);t.attr(a(e)),H(t,n,i,t.dataIndex)}}})}}function B(t,e){return $.map(t,function(t){var i=t[0];i=mt(i,e.x),i=vt(i,e.x+e.width);var n=t[1];return n=mt(n,e.y),n=vt(n,e.y+e.height),[i,n]})}function j(t,e){var i=mt(t.x,e.x),n=vt(t.x+t.width,e.x+e.width),r=mt(t.y,e.y),a=vt(t.y+t.height,e.y+e.height);if(n>=i&&a>=r)return{x:i,y:r,width:n-i,height:a-r}}function V(t,e,i){e=$.extend({rectHover:!0},e);var n=e.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),$.defaults(n,i),new J(e)):a(t.replace("path://",""),e,i,"center")}var $=i(0),G=i(450),U=i(26),q=i(19),X=i(10),Z=i(14),K=i(92),J=i(55);e.Image=J;var Q=i(73);e.Group=Q;var tt=i(57);e.Text=tt;var et=i(455);e.Circle=et;var it=i(456);e.Sector=it;var nt=i(457);e.Ring=nt;var rt=i(458);e.Polygon=rt;var at=i(461);e.Polyline=at;var ot=i(462);e.Rect=ot;var st=i(463);e.Line=st;var lt=i(464);e.BezierCurve=lt;var ut=i(465);e.Arc=ut;var ht=i(466);e.CompoundPath=ht;var ct=i(264);e.LinearGradient=ct;var dt=i(467);e.RadialGradient=dt;var pt=i(12);e.BoundingRect=pt;var ft=i(96);e.IncrementalDisplayable=ft;var gt=Math.round,mt=Math.max,vt=Math.min,yt={},_t=G.mergePath;e.extendShape=n,e.extendPath=r,e.makePath=a,e.makeImage=o,e.mergePath=_t,e.resizePath=l,e.subPixelOptimizeLine=u,e.subPixelOptimizeRect=h,e.subPixelOptimize=c,e.setHoverStyle=S,e.setLabelStyle=k,e.setTextStyle=D,e.setText=T,e.getFont=O,e.updateProps=H,e.initProps=z,e.getTransform=Y,e.applyTransform=N,e.transformDirection=F,e.groupTransition=W,e.clipPointsByRect=B,e.clipRectByRect=j,e.createIcon=V},function(t,e,i){function n(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function r(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]}function a(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?n(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function o(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function s(t){return t.sort(function(t,e){return t-e}),t}function l(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}function u(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function h(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function c(t,e,i){if(!t[e])return 0;var n=b.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var r=Math.pow(10,i),a=b.map(t,function(t){return(isNaN(t)?0:t)/n*r*100}),o=100*r,s=b.map(a,function(t){return Math.floor(t)}),l=b.reduce(s,function(t,e){return t+e},0),u=b.map(a,function(t,e){return t-s[e]});l<o;){for(var h=Number.NEGATIVE_INFINITY,c=null,d=0,p=u.length;d<p;++d)u[d]>h&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/r}function d(t){var e=2*Math.PI;return(t%e+e)%e}function p(t){return t>-x&&t<x}function f(t){if(t instanceof Date)return t;if("string"==typeof t){var e=M.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date((+e[1]),+(e[2]||1)-1,+e[3]||1,+e[4]||0,(+(e[5]||0)),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function g(t){return Math.pow(10,m(t))}function m(t){return Math.floor(Math.log(t)/Math.LN10)}function v(t,e){var i,n=m(t),r=Math.pow(10,n),a=t/r;return i=e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=i*r,n>=-20?+t.toFixed(n<0?-n:0):t}function y(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]===(n?-1:1)||!n&&e(t,i,1))}t.sort(function(t,i){return e(t,i,0)?-1:1});for(var i=-(1/0),n=1,r=0;r<t.length;){for(var a=t[r].interval,o=t[r].close,s=0;s<2;s++)a[s]<=i&&(a[s]=i,o[s]=s?1:1-n),i=a[s],n=o[s];a[0]===a[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t}function _(t){return t-parseFloat(t)>=0}var b=i(0),x=1e-4,w=9007199254740991,M=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;e.linearMap=r,e.parsePercent=a,e.round=o,e.asc=s,e.getPrecision=l,e.getPrecisionSafe=u,e.getPixelPrecision=h,e.getPercentWithPrecision=c,e.MAX_SAFE_INTEGER=w,e.remRadian=d,e.isRadianAroundZero=p,e.parseDate=f,e.quantity=g,e.nice=v,e.reformIntervals=y,e.isNumeric=_},function(t,e,i){function n(t){return t instanceof Array?t:null==t?[]:[t]}function r(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;n<r;n++){var a=i[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}function a(t){return!b(t)||x(t)||t instanceof Date?t:t.value}function o(t){return b(t)&&!(t instanceof Array)}function s(t,e){e=(e||[]).slice();var i=y.map(t||[],function(t,e){return{exist:t}});return _(e,function(t,n){if(b(t)){for(var r=0;r<i.length;r++)if(!i[r].option&&null!=t.id&&i[r].exist.id===t.id+"")return i[r].option=t,void(e[n]=null);for(var r=0;r<i.length;r++){var a=i[r].exist;if(!(i[r].option||null!=a.id&&null!=t.id||null==t.name||h(t)||h(a)||a.name!==t.name+""))return i[r].option=t,void(e[n]=null)}}}),_(e,function(t,e){if(b(t)){for(var n=0;n<i.length;n++){var r=i[n].exist;if(!i[n].option&&!h(r)&&null==t.id){i[n].option=t;break}}n>=i.length&&i.push({option:t})}}),i}function l(t){var e=y.createHashMap();_(t,function(t,i){var n=t.exist;n&&e.set(n.id,t)}),_(t,function(t,i){var n=t.option;y.assert(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),_(t,function(t,i){var n=t.exist,r=t.option,a=t.keyInfo;if(b(r)){if(a.name=null!=r.name?r.name+"":n?n.name:w+i,n)a.id=n.id;else if(null!=r.id)a.id=r.id+"";else{var o=0;do a.id="\0"+a.name+"\0"+o++;while(e.get(a.id))}e.set(a.id,t)}})}function u(t){var e=t.name;return!(!e||!e.indexOf(w))}function h(t){return b(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function c(t,e){function i(t,e,i){for(var r=0,a=t.length;r<a;r++)for(var o=t[r].seriesId,s=n(t[r].dataIndex),l=i&&i[o],u=0,h=s.length;u<h;u++){var c=s[u];l&&l[c]?l[c]=null:(e[o]||(e[o]={}))[c]=1}}function r(t,e){var i=[];for(var n in t)if(t.hasOwnProperty(n)&&null!=t[n])if(e)i.push(+n);else{var a=r(t[n],!0);a.length&&i.push({seriesId:n,dataIndex:a})}return i}var a={},o={};return i(t||[],a),i(e||[],o,a),[r(a),r(o)]}function d(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?y.isArray(e.dataIndex)?y.map(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?y.isArray(e.name)?y.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function p(){var t="__\0ec_inner_"+S++ +"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}function f(t,e,i){if(y.isString(e)){var n={};n[e+"Index"]=0,e=n}var r=i&&i.defaultMainType;!r||g(e,r+"Index")||g(e,r+"Id")||g(e,r+"Name")||(e[r+"Index"]=0);var a={};return _(e,function(n,r){var n=e[r];if("dataIndex"===r||"dataIndexInside"===r)return void(a[r]=n);var o=r.match(/^(\w+)(Index|Id|Name)$/)||[],s=o[1],l=(o[2]||"").toLowerCase();if(!(!s||!l||null==n||"index"===l&&"none"===n||i&&i.includeMainTypes&&y.indexOf(i.includeMainTypes,s)<0)){var u={mainType:s};"index"===l&&"all"===n||(u[l]=n);var h=t.queryComponents(u);a[s+"Models"]=h,a[s+"Model"]=h[0]}}),a}function g(t,e){return t&&t.hasOwnProperty(e)}function m(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function v(t,e){return t.getAttribute?t.getAttribute(e):t[e]}var y=i(0),_=y.each,b=y.isObject,x=y.isArray,w="series\0",M=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],S=0;e.normalizeToArray=n,e.defaultEmphasis=r,e.TEXT_STYLE_OPTIONS=M,e.getDataItemValue=a,e.isDataItemOption=o,e.mappingToExists=s,e.makeIdAndName=l,e.isNameSpecified=u,e.isIdInner=h,e.compressBatches=c,e.queryDataIndex=d,e.makeInner=p,e.parseFinder=f,e.setAttribute=m,e.getAttribute=v},function(t,e,i){"use strict";t.exports=i(71),t.exports.easing=i(359),t.exports.canvas=i(360),t.exports.options=i(361)},function(t,e,i){(function(t){var i;"undefined"!=typeof window?i=window.__DEV__:"undefined"!=typeof t&&(i=t.__DEV__),"undefined"==typeof i&&(i=!0);var n=i;e.__DEV__=n}).call(e,i(117))},function(t,e,i){function n(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.position,p=l.getBoundingRect(),f=e.childAt(u+1),g=f&&f.getBoundingRect();if("horizontal"===t){var m=p.width+(g?-g.x+p.x:0);h=a+m,h>n||l.newline?(a=0,h=m,o+=s+i,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(g?-g.y+p.y:0);c=o+v,c>r||l.newline?(a+=s+i,o=0,c=v,s=p.width):s=Math.max(s,p.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=h+i:o=c+i)})}function r(t,e,i){var n=e.width,r=e.height,a=f(t.x,n),o=f(t.y,r),s=f(t.x2,n),l=f(t.y2,r);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.y)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=r),i=g.normalizeCssArray(i||0),{width:Math.max(s-a-i[1]-i[3],0),height:Math.max(l-o-i[0]-i[2],0)}}function a(t,e,i){i=g.normalizeCssArray(i||0);var n=e.width,r=e.height,a=f(t.left,n),o=f(t.top,r),s=f(t.right,n),l=f(t.bottom,r),u=f(t.width,n),h=f(t.height,r),c=i[2]+i[0],p=i[1]+i[3],m=t.aspect;switch(isNaN(u)&&(u=n-s-p-a),isNaN(h)&&(h=r-l-c-o),null!=m&&(isNaN(u)&&isNaN(h)&&(m>n/r?u=.8*n:h=.8*r),isNaN(u)&&(u=m*h),isNaN(h)&&(h=u/m)),isNaN(a)&&(a=n-s-u-p),isNaN(o)&&(o=r-l-h-c),t.left||t.right){case"center":a=n/2-u/2-i[3];break;case"right":a=n-u-p}switch(t.top||t.bottom){case"middle":case"center":o=r/2-h/2-i[0];break;case"bottom":o=r-h-c}a=a||0,o=o||0,isNaN(u)&&(u=n-p-a-(s||0)),isNaN(h)&&(h=r-c-o-(l||0));var v=new d(a+i[3],o+i[0],u,h);return v.margin=i,v}function o(t,e,i,n,r){var o=!r||!r.hv||r.hv[0],s=!r||!r.hv||r.hv[1],l=r&&r.boundingMode||"all";if(o||s){var u;if("raw"===l)u="group"===t.type?new d(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();u=u.clone(),u.applyTransform(h)}e=a(c.defaults({width:u.width,height:u.height},e),i,n);var p=t.position,f=o?e.x-u.x:0,g=s?e.y-u.y:0;t.attr("position","raw"===l?[f,g]:[p[0]+f,p[1]+g])}}function s(t,e){return null!=t[y[e][0]]||null!=t[y[e][1]]&&null!=t[y[e][2]]}function l(t,e,i){function n(i,n){var o={},l=0,u={},h=0,c=2;if(m(i,function(e){u[e]=t[e]}),m(i,function(t){r(e,t)&&(o[t]=u[t]=e[t]),a(o,t)&&l++,a(u,t)&&h++}),s[n])return a(e,i[1])?u[i[2]]=null:a(e,i[2])&&(u[i[1]]=null),u;if(h!==c&&l){if(l>=c)return o;for(var d=0;d<i.length;d++){var p=i[d];if(!r(o,p)&&r(t,p)){o[p]=t[p];break}}return o}return u}function r(t,e){return t.hasOwnProperty(e)}function a(t,e){return null!=t[e]&&"auto"!==t[e]}function o(t,e,i){m(t,function(t){e[t]=i[t]})}!c.isObject(i)&&(i={});var s=i.ignoreSize;!c.isArray(s)&&(s=[s,s]);var l=n(y[0],0),u=n(y[1],1);o(y[0],t,l),o(y[1],t,u)}function u(t){return h({},t)}function h(t,e){return e&&t&&m(v,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}var c=i(0),d=i(12),p=i(4),f=p.parsePercent,g=i(11),m=c.each,v=["left","right","top","bottom","width","height"],y=[["width","left","right"],["height","top","bottom"]],_=n,b=c.curry(n,"vertical"),x=c.curry(n,"horizontal");e.LOCATION_PARAMS=v,e.HV_NAMES=y,e.box=_,e.vbox=b,e.hbox=x,e.getAvailableSize=r,e.getLayoutRect=a,e.positionElement=o,e.sizeCalculable=s,e.mergeLayoutParam=l,e.getLayoutParams=u,e.copyLayoutParams=h},function(t,e,i){"use strict";var n=i(6);t.exports={_set:function(t,e){return n.merge(this[t]||(this[t]={}),e)}}},function(t,e){function i(t,e){var i=new M(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i}function n(t,e){return t[0]=e[0],t[1]=e[1],t}function r(t){var e=new M(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e,i){return t[0]=e,t[1]=i,t}function o(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function s(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function l(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function u(t){return Math.sqrt(h(t))}function h(t){return t[0]*t[0]+t[1]*t[1]}function c(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function d(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function p(t,e){return t[0]*e[0]+t[1]*e[1]}function f(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function g(t,e){var i=u(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function m(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function v(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function y(t,e){return t[0]=-e[0],t[1]=-e[1],t}function _(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function b(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function x(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function w(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}var M="undefined"==typeof Float32Array?Array:Float32Array,S=u,k=h,D=m,T=v;e.create=i,e.copy=n,e.clone=r,e.set=a,e.add=o,e.scaleAndAdd=s,e.sub=l,e.len=u,e.length=S,e.lenSquare=h,e.lengthSquare=k,e.mul=c,e.div=d,e.dot=p,e.scale=f,e.normalize=g,e.distance=m,e.dist=D,e.distanceSquare=v,e.distSquare=T,e.negate=y,e.lerp=_,e.applyTransform=b,e.min=x,e.max=w},function(t,e,i){function n(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function r(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function a(t){return null==t?"":(t+"").replace(m,function(t,e){return v[e]})}function o(t,e,i){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var s=y[o];t=t.replace(_(s),_(s,0)); }for(var l=0;l<n;l++)for(var u=0;u<r.length;u++){var h=e[l][r[u]];t=t.replace(_(y[u],l),i?a(h):h)}return t}function s(t,e,i){return d.each(e,function(e,n){t=t.replace("{"+n+"}",i?a(e):e)}),t}function l(t,e){t=d.isString(t)?{color:t,extraCssText:e}:t||{};var i=t.color,n=t.type,e=t.extraCssText;return i?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+a(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+a(i)+";"+(e||"")+'"></span>':""}function u(t,e){return t+="","0000".substr(0,e-t.length)+t}function h(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=f.parseDate(e),r=i?"UTC":"",a=n["get"+r+"FullYear"](),o=n["get"+r+"Month"]()+1,s=n["get"+r+"Date"](),l=n["get"+r+"Hours"](),h=n["get"+r+"Minutes"](),c=n["get"+r+"Seconds"](),d=n["get"+r+"Milliseconds"]();return t=t.replace("MM",u(o,2)).replace("M",o).replace("yyyy",a).replace("yy",a%100).replace("dd",u(s,2)).replace("d",s).replace("hh",u(l,2)).replace("h",l).replace("mm",u(h,2)).replace("m",h).replace("ss",u(c,2)).replace("s",c).replace("SSS",u(d,3))}function c(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var d=i(0),p=i(25),f=i(4),g=d.normalizeCssArray,m=/([&<>"'])/g,v={"&":"&","<":"<",">":">",'"':""","'":"'"},y=["a","b","c","d","e","f","g"],_=function(t,e){return"{"+t+(null==e?"":e)+"}"},b=p.truncateText,x=p.getBoundingRect;e.addCommas=n,e.toCamelCase=r,e.normalizeCssArray=g,e.encodeHTML=a,e.formatTpl=o,e.formatTplSimple=s,e.getTooltipMarker=l,e.formatTime=h,e.capitalFirst=c,e.truncateText=b,e.getTextRect=x},function(t,e,i){function n(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}var r=i(10),a=i(19),o=r.applyTransform,s=Math.min,l=Math.max;n.prototype={constructor:n,union:function(t){var e=s(t.x,this.x),i=s(t.y,this.y);this.width=l(t.x+t.width,this.x+this.width)-e,this.height=l(t.y+t.height,this.y+this.height)-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[],i=[],n=[];return function(r){if(r){t[0]=i[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=i[1]=this.y+this.height,o(t,t,r),o(e,e,r),o(i,i,r),o(n,n,r),this.x=s(t[0],e[0],i[0],n[0]),this.y=s(t[1],e[1],i[1],n[1]);var a=l(t[0],e[0],i[0],n[0]),u=l(t[1],e[1],i[1],n[1]);this.width=a-this.x,this.height=u-this.y}}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=a.create();return a.translate(r,r,[-e.x,-e.y]),a.scale(r,r,[i,n]),a.translate(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof n||(t=n.create(t));var e=this,i=e.x,r=e.x+e.width,a=e.y,o=e.y+e.height,s=t.x,l=t.x+t.width,u=t.y,h=t.y+t.height;return!(r<s||l<i||o<u||h<a)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new n(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},n.create=function(t){return new n(t.x,t.y,t.width,t.height)};var u=n;t.exports=u},function(t,e,i){var n,r;!function(e,i){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,function(i,a){"use strict";function o(t,e,i){e=e||ht;var n,r=e.createElement("script");if(r.text=t,i)for(n in St)i[n]&&(r[n]=i[n]);e.head.appendChild(r).parentNode.removeChild(r)}function s(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?mt[vt.call(t)]||"object":typeof t}function l(t){var e=!!t&&"length"in t&&t.length,i=s(t);return!wt(t)&&!Mt(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function u(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function h(t,e,i){return wt(e)?Dt.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?Dt.grep(t,function(t){return t===e!==i}):"string"!=typeof e?Dt.grep(t,function(t){return gt.call(e,t)>-1!==i}):Dt.filter(e,t,i)}function c(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function d(t){var e={};return Dt.each(t.match(Yt)||[],function(t,i){e[i]=!0}),e}function p(t){return t}function f(t){throw t}function g(t,e,i,n){var r;try{t&&wt(r=t.promise)?r.call(t).done(e).fail(i):t&&wt(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}function m(){ht.removeEventListener("DOMContentLoaded",m),i.removeEventListener("load",m),Dt.ready()}function v(t,e){return e.toUpperCase()}function y(t){return t.replace(Bt,"ms-").replace(jt,v)}function _(){this.expando=Dt.expando+_.uid++}function b(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Ut.test(t)?JSON.parse(t):t)}function x(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(qt,"-$&").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i=b(i)}catch(r){}Gt.set(t,e,i)}else i=void 0;return i}function w(t,e,i,n){var r,a,o=20,s=n?function(){return n.cur()}:function(){return Dt.css(t,e,"")},l=s(),u=i&&i[3]||(Dt.cssNumber[e]?"":"px"),h=(Dt.cssNumber[e]||"px"!==u&&+l)&&Zt.exec(Dt.css(t,e));if(h&&h[3]!==u){for(l/=2,u=u||h[3],h=+l||1;o--;)Dt.style(t,e,h+u),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),h/=a;h=2*h,Dt.style(t,e,h+u),i=i||[]}return i&&(h=+h||+l||0,r=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=h,n.end=r)),r}function M(t){var e,i=t.ownerDocument,n=t.nodeName,r=te[n];return r?r:(e=i.body.appendChild(i.createElement(n)),r=Dt.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),te[n]=r,r)}function S(t,e){for(var i,n,r=[],a=0,o=t.length;a<o;a++)n=t[a],n.style&&(i=n.style.display,e?("none"===i&&(r[a]=$t.get(n,"display")||null,r[a]||(n.style.display="")),""===n.style.display&&Jt(n)&&(r[a]=M(n))):"none"!==i&&(r[a]="none",$t.set(n,"display",i)));for(a=0;a<o;a++)null!=r[a]&&(t[a].style.display=r[a]);return t}function k(t,e){var i;return i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&u(t,e)?Dt.merge([t],i):i}function D(t,e){for(var i=0,n=t.length;i<n;i++)$t.set(t[i],"globalEval",!e||$t.get(e[i],"globalEval"))}function T(t,e,i,n,r){for(var a,o,l,u,h,c,d=e.createDocumentFragment(),p=[],f=0,g=t.length;f<g;f++)if(a=t[f],a||0===a)if("object"===s(a))Dt.merge(p,a.nodeType?[a]:a);else if(ae.test(a)){for(o=o||d.appendChild(e.createElement("div")),l=(ie.exec(a)||["",""])[1].toLowerCase(),u=re[l]||re._default,o.innerHTML=u[1]+Dt.htmlPrefilter(a)+u[2],c=u[0];c--;)o=o.lastChild;Dt.merge(p,o.childNodes),o=d.firstChild,o.textContent=""}else p.push(e.createTextNode(a));for(d.textContent="",f=0;a=p[f++];)if(n&&Dt.inArray(a,n)>-1)r&&r.push(a);else if(h=Dt.contains(a.ownerDocument,a),o=k(d.appendChild(a),"script"),h&&D(o),i)for(c=0;a=o[c++];)ne.test(a.type||"")&&i.push(a);return d}function L(){return!0}function C(){return!1}function I(){try{return ht.activeElement}catch(t){}}function A(t,e,i,n,r,a){var o,s;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(s in e)A(t,s,i,n,e[s],a);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),r===!1)r=C;else if(!r)return t;return 1===a&&(o=r,r=function(t){return Dt().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=Dt.guid++)),t.each(function(){Dt.event.add(this,e,r,n,i)})}function P(t,e){return u(t,"table")&&u(11!==e.nodeType?e:e.firstChild,"tr")?Dt(t).children("tbody")[0]||t:t}function E(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function O(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function R(t,e){var i,n,r,a,o,s,l,u;if(1===e.nodeType){if($t.hasData(t)&&(a=$t.access(t),o=$t.set(e,a),u=a.events)){delete o.handle,o.events={};for(r in u)for(i=0,n=u[r].length;i<n;i++)Dt.event.add(e,r,u[r][i])}Gt.hasData(t)&&(s=Gt.access(t),l=Dt.extend({},s),Gt.set(e,l))}}function H(t,e){var i=e.nodeName.toLowerCase();"input"===i&&ee.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function z(t,e,i,n){e=pt.apply([],e);var r,a,s,l,u,h,c=0,d=t.length,p=d-1,f=e[0],g=wt(f);if(g||d>1&&"string"==typeof f&&!xt.checkClone&&de.test(f))return t.each(function(r){var a=t.eq(r);g&&(e[0]=f.call(this,r,a.html())),z(a,e,i,n)});if(d&&(r=T(e,t[0].ownerDocument,!1,t,n),a=r.firstChild,1===r.childNodes.length&&(r=a),a||n)){for(s=Dt.map(k(r,"script"),E),l=s.length;c<d;c++)u=r,c!==p&&(u=Dt.clone(u,!0,!0),l&&Dt.merge(s,k(u,"script"))),i.call(t[c],u,c);if(l)for(h=s[s.length-1].ownerDocument,Dt.map(s,O),c=0;c<l;c++)u=s[c],ne.test(u.type||"")&&!$t.access(u,"globalEval")&&Dt.contains(h,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?Dt._evalUrl&&Dt._evalUrl(u.src):o(u.textContent.replace(pe,""),h,u))}return t}function Y(t,e,i){for(var n,r=e?Dt.filter(e,t):t,a=0;null!=(n=r[a]);a++)i||1!==n.nodeType||Dt.cleanData(k(n)),n.parentNode&&(i&&Dt.contains(n.ownerDocument,n)&&D(k(n,"script")),n.parentNode.removeChild(n));return t}function N(t,e,i){var n,r,a,o,s=t.style;return i=i||ge(t),i&&(o=i.getPropertyValue(e)||i[e],""!==o||Dt.contains(t.ownerDocument,t)||(o=Dt.style(t,e)),!xt.pixelBoxStyles()&&fe.test(o)&&me.test(e)&&(n=s.width,r=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=i.width,s.width=n,s.minWidth=r,s.maxWidth=a)),void 0!==o?o+"":o}function F(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function W(t){if(t in we)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=xe.length;i--;)if(t=xe[i]+e,t in we)return t}function B(t){var e=Dt.cssProps[t];return e||(e=Dt.cssProps[t]=W(t)||t),e}function j(t,e,i){var n=Zt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function V(t,e,i,n,r,a){var o="width"===e?1:0,s=0,l=0;if(i===(n?"border":"content"))return 0;for(;o<4;o+=2)"margin"===i&&(l+=Dt.css(t,i+Kt[o],!0,r)),n?("content"===i&&(l-=Dt.css(t,"padding"+Kt[o],!0,r)),"margin"!==i&&(l-=Dt.css(t,"border"+Kt[o]+"Width",!0,r))):(l+=Dt.css(t,"padding"+Kt[o],!0,r),"padding"!==i?l+=Dt.css(t,"border"+Kt[o]+"Width",!0,r):s+=Dt.css(t,"border"+Kt[o]+"Width",!0,r));return!n&&a>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-a-l-s-.5))),l}function $(t,e,i){var n=ge(t),r=N(t,e,n),a="border-box"===Dt.css(t,"boxSizing",!1,n),o=a;if(fe.test(r)){if(!i)return r;r="auto"}return o=o&&(xt.boxSizingReliable()||r===t.style[e]),("auto"===r||!parseFloat(r)&&"inline"===Dt.css(t,"display",!1,n))&&(r=t["offset"+e[0].toUpperCase()+e.slice(1)],o=!0),r=parseFloat(r)||0,r+V(t,e,i||(a?"border":"content"),o,n,r)+"px"}function G(t,e,i,n,r){return new G.prototype.init(t,e,i,n,r)}function U(){Se&&(ht.hidden===!1&&i.requestAnimationFrame?i.requestAnimationFrame(U):i.setTimeout(U,Dt.fx.interval),Dt.fx.tick())}function q(){return i.setTimeout(function(){Me=void 0}),Me=Date.now()}function X(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)i=Kt[n],r["margin"+i]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function Z(t,e,i){for(var n,r=(Q.tweeners[e]||[]).concat(Q.tweeners["*"]),a=0,o=r.length;a<o;a++)if(n=r[a].call(i,e,t))return n}function K(t,e,i){var n,r,a,o,s,l,u,h,c="width"in e||"height"in e,d=this,p={},f=t.style,g=t.nodeType&&Jt(t),m=$t.get(t,"fxshow");i.queue||(o=Dt._queueHooks(t,"fx"),null==o.unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,d.always(function(){d.always(function(){o.unqueued--,Dt.queue(t,"fx").length||o.empty.fire()})}));for(n in e)if(r=e[n],ke.test(r)){if(delete e[n],a=a||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||Dt.style(t,n)}if(l=!Dt.isEmptyObject(e),l||!Dt.isEmptyObject(p)){c&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],u=m&&m.display,null==u&&(u=$t.get(t,"display")),h=Dt.css(t,"display"),"none"===h&&(u?h=u:(S([t],!0),u=t.style.display||u,h=Dt.css(t,"display"),S([t]))),("inline"===h||"inline-block"===h&&null!=u)&&"none"===Dt.css(t,"float")&&(l||(d.done(function(){f.display=u}),null==u&&(h=f.display,u="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1;for(n in p)l||(m?"hidden"in m&&(g=m.hidden):m=$t.access(t,"fxshow",{display:u}),a&&(m.hidden=!g),g&&S([t],!0),d.done(function(){g||S([t]),$t.remove(t,"fxshow");for(n in p)Dt.style(t,n,p[n])})),l=Z(g?m[n]:0,n,d),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}}function J(t,e){var i,n,r,a,o;for(i in t)if(n=y(i),r=e[n],a=t[i],Array.isArray(a)&&(r=a[1],a=t[i]=a[0]),i!==n&&(t[n]=a,delete t[i]),o=Dt.cssHooks[n],o&&"expand"in o){a=o.expand(a),delete t[n];for(i in a)i in t||(t[i]=a[i],e[i]=r)}else e[n]=r}function Q(t,e,i){var n,r,a=0,o=Q.prefilters.length,s=Dt.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Me||q(),i=Math.max(0,u.startTime+u.duration-e),n=i/u.duration||0,a=1-n,o=0,l=u.tweens.length;o<l;o++)u.tweens[o].run(a);return s.notifyWith(t,[u,a,i]),a<1&&l?i:(l||s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:Dt.extend({},e),opts:Dt.extend(!0,{specialEasing:{},easing:Dt.easing._default},i),originalProperties:e,originalOptions:i,startTime:Me||q(),duration:i.duration,tweens:[],createTween:function(e,i){var n=Dt.Tween(t,u.opts,e,i,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var i=0,n=e?u.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)u.tweens[i].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),h=u.props;for(J(h,u.opts.specialEasing);a<o;a++)if(n=Q.prefilters[a].call(u,t,h,u.opts))return wt(n.stop)&&(Dt._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return Dt.map(h,Z,u),wt(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),Dt.fx.timer(Dt.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}function tt(t){var e=t.match(Yt)||[];return e.join(" ")}function et(t){return t.getAttribute&&t.getAttribute("class")||""}function it(t){return Array.isArray(t)?t:"string"==typeof t?t.match(Yt)||[]:[]}function nt(t,e,i,n){var r;if(Array.isArray(e))Dt.each(e,function(e,r){i||ze.test(t)?n(t,r):nt(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)});else if(i||"object"!==s(e))n(t,e);else for(r in e)nt(t+"["+r+"]",e[r],i,n)}function rt(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,a=e.toLowerCase().match(Yt)||[];if(wt(i))for(;n=a[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function at(t,e,i,n){function r(s){var l;return a[s]=!0,Dt.each(t[s]||[],function(t,s){var u=s(e,i,n);return"string"!=typeof u||o||a[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var a={},o=t===Xe;return r(e.dataTypes[0])||!a["*"]&&r("*")}function ot(t,e){var i,n,r=Dt.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&Dt.extend(!0,t,n),t}function st(t,e,i){for(var n,r,a,o,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){l.unshift(r);break}if(l[0]in i)a=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){a=r;break}o||(o=r)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),i[a]}function lt(t,e,i,n){var r,a,o,s,l,u={},h=t.dataTypes.slice();if(h[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(a=h.shift();a;)if(t.responseFields[a]&&(i[t.responseFields[a]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=h.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(o=u[l+" "+a]||u["* "+a],!o)for(r in u)if(s=r.split(" "),s[1]===a&&(o=u[l+" "+s[0]]||u["* "+s[0]])){o===!0?o=u[r]:u[r]!==!0&&(a=s[0],h.unshift(s[1]));break}if(o!==!0)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}var ut=[],ht=i.document,ct=Object.getPrototypeOf,dt=ut.slice,pt=ut.concat,ft=ut.push,gt=ut.indexOf,mt={},vt=mt.toString,yt=mt.hasOwnProperty,_t=yt.toString,bt=_t.call(Object),xt={},wt=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},Mt=function(t){return null!=t&&t===t.window},St={type:!0,src:!0,noModule:!0},kt="3.3.1",Dt=function(t,e){return new Dt.fn.init(t,e)},Tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;Dt.fn=Dt.prototype={jquery:kt,constructor:Dt,length:0,toArray:function(){return dt.call(this)},get:function(t){return null==t?dt.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=Dt.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return Dt.each(this,t)},map:function(t){return this.pushStack(Dt.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(dt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:ft,sort:ut.sort,splice:ut.splice},Dt.extend=Dt.fn.extend=function(){var t,e,i,n,r,a,o=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[s]||{},s++),"object"==typeof o||wt(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=o[e],n=t[e],o!==n&&(u&&n&&(Dt.isPlainObject(n)||(r=Array.isArray(n)))?(r?(r=!1,a=i&&Array.isArray(i)?i:[]):a=i&&Dt.isPlainObject(i)?i:{},o[e]=Dt.extend(u,a,n)):void 0!==n&&(o[e]=n));return o},Dt.extend({expando:"jQuery"+(kt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==vt.call(t))&&(!(e=ct(t))||(i=yt.call(e,"constructor")&&e.constructor,"function"==typeof i&&_t.call(i)===bt))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){o(t)},each:function(t,e){var i,n=0;if(l(t))for(i=t.length;n<i&&e.call(t[n],n,t[n])!==!1;n++);else for(n in t)if(e.call(t[n],n,t[n])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(Tt,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(l(Object(t))?Dt.merge(i,"string"==typeof t?[t]:t):ft.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:gt.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n,r=[],a=0,o=t.length,s=!i;a<o;a++)n=!e(t[a],a),n!==s&&r.push(t[a]);return r},map:function(t,e,i){var n,r,a=0,o=[];if(l(t))for(n=t.length;a<n;a++)r=e(t[a],a,i),null!=r&&o.push(r);else for(a in t)r=e(t[a],a,i),null!=r&&o.push(r);return pt.apply([],o)},guid:1,support:xt}),"function"==typeof Symbol&&(Dt.fn[Symbol.iterator]=ut[Symbol.iterator]),Dt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){mt["[object "+e+"]"]=e.toLowerCase()});var Lt=function(t){function e(t,e,i,n){var r,a,o,s,l,u,h,d=e&&e.ownerDocument,f=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return i;if(!n&&((e?e.ownerDocument||e:W)!==E&&P(e),e=e||E,R)){if(11!==f&&(l=vt.exec(t)))if(r=l[1]){if(9===f){if(!(o=e.getElementById(r)))return i;if(o.id===r)return i.push(o),i}else if(d&&(o=d.getElementById(r))&&N(e,o)&&o.id===r)return i.push(o),i}else{if(l[2])return J.apply(i,e.getElementsByTagName(t)),i;if((r=l[3])&&w.getElementsByClassName&&e.getElementsByClassName)return J.apply(i,e.getElementsByClassName(r)),i}if(w.qsa&&!G[t+" "]&&(!H||!H.test(t))){if(1!==f)d=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(xt,wt):e.setAttribute("id",s=F),u=D(t),a=u.length;a--;)u[a]="#"+s+" "+p(u[a]);h=u.join(","),d=yt.test(t)&&c(e.parentNode)||e}if(h)try{return J.apply(i,d.querySelectorAll(h)),i}catch(g){}finally{s===F&&e.removeAttribute("id")}}}return L(t.replace(st,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>M.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[F]=!0,t}function r(t){var e=E.createElement("fieldset");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t,e){for(var i=t.split("|"),n=i.length;n--;)M.attrHandle[i[n]]=e}function o(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function s(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function u(t){return function(e){return"form"in e?e.parentNode&&e.disabled===!1?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&St(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function h(t){return n(function(e){return e=+e,n(function(i,n){for(var r,a=t([],i.length,e),o=a.length;o--;)i[r=a[o]]&&(i[r]=!(n[r]=i[r]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function d(){}function p(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function f(t,e,i){var n=e.dir,r=e.next,a=r||n,o=i&&"parentNode"===a,s=j++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||o)return t(e,i,r);return!1}:function(e,i,l){var u,h,c,d=[B,s];if(l){for(;e=e[n];)if((1===e.nodeType||o)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||o)if(c=e[F]||(e[F]={}),h=c[e.uniqueID]||(c[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[n]||e;else{if((u=h[a])&&u[0]===B&&u[1]===s)return d[2]=u[2];if(h[a]=d,d[2]=t(e,i,l))return!0}return!1}}function g(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function m(t,i,n){for(var r=0,a=i.length;r<a;r++)e(t,i[r],n);return n}function v(t,e,i,n,r){for(var a,o=[],s=0,l=t.length,u=null!=e;s<l;s++)(a=t[s])&&(i&&!i(a,n,r)||(o.push(a),u&&e.push(s)));return o}function y(t,e,i,r,a,o){return r&&!r[F]&&(r=y(r)),a&&!a[F]&&(a=y(a,o)),n(function(n,o,s,l){var u,h,c,d=[],p=[],f=o.length,g=n||m(e||"*",s.nodeType?[s]:s,[]),y=!t||!n&&e?g:v(g,d,t,s,l),_=i?a||(n?t:f||r)?[]:o:y;if(i&&i(y,_,s,l),r)for(u=v(_,p),r(u,[],s,l),h=u.length;h--;)(c=u[h])&&(_[p[h]]=!(y[p[h]]=c));if(n){if(a||t){if(a){for(u=[],h=_.length;h--;)(c=_[h])&&u.push(y[h]=c);a(null,_=[],u,l)}for(h=_.length;h--;)(c=_[h])&&(u=a?tt(n,c):d[h])>-1&&(n[u]=!(o[u]=c))}}else _=v(_===o?_.splice(f,_.length):_),a?a(null,o,_,l):J.apply(o,_)})}function _(t){for(var e,i,n,r=t.length,a=M.relative[t[0].type],o=a||M.relative[" "],s=a?1:0,l=f(function(t){return t===e},o,!0),u=f(function(t){return tt(e,t)>-1},o,!0),h=[function(t,i,n){var r=!a&&(n||i!==C)||((e=i).nodeType?l(t,i,n):u(t,i,n));return e=null,r}];s<r;s++)if(i=M.relative[t[s].type])h=[f(g(h),i)];else{if(i=M.filter[t[s].type].apply(null,t[s].matches),i[F]){for(n=++s;n<r&&!M.relative[t[n].type];n++);return y(s>1&&g(h),s>1&&p(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(st,"$1"),i,s<n&&_(t.slice(s,n)),n<r&&_(t=t.slice(n)),n<r&&p(t))}h.push(i)}return g(h)}function b(t,i){var r=i.length>0,a=t.length>0,o=function(n,o,s,l,u){var h,c,d,p=0,f="0",g=n&&[],m=[],y=C,_=n||a&&M.find.TAG("*",u),b=B+=null==y?1:Math.random()||.1,x=_.length;for(u&&(C=o===E||o||u);f!==x&&null!=(h=_[f]);f++){if(a&&h){for(c=0,o||h.ownerDocument===E||(P(h),s=!R);d=t[c++];)if(d(h,o||E,s)){l.push(h);break}u&&(B=b)}r&&((h=!d&&h)&&p--,n&&g.push(h))}if(p+=f,r&&f!==p){for(c=0;d=i[c++];)d(g,m,o,s);if(n){if(p>0)for(;f--;)g[f]||m[f]||(m[f]=Z.call(l));m=v(m)}J.apply(l,m),u&&!n&&m.length>0&&p+i.length>1&&e.uniqueSort(l)}return u&&(B=b,C=y),g};return r?n(o):o}var x,w,M,S,k,D,T,L,C,I,A,P,E,O,R,H,z,Y,N,F="sizzle"+1*new Date,W=t.document,B=0,j=0,V=i(),$=i(),G=i(),U=function(t,e){return t===e&&(A=!0),0},q={}.hasOwnProperty,X=[],Z=X.pop,K=X.push,J=X.push,Q=X.slice,tt=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",rt="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+it+"*\\]",at=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",ot=new RegExp(it+"+","g"),st=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),lt=new RegExp("^"+it+"*,"+it+"*"),ut=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ht=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),ct=new RegExp(at),dt=new RegExp("^"+nt+"$"),pt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},ft=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,_t=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),bt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},xt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Mt=function(){P()},St=f(function(t){return t.disabled===!0&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{J.apply(X=Q.call(W.childNodes),W.childNodes),X[W.childNodes.length].nodeType}catch(kt){J={apply:X.length?function(t,e){K.apply(t,Q.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}w=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},P=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:W;return n!==E&&9===n.nodeType&&n.documentElement?(E=n,O=E.documentElement,R=!k(E),W!==E&&(i=E.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",Mt,!1):i.attachEvent&&i.attachEvent("onunload",Mt)),w.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=r(function(t){return t.appendChild(E.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=mt.test(E.getElementsByClassName),w.getById=r(function(t){return O.appendChild(t).id=F,!E.getElementsByName||!E.getElementsByName(F).length}),w.getById?(M.filter.ID=function(t){var e=t.replace(_t,bt);return function(t){return t.getAttribute("id")===e}},M.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&R){var i=e.getElementById(t);return i?[i]:[]}}):(M.filter.ID=function(t){var e=t.replace(_t,bt);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},M.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&R){var i,n,r,a=e.getElementById(t);if(a){if(i=a.getAttributeNode("id"),i&&i.value===t)return[a];for(r=e.getElementsByName(t),n=0;a=r[n++];)if(i=a.getAttributeNode("id"),i&&i.value===t)return[a]}return[]}}),M.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,a=e.getElementsByTagName(t);if("*"===t){for(;i=a[r++];)1===i.nodeType&&n.push(i);return n}return a},M.find.CLASS=w.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&R)return e.getElementsByClassName(t)},z=[],H=[],(w.qsa=mt.test(E.querySelectorAll))&&(r(function(t){O.appendChild(t).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||H.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+F+"-]").length||H.push("~="),t.querySelectorAll(":checked").length||H.push(":checked"),t.querySelectorAll("a#"+F+"+*").length||H.push(".#.+[+~]")}),r(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=E.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&H.push("name"+it+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&H.push(":enabled",":disabled"),O.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&H.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),H.push(",.*:")})),(w.matchesSelector=mt.test(Y=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(t){w.disconnectedMatch=Y.call(t,"*"),Y.call(t,"[s!='']:x"),z.push("!=",at)}),H=H.length&&new RegExp(H.join("|")),z=z.length&&new RegExp(z.join("|")),e=mt.test(O.compareDocumentPosition),N=e||mt.test(O.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=e?function(t,e){if(t===e)return A=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!w.sortDetached&&e.compareDocumentPosition(t)===i?t===E||t.ownerDocument===W&&N(W,t)?-1:e===E||e.ownerDocument===W&&N(W,e)?1:I?tt(I,t)-tt(I,e):0:4&i?-1:1)}:function(t,e){if(t===e)return A=!0,0;var i,n=0,r=t.parentNode,a=e.parentNode,s=[t],l=[e];if(!r||!a)return t===E?-1:e===E?1:r?-1:a?1:I?tt(I,t)-tt(I,e):0;if(r===a)return o(t,e);for(i=t;i=i.parentNode;)s.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;s[n]===l[n];)n++;return n?o(s[n],l[n]):s[n]===W?-1:l[n]===W?1:0},E):E},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==E&&P(t),i=i.replace(ht,"='$1']"),w.matchesSelector&&R&&!G[i+" "]&&(!z||!z.test(i))&&(!H||!H.test(i)))try{var n=Y.call(t,i);if(n||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(r){}return e(i,E,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==E&&P(t),N(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==E&&P(t);var i=M.attrHandle[e.toLowerCase()],n=i&&q.call(M.attrHandle,e.toLowerCase())?i(t,e,!R):void 0;return void 0!==n?n:w.attributes||!R?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.escape=function(t){return(t+"").replace(xt,wt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(A=!w.detectDuplicates,I=!w.sortStable&&t.slice(0),t.sort(U),A){for(;e=t[r++];)e===t[r]&&(n=i.push(r));for(;n--;)t.splice(i[n],1)}return I=null,t},S=e.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=S(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=S(e);return i},M=e.selectors={cacheLength:50,createPseudo:n,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(_t,bt),t[3]=(t[3]||t[4]||t[5]||"").replace(_t,bt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4); },CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ct.test(i)&&(e=D(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(_t,bt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=V[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&V(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(r){var a=e.attr(r,t);return null==a?"!="===i:!i||(a+="","="===i?a===n:"!="===i?a!==n:"^="===i?n&&0===a.indexOf(n):"*="===i?n&&a.indexOf(n)>-1:"$="===i?n&&a.slice(-n.length)===n:"~="===i?(" "+a.replace(ot," ")+" ").indexOf(n)>-1:"|="===i&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,r){var a="nth"!==t.slice(0,3),o="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var u,h,c,d,p,f,g=a!==o?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,_=!1;if(m){if(a){for(;g;){for(d=e;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&y){for(d=m,c=d[F]||(d[F]={}),h=c[d.uniqueID]||(c[d.uniqueID]={}),u=h[t]||[],p=u[0]===B&&u[1],_=p&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(_=p=0)||f.pop();)if(1===d.nodeType&&++_&&d===e){h[t]=[B,p,_];break}}else if(y&&(d=e,c=d[F]||(d[F]={}),h=c[d.uniqueID]||(c[d.uniqueID]={}),u=h[t]||[],p=u[0]===B&&u[1],_=p),_===!1)for(;(d=++p&&d&&d[g]||(_=p=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++_||(y&&(c=d[F]||(d[F]={}),h=c[d.uniqueID]||(c[d.uniqueID]={}),h[t]=[B,_]),d!==e)););return _-=r,_===n||_%n===0&&_/n>=0}}},PSEUDO:function(t,i){var r,a=M.pseudos[t]||M.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return a[F]?a(i):a.length>1?(r=[t,t,"",i],M.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,r=a(t,i),o=r.length;o--;)n=tt(t,r[o]),t[n]=!(e[n]=r[o])}):function(t){return a(t,0,r)}):a}},pseudos:{not:n(function(t){var e=[],i=[],r=T(t.replace(st,"$1"));return r[F]?n(function(t,e,i,n){for(var a,o=r(t,null,n,[]),s=t.length;s--;)(a=o[s])&&(t[s]=!(e[s]=a))}):function(t,n,a){return e[0]=t,r(e,null,a,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(_t,bt),function(e){return(e.textContent||e.innerText||S(e)).indexOf(t)>-1}}),lang:n(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(_t,bt).toLowerCase(),function(e){var i;do if(i=R?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===O},focus:function(t){return t===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:u(!1),disabled:u(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!M.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return ft.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:h(function(){return[0]}),last:h(function(t,e){return[e-1]}),eq:h(function(t,e,i){return[i<0?i+e:i]}),even:h(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:h(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:h(function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t}),gt:h(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}},M.pseudos.nth=M.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})M.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})M.pseudos[x]=l(x);return d.prototype=M.filters=M.pseudos,M.setFilters=new d,D=e.tokenize=function(t,i){var n,r,a,o,s,l,u,h=$[t+" "];if(h)return i?0:h.slice(0);for(s=t,l=[],u=M.preFilter;s;){n&&!(r=lt.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(a=[])),n=!1,(r=ut.exec(s))&&(n=r.shift(),a.push({value:n,type:r[0].replace(st," ")}),s=s.slice(n.length));for(o in M.filter)!(r=pt[o].exec(s))||u[o]&&!(r=u[o](r))||(n=r.shift(),a.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return i?s.length:s?e.error(t):$(t,l).slice(0)},T=e.compile=function(t,e){var i,n=[],r=[],a=G[t+" "];if(!a){for(e||(e=D(t)),i=e.length;i--;)a=_(e[i]),a[F]?n.push(a):r.push(a);a=G(t,b(r,n)),a.selector=t}return a},L=e.select=function(t,e,i,n){var r,a,o,s,l,u="function"==typeof t&&t,h=!n&&D(t=u.selector||t);if(i=i||[],1===h.length){if(a=h[0]=h[0].slice(0),a.length>2&&"ID"===(o=a[0]).type&&9===e.nodeType&&R&&M.relative[a[1].type]){if(e=(M.find.ID(o.matches[0].replace(_t,bt),e)||[])[0],!e)return i;u&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(r=pt.needsContext.test(t)?0:a.length;r--&&(o=a[r],!M.relative[s=o.type]);)if((l=M.find[s])&&(n=l(o.matches[0].replace(_t,bt),yt.test(a[0].type)&&c(e.parentNode)||e))){if(a.splice(r,1),t=n.length&&p(a),!t)return J.apply(i,n),i;break}}return(u||T(t,h))(n,e,!R,i,!e||yt.test(t)&&c(e.parentNode)||e),i},w.sortStable=F.split("").sort(U).join("")===F,w.detectDuplicates=!!A,P(),w.sortDetached=r(function(t){return 1&t.compareDocumentPosition(E.createElement("fieldset"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||a("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||a("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||a(et,function(t,e,i){var n;if(!i)return t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(i);Dt.find=Lt,Dt.expr=Lt.selectors,Dt.expr[":"]=Dt.expr.pseudos,Dt.uniqueSort=Dt.unique=Lt.uniqueSort,Dt.text=Lt.getText,Dt.isXMLDoc=Lt.isXML,Dt.contains=Lt.contains,Dt.escapeSelector=Lt.escape;var Ct=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&Dt(t).is(i))break;n.push(t)}return n},It=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},At=Dt.expr.match.needsContext,Pt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Dt.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?Dt.find.matchesSelector(n,t)?[n]:[]:Dt.find.matches(t,Dt.grep(e,function(t){return 1===t.nodeType}))},Dt.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(Dt(t).filter(function(){for(e=0;e<n;e++)if(Dt.contains(r[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)Dt.find(t,r[e],i);return n>1?Dt.uniqueSort(i):i},filter:function(t){return this.pushStack(h(this,t||[],!1))},not:function(t){return this.pushStack(h(this,t||[],!0))},is:function(t){return!!h(this,"string"==typeof t&&At.test(t)?Dt(t):t||[],!1).length}});var Et,Ot=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Rt=Dt.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||Et,"string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Ot.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof Dt?e[0]:e,Dt.merge(this,Dt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:ht,!0)),Pt.test(n[1])&&Dt.isPlainObject(e))for(n in e)wt(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return r=ht.getElementById(n[2]),r&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):wt(t)?void 0!==i.ready?i.ready(t):t(Dt):Dt.makeArray(t,this)};Rt.prototype=Dt.fn,Et=Dt(ht);var Ht=/^(?:parents|prev(?:Until|All))/,zt={children:!0,contents:!0,next:!0,prev:!0};Dt.fn.extend({has:function(t){var e=Dt(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(Dt.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,r=this.length,a=[],o="string"!=typeof t&&Dt(t);if(!At.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&Dt.find.matchesSelector(i,t))){a.push(i);break}return this.pushStack(a.length>1?Dt.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?gt.call(Dt(t),this[0]):gt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Dt.uniqueSort(Dt.merge(this.get(),Dt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Dt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Ct(t,"parentNode")},parentsUntil:function(t,e,i){return Ct(t,"parentNode",i)},next:function(t){return c(t,"nextSibling")},prev:function(t){return c(t,"previousSibling")},nextAll:function(t){return Ct(t,"nextSibling")},prevAll:function(t){return Ct(t,"previousSibling")},nextUntil:function(t,e,i){return Ct(t,"nextSibling",i)},prevUntil:function(t,e,i){return Ct(t,"previousSibling",i)},siblings:function(t){return It((t.parentNode||{}).firstChild,t)},children:function(t){return It(t.firstChild)},contents:function(t){return u(t,"iframe")?t.contentDocument:(u(t,"template")&&(t=t.content||t),Dt.merge([],t.childNodes))}},function(t,e){Dt.fn[t]=function(i,n){var r=Dt.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=Dt.filter(n,r)),this.length>1&&(zt[t]||Dt.uniqueSort(r),Ht.test(t)&&r.reverse()),this.pushStack(r)}});var Yt=/[^\x20\t\r\n\f]+/g;Dt.Callbacks=function(t){t="string"==typeof t?d(t):Dt.extend({},t);var e,i,n,r,a=[],o=[],l=-1,u=function(){for(r=r||t.once,n=e=!0;o.length;l=-1)for(i=o.shift();++l<a.length;)a[l].apply(i[0],i[1])===!1&&t.stopOnFalse&&(l=a.length,i=!1);t.memory||(i=!1),e=!1,r&&(a=i?[]:"")},h={add:function(){return a&&(i&&!e&&(l=a.length-1,o.push(i)),function n(e){Dt.each(e,function(e,i){wt(i)?t.unique&&h.has(i)||a.push(i):i&&i.length&&"string"!==s(i)&&n(i)})}(arguments),i&&!e&&u()),this},remove:function(){return Dt.each(arguments,function(t,e){for(var i;(i=Dt.inArray(e,a,i))>-1;)a.splice(i,1),i<=l&&l--}),this},has:function(t){return t?Dt.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=o=[],a=i="",this},disabled:function(){return!a},lock:function(){return r=o=[],i||e||(a=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=i||[],i=[t,i.slice?i.slice():i],o.push(i),e||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},Dt.extend({Deferred:function(t){var e=[["notify","progress",Dt.Callbacks("memory"),Dt.Callbacks("memory"),2],["resolve","done",Dt.Callbacks("once memory"),Dt.Callbacks("once memory"),0,"resolved"],["reject","fail",Dt.Callbacks("once memory"),Dt.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},"catch":function(t){return r.then(null,t)},pipe:function(){var t=arguments;return Dt.Deferred(function(i){Dt.each(e,function(e,n){var r=wt(t[n[4]])&&t[n[4]];a[n[1]](function(){var t=r&&r.apply(this,arguments);t&&wt(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,n,r){function a(t,e,n,r){return function(){var s=this,l=arguments,u=function(){var i,u;if(!(t<o)){if(i=n.apply(s,l),i===e.promise())throw new TypeError("Thenable self-resolution");u=i&&("object"==typeof i||"function"==typeof i)&&i.then,wt(u)?r?u.call(i,a(o,e,p,r),a(o,e,f,r)):(o++,u.call(i,a(o,e,p,r),a(o,e,f,r),a(o,e,p,e.notifyWith))):(n!==p&&(s=void 0,l=[i]),(r||e.resolveWith)(s,l))}},h=r?u:function(){try{u()}catch(i){Dt.Deferred.exceptionHook&&Dt.Deferred.exceptionHook(i,h.stackTrace),t+1>=o&&(n!==f&&(s=void 0,l=[i]),e.rejectWith(s,l))}};t?h():(Dt.Deferred.getStackHook&&(h.stackTrace=Dt.Deferred.getStackHook()),i.setTimeout(h))}}var o=0;return Dt.Deferred(function(i){e[0][3].add(a(0,i,wt(r)?r:p,i.notifyWith)),e[1][3].add(a(0,i,wt(t)?t:p)),e[2][3].add(a(0,i,wt(n)?n:f))}).promise()},promise:function(t){return null!=t?Dt.extend(t,r):r}},a={};return Dt.each(e,function(t,i){var o=i[2],s=i[5];r[i[1]]=o.add,s&&o.add(function(){n=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(i[3].fire),a[i[0]]=function(){return a[i[0]+"With"](this===a?void 0:this,arguments),this},a[i[0]+"With"]=o.fireWith}),r.promise(a),t&&t.call(a,a),a},when:function(t){var e=arguments.length,i=e,n=Array(i),r=dt.call(arguments),a=Dt.Deferred(),o=function(t){return function(i){n[t]=this,r[t]=arguments.length>1?dt.call(arguments):i,--e||a.resolveWith(n,r)}};if(e<=1&&(g(t,a.done(o(i)).resolve,a.reject,!e),"pending"===a.state()||wt(r[i]&&r[i].then)))return a.then();for(;i--;)g(r[i],o(i),a.reject);return a.promise()}});var Nt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Dt.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&Nt.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},Dt.readyException=function(t){i.setTimeout(function(){throw t})};var Ft=Dt.Deferred();Dt.fn.ready=function(t){return Ft.then(t)["catch"](function(t){Dt.readyException(t)}),this},Dt.extend({isReady:!1,readyWait:1,ready:function(t){(t===!0?--Dt.readyWait:Dt.isReady)||(Dt.isReady=!0,t!==!0&&--Dt.readyWait>0||Ft.resolveWith(ht,[Dt]))}}),Dt.ready.then=Ft.then,"complete"===ht.readyState||"loading"!==ht.readyState&&!ht.documentElement.doScroll?i.setTimeout(Dt.ready):(ht.addEventListener("DOMContentLoaded",m),i.addEventListener("load",m));var Wt=function(t,e,i,n,r,a,o){var l=0,u=t.length,h=null==i;if("object"===s(i)){r=!0;for(l in i)Wt(t,e,l,i[l],!0,a,o)}else if(void 0!==n&&(r=!0,wt(n)||(o=!0),h&&(o?(e.call(t,n),e=null):(h=e,e=function(t,e,i){return h.call(Dt(t),i)})),e))for(;l<u;l++)e(t[l],i,o?n:n.call(t[l],l,e(t[l],i)));return r?t:h?e.call(t):u?e(t[0],i):a},Bt=/^-ms-/,jt=/-([a-z])/g,Vt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};_.uid=1,_.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Vt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[y(e)]=i;else for(n in e)r[y(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][y(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){Array.isArray(e)?e=e.map(y):(e=y(e),e=e in n?[e]:e.match(Yt)||[]),i=e.length;for(;i--;)delete n[e[i]]}(void 0===e||Dt.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!Dt.isEmptyObject(e)}};var $t=new _,Gt=new _,Ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,qt=/[A-Z]/g;Dt.extend({hasData:function(t){return Gt.hasData(t)||$t.hasData(t)},data:function(t,e,i){return Gt.access(t,e,i)},removeData:function(t,e){Gt.remove(t,e)},_data:function(t,e,i){return $t.access(t,e,i)},_removeData:function(t,e){$t.remove(t,e)}}),Dt.fn.extend({data:function(t,e){var i,n,r,a=this[0],o=a&&a.attributes;if(void 0===t){if(this.length&&(r=Gt.get(a),1===a.nodeType&&!$t.get(a,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&(n=o[i].name,0===n.indexOf("data-")&&(n=y(n.slice(5)),x(a,n,r[n])));$t.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){Gt.set(this,t)}):Wt(this,function(e){var i;if(a&&void 0===e){if(i=Gt.get(a,t),void 0!==i)return i;if(i=x(a,t),void 0!==i)return i}else this.each(function(){Gt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Gt.remove(this,t)})}}),Dt.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=$t.get(t,e),i&&(!n||Array.isArray(i)?n=$t.access(t,e,Dt.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=Dt.queue(t,e),n=i.length,r=i.shift(),a=Dt._queueHooks(t,e),o=function(){Dt.dequeue(t,e)};"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete a.stop,r.call(t,o,a)),!n&&a&&a.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return $t.get(t,i)||$t.access(t,i,{empty:Dt.Callbacks("once memory").add(function(){$t.remove(t,[e+"queue",i])})})}}),Dt.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?Dt.queue(this[0],t):void 0===e?this:this.each(function(){var i=Dt.queue(this,t,e);Dt._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&Dt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){Dt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=Dt.Deferred(),a=this,o=this.length,s=function(){--n||r.resolveWith(a,[a])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)i=$t.get(a[o],t+"queueHooks"),i&&i.empty&&(n++,i.empty.add(s));return s(),r.promise(e)}});var Xt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Zt=new RegExp("^(?:([+-])=|)("+Xt+")([a-z%]*)$","i"),Kt=["Top","Right","Bottom","Left"],Jt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&Dt.contains(t.ownerDocument,t)&&"none"===Dt.css(t,"display")},Qt=function(t,e,i,n){var r,a,o={};for(a in e)o[a]=t.style[a],t.style[a]=e[a];r=i.apply(t,n||[]);for(a in e)t.style[a]=o[a];return r},te={};Dt.fn.extend({show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Jt(this)?Dt(this).show():Dt(this).hide()})}});var ee=/^(?:checkbox|radio)$/i,ie=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ne=/^$|^module$|\/(?:java|ecma)script/i,re={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};re.optgroup=re.option,re.tbody=re.tfoot=re.colgroup=re.caption=re.thead,re.th=re.td;var ae=/<|&#?\w+;/;!function(){var t=ht.createDocumentFragment(),e=t.appendChild(ht.createElement("div")),i=ht.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),xt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",xt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var oe=ht.documentElement,se=/^key/,le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ue=/^([^.]*)(?:\.(.+)|)/;Dt.event={global:{},add:function(t,e,i,n,r){var a,o,s,l,u,h,c,d,p,f,g,m=$t.get(t);if(m)for(i.handler&&(a=i,i=a.handler,r=a.selector),r&&Dt.find.matchesSelector(oe,r),i.guid||(i.guid=Dt.guid++),(l=m.events)||(l=m.events={}),(o=m.handle)||(o=m.handle=function(e){return"undefined"!=typeof Dt&&Dt.event.triggered!==e.type?Dt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Yt)||[""],u=e.length;u--;)s=ue.exec(e[u])||[],p=g=s[1],f=(s[2]||"").split(".").sort(),p&&(c=Dt.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,c=Dt.event.special[p]||{},h=Dt.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&Dt.expr.match.needsContext.test(r),namespace:f.join(".")},a),(d=l[p])||(d=l[p]=[],d.delegateCount=0,c.setup&&c.setup.call(t,n,f,o)!==!1||t.addEventListener&&t.addEventListener(p,o)),c.add&&(c.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),r?d.splice(d.delegateCount++,0,h):d.push(h),Dt.event.global[p]=!0)},remove:function(t,e,i,n,r){var a,o,s,l,u,h,c,d,p,f,g,m=$t.hasData(t)&&$t.get(t);if(m&&(l=m.events)){for(e=(e||"").match(Yt)||[""],u=e.length;u--;)if(s=ue.exec(e[u])||[],p=g=s[1],f=(s[2]||"").split(".").sort(),p){for(c=Dt.event.special[p]||{},p=(n?c.delegateType:c.bindType)||p,d=l[p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=d.length;a--;)h=d[a],!r&&g!==h.origType||i&&i.guid!==h.guid||s&&!s.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(d.splice(a,1),h.selector&&d.delegateCount--,c.remove&&c.remove.call(t,h));o&&!d.length&&(c.teardown&&c.teardown.call(t,f,m.handle)!==!1||Dt.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)Dt.event.remove(t,p+e[u],i,n,!0);Dt.isEmptyObject(l)&&$t.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,a,o,s=Dt.event.fix(t),l=new Array(arguments.length),u=($t.get(this,"events")||{})[s.type]||[],h=Dt.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!h.preDispatch||h.preDispatch.call(this,s)!==!1){for(o=Dt.event.handlers.call(this,s,u),e=0;(r=o[e++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,i=0;(a=r.handlers[i++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,n=((Dt.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,l),void 0!==n&&(s.result=n)===!1&&(s.preventDefault(),s.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,s),s.result}},handlers:function(t,e){var i,n,r,a,o,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||u.disabled!==!0)){for(a=[],o={},i=0;i<l;i++)n=e[i],r=n.selector+" ",void 0===o[r]&&(o[r]=n.needsContext?Dt(r,this).index(u)>-1:Dt.find(r,this,null,[u]).length),o[r]&&a.push(n);a.length&&s.push({elem:u,handlers:a})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(Dt.Event.prototype,t,{enumerable:!0,configurable:!0,get:wt(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[Dt.expando]?t:new Dt.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==I()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===I()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&u(this,"input"))return this.click(),!1},_default:function(t){return u(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},Dt.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},Dt.Event=function(t,e){return this instanceof Dt.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?L:C,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&Dt.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),void(this[Dt.expando]=!0)):new Dt.Event(t,e)},Dt.Event.prototype={constructor:Dt.Event,isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=L,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=L,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=L,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},Dt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&se.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&le.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},Dt.event.addProp),Dt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){Dt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,a=t.handleObj;return r&&(r===n||Dt.contains(n,r))||(t.type=a.origType,i=a.handler.apply(this,arguments),t.type=e),i}}}),Dt.fn.extend({on:function(t,e,i,n){return A(this,t,e,i,n)},one:function(t,e,i,n){return A(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,Dt(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return e!==!1&&"function"!=typeof e||(i=e,e=void 0),i===!1&&(i=C),this.each(function(){Dt.event.remove(this,t,i,e)})}});var he=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ce=/<script|<style|<link/i,de=/checked\s*(?:[^=]|=\s*.checked.)/i,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;Dt.extend({htmlPrefilter:function(t){return t.replace(he,"<$1></$2>")},clone:function(t,e,i){var n,r,a,o,s=t.cloneNode(!0),l=Dt.contains(t.ownerDocument,t);if(!(xt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Dt.isXMLDoc(t)))for(o=k(s),a=k(t),n=0,r=a.length;n<r;n++)H(a[n],o[n]);if(e)if(i)for(a=a||k(t),o=o||k(s),n=0,r=a.length;n<r;n++)R(a[n],o[n]);else R(t,s);return o=k(s,"script"),o.length>0&&D(o,!l&&k(t,"script")),s},cleanData:function(t){for(var e,i,n,r=Dt.event.special,a=0;void 0!==(i=t[a]);a++)if(Vt(i)){if(e=i[$t.expando]){if(e.events)for(n in e.events)r[n]?Dt.event.remove(i,n):Dt.removeEvent(i,n,e.handle);i[$t.expando]=void 0}i[Gt.expando]&&(i[Gt.expando]=void 0)}}}),Dt.fn.extend({detach:function(t){return Y(this,t,!0)},remove:function(t){return Y(this,t)},text:function(t){return Wt(this,function(t){return void 0===t?Dt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return z(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=P(this,t);e.appendChild(t)}})},prepend:function(){return z(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=P(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return z(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return z(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Dt.cleanData(k(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return Dt.clone(this,t,e)})},html:function(t){return Wt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ce.test(t)&&!re[(ie.exec(t)||["",""])[1].toLowerCase()]){t=Dt.htmlPrefilter(t);try{for(;i<n;i++)e=this[i]||{},1===e.nodeType&&(Dt.cleanData(k(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return z(this,arguments,function(e){var i=this.parentNode;Dt.inArray(this,t)<0&&(Dt.cleanData(k(this)),i&&i.replaceChild(e,this))},t)}}),Dt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){Dt.fn[t]=function(t){for(var i,n=[],r=Dt(t),a=r.length-1,o=0;o<=a;o++)i=o===a?this:this.clone(!0),Dt(r[o])[e](i),ft.apply(n,i.get());return this.pushStack(n)}});var fe=new RegExp("^("+Xt+")(?!px)[a-z%]+$","i"),ge=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},me=new RegExp(Kt.join("|"),"i");!function(){function t(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(l).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,s=12===e(t.marginLeft),u.style.right="60%",o=36===e(t.right),r=36===e(t.width),u.style.position="absolute",a=36===u.offsetWidth||"absolute",oe.removeChild(l),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,a,o,s,l=ht.createElement("div"),u=ht.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",xt.clearCloneStyle="content-box"===u.style.backgroundClip,Dt.extend(xt,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),s},scrollboxSize:function(){return t(),a}}))}();var ve=/^(none|table(?!-c[ea]).+)/,ye=/^--/,_e={position:"absolute",visibility:"hidden",display:"block"},be={letterSpacing:"0",fontWeight:"400"},xe=["Webkit","Moz","ms"],we=ht.createElement("div").style;Dt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=N(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,a,o,s=y(e),l=ye.test(e),u=t.style;return l||(e=B(s)),o=Dt.cssHooks[e]||Dt.cssHooks[s],void 0===i?o&&"get"in o&&void 0!==(r=o.get(t,!1,n))?r:u[e]:(a=typeof i,"string"===a&&(r=Zt.exec(i))&&r[1]&&(i=w(t,e,r),a="number"),null!=i&&i===i&&("number"===a&&(i+=r&&r[3]||(Dt.cssNumber[s]?"":"px")),xt.clearCloneStyle||""!==i||0!==e.indexOf("background")||(u[e]="inherit"),o&&"set"in o&&void 0===(i=o.set(t,i,n))||(l?u.setProperty(e,i):u[e]=i)),void 0)}},css:function(t,e,i,n){var r,a,o,s=y(e),l=ye.test(e);return l||(e=B(s)),o=Dt.cssHooks[e]||Dt.cssHooks[s],o&&"get"in o&&(r=o.get(t,!0,i)),void 0===r&&(r=N(t,e,n)),"normal"===r&&e in be&&(r=be[e]),""===i||i?(a=parseFloat(r),i===!0||isFinite(a)?a||0:r):r}}),Dt.each(["height","width"],function(t,e){Dt.cssHooks[e]={get:function(t,i,n){if(i)return!ve.test(Dt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?$(t,e,n):Qt(t,_e,function(){return $(t,e,n)})},set:function(t,i,n){var r,a=ge(t),o="border-box"===Dt.css(t,"boxSizing",!1,a),s=n&&V(t,e,n,o,a);return o&&xt.scrollboxSize()===a.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(a[e])-V(t,e,"border",!1,a)-.5)),s&&(r=Zt.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=Dt.css(t,e)),j(t,i,s)}}}),Dt.cssHooks.marginLeft=F(xt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(N(t,"marginLeft"))||t.getBoundingClientRect().left-Qt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),Dt.each({margin:"",padding:"",border:"Width"},function(t,e){Dt.cssHooks[t+e]={expand:function(i){for(var n=0,r={},a="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+Kt[n]+e]=a[n]||a[n-2]||a[0]; return r}},"margin"!==t&&(Dt.cssHooks[t+e].set=j)}),Dt.fn.extend({css:function(t,e){return Wt(this,function(t,e,i){var n,r,a={},o=0;if(Array.isArray(e)){for(n=ge(t),r=e.length;o<r;o++)a[e[o]]=Dt.css(t,e[o],!1,n);return a}return void 0!==i?Dt.style(t,e,i):Dt.css(t,e)},t,e,arguments.length>1)}}),Dt.Tween=G,G.prototype={constructor:G,init:function(t,e,i,n,r,a){this.elem=t,this.prop=i,this.easing=r||Dt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=a||(Dt.cssNumber[i]?"":"px")},cur:function(){var t=G.propHooks[this.prop];return t&&t.get?t.get(this):G.propHooks._default.get(this)},run:function(t){var e,i=G.propHooks[this.prop];return this.options.duration?this.pos=e=Dt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):G.propHooks._default.set(this),this}},G.prototype.init.prototype=G.prototype,G.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=Dt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){Dt.fx.step[t.prop]?Dt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[Dt.cssProps[t.prop]]&&!Dt.cssHooks[t.prop]?t.elem[t.prop]=t.now:Dt.style(t.elem,t.prop,t.now+t.unit)}}},G.propHooks.scrollTop=G.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Dt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},Dt.fx=G.prototype.init,Dt.fx.step={};var Me,Se,ke=/^(?:toggle|show|hide)$/,De=/queueHooks$/;Dt.Animation=Dt.extend(Q,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return w(i.elem,t,Zt.exec(e),i),i}]},tweener:function(t,e){wt(t)?(e=t,t=["*"]):t=t.match(Yt);for(var i,n=0,r=t.length;n<r;n++)i=t[n],Q.tweeners[i]=Q.tweeners[i]||[],Q.tweeners[i].unshift(e)},prefilters:[K],prefilter:function(t,e){e?Q.prefilters.unshift(t):Q.prefilters.push(t)}}),Dt.speed=function(t,e,i){var n=t&&"object"==typeof t?Dt.extend({},t):{complete:i||!i&&e||wt(t)&&t,duration:t,easing:i&&e||e&&!wt(e)&&e};return Dt.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in Dt.fx.speeds?n.duration=Dt.fx.speeds[n.duration]:n.duration=Dt.fx.speeds._default),null!=n.queue&&n.queue!==!0||(n.queue="fx"),n.old=n.complete,n.complete=function(){wt(n.old)&&n.old.call(this),n.queue&&Dt.dequeue(this,n.queue)},n},Dt.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Jt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=Dt.isEmptyObject(t),a=Dt.speed(e,i,n),o=function(){var e=Q(this,Dt.extend({},t),a);(r||$t.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",a=Dt.timers,o=$t.get(this);if(r)o[r]&&o[r].stop&&n(o[r]);else for(r in o)o[r]&&o[r].stop&&De.test(r)&&n(o[r]);for(r=a.length;r--;)a[r].elem!==this||null!=t&&a[r].queue!==t||(a[r].anim.stop(i),e=!1,a.splice(r,1));!e&&i||Dt.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=$t.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],a=Dt.timers,o=n?n.length:0;for(i.finish=!0,Dt.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),Dt.each(["toggle","show","hide"],function(t,e){var i=Dt.fn[e];Dt.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(X(e,!0),t,n,r)}}),Dt.each({slideDown:X("show"),slideUp:X("hide"),slideToggle:X("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){Dt.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),Dt.timers=[],Dt.fx.tick=function(){var t,e=0,i=Dt.timers;for(Me=Date.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||Dt.fx.stop(),Me=void 0},Dt.fx.timer=function(t){Dt.timers.push(t),Dt.fx.start()},Dt.fx.interval=13,Dt.fx.start=function(){Se||(Se=!0,U())},Dt.fx.stop=function(){Se=null},Dt.fx.speeds={slow:600,fast:200,_default:400},Dt.fn.delay=function(t,e){return t=Dt.fx?Dt.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}})},function(){var t=ht.createElement("input"),e=ht.createElement("select"),i=e.appendChild(ht.createElement("option"));t.type="checkbox",xt.checkOn=""!==t.value,xt.optSelected=i.selected,t=ht.createElement("input"),t.value="t",t.type="radio",xt.radioValue="t"===t.value}();var Te,Le=Dt.expr.attrHandle;Dt.fn.extend({attr:function(t,e){return Wt(this,Dt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){Dt.removeAttr(this,t)})}}),Dt.extend({attr:function(t,e,i){var n,r,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof t.getAttribute?Dt.prop(t,e,i):(1===a&&Dt.isXMLDoc(t)||(r=Dt.attrHooks[e.toLowerCase()]||(Dt.expr.match.bool.test(e)?Te:void 0)),void 0!==i?null===i?void Dt.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:(n=Dt.find.attr(t,e),null==n?void 0:n))},attrHooks:{type:{set:function(t,e){if(!xt.radioValue&&"radio"===e&&u(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(Yt);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),Te={set:function(t,e,i){return e===!1?Dt.removeAttr(t,i):t.setAttribute(i,i),i}},Dt.each(Dt.expr.match.bool.source.match(/\w+/g),function(t,e){var i=Le[e]||Dt.find.attr;Le[e]=function(t,e,n){var r,a,o=e.toLowerCase();return n||(a=Le[o],Le[o]=r,r=null!=i(t,e,n)?o:null,Le[o]=a),r}});var Ce=/^(?:input|select|textarea|button)$/i,Ie=/^(?:a|area)$/i;Dt.fn.extend({prop:function(t,e){return Wt(this,Dt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Dt.propFix[t]||t]})}}),Dt.extend({prop:function(t,e,i){var n,r,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&Dt.isXMLDoc(t)||(e=Dt.propFix[e]||e,r=Dt.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=Dt.find.attr(t,"tabindex");return e?parseInt(e,10):Ce.test(t.nodeName)||Ie.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),xt.optSelected||(Dt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),Dt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Dt.propFix[this.toLowerCase()]=this}),Dt.fn.extend({addClass:function(t){var e,i,n,r,a,o,s,l=0;if(wt(t))return this.each(function(e){Dt(this).addClass(t.call(this,e,et(this)))});if(e=it(t),e.length)for(;i=this[l++];)if(r=et(i),n=1===i.nodeType&&" "+tt(r)+" "){for(o=0;a=e[o++];)n.indexOf(" "+a+" ")<0&&(n+=a+" ");s=tt(n),r!==s&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,n,r,a,o,s,l=0;if(wt(t))return this.each(function(e){Dt(this).removeClass(t.call(this,e,et(this)))});if(!arguments.length)return this.attr("class","");if(e=it(t),e.length)for(;i=this[l++];)if(r=et(i),n=1===i.nodeType&&" "+tt(r)+" "){for(o=0;a=e[o++];)for(;n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");s=tt(n),r!==s&&i.setAttribute("class",s)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):wt(t)?this.each(function(i){Dt(this).toggleClass(t.call(this,i,et(this),e),e)}):this.each(function(){var e,r,a,o;if(n)for(r=0,a=Dt(this),o=it(t);e=o[r++];)a.hasClass(e)?a.removeClass(e):a.addClass(e);else void 0!==t&&"boolean"!==i||(e=et(this),e&&$t.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":$t.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+tt(et(i))+" ").indexOf(e)>-1)return!0;return!1}});var Ae=/\r/g;Dt.fn.extend({val:function(t){var e,i,n,r=this[0];{if(arguments.length)return n=wt(t),this.each(function(i){var r;1===this.nodeType&&(r=n?t.call(this,i,Dt(this).val()):t,null==r?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=Dt.map(r,function(t){return null==t?"":t+""})),e=Dt.valHooks[this.type]||Dt.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=Dt.valHooks[r.type]||Dt.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(Ae,""):null==i?"":i)}}}),Dt.extend({valHooks:{option:{get:function(t){var e=Dt.find.attr(t,"value");return null!=e?e:tt(Dt.text(t))}},select:{get:function(t){var e,i,n,r=t.options,a=t.selectedIndex,o="select-one"===t.type,s=o?null:[],l=o?a+1:r.length;for(n=a<0?l:o?a:0;n<l;n++)if(i=r[n],(i.selected||n===a)&&!i.disabled&&(!i.parentNode.disabled||!u(i.parentNode,"optgroup"))){if(e=Dt(i).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var i,n,r=t.options,a=Dt.makeArray(e),o=r.length;o--;)n=r[o],(n.selected=Dt.inArray(Dt.valHooks.option.get(n),a)>-1)&&(i=!0);return i||(t.selectedIndex=-1),a}}}}),Dt.each(["radio","checkbox"],function(){Dt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=Dt.inArray(Dt(t).val(),e)>-1}},xt.checkOn||(Dt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),xt.focusin="onfocusin"in i;var Pe=/^(?:focusinfocus|focusoutblur)$/,Ee=function(t){t.stopPropagation()};Dt.extend(Dt.event,{trigger:function(t,e,n,r){var a,o,s,l,u,h,c,d,p=[n||ht],f=yt.call(t,"type")?t.type:t,g=yt.call(t,"namespace")?t.namespace.split("."):[];if(o=d=s=n=n||ht,3!==n.nodeType&&8!==n.nodeType&&!Pe.test(f+Dt.event.triggered)&&(f.indexOf(".")>-1&&(g=f.split("."),f=g.shift(),g.sort()),u=f.indexOf(":")<0&&"on"+f,t=t[Dt.expando]?t:new Dt.Event(f,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:Dt.makeArray(e,[t]),c=Dt.event.special[f]||{},r||!c.trigger||c.trigger.apply(n,e)!==!1)){if(!r&&!c.noBubble&&!Mt(n)){for(l=c.delegateType||f,Pe.test(l+f)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;s===(n.ownerDocument||ht)&&p.push(s.defaultView||s.parentWindow||i)}for(a=0;(o=p[a++])&&!t.isPropagationStopped();)d=o,t.type=a>1?l:c.bindType||f,h=($t.get(o,"events")||{})[t.type]&&$t.get(o,"handle"),h&&h.apply(o,e),h=u&&o[u],h&&h.apply&&Vt(o)&&(t.result=h.apply(o,e),t.result===!1&&t.preventDefault());return t.type=f,r||t.isDefaultPrevented()||c._default&&c._default.apply(p.pop(),e)!==!1||!Vt(n)||u&&wt(n[f])&&!Mt(n)&&(s=n[u],s&&(n[u]=null),Dt.event.triggered=f,t.isPropagationStopped()&&d.addEventListener(f,Ee),n[f](),t.isPropagationStopped()&&d.removeEventListener(f,Ee),Dt.event.triggered=void 0,s&&(n[u]=s)),t.result}},simulate:function(t,e,i){var n=Dt.extend(new Dt.Event,i,{type:t,isSimulated:!0});Dt.event.trigger(n,null,e)}}),Dt.fn.extend({trigger:function(t,e){return this.each(function(){Dt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return Dt.event.trigger(t,e,i,!0)}}),xt.focusin||Dt.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){Dt.event.simulate(e,t.target,Dt.event.fix(t))};Dt.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=$t.access(n,e);r||n.addEventListener(t,i,!0),$t.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=$t.access(n,e)-1;r?$t.access(n,e,r):(n.removeEventListener(t,i,!0),$t.remove(n,e))}}});var Oe=i.location,Re=Date.now(),He=/\?/;Dt.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(n){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||Dt.error("Invalid XML: "+t),e};var ze=/\[\]$/,Ye=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;Dt.param=function(t,e){var i,n=[],r=function(t,e){var i=wt(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(t)||t.jquery&&!Dt.isPlainObject(t))Dt.each(t,function(){r(this.name,this.value)});else for(i in t)nt(i,t[i],e,r);return n.join("&")},Dt.fn.extend({serialize:function(){return Dt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Dt.prop(this,"elements");return t?Dt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Dt(this).is(":disabled")&&Fe.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!ee.test(t))}).map(function(t,e){var i=Dt(this).val();return null==i?null:Array.isArray(i)?Dt.map(i,function(t){return{name:e.name,value:t.replace(Ye,"\r\n")}}):{name:e.name,value:i.replace(Ye,"\r\n")}}).get()}});var We=/%20/g,Be=/#.*$/,je=/([?&])_=[^&]*/,Ve=/^(.*?):[ \t]*([^\r\n]*)$/gm,$e=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ge=/^(?:GET|HEAD)$/,Ue=/^\/\//,qe={},Xe={},Ze="*/".concat("*"),Ke=ht.createElement("a");Ke.href=Oe.href,Dt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oe.href,type:"GET",isLocal:$e.test(Oe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Dt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ot(ot(t,Dt.ajaxSettings),e):ot(Dt.ajaxSettings,t)},ajaxPrefilter:rt(qe),ajaxTransport:rt(Xe),ajax:function(t,e){function n(t,e,n,s){var u,d,p,b,x,w=e;h||(h=!0,l&&i.clearTimeout(l),r=void 0,o=s||"",M.readyState=t>0?4:0,u=t>=200&&t<300||304===t,n&&(b=st(f,M,n)),b=lt(f,b,M,u),u?(f.ifModified&&(x=M.getResponseHeader("Last-Modified"),x&&(Dt.lastModified[a]=x),x=M.getResponseHeader("etag"),x&&(Dt.etag[a]=x)),204===t||"HEAD"===f.type?w="nocontent":304===t?w="notmodified":(w=b.state,d=b.data,p=b.error,u=!p)):(p=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(e||w)+"",u?v.resolveWith(g,[d,w,M]):v.rejectWith(g,[M,w,p]),M.statusCode(_),_=void 0,c&&m.trigger(u?"ajaxSuccess":"ajaxError",[M,f,u?d:p]),y.fireWith(g,[M,w]),c&&(m.trigger("ajaxComplete",[M,f]),--Dt.active||Dt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,a,o,s,l,u,h,c,d,p,f=Dt.ajaxSetup({},e),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?Dt(g):Dt.event,v=Dt.Deferred(),y=Dt.Callbacks("once memory"),_=f.statusCode||{},b={},x={},w="canceled",M={readyState:0,getResponseHeader:function(t){var e;if(h){if(!s)for(s={};e=Ve.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return h?o:null},setRequestHeader:function(t,e){return null==h&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==h&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)M.always(t[M.status]);else for(e in t)_[e]=[_[e],t[e]];return this},abort:function(t){var e=t||w;return r&&r.abort(e),n(0,e),this}};if(v.promise(M),f.url=((t||f.url||Oe.href)+"").replace(Ue,Oe.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Yt)||[""],null==f.crossDomain){u=ht.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Ke.protocol+"//"+Ke.host!=u.protocol+"//"+u.host}catch(S){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=Dt.param(f.data,f.traditional)),at(qe,f,e,M),h)return M;c=Dt.event&&f.global,c&&0===Dt.active++&&Dt.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ge.test(f.type),a=f.url.replace(Be,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(We,"+")):(p=f.url.slice(a.length),f.data&&(f.processData||"string"==typeof f.data)&&(a+=(He.test(a)?"&":"?")+f.data,delete f.data),f.cache===!1&&(a=a.replace(je,"$1"),p=(He.test(a)?"&":"?")+"_="+Re++ +p),f.url=a+p),f.ifModified&&(Dt.lastModified[a]&&M.setRequestHeader("If-Modified-Since",Dt.lastModified[a]),Dt.etag[a]&&M.setRequestHeader("If-None-Match",Dt.etag[a])),(f.data&&f.hasContent&&f.contentType!==!1||e.contentType)&&M.setRequestHeader("Content-Type",f.contentType),M.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ze+"; q=0.01":""):f.accepts["*"]);for(d in f.headers)M.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(f.beforeSend.call(g,M,f)===!1||h))return M.abort();if(w="abort",y.add(f.complete),M.done(f.success),M.fail(f.error),r=at(Xe,f,e,M)){if(M.readyState=1,c&&m.trigger("ajaxSend",[M,f]),h)return M;f.async&&f.timeout>0&&(l=i.setTimeout(function(){M.abort("timeout")},f.timeout));try{h=!1,r.send(b,n)}catch(S){if(h)throw S;n(-1,S)}}else n(-1,"No Transport");return M},getJSON:function(t,e,i){return Dt.get(t,e,i,"json")},getScript:function(t,e){return Dt.get(t,void 0,e,"script")}}),Dt.each(["get","post"],function(t,e){Dt[e]=function(t,i,n,r){return wt(i)&&(r=r||n,n=i,i=void 0),Dt.ajax(Dt.extend({url:t,type:e,dataType:r,data:i,success:n},Dt.isPlainObject(t)&&t))}}),Dt._evalUrl=function(t){return Dt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},Dt.fn.extend({wrapAll:function(t){var e;return this[0]&&(wt(t)&&(t=t.call(this[0])),e=Dt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return wt(t)?this.each(function(e){Dt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=Dt(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=wt(t);return this.each(function(i){Dt(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){Dt(this).replaceWith(this.childNodes)}),this}}),Dt.expr.pseudos.hidden=function(t){return!Dt.expr.pseudos.visible(t)},Dt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},Dt.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Qe=Dt.ajaxSettings.xhr();xt.cors=!!Qe&&"withCredentials"in Qe,xt.ajax=Qe=!!Qe,Dt.ajaxTransport(function(t){var e,n;if(xt.cors||Qe&&!t.crossDomain)return{send:function(r,a){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)s.setRequestHeader(o,r[o]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Je[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(l){if(e)throw l}},abort:function(){e&&e()}}}),Dt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),Dt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return Dt.globalEval(t),t}}}),Dt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Dt.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,r){e=Dt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),ht.head.appendChild(e[0])},abort:function(){i&&i()}}}});var ti=[],ei=/(=)\?(?=&|$)|\?\?/;Dt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ti.pop()||Dt.expando+"_"+Re++;return this[t]=!0,t}}),Dt.ajaxPrefilter("json jsonp",function(t,e,n){var r,a,o,s=t.jsonp!==!1&&(ei.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ei.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=wt(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ei,"$1"+r):t.jsonp!==!1&&(t.url+=(He.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||Dt.error(r+" was not called"),o[0]},t.dataTypes[0]="json",a=i[r],i[r]=function(){o=arguments},n.always(function(){void 0===a?Dt(i).removeProp(r):i[r]=a,t[r]&&(t.jsonpCallback=e.jsonpCallback,ti.push(r)),o&&wt(a)&&a(o[0]),o=a=void 0}),"script"}),xt.createHTMLDocument=function(){var t=ht.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),Dt.parseHTML=function(t,e,i){if("string"!=typeof t)return[];"boolean"==typeof e&&(i=e,e=!1);var n,r,a;return e||(xt.createHTMLDocument?(e=ht.implementation.createHTMLDocument(""),n=e.createElement("base"),n.href=ht.location.href,e.head.appendChild(n)):e=ht),r=Pt.exec(t),a=!i&&[],r?[e.createElement(r[1])]:(r=T([t],e,a),a&&a.length&&Dt(a).remove(),Dt.merge([],r.childNodes))},Dt.fn.load=function(t,e,i){var n,r,a,o=this,s=t.indexOf(" ");return s>-1&&(n=tt(t.slice(s)),t=t.slice(0,s)),wt(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&Dt.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){a=arguments,o.html(n?Dt("<div>").append(Dt.parseHTML(t)).find(n):t)}).always(i&&function(t,e){o.each(function(){i.apply(this,a||[t.responseText,e,t])})}),this},Dt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Dt.fn[e]=function(t){return this.on(e,t)}}),Dt.expr.pseudos.animated=function(t){return Dt.grep(Dt.timers,function(e){return t===e.elem}).length},Dt.offset={setOffset:function(t,e,i){var n,r,a,o,s,l,u,h=Dt.css(t,"position"),c=Dt(t),d={};"static"===h&&(t.style.position="relative"),s=c.offset(),a=Dt.css(t,"top"),l=Dt.css(t,"left"),u=("absolute"===h||"fixed"===h)&&(a+l).indexOf("auto")>-1,u?(n=c.position(),o=n.top,r=n.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),wt(e)&&(e=e.call(t,i,Dt.extend({},s))),null!=e.top&&(d.top=e.top-s.top+o),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):c.css(d)}},Dt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Dt.offset.setOffset(this,t,e)});var e,i,n=this[0];if(n)return n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===Dt.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===Dt.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&(r=Dt(t).offset(),r.top+=Dt.css(t,"borderTopWidth",!0),r.left+=Dt.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-Dt.css(n,"marginTop",!0),left:e.left-r.left-Dt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===Dt.css(t,"position");)t=t.offsetParent;return t||oe})}}),Dt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;Dt.fn[t]=function(n){return Wt(this,function(t,n,r){var a;return Mt(t)?a=t:9===t.nodeType&&(a=t.defaultView),void 0===r?a?a[e]:t[n]:void(a?a.scrollTo(i?a.pageXOffset:r,i?r:a.pageYOffset):t[n]=r)},t,n,arguments.length)}}),Dt.each(["top","left"],function(t,e){Dt.cssHooks[e]=F(xt.pixelPosition,function(t,i){if(i)return i=N(t,e),fe.test(i)?Dt(t).position()[e]+"px":i})}),Dt.each({Height:"height",Width:"width"},function(t,e){Dt.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){Dt.fn[n]=function(r,a){var o=arguments.length&&(i||"boolean"!=typeof r),s=i||(r===!0||a===!0?"margin":"border");return Wt(this,function(e,i,r){var a;return Mt(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+t],a["scroll"+t],e.body["offset"+t],a["offset"+t],a["client"+t])):void 0===r?Dt.css(e,i,s):Dt.style(e,i,r,s)},e,o?r:void 0,o)}})}),Dt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){Dt.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),Dt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),Dt.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),Dt.proxy=function(t,e){var i,n,r;if("string"==typeof e&&(i=t[e],e=t,t=i),wt(t))return n=dt.call(arguments,2),r=function(){return t.apply(e||this,n.concat(dt.call(arguments)))},r.guid=t.guid=t.guid||Dt.guid++,r},Dt.holdReady=function(t){t?Dt.readyWait++:Dt.ready(!0)},Dt.isArray=Array.isArray,Dt.parseJSON=JSON.parse,Dt.nodeName=u,Dt.isFunction=wt,Dt.isWindow=Mt,Dt.camelCase=y,Dt.type=s,Dt.now=Date.now,Dt.isNumeric=function(t){var e=Dt.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},n=[],r=function(){return Dt}.apply(e,n),!(void 0!==r&&(t.exports=r));var ii=i.jQuery,ni=i.$;return Dt.noConflict=function(t){return i.$===Dt&&(i.$=ni),t&&i.jQuery===Dt&&(i.jQuery=ii),Dt},a||(i.jQuery=i.$=Dt),Dt})},function(t,e,i){function n(t){r.call(this,t),this.path=null}var r=i(56),a=i(0),o=i(47),s=i(451),l=i(253),u=l.prototype.getCanvasPattern,h=Math.abs,c=new o((!0));n.prototype={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,n=this.path||c,r=i.hasStroke(),a=i.hasFill(),o=i.fill,s=i.stroke,l=a&&!!o.colorStops,h=r&&!!s.colorStops,d=a&&!!o.image,p=r&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var f;l&&(f=f||this.getBoundingRect(),this._fillGradient=i.getGradient(t,o,f)),h&&(f=f||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,s,f))}l?t.fillStyle=this._fillGradient:d&&(t.fillStyle=u.call(o,t)),h?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=u.call(s,t));var g=i.lineDash,m=i.lineDashOffset,v=!!t.setLineDash,y=this.getGlobalScale();n.setScale(y[0],y[1]),this.__dirtyPath||g&&!v&&r?(n.beginPath(t),g&&!v&&(n.setLineDash(g),n.setLineDashOffset(m)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),a&&n.fill(t),g&&v&&(t.setLineDash(g),t.lineDashOffset=m),r&&n.stroke(t),g&&v&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new o},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new o),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){r.copy(t);var a=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),s>1e-10&&(r.width+=a/s,r.height+=a/s,r.x-=a/s/2,r.y-=a/s/2)}return r}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var a=this.path.data;if(r.hasStroke()){var o=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s.containStroke(a,o/l,t,e)))return!0}if(r.hasFill())return s.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):r.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1}},n.extend=function(t){var e=function(e){n.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var r=this.shape;for(var a in i)!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(r[a]=i[a])}t.init&&t.init.call(this,e)};a.inherits(e,n);for(var i in t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},a.inherits(n,r);var d=n;t.exports=d},function(t,e){function i(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),o&&(i.weChat=!0),{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11)}}var n={};n="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0}:i(navigator.userAgent);var r=n;t.exports=r},function(t,e,i){function n(t){var e=[];return r.each(g.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=r.map(e,function(t){return u(t).main}),"dataset"!==t&&r.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}var r=i(0),a=i(17),o=i(77),s=i(28),l=s.enableClassManagement,u=s.parseClassType,h=i(5),c=h.makeInner,d=i(8),p=i(469),f=c(),g=a.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,i,n){a.call(this,t,e,i,n),this.uid=o.getUID("ec_cpt_model")},init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?d.getLayoutParams(t):{},a=e.getTheme();r.merge(t,a.get(this.mainType)),r.merge(t,this.getDefaultOption()),i&&d.mergeLayoutParam(t,n,i)},mergeOption:function(t,e){r.merge(this.option,t,!0);var i=this.layoutMode;i&&d.mergeLayoutParam(this.option,t,i)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=f(this);if(!t.defaultOption){for(var e=[],i=this.constructor;i;){var n=i.prototype.defaultOption; n&&e.push(n),i=i.superClass}for(var a={},o=e.length-1;o>=0;o--)a=r.merge(a,e[o],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});l(g,{registerWhenExtend:!0}),o.enableSubTypeDefaulter(g),o.enableTopologicalTravel(g,n),r.mixin(g,p);var m=g;t.exports=m},function(t,e,i){function n(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function r(t,e,i){for(var n=0;n<e.length&&(!e[n]||(t=t&&"object"==typeof t?t[e[n]]:null,null!=t));n++);return null==t&&i&&(t=i.get(e)),t}function a(t,e){var i=y(t).getParent;return i?i.call(t,e):t.parentModel}var o=i(0),s=i(15),l=i(5),u=l.makeInner,h=i(28),c=h.enableClassExtend,d=h.enableClassCheck,p=i(447),f=i(448),g=i(449),m=i(468),v=o.mixin,y=u();n.prototype={constructor:n,init:null,mergeOption:function(t){o.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:r(this.option,this.parsePath(t),!e&&a(this,t))},getShallow:function(t,e){var i=this.option,n=null==i?i:i[t],r=!e&&a(this,t);return null==n&&r&&(n=r.getShallow(t)),n},getModel:function(t,e){var i,o=null==t?this.option:r(this.option,t=this.parsePath(t));return e=e||(i=a(this,t))&&i.getModel(t),new n(o,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(o.clone(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){y(this).getParent=t},isAnimationEnabled:function(){if(!s.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},c(n),d(n),v(n,p),v(n,f),v(n,g),v(n,m);var _=n;t.exports=_},function(t,e,i){function n(t){var e=t.name;_.isNameSpecified(t)||(t.name=r(t)||e)}function r(t){var e=t.getRawData(),i=e.mapDimension("seriesName",!0),n=[];return d.each(i,function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)}),n.join(" ")}function a(t){return t.model.getRawData().count()}function o(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),s}function s(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function l(t,e){d.each(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,d.curry(u,e))})}function u(t){var e=h(t);e&&e.setOutputEnd(this.count())}function h(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}var c=i(7),d=(c.__DEV__,i(0)),p=i(15),f=i(11),g=f.formatTime,m=f.encodeHTML,v=f.addCommas,y=f.getTooltipMarker,_=i(5),b=i(16),x=i(265),w=i(97),M=i(8),S=M.getLayoutParams,k=M.mergeLayoutParam,D=i(98),T=D.createTask,L=i(78),C=L.prepareSource,I=L.getSource,A=i(37),P=A.retrieveRawValue,E=_.makeInner(),O=b.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(t,e,i,r){this.seriesIndex=this.componentIndex,this.dataTask=T({count:a,reset:o}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),C(this);var s=this.getInitialData(t,i);l(s,this),this.dataTask.context.data=s,E(this).dataBeforeProcessed=s,n(this)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?S(t):{},r=this.subType;b.hasClass(r)&&(r+="Series"),d.merge(t,e.getTheme().get(this.subType)),d.merge(t,this.getDefaultOption()),_.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&k(t,n,i)},mergeOption:function(t,e){t=d.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&k(this.option,t,i),C(this);var r=this.getInitialData(t,e);l(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,E(this).dataBeforeProcessed=r,n(this)},fillDataTextStyle:function(t){if(t&&!d.isTypedArray(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&_.defaultEmphasis(t[i],"label",e)},getInitialData:function(){},appendData:function(t){var e=this.getRawData();e.appendData(t.data)},getData:function(t){var e=h(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return E(this).data},setData:function(t){var e=h(this);if(e){var i=e.context;i.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),i.outputData=t,e!==this.dataTask&&(i.data=t)}E(this).data=t},getSource:function(){return I(this)},getRawData:function(){return E(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,i){function n(i){function n(t,i){var n=a.getDimensionInfo(i);if(n&&n.otherDims.tooltip!==!1){var o=n.type,l=y({color:h,type:"subItem"}),u=(r?l+m(n.displayName||"-")+": ":"")+m("ordinal"===o?t+"":"time"===o?e?"":g("yyyy/MM/dd hh:mm:ss",t):v(t));u&&s.push(u)}}var r=d.reduce(i,function(t,e,i){var n=a.getDimensionInfo(i);return t|=n&&n.tooltip!==!1&&null!=n.displayName},0),s=[];return o.length?d.each(o,function(e){n(P(a,t,e),e)}):d.each(i,n),(r?"<br/>":"")+s.join(r?"<br/>":", ")}function r(t){return m(v(t))}var a=this.getData(),o=a.mapDimension("defaultedTooltip",!0),s=o.length,l=this.getRawValue(t),u=d.isArray(l),h=a.getItemVisual(t,"color");d.isObject(h)&&h.colorStops&&(h=(h.colorStops[0]||{}).color),h=h||"transparent";var c=s>1||u&&!s?n(l):r(s?P(a,t,o[0]):u?l[0]:l),p=y(h),f=a.getName(t),b=this.name;return _.isNameSpecified(this)||(b=""),b=b?m(b)+(e?": ":"<br/>"):"",e?p+b+c:b+p+(f?m(f)+": "+c:c)},isAnimationEnabled:function(){if(p.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,r=x.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});d.mixin(O,w),d.mixin(O,x);var R=O;t.exports=R},function(t,e){function i(){var t=new c(6);return n(t),t}function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function r(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function o(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function s(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+o*u,t[1]=-n*u+o*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*a+u*l,t[5]=h*l-u*a,t}function l(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function u(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}function h(t){var e=i();return r(e,t),e}var c="undefined"==typeof Float32Array?Array:Float32Array;e.create=i,e.identity=n,e.copy=r,e.mul=a,e.translate=o,e.rotate=s,e.scale=l,e.invert=u,e.clone=h},function(t,e,i){function n(t){return t._rawCount>65535?C:I}function r(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function a(t,e){m.each(A.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,m.each(P,function(i){t[i]=m.clone(e[i])}),t._calculationInfo=m.extend(e._calculationInfo)}function o(t){var e=t._invertedIndicesMap;m.each(e,function(i,n){var r=t._dimensionInfos[n],a=r.ordinalMeta;if(a){i=e[n]=new C(a.categories.length);for(var o=0;o<i.length;o++)i[o]=NaN;for(var o=0;o<t._count;o++)i[t.get(n,o)]=o}})}function s(t,e,i){var n;if(null!=e){var r=t._chunkSize,a=Math.floor(i/r),o=i%r,s=t.dimensions[e],l=t._storage[s][a];if(l){n=l[o];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(n=u.categories[n])}}return n}function l(t){return t}function u(t){return t<this._count&&t>=0?this._indices[t]:-1}function h(t,e){var i=t._idList[e];return null==i&&(i=s(t,t._idDimIdx,e)),null==i&&(i=T+e),i}function c(t){return m.isArray(t)||(t=[t]),t}function d(t,e){var i=t.dimensions,n=new E(m.map(i,t.getDimensionInfo,t),t.hostModel);a(n,t);for(var r=n._storage={},o=t._storage,s=0;s<i.length;s++){var l=i[s];o[l]&&(m.indexOf(e,l)>=0?(r[l]=p(o[l]),n._rawExtent[l]=f(),n._extent[l]=null):r[l]=o[l])}return n}function p(t){for(var e=new Array(t.length),i=0;i<t.length;i++)e[i]=r(t[i]);return e}function f(){return[1/0,-(1/0)]}var g=i(7),m=(g.__DEV__,i(0)),v=i(17),y=i(40),_=i(58),b=i(37),x=b.defaultDimValueGetters,w=b.DefaultDataProvider,M=i(60),S=M.summarizeDimensions,k=m.isObject,D="undefined",T="e\0\0",L={"float":typeof Float64Array===D?Array:Float64Array,"int":typeof Int32Array===D?Array:Int32Array,ordinal:Array,number:Array,time:Array},C=typeof Uint32Array===D?Array:Uint32Array,I=typeof Uint16Array===D?Array:Uint16Array,A=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],P=["_extent","_approximateExtent","_rawExtent"],E=function(t,e){t=t||["x","y"];for(var i={},n=[],r={},a=0;a<t.length;a++){var o=t[a];m.isString(o)&&(o={name:o});var s=o.name;o.type=o.type||"float",o.coordDim||(o.coordDim=s,o.coordDimIndex=0),o.otherDims=o.otherDims||{},n.push(s),i[s]=o,o.index=a,o.createInvertedIndices&&(r[s]=[])}this.dimensions=n,this._dimensionInfos=i,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=S(this),this._invertedIndicesMap=r,this._calculationInfo={}},O=E.prototype;O.type="list",O.hasItemOption=!0,O.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},O.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},O.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},O.mapDimension=function(t,e){var i=this._dimensionsSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return e===!0?(n||[]).slice():n&&n[e]},O.initData=function(t,e,i){var n=_.isInstance(t)||m.isArrayLike(t);n&&(t=new w(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},i||(this.hasItemOption=!1),this.defaultDimValueGetter=x[this._rawData.getSource().sourceFormat],this._dimValueGetter=i=i||this.defaultDimValueGetter,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},O.getProvider=function(){return this._rawData},O.appendData=function(t){var e=this._rawData,i=this.count();e.appendData(t);var n=e.count();e.persistent||(n+=i),this._initDataFromProvider(i,n)},O._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,r=this._rawData,a=this._storage,s=this.dimensions,l=s.length,u=this._dimensionInfos,h=this._nameList,c=this._idList,d=this._rawExtent,p=this._nameRepeatCount={},g=this._chunkCount,m=g-1,v=0;v<l;v++){var y=s[v];d[y]||(d[y]=f());var _=u[y];0===_.otherDims.itemName&&(i=this._nameDimIdx=v),0===_.otherDims.itemId&&(this._idDimIdx=v);var b=L[_.type];a[y]||(a[y]=[]);var x=a[y][m];if(x&&x.length<n){for(var w=new b(Math.min(e-m*n,n)),M=0;M<x.length;M++)w[M]=x[M];a[y][m]=w}for(var S=g*n;S<e;S+=n)a[y].push(new b(Math.min(e-S,n)));this._chunkCount=a[y].length}for(var k=new Array(l),D=t;D<e;D++){k=r.getItem(D,k);for(var T=Math.floor(D/n),C=D%n,S=0;S<l;S++){var y=s[S],I=a[y][T],A=this._dimValueGetter(k,y,D,S);I[C]=A;var P=d[y];A<P[0]&&(P[0]=A),A>P[1]&&(P[1]=A)}if(!r.pure){var E=h[D];if(k&&null==E)if(null!=k.name)h[D]=E=k.name;else if(null!=i){var O=s[i],R=a[O][T];if(R){E=R[C];var H=u[O].ordinalMeta;H&&H.categories.length&&(E=H.categories[E])}}var z=null==k?null:k.id;null==z&&null!=E&&(p[E]=p[E]||0,z=E,p[E]>0&&(z+="__ec__"+p[E]),p[E]++),null!=z&&(c[D]=z)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},o(this)}},O.count=function(){return this._count},O.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,r=this._count;if(i===Array){t=new i(r);for(var a=0;a<r;a++)t[a]=e[a]}else t=new i(e.buffer,0,r)}else for(var i=n(this),t=new i(this.count()),a=0;a<t.length;a++)t[a]=a;return t},O.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._storage;if(!i[t])return NaN;e=this.getRawIndex(e);var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize,a=i[t][n],o=a[r];return o},O.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._storage[t];if(!i)return NaN;var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize,a=i[n];return a[r]},O._getFast=function(t,e){var i=Math.floor(e/this._chunkSize),n=e%this._chunkSize,r=this._storage[t][i];return r[n]},O.getValues=function(t,e){var i=[];m.isArray(t)||(e=t,t=this.dimensions);for(var n=0,r=t.length;n<r;n++)i.push(this.get(t[n],e));return i},O.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,i=this._dimensionInfos,n=0,r=e.length;n<r;n++)if("ordinal"!==i[e[n]].type&&isNaN(this.get(e[n],t)))return!1;return!0},O.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],i=f();if(!e)return i;var n,r=this.count(),a=!this._indices;if(a)return this._rawExtent[t].slice();if(n=this._extent[t])return n.slice();n=i;for(var o=n[0],s=n[1],l=0;l<r;l++){var u=this._getFast(t,this.getRawIndex(l));u<o&&(o=u),u>s&&(s=u)}return n=[o,s],this._extent[t]=n,n},O.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},O.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},O.getCalculationInfo=function(t){return this._calculationInfo[t]},O.setCalculationInfo=function(t,e){k(t)?m.extend(this._calculationInfo,t):this._calculationInfo[t]=e},O.getSum=function(t){var e=this._storage[t],i=0;if(e)for(var n=0,r=this.count();n<r;n++){var a=this.get(t,n);isNaN(a)||(i+=a)}return i},O.getMedian=function(t){var e=[];this.each(t,function(t,i){isNaN(t)||e.push(t)});var i=[].concat(e).sort(function(t,e){return t-e}),n=this.count();return 0===n?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},O.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i[e];return null==n||isNaN(n)?-1:n},O.indexOfName=function(t){for(var e=0,i=this.count();e<i;e++)if(this.getName(e)===t)return e;return-1},O.indexOfRawIndex=function(t){if(!this._indices)return t;if(t>=this._rawCount||t<0)return-1;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;n<=r;){var a=(n+r)/2|0;if(e[a]<t)n=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},O.indicesOfNearest=function(t,e,i){var n=this._storage,r=n[t],a=[];if(!r)return a;null==i&&(i=1/0);for(var o=Number.MAX_VALUE,s=-1,l=0,u=this.count();l<u;l++){var h=e-this.get(t,l),c=Math.abs(h);h<=i&&c<=o&&((c<o||h>=0&&s<0)&&(o=c,s=h,a.length=0),a.push(l))}return a},O.getRawIndex=l,O.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];e.push(this.get(n,t))}return e},O.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||s(this,this._nameDimIdx,e)||""},O.getId=function(t){return h(this,this.getRawIndex(t))},O.each=function(t,e,i,n){"use strict";if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this,t=m.map(c(t),this.getDimension,this);for(var r=t.length,a=0;a<this.count();a++)switch(r){case 0:e.call(i,a);break;case 1:e.call(i,this.get(t[0],a),a);break;case 2:e.call(i,this.get(t[0],a),this.get(t[1],a),a);break;default:for(var o=0,s=[];o<r;o++)s[o]=this.get(t[o],a);s[o]=a,e.apply(i,s)}}},O.filterSelf=function(t,e,i,r){"use strict";if(this._count){"function"==typeof t&&(r=i,i=e,e=t,t=[]),i=i||r||this,t=m.map(c(t),this.getDimension,this);for(var a=this.count(),o=n(this),s=new o(a),h=[],d=t.length,p=0,f=t[0],g=0;g<a;g++){var v,y=this.getRawIndex(g);if(0===d)v=e.call(i,g);else if(1===d){var _=this._getFast(f,y);v=e.call(i,_,g)}else{for(var b=0;b<d;b++)h[b]=this._getFast(f,y);h[b]=g,v=e.apply(i,h)}v&&(s[p++]=y)}return p<a&&(this._indices=s),this._count=p,this._extent={},this.getRawIndex=this._indices?u:l,this}},O.selectRange=function(t){"use strict";if(this._count){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var r=e.length;if(r){var a=this.count(),o=n(this),s=new o(a),h=0,c=e[0],d=t[c][0],p=t[c][1],f=!1;if(!this._indices){var g=0;if(1===r){for(var m=this._storage[e[0]],v=0;v<this._chunkCount;v++)for(var y=m[v],_=Math.min(this._count-v*this._chunkSize,this._chunkSize),b=0;b<_;b++){var x=y[b];(x>=d&&x<=p||isNaN(x))&&(s[h++]=g),g++}f=!0}else if(2===r){for(var m=this._storage[c],w=this._storage[e[1]],M=t[e[1]][0],S=t[e[1]][1],v=0;v<this._chunkCount;v++)for(var y=m[v],k=w[v],_=Math.min(this._count-v*this._chunkSize,this._chunkSize),b=0;b<_;b++){var x=y[b],D=k[b];(x>=d&&x<=p||isNaN(x))&&(D>=M&&D<=S||isNaN(D))&&(s[h++]=g),g++}f=!0}}if(!f)if(1===r)for(var b=0;b<a;b++){var T=this.getRawIndex(b),x=this._getFast(c,T);(x>=d&&x<=p||isNaN(x))&&(s[h++]=T)}else for(var b=0;b<a;b++){for(var L=!0,T=this.getRawIndex(b),v=0;v<r;v++){var C=e[v],x=this._getFast(i,T);(x<t[C][0]||x>t[C][1])&&(L=!1)}L&&(s[h++]=this.getRawIndex(b))}return h<a&&(this._indices=s),this._count=h,this._extent={},this.getRawIndex=this._indices?u:l,this}}},O.mapArray=function(t,e,i,n){"use strict";"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i),r},O.map=function(t,e,i,n){"use strict";i=i||n||this,t=m.map(c(t),this.getDimension,this);var r=d(this,t);r._indices=this._indices,r.getRawIndex=r._indices?u:l;for(var a=r._storage,o=[],s=this._chunkSize,h=t.length,p=this.count(),f=[],g=r._rawExtent,v=0;v<p;v++){for(var y=0;y<h;y++)f[y]=this.get(t[y],v);f[h]=v;var _=e&&e.apply(i,f);if(null!=_){"object"!=typeof _&&(o[0]=_,_=o);for(var b=this.getRawIndex(v),x=Math.floor(b/s),w=b%s,M=0;M<_.length;M++){var S=t[M],k=_[M],D=g[S],T=a[S];T&&(T[x][w]=k),k<D[0]&&(D[0]=k),k>D[1]&&(D[1]=k)}}}return r},O.downSample=function(t,e,i,r){for(var a=d(this,[t]),o=a._storage,s=[],l=Math.floor(1/e),h=o[t],c=this.count(),p=this._chunkSize,f=a._rawExtent[t],g=new(n(this))(c),m=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var y=0;y<l;y++){var _=this.getRawIndex(v+y),b=Math.floor(_/p),x=_%p;s[y]=h[b][x]}var w=i(s),M=this.getRawIndex(Math.min(v+r(s,w)||0,c-1)),S=Math.floor(M/p),k=M%p;h[S][k]=w,w<f[0]&&(f[0]=w),w>f[1]&&(f[1]=w),g[m++]=M}return a._count=m,a._indices=g,a.getRawIndex=u,a},O.getItemModel=function(t){var e=this.hostModel;return new v(this.getRawDataItem(t),e,e&&e.ecModel)},O.diff=function(t){var e=this;return new y(t?t.getIndices():[],this.getIndices(),function(e){return h(t,e)},function(t){return h(e,t)})},O.getVisual=function(t){var e=this._visual;return e&&e[t]},O.setVisual=function(t,e){if(k(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},O.setLayout=function(t,e){if(k(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},O.getLayout=function(t){return this._layout[t]},O.getItemLayout=function(t){return this._itemLayouts[t]},O.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?m.extend(this._itemLayouts[t]||{},e):e},O.clearItemLayouts=function(){this._itemLayouts.length=0},O.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},O.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=n,k(e))for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a],r[a]=!0);else n[e]=i,r[e]=!0},O.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var R=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};O.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(R,e)),this._graphicEls[t]=e},O.getItemGraphicEl=function(t){return this._graphicEls[t]},O.eachItemGraphicEl=function(t,e){m.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},O.cloneShallow=function(t){if(!t){var e=m.map(this.dimensions,this.getDimensionInfo,this);t=new E(e,this.hostModel)}if(t._storage=this._storage,a(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?u:l,t},O.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(m.slice(arguments)))})},O.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],O.CHANGABLE_METHODS=["filterSelf","selectRange"];var H=E;t.exports=H},function(t,e,i){function n(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}function r(t,e,i,r,a,l,u){var h=0===t.indexOf("empty");h&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var c;return c=0===t.indexOf("image://")?o.makeImage(t.slice(8),new s(e,i,r,a),u?"center":"cover"):0===t.indexOf("path://")?o.makePath(t.slice(7),{},new s(e,i,r,a),u?"center":"cover"):new g({shape:{symbolType:t,x:e,y:i,width:r,height:a}}),c.__isEmptyBrush=h,c.setColor=n,c.setColor(l),c}var a=i(0),o=i(3),s=i(12),l=o.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+r,n+a),t.lineTo(i-r,n+a),t.closePath()}}),u=o.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+r,n),t.lineTo(i,n+a),t.lineTo(i-r,n),t.closePath()}}),h=o.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),h=Math.cos(u)*o,c=Math.sin(u),d=Math.cos(u),p=.6*o,f=.7*o;t.moveTo(i-h,l+s),t.arc(i,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+h-c*p,l+s+d*p,i,n-f,i,n),t.bezierCurveTo(i,n-f,i-h+c*p,l+s+d*p,i-h,l+s),t.closePath()}}),c=o.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,a=e.y,o=n/3*2;t.moveTo(r,a),t.lineTo(r+o,a+i),t.lineTo(r,a+i/4*3),t.lineTo(r-o,a+i),t.lineTo(r,a),t.closePath()}}),d={line:o.Line,rect:o.Rect,roundRect:o.Rect,square:o.Rect,circle:o.Circle,diamond:u,pin:h,arrow:c,triangle:l},p={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},f={};a.each(d,function(t,e){f[e]=new t});var g=o.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,r=f[n];"none"!==e.symbolType&&(r||(n="rect",r=f[n]),p[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i))}});e.createSymbol=r},function(t,e,i){function n(){this._coordinateSystems=[]}var r=i(0),a={};n.prototype={constructor:n,create:function(t,e){var i=[];r.each(a,function(n,r){var a=n.create(t,e);i=i.concat(a||[])}),this._coordinateSystems=i},update:function(t,e){r.each(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},n.register=function(t,e){a[t]=e},n.get=function(t){return a[t]};var o=n;t.exports=o},function(t,e,i){function n(t,e){var i,n,a,o=t.type,s=e.getMin(),l=e.getMax(),u=null!=s,h=null!=l,c=t.getExtent();"ordinal"===o?i=e.getCategories().length:(n=e.get("boundaryGap"),p.isArray(n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=v.parsePercent(n[0],1),n[1]=v.parsePercent(n[1],1),a=c[1]-c[0]||Math.abs(c[0])),null==s&&(s="ordinal"===o?i?0:NaN:c[0]-n[0]*a),null==l&&(l="ordinal"===o?i?i-1:NaN:c[1]+n[1]*a),"dataMin"===s?s=c[0]:"function"==typeof s&&(s=s({min:c[0],max:c[1]})),"dataMax"===l?l=c[1]:"function"==typeof l&&(l=l({min:c[0],max:c[1]})),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN),t.setBlank(p.eqNaN(s)||p.eqNaN(l)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var d=e.ecModel;if(d&&"time"===o){var f,g=_("bar",d);if(p.each(g,function(t){f|=t.getBaseAxis()===e.axis}),f){var m=b(g),y=r(s,l,e,m);s=y.min,l=y.max}}return[s,l]}function r(t,e,i,n){var r=i.axis.getExtent(),a=r[1]-r[0],o=x(n,i.axis);if(void 0===o)return{min:t,max:e};var s=1/0;p.each(o,function(t){s=Math.min(t.offset,s)});var l=-(1/0);p.each(o,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=1-(s+l)/a,d=h/c-h;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function a(t,e){var i=n(t,e),r=null!=e.getMin(),a=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var s=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:o,fixMin:r,fixMax:a,minInterval:"interval"===s||"time"===s?e.get("minInterval"):null,maxInterval:"interval"===s||"time"===s?e.get("maxInterval"):null});var l=e.get("interval");null!=l&&t.setInterval&&t.setInterval(l)}function o(t,e){if(e=e||t.get("type"))switch(e){case"category":return new f(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-(1/0)]);case"value":return new g;default:return(m.getClass(e)||g).create(t)}}function s(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)}function l(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(t){return function(e){return t.replace("{value}",null!=e?e:"")}}(e):"function"==typeof e?function(n,r){return null!=i&&(r=n-i),e(u(t,n),r)}:function(e){return t.scale.getLabel(e)}}function u(t,e){return"category"===t.type?t.scale.getLabel(e):e}function h(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,r,a="category"===t.type,o=i.getExtent();a?r=i.count():(n=i.getTicks(),r=n.length);var s,u=t.getLabelModel(),h=l(t),d=1;r>40&&(d=Math.ceil(r/40));for(var p=0;p<r;p+=d){var f=n?n[p]:o[0]+p,g=h(f),m=u.getTextRect(g),v=c(m,u.get("rotate")||0);s?s.union(v):s=v}return s}}function c(t,e){var i=e*Math.PI/180,n=t.plain(),r=n.width,a=n.height,o=r*Math.cos(i)+a*Math.sin(i),s=r*Math.sin(i)+a*Math.cos(i),l=new w(n.x,n.y,o,s);return l}var d=i(7),p=(d.__DEV__,i(0)),f=i(482),g=i(81),m=i(80),v=i(4),y=i(82),_=y.prepareLayoutBarSeries,b=y.makeColumnLayout,x=y.retrieveColumnLayout,w=i(12);i(483),i(484),e.getScaleExtent=n,e.niceScaleExtent=a,e.createScaleByModel=o,e.ifAxisCrossZero=s,e.makeLabelFormatter=l,e.getAxisRawValue=u,e.estimateLabelUnionRect=h},function(t,e,i){"use strict";function n(t,e,i,n){var a,o,s,l,u,h,c,d,p,f=Object.keys(i);for(a=0,o=f.length;a<o;++a)if(s=f[a],h=i[s],e.hasOwnProperty(s)||(e[s]=h),l=e[s],l!==h&&"_"!==s[0]){if(t.hasOwnProperty(s)||(t[s]=l),u=t[s],c=typeof h,c===typeof u)if("string"===c){if(d=r(u),d.valid&&(p=r(h),p.valid)){e[s]=p.mix(d,n).rgbString();continue}}else if("number"===c&&isFinite(u)&&isFinite(h)){e[s]=u+(h-u)*n;continue}e[s]=h}}var r=i(119),a=i(6),o=function(t){a.extend(this,t),this.initialize.apply(this,arguments)};a.extend(o.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=a.clone(t._model)),t._start={},t},transition:function(t){var e=this,i=e._model,r=e._start,a=e._view;return i&&1!==t?(a||(a=e._view={}),r||(r=e._start={}),n(r,a,i,t),e):(e._view=i,e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return a.isNumber(this._model.x)&&a.isNumber(this._model.y)}}),o.extend=a.inherits,t.exports=o},function(t,e,i){function n(t,e){O[t]=e}function r(t,e){e=e||E;var i=t+":"+e;if(C[i])return C[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n.length;a<o;a++)r=Math.max(m(n[a],e).width,r);return I>A&&(I=0,C={}),I++,C[i]=r,r}function a(t,e,i,n,r,a,l){return a?s(t,e,i,n,r,a,l):o(t,e,i,n,r,l)}function o(t,e,i,n,a,o){var s=v(t,e,a,o),h=r(t,e);a&&(h+=a[1]+a[3]);var c=s.outerHeight,d=l(0,h,i),p=u(0,c,n),f=new x(d,p,h,c);return f.lineHeight=s.lineHeight,f}function s(t,e,i,n,r,a,o){var s=y(t,{rich:a,truncate:o,font:e,textAlign:i,textPadding:r}),h=s.outerWidth,c=s.outerHeight,d=l(0,h,i),p=u(0,c,n);return new x(d,p,h,c)}function l(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function u(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function h(t,e,i){var n=e.x,r=e.y,a=e.height,o=e.width,s=a/2,l="left",u="top";switch(t){case"left":n-=i,r+=s,l="right",u="middle";break;case"right":n+=i+o,r+=s,u="middle";break;case"top":n+=o/2,r-=i,l="center",u="bottom";break;case"bottom":n+=o/2,r+=a+i,l="center";break;case"inside":n+=o/2,r+=s,l="center",u="middle";break;case"insideLeft":n+=i,r+=s,u="middle";break;case"insideRight":n+=o-i,r+=s,l="right",u="middle";break;case"insideTop":n+=o/2,r+=i,l="center";break;case"insideBottom":n+=o/2,r+=a-i,l="center",u="bottom";break;case"insideTopLeft":n+=i,r+=i;break;case"insideTopRight":n+=o-i,r+=i,l="right";break;case"insideBottomLeft":n+=i,r+=a-i,u="bottom";break;case"insideBottomRight":n+=o-i,r+=a-i,l="right",u="bottom"}return{x:n,y:r,textAlign:l,textVerticalAlign:u}}function c(t,e,i,n,r){if(!e)return"";var a=(t+"").split("\n");r=d(e,i,n,r);for(var o=0,s=a.length;o<s;o++)a[o]=p(a[o],r);return a.join("\n")}function d(t,e,i,n){n=k({},n),n.font=e;var i=D(i,"...");n.maxIterations=D(n.maxIterations,2);var a=n.minChar=D(n.minChar,0);n.cnCharWidth=r("国",e);var o=n.ascCharWidth=r("a",e);n.placeholder=D(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<a&&s>=o;l++)s-=o;var u=r(i);return u>s&&(i="",u=0),s=t-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=t,n}function p(t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i)return"";var o=r(t,n);if(o<=i)return t;for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?f(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=r(t,n)}return""===t&&(t=e.placeholder),t}function f(t,e,i,n){for(var r=0,a=0,o=t.length;a<o&&r<e;a++){var s=t.charCodeAt(a);r+=0<=s&&s<=127?i:n}return a}function g(t){return r("国",t)}function m(t,e){return O.measureText(t,e)}function v(t,e,i,n){null!=t&&(t+="");var r=g(e),a=t?t.split("\n"):[],o=a.length*r,s=o;if(i&&(s+=i[0]+i[2]),t&&n){var l=n.outerHeight,u=n.outerWidth;if(null!=l&&s>l)t="",a=[];else if(null!=u)for(var h=d(u-(i?i[1]+i[3]:0),e,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),c=0,f=a.length;c<f;c++)a[c]=p(a[c],h)}return{lines:a,height:o,outerHeight:s,lineHeight:r}}function y(t,e){ var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;for(var n,a=P.lastIndex=0;null!=(n=P.exec(t));){var o=n.index;o>a&&_(i,t.substring(a,o)),_(i,n[2],n[1]),a=P.lastIndex}a<t.length&&_(i,t.substring(a,t.length));var s=i.lines,l=0,u=0,h=[],d=e.textPadding,p=e.truncate,f=p&&p.outerWidth,m=p&&p.outerHeight;d&&(null!=f&&(f-=d[1]+d[3]),null!=m&&(m-=d[0]+d[2]));for(var v=0;v<s.length;v++){for(var y=s[v],b=0,x=0,M=0;M<y.tokens.length;M++){var S=y.tokens[M],k=S.styleName&&e.rich[S.styleName]||{},L=S.textPadding=k.textPadding,C=S.font=k.font||e.font,I=S.textHeight=D(k.textHeight,g(C));if(L&&(I+=L[0]+L[2]),S.height=I,S.lineHeight=T(k.textLineHeight,e.textLineHeight,I),S.textAlign=k&&k.textAlign||e.textAlign,S.textVerticalAlign=k&&k.textVerticalAlign||"middle",null!=m&&l+S.lineHeight>m)return{lines:[],width:0,height:0};S.textWidth=r(S.text,C);var A=k.textWidth,E=null==A||"auto"===A;if("string"==typeof A&&"%"===A.charAt(A.length-1))S.percentWidth=A,h.push(S),A=0;else{if(E){A=S.textWidth;var O=k.textBackgroundColor,R=O&&O.image;R&&(R=w.findExistImage(R),w.isImageReady(R)&&(A=Math.max(A,R.width*I/R.height)))}var H=L?L[1]+L[3]:0;A+=H;var z=null!=f?f-x:null;null!=z&&z<A&&(!E||z<H?(S.text="",S.textWidth=A=0):(S.text=c(S.text,z-H,C,p.ellipsis,{minChar:p.minChar}),S.textWidth=r(S.text,C),A=S.textWidth+H))}x+=S.width=A,k&&(b=Math.max(b,S.lineHeight))}y.width=x,y.lineHeight=b,l+=b,u=Math.max(u,x)}i.outerWidth=i.width=D(e.textWidth,u),i.outerHeight=i.height=D(e.textHeight,l),d&&(i.outerWidth+=d[1]+d[3],i.outerHeight+=d[0]+d[2]);for(var v=0;v<h.length;v++){var S=h[v],Y=S.percentWidth;S.width=parseInt(Y,10)/100*u}return i}function _(t,e,i){for(var n=""===e,r=e.split("\n"),a=t.lines,o=0;o<r.length;o++){var s=r[o],l={styleName:i,text:s,isLineHolder:!s&&!n};if(o)a.push({tokens:[l]});else{var u=(a[a.length-1]||(a[0]={tokens:[]})).tokens,h=u.length;1===h&&u[0].isLineHolder?u[0]=l:(s||!h||n)&&u.push(l)}}}function b(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&L(e)||t.textFont||t.font}var x=i(12),w=i(94),M=i(0),S=M.getContext,k=M.extend,D=M.retrieve2,T=M.retrieve3,L=M.trim,C={},I=0,A=5e3,P=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,E="12px sans-serif",O={};O.measureText=function(t,e){var i=S();return i.font=e||E,i.measureText(t)},e.DEFAULT_FONT=E,e.$override=n,e.getWidth=r,e.getBoundingRect=a,e.adjustTextX=l,e.adjustTextY=u,e.adjustTextPositionOnRect=h,e.truncateText=c,e.getLineHeight=g,e.measureText=m,e.parsePlainText=v,e.parseRichText=y,e.makeFont=b},function(t,e,i){function n(t){return t=Math.round(t),t<0?0:t>255?255:t}function r(t){return t=Math.round(t),t<0?0:t>360?360:t}function a(t){return t<0?0:t>1?1:t}function o(t){return n(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function s(t){return a(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function l(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function u(t,e,i){return t+(e-t)*i}function h(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function d(t,e){D&&c(D,e),D=k.put(t,D||e.slice())}function p(t,e){if(t){e=e||[];var i=k.get(t);if(i)return c(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in S)return c(e,S[n]),d(t,e),e;if("#"!==n.charAt(0)){var r=n.indexOf("("),a=n.indexOf(")");if(r!==-1&&a+1===n.length){var l=n.substr(0,r),u=n.substr(r+1,a-(r+1)).split(","),p=1;switch(l){case"rgba":if(4!==u.length)return void h(e,0,0,0,1);p=s(u.pop());case"rgb":return 3!==u.length?void h(e,0,0,0,1):(h(e,o(u[0]),o(u[1]),o(u[2]),p),d(t,e),e);case"hsla":return 4!==u.length?void h(e,0,0,0,1):(u[3]=s(u[3]),f(u,e),d(t,e),e);case"hsl":return 3!==u.length?void h(e,0,0,0,1):(f(u,e),d(t,e),e);default:return}}h(e,0,0,0,1)}else{if(4===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=4095?(h(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),d(t,e),e):void h(e,0,0,0,1)}if(7===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=16777215?(h(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),d(t,e),e):void h(e,0,0,0,1)}}}}function f(t,e){var i=(parseFloat(t[0])%360+360)%360/360,r=s(t[1]),a=s(t[2]),o=a<=.5?a*(r+1):a+r-a*r,u=2*a-o;return e=e||[],h(e,n(255*l(u,o,i+1/3)),n(255*l(u,o,i)),n(255*l(u,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function g(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+o):l/(2-s-o);var h=((s-n)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-c:r===s?e=1/3+h-d:a===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,i,u];return null!=t[3]&&p.push(t[3]),p}}function m(t,e){var i=p(t);if(i){for(var n=0;n<3;n++)e<0?i[n]=i[n]*(1-e)|0:i[n]=(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return w(i,4===i.length?"rgba":"rgb")}}function v(t){var e=p(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function y(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var r=t*(e.length-1),o=Math.floor(r),s=Math.ceil(r),l=e[o],h=e[s],c=r-o;return i[0]=n(u(l[0],h[0],c)),i[1]=n(u(l[1],h[1],c)),i[2]=n(u(l[2],h[2],c)),i[3]=a(u(l[3],h[3],c)),i}}function _(t,e,i){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),o=Math.floor(r),s=Math.ceil(r),l=p(e[o]),h=p(e[s]),c=r-o,d=w([n(u(l[0],h[0],c)),n(u(l[1],h[1],c)),n(u(l[2],h[2],c)),a(u(l[3],h[3],c))],"rgba");return i?{color:d,leftIndex:o,rightIndex:s,value:r}:d}}function b(t,e,i,n){if(t=p(t))return t=g(t),null!=e&&(t[0]=r(e)),null!=i&&(t[1]=s(i)),null!=n&&(t[2]=s(n)),w(f(t),"rgba")}function x(t,e){if(t=p(t),t&&null!=e)return t[3]=a(e),w(t,"rgba")}function w(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}var M=i(250),S={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},k=new M(20),D=null,T=y,L=_;e.parse=p,e.lift=m,e.toHex=v,e.fastLerp=y,e.fastMapToColor=T,e.lerp=_,e.mapToColor=L,e.modifyHSL=b,e.modifyAlpha=x,e.stringify=w},function(t,e,i){function n(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function r(t,e,i,n){return i=i||{},n||!c.canvasSupported?a(t,e,i):c.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):a(t,e,i),i}function a(t,e,i){var r=n(t);i.zrX=e.clientX-r.left,i.zrY=e.clientY-r.top}function o(t,e,i){if(e=e||window.event,null!=e.zrX)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];o&&r(t,o,e,i)}else r(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var s=e.button;return null==e.which&&void 0!==s&&p.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function s(t,e,i){d?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function l(t,e,i){d?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function u(t){return t.which>1}var h=i(36);e.Dispatcher=h;var c=i(15),d="undefined"!=typeof window&&!!window.addEventListener,p=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,f=d?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=r,e.normalizeEvent=o,e.addEventListener=s,e.removeEventListener=l,e.stop=f,e.notLeftMouse=u},function(t,e,i){function n(t){var e={main:"",sub:""};return t&&(t=t.split(p),e.main=t[0]||"",e.sub=t[1]||""),e}function r(t){d.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function a(t,e){t.$constructor=t,t.extend=function(t){var e=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return d.extend(i.prototype,t),i.extend=this.extend,i.superCall=s,i.superApply=l,d.inherits(i,this),i.superClass=e,i}}function o(t){var e=["__\0is_clz",g++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function s(t,e){var i=d.slice(arguments,2);return this.superClass.prototype[e].apply(t,i)}function l(t,e,i){return this.superClass.prototype[e].apply(t,i)}function u(t,e){function i(t){var e=a[t.main];return e&&e[f]||(e=a[t.main]={},e[f]=!0),e}e=e||{};var a={};if(t.registerClass=function(t,e){if(e)if(r(e),e=n(e),e.sub){if(e.sub!==f){var o=i(e);o[e.sub]=t}}else a[e.main]=t;return t},t.getClass=function(t,e,i){var n=a[t];if(n&&n[f]&&(n=e?n[e]:null),i&&!n)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return n},t.getClassesByMainType=function(t){t=n(t);var e=[],i=a[t.main];return i&&i[f]?d.each(i,function(t,i){i!==f&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=n(t),!!a[t.main]},t.getAllClassMainTypes=function(){var t=[];return d.each(a,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=n(t);var e=a[t.main];return e&&e[f]},t.parseClassType=n,e.registerWhenExtend){var o=t.extend;o&&(t.extend=function(e){var i=o.call(this,e);return t.registerClass(i,e.type)})}return t}function h(t,e){}var c=i(7),d=(c.__DEV__,i(0)),p=".",f="___EC__COMPONENT__CONTAINER___",g=0;e.parseClassType=n,e.enableClassExtend=a,e.enableClassCheck=o,e.enableClassManagement=u,e.setReadOnly=h},function(t,e,i){function n(){this.group=new h,this.uid=c.getUID("viewChart"),this.renderTask=g({plan:o,reset:s}),this.renderTask.context={view:this}}function r(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i<t.childCount();i++)r(t.childAt(i),e)}function a(t,e,i){var n=p.queryDataIndex(t,e);null!=n?u(p.normalizeToArray(n),function(e){r(t.getItemGraphicEl(e),i)}):t.eachItemGraphicEl(function(t){r(t,i)})}function o(t){return y(t.model)}function s(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=r&&v(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,i,n,r),b[l]}var l=i(0),u=l.each,h=i(73),c=i(77),d=i(28),p=i(5),f=i(98),g=f.createTask,m=i(48),v=p.makeInner(),y=m();n.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){a(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){a(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null};var _=n.prototype;_.updateView=_.updateLayout=_.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},d.enableClassExtend(n,["dispose"]),d.enableClassManagement(n,{registerWhenExtend:!0}),n.markUpdateMethod=function(t,e){v(t).updateMethod=e};var b={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},x=n;t.exports=x},function(t,e,i){function n(t,e,i){i=i||{},y.isInstance(t)||(t=y.seriesDataToSource(t));var n,a=e.get("coordinateSystem"),u=g.get(a),h=v(e);h&&(n=o.map(h.coordSysDims,function(t){var e={name:t},i=h.axisMap.get(t);if(i){var n=i.get("type");e.type=d(n)}return e})),n||(n=u&&(u.getDimensionsInfo?u.getDimensionsInfo():u.dimensions.slice())||["x","y"]);var c,p,f=l(t,{coordDimensions:n,generateCoord:i.generateCoord});h&&o.each(f,function(t,e){var i=t.coordDim,n=h.categoryAxisMap.get(i);n&&(null==c&&(c=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(p=!0)}),p||null==c||(f[c].otherDims.itemName=0);var m=b(e,f),_=new s(f,e);_.setCalculationInfo(m);var x=null!=c&&r(t)?function(t,e,i,n){return n===c?i:this.defaultDimValueGetter(t,e,i,n)}:null;return _.hasItemOption=!1,_.initData(t,null,x),_}function r(t){if(t.sourceFormat===h){var e=a(t.data||[]);return null!=e&&!o.isArray(f(e))}}function a(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}var o=i(0),s=i(20),l=i(49),u=i(59),h=u.SOURCE_FORMAT_ORIGINAL,c=i(60),d=c.getDimensionTypeByAxis,p=i(5),f=p.getDataItemValue,g=i(22),m=i(266),v=m.getCoordSysDefineBySeries,y=i(58),_=i(31),b=_.enableDataStack,x=n;t.exports=x},function(t,e,i){function n(t,e,i){i=i||{};var n,r,a,o,u=i.byIndex,h=i.stackedCoordDimension,c=!(!t||!t.get("stack"));if(s(e,function(t,i){l(t)&&(e[i]=t={name:t}),c&&!t.isExtraCoord&&(u||n||!t.ordinalMeta||(n=t),r||"ordinal"===t.type||"time"===t.type||h&&h!==t.coordDim||(r=t))}),!r||u||n||(u=!0),r){a="__\0ecstackresult",o="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var d=r.coordDim,p=r.type,f=0;s(e,function(t){t.coordDim===d&&f++}),e.push({name:a,coordDim:d,coordDimIndex:f,type:p,isExtraCoord:!0,isCalculationCoord:!0}),f++,e.push({name:o,coordDim:o,coordDimIndex:f,type:p,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:r&&r.name,stackedByDimension:n&&n.name,isStackedByIndex:u,stackedOverDimension:o,stackResultDimension:a}}function r(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function a(t,e){return r(t,e)?t.getCalculationInfo("stackResultDimension"):e}var o=i(0),s=o.each,l=o.isString;e.enableDataStack=n,e.isDimensionStacked=r,e.getStackedDimension=a},function(t,e,i){"use strict";t.exports={},t.exports.Arc=i(367),t.exports.Line=i(368),t.exports.Point=i(369),t.exports.Rectangle=i(370)},function(t,e,i){function n(t){return t>-w&&t<w}function r(t){return t>w||t<-w}function a(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function o(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function s(t,e,i,r,a,o){var s=r+3*(e-i)-t,l=3*(i-2*e+t),u=3*(e-t),h=t-a,c=l*l-3*s*u,d=l*u-9*s*h,p=u*u-3*l*h,f=0;if(n(c)&&n(d))if(n(l))o[0]=0;else{var g=-u/l;g>=0&&g<=1&&(o[f++]=g)}else{var m=d*d-4*c*p;if(n(m)){var v=d/c,g=-l/s+v,y=-v/2;g>=0&&g<=1&&(o[f++]=g),y>=0&&y<=1&&(o[f++]=y)}else if(m>0){var _=x(m),w=c*l+1.5*s*(-d+_),M=c*l+1.5*s*(-d-_);w=w<0?-b(-w,k):b(w,k),M=M<0?-b(-M,k):b(M,k);var g=(-l-(w+M))/(3*s);g>=0&&g<=1&&(o[f++]=g)}else{var D=(2*c*l-3*s*d)/(2*x(c*c*c)),T=Math.acos(D)/3,L=x(c),C=Math.cos(T),g=(-l-2*L*C)/(3*s),y=(-l+L*(C+S*Math.sin(T)))/(3*s),I=(-l+L*(C-S*Math.sin(T)))/(3*s);g>=0&&g<=1&&(o[f++]=g),y>=0&&y<=1&&(o[f++]=y),I>=0&&I<=1&&(o[f++]=I)}}return f}function l(t,e,i,a,o){var s=6*i-12*e+6*t,l=9*e+3*a-3*t-9*i,u=3*e-3*t,h=0;if(n(l)){if(r(s)){var c=-u/s;c>=0&&c<=1&&(o[h++]=c)}}else{var d=s*s-4*l*u;if(n(d))o[0]=-s/(2*l);else if(d>0){var p=x(d),c=(-s+p)/(2*l),f=(-s-p)/(2*l);c>=0&&c<=1&&(o[h++]=c),f>=0&&f<=1&&(o[h++]=f)}}return h}function u(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-o)*r+o,h=(l-s)*r+s,c=(h-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=h,a[6]=l,a[7]=n}function h(t,e,i,n,r,o,s,l,u,h,c){var d,p,f,g,m,v=.005,y=1/0;D[0]=u,D[1]=h;for(var b=0;b<1;b+=.05)T[0]=a(t,i,r,s,b),T[1]=a(e,n,o,l,b),g=_(D,T),g<y&&(d=b,y=g);y=1/0;for(var w=0;w<32&&!(v<M);w++)p=d-v,f=d+v,T[0]=a(t,i,r,s,p),T[1]=a(e,n,o,l,p),g=_(T,D),p>=0&&g<y?(d=p,y=g):(L[0]=a(t,i,r,s,f),L[1]=a(e,n,o,l,f),m=_(L,D),f<=1&&m<y?(d=f,y=m):v*=.5);return c&&(c[0]=a(t,i,r,s,d),c[1]=a(e,n,o,l,d)),x(y)}function c(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function d(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function p(t,e,i,a,o){var s=t-2*e+i,l=2*(e-t),u=t-a,h=0;if(n(s)){if(r(l)){var c=-u/l;c>=0&&c<=1&&(o[h++]=c)}}else{var d=l*l-4*s*u;if(n(d)){var c=-l/(2*s);c>=0&&c<=1&&(o[h++]=c)}else if(d>0){var p=x(d),c=(-l+p)/(2*s),f=(-l-p)/(2*s);c>=0&&c<=1&&(o[h++]=c),f>=0&&f<=1&&(o[h++]=f)}}return h}function f(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function g(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function m(t,e,i,n,r,a,o,s,l){var u,h=.005,d=1/0;D[0]=o,D[1]=s;for(var p=0;p<1;p+=.05){T[0]=c(t,i,r,p),T[1]=c(e,n,a,p);var f=_(D,T);f<d&&(u=p,d=f)}d=1/0;for(var g=0;g<32&&!(h<M);g++){var m=u-h,v=u+h;T[0]=c(t,i,r,m),T[1]=c(e,n,a,m);var f=_(T,D);if(m>=0&&f<d)u=m,d=f;else{L[0]=c(t,i,r,v),L[1]=c(e,n,a,v);var y=_(L,D);v<=1&&y<d?(u=v,d=y):h*=.5}}return l&&(l[0]=c(t,i,r,u),l[1]=c(e,n,a,u)),x(d)}var v=i(10),y=v.create,_=v.distSquare,b=Math.pow,x=Math.sqrt,w=1e-8,M=1e-4,S=x(3),k=1/3,D=y(),T=y(),L=y();e.cubicAt=a,e.cubicDerivativeAt=o,e.cubicRootAt=s,e.cubicExtrema=l,e.cubicSubdivide=u,e.cubicProjectPoint=h,e.quadraticAt=c,e.quadraticDerivativeAt=d,e.quadraticRootAt=p,e.quadraticExtremum=f,e.quadraticSubdivide=g,e.quadraticProjectPoint=m},function(t,e,i){function n(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function r(t,e,i,n,r){function a(t,e){return c?t>e:t<e}var s=e.length;if(t.onBand&&!n&&s){var l,u=t.getExtent();if(1===s)e[0].coord=u[0],l=e[1]={coord:u[0]};else{var h=e[1].coord-e[0].coord;o(e,function(t){t.coord-=h/2;var e=e||0;e%2>0&&(t.coord-=h/(2*(e+1)))}),l={coord:e[s-1].coord+h},e.push(l)}var c=u[0]>u[1];a(e[0].coord,u[0])&&(r?e[0].coord=u[0]:e.shift()),r&&a(u[0],e[0].coord)&&e.unshift({coord:u[0]}),a(u[1],l.coord)&&(r?l.coord=u[1]:e.pop()),r&&a(l.coord,u[1])&&e.push({coord:u[1]})}}var a=i(0),o=a.each,s=a.map,l=i(4),u=l.linearMap,h=l.getPixelPrecision,c=i(485),d=c.createAxisTicks,p=c.createAxisLabels,f=c.calculateCategoryInterval,g=[0,1],m=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};m.prototype={constructor:m,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return h(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(i=i.slice(),n(i,r.count())),u(t,g,i,e)},coordToData:function(t,e){var i=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(i=i.slice(),n(i,r.count()));var a=u(t,i,g,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=d(this,e),n=i.ticks,a=s(n,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),o=e.get("alignWithLabel");return r(this,a,i.tickCategoryInterval,o,t.clamp),a},getViewLabels:function(){return p(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return f(this)}};var v=m;t.exports=v},function(t,e){function i(t,e){r[t]=e}function n(t){return r[t]}var r={};e.register=i,e.get=n},function(t,e){var i=Array.prototype.slice,n=function(){this._$handlers={}};n.prototype={constructor:n,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t].length;r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!0,ctx:i||this}),this},on:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t].length;r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!1,ctx:i||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t].length},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t].length;r<a;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var e=arguments,n=e.length;n>3&&(e=i.call(e,1));for(var r=this._$handlers[t],a=r.length,o=0;o<a;){switch(n){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,e[1]);break;case 3:r[o].h.call(r[o].ctx,e[1],e[2]);break;default:r[o].h.apply(r[o].ctx,e)}r[o].one?(r.splice(o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var e=arguments,n=e.length;n>4&&(e=i.call(e,1,e.length-1));for(var r=e[e.length-1],a=this._$handlers[t],o=a.length,s=0;s<o;){switch(n){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,e[1]);break;case 3:a[s].h.call(r,e[1],e[2]);break;default:a[s].h.apply(r,e)}a[s].one?(a.splice(s,1),o--):s++}}return this}};var r=n;t.exports=r},function(t,e,i){function n(t,e){w.isInstance(t)||(t=w.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,n=t.sourceFormat;n===S&&(this._offset=0,this._dimSize=e,this._data=i);var r=C[n===k?n+"_"+t.seriesLayoutBy:n];f(this,r)}function r(){return this._data.length}function a(t){return this._data[t]}function o(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function s(t,e,i,n){return null!=i?t[i]:t}function l(t,e,i,n){return u(t[n],this._dimensionInfos[e])}function u(t,e){var i=e&&e.type;if("ordinal"===i){var n=e&&e.ordinalMeta;return n?n.parseAndCollect(t):t}return"time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+x(t)),null==t||""===t?NaN:+t}function h(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r,a,o=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(i);return s&&(r=s.name,a=s.index),I[o](n,e,a,r)}}}function c(t,e,i){if(t){var n=t.getProvider().getSource().sourceFormat;if(n===D||n===T){var r=t.getRawDataItem(e);return n!==D||m(r)||(r=null),r?r[i]:void 0}}}var d=i(7),p=(d.__DEV__,i(0)),f=(p.isTypedArray,p.extend),g=(p.assert,p.each),m=p.isObject,v=i(5),y=v.getDataItemValue,_=v.isDataItemOption,b=i(4),x=b.parseDate,w=i(58),M=i(59),S=M.SOURCE_FORMAT_TYPED_ARRAY,k=M.SOURCE_FORMAT_ARRAY_ROWS,D=M.SOURCE_FORMAT_ORIGINAL,T=M.SOURCE_FORMAT_OBJECT_ROWS,L=n.prototype;L.pure=!1,L.persistent=!0,L.getSource=function(){return this._source};var C={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:o},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],i=this._data,n=0;n<i.length;n++){var r=i[n];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:r,getItem:a,appendData:o},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],i=this._source.dimensionsDefine,n=0;n<i.length;n++){var r=this._data[i[n].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;g(t,function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},original:{count:r,getItem:a,appendData:o},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var i=this._dimSize*t,n=0;n<this._dimSize;n++)e[n]=this._data[i+n];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}},I={arrayRows:s,objectRows:function(t,e,i,n){return null!=i?t[n]:t},keyedColumns:s,original:function(t,e,i,n){var r=y(t);return null!=i&&r instanceof Array?r[i]:r},typedArray:s},A={arrayRows:l,objectRows:function(t,e,i,n){return u(t[e],this._dimensionInfos[e])},keyedColumns:l,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&_(t)&&(this.hasItemOption=!0),u(r instanceof Array?r[n]:r,this._dimensionInfos[e])},typedArray:function(t,e,i,n){return t[n]}};e.DefaultDataProvider=n,e.defaultDimValueGetters=A,e.retrieveRawValue=h,e.retrieveRawAttr=c},function(t,e){function i(t,e,i){function n(){h=(new Date).getTime(),c=null,t.apply(o,s||[])}var r,a,o,s,l,u=0,h=0,c=null;e=e||0;var d=function(){r=(new Date).getTime(),o=this,s=arguments;var t=l||e,d=l||i;l=null,a=r-(d?u:h)-t,clearTimeout(c),d?c=setTimeout(n,t):a>=0?n():c=setTimeout(n,-a),u=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function n(t,e,n,r){var l=t[e];if(l){var u=l[a]||l,h=l[s],c=l[o];if(c!==n||h!==r){if(null==n||!r)return t[e]=u;l=t[e]=i(u,n,"debounce"===r),l[a]=u,l[s]=r,l[o]=n}return l}}function r(t,e){var i=t[e];i&&i[a]&&(t[e]=i[a])}var a="\0__throttleOriginMethod",o="\0__throttleRate",s="\0__throttleType";e.throttle=i,e.createOrUpdate=n,e.clear=r},function(t,e){var i={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};t.exports=i},function(t,e){function i(t){return t}function n(t,e,n,r,a){this._old=t,this._new=e,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=a}function r(t,e,i,n,r){for(var a=0;a<t.length;a++){var o="_ec_"+r[n](t[a],a),s=e[o];null==s?(i.push(o),e[o]=a):(s.length||(e[o]=s=[s]),s.push(a))}}n.prototype={constructor:n,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,i=this._new,n={},a={},o=[],s=[];for(r(e,n,o,"_oldKeyGetter",this),r(i,a,s,"_newKeyGetter",this),t=0;t<e.length;t++){var l=o[t],u=a[l];if(null!=u){var h=u.length;h?(1===h&&(a[l]=null),u=u.unshift()):a[l]=null,this._update&&this._update(u,t)}else this._remove&&this._remove(t)}for(var t=0;t<s.length;t++){var l=s[t];if(a.hasOwnProperty(l)){var u=a[l];if(null==u)continue;if(u.length)for(var c=0,h=u.length;c<h;c++)this._add&&this._add(u[c]);else this._add&&this._add(u)}}}};var a=n;t.exports=a},function(t,e){function i(t,e,i){return{seriesType:t,performRawSeries:!0,reset:function(t,n,r){function a(e,i){if("function"==typeof l){var n=t.getRawValue(i),r=t.getDataParams(i);e.setItemVisual(i,"symbolSize",l(n,r))}if(e.hasItemOption){var a=e.getItemModel(i),o=a.getShallow("symbol",!0),s=a.getShallow("symbolSize",!0),u=a.getShallow("symbolKeepAspect",!0);null!=o&&e.setItemVisual(i,"symbol",o),null!=s&&e.setItemVisual(i,"symbolSize",s),null!=u&&e.setItemVisual(i,"symbolKeepAspect",u)}}var o=t.getData(),s=t.get("symbol")||e,l=t.get("symbolSize"),u=t.get("symbolKeepAspect");if(o.setVisual({legendSymbol:i||s,symbol:s,symbolSize:l,symbolKeepAspect:u}),!n.isSeriesFiltered(t)){var h="function"==typeof l;return{dataEach:o.hasItemOption||h?a:null}}}}}t.exports=i},function(t,e,i){function n(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function r(t,e,i,n){var r,a,o=w(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return x(o-L/2)?(a=l?"bottom":"top",r="center"):x(o-1.5*L)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*L&&o>L/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function a(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function o(t,e,i){var n=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],i=i||[];var a=e[0],o=e[1],u=e[e.length-1],h=e[e.length-2],c=i[0],d=i[1],p=i[i.length-1],f=i[i.length-2];n===!1?(s(a),s(c)):l(a,o)&&(n?(s(o),s(d)):(s(a),s(c))),r===!1?(s(u),s(p)):l(h,u)&&(r?(s(h),s(f)):(s(u),s(p)))}function s(t){t&&(t.ignore=!0)}function l(t,e,i){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var a=k.identity([]);return k.rotate(a,a,-t.rotation),n.applyTransform(k.mul([],a,t.getLocalTransform())),r.applyTransform(k.mul([],a,e.getLocalTransform())),n.intersect(r)}}function u(t){return"middle"===t||"center"===t}function h(t,e,i){var n=e.axis;if(e.get("axisTick.show")&&!n.scale.isBlank()){for(var r=e.getModel("axisTick"),a=r.getModel("lineStyle"),o=r.get("length"),s=n.getTicksCoords(),l=[],u=[],h=t._transform,c=[],d=0;d<s.length;d++){var p=s[d].coord;l[0]=p, l[1]=0,u[0]=p,u[1]=i.tickDirection*o,h&&(T(l,l,h),T(u,u,h));var g=new y.Line(y.subPixelOptimizeLine({anid:"tick_"+s[d].tickValue,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:f(a.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),z2:2,silent:!0}));t.group.add(g),c.push(g)}return c}}function c(t,e,i){var r=e.axis,o=p(i.axisLabelShow,e.get("axisLabel.show"));if(o&&!r.scale.isBlank()){var s=e.getModel("axisLabel"),l=s.get("margin"),u=r.getViewLabels(),h=(p(i.labelRotate,s.get("rotate"))||0)*L/180,c=A(i.rotation,h,i.labelDirection),d=e.getCategories(!0),f=[],g=a(e),v=e.get("triggerEvent");return m(u,function(a,o){var u=a.tickValue,h=a.formattedLabel,p=a.rawLabel,m=s;d&&d[u]&&d[u].textStyle&&(m=new _(d[u].textStyle,s,e.ecModel));var b=m.getTextColor()||e.get("axisLine.lineStyle.color"),x=r.dataToCoord(u),w=[x,i.labelOffset+i.labelDirection*l],M=new y.Text({anid:"label_"+u,position:w,rotation:c.rotation,silent:g,z2:10});y.setTextStyle(M.style,m,{text:h,textAlign:m.getShallow("align",!0)||c.textAlign,textVerticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,textFill:"function"==typeof b?b("category"===r.type?p:"value"===r.type?u+"":u,o):b}),v&&(M.eventData=n(e),M.eventData.targetType="axisLabel",M.eventData.value=p),t._dumbGroup.add(M),M.updateTransform(),f.push(M),t.group.add(M),M.decomposeTransform()}),f}}var d=i(0),p=d.retrieve,f=d.defaults,g=d.extend,m=d.each,v=i(11),y=i(3),_=i(17),b=i(4),x=b.isRadianAroundZero,w=b.remRadian,M=i(21),S=M.createSymbol,k=i(19),D=i(10),T=D.applyTransform,L=Math.PI,C=function(t,e){this.opt=e,this.axisModel=t,f(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new y.Group;var i=new y.Group({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};C.prototype={constructor:C,hasBuilder:function(t){return!!I[t]},add:function(t){I[t].call(this)},getGroup:function(){return this.group}};var I={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(T(r,r,n),T(a,a,n));var o=g({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new y.Line(y.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:o,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})));var s=e.get("axisLine.symbol"),l=e.get("axisLine.symbolSize"),u=e.get("axisLine.symbolOffset")||0;if("number"==typeof u&&(u=[u,u]),null!=s){"string"==typeof s&&(s=[s,s]),"string"!=typeof l&&"number"!=typeof l||(l=[l,l]);var h=l[0],c=l[1];m([{rotate:t.rotation+Math.PI/2,offset:u[0],r:0},{rotate:t.rotation-Math.PI/2,offset:u[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],function(e,i){if("none"!==s[i]&&null!=s[i]){var n=S(s[i],-h/2,-c/2,h,c,o.stroke,!0),a=e.r+e.offset,l=[r[0]+a*Math.cos(t.rotation),r[1]-a*Math.sin(t.rotation)];n.attr({rotation:e.rotate,position:l,silent:!0}),this.group.add(n)}},this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,i=h(this,t,e),n=c(this,t,e);o(t,n,i)},axisName:function(){var t=this.opt,e=this.axisModel,i=p(t.axisName,e.get("name"));if(i){var o,s=e.get("nameLocation"),l=t.nameDirection,h=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,d=this.axisModel.axis.getExtent(),f=d[0]>d[1]?-1:1,m=["start"===s?d[0]-f*c:"end"===s?d[1]+f*c:(d[0]+d[1])/2,u(s)?t.labelOffset+l*c:0],_=e.get("nameRotate");null!=_&&(_=_*L/180);var b;u(s)?o=A(t.rotation,null!=_?_:t.rotation,l):(o=r(t,s,_||0,d),b=t.axisNameAvailableWidth,null!=b&&(b=Math.abs(b/Math.sin(o.rotation)),!isFinite(b)&&(b=null)));var x=h.getFont(),w=e.get("nameTruncate",!0)||{},M=w.ellipsis,S=p(t.nameTruncateMaxWidth,w.maxWidth,b),k=null!=M&&null!=S?v.truncateText(i,S,x,M,{minChar:2,placeholder:w.placeholder}):i,D=e.get("tooltip",!0),T=e.mainType,C={componentType:T,name:i,$vars:["name"]};C[T+"Index"]=e.componentIndex;var I=new y.Text({anid:"name",__fullText:i,__truncatedText:k,position:m,rotation:o.rotation,silent:a(e),z2:1,tooltip:D&&D.show?g({content:i,formatter:function(){return i},formatterParams:C},D):null});y.setTextStyle(I.style,h,{text:k,textFont:x,textFill:h.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:o.textAlign,textVerticalAlign:o.textVerticalAlign}),e.get("triggerEvent")&&(I.eventData=n(e),I.eventData.targetType="axisName",I.eventData.name=i),this._dumbGroup.add(I),I.updateTransform(),this.group.add(I),I.decomposeTransform()}}},A=C.innerTextLayout=function(t,e,i){var n,r,a=w(e-t);return x(a)?(r=i>0?"top":"bottom",n="center"):x(a-L)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=a>0&&a<L?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:r}},P=C;t.exports=P},function(t,e,i){function n(t,e,i,n,a,o){var u=l.getAxisPointerClass(t.axisPointerClass);if(u){var h=s.getAxisPointerModel(e);h?(t._axisPointer||(t._axisPointer=new u)).render(e,h,n,o):r(t,n)}}function r(t,e,i){var n=t._axisPointer;n&&n.dispose(e,i),t._axisPointer=null}var a=i(7),o=(a.__DEV__,i(2)),s=i(85),l=o.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,i,r){this.axisPointerClass&&s.fixValue(t),l.superApply(this,"render",arguments),n(this,t,e,i,r,!0)},updateAxisPointer:function(t,e,i,r,a){n(this,t,e,i,r,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),l.superApply(this,"remove",arguments)},dispose:function(t,e){r(this,e),l.superApply(this,"dispose",arguments)}}),u=[];l.registerAxisPointerClass=function(t,e){u[t]=e},l.getAxisPointerClass=function(t){return t&&u[t]};var h=l;t.exports=h},function(t,e,i){function n(t,e,i){if(t&&s.indexOf(e,t.type)>=0){var n=i.getData().tree.root,r=t.targetNode;if(r&&n.contains(r))return{node:r};var a=t.targetNodeId;if(null!=a&&(r=n.getNodeById(a)))return{node:r}}}function r(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function a(t,e){var i=r(t);return s.indexOf(i,e)>=0}function o(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}var s=i(0);e.retrieveTargetInfo=n,e.getPathToRoot=r,e.aboveViewRoot=a,e.wrapTreePathInfo=o},function(t,e,i){function n(t){var e=t.pieceList;t.hasSpecialVisual=!1,g.each(e,function(e,i){e.originIndex=i,null!=e.visual&&(t.hasSpecialVisual=!0)})}function r(t){var e=t.categories,i=t.visual,n=t.categoryMap={};if(_(e,function(t,e){n[t]=e}),!g.isArray(i)){var r=[];g.isObject(i)?_(i,function(t,e){var i=n[e];r[null!=i?i:x]=t}):r[x]=i,i=p(t,r)}for(var a=e.length-1;a>=0;a--)null==i[a]&&(delete n[e[a]],e.pop())}function a(t,e){var i=t.visual,n=[];g.isObject(i)?_(i,function(t){n.push(t)}):null!=i&&n.push(i);var r={color:1,symbol:1};e||1!==n.length||r.hasOwnProperty(t.type)||(n[1]=n[0]),p(t,n)}function o(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:c([0,1])}}function s(t){var e=this.option.visual;return e[Math.round(y(t,[0,1],[0,e.length-1],!0))]||{}}function l(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function u(t){var e=this.option.visual;return e[this.option.loop&&t!==x?t%e.length:t]}function h(){return this.option.visual[0]}function c(t){return{linear:function(e){return y(e,t,this.option.visual,!0)},category:u,piecewise:function(e,i){var n=d.call(this,i);return null==n&&(n=y(e,t,this.option.visual,!0)),n},fixed:h}}function d(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=w.findPieceIndex(t,i),r=i[n];if(r&&r.visual)return r.visual[this.type]}}function p(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=g.map(e,function(t){return m.parse(t)})),e}function f(t,e,i){return t?e<=i:e<i}var g=i(0),m=i(26),v=i(4),y=v.linearMap,_=g.each,b=g.isObject,x=-1,w=function(t){var e=t.mappingMethod,i=t.type,o=this.option=g.clone(t);this.type=i,this.mappingMethod=e,this._normalizeData=S[e];var s=M[i];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._doMap=s._doMap[e],"piecewise"===e?(a(o),n(o)):"category"===e?o.categories?r(o):a(o,!0):(g.assert("linear"!==e||o.dataExtent),a(o))};w.prototype={constructor:w,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return g.bind(this._normalizeData,this)}};var M=w.visualHandlers={color:{applyVisual:l("color"),getColorMapper:function(){var t=this.option;return g.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),u.call(this,t)}:function(e,i,n){var r=!!n;return!i&&(e=this._normalizeData(e)),n=m.fastLerp(e,t.parsedVisual,n),r?n:m.stringify(n,"rgba")},this)},_doMap:{linear:function(t){return m.stringify(m.fastLerp(t,this.option.parsedVisual),"rgba")},category:u,piecewise:function(t,e){var i=d.call(this,e);return null==i&&(i=m.stringify(m.fastLerp(t,this.option.parsedVisual),"rgba")),i},fixed:h}},colorHue:o(function(t,e){return m.modifyHSL(t,e)}),colorSaturation:o(function(t,e){return m.modifyHSL(t,null,e)}),colorLightness:o(function(t,e){return m.modifyHSL(t,null,null,e)}),colorAlpha:o(function(t,e){return m.modifyAlpha(t,e)}),opacity:{applyVisual:l("opacity"),_doMap:c([0,1])},liftZ:{applyVisual:l("liftZ"),_doMap:{linear:h,category:h,piecewise:h,fixed:h}},symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(g.isString(n))i("symbol",n);else if(b(n))for(var r in n)n.hasOwnProperty(r)&&i(r,n[r])},_doMap:{linear:s,category:u,piecewise:function(t,e){var i=d.call(this,e);return null==i&&(i=s.call(this,t)),i},fixed:h}},symbolSize:{applyVisual:l("symbolSize"),_doMap:c([0,1])}},S={linear:function(t){return y(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=w.findPieceIndex(t,e,!0);if(null!=i)return y(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?x:e},fixed:g.noop};w.listVisualTypes=function(){var t=[];return g.each(M,function(e,i){t.push(i)}),t},w.addVisualHandler=function(t,e){M[t]=e},w.isValidType=function(t){return M.hasOwnProperty(t)},w.eachVisual=function(t,e,i){g.isObject(t)?g.each(t,e,i):e.call(i,t)},w.mapVisual=function(t,e,i){var n,r=g.isArray(t)?[]:g.isObject(t)?{}:(n=!0,null);return w.eachVisual(t,function(t,a){var o=e.call(i,t,a);n?r=o:r[a]=o}),r},w.retrieveVisuals=function(t){var e,i={};return t&&_(M,function(n,r){t.hasOwnProperty(r)&&(i[r]=t[r],e=!0)}),e?i:null},w.prepareVisualTypes=function(t){if(b(t)){var e=[];_(t,function(t,i){e.push(i)}),t=e}else{if(!g.isArray(t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},w.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},w.findPieceIndex=function(t,e,i){function n(e,i){var n=Math.abs(e-t);n<a&&(a=n,r=i)}for(var r,a=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(null!=l){if(l===t||"string"==typeof l&&l===t+"")return o;i&&n(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],h=u.interval,c=u.close;if(h){if(h[0]===-(1/0)){if(f(c[1],t,h[1]))return o}else if(h[1]===1/0){if(f(c[0],h[0],t))return o}else if(f(c[0],h[0],t)&&f(c[1],t,h[1]))return o;i&&n(h[0],o),i&&n(h[1],o)}}if(i)return t===1/0?e.length-1:t===-(1/0)?0:r};var k=w;t.exports=k},function(t,e,i){function n(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,i,n){for(var a={},o=0;o<t.length;o++){var s=t[o][1];if(!(i&&r.indexOf(i,s)>=0||n&&r.indexOf(n,s)<0)){var l=e.getShallow(s);null!=l&&(a[t[o][0]]=l)}}return a}}var r=i(0);t.exports=n},function(t,e,i){var n=i(33),r=i(10),a=i(95),o=i(12),s=i(74),l=s.devicePixelRatio,u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},h=[],c=[],d=[],p=[],f=Math.min,g=Math.max,m=Math.cos,v=Math.sin,y=Math.sqrt,_=Math.abs,b="undefined"!=typeof Float32Array,x=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};x.prototype={constructor:x,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=_(1/l/t)||0,this._uy=_(1/l/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(u.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=_(t-this._xi)>this._ux||_(e-this._yi)>this._uy||this._len<5;return this.addData(u.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,a){return this.addData(u.C,t,e,i,n,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,a):this._ctx.bezierCurveTo(t,e,i,n,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData(u.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,a){return this.addData(u.A,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=m(r)*i+t,this._yi=v(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(u.R,t,e,i,n),this},closePath:function(){this.addData(u.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t.length;i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length==e||!b||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;r<e;r++)i+=t[r].len();b&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;r<e;r++)for(var a=t[r].data,o=0;o<a.length;o++)this.data[n++]=a[o];this._len=n},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var i=0;i<arguments.length;i++)e[this._len++]=arguments[i];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,h=t-l,c=e-u,d=y(h*h+c*c),p=l,m=u,v=o.length;for(h/=d,c/=d,a<0&&(a=r+a),a%=r,p-=a*h,m-=a*c;h>0&&p<=t||h<0&&p>=t||0==h&&(c>0&&m<=e||c<0&&m>=e);)n=this._dashIdx,i=o[n],p+=h*i,m+=c*i,this._dashIdx=(n+1)%v,h>0&&p<l||h<0&&p>l||c>0&&m<u||c<0&&m>u||s[n%2?"moveTo":"lineTo"](h>=0?f(p,t):g(p,t),c>=0?f(m,e):g(m,e));h=p-t,c=m-e,this._dashOffset=-y(h*h+c*c)},_dashedBezierTo:function(t,e,i,r,a,o){var s,l,u,h,c,d=this._dashSum,p=this._dashOffset,f=this._lineDash,g=this._ctx,m=this._xi,v=this._yi,_=n.cubicAt,b=0,x=this._dashIdx,w=f.length,M=0;for(p<0&&(p=d+p),p%=d,s=0;s<1;s+=.1)l=_(m,t,i,a,s+.1)-_(m,t,i,a,s),u=_(v,e,r,o,s+.1)-_(v,e,r,o,s),b+=y(l*l+u*u);for(;x<w&&(M+=f[x],!(M>p));x++);for(s=(M-p)/b;s<=1;)h=_(m,t,i,a,s),c=_(v,e,r,o,s),x%2?g.moveTo(h,c):g.lineTo(h,c),s+=f[x]/b,x=(x+1)%w;x%2!==0&&g.lineTo(a,o),l=a-h,u=o-c,this._dashOffset=-y(l*l+u*u)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,b&&(this.data=new Float32Array(t)))},getBoundingRect:function(){h[0]=h[1]=d[0]=d[1]=Number.MAX_VALUE,c[0]=c[1]=p[0]=p[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,s=0,l=0;l<t.length;){var f=t[l++];switch(1==l&&(e=t[l],i=t[l+1],n=e,s=i),f){case u.M:n=t[l++],s=t[l++],e=n,i=s,d[0]=n,d[1]=s,p[0]=n,p[1]=s;break;case u.L:a.fromLine(e,i,t[l],t[l+1],d,p),e=t[l++],i=t[l++];break;case u.C:a.fromCubic(e,i,t[l++],t[l++],t[l++],t[l++],t[l],t[l+1],d,p),e=t[l++],i=t[l++];break;case u.Q:a.fromQuadratic(e,i,t[l++],t[l++],t[l],t[l+1],d,p),e=t[l++],i=t[l++];break;case u.A:var g=t[l++],y=t[l++],_=t[l++],b=t[l++],x=t[l++],w=t[l++]+x,M=(t[l++],1-t[l++]);1==l&&(n=m(x)*_+g,s=v(x)*b+y),a.fromArc(g,y,_,b,x,w,M,d,p),e=m(w)*_+g,i=v(w)*b+y;break;case u.R:n=e=t[l++],s=i=t[l++];var S=t[l++],k=t[l++];a.fromLine(n,s,n+S,s+k,d,p);break;case u.Z:e=n,i=s}r.min(h,h,d),r.max(c,c,p)}return 0===l&&(h[0]=h[1]=c[0]=c[1]=0),new o(h[0],h[1],c[0]-h[0],c[1]-h[1])},rebuildPath:function(t){for(var e,i,n,r,a,o,s=this.data,l=this._ux,h=this._uy,c=this._len,d=0;d<c;){var p=s[d++];switch(1==d&&(n=s[d],r=s[d+1],e=n,i=r),p){case u.M:e=n=s[d++],i=r=s[d++],t.moveTo(n,r);break;case u.L:a=s[d++],o=s[d++],(_(a-n)>l||_(o-r)>h||d===c-1)&&(t.lineTo(a,o),n=a,r=o);break;case u.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),n=s[d-2],r=s[d-1];break;case u.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),n=s[d-2],r=s[d-1];break;case u.A:var f=s[d++],g=s[d++],y=s[d++],b=s[d++],x=s[d++],w=s[d++],M=s[d++],S=s[d++],k=y>b?y:b,D=y>b?1:y/b,T=y>b?b/y:1,L=Math.abs(y-b)>.001,C=x+w;L?(t.translate(f,g),t.rotate(M),t.scale(D,T),t.arc(0,0,k,x,C,1-S),t.scale(1/D,1/T),t.rotate(-M),t.translate(-f,-g)):t.arc(f,g,k,x,C,1-S),1==d&&(e=m(x)*y+f,i=v(x)*b+g),n=m(C)*y+f,r=v(C)*b+g;break;case u.R:e=n=s[d],i=r=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case u.Z:t.closePath(),n=e,r=i}}}},x.CMD=u;var w=x;t.exports=w},function(t,e,i){function n(){var t=a();return function(e){var i=t(e),n=e.pipelineContext,r=i.large,a=i.progressiveRender,o=i.large=n.large,s=i.progressiveRender=n.progressiveRender;return!!(r^o||a^s)&&"reset"}}var r=i(5),a=r.makeInner;t.exports=n},function(t,e,i){function n(t,e){return e=e||{},r(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}var r=i(270);t.exports=n},function(t,e,i){var n=i(0),r=(i(23),{getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:n.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}});t.exports=r},function(t,e,i){function n(t,e,i){e=l(e)&&{coordDimensions:e}||s({},e);var n=t.getSource(),o=r(n,e),u=new a(o,t);return u.initData(n,i),u}var r=i(49),a=i(20),o=i(0),s=o.extend,l=o.isArray;t.exports=n},function(t,e,i){"use strict";function n(t,e){return a.where(t,function(t){return t.position===e})}function r(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,i){var n=e?i:t,r=e?t:i;return n.weight===r.weight?n._tmpIndex_-r._tmpIndex_:n.weight-r.weight}),t.forEach(function(t){delete t._tmpIndex_})}var a=i(6);t.exports={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var i=t.boxes?t.boxes.indexOf(e):-1;i!==-1&&t.boxes.splice(i,1)},configure:function(t,e,i){for(var n,r=["fullWidth","position","weight"],a=r.length,o=0;o<a;++o)n=r[o],i.hasOwnProperty(n)&&(e[n]=i[n])},update:function(t,e,i){function o(t){var e,i=t.isHorizontal();i?(e=t.update(t.fullWidth?x:T,D),L-=e.height):(e=t.update(k,L),T-=e.width),C.push({horizontal:i,minSize:e,box:t})}function s(t){var e=a.findNextWhere(C,function(e){return e.box===t});if(e)if(t.isHorizontal()){var i={left:Math.max(O,I),right:Math.max(R,A),top:0,bottom:0};t.update(t.fullWidth?x:T,w/2,i)}else t.update(e.minSize.width,L)}function l(t){var e=a.findNextWhere(C,function(e){return e.box===t}),i={left:0,right:0,top:H,bottom:z};e&&t.update(e.minSize.width,L,i)}function u(t){t.isHorizontal()?(t.left=t.fullWidth?d:O,t.right=t.fullWidth?e-p:O+T,t.top=j,t.bottom=j+t.height,j=t.bottom):(t.left=B,t.right=B+t.width,t.top=H,t.bottom=H+L,B=t.right)}if(t){var h=t.options.layout||{},c=a.options.toPadding(h.padding),d=c.left,p=c.right,f=c.top,g=c.bottom,m=n(t.boxes,"left"),v=n(t.boxes,"right"),y=n(t.boxes,"top"),_=n(t.boxes,"bottom"),b=n(t.boxes,"chartArea");r(m,!0),r(v,!1),r(y,!0),r(_,!1);var x=e-d-p,w=i-f-g,M=x/2,S=w/2,k=(e-M)/(m.length+v.length),D=(i-S)/(y.length+_.length),T=x,L=w,C=[];a.each(m.concat(v,y,_),o);var I=0,A=0,P=0,E=0;a.each(y.concat(_),function(t){if(t.getPadding){var e=t.getPadding();I=Math.max(I,e.left),A=Math.max(A,e.right)}}),a.each(m.concat(v),function(t){if(t.getPadding){var e=t.getPadding();P=Math.max(P,e.top),E=Math.max(E,e.bottom)}});var O=d,R=p,H=f,z=g;a.each(m.concat(v),s),a.each(m,function(t){O+=t.width}),a.each(v,function(t){R+=t.width}),a.each(y.concat(_),s),a.each(y,function(t){H+=t.height}),a.each(_,function(t){z+=t.height}),a.each(m.concat(v),l),O=d,R=p,H=f,z=g,a.each(m,function(t){O+=t.width}),a.each(v,function(t){R+=t.width}),a.each(y,function(t){H+=t.height}),a.each(_,function(t){z+=t.height});var Y=Math.max(I-O,0);O+=Y,R+=Math.max(A-R,0);var N=Math.max(P-H,0);H+=N,z+=Math.max(E-z,0);var F=i-H-z,W=e-O-R;W===T&&F===L||(a.each(m,function(t){t.height=F}),a.each(v,function(t){t.height=F}),a.each(y,function(t){t.fullWidth||(t.width=W)}),a.each(_,function(t){t.fullWidth||(t.width=W)}),L=F,T=W);var B=d+Y,j=f+N;a.each(m.concat(y),u),B+=T,j+=L,a.each(v,u),a.each(_,u),t.chartArea={left:O,top:H,right:O+T,bottom:H+L},a.each(b,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(T,L)})}}}},function(t,e,i){"use strict";var n=i(6);t.exports={formatters:{values:function(t){return n.isArray(t)?t:""+t},linear:function(t,e,i){var r=i.length>3?i[2]-i[1]:i[1]-i[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var a=n.log10(Math.abs(r)),o="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,e,i){var r=t/Math.pow(10,Math.floor(n.log10(t)));return 0===t?"0":1===r||2===r||5===r||0===e||e===i.length-1?t.toExponential():""}}}},function(t,e,i){var n=i(74),r=n.debugMode,a=function(){};1===r?a=function(){for(var t in arguments)throw new Error(arguments[t])}:r>1&&(a=function(){for(var t in arguments)console.log(arguments[t])});var o=a;t.exports=o},function(t,e,i){function n(t){r.call(this,t)}var r=i(56),a=i(12),o=i(0),s=i(94);n.prototype={constructor:n,type:"image",brush:function(t,e){var i=this.style,n=i.image;i.bind(t,this,e);var r=this._image=s.createOrUpdateImage(n,this._image,this,this.onload);if(r&&s.isImageReady(r)){var a=i.x||0,o=i.y||0,l=i.width,u=i.height,h=r.width/r.height;if(null==l&&null!=u?l=u*h:null==u&&null!=l?u=l/h:null==l&&null==u&&(l=r.width,u=r.height),this.setTransform(t),i.sWidth&&i.sHeight){var c=i.sx||0,d=i.sy||0;t.drawImage(r,c,d,i.sWidth,i.sHeight,a,o,l,u)}else if(i.sx&&i.sy){var c=i.sx,d=i.sy,p=l-c,f=u-d;t.drawImage(r,c,d,p,f,a,o,l,u)}else t.drawImage(r,a,o,l,u);null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new a(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},o.inherits(n,r);var l=n;t.exports=l},function(t,e,i){function n(t){t=t||{},o.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new a(t.style,this),this._rect=null,this.__clipPaths=[]}var r=i(0),a=i(251),o=i(248),s=i(255);n.prototype={constructor:n,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,inplace:!1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();return n.contain(i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?o.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new a(t,this),this.dirty(!1),this}},r.inherits(n,o),r.mixin(n,s);var l=n;t.exports=l},function(t,e,i){var n=i(56),r=i(0),a=i(25),o=i(75),s=function(t){n.call(this,t)};s.prototype={constructor:s,type:"text",brush:function(t,e){var i=this.style;this.__dirty&&o.normalizeTextStyle(i,!0),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;null!=n&&(n+=""),i.bind(t,this,e),o.needDrawText(n,i)&&(this.setTransform(t),o.renderText(this,t,n,i),this.restoreTransform(t))},getBoundingRect:function(){var t=this.style;if(this.__dirty&&o.normalizeTextStyle(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var i=a.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.rich);if(i.x+=t.x||0,i.y+=t.y||0,o.getStroke(t.textStroke,t.textStrokeWidth)){var n=t.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},r.inherits(s,n);var l=s;t.exports=l},function(t,e,i){function n(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===f?{}:[]),this.sourceFormat=t.sourceFormat||d,this.seriesLayoutBy=t.seriesLayoutBy||c,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&a(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}var r=i(0),a=r.createHashMap,o=r.isTypedArray,s=i(28),l=s.enableClassCheck,u=i(59),h=u.SOURCE_FORMAT_ORIGINAL,c=u.SERIES_LAYOUT_BY_COLUMN,d=u.SOURCE_FORMAT_UNKNOWN,p=u.SOURCE_FORMAT_TYPED_ARRAY,f=u.SOURCE_FORMAT_KEYED_COLUMNS;n.seriesDataToSource=function(t){return new n({data:t,sourceFormat:o(t)?p:h,fromDataset:!1})},l(n);var g=n;t.exports=g},function(t,e){var i="original",n="arrayRows",r="objectRows",a="keyedColumns",o="unknown",s="typedArray",l="column",u="row";e.SOURCE_FORMAT_ORIGINAL=i,e.SOURCE_FORMAT_ARRAY_ROWS=n,e.SOURCE_FORMAT_OBJECT_ROWS=r,e.SOURCE_FORMAT_KEYED_COLUMNS=a,e.SOURCE_FORMAT_UNKNOWN=o,e.SOURCE_FORMAT_TYPED_ARRAY=s,e.SERIES_LAYOUT_BY_COLUMN=l,e.SERIES_LAYOUT_BY_ROW=u},function(t,e,i){function n(t){var e={},i=e.encode={},n=l(),r=[],o=[];s(t.dimensions,function(e){var s=t.getDimensionInfo(e),l=s.coordDim;if(l){var u=i[l];i.hasOwnProperty(l)||(u=i[l]=[]),u[s.coordDimIndex]=e,s.isExtraCoord||(n.set(l,1),a(s.type)&&(r[0]=e)),s.defaultTooltip&&o.push(e)}h.each(function(t,e){var n=i[e];i.hasOwnProperty(e)||(n=i[e]=[]);var r=s.otherDims[e];null!=r&&r!==!1&&(n[r]=s.name)})});var u=[],c={};n.each(function(t,e){var n=i[e];c[e]=n[0],u=u.concat(n)}),e.dataDimsOnCoord=u,e.encodeFirstDimNotExtra=c;var d=i.label;d&&d.length&&(r=d.slice());var p=i.tooltip;return p&&p.length?o=p.slice():o.length||(o=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=o,e}function r(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function a(t){return!("ordinal"===t||"time"===t)}var o=i(0),s=o.each,l=o.createHashMap,u=(o.assert,i(7)),h=(u.__DEV__,l(["tooltip","label","itemName","itemId","seriesName"]));e.OTHER_DIMENSIONS=h,e.summarizeDimensions=n,e.getDimensionTypeByAxis=r},function(t,e,i){function n(t){this.group=new s.Group,this._symbolCtor=t||l}function r(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function a(t){return null==t||h(t)||(t={isIgnore:t}),t||{}}function o(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}var s=i(3),l=i(83),u=i(0),h=u.isObject,c=n.prototype;c.updateData=function(t,e){e=a(e);var i=this.group,n=t.hostModel,l=this._data,u=this._symbolCtor,h=o(t);l||i.removeAll(),t.diff(l).add(function(n){var a=t.getItemLayout(n);if(r(t,a,n,e)){var o=new u(t,n,h);o.attr("position",a),t.setItemGraphicEl(n,o),i.add(o)}}).update(function(a,o){var c=l.getItemGraphicEl(o),d=t.getItemLayout(a);return r(t,d,a,e)?(c?(c.updateData(t,a,h),s.updateProps(c,{position:d},n)):(c=new u(t,a),c.attr("position",d)),i.add(c),void t.setItemGraphicEl(a,c)):void i.remove(c)}).remove(function(t){var e=l.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)})}).execute(),this._data=t},c.isPersistent=function(){return!0},c.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){var n=t.getItemLayout(i);e.attr("position",n)})},c.incrementalPrepareUpdate=function(t){this._seriesScope=o(t),this._data=null,this.group.removeAll()},c.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}i=a(i);for(var o=t.start;o<t.end;o++){var s=e.getItemLayout(o);if(r(e,s,o,i)){var l=new this._symbolCtor(e,o,this._seriesScope);l.traverse(n),l.attr("position",s),this.group.add(l),e.setItemGraphicEl(o,l)}}},c.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var d=n;t.exports=d},function(t,e,i){function n(t){return{seriesType:t,plan:o(),reset:function(t){function e(t,e){for(var i=t.end-t.start,r=o&&new Float32Array(i*u),a=t.start,l=0,h=[],c=[];a<t.end;a++){var d;if(1===u){var p=e.get(s[0],a);d=!isNaN(p)&&n.dataToPoint(p,null,c)}else{var p=h[0]=e.get(s[0],a),f=h[1]=e.get(s[1],a);d=!isNaN(p)&&!isNaN(f)&&n.dataToPoint(h,null,c)}o?(r[l++]=d?d[0]:NaN,r[l++]=d?d[1]:NaN):e.setItemLayout(a,d&&d.slice()||[NaN,NaN])}o&&e.setLayout("symbolPoints",r)}var i=t.getData(),n=t.coordinateSystem,r=t.pipelineContext,o=r.large;if(n){var s=a(n.dimensions,function(t){return i.mapDimension(t)}).slice(0,2),u=s.length,h=i.getCalculationInfo("stackResultDimension");return l(i,s[0])&&(s[0]=h),l(i,s[1])&&(s[1]=h),u&&{progress:e}}}}}var r=i(0),a=r.map,o=i(48),s=i(31),l=s.isDimensionStacked;t.exports=n},function(t,e,i){var n=i(2),r=i(0),a=i(3);i(100),i(495),n.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})},function(t,e){function i(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf(function(t){for(var e=n.getName(t),r=0;r<i.length;r++)if(!i[r].isSelected(e))return!1;return!0})}}}}t.exports=i},function(t,e){function i(t,e,i,a,o,s){e[0]=r(e[0],i),e[1]=r(e[1],i),t=t||0;var l=i[1]-i[0];null!=o&&(o=r(o,[0,l])),null!=s&&(s=Math.max(s,null!=o?o:0)),"all"===a&&(o=s=Math.abs(e[1]-e[0]),a=0);var u=n(e,a);e[a]+=t;var h=o||0,c=i.slice();u.sign<0?c[0]+=h:c[1]-=h,e[a]=r(e[a],c);var d=n(e,a);null!=o&&(d.sign!==u.sign||d.span<o)&&(e[1-a]=e[a]+u.sign*o);var d=n(e,a);return null!=s&&d.span>s&&(e[1-a]=e[a]+d.sign*s),e}function n(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function r(t,e){return Math.min(e[1],Math.max(e[0],t))}t.exports=i},function(t,e,i){var n=i(2),r=i(0),a=i(85),o=i(621);i(622), i(623),i(307),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!r.isArray(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=a.collect(t,e)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},o)},function(t,e,i){function n(t){var e={};return d(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}function r(t,e){var i=t._rangePropMode,n=t.get("rangeMode");d([["start","startValue"],["end","endValue"]],function(t,r){var a=null!=e[t[0]],o=null!=e[t[1]];a&&!o?i[r]="percent":!a&&o?i[r]="value":n?i[r]=n[r]:a&&(i[r]="percent")})}var a=i(7),o=(a.__DEV__,i(2)),s=i(0),l=i(15),u=i(5),h=i(109),c=i(683),d=s.each,p=h.eachAxisDim,f=o.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var r=n(t);this.mergeDefaultAndTheme(t,i),this.doInit(r)},mergeOption:function(t){var e=n(t);s.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;l.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),r(this,t),d([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,r){var a=this.dependentModels[e.axis][i],o=a.__dzAxisProxy||(a.__dzAxisProxy=new c(e.name,i,this,r));t[e.name+"_"+i]=o},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();p(function(e){var i=e.axisIndex;t[i]=u.normalizeToArray(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;p(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var r="vertical"===e?"y":"x";n[r+"Axis"].length?(i[r+"AxisIndex"]=[0],t=!1):d(n.singleAxis,function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)})}t&&p(function(e){if(t){var n=[],r=this.dependentModels[e.axis];if(r.length&&!n.length)for(var a=0,o=r.length;a<o;a++)"category"===r[a].get("type")&&n.push(a);i[e.axisIndex]=n,n.length&&(t=!1)}},this),t&&this.ecModel.eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&p(function(e){var n=i[e.axisIndex],r=t.get(e.axisIndex),a=t.get(e.axisId),o=t.ecModel.queryComponents({mainType:e.axis,index:r,id:a})[0];r=o.componentIndex,s.indexOf(n,r)<0&&n.push(r)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return p(function(n){var r=t.get(n.axisIndex),a=this.dependentModels[n.axis][r];a&&a.get("type")===e||(i=!1)},this),i},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return p(function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this.ecModel;p(function(n){d(this.get(n.axisIndex),function(r){t.call(e,n,r,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t,e){var i=this.option;d([["start","startValue"],["end","endValue"]],function(e){null==t[e[0]]&&null==t[e[1]]||(i[e[0]]=t[e[0]],i[e[1]]=t[e[1]])},this),!e&&r(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}}),g=f;t.exports=g},function(t,e,i){var n=i(79),r=n.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){function t(t,e,i,n){for(var r,a=0;a<i.length;a++)if(i[a].model===t){r=i[a];break}r||i.push(r={model:t,axisModels:[],coordIndex:n}),r.axisModels.push(e)}var e=this.dataZoomModel,i=this.ecModel,n={};return e.eachTargetAxis(function(e,r){var a=i.getComponent(e.axis,r);if(a){var o=a.getCoordSysModel();o&&t(o,a,n[o.mainType]||(n[o.mainType]=[]),o.componentIndex)}},this),n}});t.exports=r},function(t,e,i){var n,r,a;!function(o){r=[i(325),i(326)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t,e){function i(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}function n(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[l.toString.call(t)]||"object":typeof t}function r(t){return null!=t&&t===t.window}function a(t){var e="length"in t&&t.length,i=n(t);return"function"!==i&&!r(t)&&(!(1!==t.nodeType||!e)||"array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function o(t){return t instanceof Element}function s(i){return i instanceof s?i:this instanceof s?void(void 0!==i&&null!==i&&i!==t&&(this[0]=i.nodeName?i:void 0!==i[0]&&i[0].nodeName?i[0]:e.querySelector(i),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new s(i)}for(var l={},u="Boolean Number String Function Array Date RegExp Object Error".split(" "),h=0;h<u.length;h++)l["[object "+u[h]+"]"]=u[h].toLowerCase();return s.prototype={on:function(t,e){if(o(this[0]))for(var i=this[0].eventRegistry,n=this[0],r=t.split(" "),a=0;a<r.length;a++){var s=r[a].split(".");!function(t,r){n.addEventListener?n.addEventListener(t,e,!1):n.attachEvent&&n.attachEvent("on"+t,e),i[t]=i[t]||{},i[t][r]=i[t][r]||[],i[t][r].push(e)}(s[0],s[1]||"global")}return this},off:function(t,e){if(o(this[0]))for(var i=this[0].eventRegistry,n=this[0],r=t.split(" "),a=0;a<r.length;a++)for(var s=r[a].split("."),l=function(t,n){var r,a,o=[];if(t.length>0)if(void 0===e)for(r=0,a=i[t][n].length;r<a;r++)o.push({ev:t,namespace:n&&n.length>0?n:"global",handler:i[t][n][r]});else o.push({ev:t,namespace:n&&n.length>0?n:"global",handler:e});else if(n.length>0)for(var s in i)for(var l in i[s])if(l===n)if(void 0===e)for(r=0,a=i[s][l].length;r<a;r++)o.push({ev:s,namespace:l,handler:i[s][l][r]});else o.push({ev:s,namespace:l,handler:e});return o}(s[0],s[1]),u=0,h=l.length;u<h;u++)!function(t,e,r){if(t in i==1)if(n.removeEventListener?n.removeEventListener(t,r,!1):n.detachEvent&&n.detachEvent("on"+t,r),"global"===e)for(var a in i[t])i[t][a].splice(i[t][a].indexOf(r),1);else i[t][e].splice(i[t][e].indexOf(r),1)}(l[u].ev,l[u].namespace,l[u].handler);return this},trigger:function(t){if(o(this[0]))for(var i=this[0].eventRegistry,n=this[0],r="string"==typeof t?t.split(" "):[t.type],a=0;a<r.length;a++){var l=r[a].split("."),u=l[0],h=l[1]||"global";if(void 0!==e&&"global"===h){var c,d,p={bubbles:!0,cancelable:!0,detail:Array.prototype.slice.call(arguments,1)};if(e.createEvent){try{c=new CustomEvent(u,p)}catch(f){(c=e.createEvent("CustomEvent")).initCustomEvent(u,p.bubbles,p.cancelable,p.detail)}t.type&&s.extend(c,t),n.dispatchEvent(c)}else(c=e.createEventObject()).eventType=u,t.type&&s.extend(c,t),n.fireEvent("on"+c.eventType,c)}else if(void 0!==i[u])if(arguments[0]=arguments[0].type?arguments[0]:s.Event(arguments[0]),"global"===h)for(var g in i[u])for(d=0;d<i[u][g].length;d++)i[u][g][d].apply(n,arguments);else for(d=0;d<i[u][h].length;d++)i[u][h][d].apply(n,arguments)}return this}},s.isFunction=function(t){return"function"===n(t)},s.noop=function(){},s.isArray=Array.isArray,s.inArray=function(t,e,n){return null==e?-1:i(e,t)},s.valHooks=void 0,s.isPlainObject=function(t){return!("object"!==n(t)||t.nodeType||r(t)||t.constructor&&!l.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))},s.extend=function(){var t,e,i,n,r,a,o=arguments[0]||{},l=1,u=arguments.length,h=!1;for("boolean"==typeof o&&(h=o,o=arguments[l]||{},l++),"object"==typeof o||s.isFunction(o)||(o={}),l===u&&(o=this,l--);l<u;l++)if(null!=(t=arguments[l]))for(e in t)i=o[e],o!==(n=t[e])&&(h&&n&&(s.isPlainObject(n)||(r=s.isArray(n)))?(r?(r=!1,a=i&&s.isArray(i)?i:[]):a=i&&s.isPlainObject(i)?i:{},o[e]=s.extend(h,a,n)):void 0!==n&&(o[e]=n));return o},s.each=function(t,e){var i=0;if(a(t))for(var n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},s.map=function(t,e){var i,n=0,r=t.length,o=[];if(a(t))for(;n<r;n++)null!=(i=e(t[n],n))&&o.push(i);else for(n in t)null!=(i=e(t[n],n))&&o.push(i);return[].concat(o)},s.data=function(t,e,i){return void 0===i?t.__data?t.__data[e]:null:(t.__data=t.__data||{},void(t.__data[e]=i))},"function"==typeof t.CustomEvent?s.Event=t.CustomEvent:(s.Event=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var n=e.createEvent("CustomEvent");return n.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),n},s.Event.prototype=t.Event.prototype),s})},function(t,e,i){var n,r,a;!function(o){r=[i(69),i(325),i(326)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t,e,i,n){function r(e,i,o){return this instanceof r?(this.el=n,this.events={},this.maskset=n,this.refreshValue=!1,!0!==o&&(t.isPlainObject(e)?i=e:(i=i||{}).alias=e,this.opts=t.extend(!0,{},this.defaults,i),this.noMasksCache=i&&i.definitions!==n,this.userOptions=i||{},this.isRTL=this.opts.numericInput,a(this.opts.alias,i,this.opts)),void 0):new r(e,i,o)}function a(e,i,o){var s=r.prototype.aliases[e];return s?(s.alias&&a(s.alias,n,o),t.extend(!0,o,s),t.extend(!0,o,i),!0):(null===o.mask&&(o.mask=e),!1)}function o(e,i){function a(e,a,o){var s=!1;if(null!==e&&""!==e||((s=null!==o.regex)?e=(e=o.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(s=!0,e=".*")),1===e.length&&!1===o.greedy&&0!==o.repeat&&(o.placeholder=""),o.repeat>0||"*"===o.repeat||"+"===o.repeat){var l="*"===o.repeat?0:"+"===o.repeat?1:o.repeat;e=o.groupmarker.start+e+o.groupmarker.end+o.quantifiermarker.start+l+","+o.repeat+o.quantifiermarker.end}var u,h=s?"regex_"+o.regex:o.numericInput?e.split("").reverse().join(""):e;return r.prototype.masksCache[h]===n||!0===i?(u={mask:e,maskToken:r.prototype.analyseMask(e,s,o),validPositions:{},_buffer:n,buffer:n,tests:{},metadata:a,maskLength:n},!0!==i&&(r.prototype.masksCache[h]=u,u=t.extend(!0,{},r.prototype.masksCache[h]))):u=t.extend(!0,{},r.prototype.masksCache[h]),u}if(t.isFunction(e.mask)&&(e.mask=e.mask(e)),t.isArray(e.mask)){if(e.mask.length>1){e.keepStatic=null===e.keepStatic||e.keepStatic;var o=e.groupmarker.start;return t.each(e.numericInput?e.mask.reverse():e.mask,function(i,r){o.length>1&&(o+=e.groupmarker.end+e.alternatormarker+e.groupmarker.start),o+=r.mask===n||t.isFunction(r.mask)?r:r.mask}),o+=e.groupmarker.end,a(o,e.mask,e)}e.mask=e.mask.pop()}return e.mask&&e.mask.mask!==n&&!t.isFunction(e.mask.mask)?a(e.mask.mask,e.mask,e):a(e.mask,e.mask,e)}function s(a,o,l){function p(t,e,i){e=e||0;var r,a,o,s=[],u=0,h=m();do!0===t&&f().validPositions[u]?(a=(o=f().validPositions[u]).match,r=o.locator.slice(),s.push(!0===i?o.input:!1===i?a.nativeDef:O(u,a))):(a=(o=_(u,r,u-1)).match,r=o.locator.slice(),(!1===l.jitMasking||u<h||"number"==typeof l.jitMasking&&isFinite(l.jitMasking)&&l.jitMasking>u)&&s.push(!1===i?a.nativeDef:O(u,a))),u++;while((G===n||u<G)&&(null!==a.fn||""!==a.def)||e>u);return""===s[s.length-1]&&s.pop(),f().maskLength=u+1,s}function f(){return o}function g(t){var e=f();e.buffer=n,!0!==t&&(e.validPositions={},e.p=0)}function m(t,e,i){var r=-1,a=-1,o=i||f().validPositions;t===n&&(t=-1);for(var s in o){var l=parseInt(s);o[l]&&(e||!0!==o[l].generatedInput)&&(l<=t&&(r=l),l>=t&&(a=l))}return-1!==r&&t-r>1||a<t?r:a}function v(e,i,r,a){var o,s=e,u=t.extend(!0,{},f().validPositions),h=!1;for(f().p=e,o=i-1;o>=s;o--)f().validPositions[o]!==n&&(!0!==r&&(!f().validPositions[o].match.optionality&&function(t){var e=f().validPositions[t];if(e!==n&&null===e.match.fn){var i=f().validPositions[t-1],r=f().validPositions[t+1];return i!==n&&r!==n}return!1}(o)||!1===l.canClearPosition(f(),o,m(),a,l))||delete f().validPositions[o]);for(g(!0),o=s+1;o<=m();){for(;f().validPositions[s]!==n;)s++;if(o<s&&(o=s+1),f().validPositions[o]===n&&C(o))o++;else{var c=_(o);!1===h&&u[s]&&u[s].match.def===c.match.def?(f().validPositions[s]=t.extend(!0,{},u[s]),f().validPositions[s].input=c.input,delete f().validPositions[o],o++):x(s,c.match.def)?!1!==L(s,c.input||O(o),!0)&&(delete f().validPositions[o],o++,h=!0):C(o)||(o++,s--),s++}}g(!0)}function y(t,e){for(var i,r=t,a=m(),o=f().validPositions[a]||w(0)[0],s=o.alternation!==n?o.locator[o.alternation].toString().split(","):[],u=0;u<r.length&&(!((i=r[u]).match&&(l.greedy&&!0!==i.match.optionalQuantifier||(!1===i.match.optionality||!1===i.match.newBlockMarker)&&!0!==i.match.optionalQuantifier)&&(o.alternation===n||o.alternation!==i.alternation||i.locator[o.alternation]!==n&&T(i.locator[o.alternation].toString().split(","),s)))||!0===e&&(null!==i.match.fn||/[0-9a-bA-Z]/.test(i.match.def)));u++);return i}function _(t,e,i){return f().validPositions[t]||y(w(t,e?e.slice():e,i))}function b(t){return f().validPositions[t]?f().validPositions[t]:w(t)[0]}function x(t,e){for(var i=!1,n=w(t),r=0;r<n.length;r++)if(n[r].match&&n[r].match.def===e){i=!0;break}return i}function w(e,i,r){function a(i,r,o,u){function c(o,u,m){function v(e,i){var n=0===t.inArray(e,i.matches);return n||t.each(i.matches,function(t,r){if(!0===r.isQuantifier&&(n=v(e,i.matches[t-1])))return!1}),n}function y(e,i,r){var a,o;if(f().validPositions[e-1]&&r&&f().tests[e])for(var s=f().validPositions[e-1].locator,l=f().tests[e][0].locator,u=0;u<r;u++)if(s[u]!==l[u])return s.slice(r+1);return(f().tests[e]||f().validPositions[e])&&t.each(f().tests[e]||[f().validPositions[e]],function(t,e){var s=r!==n?r:e.alternation,l=e.locator[s]!==n?e.locator[s].toString().indexOf(i):-1;(o===n||l<o)&&-1!==l&&(a=e,o=l)}),a?a.locator.slice((r!==n?r:a.alternation)+1):r!==n?y(e,i):n}if(h>1e4)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+f().mask;if(h===e&&o.matches===n)return d.push({match:o,locator:u.reverse(),cd:g}),!0;if(o.matches!==n){if(o.isGroup&&m!==o){if(o=c(i.matches[t.inArray(o,i.matches)+1],u))return!0}else if(o.isOptional){var _=o;if(o=a(o,r,u,m)){if(s=d[d.length-1].match,!v(s,_))return!0;p=!0,h=e}}else if(o.isAlternator){var b,x=o,w=[],M=d.slice(),S=u.length,k=r.length>0?r.shift():-1;if(-1===k||"string"==typeof k){var D,T=h,L=r.slice(),C=[];if("string"==typeof k)C=k.split(",");else for(D=0;D<x.matches.length;D++)C.push(D);for(var I=0;I<C.length;I++){if(D=parseInt(C[I]),d=[],r=y(h,D,S)||L.slice(),!0!==(o=c(x.matches[D]||i.matches[D],[D].concat(u),m)||o)&&o!==n&&C[C.length-1]<x.matches.length){var A=t.inArray(o,i.matches)+1;i.matches.length>A&&(o=c(i.matches[A],[A].concat(u.slice(1,u.length)),m))&&(C.push(A.toString()),t.each(d,function(t,e){e.alternation=u.length-1}))}b=d.slice(),h=T,d=[];for(var P=0;P<b.length;P++){var E=b[P],O=!1;E.alternation=E.alternation||S;for(var R=0;R<w.length;R++){var H=w[R];if("string"!=typeof k||-1!==t.inArray(E.locator[E.alternation].toString(),C)){if(function(t,e){return t.match.nativeDef===e.match.nativeDef||t.match.def===e.match.nativeDef||t.match.nativeDef===e.match.def}(E,H)){O=!0,E.alternation===H.alternation&&-1===H.locator[H.alternation].toString().indexOf(E.locator[E.alternation])&&(H.locator[H.alternation]=H.locator[H.alternation]+","+E.locator[E.alternation],H.alternation=E.alternation),E.match.nativeDef===H.match.def&&(E.locator[E.alternation]=H.locator[H.alternation],w.splice(w.indexOf(H),1,E));break}if(E.match.def===H.match.def){O=!1;break}if(function(t,i){return null===t.match.fn&&null!==i.match.fn&&i.match.fn.test(t.match.def,f(),e,!1,l,!1)}(E,H)||function(t,i){return null!==t.match.fn&&null!==i.match.fn&&i.match.fn.test(t.match.def.replace(/[\[\]]/g,""),f(),e,!1,l,!1)}(E,H)){E.alternation===H.alternation&&-1===E.locator[E.alternation].toString().indexOf(H.locator[H.alternation].toString().split("")[0])&&(E.na=E.na||E.locator[E.alternation].toString(),-1===E.na.indexOf(E.locator[E.alternation].toString().split("")[0])&&(E.na=E.na+","+E.locator[H.alternation].toString().split("")[0]),O=!0,E.locator[E.alternation]=H.locator[H.alternation].toString().split("")[0]+","+E.locator[E.alternation],w.splice(w.indexOf(H),0,E));break}}}O||w.push(E)}}"string"==typeof k&&(w=t.map(w,function(e,i){if(isFinite(i)){var r=e.alternation,a=e.locator[r].toString().split(",");e.locator[r]=n,e.alternation=n;for(var o=0;o<a.length;o++)-1!==t.inArray(a[o],C)&&(e.locator[r]!==n?(e.locator[r]+=",",e.locator[r]+=a[o]):e.locator[r]=parseInt(a[o]),e.alternation=r);if(e.locator[r]!==n)return e}})),d=M.concat(w),h=e,p=d.length>0,o=w.length>0,r=L.slice()}else o=c(x.matches[k]||i.matches[k],[k].concat(u),m);if(o)return!0}else if(o.isQuantifier&&m!==i.matches[t.inArray(o,i.matches)-1])for(var z=o,Y=r.length>0?r.shift():0;Y<(isNaN(z.quantifier.max)?Y+1:z.quantifier.max)&&h<=e;Y++){var N=i.matches[t.inArray(z,i.matches)-1];if(o=c(N,[Y].concat(u),N)){if(s=d[d.length-1].match,s.optionalQuantifier=Y>z.quantifier.min-1,v(s,N)){if(Y>z.quantifier.min-1){p=!0,h=e;break}return!0}return!0}}else if(o=a(o,r,u,m))return!0}else h++}for(var m=r.length>0?r.shift():0;m<i.matches.length;m++)if(!0!==i.matches[m].isQuantifier){var v=c(i.matches[m],[m].concat(o),u);if(v&&h===e)return v;if(h>e)break}}function o(t){if(l.keepStatic&&e>0&&t.length>1+(""===t[t.length-1].match.def?1:0)&&!0!==t[0].match.optionality&&!0!==t[0].match.optionalQuantifier&&null===t[0].match.fn&&!/[0-9a-bA-Z]/.test(t[0].match.def)){if(f().validPositions[e-1]===n)return[y(t)];if(f().validPositions[e-1].alternation===t[0].alternation)return[y(t)];if(f().validPositions[e-1])return[y(t)]}return t}var s,u=f().maskToken,h=i?r:0,c=i?i.slice():[0],d=[],p=!1,g=i?i.join(""):"";if(e>-1){if(i===n){for(var m,v=e-1;(m=f().validPositions[v]||f().tests[v])===n&&v>-1;)v--;m!==n&&v>-1&&(c=function(e){var i=[];return t.isArray(e)||(e=[e]),e.length>0&&(e[0].alternation===n?0===(i=y(e.slice()).locator.slice()).length&&(i=e[0].locator.slice()):t.each(e,function(t,e){if(""!==e.def)if(0===i.length)i=e.locator.slice();else for(var n=0;n<i.length;n++)e.locator[n]&&-1===i[n].toString().indexOf(e.locator[n])&&(i[n]+=","+e.locator[n])})),i}(m),g=c.join(""),h=v)}if(f().tests[e]&&f().tests[e][0].cd===g)return o(f().tests[e]);for(var _=c.shift();_<u.length&&!(a(u[_],c,[_])&&h===e||h>e);_++);}return(0===d.length||p)&&d.push({match:{fn:null,cardinality:0,optionality:!0,casing:null,def:"",placeholder:""},locator:[],cd:g}),i!==n&&f().tests[e]?o(t.extend(!0,[],d)):(f().tests[e]=t.extend(!0,[],d),o(f().tests[e]))}function M(){return f()._buffer===n&&(f()._buffer=p(!1,1),f().buffer===n&&(f().buffer=f()._buffer.slice())),f()._buffer}function S(t){return f().buffer!==n&&!0!==t||(f().buffer=p(!0,m(),!0)),f().buffer}function k(t,e,i){var r,a;if(!0===t)g(),t=0,e=i.length;else for(r=t;r<e;r++)delete f().validPositions[r];for(a=t,r=t;r<e;r++)if(g(!0),i[r]!==l.skipOptionalPartCharacter){var o=L(a,i[r],!0,!0);!1!==o&&(g(!0),a=o.caret!==n?o.caret:o.pos+1)}}function D(e,i,n){switch(l.casing||i.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break;case"title":var a=f().validPositions[n-1];e=0===n||a&&a.input===String.fromCharCode(r.keyCode.SPACE)?e.toUpperCase():e.toLowerCase();break;default:if(t.isFunction(l.casing)){var o=Array.prototype.slice.call(arguments);o.push(f().validPositions),e=l.casing.apply(this,o)}}return e}function T(e,i,r){for(var a,o=l.greedy?i:i.slice(0,1),s=!1,u=r!==n?r.split(","):[],h=0;h<u.length;h++)-1!==(a=e.indexOf(u[h]))&&e.splice(a,1);for(var c=0;c<e.length;c++)if(-1!==t.inArray(e[c],o)){s=!0;break}return s}function L(e,i,a,o,s,u){function h(t){var e=Z?t.begin-t.end>1||t.begin-t.end==1:t.end-t.begin>1||t.end-t.begin==1;return e&&0===t.begin&&t.end===f().maskLength?"full":e}function c(i,r,a){var s=!1;return t.each(w(i),function(u,c){for(var p=c.match,y=r?1:0,_="",b=p.cardinality;b>y;b--)_+=P(i-(b-1));if(r&&(_+=r),S(!0),!1!==(s=null!=p.fn?p.fn.test(_,f(),i,a,l,h(e)):(r===p.def||r===l.skipOptionalPartCharacter)&&""!==p.def&&{c:O(i,p,!0)||p.def,pos:i})){var x=s.c!==n?s.c:r;x=x===l.skipOptionalPartCharacter&&null===p.fn?O(i,p,!0)||p.def:x;var w=i,M=S();if(s.remove!==n&&(t.isArray(s.remove)||(s.remove=[s.remove]),t.each(s.remove.sort(function(t,e){return e-t}),function(t,e){v(e,e+1,!0)})),s.insert!==n&&(t.isArray(s.insert)||(s.insert=[s.insert]),t.each(s.insert.sort(function(t,e){return t-e}),function(t,e){L(e.pos,e.c,!0,o)})),s.refreshFromBuffer){var T=s.refreshFromBuffer;if(k(!0===T?T:T.start,T.end,M),s.pos===n&&s.c===n)return s.pos=m(),!1;if((w=s.pos!==n?s.pos:i)!==i)return s=t.extend(s,L(w,x,!0,o)),!1}else if(!0!==s&&s.pos!==n&&s.pos!==i&&(w=s.pos,k(i,w,S().slice()),w!==i))return s=t.extend(s,L(w,x,!0)),!1;return(!0===s||s.pos!==n||s.c!==n)&&(u>0&&g(!0),d(w,t.extend({},c,{input:D(x,p,w)}),o,h(e))||(s=!1),!1)}}),s}function d(e,i,r,a){if(a||l.insertMode&&f().validPositions[e]!==n&&r===n){var o,s=t.extend(!0,{},f().validPositions),u=m(n,!0);for(o=e;o<=u;o++)delete f().validPositions[o];f().validPositions[e]=t.extend(!0,{},i);var h,c=!0,d=f().validPositions,v=!1,y=f().maskLength;for(o=h=e;o<=u;o++){var _=s[o];if(_!==n)for(var b=h;b<f().maskLength&&(null===_.match.fn&&d[o]&&(!0===d[o].match.optionalQuantifier||!0===d[o].match.optionality)||null!=_.match.fn);){if(b++,!1===v&&s[b]&&s[b].match.def===_.match.def)f().validPositions[b]=t.extend(!0,{},s[b]),f().validPositions[b].input=_.input,p(b),h=b,c=!0;else if(x(b,_.match.def)){var w=L(b,_.input,!0,!0);c=!1!==w,h=w.caret||w.insert?m():b,v=!0}else if(!(c=!0===_.generatedInput)&&b>=f().maskLength-1)break;if(f().maskLength<y&&(f().maskLength=y),c)break}if(!c)break}if(!c)return f().validPositions=t.extend(!0,{},s),g(!0),!1}else f().validPositions[e]=t.extend(!0,{},i);return g(!0),!0}function p(e){for(var i=e-1;i>-1&&!f().validPositions[i];i--);var r,a;for(i++;i<e;i++)f().validPositions[i]===n&&(!1===l.jitMasking||l.jitMasking>i)&&(""===(a=w(i,_(i-1).locator,i-1).slice())[a.length-1].match.def&&a.pop(),(r=y(a))&&(r.match.def===l.radixPointDefinitionSymbol||!C(i,!0)||t.inArray(l.radixPoint,S())<i&&r.match.fn&&r.match.fn.test(O(i),f(),i,!1,l))&&!1!==(M=c(i,O(i,r.match,!0)||(null==r.match.fn?r.match.def:""!==O(i)?O(i):S()[i]),!0))&&(f().validPositions[M.pos||i].generatedInput=!0))}a=!0===a;var b=e;e.begin!==n&&(b=Z&&!h(e)?e.end:e.begin);var M=!0,A=t.extend(!0,{},f().validPositions);if(t.isFunction(l.preValidation)&&!a&&!0!==o&&!0!==u&&(M=l.preValidation(S(),b,i,h(e),l)),!0===M){if(p(b),h(e)&&(W(n,r.keyCode.DELETE,e,!0,!0),b=f().p),b<f().maskLength&&(G===n||b<G)&&(M=c(b,i,a),(!a||!0===o)&&!1===M&&!0!==u)){var E=f().validPositions[b];if(!E||null!==E.match.fn||E.match.def!==i&&i!==l.skipOptionalPartCharacter){if((l.insertMode||f().validPositions[I(b)]===n)&&!C(b,!0))for(var R=b+1,H=I(b);R<=H;R++)if(!1!==(M=c(R,i,a))){!function(e,i){var r=f().validPositions[i];if(r)for(var a=r.locator,o=a.length,s=e;s<i;s++)if(f().validPositions[s]===n&&!C(s,!0)){var l=w(s).slice(),u=y(l,!0),h=-1;""===l[l.length-1].match.def&&l.pop(),t.each(l,function(t,e){for(var i=0;i<o;i++){if(e.locator[i]===n||!T(e.locator[i].toString().split(","),a[i].toString().split(","),e.na)){var r=a[i],s=u.locator[i],l=e.locator[i];r-s>Math.abs(r-l)&&(u=e);break}h<i&&(h=i,u=e)}}),(u=t.extend({},u,{input:O(s,u.match,!0)||u.match.def})).generatedInput=!0,d(s,u,!0),f().validPositions[i]=n,c(i,r.input,!0)}}(b,M.pos!==n?M.pos:R),b=R;break}}else M={caret:I(b)}}!1===M&&l.keepStatic&&!a&&!0!==s&&(M=function(e,i,r){var a,s,u,h,c,d,p,v,y=t.extend(!0,{},f().validPositions),_=!1,b=m();for(h=f().validPositions[b];b>=0;b--)if((u=f().validPositions[b])&&u.alternation!==n){if(a=b,s=f().validPositions[a].alternation,h.locator[u.alternation]!==u.locator[u.alternation])break;h=u}if(s!==n){v=parseInt(a);var x=h.locator[h.alternation||s]!==n?h.locator[h.alternation||s]:p[0];x.length>0&&(x=x.split(",")[0]);var M=f().validPositions[v],S=f().validPositions[v-1];t.each(w(v,S?S.locator:n,v-1),function(a,u){p=u.locator[s]?u.locator[s].toString().split(","):[];for(var h=0;h<p.length;h++){var b=[],w=0,S=0,k=!1;if(x<p[h]&&(u.na===n||-1===t.inArray(p[h],u.na.split(","))||-1===t.inArray(x.toString(),p))){f().validPositions[v]=t.extend(!0,{},u);var D=f().validPositions[v].locator;for(f().validPositions[v].locator[s]=parseInt(p[h]),null==u.match.fn?(M.input!==u.match.def&&(k=!0,!0!==M.generatedInput&&b.push(M.input)),S++,f().validPositions[v].generatedInput=!/[0-9a-bA-Z]/.test(u.match.def),f().validPositions[v].input=u.match.def):f().validPositions[v].input=M.input,c=v+1;c<m(n,!0)+1;c++)(d=f().validPositions[c])&&!0!==d.generatedInput&&/[0-9a-bA-Z]/.test(d.input)?b.push(d.input):c<e&&w++,delete f().validPositions[c];for(k&&b[0]===u.match.def&&b.shift(),g(!0),_=!0;b.length>0;){var T=b.shift();if(T!==l.skipOptionalPartCharacter&&!(_=L(m(n,!0)+1,T,!1,o,!0)))break}if(_){f().validPositions[v].locator=D;var C=m(e)+1;for(c=v+1;c<m()+1;c++)((d=f().validPositions[c])===n||null==d.match.fn)&&c<e+(S-w)&&S++;_=L((e+=S-w)>C?C:e,i,r,o,!0)}if(_)return!1;g(),f().validPositions=t.extend(!0,{},y)}}})}return _}(b,i,a)),!0===M&&(M={pos:b})}if(t.isFunction(l.postValidation)&&!1!==M&&!a&&!0!==o&&!0!==u){var z=l.postValidation(S(!0),M,l);if(z.refreshFromBuffer&&z.buffer){var Y=z.refreshFromBuffer;k(!0===Y?Y:Y.start,Y.end,z.buffer)}M=!0===z?M:z}return M&&M.pos===n&&(M.pos=b),!1!==M&&!0!==u||(g(!0),f().validPositions=t.extend(!0,{},A)),M}function C(t,e){var i=_(t).match;if(""===i.def&&(i=b(t).match),null!=i.fn)return i.fn;if(!0!==e&&t>-1){var n=w(t);return n.length>1+(""===n[n.length-1].match.def?1:0)}return!1}function I(t,e){var i=f().maskLength;if(t>=i)return i;var n=t;for(w(i+1).length>1&&(p(!0,i+1,!0),i=f().maskLength);++n<i&&(!0===e&&(!0!==b(n).match.newBlockMarker||!C(n))||!0!==e&&!C(n)););return n}function A(t,e){var i,n=t;if(n<=0)return 0;for(;--n>0&&(!0===e&&!0!==b(n).match.newBlockMarker||!0!==e&&!C(n)&&((i=w(n)).length<2||2===i.length&&""===i[1].match.def)););return n}function P(t){return f().validPositions[t]===n?O(t):f().validPositions[t].input}function E(e,i,r,a,o){if(a&&t.isFunction(l.onBeforeWrite)){var s=l.onBeforeWrite.call(q,a,i,r,l);if(s){if(s.refreshFromBuffer){var u=s.refreshFromBuffer;k(!0===u?u:u.start,u.end,s.buffer||i),i=S(!0)}r!==n&&(r=s.caret!==n?s.caret:r)}}e!==n&&(e.inputmask._valueSet(i.join("")),r===n||a!==n&&"blur"===a.type?j(e,r,0===i.length):d&&a&&"input"===a.type?setTimeout(function(){z(e,r)},0):z(e,r),!0===o&&(J=!0,t(e).trigger("input")))}function O(e,i,r){if((i=i||b(e).match).placeholder!==n||!0===r)return t.isFunction(i.placeholder)?i.placeholder(l):i.placeholder;if(null===i.fn){if(e>-1&&f().validPositions[e]===n){var a,o=w(e),s=[];if(o.length>1+(""===o[o.length-1].match.def?1:0))for(var u=0;u<o.length;u++)if(!0!==o[u].match.optionality&&!0!==o[u].match.optionalQuantifier&&(null===o[u].match.fn||a===n||!1!==o[u].match.fn.test(a.match.def,f(),e,!0,l))&&(s.push(o[u]),null===o[u].match.fn&&(a=o[u]),s.length>1&&/[0-9a-bA-Z]/.test(s[0].match.def)))return l.placeholder.charAt(e%l.placeholder.length)}return i.def}return l.placeholder.charAt(e%l.placeholder.length)}function R(e,a,o,s,u){function h(t,e){return-1!==M().slice(t,I(t)).join("").indexOf(e)&&!C(t)&&b(t).match.nativeDef===e.charAt(e.length-1)}var c=s.slice(),d="",p=-1,v=n;if(g(),o||!0===l.autoUnmask)p=I(p);else{var y=M().slice(0,I(-1)).join(""),x=c.join("").match(new RegExp("^"+r.escapeRegex(y),"g"));x&&x.length>0&&(c.splice(0,x.length*y.length),p=I(p))}if(-1===p?(f().p=I(p),p=0):f().p=p,t.each(c,function(i,r){if(r!==n)if(f().validPositions[i]===n&&c[i]===O(i)&&C(i,!0)&&!1===L(i,c[i],!0,n,n,!0))f().p++;else{var a=new t.Event("_checkval");a.which=r.charCodeAt(0),d+=r;var s=m(n,!0),u=f().validPositions[s],y=_(s+1,u?u.locator.slice():n,s);if(!h(p,d)||o||l.autoUnmask){var b=o?i:null==y.match.fn&&y.match.optionality&&s+1<f().p?s+1:f().p;v=it.keypressEvent.call(e,a,!0,!1,o,b),p=b+1,d=""}else v=it.keypressEvent.call(e,a,!0,!1,!0,s+1);if(!1!==v&&!o&&t.isFunction(l.onBeforeWrite)){var x=v;if(v=l.onBeforeWrite.call(q,a,S(),v.forwardPosition,l),(v=t.extend(x,v))&&v.refreshFromBuffer){var w=v.refreshFromBuffer;k(!0===w?w:w.start,w.end,v.buffer),g(!0),v.caret&&(f().p=v.caret,v.forwardPosition=v.caret)}}}}),a){var w=n;i.activeElement===e&&v&&(w=l.numericInput?A(v.forwardPosition):v.forwardPosition),E(e,S(),w,u||new t.Event("checkval"),u&&"input"===u.type)}}function H(e){if(e){if(e.inputmask===n)return e.value;e.inputmask&&e.inputmask.refreshValue&&it.setValueEvent.call(e)}var i=[],r=f().validPositions;for(var a in r)r[a].match&&null!=r[a].match.fn&&i.push(r[a].input);var o=0===i.length?"":(Z?i.reverse():i).join("");if(t.isFunction(l.onUnMask)){var s=(Z?S().slice().reverse():S()).join("");o=l.onUnMask.call(q,s,o,l)}return o}function z(t,r,a,o){function s(t){return!0===o||!Z||"number"!=typeof t||l.greedy&&""===l.placeholder||(t=S().join("").length-t),t}var h;if(r===n)return t.setSelectionRange?(r=t.selectionStart,a=t.selectionEnd):e.getSelection?(h=e.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==t&&h.commonAncestorContainer!==t||(r=h.startOffset,a=h.endOffset):i.selection&&i.selection.createRange&&(a=(r=0-(h=i.selection.createRange()).duplicate().moveStart("character",-t.inputmask._valueGet().length))+h.text.length),{begin:s(r),end:s(a)};if(r.begin!==n&&(a=r.end,r=r.begin),"number"==typeof r){r=s(r),a="number"==typeof(a=s(a))?a:r;var c=parseInt(((t.ownerDocument.defaultView||e).getComputedStyle?(t.ownerDocument.defaultView||e).getComputedStyle(t,null):t.currentStyle).fontSize)*a;if(t.scrollLeft=c>t.scrollWidth?c:0,u||!1!==l.insertMode||r!==a||a++,t.setSelectionRange)t.selectionStart=r,t.selectionEnd=a;else if(e.getSelection){if(h=i.createRange(),t.firstChild===n||null===t.firstChild){var d=i.createTextNode("");t.appendChild(d)}h.setStart(t.firstChild,r<t.inputmask._valueGet().length?r:t.inputmask._valueGet().length),h.setEnd(t.firstChild,a<t.inputmask._valueGet().length?a:t.inputmask._valueGet().length),h.collapse(!0);var p=e.getSelection();p.removeAllRanges(),p.addRange(h)}else t.createTextRange&&((h=t.createTextRange()).collapse(!0),h.moveEnd("character",a),h.moveStart("character",r),h.select());j(t,{begin:r,end:a})}}function Y(e){var i,r,a=S(),o=a.length,s=m(),l={},u=f().validPositions[s],h=u!==n?u.locator.slice():n;for(i=s+1;i<a.length;i++)h=(r=_(i,h,i-1)).locator.slice(),l[i]=t.extend(!0,{},r);var c=u&&u.alternation!==n?u.locator[u.alternation]:n;for(i=o-1;i>s&&((r=l[i]).match.optionality||r.match.optionalQuantifier&&r.match.newBlockMarker||c&&(c!==l[i].locator[u.alternation]&&null!=r.match.fn||null===r.match.fn&&r.locator[u.alternation]&&T(r.locator[u.alternation].toString().split(","),c.toString().split(","))&&""!==w(i)[0].def))&&a[i]===O(i,r.match);i--)o--;return e?{l:o,def:l[o]?l[o].match:n}:o}function N(t){for(var e,i=Y(),r=t.length,a=f().validPositions[m()];i<r&&!C(i,!0)&&(e=a!==n?_(i,a.locator.slice(""),a):b(i))&&!0!==e.match.optionality&&(!0!==e.match.optionalQuantifier&&!0!==e.match.newBlockMarker||i+1===r&&""===(a!==n?_(i+1,a.locator.slice(""),a):b(i+1)).match.def);)i++; for(;(e=f().validPositions[i-1])&&e&&e.match.optionality&&e.input===l.skipOptionalPartCharacter;)i--;return t.splice(i),t}function F(e){if(t.isFunction(l.isComplete))return l.isComplete(e,l);if("*"===l.repeat)return n;var i=!1,r=Y(!0),a=A(r.l);if(r.def===n||r.def.newBlockMarker||r.def.optionality||r.def.optionalQuantifier){i=!0;for(var o=0;o<=a;o++){var s=_(o).match;if(null!==s.fn&&f().validPositions[o]===n&&!0!==s.optionality&&!0!==s.optionalQuantifier||null===s.fn&&e[o]!==O(o,s)){i=!1;break}}}return i}function W(e,i,a,o,s){if((l.numericInput||Z)&&(i===r.keyCode.BACKSPACE?i=r.keyCode.DELETE:i===r.keyCode.DELETE&&(i=r.keyCode.BACKSPACE),Z)){var u=a.end;a.end=a.begin,a.begin=u}i===r.keyCode.BACKSPACE&&(a.end-a.begin<1||!1===l.insertMode)?(a.begin=A(a.begin),f().validPositions[a.begin]!==n&&f().validPositions[a.begin].input===l.groupSeparator&&a.begin--):i===r.keyCode.DELETE&&a.begin===a.end&&(a.end=C(a.end,!0)&&f().validPositions[a.end]&&f().validPositions[a.end].input!==l.radixPoint?a.end+1:I(a.end)+1,f().validPositions[a.begin]!==n&&f().validPositions[a.begin].input===l.groupSeparator&&a.end++),v(a.begin,a.end,!1,o),!0!==o&&function(){if(l.keepStatic){for(var i=[],r=m(-1,!0),a=t.extend(!0,{},f().validPositions),o=f().validPositions[r];r>=0;r--){var s=f().validPositions[r];if(s){if(!0!==s.generatedInput&&/[0-9a-bA-Z]/.test(s.input)&&i.push(s.input),delete f().validPositions[r],s.alternation!==n&&s.locator[s.alternation]!==o.locator[s.alternation])break;o=s}}if(r>-1)for(f().p=I(m(-1,!0));i.length>0;){var u=new t.Event("keypress");u.which=i.pop().charCodeAt(0),it.keypressEvent.call(e,u,!0,!1,!1,f().p)}else f().validPositions=t.extend(!0,{},a)}}();var h=m(a.begin,!0);if(h<a.begin)f().p=I(h);else if(!0!==o&&(f().p=a.begin,!0!==s))for(;f().p<h&&f().validPositions[f().p]===n;)f().p++}function B(n){function r(t){var e,r=i.createElement("span");for(var o in a)isNaN(o)&&-1!==o.indexOf("font")&&(r.style[o]=a[o]);r.style.textTransform=a.textTransform,r.style.letterSpacing=a.letterSpacing,r.style.position="absolute",r.style.height="auto",r.style.width="auto",r.style.visibility="hidden",r.style.whiteSpace="nowrap",i.body.appendChild(r);var s,l=n.inputmask._valueGet(),u=0;for(e=0,s=l.length;e<=s;e++){if(r.innerHTML+=l.charAt(e)||"_",r.offsetWidth>=t){var h=t-u,c=r.offsetWidth-t;r.innerHTML=l.charAt(e),e=(h-=r.offsetWidth/3)<c?e-1:e;break}u=r.offsetWidth}return i.body.removeChild(r),e}var a=(n.ownerDocument.defaultView||e).getComputedStyle(n,null),o=i.createElement("div");o.style.width=a.width,o.style.textAlign=a.textAlign,(U=i.createElement("div")).className="im-colormask",n.parentNode.insertBefore(U,n),n.parentNode.removeChild(n),U.appendChild(o),U.appendChild(n),n.style.left=o.offsetLeft+"px",t(n).on("click",function(t){return z(n,r(t.clientX)),it.clickEvent.call(n,[t])}),t(n).on("keydown",function(t){t.shiftKey||!1===l.insertMode||setTimeout(function(){j(n)},0)})}function j(t,e,r){function a(){d||null!==s.fn&&u.input!==n?d&&(null!==s.fn&&u.input!==n||""===s.def)&&(d=!1,c+="</span>"):(d=!0,c+="<span class='im-static'>")}function o(n){!0!==n&&p!==e.begin||i.activeElement!==t||(c+="<span class='im-caret' style='border-right-width: 1px;border-right-style: solid;'></span>")}var s,u,h,c="",d=!1,p=0;if(U!==n){var g=S();if(e===n?e=z(t):e.begin===n&&(e={begin:e,end:e}),!0!==r){var v=m();do o(),f().validPositions[p]?(u=f().validPositions[p],s=u.match,h=u.locator.slice(),a(),c+=g[p]):(u=_(p,h,p-1),s=u.match,h=u.locator.slice(),(!1===l.jitMasking||p<v||"number"==typeof l.jitMasking&&isFinite(l.jitMasking)&&l.jitMasking>p)&&(a(),c+=O(p,s))),p++;while((G===n||p<G)&&(null!==s.fn||""!==s.def)||v>p||d);-1===c.indexOf("im-caret")&&o(!0),d&&a()}var y=U.getElementsByTagName("div")[0];y.innerHTML=c,t.inputmask.positionColorMask(t,y)}}o=o||this.maskset,l=l||this.opts;var V,$,G,U,q=this,X=this.el,Z=this.isRTL,K=!1,J=!1,Q=!1,tt=!1,et={on:function(e,i,a){var o=function(e){if(this.inputmask===n&&"FORM"!==this.nodeName){var i=t.data(this,"_inputmask_opts");i?new r(i).mask(this):et.off(this)}else{if("setvalue"===e.type||"FORM"===this.nodeName||!(this.disabled||this.readOnly&&!("keydown"===e.type&&e.ctrlKey&&67===e.keyCode||!1===l.tabThrough&&e.keyCode===r.keyCode.TAB))){switch(e.type){case"input":if(!0===J)return J=!1,e.preventDefault();break;case"keydown":K=!1,J=!1;break;case"keypress":if(!0===K)return e.preventDefault();K=!0;break;case"click":if(h||c){var o=this,s=arguments;return setTimeout(function(){a.apply(o,s)},0),!1}}var u=a.apply(this,arguments);return!1===u&&(e.preventDefault(),e.stopPropagation()),u}e.preventDefault()}};e.inputmask.events[i]=e.inputmask.events[i]||[],e.inputmask.events[i].push(o),-1!==t.inArray(i,["submit","reset"])?null!==e.form&&t(e.form).on(i,o):t(e).on(i,o)},off:function(e,i){if(e.inputmask&&e.inputmask.events){var n;i?(n=[])[i]=e.inputmask.events[i]:n=e.inputmask.events,t.each(n,function(i,n){for(;n.length>0;){var r=n.pop();-1!==t.inArray(i,["submit","reset"])?null!==e.form&&t(e.form).off(i,r):t(e).off(i,r)}delete e.inputmask.events[i]})}}},it={keydownEvent:function(e){var n=this,a=t(n),o=e.keyCode,s=z(n);if(o===r.keyCode.BACKSPACE||o===r.keyCode.DELETE||c&&o===r.keyCode.BACKSPACE_SAFARI||e.ctrlKey&&o===r.keyCode.X&&!function(t){var e=i.createElement("input"),n="on"+t,r=n in e;return r||(e.setAttribute(n,"return;"),r="function"==typeof e[n]),e=null,r}("cut"))e.preventDefault(),W(n,o,s),E(n,S(!0),f().p,e,n.inputmask._valueGet()!==S().join("")),n.inputmask._valueGet()===M().join("")?a.trigger("cleared"):!0===F(S())&&a.trigger("complete");else if(o===r.keyCode.END||o===r.keyCode.PAGE_DOWN){e.preventDefault();var u=I(m());l.insertMode||u!==f().maskLength||e.shiftKey||u--,z(n,e.shiftKey?s.begin:u,u,!0)}else o===r.keyCode.HOME&&!e.shiftKey||o===r.keyCode.PAGE_UP?(e.preventDefault(),z(n,0,e.shiftKey?s.begin:0,!0)):(l.undoOnEscape&&o===r.keyCode.ESCAPE||90===o&&e.ctrlKey)&&!0!==e.altKey?(R(n,!0,!1,V.split("")),a.trigger("click")):o!==r.keyCode.INSERT||e.shiftKey||e.ctrlKey?!0===l.tabThrough&&o===r.keyCode.TAB?(!0===e.shiftKey?(null===b(s.begin).match.fn&&(s.begin=I(s.begin)),s.end=A(s.begin,!0),s.begin=A(s.end,!0)):(s.begin=I(s.begin,!0),s.end=I(s.begin,!0),s.end<f().maskLength&&s.end--),s.begin<f().maskLength&&(e.preventDefault(),z(n,s.begin,s.end))):e.shiftKey||!1===l.insertMode&&(o===r.keyCode.RIGHT?setTimeout(function(){var t=z(n);z(n,t.begin)},0):o===r.keyCode.LEFT&&setTimeout(function(){var t=z(n);z(n,Z?t.begin+1:t.begin-1)},0)):(l.insertMode=!l.insertMode,z(n,l.insertMode||s.begin!==f().maskLength?s.begin:s.begin-1));l.onKeyDown.call(this,e,S(),z(n).begin,l),Q=-1!==t.inArray(o,l.ignorables)},keypressEvent:function(e,i,a,o,s){var u=this,h=t(u),c=e.which||e.charCode||e.keyCode;if(!(!0===i||e.ctrlKey&&e.altKey)&&(e.ctrlKey||e.metaKey||Q))return c===r.keyCode.ENTER&&V!==S().join("")&&(V=S().join(""),setTimeout(function(){h.trigger("change")},0)),!0;if(c){46===c&&!1===e.shiftKey&&""!==l.radixPoint&&(c=l.radixPoint.charCodeAt(0));var d,p=i?{begin:s,end:s}:z(u),m=String.fromCharCode(c);f().writeOutBuffer=!0;var v=L(p,m,o);if(!1!==v&&(g(!0),d=v.caret!==n?v.caret:i?v.pos+1:I(v.pos),f().p=d),!1!==a&&(setTimeout(function(){l.onKeyValidation.call(u,c,v,l)},0),f().writeOutBuffer&&!1!==v)){var y=S();E(u,y,l.numericInput&&v.caret===n?A(d):d,e,!0!==i),!0!==i&&setTimeout(function(){!0===F(y)&&h.trigger("complete")},0)}if(e.preventDefault(),i)return!1!==v&&(v.forwardPosition=d),v}},pasteEvent:function(i){var n,r=this,a=i.originalEvent||i,o=t(r),s=r.inputmask._valueGet(!0),u=z(r);Z&&(n=u.end,u.end=u.begin,u.begin=n);var h=s.substr(0,u.begin),c=s.substr(u.end,s.length);if(h===(Z?M().reverse():M()).slice(0,u.begin).join("")&&(h=""),c===(Z?M().reverse():M()).slice(u.end).join("")&&(c=""),Z&&(n=h,h=c,c=n),e.clipboardData&&e.clipboardData.getData)s=h+e.clipboardData.getData("Text")+c;else{if(!a.clipboardData||!a.clipboardData.getData)return!0;s=h+a.clipboardData.getData("text/plain")+c}var d=s;if(t.isFunction(l.onBeforePaste)){if(!1===(d=l.onBeforePaste.call(q,s,l)))return i.preventDefault();d||(d=s)}return R(r,!1,!1,Z?d.split("").reverse():d.toString().split("")),E(r,S(),I(m()),i,V!==S().join("")),!0===F(S())&&o.trigger("complete"),i.preventDefault()},inputFallBackEvent:function(e){var i=this,n=i.inputmask._valueGet();if(S().join("")!==n){var a=z(i);if(!1===function(e,i,n){if("."===i.charAt(n.begin-1)&&""!==l.radixPoint&&((i=i.split(""))[n.begin-1]=l.radixPoint.charAt(0),i=i.join("")),i.charAt(n.begin-1)===l.radixPoint&&i.length>S().length){var r=new t.Event("keypress");return r.which=l.radixPoint.charCodeAt(0),it.keypressEvent.call(e,r,!0,!0,!1,n.begin-1),!1}}(i,n,a))return!1;if(n=n.replace(new RegExp("("+r.escapeRegex(M().join(""))+")*"),""),!1===function(e,i,n){if(h){var r=i.replace(S().join(""),"");if(1===r.length){var a=new t.Event("keypress");return a.which=r.charCodeAt(0),it.keypressEvent.call(e,a,!0,!0,!1,f().validPositions[n.begin-1]?n.begin:n.begin-1),!1}}}(i,n,a))return!1;a.begin>n.length&&(z(i,n.length),a=z(i));var o=S().join(""),s=n.substr(0,a.begin),u=n.substr(a.begin),c=o.substr(0,a.begin),d=o.substr(a.begin),p=a,g="",m=!1;if(s!==c){p.begin=0;for(var v=(m=s.length>=c.length)?s.length:c.length,y=0;s.charAt(y)===c.charAt(y)&&y<v;y++)p.begin++;m&&(g+=s.slice(p.begin,p.end))}u!==d&&(u.length>d.length?m&&(p.end=p.begin):u.length<d.length?p.end+=d.length-u.length:u.charAt(0)!==d.charAt(0)&&p.end++),E(i,S(),p),g.length>0?t.each(g.split(""),function(e,n){var r=new t.Event("keypress");r.which=n.charCodeAt(0),Q=!1,it.keypressEvent.call(i,r)}):(p.begin===p.end-1&&z(i,A(p.begin+1),p.end),e.keyCode=r.keyCode.DELETE,it.keydownEvent.call(i,e)),e.preventDefault()}},setValueEvent:function(e){this.inputmask.refreshValue=!1;var i=this,n=i.inputmask._valueGet(!0);t.isFunction(l.onBeforeMask)&&(n=l.onBeforeMask.call(q,n,l)||n),n=n.split(""),R(i,!0,!1,Z?n.reverse():n),V=S().join(""),(l.clearMaskOnLostFocus||l.clearIncomplete)&&i.inputmask._valueGet()===M().join("")&&i.inputmask._valueSet("")},focusEvent:function(t){var e=this,i=e.inputmask._valueGet();l.showMaskOnFocus&&(!l.showMaskOnHover||l.showMaskOnHover&&""===i)&&(e.inputmask._valueGet()!==S().join("")?E(e,S(),I(m())):!1===tt&&z(e,I(m()))),!0===l.positionCaretOnTab&&!1===tt&&""!==i&&(E(e,S(),z(e)),it.clickEvent.apply(e,[t,!0])),V=S().join("")},mouseleaveEvent:function(t){var e=this;if(tt=!1,l.clearMaskOnLostFocus&&i.activeElement!==e){var n=S().slice(),r=e.inputmask._valueGet();r!==e.getAttribute("placeholder")&&""!==r&&(-1===m()&&r===M().join("")?n=[]:N(n),E(e,n))}},clickEvent:function(e,r){function a(e){if(""!==l.radixPoint){var i=f().validPositions;if(i[e]===n||i[e].input===O(e)){if(e<I(-1))return!0;var r=t.inArray(l.radixPoint,S());if(-1!==r){for(var a in i)if(r<a&&i[a].input!==O(a))return!1;return!0}}}return!1}var o=this;setTimeout(function(){if(i.activeElement===o){var t=z(o);if(r&&(Z?t.end=t.begin:t.begin=t.end),t.begin===t.end)switch(l.positionCaretOnClick){case"none":break;case"radixFocus":if(a(t.begin)){var e=S().join("").indexOf(l.radixPoint);z(o,l.numericInput?I(e):e);break}default:var s=t.begin,u=m(s,!0),h=I(u);if(s<h)z(o,C(s,!0)||C(s-1,!0)?s:I(s));else{var c=f().validPositions[u],d=_(h,c?c.match.locator:n,c),p=O(h,d.match);if(""!==p&&S()[h]!==p&&!0!==d.match.optionalQuantifier&&!0!==d.match.newBlockMarker||!C(h,!0)&&d.match.def===p){var g=I(h);(s>=g||s===h)&&(h=g)}z(o,h)}}}},0)},dblclickEvent:function(t){var e=this;setTimeout(function(){z(e,0,I(m()))},0)},cutEvent:function(n){var a=this,o=t(a),s=z(a),l=n.originalEvent||n,u=e.clipboardData||l.clipboardData,h=Z?S().slice(s.end,s.begin):S().slice(s.begin,s.end);u.setData("text",Z?h.reverse().join(""):h.join("")),i.execCommand&&i.execCommand("copy"),W(a,r.keyCode.DELETE,s),E(a,S(),f().p,n,V!==S().join("")),a.inputmask._valueGet()===M().join("")&&o.trigger("cleared")},blurEvent:function(e){var i=t(this),r=this;if(r.inputmask){var a=r.inputmask._valueGet(),o=S().slice();""!==a&&(l.clearMaskOnLostFocus&&(-1===m()&&a===M().join("")?o=[]:N(o)),!1===F(o)&&(setTimeout(function(){i.trigger("incomplete")},0),l.clearIncomplete&&(g(),o=l.clearMaskOnLostFocus?[]:M().slice())),E(r,o,n,e)),V!==S().join("")&&(V=o.join(""),i.trigger("change"))}},mouseenterEvent:function(t){var e=this;tt=!0,i.activeElement!==e&&l.showMaskOnHover&&e.inputmask._valueGet()!==S().join("")&&E(e,S())},submitEvent:function(t){V!==S().join("")&&$.trigger("change"),l.clearMaskOnLostFocus&&-1===m()&&X.inputmask._valueGet&&X.inputmask._valueGet()===M().join("")&&X.inputmask._valueSet(""),l.removeMaskOnSubmit&&(X.inputmask._valueSet(X.inputmask.unmaskedvalue(),!0),setTimeout(function(){E(X,S())},0))},resetEvent:function(t){X.inputmask.refreshValue=!0,setTimeout(function(){$.trigger("setvalue")},0)}};r.prototype.positionColorMask=function(t,e){t.style.left=e.offsetLeft+"px"};var nt;if(a!==n)switch(a.action){case"isComplete":return X=a.el,F(S());case"unmaskedvalue":return X!==n&&a.value===n||(nt=a.value,nt=(t.isFunction(l.onBeforeMask)?l.onBeforeMask.call(q,nt,l)||nt:nt).split(""),R(n,!1,!1,Z?nt.reverse():nt),t.isFunction(l.onBeforeWrite)&&l.onBeforeWrite.call(q,n,S(),0,l)),H(X);case"mask":!function(e){et.off(e);var r=function(e,r){var a=e.getAttribute("type"),o="INPUT"===e.tagName&&-1!==t.inArray(a,r.supportsInputType)||e.isContentEditable||"TEXTAREA"===e.tagName;if(!o)if("INPUT"===e.tagName){var s=i.createElement("input");s.setAttribute("type",a),o="text"===s.type,s=null}else o="partial";return!1!==o?function(e){function a(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==m()||!0!==r.nullable?i.activeElement===this&&r.clearMaskOnLostFocus?(Z?N(S().slice()).reverse():N(S().slice())).join(""):s.call(this):"":s.call(this)}function o(e){l.call(this,e),this.inputmask&&t(this).trigger("setvalue")}var s,l;if(!e.inputmask.__valueGet){if(!0!==r.noValuePatching){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){return t.constructor.prototype});var u=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):n;u&&u.get&&u.set?(s=u.get,l=u.set,Object.defineProperty(e,"value",{get:a,set:o,configurable:!0})):"INPUT"!==e.tagName&&(s=function(){return this.textContent},l=function(t){this.textContent=t},Object.defineProperty(e,"value",{get:a,set:o,configurable:!0}))}else i.__lookupGetter__&&e.__lookupGetter__("value")&&(s=e.__lookupGetter__("value"),l=e.__lookupSetter__("value"),e.__defineGetter__("value",a),e.__defineSetter__("value",o));e.inputmask.__valueGet=s,e.inputmask.__valueSet=l}e.inputmask._valueGet=function(t){return Z&&!0!==t?s.call(this.el).split("").reverse().join(""):s.call(this.el)},e.inputmask._valueSet=function(t,e){l.call(this.el,null===t||t===n?"":!0!==e&&Z?t.split("").reverse().join(""):t)},s===n&&(s=function(){return this.value},l=function(t){this.value=t},function(e){if(t.valHooks&&(t.valHooks[e]===n||!0!==t.valHooks[e].inputmaskpatch)){var i=t.valHooks[e]&&t.valHooks[e].get?t.valHooks[e].get:function(t){return t.value},a=t.valHooks[e]&&t.valHooks[e].set?t.valHooks[e].set:function(t,e){return t.value=e,t};t.valHooks[e]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var e=i(t);return-1!==m(n,n,t.inputmask.maskset.validPositions)||!0!==r.nullable?e:""}return i(t)},set:function(e,i){var n,r=t(e);return n=a(e,i),e.inputmask&&r.trigger("setvalue"),n},inputmaskpatch:!0}}}(e.type),function(e){et.on(e,"mouseenter",function(e){var i=t(this);this.inputmask._valueGet()!==S().join("")&&i.trigger("setvalue")})}(e))}}(e):e.inputmask=n,o}(e,l);if(!1!==r&&(X=e,$=t(X),-1===(G=X!==n?X.maxLength:n)&&(G=n),!0===l.colorMask&&B(X),d&&(X.hasOwnProperty("inputmode")&&(X.inputmode=l.inputmode,X.setAttribute("inputmode",l.inputmode)),"rtfm"===l.androidHack&&(!0!==l.colorMask&&B(X),X.type="password")),!0===r&&(et.on(X,"submit",it.submitEvent),et.on(X,"reset",it.resetEvent),et.on(X,"mouseenter",it.mouseenterEvent),et.on(X,"blur",it.blurEvent),et.on(X,"focus",it.focusEvent),et.on(X,"mouseleave",it.mouseleaveEvent),!0!==l.colorMask&&et.on(X,"click",it.clickEvent),et.on(X,"dblclick",it.dblclickEvent),et.on(X,"paste",it.pasteEvent),et.on(X,"dragdrop",it.pasteEvent),et.on(X,"drop",it.pasteEvent),et.on(X,"cut",it.cutEvent),et.on(X,"complete",l.oncomplete),et.on(X,"incomplete",l.onincomplete),et.on(X,"cleared",l.oncleared),d||!0===l.inputEventOnly?X.removeAttribute("maxLength"):(et.on(X,"keydown",it.keydownEvent),et.on(X,"keypress",it.keypressEvent)),et.on(X,"compositionstart",t.noop),et.on(X,"compositionupdate",t.noop),et.on(X,"compositionend",t.noop),et.on(X,"keyup",t.noop),et.on(X,"input",it.inputFallBackEvent),et.on(X,"beforeinput",t.noop)),et.on(X,"setvalue",it.setValueEvent),V=M().join(""),""!==X.inputmask._valueGet(!0)||!1===l.clearMaskOnLostFocus||i.activeElement===X)){var a=t.isFunction(l.onBeforeMask)?l.onBeforeMask.call(q,X.inputmask._valueGet(!0),l)||X.inputmask._valueGet(!0):X.inputmask._valueGet(!0);""!==a&&R(X,!0,!1,Z?a.split("").reverse():a.split(""));var o=S().slice();V=o.join(""),!1===F(o)&&l.clearIncomplete&&g(),l.clearMaskOnLostFocus&&i.activeElement!==X&&(-1===m()?o=[]:N(o)),E(X,o),i.activeElement===X&&z(X,I(m()))}}(X);break;case"format":return nt=(t.isFunction(l.onBeforeMask)?l.onBeforeMask.call(q,a.value,l)||a.value:a.value).split(""),R(n,!0,!1,Z?nt.reverse():nt),a.metadata?{value:Z?S().slice().reverse().join(""):S().join(""),metadata:s.call(this,{action:"getmetadata"},o,l)}:Z?S().slice().reverse().join(""):S().join("");case"isValid":a.value?(nt=a.value.split(""),R(n,!0,!0,Z?nt.reverse():nt)):a.value=S().join("");for(var rt=S(),at=Y(),ot=rt.length-1;ot>at&&!C(ot);ot--);return rt.splice(at,ot+1-at),F(rt)&&a.value===S().join("");case"getemptymask":return M().join("");case"remove":return X&&X.inputmask&&($=t(X),X.inputmask._valueSet(l.autoUnmask?H(X):X.inputmask._valueGet(!0)),et.off(X),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(X),"value")&&X.inputmask.__valueGet&&Object.defineProperty(X,"value",{get:X.inputmask.__valueGet,set:X.inputmask.__valueSet,configurable:!0}):i.__lookupGetter__&&X.__lookupGetter__("value")&&X.inputmask.__valueGet&&(X.__defineGetter__("value",X.inputmask.__valueGet),X.__defineSetter__("value",X.inputmask.__valueSet)),X.inputmask=n),X;case"getmetadata":if(t.isArray(o.metadata)){var st=p(!0,0,!1).join("");return t.each(o.metadata,function(t,e){if(e.mask===st)return st=e,!1}),st}return o.metadata}}var l=navigator.userAgent,u=/mobile/i.test(l),h=/iemobile/i.test(l),c=/iphone/i.test(l)&&!h,d=/android/i.test(l)&&!h;return r.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},quantifiermarker:{start:"{",end:"}"},groupmarker:{start:"(",end:")"},alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:t.noop,onincomplete:t.noop,oncleared:t.noop,repeat:0,greedy:!0,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:t.noop,onBeforeMask:null,onBeforePaste:function(e,i){return t.isFunction(i.onBeforeMask)?i.onBeforeMask.call(this,e,i):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:t.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",radixPointDefinitionSymbol:n,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","password"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,canClearPosition:t.noop,preValidation:null,postValidation:null,staticDefinitionSymbol:n,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,androidHack:!1,importDataAttributes:!0},definitions:{9:{validator:"[0-91-9]",cardinality:1,definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,definitionSymbol:"*"},"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1}},aliases:{},masksCache:{},mask:function(l){function u(i,r,o,s){function l(t,r){null!==(r=r!==n?r:i.getAttribute(s+"-"+t))&&("string"==typeof r&&(0===t.indexOf("on")?r=e[r]:"false"===r?r=!1:"true"===r&&(r=!0)),o[t]=r)}if(!0===r.importDataAttributes){var u,h,c,d,p=i.getAttribute(s);if(p&&""!==p&&(p=p.replace(new RegExp("'","g"),'"'),h=JSON.parse("{"+p+"}")),h){c=n;for(d in h)if("alias"===d.toLowerCase()){c=h[d];break}}l("alias",c),o.alias&&a(o.alias,o,r);for(u in r){if(h){c=n;for(d in h)if(d.toLowerCase()===u.toLowerCase()){c=h[d];break}}l(u,c)}}return t.extend(!0,r,o),("rtl"===i.dir||r.rightAlign)&&(i.style.textAlign="right"),("rtl"===i.dir||r.numericInput)&&(i.dir="ltr",i.removeAttribute("dir"),r.isRTL=!0),r}var h=this;return"string"==typeof l&&(l=i.getElementById(l)||i.querySelectorAll(l)),l=l.nodeName?[l]:l,t.each(l,function(e,i){var a=t.extend(!0,{},h.opts);u(i,a,t.extend(!0,{},h.userOptions),h.dataAttribute);var l=o(a,h.noMasksCache);l!==n&&(i.inputmask!==n&&(i.inputmask.opts.autoUnmask=!0,i.inputmask.remove()),i.inputmask=new r(n,n,(!0)),i.inputmask.opts=a,i.inputmask.noMasksCache=h.noMasksCache,i.inputmask.userOptions=t.extend(!0,{},h.userOptions),i.inputmask.isRTL=a.isRTL||a.numericInput,i.inputmask.el=i,i.inputmask.maskset=l,t.data(i,"_inputmask_opts",a),s.call(i.inputmask,{action:"mask"}))}),l&&l[0]?l[0].inputmask||this:this},option:function(e,i){return"string"==typeof e?this.opts[e]:"object"==typeof e?(t.extend(this.userOptions,e),this.el&&!0!==i&&this.mask(this.el),this):void 0},unmaskedvalue:function(t){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),s.call(this,{action:"unmaskedvalue",value:t})},remove:function(){return s.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),s.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),s.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),s.call(this,{action:"getmetadata"})},isValid:function(t){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),s.call(this,{action:"isValid",value:t})},format:function(t,e){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),s.call(this,{action:"format",value:t,metadata:e})},analyseMask:function(e,i,a){function o(t,e,i,n){this.matches=[],this.openGroup=t||!1,this.alternatorGroup=!1,this.isGroup=t||!1,this.isOptional=e||!1,this.isQuantifier=i||!1,this.isAlternator=n||!1,this.quantifier={min:1,max:1}}function s(e,o,s){s=s!==n?s:e.matches.length;var l=e.matches[s-1];if(i)0===o.indexOf("[")||b&&/\\d|\\s|\\w]/i.test(o)||"."===o?e.matches.splice(s++,0,{fn:new RegExp(o,a.casing?"i":""),cardinality:1,optionality:e.isOptional,newBlockMarker:l===n||l.def!==o,casing:null,def:o,placeholder:n,nativeDef:o}):(b&&(o=o[o.length-1]),t.each(o.split(""),function(t,i){l=e.matches[s-1],e.matches.splice(s++,0,{fn:null,cardinality:0,optionality:e.isOptional,newBlockMarker:l===n||l.def!==i&&null!==l.fn,casing:null,def:a.staticDefinitionSymbol||i,placeholder:a.staticDefinitionSymbol!==n?i:n,nativeDef:i})})),b=!1;else{var u=(a.definitions?a.definitions[o]:n)||r.prototype.definitions[o];if(u&&!b){for(var h=u.prevalidator,c=h?h.length:0,d=1;d<u.cardinality;d++){var p=c>=d?h[d-1]:[],f=p.validator,g=p.cardinality;e.matches.splice(s++,0,{fn:f?"string"==typeof f?new RegExp(f,a.casing?"i":""):new function(){this.test=f}:new RegExp("."),cardinality:g||1,optionality:e.isOptional,newBlockMarker:l===n||l.def!==(u.definitionSymbol||o),casing:u.casing,def:u.definitionSymbol||o,placeholder:u.placeholder,nativeDef:o}),l=e.matches[s-1]}e.matches.splice(s++,0,{fn:u.validator?"string"==typeof u.validator?new RegExp(u.validator,a.casing?"i":""):new function(){this.test=u.validator}:new RegExp("."),cardinality:u.cardinality,optionality:e.isOptional,newBlockMarker:l===n||l.def!==(u.definitionSymbol||o),casing:u.casing,def:u.definitionSymbol||o,placeholder:u.placeholder,nativeDef:o})}else e.matches.splice(s++,0,{fn:null,cardinality:0,optionality:e.isOptional,newBlockMarker:l===n||l.def!==o&&null!==l.fn,casing:null,def:a.staticDefinitionSymbol||o,placeholder:a.staticDefinitionSymbol!==n?o:n,nativeDef:o}),b=!1}}function l(e){e&&e.matches&&t.each(e.matches,function(t,r){var o=e.matches[t+1];(o===n||o.matches===n||!1===o.isQuantifier)&&r&&r.isGroup&&(r.isGroup=!1,i||(s(r,a.groupmarker.start,0),!0!==r.openGroup&&s(r,a.groupmarker.end))),l(r)})}function u(){if(w.length>0){if(f=w[w.length-1],s(f,d),f.isAlternator){g=w.pop();for(var t=0;t<g.matches.length;t++)g.matches[t].isGroup=!1;w.length>0?(f=w[w.length-1]).matches.push(g):x.matches.push(g)}}else s(x,d)}function h(t){t.matches=t.matches.reverse();for(var e in t.matches)if(t.matches.hasOwnProperty(e)){var i=parseInt(e);if(t.matches[e].isQuantifier&&t.matches[i+1]&&t.matches[i+1].isGroup){var r=t.matches[e];t.matches.splice(e,1),t.matches.splice(i+1,0,r)}t.matches[e].matches!==n?t.matches[e]=h(t.matches[e]):t.matches[e]=function(t){return t===a.optionalmarker.start?t=a.optionalmarker.end:t===a.optionalmarker.end?t=a.optionalmarker.start:t===a.groupmarker.start?t=a.groupmarker.end:t===a.groupmarker.end&&(t=a.groupmarker.start),t}(t.matches[e])}return t}var c,d,p,f,g,m,v,y=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,_=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,b=!1,x=new o,w=[],M=[];for(i&&(a.optionalmarker.start=n,a.optionalmarker.end=n);c=i?_.exec(e):y.exec(e);){if(d=c[0],i)switch(d.charAt(0)){case"?":d="{0,1}";break;case"+":case"*":d="{"+d+"}"}if(b)u();else switch(d.charAt(0)){case a.escapeChar:b=!0,i&&u();break;case a.optionalmarker.end:case a.groupmarker.end:if(p=w.pop(),p.openGroup=!1,p!==n)if(w.length>0){if((f=w[w.length-1]).matches.push(p),f.isAlternator){g=w.pop();for(var S=0;S<g.matches.length;S++)g.matches[S].isGroup=!1,g.matches[S].alternatorGroup=!1;w.length>0?(f=w[w.length-1]).matches.push(g):x.matches.push(g)}}else x.matches.push(p);else u();break;case a.optionalmarker.start:w.push(new o((!1),(!0)));break;case a.groupmarker.start:w.push(new o((!0)));break;case a.quantifiermarker.start:var k=new o((!1),(!1),(!0)),D=(d=d.replace(/[{}]/g,"")).split(","),T=isNaN(D[0])?D[0]:parseInt(D[0]),L=1===D.length?T:isNaN(D[1])?D[1]:parseInt(D[1]);if("*"!==L&&"+"!==L||(T="*"===L?0:1),k.quantifier={min:T,max:L},w.length>0){var C=w[w.length-1].matches;(c=C.pop()).isGroup||((v=new o((!0))).matches.push(c),c=v),C.push(c),C.push(k)}else(c=x.matches.pop()).isGroup||(i&&null===c.fn&&"."===c.def&&(c.fn=new RegExp(c.def,a.casing?"i":"")),(v=new o((!0))).matches.push(c),c=v),x.matches.push(c),x.matches.push(k);break;case a.alternatormarker:if(w.length>0){var I=(f=w[w.length-1]).matches[f.matches.length-1];m=f.openGroup&&(I.matches===n||!1===I.isGroup&&!1===I.isAlternator)?w.pop():f.matches.pop()}else m=x.matches.pop();if(m.isAlternator)w.push(m);else if(m.alternatorGroup?(g=w.pop(),m.alternatorGroup=!1):g=new o((!1),(!1),(!1),(!0)),g.matches.push(m),w.push(g),m.openGroup){m.openGroup=!1;var A=new o((!0));A.alternatorGroup=!0,w.push(A)}break;default:u()}}for(;w.length>0;)p=w.pop(),x.matches.push(p);return x.matches.length>0&&(l(x),M.push(x)),(a.numericInput||a.isRTL)&&h(M[0]),M}},r.extendDefaults=function(e){t.extend(!0,r.prototype.defaults,e)},r.extendDefinitions=function(e){t.extend(!0,r.prototype.definitions,e)},r.extendAliases=function(e){t.extend(!0,r.prototype.aliases,e)},r.format=function(t,e,i){return r(e).format(t,i)},r.unmask=function(t,e){return r(e).unmaskedvalue(t)},r.isValid=function(t,e){return r(e).isValid(t)},r.remove=function(e){t.each(e,function(t,e){e.inputmask&&e.inputmask.remove()})},r.escapeRegex=function(t){var e=["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"];return t.replace(new RegExp("(\\"+e.join("|\\")+")","gim"),"\\$1")},r.keyCode={ALT:18,BACKSPACE:8,BACKSPACE_SAFARI:127,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91,X:88},r})},function(t,e,i){"use strict";var n={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||"undefined"==typeof t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return"undefined"==typeof t?e:t},valueAtIndexOrDefault:function(t,e,i){return n.valueOrDefault(n.isArray(t)?t[e]:t,i)},callback:function(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)},each:function(t,e,i,r){var a,o,s;if(n.isArray(t))if(o=t.length,r)for(a=o-1;a>=0;a--)e.call(i,t[a],a);else for(a=0;a<o;a++)e.call(i,t[a],a);else if(n.isObject(t))for(s=Object.keys(t),o=s.length,a=0;a<o;a++)e.call(i,t[s[a]],s[a])},arrayEquals:function(t,e){var i,r,a,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,r=t.length;i<r;++i)if(a=t[i],o=e[i],a instanceof Array&&o instanceof Array){if(!n.arrayEquals(a,o))return!1}else if(a!==o)return!1;return!0},clone:function(t){if(n.isArray(t))return t.map(n.clone);if(n.isObject(t)){for(var e={},i=Object.keys(t),r=i.length,a=0;a<r;++a)e[i[a]]=n.clone(t[i[a]]);return e}return t},_merger:function(t,e,i,r){var a=e[t],o=i[t];n.isObject(a)&&n.isObject(o)?n.merge(a,o,r):e[t]=n.clone(o)},_mergerIf:function(t,e,i){var r=e[t],a=i[t];n.isObject(r)&&n.isObject(a)?n.mergeIf(r,a):e.hasOwnProperty(t)||(e[t]=n.clone(a))},merge:function(t,e,i){var r,a,o,s,l,u=n.isArray(e)?e:[e],h=u.length;if(!n.isObject(t))return t;for(i=i||{},r=i.merger||n._merger,a=0;a<h;++a)if(e=u[a],n.isObject(e))for(o=Object.keys(e),l=0,s=o.length;l<s;++l)r(o[l],t,e,i);return t},mergeIf:function(t,e){return n.merge(t,e,{merger:n._mergerIf})},extend:function(t){for(var e=function(e,i){t[i]=e},i=1,r=arguments.length;i<r;++i)n.each(arguments[i],e);return t},inherits:function(t){var e=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r=function(){this.constructor=i};return r.prototype=e.prototype,i.prototype=new r,i.extend=n.inherits,t&&n.extend(i.prototype,t),i.__super__=e.prototype,i}};t.exports=n,n.callCallback=n.callback,n.indexOf=function(t,e,i){return Array.prototype.indexOf.call(t,e,i)},n.getValueOrDefault=n.valueOrDefault,n.getValueAtIndexOrDefault=n.valueAtIndexOrDefault},function(t,e,i){function n(t,e){var i=new b(l(),t,e);return y[i.id]=i,i}function r(t){if(t)t.dispose();else{for(var e in y)y.hasOwnProperty(e)&&y[e].dispose();y={}}return this}function a(t){return y[t]}function o(t,e){v[t]=e}function s(t){delete y[t]}var l=i(247),u=i(15),h=i(0),c=i(436),d=i(438),p=i(442),f=i(444),g=i(445),m=!u.canvasSupported,v={canvas:p},y={},_="4.0.4",b=function(t,e,i){i=i||{},this.dom=e,this.id=t;var n=this,r=new d,a=i.renderer;if(m){if(!v.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");a="vml"}else a&&v[a]||(a="canvas");var o=new v[a](e,r,i,t);this.storage=r,this.painter=o;var s=u.node||u.worker?null:new g(o.getViewportRoot());this.handler=new c(r,o,s,o.root),this.animation=new f({stage:{update:h.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=r.delFromStorage,p=r.addToStorage;r.delFromStorage=function(t){l.call(r,t),t&&t.removeSelfFromZr(n)},r.addToStorage=function(t){p.call(r,t),t.addSelfToZr(n)}};b.prototype={constructor:b,getId:function(){return this.id},add:function(t){this.storage.addRoot(t), this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,s(this.id)}},e.version=_,e.init=n,e.dispose=r,e.getInstance=a,e.registerPainter=o},function(t,e,i){var n=i(0),r=i(248),a=i(12),o=function(t){t=t||{},r.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,r=this._children,a=n.indexOf(r,t);return a<0?this:(r.splice(a,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(i)),e&&e.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i.length;e++)t=i[e],n&&(n.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(n)),t.parent=null;return i.length=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.addToStorage(i),i instanceof o&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.delFromStorage(i),i instanceof o&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new a(0,0,0,0),n=t||this._children,r=[],o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(i.copy(l),i.applyTransform(u),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},n.inherits(o,r);var s=o;t.exports=s},function(t,e){var i=1;"undefined"!=typeof window&&(i=Math.max(window.devicePixelRatio||1,1));var n=0,r=i;e.debugMode=n,e.devicePixelRatio=r},function(t,e,i){function n(t){return r(t),S(t.rich,r),t}function r(t){if(t){t.font=L.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||P[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||E[i]?i:"top";var n=t.textPadding;n&&(t.textPadding=k(t.textPadding))}}function a(t,e,i,n,r){n.rich?s(t,e,i,n,r):o(t,e,i,n,r)}function o(t,e,i,n,r){var a=g(e,"font",n.font||L.DEFAULT_FONT),o=n.textPadding,s=t.__textCotentBlock;s&&!t.__dirty||(s=t.__textCotentBlock=L.parsePlainText(i,a,o,n.truncate));var l=s.outerHeight,h=s.lines,p=s.lineHeight,y=f(l,n,r),b=y.baseX,x=y.baseY,w=y.textAlign,M=y.textVerticalAlign;u(e,n,r,b,x);var S=L.adjustTextY(x,l,M),k=b,D=S,T=c(n);if(T||o){var C=L.getWidth(i,a),I=C;o&&(I+=o[1]+o[3]);var A=L.adjustTextX(b,I,w);T&&d(t,e,n,A,S,I,l),o&&(k=_(b,w,o),D+=o[0])}g(e,"textAlign",w||"left"),g(e,"textBaseline","middle"),g(e,"shadowBlur",n.textShadowBlur||0),g(e,"shadowColor",n.textShadowColor||"transparent"),g(e,"shadowOffsetX",n.textShadowOffsetX||0),g(e,"shadowOffsetY",n.textShadowOffsetY||0),D+=p/2;var P=n.textStrokeWidth,E=m(n.textStroke,P),O=v(n.textFill);E&&(g(e,"lineWidth",P),g(e,"strokeStyle",E)),O&&g(e,"fillStyle",O);for(var R=0;R<h.length;R++)E&&e.strokeText(h[R],k,D),O&&e.fillText(h[R],k,D),D+=p}function s(t,e,i,n,r){var a=t.__textCotentBlock;a&&!t.__dirty||(a=t.__textCotentBlock=L.parseRichText(i,n)),l(t,e,a,n,r)}function l(t,e,i,n,r){var a=i.width,o=i.outerWidth,s=i.outerHeight,l=n.textPadding,p=f(s,n,r),g=p.baseX,m=p.baseY,v=p.textAlign,y=p.textVerticalAlign;u(e,n,r,g,m);var _=L.adjustTextX(g,o,v),b=L.adjustTextY(m,s,y),x=_,w=b;l&&(x+=l[3],w+=l[0]);var M=x+a;c(n)&&d(t,e,n,_,b,o,s);for(var S=0;S<i.lines.length;S++){for(var k,D=i.lines[S],T=D.tokens,C=T.length,I=D.lineHeight,A=D.width,P=0,E=x,O=M,R=C-1;P<C&&(k=T[P],!k.textAlign||"left"===k.textAlign);)h(t,e,k,n,I,w,E,"left"),A-=k.width,E+=k.width,P++;for(;R>=0&&(k=T[R],"right"===k.textAlign);)h(t,e,k,n,I,w,O,"right"),A-=k.width,O-=k.width,R--;for(E+=(a-(E-x)-(M-O)-A)/2;P<=R;)k=T[P],h(t,e,k,n,I,w,E+k.width/2,"center"),E+=k.width,P++;w+=I}}function u(t,e,i,n,r){if(i&&e.textRotation){var a=e.textOrigin;"center"===a?(n=i.width/2+i.x,r=i.height/2+i.y):a&&(n=a[0]+i.x,r=a[1]+i.y),t.translate(n,r),t.rotate(-e.textRotation),t.translate(-n,-r)}}function h(t,e,i,n,r,a,o,s){var l=n.rich[i.styleName]||{},u=i.textVerticalAlign,h=a+r/2;"top"===u?h=a+i.height/2:"bottom"===u&&(h=a+r-i.height/2),!i.isLineHolder&&c(l)&&d(t,e,l,"right"===s?o-i.width:"center"===s?o-i.width/2:o,h-i.height/2,i.width,i.height);var p=i.textPadding;p&&(o=_(o,s,p),h-=i.height/2-p[2]-i.textHeight/2),g(e,"shadowBlur",M(l.textShadowBlur,n.textShadowBlur,0)),g(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),g(e,"shadowOffsetX",M(l.textShadowOffsetX,n.textShadowOffsetX,0)),g(e,"shadowOffsetY",M(l.textShadowOffsetY,n.textShadowOffsetY,0)),g(e,"textAlign",s),g(e,"textBaseline","middle"),g(e,"font",i.font||L.DEFAULT_FONT);var f=m(l.textStroke||n.textStroke,b),y=v(l.textFill||n.textFill),b=w(l.textStrokeWidth,n.textStrokeWidth);f&&(g(e,"lineWidth",b),g(e,"strokeStyle",f),e.strokeText(i.text,o,h)),y&&(g(e,"fillStyle",y),e.fillText(i.text,o,h))}function c(t){return t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor}function d(t,e,i,n,r,a,o){var s=i.textBackgroundColor,l=i.textBorderWidth,u=i.textBorderColor,h=D(s);if(g(e,"shadowBlur",i.textBoxShadowBlur||0),g(e,"shadowColor",i.textBoxShadowColor||"transparent"),g(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),g(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),h||l&&u){e.beginPath();var c=i.textBorderRadius;c?C.buildPath(e,{x:n,y:r,width:a,height:o,r:c}):e.rect(n,r,a,o),e.closePath()}if(h)g(e,"fillStyle",s),e.fill();else if(T(s)){var d=s.image;d=I.createOrUpdateImage(d,null,t,p,s),d&&I.isImageReady(d)&&e.drawImage(d,n,r,a,o)}l&&u&&(g(e,"lineWidth",l),g(e,"strokeStyle",u),e.stroke())}function p(t,e){e.image=t}function f(t,e,i){var n=e.x||0,r=e.y||0,a=e.textAlign,o=e.textVerticalAlign;if(i){var s=e.textPosition;if(s instanceof Array)n=i.x+y(s[0],i.width),r=i.y+y(s[1],i.height);else{var l=L.adjustTextPositionOnRect(s,i,e.textDistance);n=l.x,r=l.y,a=a||l.textAlign,o=o||l.textVerticalAlign}var u=e.textOffset;u&&(n+=u[0],r+=u[1])}return{baseX:n,baseY:r,textAlign:a,textVerticalAlign:o}}function g(t,e,i){return t[e]=A(t,e,i),t[e]}function m(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function v(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function y(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function _(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function b(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}var x=i(0),w=x.retrieve2,M=x.retrieve3,S=x.each,k=x.normalizeCssArray,D=x.isString,T=x.isObject,L=i(25),C=i(256),I=i(94),A=i(252),P={left:1,right:1,center:1},E={top:1,bottom:1,middle:1};e.normalizeTextStyle=n,e.renderText=a,e.getStroke=m,e.getFill=v,e.needDrawText=b},function(t,e){var i=function(t){this.colorStops=t||[]};i.prototype={constructor:i,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var n=i;t.exports=n},function(t,e,i){function n(t){return[t||"",u++,Math.random().toFixed(5)].join("_")}function r(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=l(t),e[t.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var a=l(i).main;t.hasSubTypes(i)&&e[a]&&(r=e[a](n))}return r},t}function a(t,e){function i(t){var i={},a=[];return o.each(t,function(s){var l=n(i,s),u=l.originalDeps=e(s),h=r(u,t);l.entryCount=h.length,0===l.entryCount&&a.push(s),o.each(h,function(t){o.indexOf(l.predecessor,t)<0&&l.predecessor.push(t);var e=n(i,t);o.indexOf(e.successor,t)<0&&e.successor.push(s)})}),{graph:i,noEntryList:a}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var i=[];return o.each(t,function(t){o.indexOf(e,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,r){function a(t){u[t].entryCount--,0===u[t].entryCount&&h.push(t)}function s(t){c[t]=!0,a(t)}if(t.length){var l=i(e),u=l.graph,h=l.noEntryList,c={};for(o.each(t,function(t){c[t]=!0});h.length;){var d=h.pop(),p=u[d],f=!!c[d];f&&(n.call(r,d,p.originalDeps.slice()),delete c[d]),o.each(p.successor,f?s:a)}o.each(c,function(){throw new Error("Circle dependency may exists")})}}}var o=i(0),s=i(28),l=s.parseClassType,u=0;e.getUID=n,e.enableSubTypeDefaulter=r,e.enableTopologicalTravel=a},function(t,e,i){function n(t){var e=t.option.source,i=z;if(L(e))i=Y;else if(k(e))for(var n=0,r=e.length;n<r;n++){var a=e[n];if(null!=a){if(k(a)){i=O;break}if(T(a)){i=R;break}}}else if(T(e)){for(var o in e)if(e.hasOwnProperty(o)&&C(e[o])){i=H;break}}else if(null!=e)throw new Error("Invalid data");F(t).sourceFormat=i}function r(t){return F(t).source}function a(t){F(t).datasetMap=w()}function o(t){var e=t.option,i=e.data,n=L(i)?Y:E,r=!1,a=e.seriesLayoutBy,o=e.sourceHeader,l=e.dimensions,u=d(t);if(u){var h=u.option;i=h.source,n=F(u).sourceFormat,r=!0,a=a||h.seriesLayoutBy,null==o&&(o=h.sourceHeader),l=l||h.dimensions}var p=s(i,n,a,o,l),f=e.encode;!f&&u&&(f=c(t,u,i,n,a,p)),F(t).source=new A({data:i,fromDataset:r,seriesLayoutBy:a,sourceFormat:n,dimensionsDefine:p.dimensionsDefine,startIndex:p.startIndex,dimensionsDetectCount:p.dimensionsDetectCount,encodeDefine:f})}function s(t,e,i,n,r){if(!t)return{dimensionsDefine:l(r)};var a,o,s;if(e===O)"auto"===n||null==n?u(function(t){null!=t&&"-"!==t&&(D(t)?null==o&&(o=1):o=0)},i,t,10):o=n?1:0,r||1!==o||(r=[],u(function(t,e){r[e]=null!=t?t:""},i,t)),a=r?r.length:i===N?t.length:t[0]?t[0].length:null;else if(e===R)r||(r=h(t),s=!0);else if(e===H)r||(r=[],s=!0,M(t,function(t,e){r.push(e)}));else if(e===E){var c=y(t[0]);a=k(c)&&c.length||1}var d;return s&&M(r,function(t,e){"name"===(T(t)?t.name:t)&&(d=e)}),{startIndex:o,dimensionsDefine:l(r),dimensionsDetectCount:a,potentialNameDimIndex:d}}function l(t){if(t){var e=w();return S(t,function(t,i){if(t=I({},T(t)?t:{name:t}),null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=e.get(t.name);return n?t.name+="-"+n.count++:e.set(t.name,{count:1}),t})}}function u(t,e,i,n){if(null==n&&(n=1/0),e===N)for(var r=0;r<i.length&&r<n;r++)t(i[r]?i[r][0]:null,r);else for(var a=i[0]||[],r=0;r<a.length&&r<n;r++)t(a[r],r)}function h(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e){var n=[];return M(e,function(t,e){n.push(e)}),n}}function c(t,e,i,n,r,a){var o=b(t),s={},l=[],u=[],h=t.subType,c=w(["pie","map","funnel"]),d=w(["line","bar","pictorialBar","scatter","effectScatter","candlestick","boxplot"]);if(o&&null!=d.get(h)){var p=t.ecModel,g=F(p).datasetMap,m=e.uid+"_"+r,v=g.get(m)||g.set(m,{categoryWayDim:1,valueWayDim:0});M(o.coordSysDims,function(t){if(null==o.firstCategoryDimIndex){var e=v.valueWayDim++;s[t]=e,u.push(e)}else if(o.categoryAxisMap.get(t))s[t]=0,l.push(0);else{var e=v.categoryWayDim++;s[t]=e,u.push(e)}})}else if(null!=c.get(h)){for(var y,_=0;_<5&&null==y;_++)f(i,n,r,a.dimensionsDefine,a.startIndex,_)||(y=_);if(null!=y){s.value=y;var x=a.potentialNameDimIndex||Math.max(y-1,0);u.push(x),l.push(x)}}return l.length&&(s.itemName=l),u.length&&(s.seriesName=u),s}function d(t){var e=t.option,i=e.data;if(!i)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}function p(t,e){return f(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function f(t,e,i,n,r,a){function o(t){return(null==t||!isFinite(t)||""===t)&&(!(!D(t)||"-"===t)||void 0)}var s,l=5;if(L(t))return!1;var u;if(n&&(u=n[a],u=T(u)?u.name:u),e===O)if(i===N){for(var h=t[a],c=0;c<(h||[]).length&&c<l;c++)if(null!=(s=o(h[r+c])))return s}else for(var c=0;c<t.length&&c<l;c++){var d=t[r+c];if(d&&null!=(s=o(d[a])))return s}else if(e===R){if(!u)return;for(var c=0;c<t.length&&c<l;c++){var p=t[c];if(p&&null!=(s=o(p[u])))return s}}else if(e===H){if(!u)return;var h=t[u];if(!h||L(h))return!1;for(var c=0;c<h.length&&c<l;c++)if(null!=(s=o(h[c])))return s}else if(e===E)for(var c=0;c<t.length&&c<l;c++){var p=t[c],f=y(p);if(!k(f))return!1;if(null!=(s=o(f[a])))return s}return!1}var g=i(7),m=(g.__DEV__,i(5)),v=m.makeInner,y=m.getDataItemValue,_=i(266),b=_.getCoordSysDefineBySeries,x=i(0),w=x.createHashMap,M=x.each,S=x.map,k=x.isArray,D=x.isString,T=x.isObject,L=x.isTypedArray,C=x.isArrayLike,I=x.extend,A=(x.assert,i(58)),P=i(59),E=P.SOURCE_FORMAT_ORIGINAL,O=P.SOURCE_FORMAT_ARRAY_ROWS,R=P.SOURCE_FORMAT_OBJECT_ROWS,H=P.SOURCE_FORMAT_KEYED_COLUMNS,z=P.SOURCE_FORMAT_UNKNOWN,Y=P.SOURCE_FORMAT_TYPED_ARRAY,N=P.SERIES_LAYOUT_BY_ROW,F=v();e.detectSourceFormat=n,e.getSource=r,e.resetSourceDefaulter=a,e.prepareSource=o,e.guessOrdinal=p},function(t,e,i){var n=i(73),r=i(77),a=i(28),o=function(){this.group=new n,this.uid=r.getUID("viewComponent")};o.prototype={constructor:o,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};var s=o.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){},a.enableClassExtend(o),a.enableClassManagement(o,{registerWhenExtend:!0});var l=o;t.exports=l},function(t,e,i){function n(t){this._setting=t||{},this._extent=[1/0,-(1/0)],this._interval=0,this.init&&this.init.apply(this,arguments)}var r=i(28);n.prototype.parse=function(t){return t},n.prototype.getSetting=function(t){return this._setting[t]},n.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},n.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n.prototype.getLabel=null,r.enableClassExtend(n),r.enableClassManagement(n,{registerWhenExtend:!0});var a=n;t.exports=a},function(t,e,i){var n=i(4),r=i(11),a=i(80),o=i(272),s=n.round,l=a.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(t)},getTicks:function(){return o.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=n.getPrecisionSafe(t)||0:"auto"===i&&(i=this._intervalPrecision),t=s(t,i,!0),r.addCommas(t)},niceTicks:function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){r<0&&(r=-r,n.reverse());var a=o.intervalScaleNiceTicks(n,t,e,i);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=s(Math.ceil(e[1]/r)*r))}});l.create=function(){return new l};var u=l;t.exports=u},function(t,e,i){function n(t){return t.get("stack")||b+t.seriesIndex}function r(t){return t.dim+t.index}function a(t){var e=[],i=t.axis,n="axis0";if("category"===i.type){for(var r=i.getBandWidth(),a=0;a<t.count;a++)e.push(f.defaults({bandWidth:r,axisKey:n,stackId:b+a},t));for(var o=l(e),s=[],a=0;a<t.count;a++){var u=o[n][b+a];u.offsetCenter=u.offset+u.width/2,s.push(u)}return s}}function o(t,e){var i=[];return e.eachSeriesByType(t,function(t){c(t)&&!d(t)&&i.push(t)}),i}function s(t){var e=[];return f.each(t,function(t){var i=t.getData(),a=t.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=m(t.get("barWidth"),l),h=m(t.get("barMaxWidth"),l),c=t.get("barGap"),d=t.get("barCategoryGap");e.push({bandWidth:l,barWidth:u,barMaxWidth:h,barGap:c,barCategoryGap:d,axisKey:r(o),stackId:n(t)})}),l(e)}function l(t){var e={};f.each(t,function(t,i){var n=t.axisKey,r=t.bandWidth,a=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=a.stacks;e[n]=a;var s=t.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=t.barMaxWidth;u&&(o[s].maxWidth=u);var h=t.barGap;null!=h&&(a.gap=h);var c=t.barCategoryGap;null!=c&&(a.categoryGap=c)});var i={};return f.each(e,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,a=m(t.categoryGap,r),o=m(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-a)/(l+(l-1)*o);u=Math.max(u,0),f.each(n,function(t,e){var i=t.maxWidth;i&&i<u&&(i=Math.min(i,s),t.width&&(i=Math.min(i,t.width)),s-=i,t.width=i,l--)}),u=(s-a)/(l+(l-1)*o),u=Math.max(u,0);var h,c=0;f.each(n,function(t,e){t.width||(t.width=u),h=t,c+=t.width*(1+o)}),h&&(c-=h.width*o);var d=-c/2;f.each(n,function(t,n){i[e][n]=i[e][n]||{offset:d,width:t.width},d+=t.width*(1+o)})}),i}function u(t,e,i){if(t&&e){var a=t[r(e)];return null!=a&&null!=i&&(a=a[n(i)]),a}}function h(t,e){var i=o(t,e),a=s(i),l={},u={};f.each(i,function(t){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),s=n(t),h=a[r(o)][s],c=h.offset,d=h.width,f=i.getOtherAxis(o),g=t.get("barMinHeight")||0;l[s]=l[s]||[],u[s]=u[s]||[],e.setLayout({offset:c,size:d});for(var m=e.mapDimension(f.dim),v=e.mapDimension(o.dim),_=y(e,m),b=f.isHorizontal(),x=p(o,f,_),w=0,M=e.count();w<M;w++){var S=e.get(m,w),k=e.get(v,w);if(!isNaN(S)){var D=S>=0?"p":"n",T=x;_&&(l[s][k]||(l[s][k]={p:x,n:x}),T=l[s][k][D]);var L,C,I,A;if(b){var P=i.dataToPoint([S,k]);L=T,C=P[1]+c,I=P[0]-x,A=d,Math.abs(I)<g&&(I=(I<0?-1:1)*g),_&&(l[s][k][D]+=I)}else{var P=i.dataToPoint([k,S]);L=P[0]+c,C=T,I=d,A=P[1]-x,Math.abs(A)<g&&(A=(A<=0?-1:1)*g),_&&(l[s][k][D]+=A)}e.setItemLayout(w,{x:L,y:C,width:I,height:A})}}},this)}function c(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function d(t){return t.pipelineContext&&t.pipelineContext.large}function p(t,e,i){return f.indexOf(t.getAxesOnZeroOf(),e)>=0||i?e.toGlobalCoord(e.dataToCoord(0)):e.getGlobalExtent()[0]}var f=i(0),g=i(4),m=g.parsePercent,v=i(31),y=v.isDimensionStacked,_=i(48),b="__ec_stack_",x=.5,w="undefined"!=typeof Float32Array?Float32Array:Array,M={seriesType:"bar",plan:_(),reset:function(t){function e(t,e){for(var i,s=new w(2*t.count),u=[],c=[],d=0;null!=(i=t.next());)c[f]=e.get(o,i),c[1-f]=e.get(l,i),u=n.dataToPoint(c,null,u),s[d++]=u[0],s[d++]=u[1];e.setLayout({largePoints:s,barWidth:g,valueAxisStart:p(r,a,!1),valueAxisHorizontal:h})}if(c(t)&&d(t)){var i=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),a=n.getOtherAxis(r),o=i.mapDimension(a.dim),l=i.mapDimension(r.dim),h=a.isHorizontal(),f=h?0:1,g=u(s([t]),r,t).width;return g>x||(g=x),{progress:e}}}};e.getLayoutOnAxis=a,e.prepareLayoutBarSeries=o,e.makeColumnLayout=s,e.retrieveColumnLayout=u,e.layout=h,e.largeLayout=M},function(t,e,i){function n(t,e,i){u.Group.call(this),this.updateData(t,e,i)}function r(t){return[t[0]/2,t[1]/2]}function a(t,e){this.parent.drift(t,e)}var o=i(0),s=i(21),l=s.createSymbol,u=i(3),h=i(4),c=h.parsePercent,d=i(99),p=d.getDefaultLabel,f=n.prototype,g=n.getSymbolSize=function(t,e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};f._createSymbol=function(t,e,i,n,o){this.removeAll();var s=e.getItemVisual(i,"color"),u=l(t,-1,-1,2,2,s,o);u.attr({z2:100,culling:!0,scale:r(n)}),u.drift=a,this._symbolType=t,this.add(u)},f.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},f.getSymbolPath=function(){return this.childAt(0)},f.getScale=function(){return this.childAt(0).scale},f.highlight=function(){this.childAt(0).trigger("emphasis")},f.downplay=function(){this.childAt(0).trigger("normal")},f.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},f.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},f.updateData=function(t,e,i){this.silent=!1;var n=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,o=g(t,e),s=n!==this._symbolType;if(s){var l=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(n,t,e,o,l)}else{var h=this.childAt(0);h.silent=!1,u.updateProps(h,{scale:r(o)},a,e)}if(this._updateCommon(t,e,o,i),s){var h=this.childAt(0),c=i&&i.fadeIn,d={scale:h.scale.slice()};c&&(d.style={opacity:h.style.opacity}),h.scale=[0,0],c&&(h.style.opacity=0),u.initProps(h,d,a,e)}this._seriesModel=a};var m=["itemStyle"],v=["emphasis","itemStyle"],y=["label"],_=["emphasis","label"];f._updateCommon=function(t,e,i,n){function a(e,i){return I?t.getName(e):p(t,e)}var s=this.childAt(0),l=t.hostModel,h=t.getItemVisual(e,"color");"image"!==s.type&&s.useStyle({strokeNoScale:!0});var d=n&&n.itemStyle,f=n&&n.hoverItemStyle,g=n&&n.symbolRotate,b=n&&n.symbolOffset,x=n&&n.labelModel,w=n&&n.hoverLabelModel,M=n&&n.hoverAnimation,S=n&&n.cursorStyle;if(!n||t.hasItemOption){var k=n&&n.itemModel?n.itemModel:t.getItemModel(e);d=k.getModel(m).getItemStyle(["color"]),f=k.getModel(v).getItemStyle(),g=k.getShallow("symbolRotate"),b=k.getShallow("symbolOffset"),x=k.getModel(y),w=k.getModel(_),M=k.getShallow("hoverAnimation"),S=k.getShallow("cursor")}else f=o.extend({},f);var D=s.style;s.attr("rotation",(g||0)*Math.PI/180||0),b&&s.attr("position",[c(b[0],i[0]),c(b[1],i[1])]),S&&s.attr("cursor",S),s.setColor(h,n&&n.symbolInnerColor),s.setStyle(d);var T=t.getItemVisual(e,"opacity");null!=T&&(D.opacity=T);var L=t.getItemVisual(e,"liftZ"),C=s.__z2Origin;null!=L?null==C&&(s.__z2Origin=s.z2,s.z2+=L):null!=C&&(s.z2=C,s.__z2Origin=null);var I=n&&n.useNameLabel;u.setLabelStyle(D,f,x,w,{labelFetcher:l,labelDataIndex:e,defaultText:a,isRectText:!0,autoColor:h}),s.off("mouseover").off("mouseout").off("emphasis").off("normal"),s.hoverStyle=f,u.setHoverStyle(s);var A=r(i);if(M&&l.isAnimationEnabled()){var P=function(){if(!this.incremental){var t=A[1]/A[0];this.animateTo({scale:[Math.max(1.1*A[0],A[0]+3),Math.max(1.1*A[1],A[1]+3*t)]},400,"elasticOut")}},E=function(){this.incremental||this.animateTo({scale:A},400,"elasticOut")};s.on("mouseover",P).on("mouseout",E).on("emphasis",P).on("normal",E)}},f.fadeOut=function(t,e){var i=this.childAt(0);this.silent=i.silent=!0,!(e&&e.keepLabel)&&(i.style.text=null),u.updateProps(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},o.inherits(n,u.Group);var b=n;t.exports=b},function(t,e,i){function n(t,e,i,n){r.each(c,function(o){e.extend({type:t+"Axis."+o,mergeDefaultAndTheme:function(e,n){var a=this.layoutMode,s=a?l(e):{},h=n.getTheme();r.merge(e,h.get(o+"Axis")),r.merge(e,this.getDefaultOption()),e.type=i(t,e),a&&u(e,s,a)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=h.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:r.mergeAll([{},a[o+"Axis"],n],!0)})}),o.registerSubTypeDefaulter(t+"Axis",r.curry(i,t))}var r=i(0),a=i(279),o=i(16),s=i(8),l=s.getLayoutParams,u=s.mergeLayoutParam,h=i(271),c=["value","category","time","log"];t.exports=n},function(t,e,i){function n(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return r(i,t,e),i.seriesInvolved&&o(i,t),i}function r(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],l=[];m(i.getCoordinateSystems(),function(i){function u(n,u,h){var f=h.model.getModel("axisPointer",r),m=f.get("show");if(m&&("auto"!==m||n||d(f))){null==u&&(u=f.get("triggerTooltip")),f=n?a(h,g,r,e,n,u):f;var v=f.get("snap"),y=p(h.model),_=u||v||"category"===h.type,b=t.axesInfo[y]={key:y,axis:h,coordSys:i,axisPointerModel:f,triggerTooltip:u,involveSeries:_,snap:v,useHandle:d(f),seriesModels:[]};c[y]=b,t.seriesInvolved|=_;var x=s(o,h);if(null!=x){var w=l[x]||(l[x]={axesInfo:{}});w.axesInfo[y]=b,w.mapper=o[x].mapper,b.linkGroup=w}}}if(i.axisPointerEnabled){var h=p(i.model),c=t.coordSysAxesInfo[h]={};t.coordSysMap[h]=i;var f=i.model,g=f.getModel("tooltip",n);if(m(i.getAxes(),v(u,!1,null)),i.getTooltipAxes&&n&&g.get("show")){var y="axis"===g.get("trigger"),_="cross"===g.get("axisPointer.type"),b=i.getTooltipAxes(g.get("axisPointer.axis"));(y||_)&&m(b.baseAxes,v(u,!_||"cross",y)),_&&m(b.otherAxes,v(u,"cross",!1))}}})}function a(t,e,i,n,r,a){var o=e.getModel("axisPointer"),s={};m(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=f.clone(o.get(t))}),s.snap="category"!==t.type&&!!a,"cross"===o.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=o.get("label.show");if(l.show=null==u||u,!a){var h=s.lineStyle=o.get("crossStyle");h&&f.defaults(l,h.textStyle)}}return t.model.getModel("axisPointer",new g(s,i,n))}function o(t,e){e.eachSeries(function(e){var i=e.coordinateSystem,n=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);i&&"none"!==n&&n!==!1&&"item"!==n&&r!==!1&&e.get("axisPointer.show",!0)!==!1&&m(t.coordSysAxesInfo[p(i.model)],function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function s(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var a=t[r]||{};if(l(a[n+"AxisId"],i.id)||l(a[n+"AxisIndex"],i.componentIndex)||l(a[n+"AxisName"],i.name))return r}}function l(t,e){return"all"===t||f.isArray(t)&&f.indexOf(t,e)>=0||t===e}function u(t){var e=h(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,a=i.get("status"),o=i.get("value");null!=o&&(o=n.parse(o));var s=d(i);null==a&&(r.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function h(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[p(t)]}function c(t){var e=h(t);return e&&e.axisPointerModel}function d(t){return!!t.get("handle.show")}function p(t){return t.type+"||"+t.id}var f=i(0),g=i(17),m=f.each,v=f.curry;e.collect=n,e.fixValue=u,e.getAxisInfo=h,e.getAxisPointerModel=c,e.makeKey=p},function(t,e,i){function n(t){return{getTargetSeries:function(e){var i={},n=a();return e.eachSeriesByType(t,function(t){t.__paletteScope=i,n.set(t.uid,t)}),n},reset:function(t,e){var i=t.getRawData(),n={},r=t.getData();r.each(function(t){var e=r.getRawIndex(t);n[e]=t}),i.each(function(e){var a=n[e],o=null!=a&&r.getItemVisual(a,"color",!0);if(o)i.setItemVisual(e,"color",o);else{var s=i.getItemModel(e),l=s.get("itemStyle.color")||t.getColorFromPalette(i.getName(e)||e+"",t.__paletteScope,i.count());i.setItemVisual(e,"color",l),null!=a&&r.setItemVisual(a,"color",l)}})}}}var r=i(0),a=r.createHashMap;t.exports=n},function(t,e,i){function n(t,e){var i=t.get("boundingCoords");if(null!=i){var n=i[0],r=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(r[0])||isNaN(r[1])||this.setBoundingRect(n[0],n[1],r[0]-n[0],r[1]-n[1])}var a,o=this.getBoundingRect(),s=t.get("layoutCenter"),l=t.get("layoutSize"),c=e.getWidth(),d=e.getHeight(),p=t.get("aspectScale")||.75,f=o.width/o.height*p,g=!1;s&&l&&(s=[h.parsePercent(s[0],c),h.parsePercent(s[1],d)],l=h.parsePercent(l,Math.min(c,d)),isNaN(s[0])||isNaN(s[1])||isNaN(l)||(g=!0));var m;if(g){var m={};f>1?(m.width=l,m.height=l/f):(m.height=l,m.width=l*f),m.y=s[1]-m.height/2,m.x=s[0]-m.width/2}else a=t.getBoxLayoutParams(),a.aspect=f,m=u.getLayoutRect(a,{width:c,height:d});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function r(t,e){s.each(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}var a=i(7),o=(a.__DEV__,i(2)),s=i(0),l=i(522),u=i(8),h=i(4),c={dimensions:l.prototype.dimensions,create:function(t,e){var i=[];t.eachComponent("geo",function(t,a){var s=t.get("map"),u=o.getMap(s),h=new l(s+a,s,u&&u.geoJson,u&&u.specialAreas,t.get("nameMap"));h.zoomLimit=t.get("scaleLimit"),i.push(h),r(h,t),t.coordinateSystem=h,h.model=t,h.resize=n,h.resize(t,e)}),t.eachSeries(function(t){var e=t.get("coordinateSystem");if("geo"===e){var n=t.get("geoIndex")||0;t.coordinateSystem=i[n]}});var a={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();a[e]=a[e]||[],a[e].push(t)}}),s.each(a,function(t,a){var u=o.getMap(a),h=s.map(t,function(t){return t.get("nameMap")}),c=new l(a,a,u&&u.geoJson,u&&u.specialAreas,s.mergeAll(h));c.zoomLimit=s.retrieve.apply(null,s.map(t,function(t){return t.get("scaleLimit")})),i.push(c),c.resize=n,c.resize(t[0],e),s.each(t,function(t){t.coordinateSystem=c,r(c,t)})}),i},getFilledRegions:function(t,e,i){var n=(t||[]).slice();i=i||{};var r=o.getMap(e),a=r&&r.geoJson;if(!a)return t;for(var l=s.createHashMap(),u=a.features,h=0;h<n.length;h++)l.set(n[h].name,n[h]);for(var h=0;h<u.length;h++){var c=u[h].properties.name;l.get(c)||(i.hasOwnProperty(c)&&(c=i[c]),n.push({name:c}))}return n}};o.registerCoordinateSystem("geo",c); var d=c;t.exports=d},function(t,e,i){function n(t){this.pointerChecker,this._zr=t,this._opt={};var e=c.bind,i=e(r,this),n=e(a,this),u=e(o,this),h=e(s,this),p=e(l,this);d.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,r){this.disable(),this._opt=c.defaults(c.clone(r)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}),null==e&&(e=!0),e!==!0&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",n),t.on("mouseup",u)),e!==!0&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",h),t.on("pinch",p))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",n),t.off("mouseup",u),t.off("mousewheel",h),t.off("pinch",p)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function r(t){if(!(p.notLeftMouse(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function a(t){if(!p.notLeftMouse(t)&&h(this,"moveOnMouseMove",t)&&this._dragging&&"pinch"!==t.gestureEvent&&!f.isTaken(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,r=this._y,a=e-n,o=i-r;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&p.stop(t.event),this.trigger("pan",a,o,n,r,e,i)}}function o(t){p.notLeftMouse(t)||(this._dragging=!1)}function s(t){if(h(this,"zoomOnMouseWheel",t)&&0!==t.wheelDelta){var e=t.wheelDelta>0?1.1:1/1.1;u.call(this,t,e,t.offsetX,t.offsetY)}}function l(t){if(!f.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;u.call(this,t,e,t.pinchX,t.pinchY)}}function u(t,e,i,n){this.pointerChecker&&this.pointerChecker(t,i,n)&&(p.stop(t.event),this.trigger("zoom",e,i,n))}function h(t,e,i){var n=t._opt[e];return n&&(!c.isString(n)||i.event[n+"Key"])}var c=i(0),d=i(36),p=i(27),f=i(286);c.mixin(n,d);var g=n;t.exports=g},function(t,e,i){function n(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function r(t,e,i,n,r){var s=i.get("value"),l=o(s,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),u=i.getModel("label"),h=g.normalizeCssArray(u.get("padding")||0),c=u.getFont(),d=f.getBoundingRect(l,c),p=r.position,m=d.width+h[1]+h[3],v=d.height+h[0]+h[2],y=r.align;"right"===y&&(p[0]-=m),"center"===y&&(p[0]-=m/2);var _=r.verticalAlign;"bottom"===_&&(p[1]-=v),"middle"===_&&(p[1]-=v/2),a(p,m,v,n);var b=u.get("backgroundColor");b&&"auto"!==b||(b=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:m,height:v,r:u.get("borderRadius")},position:p.slice(),style:{text:l,textFont:c,textFill:u.getTextColor(),textPosition:"inside",fill:b,stroke:u.get("borderColor")||"transparent",lineWidth:u.get("borderWidth")||0,shadowBlur:u.get("shadowBlur"),shadowColor:u.get("shadowColor"),shadowOffsetX:u.get("shadowOffsetX"),shadowOffsetY:u.get("shadowOffsetY")},z2:10}}function a(t,e,i,n){var r=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,a)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function o(t,e,i,n,r){t=e.scale.parse(t);var a=e.scale.getLabel(t,{precision:r.precision}),o=r.formatter;if(o){var s={value:v.getAxisRawValue(e,t),seriesData:[]};d.each(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)}),d.isString(o)?a=o.replace("{value}",a):d.isFunction(o)&&(a=o(s))}return a}function s(t,e,i){var n=m.create();return m.rotate(n,n,i.rotation),m.translate(n,n,i.position),p.applyTransform([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function l(t,e,i,n,a,o){var l=y.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=a.get("label.margin"),r(e,n,a,o,{position:s(n.axis,t,i),align:l.textAlign,verticalAlign:l.textVerticalAlign})}function u(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function h(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function c(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}var d=i(0),p=i(3),f=i(25),g=i(11),m=i(19),v=i(23),y=i(42);e.buildElStyle=n,e.buildLabelElOption=r,e.getValueLabel=o,e.getTransformedPosition=s,e.buildCartesianSingleLabelElOption=l,e.makeLineShape=u,e.makeRectShape=h,e.makeSectorShape=c},function(t,e,i){function n(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function r(t,e,i){function n(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}var r={};return h(e,function(e){var a=r[e]=n();h(t[e],function(t,n){if(u.isValidType(n)){var r={type:n,visual:t};i&&i(r,e),a[n]=new u(r),"opacity"===n&&(r=l.clone(r),r.type="colorAlpha",a.__hidden.__alphaForOpacity=new u(r))}})}),r}function a(t,e,i){var r;l.each(i,function(t){e.hasOwnProperty(t)&&n(e[t])&&(r=!0)}),r&&l.each(i,function(i){e.hasOwnProperty(i)&&n(e[i])?t[i]=l.clone(e[i]):delete t[i]})}function o(t,e,i,n,r,a){function o(t){return i.getItemVisual(d,t)}function s(t,e){i.setItemVisual(d,t,e)}function h(t,l){d=null==a?t:l;var u=i.getRawDataItem(d);if(!u||u.visualMap!==!1)for(var h=n.call(r,t),p=e[h],f=c[h],g=0,m=f.length;g<m;g++){var v=f[g];p[v]&&p[v].applyVisual(t,o,s)}}var c={};l.each(t,function(t){var i=u.prepareVisualTypes(e[t]);c[t]=i});var d;null==a?i.each(h):i.each([a],h)}function s(t,e,i,n){function r(t,r){function o(t){return r.getItemVisual(l,t)}function s(t,e){r.setItemVisual(l,t,e)}null!=n&&(n=r.getDimension(n));for(var l;null!=(l=t.next());){var u=r.getRawDataItem(l);if(u&&u.visualMap===!1)return;for(var h=null!=n?r.get(n,l,!0):l,c=i(h),d=e[c],p=a[c],f=0,g=p.length;f<g;f++){var m=p[f];d[m]&&d[m].applyVisual(h,o,s)}}}var a={};return l.each(t,function(t){var i=u.prepareVisualTypes(e[t]);a[t]=i}),{progress:r}}var l=i(0),u=i(45),h=l.each;e.createVisualMappings=r,e.replaceVisualOption=a,e.applyVisual=o,e.incrementalApplyVisual=s},function(t,e,i){var n,r;!function(a,o){n=o,r="function"==typeof n?n.call(e,i,e,t):n,!(void 0!==r&&(t.exports=r))}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<u;e++){var i=l[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||s("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function r(){if(!h){h=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var r=n(e);o=200==Math.round(t(r.width)),a.isBoxSizeOuter=o,i.removeChild(e)}}function a(e){if(r(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var a=n(e);if("none"==a.display)return i();var s={};s.width=e.offsetWidth,s.height=e.offsetHeight;for(var h=s.isBorderBox="border-box"==a.boxSizing,c=0;c<u;c++){var d=l[c],p=a[d],f=parseFloat(p);s[d]=isNaN(f)?0:f}var g=s.paddingLeft+s.paddingRight,m=s.paddingTop+s.paddingBottom,v=s.marginLeft+s.marginRight,y=s.marginTop+s.marginBottom,_=s.borderLeftWidth+s.borderRightWidth,b=s.borderTopWidth+s.borderBottomWidth,x=h&&o,w=t(a.width);w!==!1&&(s.width=w+(x?0:g+_));var M=t(a.height);return M!==!1&&(s.height=M+(x?0:m+b)),s.innerWidth=s.width-(g+_),s.innerHeight=s.height-(m+b),s.outerWidth=s.width+v,s.outerHeight=s.height+y,s}}var o,s="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=l.length,h=!1;return a})},function(t,e,i){function n(t){return t>s||t<-s}var r=i(19),a=i(10),o=r.identity,s=5e-5,l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return n(this.rotation)||n(this.position[0])||n(this.position[1])||n(this.scale[0]-1)||n(this.scale[1]-1)},u.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;return i||e?(n=n||r.create(),i?this.getLocalTransform(n):o(n),e&&(i?r.mul(n,t.transform,n):r.copy(n,t.transform)),this.transform=n,this.invTransform=this.invTransform||r.create(),void r.invert(this.invTransform,n)):void(n&&o(n))},u.getLocalTransform=function(t){return l.getLocalTransform(this,t)},u.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},u.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var h=[];u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(r.mul(h,t.invTransform,e),e=h);var i=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],o=this.position,s=this.scale;n(i-1)&&(i=Math.sqrt(i)),n(a-1)&&(a=Math.sqrt(a)),e[0]<0&&(i=-i),e[3]<0&&(a=-a),o[0]=e[4],o[1]=e[5],s[0]=i,s[1]=a,this.rotation=Math.atan2(-e[1]/a,e[0]/i)}},u.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},u.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&a.applyTransform(i,i,n),i},u.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&a.applyTransform(i,i,n),i},l.getLocalTransform=function(t,e){e=e||[],o(e);var i=t.origin,n=t.scale||[1,1],a=t.rotation||0,s=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),r.scale(e,e,n),a&&r.rotate(e,e,a),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=s[0],e[5]+=s[1],e};var c=l;t.exports=c},function(t,e){function i(t){for(var e=0;t>=h;)e|=1&t,t>>=1;return t+e}function n(t,e,i,n){var a=e+1;if(a===i)return 1;if(n(t[a++],t[e])<0){for(;a<i&&n(t[a],t[a-1])<0;)a++;r(t,e,a)}else for(;a<i&&n(t[a],t[a-1])>=0;)a++;return a-e}function r(t,e,i){for(i--;e<i;){var n=t[e];t[e++]=t[i],t[i--]=n}}function a(t,e,i,n,r){for(n===e&&n++;n<i;n++){for(var a,o=t[n],s=e,l=n;s<l;)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function o(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])>0){for(s=n-r;l<s&&a(t,e[i+r+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;l<s&&a(t,e[i+r-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;o<l;){var h=o+(l-o>>>1);a(t,e[i+h])>0?o=h+1:l=h}return l}function s(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])<0){for(s=r+1;l<s&&a(t,e[i+r-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=n-r;l<s&&a(t,e[i+r+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;o<l;){var h=o+(l-o>>>1);a(t,e[i+h])<0?l=h:o=h+1}return l}function l(t,e){function i(t,e){h[y]=t,p[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&p[t-1]<=p[t]+p[t+1]||t>=2&&p[t-2]<=p[t]+p[t-1])p[t-1]<p[t+1]&&t--;else if(p[t]>p[t+1])break;a(t)}}function r(){for(;y>1;){var t=y-2;t>0&&p[t-1]<p[t+1]&&t--,a(t)}}function a(i){var n=h[i],r=p[i],a=h[i+1],c=p[i+1];p[i]=r+c,i===y-3&&(h[i+1]=h[i+2],p[i+1]=p[i+2]),y--;var d=s(t[a],t,n,r,0,e);n+=d,r-=d,0!==r&&(c=o(t[n+r-1],t,a,c,c-1,e),0!==c&&(r<=c?l(n,r,a,c):u(n,r,a,c)))}function l(i,n,r,a){var l=0;for(l=0;l<n;l++)_[l]=t[i+l];var u=0,h=r,d=i;if(t[d++]=t[h++],0!==--a){if(1===n){for(l=0;l<a;l++)t[d+l]=t[h+l];return void(t[d+a]=_[u])}for(var p,g,m,v=f;;){p=0,g=0,m=!1;do if(e(t[h],_[u])<0){if(t[d++]=t[h++],g++,p=0,0===--a){m=!0;break}}else if(t[d++]=_[u++],p++,g=0,1===--n){m=!0;break}while((p|g)<v);if(m)break;do{if(p=s(t[h],_,u,n,0,e),0!==p){for(l=0;l<p;l++)t[d+l]=_[u+l];if(d+=p,u+=p,n-=p,n<=1){m=!0;break}}if(t[d++]=t[h++],0===--a){m=!0;break}if(g=o(_[u],t,h,a,0,e),0!==g){for(l=0;l<g;l++)t[d+l]=t[h+l];if(d+=g,h+=g,a-=g,0===a){m=!0;break}}if(t[d++]=_[u++],1===--n){m=!0;break}v--}while(p>=c||g>=c);if(m)break;v<0&&(v=0),v+=2}if(f=v,f<1&&(f=1),1===n){for(l=0;l<a;l++)t[d+l]=t[h+l];t[d+a]=_[u]}else{if(0===n)throw new Error;for(l=0;l<n;l++)t[d+l]=_[u+l]}}else for(l=0;l<n;l++)t[d+l]=_[u+l]}function u(i,n,r,a){var l=0;for(l=0;l<a;l++)_[l]=t[r+l];var u=i+n-1,h=a-1,d=r+a-1,p=0,g=0;if(t[d--]=t[u--],0!==--n){if(1===a){for(d-=n,u-=n,g=d+1,p=u+1,l=n-1;l>=0;l--)t[g+l]=t[p+l];return void(t[d]=_[h])}for(var m=f;;){var v=0,y=0,b=!1;do if(e(_[h],t[u])<0){if(t[d--]=t[u--],v++,y=0,0===--n){b=!0;break}}else if(t[d--]=_[h--],y++,v=0,1===--a){b=!0;break}while((v|y)<m);if(b)break;do{if(v=n-s(_[h],t,i,n,n-1,e),0!==v){for(d-=v,u-=v,n-=v,g=d+1,p=u+1,l=v-1;l>=0;l--)t[g+l]=t[p+l];if(0===n){b=!0;break}}if(t[d--]=_[h--],1===--a){b=!0;break}if(y=a-o(t[u],_,0,a,a-1,e),0!==y){for(d-=y,h-=y,a-=y,g=d+1,p=h+1,l=0;l<y;l++)t[g+l]=_[p+l];if(a<=1){b=!0;break}}if(t[d--]=t[u--],0===--n){b=!0;break}m--}while(v>=c||y>=c);if(b)break;m<0&&(m=0),m+=2}if(f=m,f<1&&(f=1),1===a){for(d-=n,u-=n,g=d+1,p=u+1,l=n-1;l>=0;l--)t[g+l]=t[p+l];t[d]=_[h]}else{if(0===a)throw new Error;for(p=d-(a-1),l=0;l<a;l++)t[p+l]=_[l]}}else for(p=d-(a-1),l=0;l<a;l++)t[p+l]=_[l]}var h,p,f=c,g=0,m=d,v=0,y=0;g=t.length,g<2*d&&(m=g>>>1);var _=[];v=g<120?5:g<1542?10:g<119151?19:40,h=[],p=[],this.mergeRuns=n,this.forceMergeRuns=r,this.pushRun=i}function u(t,e,r,o){r||(r=0),o||(o=t.length);var s=o-r;if(!(s<2)){var u=0;if(s<h)return u=n(t,r,o,e),void a(t,r,o,r+u,e);var c=new l(t,e),d=i(s);do{if(u=n(t,r,o,e),u<d){var p=s;p>d&&(p=d),a(t,r,r+p,r+u,e),u=p}c.pushRun(r,u),c.mergeRuns(),s-=u,r+=u}while(0!==s);c.forceMergeRuns()}}var h=32,c=7,d=256;t.exports=u},function(t,e,i){function n(t){if("string"==typeof t){var e=l.get(t);return e&&e.image}return t}function r(t,e,i,n,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var s=l.get(t),u={hostEl:i,cb:n,cbPayload:r};return s?(e=s.image,!o(e)&&s.pending.push(u)):(!e&&(e=new Image),e.onload=a,l.put(t,e.__cachedImgObj={image:e,pending:[u]}),e.src=e.__zrImageSrc=t),e}return t}return e}function a(){var t=this.__cachedImgObj;this.onload=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function o(t){return t&&t.width&&t.height}var s=i(250),l=new s(50);e.findExistImage=n,e.createOrUpdateImage=r,e.isImageReady=o},function(t,e,i){function n(t,e,i){if(0!==t.length){var n,r=t[0],a=r[0],o=r[0],s=r[1],l=r[1];for(n=1;n<t.length;n++)r=t[n],a=h(a,r[0]),o=c(o,r[0]),s=h(s,r[1]),l=c(l,r[1]);e[0]=a,e[1]=s,i[0]=o,i[1]=l}}function r(t,e,i,n,r,a){r[0]=h(t,i),r[1]=h(e,n),a[0]=c(t,i),a[1]=c(e,n)}function a(t,e,i,n,r,a,o,s,l,d){var p,f=u.cubicExtrema,g=u.cubicAt,m=f(t,i,r,o,y);for(l[0]=1/0,l[1]=1/0,d[0]=-(1/0),d[1]=-(1/0),p=0;p<m;p++){var v=g(t,i,r,o,y[p]);l[0]=h(v,l[0]),d[0]=c(v,d[0])}for(m=f(e,n,a,s,_),p=0;p<m;p++){var b=g(e,n,a,s,_[p]);l[1]=h(b,l[1]),d[1]=c(b,d[1])}l[0]=h(t,l[0]),d[0]=c(t,d[0]),l[0]=h(o,l[0]),d[0]=c(o,d[0]),l[1]=h(e,l[1]),d[1]=c(e,d[1]),l[1]=h(s,l[1]),d[1]=c(s,d[1])}function o(t,e,i,n,r,a,o,s){var l=u.quadraticExtremum,d=u.quadraticAt,p=c(h(l(t,i,r),1),0),f=c(h(l(e,n,a),1),0),g=d(t,i,r,p),m=d(e,n,a,f);o[0]=h(t,r,g),o[1]=h(e,a,m),s[0]=c(t,r,g),s[1]=c(e,a,m)}function s(t,e,i,n,r,a,o,s,u){var h=l.min,c=l.max,y=Math.abs(r-a);if(y%f<1e-4&&y>1e-4)return s[0]=t-i,s[1]=e-n,u[0]=t+i,void(u[1]=e+n);if(g[0]=p(r)*i+t,g[1]=d(r)*n+e,m[0]=p(a)*i+t,m[1]=d(a)*n+e,h(s,g,m),c(u,g,m),r%=f,r<0&&(r+=f),a%=f,a<0&&(a+=f),r>a&&!o?a+=f:r<a&&o&&(r+=f),o){var _=a;a=r,r=_}for(var b=0;b<a;b+=Math.PI/2)b>r&&(v[0]=p(b)*i+t,v[1]=d(b)*n+e,h(s,v,s),c(u,v,u))}var l=i(10),u=i(33),h=Math.min,c=Math.max,d=Math.sin,p=Math.cos,f=2*Math.PI,g=l.create(),m=l.create(),v=l.create(),y=[],_=[];e.fromPoints=n,e.fromLine=r,e.fromCubic=a,e.fromQuadratic=o,e.fromArc=s},function(t,e,i){function n(t){o.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}var r=i(0),a=r.inherits,o=i(56),s=i(12);n.prototype.incremental=!0,n.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},n.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},n.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},n.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},n.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},n.prototype.brush=function(t,e){for(var i=this._cursor;i<this._displayables.length;i++){var n=this._displayables[i];n.beforeBrush&&n.beforeBrush(t),n.brush(t,i===this._cursor?null:this._displayables[i-1]),n.afterBrush&&n.afterBrush(t)}this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var n=this._temporaryDisplayables[i];n.beforeBrush&&n.beforeBrush(t),n.brush(t,0===i?null:this._temporaryDisplayables[i-1]),n.afterBrush&&n.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var l=[];n.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new s(1/0,1/0,(-(1/0)),(-(1/0))),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(l)),t.union(n)}this._rect=t}return this._rect},n.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();if(n.contain(i[0],i[1]))for(var r=0;r<this._displayables.length;r++){var a=this._displayables[r];if(a.contain(t,e))return!0}return!1},a(n,o);var u=n;t.exports=u},function(t,e,i){var n=i(37),r=n.retrieveRawValue,a=i(11),o=a.getTooltipMarker,s=a.formatTpl,l=/\{@(.+?)\}/g,u={getDataParams:function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),a=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"color");return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:a,dataIndex:r,data:s,dataType:e,value:n,color:l,marker:o(l),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,n,a){e=e||"normal";var o=this.getData(i),u=o.getItemModel(t),h=this.getDataParams(t,i);null!=n&&h.value instanceof Array&&(h.value=h.value[n]);var c=u.get("normal"===e?[a||"label","formatter"]:[e,a||"label","formatter"]);if("function"==typeof c)return h.status=e,c(h);if("string"==typeof c){var d=s(c,h);return d.replace(l,function(e,i){var n=i.length;return"["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),r(o,t,i)})}},getRawValue:function(t,e){return r(this.getData(e),t)},formatTooltip:function(){}};t.exports=u},function(t,e,i){function n(t){return new r(t)}function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}function a(t,e,i,n,r,a){c.reset(i,n,r,a),t._callingProgress=e,t._callingProgress({start:i,end:n,count:n-i,next:c.next},t.context)}function o(t,e){t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null;var i,n;!e&&t._reset&&(i=t._reset(t.context),i&&i.progress&&(n=i.forceFirstProgress,i=i.progress),l(i)&&!i.length&&(i=null)),t._progress=i,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),n}var s=i(0),l=(s.assert,s.isArray),u=i(7),h=(u.__DEV__,r.prototype);h.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var s;this._plan&&!n&&(s=this._plan(this.context));var u=e(this._modBy),h=this._modDataCount||0,c=e(t&&t.modBy),d=t&&t.modDataCount||0;u===c&&h===d||(s="reset");var p;(this._dirty||"reset"===s)&&(this._dirty=!1,p=o(this,n)),this._modBy=c,this._modDataCount=d;var f=t&&t.step;if(i?this._dueEnd=i._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,m=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(p||g<m)){var v=this._progress;if(l(v))for(var y=0;y<v.length;y++)a(this,v[y],g,m,c,d);else a(this,v,g,m,c,d)}this._dueIndex=m;var _=null!=this._settedOutputEnd?this._settedOutputEnd:m;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var c=function(){function t(){return n<i?n++:null}function e(){var t=n%o*r+Math.ceil(n/o),e=n>=i?null:t<a?t:n;return n++,e}var i,n,r,a,o,s={reset:function(l,u,h,c){n=l,i=u,r=h,a=c,o=Math.ceil(a/r),s.next=r>1&&a>0?e:t}};return s}();h.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},h.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},h.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},h.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},h.getUpstream=function(){return this._upstream},h.getDownstream=function(){return this._downstream},h.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e.createTask=n},function(t,e,i){function n(t,e){var i=t.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return a(t,e,i[0]);if(n){for(var r=[],o=0;o<i.length;o++){var s=a(t,e,i[o]);r.push(s)}return r.join(" ")}}var r=i(37),a=r.retrieveRawValue;e.getDefaultLabel=n},function(t,e,i){function n(t,e,i){return t.getCoordSysModel()===e}function r(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}function a(t,e,i){i.getAxesOnZeroOf=function(){return n?[n]:[]};var n,r=t[e],a=i.model,s=a.get("axisLine.onZero"),l=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)return void(o(r[l])&&(n=r[l]));for(var u in r)if(r.hasOwnProperty(u)&&o(r[u])){n=r[u];break}}}function o(t){return t&&"category"!==t.type&&"time"!==t.type&&b(t)}function s(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function l(t,e){return f(C,function(e){var i=t.getReferringComponents(e)[0];return i})}function u(t){return"cartesian2d"===t.get("coordinateSystem")}var h=i(7),c=(h.__DEV__,i(0)),d=c.isObject,p=c.each,f=c.map,g=c.indexOf,m=(c.retrieve,i(8)),v=m.getLayoutRect,y=i(23),_=y.createScaleByModel,b=y.ifAxisCrossZero,x=y.niceScaleExtent,w=y.estimateLabelUnionRect,M=i(491),S=i(493),k=i(22),D=i(31),T=D.getStackedDimension;i(494);var L=r.prototype;L.type="grid",L.axisPointerEnabled=!0,L.getRect=function(){return this._rect},L.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),p(i.x,function(t){x(t.scale,t.model)}),p(i.y,function(t){x(t.scale,t.model)}),p(i.x,function(t){a(i,"y",t)}),p(i.y,function(t){a(i,"x",t)}),this.resize(this.model,e)},L.resize=function(t,e,i){function n(){p(a,function(t){var e=t.isHorizontal(),i=e?[0,r.width]:[0,r.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),s(t,e?r.x:r.y)})}var r=v(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var a=this._axesList;n(),!i&&t.get("containLabel")&&(p(a,function(t){if(!t.model.get("axisLabel.inside")){var e=w(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get("axisLabel.margin");r[i]-=e[i]+n,"top"===t.position?r.y+=e.height+n:"left"===t.position&&(r.x+=e.width+n)}}}),n())},L.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},L.getAxes=function(){return this._axesList.slice()},L.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}d(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},L.getCartesians=function(){return this._coordsList.slice()},L.convertToPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},L.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},L._findConvertTarget=function(t,e){var i,n,r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,l=this._coordsList;if(r)i=r.coordinateSystem,g(l,i)<0&&(i=null);else if(a&&o)i=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)n=this.getAxis("x",a.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(s){var u=s.coordinateSystem;u===this&&(i=this._coordsList[0])}return{cartesian:i,axis:n}},L.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},L._initCartesian=function(t,e,i){function r(i){return function(r,l){if(n(r,t,e)){var u=r.get("position");"x"===i?"top"!==u&&"bottom"!==u&&(u="bottom",a[u]&&(u="top"===u?"bottom":"top")):"left"!==u&&"right"!==u&&(u="left",a[u]&&(u="left"===u?"right":"left")),a[u]=!0;var h=new S(i,_(r),[0,0],r.get("type"),u),c="category"===h.type;h.onBand=c&&r.get("boundaryGap"),h.inverse=r.get("inverse"),r.axis=h,h.model=r,h.grid=this,h.index=l,this._axesList.push(h),o[i][l]=h,s[i]++}}}var a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",r("x"),this),e.eachComponent("yAxis",r("y"),this),s.x&&s.y?(this._axesMap=o,void p(o.x,function(e,i){p(o.y,function(n,r){var a="x"+i+"y"+r,o=new M(a);o.grid=this,o.model=t,this._coordsMap[a]=o,this._coordsList.push(o),o.addAxis(e),o.addAxis(n)},this)},this)):(this._axesMap={},void(this._axesList=[]))},L._updateScale=function(t,e){function i(t,e,i){p(t.mapDimension(e.dim,!0),function(i){e.scale.unionExtentFromData(t,T(t,i))})}p(this._axesList,function(t){t.scale.setExtent(1/0,-(1/0))}),t.eachSeries(function(r){if(u(r)){var a=l(r,t),o=a[0],s=a[1];if(!n(o,e,t)||!n(s,e,t))return;var h=this.getCartesian(o.componentIndex,s.componentIndex),c=r.getData(),d=h.getAxis("x"),p=h.getAxis("y");"list"===c.type&&(i(c,d,r),i(c,p,r))}},this)},L.getTooltipAxes=function(t){var e=[],i=[];return p(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),a=n.getOtherAxis(r);g(e,r)<0&&e.push(r),g(i,a)<0&&i.push(a)}),{baseAxes:e,otherAxes:i}};var C=["xAxis","yAxis"];r.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,a){var o=new r(n,t,e);o.name="grid_"+a,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(e){if(u(e)){var i=l(e,t),n=i[0],r=i[1],a=n.getCoordSysModel(),o=a.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}}),i},r.dimensions=r.prototype.dimensions=M.prototype.dimensions,k.register("cartesian2d",r);var I=r;t.exports=I},function(t,e,i){var n=i(0),r={updateSelectedMap:function(t){this._targetList=n.isArray(t)?t.slice():[],this._selectTargetMap=n.reduce(t||[],function(t,e){return t.set(e.name,e),t},n.createHashMap())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t),n=this.get("selectedMode");"single"===n&&this._selectTargetMap.each(function(t){t.selected=!1}),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=i)return this[i.selected?"unSelect":"select"](t,e),i.selected},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}};t.exports=r},function(t,e){function i(t,e,i){var r=e.getComponentByElement(t.topTarget),a=r&&r.coordinateSystem;return r&&r!==i&&!n[r.mainType]&&a&&a.model!==i}var n={axisPointer:1,tooltip:1,brush:1};e.onIrrelevantElement=i},function(t,e,i){function n(t,e,i){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=a.map(e||[],function(e){return new o(e,t,t.ecModel)}),this.leavesModel=new o(i||{},t,t.ecModel)}function r(t,e){var i=e.children;t.parentNode!==e&&(i.push(t),t.parentNode=e)}var a=i(0),o=i(17),s=i(290),l=i(20),u=i(49),h=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};h.prototype={constructor:h,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,i){"function"==typeof t&&(i=e,e=t,t=null),t=t||{},a.isString(t)&&(t={order:t});var n,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(n=e.call(i,this));for(var s=0;!n&&s<o.length;s++)o[s].eachNode(t,e,i);"postorder"===r&&e.call(i,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e<n;e++){var r=i[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,i=this.children,n=i.length;e<n;e++){var r=i[e].contains(t);if(r)return r}},getAncestors:function(t){for(var e=[],i=t?this:this.parentNode;i;)e.push(i),i=i.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,i=this.hostTree,n=i.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r||0!==this.children.length&&(0===this.children.length||this.isExpand!==!1)||(e=this.getLeavesModel()),n.getModel(t,(r||e||i.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},n.prototype={constructor:n,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;i<n;i++)e[i].dataIndex=-1;for(var i=0,n=t.count();i<n;i++)e[t.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},n.createTree=function(t,e,i){function o(t,e){var i=t.value;p=Math.max(p,a.isArray(i)?i.length:1),d.push(t);var n=new h(t.name,c);e?r(n,e):c.root=n,c._nodes.push(n);var s=t.children;if(s)for(var l=0;l<s.length;l++)o(s[l],n)}var c=new n(e,i.levels,i.leaves),d=[],p=1;o(t),c.root.updateDepthAndHeight(0);var f=u(d,{coordDimensions:["value"],dimensionsCount:p}),g=new l(f,e);return g.initData(d),s({mainData:g,struct:c,structAttr:"tree"}),c.update(),c};var c=n;t.exports=c},function(t,e,i){function n(t){this._ctor=t||h, this.group=new u.Group}function r(t,e,i,n){var r=e.getItemLayout(i);if(l(r)){var a=new t._ctor(e,i,n);e.setItemGraphicEl(i,a),t.group.add(a)}}function a(t,e,i,n,r,a){var o=e.getItemGraphicEl(n);return l(i.getItemLayout(r))?(o?o.updateData(i,r,a):o=new t._ctor(i,r,a),i.setItemGraphicEl(r,o),void t.group.add(o)):void t.group.remove(o)}function o(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function s(t){return isNaN(t[0])||isNaN(t[1])}function l(t){return!s(t[0])&&!s(t[1])}var u=i(3),h=i(105),c=n.prototype;c.isPersistent=function(){return!0},c.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var s=o(t);t.diff(n).add(function(i){r(e,t,i,s)}).update(function(i,r){a(e,n,t,r,i,s)}).remove(function(t){i.remove(n.getItemGraphicEl(t))}).execute()},c.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},c.incrementalPrepareUpdate=function(t){this._seriesScope=o(t),this._lineData=null,this.group.removeAll()},c.incrementalUpdate=function(t,e){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}for(var n=t.start;n<t.end;n++){var r=e.getItemLayout(n);if(l(r)){var a=new this._ctor(e,n,this._seriesScope);a.traverse(i),this.group.add(a),e.setItemGraphicEl(n,a)}}},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var d=n;t.exports=d},function(t,e,i){function n(t){return"_"+t+"Type"}function r(t,e,i){var n=e.getItemVisual(i,"color"),r=e.getItemVisual(i,t),a=e.getItemVisual(i,t+"Size");if(r&&"none"!==r){u.isArray(a)||(a=[a,a]);var o=c.createSymbol(r,-a[0]/2,-a[1]/2,a[0],a[1],n);return o.name=t,o}}function a(t){var e=new d({name:"line"});return o(e.shape,t),e}function o(t,e){var i=e[0],n=e[1],r=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}function s(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var r=1,a=this.parent;a;)a.scale&&(r/=a.scale[0]),a=a.parent;var o=t.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),u=o.pointAt(s),c=h.sub([],u,l);if(h.normalize(c,c),e){e.attr("position",l);var d=o.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0])),e.attr("scale",[r*s,r*s])}if(i){i.attr("position",u);var d=o.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0])),i.attr("scale",[r*s,r*s])}if(!n.ignore){n.attr("position",u);var p,f,g,m=5*r;if("end"===n.__position)p=[c[0]*m+u[0],c[1]*m+u[1]],f=c[0]>.8?"left":c[0]<-.8?"right":"center",g=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var v=s/2,d=o.tangentAt(v),y=[d[1],-d[0]],_=o.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]),p=[_[0]+y[0]*m,_[1]+y[1]*m],f="center",g="bottom";var b=-Math.atan2(d[1],d[0]);u[0]<l[0]&&(b=Math.PI+b),n.attr("rotation",b)}else p=[-c[0]*m+l[0],-c[1]*m+l[1]],f=c[0]>.8?"right":c[0]<-.8?"left":"center",g=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||f},position:p,scale:[r,r]})}}}}function l(t,e,i){p.Group.call(this),this._createLine(t,e,i)}var u=i(0),h=i(10),c=i(21),d=i(550),p=i(3),f=i(4),g=f.round,m=["fromSymbol","toSymbol"],v=l.prototype;v.beforeUpdate=s,v._createLine=function(t,e,i){var o=t.hostModel,s=t.getItemLayout(e),l=a(s);l.shape.percent=0,p.initProps(l,{shape:{percent:1}},o,e),this.add(l);var h=new p.Text({name:"label"});this.add(h),u.each(m,function(i){var a=r(i,t,e);this.add(a),this[n(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},v.updateData=function(t,e,i){var a=t.hostModel,s=this.childOfName("line"),l=t.getItemLayout(e),h={shape:{}};o(h.shape,l),p.updateProps(s,h,a,e),u.each(m,function(i){var a=t.getItemVisual(e,i),o=n(i);if(this[o]!==a){this.remove(this.childOfName(i));var s=r(i,t,e);this.add(s)}this[o]=a},this),this._updateCommonStl(t,e,i)},v._updateCommonStl=function(t,e,i){var n=t.hostModel,r=this.childOfName("line"),a=i&&i.lineStyle,o=i&&i.hoverLineStyle,s=i&&i.labelModel,l=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var h=t.getItemModel(e);a=h.getModel("lineStyle").getLineStyle(),o=h.getModel("emphasis.lineStyle").getLineStyle(),s=h.getModel("label"),l=h.getModel("emphasis.label")}var c=t.getItemVisual(e,"color"),d=u.retrieve3(t.getItemVisual(e,"opacity"),a.opacity,1);r.useStyle(u.defaults({strokeNoScale:!0,fill:"none",stroke:c,opacity:d},a)),r.hoverStyle=o,u.each(m,function(t){var e=this.childOfName(t);e&&(e.setColor(c),e.setStyle({opacity:d}))},this);var f,v,y=s.getShallow("show"),_=l.getShallow("show"),b=this.childOfName("label");if((y||_)&&(f=c||"#000",v=n.getFormattedLabel(e,"normal",t.dataType),null==v)){var x=n.getRawValue(e);v=null==x?t.getName(e):isFinite(x)?g(x):x}var w=y?v:null,M=_?u.retrieve2(n.getFormattedLabel(e,"emphasis",t.dataType),v):null,S=b.style;null==w&&null==M||(p.setTextStyle(b.style,s,{text:w},{autoColor:f}),b.__textAlign=S.textAlign,b.__verticalAlign=S.textVerticalAlign,b.__position=s.get("position")||"middle"),null!=M?b.hoverStyle={text:M,textFill:l.getTextColor(!0),fontStyle:l.getShallow("fontStyle"),fontWeight:l.getShallow("fontWeight"),fontSize:l.getShallow("fontSize"),fontFamily:l.getShallow("fontFamily")}:b.hoverStyle={text:null},b.ignore=!y&&!_,p.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},v.setLinePoints=function(t){var e=this.childOfName("line");o(e.shape,t),e.dirty()},u.inherits(l,p.Group);var y=l;t.exports=y},function(t,e,i){function n(t){F.call(this),this._zr=t,this.group=new W.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+nt++,this._handlers={},$(rt,function(t,e){this._handlers[e]=N.bind(t,this)},this)}function r(t,e){var i=t._zr;t._enableGlobalPan||B.take(i,Q,t._uid),$(t._handlers,function(t,e){i.on(e,t)}),t._brushType=e.brushType,t._brushOption=N.merge(N.clone(it),e,!0)}function a(t){var e=t._zr;B.release(e,Q,t._uid),$(t._handlers,function(t,i){e.off(i,t)}),t._brushType=t._brushOption=null}function o(t,e){var i=at[e.brushType].createCover(t,e);return i.__brushOption=e,u(i,e),t.group.add(i),i}function s(t,e){var i=c(e);return i.endCreating&&(i.endCreating(t,e),u(e,e.__brushOption)),e}function l(t,e){var i=e.__brushOption;c(e).updateCoverShape(t,e,i.range,i)}function u(t,e){var i=e.z;null==i&&(i=Z),t.traverse(function(t){t.z=i,t.z2=i})}function h(t,e){c(e).updateCommon(t,e),l(t,e)}function c(t){return at[t.__brushOption.brushType]}function d(t,e,i){var n=t._panels;if(!n)return!0;var r,a=t._transform;return $(n,function(t){t.isTargetByCursor(e,i,a)&&(r=t)}),r}function p(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null==n||i[n]}function f(t){var e=t._covers,i=e.length;return $(e,function(e){t.group.remove(e)},t),e.length=0,!!i}function g(t,e){var i=G(t._covers,function(t){var e=t.__brushOption,i=N.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}});t.trigger("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function m(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],r=i[0]-n[0],a=i[1]-n[1],o=X(r*r+a*a,.5);return o>K}function v(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function y(t,e,i,n){var r=new W.Group;return r.add(new W.Rect({name:"main",style:w(i),silent:!0,draggable:!0,cursor:"move",drift:V(t,e,r,"nswe"),ondragend:V(g,e,{isEnd:!0})})),$(n,function(i){r.add(new W.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:V(t,e,r,i),ondragend:V(g,e,{isEnd:!0})}))}),r}function _(t,e,i,n){var r=n.brushStyle.lineWidth||0,a=q(r,J),o=i[0][0],s=i[1][0],l=o-r/2,u=s-r/2,h=i[0][1],c=i[1][1],d=h-a+r/2,p=c-a+r/2,f=h-o,g=c-s,m=f+r,v=g+r;x(t,e,"main",o,s,f,g),n.transformable&&(x(t,e,"w",l,u,a,v),x(t,e,"e",d,u,a,v),x(t,e,"n",l,u,m,a),x(t,e,"s",l,p,m,a),x(t,e,"nw",l,u,a,a),x(t,e,"ne",d,u,a,a),x(t,e,"sw",l,p,a,a),x(t,e,"se",d,p,a,a))}function b(t,e){var i=e.__brushOption,n=i.transformable,r=e.childAt(0);r.useStyle(w(i)),r.attr({silent:!n,cursor:n?"move":"default"}),$(["w","e","n","s","se","sw","ne","nw"],function(i){var r=e.childOfName(i),a=k(t,i);r&&r.attr({silent:!n,invisible:!n,cursor:n?et[a]+"-resize":null})})}function x(t,e,i,n,r,a,o){var s=e.childOfName(i);s&&s.setShape(I(C(t,e,[[n,r],[n+a,r+o]])))}function w(t){return N.defaults({strokeNoScale:!0},t.brushStyle)}function M(t,e,i,n){var r=[U(t,i),U(e,n)],a=[q(t,i),q(e,n)];return[[r[0],a[0]],[r[1],a[1]]]}function S(t){return W.getTransform(t.group)}function k(t,e){if(e.length>1){e=e.split("");var i=[k(t,e[0]),k(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=W.transformDirection(n[e],S(t));return r[i]}function D(t,e,i,n,r,a,o,s){var l=n.__brushOption,u=t(l.range),c=L(i,a,o);$(r.split(""),function(t){var e=tt[t];u[e[0]][e[1]]+=c[e[0]]}),l.range=e(M(u[0][0],u[1][0],u[0][1],u[1][1])),h(i,n),g(i,{isEnd:!1})}function T(t,e,i,n,r){var a=e.__brushOption.range,o=L(t,i,n);$(a,function(t){t[0]+=o[0],t[1]+=o[1]}),h(t,e),g(t,{isEnd:!1})}function L(t,e,i){var n=t.group,r=n.transformCoordToLocal(e,i),a=n.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function C(t,e,i){var n=p(t,e);return n&&n!==!0?n.clipPath(i,t._transform):N.clone(i)}function I(t){var e=U(t[0][0],t[1][0]),i=U(t[0][1],t[1][1]),n=q(t[0][0],t[1][0]),r=q(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:r-i}}function A(t,e,i){if(t._brushType){var n=t._zr,r=t._covers,a=d(t,e,i);if(!t._dragging)for(var o=0;o<r.length;o++){var s=r[o].__brushOption;if(a&&(a===!0||s.panelId===a.panelId)&&at[s.brushType].contain(r[o],i[0],i[1]))return}a&&n.setCursorStyle("crosshair")}}function P(t){var e=t.event;e.preventDefault&&e.preventDefault()}function E(t,e,i){return t.childOfName("main").contain(e,i)}function O(t,e,i,n){var r,a=t._creatingCover,u=t._creatingPanel,h=t._brushOption;if(t._track.push(i.slice()),m(t)||a){if(u&&!a){"single"===h.brushMode&&f(t);var c=N.clone(h);c.brushType=R(c.brushType,u),c.panelId=u===!0?null:u.panelId,a=t._creatingCover=o(t,c),t._covers.push(a)}if(a){var p=at[R(t._brushType,u)],g=a.__brushOption;g.range=p.getCreatingRange(C(t,a,t._track)),n&&(s(t,a),p.updateCommon(t,a)),l(t,a),r={isEnd:n}}}else n&&"single"===h.brushMode&&h.removeOnClick&&d(t,e,i)&&f(t)&&(r={isEnd:n,removeOnClick:!0});return r}function R(t,e){return"auto"===t?e.defaultBrushType:t}function H(t){if(this._dragging){P(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),i=O(this,t,e,!0);this._dragging=!1,this._track=[],this._creatingCover=null,i&&g(this,i)}}function z(t){return{createCover:function(e,i){return y(V(D,function(e){var i=[e,[0,100]];return t&&i.reverse(),i},function(e){return e[t]}),e,i,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var i=v(e),n=U(i[0][t],i[1][t]),r=q(i[0][t],i[1][t]);return[n,r]},updateCoverShape:function(e,i,n,r){var a,o=p(e,i);if(o!==!0&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,a];t&&l.reverse(),_(e,i,l,r)},updateCommon:b,contain:E}}var Y=i(7),N=(Y.__DEV__,i(0)),F=i(36),W=i(3),B=i(286),j=i(40),V=N.curry,$=N.each,G=N.map,U=Math.min,q=Math.max,X=Math.pow,Z=1e4,K=6,J=6,Q="globalPan",tt={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},et={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},it={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},nt=0;n.prototype={constructor:n,enableBrush:function(t){return this._brushType&&a(this),t.brushType&&r(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};N.each(t,function(t){e[t.panelId]=N.clone(t)})}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){$(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:a+e)+"-"+t.brushType}function i(t,i){return e(t.__brushOption,i)}function n(e,i){var n=t[e];if(null!=i&&l[i]===d)u[e]=l[i];else{var r=u[e]=null!=i?(l[i].__brushOption=n,l[i]):s(c,o(c,n));h(c,r)}}function r(t){l[t]!==d&&c.group.remove(l[t])}t=N.map(t,function(t){return N.merge(N.clone(it),t,!0)});var a="\0-brush-index-",l=this._covers,u=this._covers=[],c=this,d=this._creatingCover;return new j(l,t,i,e).add(n).update(n).remove(r).execute(),this},unmount:function(){return this.enableBrush(!1),f(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},N.mixin(n,F);var rt={mousedown:function(t){if(this._dragging)H.call(this,t);else if(!t.target||!t.target.draggable){P(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var i=this._creatingPanel=d(this,t,e);i&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(A(this,t,e),this._dragging){P(t);var i=O(this,t,e,!1);i&&g(this,i)}},mouseup:H},at={lineX:z(0),lineY:z(1),rect:{createCover:function(t,e){return y(V(D,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=v(t);return M(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,i,n){_(t,e,i,n)},updateCommon:b,contain:E},polygon:{createCover:function(t,e){var i=new W.Group;return i.add(new W.Polyline({name:"main",style:w(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new W.Polygon({name:"main",draggable:!0,drift:V(T,t,e),ondragend:V(g,t,{isEnd:!0})}))},updateCoverShape:function(t,e,i,n){e.childAt(0).setShape({points:C(t,e,i)})},updateCommon:b,contain:E}},ot=n;t.exports=ot},function(t,e,i){function n(){}function r(t,e,i,n){a(v(i).lastProp,n)||(v(i).lastProp=n,e?c.updateProps(i,n,t):(i.stopAnimation(),i.attr(n)))}function a(t,e){if(u.isObject(t)&&u.isObject(e)){var i=!0;return u.each(e,function(e,n){i=i&&a(t[n],e)}),!!i}return t===e}function o(t,e){t[e.get("label.show")?"show":"hide"]()}function s(t){return{position:t.position.slice(),rotation:t.rotation||0}}function l(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}var u=i(0),h=i(28),c=i(3),d=i(85),p=i(27),f=i(38),g=i(5),m=g.makeInner,v=m(),y=u.clone,_=u.bind;n.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==a||this._lastStatus!==o){this._lastValue=a,this._lastStatus=o;var s=this._group,h=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(h&&h.hide());s&&s.show(),h&&h.show();var d={};this.makeElOption(d,a,t,e,i);var p=d.graphicKey;p!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=p;var f=this._moveAnimation=this.determineAnimation(t,e);if(s){var g=u.curry(r,e,f);this.updatePointerEl(s,d,g,e),this.updateLabelEl(s,d,g,e)}else s=this._group=new c.Group,this.createPointerEl(s,d,t,e),this.createLabelEl(s,d,t,e),i.getZr().add(s);l(s,e,!0),this._renderHandle(a)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===i||null==i){var o=this.animationThreshold;if(r&&n.getBandWidth()>o)return!0;if(a){var s=d.getAxisInfo(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return i===!0},makeElOption:function(t,e,i,n,r){},createPointerEl:function(t,e,i,n){var r=e.pointer;if(r){var a=v(t).pointerEl=new c[r.type](y(e.pointer));t.add(a)}},createLabelEl:function(t,e,i,n){if(e.label){var r=v(t).labelEl=new c.Rect(y(e.label));t.add(r),o(r,n)}},updatePointerEl:function(t,e,i){var n=v(t).pointerEl;n&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var r=v(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{shape:e.label.shape,position:e.label.position}),o(r,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,r=e.getModel("handle"),a=e.get("status");if(!r.get("show")||!a||"hide"===a)return n&&i.remove(n),void(this._handle=null);var o;this._handle||(o=!0,n=this._handle=c.createIcon(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){p.stop(t.event)},onmousedown:_(this._onHandleDragMove,this,0,0),drift:_(this._onHandleDragMove,this),ondragend:_(this._onHandleDragEnd,this)}),i.add(n)),l(n,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];n.setStyle(r.getItemStyle(null,s));var h=r.get("size");u.isArray(h)||(h=[h,h]),n.attr("scale",[h[0]/2,h[1]/2]),f.createOrUpdate(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},_moveHandleToValue:function(t,e){r(this._axisPointerModel,!e&&this._moveAnimation,this._handle,s(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(s(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(s(n)),v(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;var e=this._handle;if(e){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}},n.prototype.constructor=n,h.enableClassExtend(n);var b=n;t.exports=b},function(t,e,i){function n(t,e,i){var n=e.get("center"),r=i.getWidth(),a=i.getHeight();t.cx=h(n[0],r),t.cy=h(n[1],a);var o=t.getRadiusAxis(),s=Math.min(r,a)/2,l=h(e.get("radius"),s);o.inverse?o.setExtent(l,0):o.setExtent(0,l)}function r(t,e){var i=this,n=i.getAngleAxis(),r=i.getRadiusAxis();if(n.scale.setExtent(1/0,-(1/0)),r.scale.setExtent(1/0,-(1/0)),t.eachSeries(function(t){if(t.coordinateSystem===i){var e=t.getData();s.each(e.mapDimension("radius",!0),function(t){r.scale.unionExtentFromData(e,m(e,t))}),s.each(e.mapDimension("angle",!0),function(t){n.scale.unionExtentFromData(e,m(e,t))})}}),p(n.scale,n.model),p(r.scale,r.model),"category"===n.type&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function a(t,e){if(t.type=e.get("type"),t.scale=d(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}var o=i(7),s=(o.__DEV__,i(0)),l=i(656),u=i(4),h=u.parsePercent,c=i(23),d=c.createScaleByModel,p=c.niceScaleExtent,f=i(22),g=i(31),m=g.getStackedDimension;i(659);var v={dimensions:l.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",function(t,o){var s=new l(o);s.update=r;var u=s.getRadiusAxis(),h=s.getAngleAxis(),c=t.findAxisModel("radiusAxis"),d=t.findAxisModel("angleAxis");a(u,c),a(h,d),n(s,t,e),i.push(s),t.coordinateSystem=s,s.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}};f.register("polar",v)},function(t,e,i){function n(t){return o.indexOf(u,t)>=0}function r(t,e){t=t.slice();var i=o.map(t,s.capitalFirst);e=(e||[]).slice();var n=o.map(e,s.capitalFirst);return function(r,a){o.each(t,function(t,o){for(var s={name:t,capital:i[o]},l=0;l<e.length;l++)s[e[l]]=t+n[l];r.call(a,s)})}}function a(t,e,i){function n(t,e){return o.indexOf(e.nodes,t)>=0}function r(t,n){var r=!1;return e(function(e){o.each(i(t,e)||[],function(t){n.records[e.name][t]&&(r=!0)})}),r}function a(t,n){n.nodes.push(t),e(function(e){o.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function o(t){!n(t,s)&&r(t,s)&&(a(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;a(i,s);var l;do l=!1,t(o);while(l);return s}}var o=i(0),s=i(11),l=["x","y","z","radius","angle","single"],u=["cartesian2d","polar","singleAxis"],h=r(l,["axisIndex","axis","index","id"]);e.isCoordSupported=n,e.createNameEach=r,e.eachAxisDim=h,e.createLinkedNodesFinder=a},function(t,e,i){function n(t){l.defaultEmphasis(t,"label",["show"])}var r=i(7),a=(r.__DEV__,i(2)),o=i(0),s=i(15),l=i(5),u=i(11),h=i(97),c=u.addCommas,d=u.encodeHTML,p=a.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},isAnimationEnabled:function(){if(s.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,i,r){var a=this.constructor,s=this.mainType+"Model";i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),l=t[s];return i&&i.data?(l?l.mergeOption(i,e,!0):(r&&n(i),o.each(i.data,function(t){t instanceof Array?(n(t[0]),n(t[1])):n(t)}),l=new a(i,this,e),o.extend(l,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),l.__hostSeries=t),void(t[s]=l)):void(t[s]=null)},this)},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=o.isArray(i)?o.map(i,c).join(", "):c(i),r=e.getName(t),a=d(this.name);return(null!=i||r)&&(a+="<br />"),r&&(a+=d(r),null!=i&&(a+=" : ")),null!=i&&(a+=d(n)),a},getData:function(){return this._data},setData:function(t){this._data=t}});o.mixin(p,h);var f=p;t.exports=f},function(t,e,i){function n(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function r(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function a(t,e,i,n,r,a){var o=[],s=g(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=c(e,l,t),h=e.indicesOfNearest(l,u)[0];o[r]=e.get(i,h),o[a]=e.get(n,h);var d=p.getPrecision(e.get(n,h));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),o}function o(t,e){var i=t.getData(),n=t.coordinateSystem;if(e&&!r(e)&&!d.isArray(e.coord)&&n){var a=n.dimensions,o=s(e,i,n,t);if(e=d.clone(e),e.type&&y[e.type]&&o.baseAxis&&o.valueAxis){var l=m(a,o.baseAxis.dim),u=m(a,o.valueAxis.dim);e.coord=y[e.type](i,o.baseDataDim,o.valueDataDim,l,u),e.value=e.coord[u]}else{for(var h=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],p=0;p<2;p++)y[h[p]]&&(h[p]=c(i,i.mapDimension(a[p]),h[p]));e.coord=h}}return e}function s(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(l(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function l(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var r=0;r<n.length;r++){var a=i.getDimensionInfo(n[r]);if(a.name===e)return a.coordDim}}function u(t,e){return!(t&&t.containData&&e.coord&&!n(e))||t.containData(e.coord)}function h(t,e,i,n){return n<2?t.coord&&t.coord[n]:t.value}function c(t,e,i){if("average"===i){var n=0,r=0;return t.each(e,function(t,e){isNaN(t)||(n+=t,r++)}),n/r}return"median"===i?t.getMedian(e):t.getDataExtent(e,!0)["max"===i?1:0]}var d=i(0),p=i(4),f=i(31),g=f.isDimensionStacked,m=d.indexOf,v=d.curry,y={min:v(a,"min"),max:v(a,"max"),average:v(a,"average")};e.dataTransform=o,e.getAxisInfo=s,e.dataFilter=u,e.dimValueGetter=h,e.numCalculate=c},function(t,e,i){var n=i(2),r=i(0),a=n.extendComponentView({type:"marker",init:function(){this.markerGroupMap=r.createHashMap()},render:function(t,e,i){var n=this.markerGroupMap;n.each(function(t){t.__keep=!1});var r=this.type+"Model";e.eachSeries(function(t){var n=t[r];n&&this.renderSeries(t,n,e,i)},this),n.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}});t.exports=a},function(t,e,i){function n(t){return S(1e4*t)/1e4}function r(t){return t<I&&t>-I}function a(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==M}function o(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==M}function s(t,e){e&&l(t,"transform","matrix("+w.call(e,",")+")")}function l(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&("string"==typeof i&&i.indexOf("NaN")>-1&&console.log(i),t.setAttribute(e,i))}function u(t,e,i){t.setAttributeNS("http://www.w3.org/1999/xlink",e,i)}function h(t,e,i){if(a(e,i)){var n=i?e.textFill:e.fill;n="transparent"===n?M:n,"none"!==t.getAttribute("clip-path")&&n===M&&(n="rgba(0, 0, 0, 0.002)"),l(t,"fill",n),l(t,"fill-opacity",e.opacity)}else l(t,"fill",M);if(o(e,i)){var r=i?e.textStroke:e.stroke;r="transparent"===r?M:r,l(t,"stroke",r);var s=i?e.textStrokeWidth:e.lineWidth,u=!i&&e.strokeNoScale?e.host.getLineScale():1;l(t,"stroke-width",s/u),l(t,"paint-order",i?"stroke":"fill"),l(t,"stroke-opacity",e.opacity);var h=e.lineDash;h?(l(t,"stroke-dasharray",e.lineDash.join(",")),l(t,"stroke-dashoffset",S(e.lineDashOffset||0))):l(t,"stroke-dasharray",""),e.lineCap&&l(t,"stroke-linecap",e.lineCap),e.lineJoin&&l(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&l(t,"stroke-miterlimit",e.miterLimit)}else l(t,"stroke",M)}function c(t){for(var e=[],i=t.data,a=t.len(),o=0;o<a;){var s=i[o++],l="",u=0;switch(s){case x.M:l="M",u=2;break;case x.L:l="L",u=2;break;case x.Q:l="Q",u=4;break;case x.C:l="C",u=6;break;case x.A:var h=i[o++],c=i[o++],d=i[o++],p=i[o++],f=i[o++],g=i[o++],m=i[o++],v=i[o++],y=Math.abs(g),_=r(y-L)&&!r(y),b=!1;b=y>=L||!r(y)&&(g>-T&&g<0||g>T)==!!v;var w=n(h+d*D(f)),M=n(c+p*k(f));_&&(g=v?L-1e-4:-L+1e-4,b=!0,9===o&&e.push("M",w,M));var I=n(h+d*D(f+g)),A=n(c+p*k(f+g));e.push("A",n(d),n(p),S(m*C),+b,+v,I,A);break;case x.Z:l="Z";break;case x.R:var I=n(i[o++]),A=n(i[o++]),P=n(i[o++]),E=n(i[o++]);e.push("M",I,A,"L",I+P,A,"L",I+P,A+E,"L",I,A+E,"L",I,A)}l&&e.push(l);for(var O=0;O<u;O++)e.push(n(i[o++]))}return e.join(" ")}function d(t){return"middle"===t?"middle":"bottom"===t?"baseline":"hanging"}var p=i(114),f=p.createElement,g=i(47),m=i(12),v=i(19),y=i(25),_=i(75),b=i(57),x=g.CMD,w=Array.prototype.join,M="none",S=Math.round,k=Math.sin,D=Math.cos,T=Math.PI,L=2*Math.PI,C=180/T,I=1e-4,A={};A.brush=function(t){var e=t.style,i=t.__svgEl;i||(i=f("path"),t.__svgEl=i),t.path||t.createPathProxy();var n=t.path;if(t.__dirtyPath){n.beginPath(),t.buildPath(n,t.shape),t.__dirtyPath=!1;var r=c(n);r.indexOf("NaN")<0&&l(i,"d",r)}h(i,e),s(i,t.transform),null!=e.text&&R(t,t.getBoundingRect())};var P={};P.brush=function(t){var e=t.style,i=e.image;if(i instanceof HTMLImageElement){var n=i.src;i=n}if(i){var r=e.x||0,a=e.y||0,o=e.width,h=e.height,c=t.__svgEl;c||(c=f("image"),t.__svgEl=c),i!==t.__imageSrc&&(u(c,"href",i),t.__imageSrc=i),l(c,"width",o),l(c,"height",h),l(c,"x",r),l(c,"y",a),s(c,t.transform),null!=e.text&&R(t,t.getBoundingRect())}};var E={},O=new m,R=function(t,e,i){var n=t.style;t.__dirty&&_.normalizeTextStyle(n,!0);var r=n.text;if(null!=r){r+="";var a=t.__textSvgEl;a||(a=f("text"),t.__textSvgEl=a);var o,u,c=n.textPosition,p=n.textDistance,g=n.textAlign||"left";"number"==typeof n.fontSize&&(n.fontSize+="px");var m=n.font||[n.fontStyle||"",n.fontWeight||"",n.fontSize||"",n.fontFamily||""].join(" ")||y.DEFAULT_FONT,x=d(n.textVerticalAlign);i=y.getBoundingRect(r,m,g,x);var w=i.lineHeight;if(c instanceof Array)o=e.x+c[0],u=e.y+c[1];else{var M=y.adjustTextPositionOnRect(c,e,p);o=M.x,u=M.y,x=d(M.textVerticalAlign),g=M.textAlign}l(a,"alignment-baseline",x),m&&(a.style.font=m);var S=n.textPadding;if(l(a,"x",o),l(a,"y",u),h(a,n,!0),t instanceof b||t.style.transformText)s(a,t.transform);else{if(t.transform)O.copy(e),O.applyTransform(t.transform),e=O;else{var k=t.transformCoordToGlobal(e.x,e.y);e.x=k[0],e.y=k[1]}var D=n.textOrigin;"center"===D?(o=i.width/2+o,u=i.height/2+u):D&&(o=D[0]+o,u=D[1]+u);var T=-n.textRotation||0,L=v.create();v.rotate(L,t.transform,T),s(a,L)}var C=r.split("\n"),I=C.length,A=g;"left"===A?(A="start",S&&(o+=S[3])):"right"===A?(A="end",S&&(o-=S[1])):"center"===A&&(A="middle",S&&(o+=(S[3]-S[1])/2));var P=0;if("baseline"===x?(P=-i.height+w,S&&(P-=S[2])):"middle"===x?(P=(-i.height+w)/2,S&&(u+=(S[0]-S[2])/2)):S&&(P+=S[0]),t.__text!==r||t.__textFont!==m){var E=t.__tspanList||[];t.__tspanList=E;for(var R=0;R<I;R++){var H=E[R];H?H.innerHTML="":(H=E[R]=f("tspan"),a.appendChild(H),l(H,"alignment-baseline",x),l(H,"text-anchor",A)),l(H,"x",o),l(H,"y",u+R*w+P),H.appendChild(document.createTextNode(C[R]))}for(;R<E.length;R++)a.removeChild(E[R]);E.length=I,t.__text=r,t.__textFont=m}else if(t.__tspanList.length)for(var z=t.__tspanList.length,R=0;R<z;++R){var H=t.__tspanList[R];H&&(l(H,"x",o),l(H,"y",u+R*w+P))}}};E.drawRectText=R,E.brush=function(t){var e=t.style;null!=e.text&&(e.textPosition=[0,0],R(t,{x:e.x||0,y:e.y||0,width:0,height:0},t.getBoundingRect()))},e.path=A,e.image=P,e.text=E},function(t,e){function i(t){return document.createElementNS(n,t)}var n="http://www.w3.org/2000/svg";e.createElement=i},function(t,e,i){function n(t,e,i,n,r){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof i?[i]:i,this._markLabel=n,this._domName=r||"_dom",this.nextId=0}var r=i(114),a=r.createElement,o=i(0),s=i(14),l=i(55),u=i(57),h=i(113),c=h.path,d=h.image,p=h.text,f="0",g="1";n.prototype.createElement=a,n.prototype.getDefs=function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?(i=e.insertBefore(this.createElement("defs"),e.firstChild),i.contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},n.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t[this._domName]&&i.contains(t[this._domName]))"function"==typeof e&&e(t);else{var n=this.add(t);n&&(t[this._domName]=n)}}},n.prototype.addDom=function(t){var e=this.getDefs(!0);e.appendChild(t)},n.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},n.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return o.each(this._tagNames,function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))}),e},n.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;o.each(t,function(t){t[e._markLabel]=f})},n.prototype.markUsed=function(t){t&&(t[this._markLabel]=g)},n.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;o.each(e,function(e){e[i._markLabel]!==g&&t.removeChild(e)})}},n.prototype.getSvgProxy=function(t){return t instanceof s?c:t instanceof l?d:t instanceof u?p:c},n.prototype.getTextSvgElement=function(t){ return t.__textSvgEl},n.prototype.getSvgElement=function(t){return t.__svgEl};var m=n;t.exports=m},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function i(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function n(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},ct))}}function r(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var i=getComputedStyle(t,null);return e?i[e]:i}function o(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function s(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(i+r+n)?t:s(o(t))}function l(t){return 11===t?gt:10===t?mt:gt||mt}function u(t){if(!t)return document.documentElement;for(var e=l(10)?document.body:null,i=t.offsetParent;i===e&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?["TD","TABLE"].indexOf(i.nodeName)!==-1&&"static"===a(i,"position")?u(i):i:t?t.ownerDocument.documentElement:document.documentElement}function h(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||u(t.firstElementChild)===t)}function c(t){return null!==t.parentNode?c(t.parentNode):t}function d(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,r=i?e:t,a=document.createRange();a.setStart(n,0),a.setEnd(r,0);var o=a.commonAncestorContainer;if(t!==o&&e!==o||n.contains(r))return h(o)?o:u(o);var s=c(t);return s.host?d(s.host,e):d(t,c(e).host)}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var r=t.ownerDocument.documentElement,a=t.ownerDocument.scrollingElement||r;return a[i]}return t[i]}function f(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=p(e,"top"),r=p(e,"left"),a=i?-1:1;return t.top+=n*a,t.bottom+=n*a,t.left+=r*a,t.right+=r*a,t}function g(t,e){var i="x"===e?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"],10)+parseFloat(t["border"+n+"Width"],10)}function m(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],l(10)?i["offset"+t]+n["margin"+("Height"===t?"Top":"Left")]+n["margin"+("Height"===t?"Bottom":"Right")]:0)}function v(){var t=document.body,e=document.documentElement,i=l(10)&&getComputedStyle(e);return{height:m("Height",t,e,i),width:m("Width",t,e,i)}}function y(t){return bt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function _(t){var e={};try{if(l(10)){e=t.getBoundingClientRect();var i=p(t,"top"),n=p(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}else e=t.getBoundingClientRect()}catch(r){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===t.nodeName?v():{},u=s.width||t.clientWidth||o.right-o.left,h=s.height||t.clientHeight||o.bottom-o.top,c=t.offsetWidth-u,d=t.offsetHeight-h;if(c||d){var f=a(t);c-=g(f,"x"),d-=g(f,"y"),o.width-=c,o.height-=d}return y(o)}function b(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=l(10),r="HTML"===e.nodeName,o=_(t),u=_(e),h=s(t),c=a(e),d=parseFloat(c.borderTopWidth,10),p=parseFloat(c.borderLeftWidth,10);i&&"HTML"===e.nodeName&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var g=y({top:o.top-u.top-d,left:o.left-u.left-p,width:o.width,height:o.height});if(g.marginTop=0,g.marginLeft=0,!n&&r){var m=parseFloat(c.marginTop,10),v=parseFloat(c.marginLeft,10);g.top-=d-m,g.bottom-=d-m,g.left-=p-v,g.right-=p-v,g.marginTop=m,g.marginLeft=v}return(n&&!i?e.contains(h):e===h&&"BODY"!==h.nodeName)&&(g=f(g,e)),g}function x(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=b(t,i),r=Math.max(i.clientWidth,window.innerWidth||0),a=Math.max(i.clientHeight,window.innerHeight||0),o=e?0:p(i),s=e?0:p(i,"left"),l={top:o-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:r,height:a};return y(l)}function w(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===a(t,"position")||w(o(t)))}function M(t){if(!t||!t.parentElement||l())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function S(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},l=r?M(t):d(t,e);if("viewport"===n)a=x(l,r);else{var u=void 0;"scrollParent"===n?(u=s(o(e)),"BODY"===u.nodeName&&(u=t.ownerDocument.documentElement)):u="window"===n?t.ownerDocument.documentElement:n;var h=b(u,l,r);if("HTML"!==u.nodeName||w(l))a=h;else{var c=v(),p=c.height,f=c.width;a.top+=h.top-h.marginTop,a.bottom=p+h.top,a.left+=h.left-h.marginLeft,a.right=f+h.left}}return a.left+=i,a.top+=i,a.right-=i,a.bottom-=i,a}function k(t){var e=t.width,i=t.height;return e*i}function D(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var o=S(i,n,a,r),s={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(s).map(function(t){return bt({key:t},s[t],{area:k(s[t])})}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight}),h=u.length>0?u[0].key:l[0].key,c=t.split("-")[1];return h+(c?"-"+c:"")}function T(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=n?M(e):d(e,i);return b(i,r,n)}function L(t){var e=getComputedStyle(t),i=parseFloat(e.marginTop)+parseFloat(e.marginBottom),n=parseFloat(e.marginLeft)+parseFloat(e.marginRight),r={width:t.offsetWidth+n,height:t.offsetHeight+i};return r}function C(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function I(t,e,i){i=i.split("-")[0];var n=L(t),r={width:n.width,height:n.height},a=["right","left"].indexOf(i)!==-1,o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",u=a?"width":"height";return r[o]=e[o]+e[l]/2-n[l]/2,i===s?r[s]=e[s]-n[u]:r[s]=e[C(s)],r}function A(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function P(t,e,i){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===i});var n=A(t,function(t){return t[e]===i});return t.indexOf(n)}function E(t,e,i){var n=void 0===i?t:t.slice(0,P(t,"name",i));return n.forEach(function(t){t["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t["function"]||t.fn;t.enabled&&r(i)&&(e.offsets.popper=y(e.offsets.popper),e.offsets.reference=y(e.offsets.reference),e=i(e,t))}),e}function O(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=T(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=D(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=I(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=E(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function R(t,e){return t.some(function(t){var i=t.name,n=t.enabled;return n&&i===e})}function H(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var r=e[n],a=r?""+r+i:t;if("undefined"!=typeof document.body.style[a])return a}return null}function z(){return this.state.isDestroyed=!0,R(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[H("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Y(t){var e=t.ownerDocument;return e?e.defaultView:window}function N(t,e,i,n){var r="BODY"===t.nodeName,a=r?t.ownerDocument.defaultView:t;a.addEventListener(e,i,{passive:!0}),r||N(s(a.parentNode),e,i,n),n.push(a)}function F(t,e,i,n){i.updateBound=n,Y(t).addEventListener("resize",i.updateBound,{passive:!0});var r=s(t);return N(r,"scroll",i.updateBound,i.scrollParents),i.scrollElement=r,i.eventsEnabled=!0,i}function W(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}function B(t,e){return Y(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function j(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=B(this.reference,this.state))}function V(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function $(t,e){Object.keys(e).forEach(function(i){var n="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&V(e[i])&&(n="px"),t.style[i]=e[i]+n})}function G(t,e){Object.keys(e).forEach(function(i){var n=e[i];n!==!1?t.setAttribute(i,e[i]):t.removeAttribute(i)})}function U(t){return $(t.instance.popper,t.styles),G(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&$(t.arrowElement,t.arrowStyles),t}function q(t,e,i,n,r){var a=T(r,e,t,i.positionFixed),o=D(i.placement,a,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",o),$(e,{position:i.positionFixed?"fixed":"absolute"}),i}function X(t,e){var i=e.x,n=e.y,r=t.offsets.popper,a=A(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==a?a:e.gpuAcceleration,s=u(t.instance.popper),l=_(s),h={position:r.position},c={left:Math.floor(r.left),top:Math.round(r.top),bottom:Math.round(r.bottom),right:Math.floor(r.right)},d="bottom"===i?"top":"bottom",p="right"===n?"left":"right",f=H("transform"),g=void 0,m=void 0;if(m="bottom"===d?-l.height+c.bottom:c.top,g="right"===p?-l.width+c.right:c.left,o&&f)h[f]="translate3d("+g+"px, "+m+"px, 0)",h[d]=0,h[p]=0,h.willChange="transform";else{var v="bottom"===d?-1:1,y="right"===p?-1:1;h[d]=m*v,h[p]=g*y,h.willChange=d+", "+p}var b={"x-placement":t.placement};return t.attributes=bt({},b,t.attributes),t.styles=bt({},h,t.styles),t.arrowStyles=bt({},t.offsets.arrow,t.arrowStyles),t}function Z(t,e,i){var n=A(t,function(t){var i=t.name;return i===e}),r=!!n&&t.some(function(t){return t.name===i&&t.enabled&&t.order<n.order});if(!r){var a="`"+e+"`",o="`"+i+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return r}function K(t,e){var i;if(!Z(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(n=t.instance.popper.querySelector(n),!n)return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,s=o.popper,l=o.reference,u=["left","right"].indexOf(r)!==-1,h=u?"height":"width",c=u?"Top":"Left",d=c.toLowerCase(),p=u?"left":"top",f=u?"bottom":"right",g=L(n)[h];l[f]-g<s[d]&&(t.offsets.popper[d]-=s[d]-(l[f]-g)),l[d]+g>s[f]&&(t.offsets.popper[d]+=l[d]+g-s[f]),t.offsets.popper=y(t.offsets.popper);var m=l[d]+l[h]/2-g/2,v=a(t.instance.popper),_=parseFloat(v["margin"+c],10),b=parseFloat(v["border"+c+"Width"],10),x=m-t.offsets.popper[d]-_-b;return x=Math.max(Math.min(s[h]-g,x),0),t.arrowElement=n,t.offsets.arrow=(i={},_t(i,d,Math.round(x)),_t(i,p,""),i),t}function J(t){return"end"===t?"start":"start"===t?"end":t}function Q(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=wt.indexOf(t),n=wt.slice(i+1).concat(wt.slice(0,i));return e?n.reverse():n}function tt(t,e){if(R(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=S(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],r=C(n),a=t.placement.split("-")[1]||"",o=[];switch(e.behavior){case Mt.FLIP:o=[n,r];break;case Mt.CLOCKWISE:o=Q(n);break;case Mt.COUNTERCLOCKWISE:o=Q(n,!0);break;default:o=e.behavior}return o.forEach(function(s,l){if(n!==s||o.length===l+1)return t;n=t.placement.split("-")[0],r=C(n);var u=t.offsets.popper,h=t.offsets.reference,c=Math.floor,d="left"===n&&c(u.right)>c(h.left)||"right"===n&&c(u.left)<c(h.right)||"top"===n&&c(u.bottom)>c(h.top)||"bottom"===n&&c(u.top)<c(h.bottom),p=c(u.left)<c(i.left),f=c(u.right)>c(i.right),g=c(u.top)<c(i.top),m=c(u.bottom)>c(i.bottom),v="left"===n&&p||"right"===n&&f||"top"===n&&g||"bottom"===n&&m,y=["top","bottom"].indexOf(n)!==-1,_=!!e.flipVariations&&(y&&"start"===a&&p||y&&"end"===a&&f||!y&&"start"===a&&g||!y&&"end"===a&&m);(d||v||_)&&(t.flipped=!0,(d||v)&&(n=o[l+1]),_&&(a=J(a)),t.placement=n+(a?"-"+a:""),t.offsets.popper=bt({},t.offsets.popper,I(t.instance.popper,t.offsets.reference,t.placement)),t=E(t.instance.modifiers,t,"flip"))}),t}function et(t){var e=t.offsets,i=e.popper,n=e.reference,r=t.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(r)!==-1,s=o?"right":"bottom",l=o?"left":"top",u=o?"width":"height";return i[s]<a(n[l])&&(t.offsets.popper[l]=a(n[l])-i[u]),i[l]>a(n[s])&&(t.offsets.popper[l]=a(n[s])),t}function it(t,e,i,n){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+r[1],o=r[2];if(!a)return t;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=i;break;case"%":case"%r":default:s=n}var l=y(s);return l[e]/100*a}if("vh"===o||"vw"===o){var u=void 0;return u="vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*a}return a}function nt(t,e,i,n){var r=[0,0],a=["right","left"].indexOf(n)!==-1,o=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=o.indexOf(A(o,function(t){return t.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=s!==-1?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return u=u.map(function(t,n){var r=(1===n?!a:a)?"height":"width",o=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&["+","-"].indexOf(e)!==-1?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)},[]).map(function(t){return it(t,r,e,i)})}),u.forEach(function(t,e){t.forEach(function(i,n){V(i)&&(r[e]+=i*("-"===t[n-1]?-1:1))})}),r}function rt(t,e){var i=e.offset,n=t.placement,r=t.offsets,a=r.popper,o=r.reference,s=n.split("-")[0],l=void 0;return l=V(+i)?[+i,0]:nt(i,a,o,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),t.popper=a,t}function at(t,e){var i=e.boundariesElement||u(t.instance.popper);t.instance.reference===i&&(i=u(i));var n=H("transform"),r=t.instance.popper.style,a=r.top,o=r.left,s=r[n];r.top="",r.left="",r[n]="";var l=S(t.instance.popper,t.instance.reference,e.padding,i,t.positionFixed);r.top=a,r.left=o,r[n]=s,e.boundaries=l;var h=e.priority,c=t.offsets.popper,d={primary:function(t){var i=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(i=Math.max(c[t],l[t])),_t({},t,i)},secondary:function(t){var i="right"===t?"left":"top",n=c[i];return c[t]>l[t]&&!e.escapeWithReference&&(n=Math.min(c[i],l[t]-("right"===t?c.width:c.height))),_t({},i,n)}};return h.forEach(function(t){var e=["left","top"].indexOf(t)!==-1?"primary":"secondary";c=bt({},c,d[e](t))}),t.offsets.popper=c,t}function ot(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var r=t.offsets,a=r.reference,o=r.popper,s=["bottom","top"].indexOf(i)!==-1,l=s?"left":"top",u=s?"width":"height",h={start:_t({},l,a[l]),end:_t({},l,a[l]+a[u]-o[u])};t.offsets.popper=bt({},o,h[n])}return t}function st(t){if(!Z(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=A(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(t.hide===!0)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(t.hide===!1)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function lt(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,r=n.popper,a=n.reference,o=["left","right"].indexOf(i)!==-1,s=["top","left"].indexOf(i)===-1;return r[o?"left":"top"]=a[i]-(s?r[o?"width":"height"]:0),t.placement=C(e),t.offsets.popper=y(r),t}for(var ut="undefined"!=typeof window&&"undefined"!=typeof document,ht=["Edge","Trident","Firefox"],ct=0,dt=0;dt<ht.length;dt+=1)if(ut&&navigator.userAgent.indexOf(ht[dt])>=0){ct=1;break}var pt=ut&&window.Promise,ft=pt?i:n,gt=ut&&!(!window.MSInputMethodContext||!document.documentMode),mt=ut&&/MSIE 10/.test(navigator.userAgent),vt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},yt=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),_t=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},bt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},xt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],wt=xt.slice(3),Mt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},St={shift:{order:100,enabled:!0,fn:ot},offset:{order:200,enabled:!0,fn:rt,offset:0},preventOverflow:{order:300,enabled:!0,fn:at,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:et},arrow:{order:500,enabled:!0,fn:K,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:tt,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:lt},hide:{order:800,enabled:!0,fn:st},computeStyle:{order:850,enabled:!0,fn:X,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:U,onLoad:q,gpuAcceleration:void 0}},kt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:St},Dt=function(){function t(e,i){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};vt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=ft(this.update.bind(this)),this.options=bt({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(bt({},t.Defaults.modifiers,a.modifiers)).forEach(function(e){n.options.modifiers[e]=bt({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return bt({name:t},n.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&r(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return yt(t,[{key:"update",value:function(){return O.call(this)}},{key:"destroy",value:function(){return z.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return j.call(this)}}]),t}();Dt.Utils=("undefined"!=typeof window?window:t).PopperUtils,Dt.placements=xt,Dt.Defaults=kt,e["default"]=Dt}.call(e,i(117))},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(n){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){var n,r;!function(a,o){n=o,r="function"==typeof n?n.call(e,i,e,t):n,!(void 0!==r&&(t.exports=r))}("undefined"!=typeof window?window:this,function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],r=0;r<i.length;r++){var a=i[r],o=n&&n[a];o&&(this.off(t,a),delete n[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})},function(t,e,i){var n=i(363),r=i(365),a=function(t){if(t instanceof a)return t;if(!(this instanceof a))return new a(t);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var e;"string"==typeof t?(e=r.getRgba(t),e?this.setValues("rgb",e):(e=r.getHsla(t))?this.setValues("hsl",e):(e=r.getHwb(t))&&this.setValues("hwb",e)):"object"==typeof t&&(e=t,void 0!==e.r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e))};a.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t%=360,t=t<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],i=0;i<t.length;i++){var n=t[i]/255;e[i]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,i=(e[0]+t)%360;return e[0]=i<0?360+i:i,this.setValues("hsl",e),this},mix:function(t,e){var i=this,n=t,r=void 0===e?.5:e,a=2*r-1,o=i.alpha()-n.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return this.rgb(s*i.red()+l*n.red(),s*i.green()+l*n.green(),s*i.blue()+l*n.blue()).alpha(i.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,i=new a,n=this.values,r=i.values;for(var o in n)n.hasOwnProperty(o)&&(t=n[o],e={}.toString.call(t),"[object Array]"===e?r[o]=t.slice(0):"[object Number]"===e?r[o]=t:console.error("unexpected color value:",t));return i}},a.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},a.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},a.prototype.getValues=function(t){for(var e=this.values,i={},n=0;n<t.length;n++)i[t.charAt(n)]=e[t][n];return 1!==e.alpha&&(i.a=e.alpha),i},a.prototype.setValues=function(t,e){var i,r=this.values,a=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)r[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(i=0;i<t.length;i++)r[t][i]=e[t.charAt(i)];s=e.a}else if(void 0!==e[a[t][0]]){var l=a[t];for(i=0;i<t.length;i++)r[t][i]=e[l[i]];s=e.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===s?r.alpha:s)),"alpha"===t)return!1;var u;for(i=0;i<t.length;i++)u=Math.max(0,Math.min(o[t][i],r[t][i])),r[t][i]=Math.round(u);for(var h in a)h!==t&&(r[h]=n[t][h](r[t]));return!0},a.prototype.setSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i),this)},a.prototype.setChannel=function(t,e,i){var n=this.values[t];return void 0===i?n[e]:i===n[e]?this:(n[e]=i,this.setValues(t,n),this)},"undefined"!=typeof window&&(window.Color=a),t.exports=a},function(t,e,i){"use strict";function n(t,e){return t["native"]?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function r(t,e){var i,n,r,a,o,s=t.data.datasets;for(n=0,a=s.length;n<a;++n)if(t.isDatasetVisible(n))for(i=t.getDatasetMeta(n),r=0,o=i.data.length;r<o;++r){var l=i.data[r];l._view.skip||e(l)}}function a(t,e){var i=[];return r(t,function(t){t.inRange(e.x,e.y)&&i.push(t)}),i}function o(t,e,i,n){var a=Number.POSITIVE_INFINITY,o=[];return r(t,function(t){if(!i||t.inRange(e.x,e.y)){var r=t.getCenterPoint(),s=n(e,r);s<a?(o=[t],a=s):s===a&&o.push(t)}}),o}function s(t){var e=t.indexOf("x")!==-1,i=t.indexOf("y")!==-1;return function(t,n){var r=e?Math.abs(t.x-n.x):0,a=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(a,2))}}function l(t,e,i){var r=n(e,t);i.axis=i.axis||"x";var l=s(i.axis),u=i.intersect?a(t,r):o(t,r,!1,l),h=[];return u.length?(t.data.datasets.forEach(function(e,i){if(t.isDatasetVisible(i)){var n=t.getDatasetMeta(i),r=n.data[u[0]._index];r&&!r._view.skip&&h.push(r)}}),h):[]}var u=i(6);t.exports={modes:{single:function(t,e){var i=n(e,t),a=[];return r(t,function(t){if(t.inRange(i.x,i.y))return a.push(t),a}),a.slice(0,1)},label:l,index:l,dataset:function(t,e,i){var r=n(e,t);i.axis=i.axis||"xy";var l=s(i.axis),u=i.intersect?a(t,r):o(t,r,!1,l);return u.length>0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!1})},point:function(t,e){var i=n(e,t);return a(t,i)},nearest:function(t,e,i){var r=n(e,t);i.axis=i.axis||"xy";var a=s(i.axis),l=o(t,r,i.intersect,a);return l.length>1&&l.sort(function(t,e){var i=t.getArea(),n=e.getArea(),r=i-n;return 0===r&&(r=t._datasetIndex-e._datasetIndex),r}),l.slice(0,1)},x:function(t,e,i){var a=n(e,t),o=[],s=!1;return r(t,function(t){t.inXRange(a.x)&&o.push(t),t.inRange(a.x,a.y)&&(s=!0)}),i.intersect&&!s&&(o=[]),o},y:function(t,e,i){var a=n(e,t),o=[],s=!1;return r(t,function(t){t.inYRange(a.y)&&o.push(t),t.inRange(a.x,a.y)&&(s=!0)}),i.intersect&&!s&&(o=[]),o}}}},function(t,e,i){"use strict";var n=i(6),r=i(371),a=i(372),o=a._enabled?a:r;t.exports=n.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},o)},function(t,e,i){"use strict";var n=i(9),r=i(6);n._set("global",{plugins:{}}),t.exports={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){e.indexOf(t)===-1&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);i!==-1&&e.splice(i,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,i){var n,r,a,o,s,l=this.descriptors(t),u=l.length;for(n=0;n<u;++n)if(r=l[n],a=r.plugin,s=a[e],"function"==typeof s&&(o=[t].concat(i||[]),o.push(r.options),s.apply(a,o)===!1))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],a=[],o=t&&t.config||{},s=o.options&&o.options.plugins||{};return this._plugins.concat(o.plugins||[]).forEach(function(t){var e=i.indexOf(t);if(e===-1){var o=t.id,l=s[o];l!==!1&&(l===!0&&(l=r.clone(n.global.plugins[o])),i.push(t),a.push({plugin:t,options:l||{}}))}}),e.descriptors=a,e.id=this._cacheId,a},_invalidate:function(t){delete t.$plugins}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"), weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(t){return function(e,i,a,o){var s=n(e),l=r[t][n(e)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,e)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=t.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,i){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return i[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}});return s})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(t){return function(e,r,a,o){var s=i(e),l=n[t][i(e)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,e)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],o=t.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,i){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}});return o})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,i){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return i[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:0,doy:6}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},i=t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var i=t%10,n=t%100-i,r=t>=100?100:null;return t+(e[i]||e[n]||e[r])},week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e){var i=t.split("_");return e%10===1&&e%100!==11?i[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?i[1]:i[2]}function i(t,i,n){var r={ss:i?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:i?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:i?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===n?i?"хвіліна":"хвіліну":"h"===n?i?"гадзіна":"гадзіну":t+" "+e(r[n],+t)}var n=t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:i,mm:i,h:i,hh:i,d:"дзень",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!==2&&t%10!==3||t%100===12||t%100===13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,i=t%100;return 0===t?t+"-ев":0===i?t+"-ен":i>10&&i<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},i={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},n=t.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e&&t>=4||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,i){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},i={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},n=t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(t,e){return 12===t&&(t=0),"མཚན་མོ"===e&&t>=4||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,i){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i){var n={mm:"munutenn",MM:"miz",dd:"devezh"};return t+" "+r(n[i],t)}function i(t){switch(n(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}function n(t){return t>9?n(t%10):t}function r(t,e){return 2===e?a(t):t}function a(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}var o=t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:i},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){var e=1===t?"añ":"vet";return t+e},week:{dow:1,doy:4}});return o})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return n+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return n+=1===t?"dan":"dana";case"MM":return n+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return n+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}var i=t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var i=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(i="a"),t+i},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t){return t>1&&t<5&&1!==~~(t/10)}function i(t,i,n,r){var a=t+" ";switch(n){case"s":return i||r?"pár sekund":"pár sekundami";case"ss":return i||r?a+(e(t)?"sekundy":"sekund"):a+"sekundami";case"m":return i?"minuta":r?"minutu":"minutou";case"mm":return i||r?a+(e(t)?"minuty":"minut"):a+"minutami";case"h":return i?"hodina":r?"hodinu":"hodinou";case"hh":return i||r?a+(e(t)?"hodiny":"hodin"):a+"hodinami";case"d":return i||r?"den":"dnem";case"dd":return i||r?a+(e(t)?"dny":"dní"):a+"dny";case"M":return i||r?"měsíc":"měsícem";case"MM":return i||r?a+(e(t)?"měsíce":"měsíců"):a+"měsíci";case"y":return i||r?"rok":"rokem";case"yy":return i||r?a+(e(t)?"roky":"let"):a+"lety"}}var n="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),r="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),a=t.defineLocale("cs",{months:n,monthsShort:r,monthsParse:function(t,e){var i,n=[];for(i=0;i<12;i++)n[i]=new RegExp("^"+t[i]+"$|^"+e[i]+"$","i");return n}(n,r),shortMonthsParse:function(t){var e,i=[];for(e=0;e<12;e++)i[e]=new RegExp("^"+t[e]+"$","i");return i}(r),longMonthsParse:function(t){var e,i=[];for(e=0;e<12;e++)i[e]=new RegExp("^"+t[e]+"$","i");return i}(n),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){var e=/сехет$/i.exec(t)?"рен":/ҫул$/i.exec(t)?"тан":"ран";return t+e},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e=t,i="",n=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return e>20?i=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(i=n[e]),t+i},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[i][0]:r[i][1]}var i=t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})},function(t,e,i){!function(t,e){ e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[i][0]:r[i][1]}var i=t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[i][0]:r[i][1]}var i=t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],i=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],n=t.defineLocale("dv",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(t){return"މފ"===t},meridiem:function(t,e,i){return t<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:7,doy:12}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}var i=t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,i){return t>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,i){var n=this._calendarEl[t],r=i&&i.hours();return e(n)&&(n=n.apply(i)),n.replace("{}",r%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,i=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,i=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,i=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,i=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,i=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,i=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?r[i][2]?r[i][2]:r[i][1]:n?r[i][0]:r[i][1]}var i=t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},i={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},n=t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(t){return/بعد از ظهر/.test(t)},meridiem:function(t,e,i){return t<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[۰-۹]/g,function(t){return i[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,n,r){var a="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":a=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":a=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":a=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":a=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":a=r?"vuoden":"vuotta"}return a=i(t,r)+" "+a}function i(t,e){return t<10?e?r[t]:n[t]:t}var n="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",n[7],n[8],n[9]],a=t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),n=t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],i=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],n=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],o=t.defineLocale("gd",{ months:e,monthsShort:i,monthsParseExact:!0,weekdays:n,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){var e=1===t?"d":t%10===2?"na":"mh";return t+e},week:{dow:1,doy:4}});return o})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){var r={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka horan","ek hor"],hh:[t+" horanim",t+" horam"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?r[i][0]:r[i][1]}var i=t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},i={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},n=t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10===0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(t){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(t)},meridiem:function(t,e,i){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?i?'לפנה"צ':"לפני הצהריים":t<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=t.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?t>=10?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return n+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return n+=1===t?"dan":"dana";case"MM":return n+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return n+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}var i=t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){var r=t;switch(i){case"s":return n||e?"néhány másodperc":"néhány másodperce";case"ss":return r+(n||e)?" másodperc":" másodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return r+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" óra":" órája");case"hh":return r+(n||e?" óra":" órája");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return r+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" hónap":" hónapja");case"MM":return r+(n||e?" hónap":" hónapja");case"y":return"egy"+(n||e?" év":" éve");case"yy":return r+(n||e?" év":" éve")}return""}function i(t){return(t?"":"[múlt] ")+"["+n[this.day()]+"] LT[-kor]"}var n="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" "),r=t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?i===!0?"de":"DE":i===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(t){return/^(ցերեկվա|երեկոյան)$/.test(t)},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t){return t%100===11||t%10!==1}function i(t,i,n,r){var a=t+" ";switch(n){case"s":return i||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return e(t)?a+(i||r?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return i?"mínúta":"mínútu";case"mm":return e(t)?a+(i||r?"mínútur":"mínútum"):i?a+"mínúta":a+"mínútu";case"hh":return e(t)?a+(i||r?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return i?"dagur":r?"dag":"degi";case"dd":return e(t)?i?a+"dagar":a+(r?"daga":"dögum"):i?a+"dagur":a+(r?"dag":"degi");case"M":return i?"mánuður":r?"mánuð":"mánuði";case"MM":return e(t)?i?a+"mánuðir":a+(r?"mánuði":"mánuðum"):i?a+"mánuður":a+(r?"mánuð":"mánuði");case"y":return i||r?"ár":"ári";case"yy":return e(t)?a+(i||r?"ár":"árum"):a+(i||r?"ár":"ári")}}var n=t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,i){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()<t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return/(წამი|წუთი|საათი|წელი)/.test(t)?t.replace(/ი$/,"ში"):t+"ში"},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20===0||t%100===0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},i=t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(t){var i=t%10,n=t>=100?100:null;return t+(e[t]||e[i]||e[n])},week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},i={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},n=t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(t){return"ល្ងាច"===t},meridiem:function(t,e,i){return t<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},i={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},n=t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\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}},meridiemParse:/오전|오후/,isPM:function(t){return"오후"===t},meridiem:function(t,e,i){return t<12?"오전":"오후"}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},i=t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(t){var i=t%10,n=t>=100?100:null;return t+(e[t]||e[i]||e[n])},week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?r[i][0]:r[i][1]}function i(t){var e=t.substr(0,t.indexOf(" "));return r(e)?"a "+t:"an "+t}function n(t){var e=t.substr(0,t.indexOf(" "));return r(e)?"viru "+t:"virun "+t}function r(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10,i=t/10;return r(0===e?i:e)}if(t<1e4){for(;t>=10;)t/=10;return r(t)}return t/=1e3,r(t)}var a=t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:i,past:n,s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(t){return"ຕອນແລງ"===t},meridiem:function(t,e,i){return t<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(t){return"ທີ່"+t}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){ "use strict";function e(t,e,i,n){return e?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"}function i(t,e,i,n){return e?r(i)[0]:n?r(i)[1]:r(i)[2]}function n(t){return t%10===0||t>10&&t<20}function r(t){return o[t].split("_")}function a(t,e,a,o){var s=t+" ";return 1===t?s+i(t,e,a[0],o):e?s+(n(t)?r(a)[1]:r(a)[0]):o?s+r(a)[1]:s+(n(t)?r(a)[1]:r(a)[2])}var o={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"},s=t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:e,ss:a,m:i,mm:a,h:i,hh:a,d:i,dd:a,M:i,MM:a,y:i,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}});return s})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i){return i?e%10===1&&e%100!==11?t[2]:t[3]:e%10===1&&e%100!==11?t[0]:t[1]}function i(t,i,n){return t+" "+e(a[n],t,i)}function n(t,i,n){return e(a[n],t,i)}function r(t,e){return e?"dažas sekundes":"dažām sekundēm"}var a={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")},o=t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:r,ss:i,m:n,mm:i,h:n,hh:i,d:n,dd:i,M:n,MM:i,y:n,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var r=e.words[n];return 1===n.length?i?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}},i=t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var t=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,i=t%100;return 0===t?t+"-ев":0===i?t+"-ен":i>10&&i<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,i){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){switch(i){case"s":return e?"хэдхэн секунд":"хэдхэн секундын";case"ss":return t+(e?" секунд":" секундын");case"m":case"mm":return t+(e?" минут":" минутын");case"h":case"hh":return t+(e?" цаг":" цагийн");case"d":case"dd":return t+(e?" өдөр":" өдрийн");case"M":case"MM":return t+(e?" сар":" сарын");case"y":case"yy":return t+(e?" жил":" жилийн");default:return t}}var i=t.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(t){return"ҮХ"===t},meridiem:function(t,e,i){return t<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" өдөр";default:return t}}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){var r="";if(e)switch(i){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(i){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,t)}var i={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return i[t]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात्री"===e?t<4?t:t+12:"सकाळी"===e?t:"दुपारी"===e?t>=10?t:t+12:"सायंकाळी"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"रात्री":t<10?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return r})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},i={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},n=t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return a})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return a})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},i={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},n=t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t){return t%10<5&&t%10>1&&~~(t/10)%10!==1}function i(t,i,n){var r=t+" ";switch(n){case"ss":return r+(e(t)?"sekundy":"sekund");case"m":return i?"minuta":"minutę";case"mm":return r+(e(t)?"minuty":"minut");case"h":return i?"godzina":"godzinę";case"hh":return r+(e(t)?"godziny":"godzin");case"MM":return r+(e(t)?"miesiące":"miesięcy");case"yy":return r+(e(t)?"lata":"lat")}}var n="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),a=t.defineLocale("pl",{months:function(t,e){return t?""===e?"("+r[t.month()]+"|"+n[t.month()]+")":/D MMMM/.test(e)?r[t.month()]:n[t.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i){var n={ss:"secunde",mm:"minute", hh:"ore",dd:"zile",MM:"luni",yy:"ani"},r=" ";return(t%100>=20||t>=100&&t%100===0)&&(r=" de "),t+r+n[i]}var i=t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e){var i=t.split("_");return e%10===1&&e%100!==11?i[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?i[1]:i[2]}function i(t,i,n){var r={ss:i?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:i?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===n?i?"минута":"минуту":t+" "+e(r[n],+t)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],r=t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:i,m:i,mm:i,h:"час",hh:i,d:"день",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}});return r})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],i=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],n=t.defineLocale("sd",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,i){return t<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,i){return t>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t){return t>1&&t<5}function i(t,i,n,r){var a=t+" ";switch(n){case"s":return i||r?"pár sekúnd":"pár sekundami";case"ss":return i||r?a+(e(t)?"sekundy":"sekúnd"):a+"sekundami";case"m":return i?"minúta":r?"minútu":"minútou";case"mm":return i||r?a+(e(t)?"minúty":"minút"):a+"minútami";case"h":return i?"hodina":r?"hodinu":"hodinou";case"hh":return i||r?a+(e(t)?"hodiny":"hodín"):a+"hodinami";case"d":return i||r?"deň":"dňom";case"dd":return i||r?a+(e(t)?"dni":"dní"):a+"dňami";case"M":return i||r?"mesiac":"mesiacom";case"MM":return i||r?a+(e(t)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return i||r?"rok":"rokom";case"yy":return i||r?a+(e(t)?"roky":"rokov"):a+"rokmi"}}var n="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),r="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),a=t.defineLocale("sk",{months:n,monthsShort:r,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){var r=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund";case"m":return e?"ena minuta":"eno minuto";case"mm":return r+=1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami";case"h":return e?"ena ura":"eno uro";case"hh":return r+=1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami";case"d":return e||n?"en dan":"enim dnem";case"dd":return r+=1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi";case"M":return e||n?"en mesec":"enim mesecem";case"MM":return r+=1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci";case"y":return e||n?"eno leto":"enim letom";case"yy":return r+=1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti"}}var i=t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var r=e.words[n];return 1===n.length?i?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}},i=t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var t=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var r=e.words[n];return 1===n.length?i?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}},i=t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var t=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"дан",dd:e.translate,M:"месец",MM:e.translate,y:"годину",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(t){var e=t%10,i=1===~~(t%100/10)?"e":1===e?"a":2===e?"a":"e";return t+i},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},i={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},n=t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(t){return t+"வது"},preparse:function(t){return t.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(t,e,i){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e?t:"நண்பகல்"===e&&t>=10?t:t+12},week:{dow:0,doy:6}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?t>=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,i=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},i=t.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){var i=t%10,n=t>=100?100:null;return t+(e[t]||e[i]||e[n])},week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(t){return"หลังเที่ยง"===t},meridiem:function(t,e,i){return t<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t){var e=t;return e=t.indexOf("jaj")!==-1?e.slice(0,-3)+"leS":t.indexOf("jar")!==-1?e.slice(0,-3)+"waQ":t.indexOf("DIS")!==-1?e.slice(0,-3)+"nem":e+" pIq"}function i(t){var e=t;return e=t.indexOf("jaj")!==-1?e.slice(0,-3)+"Hu’":t.indexOf("jar")!==-1?e.slice(0,-3)+"wen":t.indexOf("DIS")!==-1?e.slice(0,-3)+"ben":e+" ret"}function n(t,e,i,n){var a=r(t);switch(i){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}function r(t){var e=Math.floor(t%1e3/100),i=Math.floor(t%100/10),n=t%10,r="";return e>0&&(r+=a[e]+"vatlh"),i>0&&(r+=(""!==r?" ":"")+a[i]+"maH"),n>0&&(r+=(""!==r?" ":"")+a[n]),""===r?"pagh":r}var a="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"),o=t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:e,past:i,s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},i=t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t,i){ switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var n=t%10,r=t%100-n,a=t>=100?100:null;return t+(e[n]||e[r]||e[a])}},week:{dow:1,doy:7}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e,i,n){var r={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",""+t+" secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts",""+t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras",""+t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",""+t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",""+t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",""+t+" ars"]};return n?r[i][0]:e?r[i][0]:r[i][1]}var i=t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return t>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(t,e){return 12===t&&(t=0),"يېرىم كېچە"===e||"سەھەر"===e||"چۈشتىن بۇرۇن"===e?t:"چۈشتىن كېيىن"===e||"كەچ"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";function e(t,e){var i=t.split("_");return e%10===1&&e%100!==11?i[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?i[1]:i[2]}function i(t,i,n){var r={ss:i?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:i?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:i?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===n?i?"хвилина":"хвилину":"h"===n?i?"година":"годину":t+" "+e(r[n],+t)}function n(t,e){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};if(!t)return i.nominative;var n=/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative";return i[n][t.day()]}function r(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}var a=t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:n,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:i,m:i,mm:i,h:"годину",hh:i,d:"день",dd:i,M:"місяць",MM:i,y:"рік",yy:i},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}});return a})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],i=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],n=t.defineLocale("ur",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,i){return t<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}});return n})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,i=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=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:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\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:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\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:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return e})},function(t,e,i){!function(t,e){e(i(1))}(this,function(t){"use strict";var e=t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\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:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return e})},function(t,e){function i(){return n++}var n=2311;t.exports=i},function(t,e,i){var n=i(247),r=i(36),a=i(92),o=i(439),s=i(0),l=function(t){a.call(this,t),r.call(this,t),o.call(this,t),this.id=t.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,o),s.mixin(l,a),s.mixin(l,r);var u=l;t.exports=u},function(t,e,i){function n(t,e){return t[e]}function r(t,e,i){t[e]=i}function a(t,e,i){return(e-t)*i+t}function o(t,e,i){return i>.5?e:t}function s(t,e,i,n,r){var o=t.length;if(1==r)for(var s=0;s<o;s++)n[s]=a(t[s],e[s],i);else for(var l=o&&t[0].length,s=0;s<o;s++)for(var u=0;u<l;u++)n[s][u]=a(t[s][u],e[s][u],i)}function l(t,e,i){var n=t.length,r=e.length;if(n!==r){var a=n>r;if(a)t.length=r;else for(var o=n;o<r;o++)t.push(1===i?e[o]:b.call(e[o]))}for(var s=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===i)isNaN(t[o])&&(t[o]=e[o]);else for(var l=0;l<s;l++)isNaN(t[o][l])&&(t[o][l]=e[o][l])}function u(t,e,i){if(t===e)return!0;var n=t.length;if(n!==e.length)return!1;if(1===i){for(var r=0;r<n;r++)if(t[r]!==e[r])return!1}else for(var a=t[0].length,r=0;r<n;r++)for(var o=0;o<a;o++)if(t[r][o]!==e[r][o])return!1;return!0}function h(t,e,i,n,r,a,o,s,l){var u=t.length;if(1==l)for(var h=0;h<u;h++)s[h]=c(t[h],e[h],i[h],n[h],r,a,o);else for(var d=t[0].length,h=0;h<u;h++)for(var p=0;p<d;p++)s[h][p]=c(t[h][p],e[h][p],i[h][p],n[h][p],r,a,o)}function c(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function d(t){if(_(t)){var e=t.length;if(_(t[0])){for(var i=[],n=0;n<e;n++)i.push(b.call(t[n]));return i}return b.call(t)}return t}function p(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function f(t){var e=t[t.length-1].value;return _(e&&e[0])?2:1}function g(t,e,i,n,r,d){var g=t._getter,y=t._setter,b="spline"===e,x=n.length;if(x){var w,M=n[0].value,S=_(M),k=!1,D=!1,T=S?f(n):0;n.sort(function(t,e){return t.time-e.time}),w=n[x-1].time;for(var L=[],C=[],I=n[0].value,A=!0,P=0;P<x;P++){L.push(n[P].time/w);var E=n[P].value;if(S&&u(E,I,T)||!S&&E===I||(A=!1),I=E,"string"==typeof E){var O=v.parse(E);O?(E=O,k=!0):D=!0}C.push(E)}if(d||!A){for(var R=C[x-1],P=0;P<x-1;P++)S?l(C[P],R,T):!isNaN(C[P])||isNaN(R)||D||k||(C[P]=R);S&&l(g(t._target,r),R,T);var H,z,Y,N,F,W,B=0,j=0;if(k)var V=[0,0,0,0];var $=function(t,e){var i;if(e<0)i=0;else if(e<j){for(H=Math.min(B+1,x-1),i=H;i>=0&&!(L[i]<=e);i--);i=Math.min(i,x-2)}else{for(i=B;i<x&&!(L[i]>e);i++);i=Math.min(i-1,x-2)}B=i,j=e;var n=L[i+1]-L[i];if(0!==n)if(z=(e-L[i])/n,b)if(N=C[i],Y=C[0===i?i:i-1],F=C[i>x-2?x-1:i+1],W=C[i>x-3?x-1:i+2],S)h(Y,N,F,W,z,z*z,z*z*z,g(t,r),T);else{var l;if(k)l=h(Y,N,F,W,z,z*z,z*z*z,V,1),l=p(V);else{if(D)return o(N,F,z);l=c(Y,N,F,W,z,z*z,z*z*z)}y(t,r,l)}else if(S)s(C[i],C[i+1],z,g(t,r),T);else{var l;if(k)s(C[i],C[i+1],z,V,1),l=p(V);else{if(D)return o(C[i],C[i+1],z);l=a(C[i],C[i+1],z)}y(t,r,l)}},G=new m({target:t._target,life:w,loop:t._loop,delay:t._delay,onframe:$,ondestroy:i});return e&&"spline"!==e&&(G.easing=e),G}}}var m=i(440),v=i(26),y=i(0),_=y.isArrayLike,b=Array.prototype.slice,x=function(t,e,i,a){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||n,this._setter=a||r,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};x.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:d(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,i=0;i<e;i++)t[i].call(this)},start:function(t,e){var i,n=this,r=0,a=function(){r--,r||n._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=g(this,t,a,this._tracks[o],o,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),i=s)}if(i){var l=i.onframe;i.onframe=function(t,e){l(t,e);for(var i=0;i<n._onframeList.length;i++)n._onframeList[i](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this.animation,n=0;n<e.length;n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var w=x;t.exports=w},function(t,e){var i=function(){this.head=null,this.tail=null,this._len=0},n=i.prototype;n.insert=function(t){var e=new r(t);return this.insertEntry(e),e},n.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var r=function(t){this.value=t,this.next,this.prev},a=function(t){this._list=new i,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},o=a.prototype;o.put=function(t,e){var i=this._list,n=this._map,a=null;if(null==n[t]){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,i.insertEntry(s),n[t]=s}return a},o.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}};var s=a;t.exports=s},function(t,e,i){function n(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i.height+i.y,o=o*i.height+i.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=t.createLinearGradient(n,a,r,o);return s}function r(t,e,i){var n=i.width,r=i.height,a=Math.min(n,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(o=o*n+i.x,s=s*r+i.y,l*=a);var u=t.createRadialGradient(o,s,0,o,s,l);return u}var a=i(252),o=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],s=function(t,e){this.extendFrom(t,!1),this.host=e};s.prototype={constructor:s,host:null,fill:"#000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){for(var n=this,r=i&&i.style,s=!r,l=0;l<o.length;l++){var u=o[l],h=u[0];(s||n[h]!==r[h])&&(t[h]=a(t,h,n[h]||u[1]))}if((s||n.fill!==r.fill)&&(t.fillStyle=n.fill),(s||n.stroke!==r.stroke)&&(t.strokeStyle=n.stroke),(s||n.opacity!==r.opacity)&&(t.globalAlpha=null==n.opacity?1:n.opacity),(s||n.blend!==r.blend)&&(t.globalCompositeOperation=n.blend||"source-over"),this.hasStroke()){var c=n.lineWidth;t.lineWidth=c/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||e!==!0&&(e===!1?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var a="radial"===e.type?r:n,o=a(t,e,i),s=e.colorStops,l=0;l<s.length;l++)o.addColorStop(s[l].offset,s[l].color);return o}};for(var l=s.prototype,u=0;u<o.length;u++){var h=o[u];h[0]in l||(l[h[0]]=h[1])}s.getGradient=l.getGradient;var c=s;t.exports=c},function(t,e){function i(t,e,i){return n.hasOwnProperty(e)?i*=t.dpr:i}var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};t.exports=i},function(t,e){var i=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};i.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var n=i;t.exports=n},function(t,e){var i="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=i},function(t,e,i){var n=i(75),r=i(12),a=new r,o=function(){};o.prototype={constructor:o,drawRectText:function(t,e){var i=this.style;e=i.textRect||e,this.__dirty&&n.normalizeTextStyle(i,!0);var r=i.text;if(null!=r&&(r+=""),n.needDrawText(r,i)){t.save();var o=this.transform;i.transformText?this.setTransform(t):o&&(a.copy(e),a.applyTransform(o),e=a),n.renderText(this,t,r,i,e),t.restore()}}};var s=o;t.exports=s},function(t,e){function i(t,e){var i,n,r,a,o=e.x,s=e.y,l=e.width,u=e.height,h=e.r;l<0&&(o+=l,l=-l),u<0&&(s+=u,u=-u),"number"==typeof h?i=n=r=a=h:h instanceof Array?1===h.length?i=n=r=a=h[0]:2===h.length?(i=r=h[0],n=a=h[1]):3===h.length?(i=h[0],n=a=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],a=h[3]):i=n=r=a=0;var c;i+n>l&&(c=i+n,i*=l/c,n*=l/c),r+a>l&&(c=r+a,r*=l/c,a*=l/c),n+r>u&&(c=n+r,n*=u/c,r*=u/c),i+a>u&&(c=i+a,i*=u/c,a*=u/c),t.moveTo(o+i,s),t.lineTo(o+l-n,s),0!==n&&t.arc(o+l-n,s+n,n,-Math.PI/2,0),t.lineTo(o+l,s+u-r),0!==r&&t.arc(o+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(o+a,s+u),0!==a&&t.arc(o+a,s+u-a,a,Math.PI/2,Math.PI),t.lineTo(o,s+i),0!==i&&t.arc(o+i,s+i,i,Math.PI,1.5*Math.PI)}e.buildPath=i},function(t,e,i){function n(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}function r(t,e){var i=t.color&&!t.colorLayer;p(e,function(e,n){"colorLayer"===n&&i||L.hasClass(n)||("object"==typeof e?t[n]=t[n]?M(t[n],e,!1):w(e):null==t[n]&&(t[n]=e))})}function a(t){t=t,this.option={},this.option[E]=1,this._componentsMap=b({series:[]}),this._seriesIndices,this._seriesIndicesMap,r(t,this._theme.option),M(t,C,!1),this.mergeOption(t)}function o(t,e){m(e)||(e=e?[e]:[]);var i={};return p(e,function(e){i[e]=(t.get(e)||[]).slice()}),i}function s(t,e,i){var n=e.type?e.type:i?i.subType:L.determineSubType(t,e);return n}function l(t,e){t._seriesIndicesMap=b(t._seriesIndices=g(e,function(t){return t.componentIndex})||[])}function u(t,e){return e.hasOwnProperty("subType")?f(t,function(t){return t.subType===e.subType}):t}function h(t){}var c=i(7),d=(c.__DEV__,i(0)),p=d.each,f=d.filter,g=d.map,m=d.isArray,v=d.indexOf,y=d.isObject,_=d.isString,b=d.createHashMap,x=d.assert,w=d.clone,M=d.merge,S=d.extend,k=d.mixin,D=i(5),T=i(17),L=i(16),C=i(470),I=i(265),A=i(78),P=A.resetSourceDefaulter,E="\0_ec_inner",O=T.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new T(i),this._optionManager=n},setOption:function(t,e){x(!(E in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(), this.mergeOption(n)):a.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=i.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o.length&&p(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,r){var a=D.normalizeToArray(t[e]),u=D.mappingToExists(n.get(e),a);D.makeIdAndName(u),p(u,function(t,i){var n=t.option;y(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=s(e,n,t.exist))});var h=o(n,r);i[e]=[],n.set(e,[]),p(u,function(t,r){var a=t.exist,o=t.option;if(x(y(o)||a,"Empty component definition"),o){var s=L.getClass(e,t.keyInfo.subType,!0);if(a&&a instanceof s)a.name=t.keyInfo.name,a.mergeOption(o,this),a.optionUpdated(o,!1);else{var l=S({dependentModels:h,componentIndex:r},t.keyInfo);a=new s(o,this,this,l),S(a,l),a.init(o,this,this,l),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);n.get(e)[r]=a,i[e][r]=a.option},this),"series"===e&&l(this,n.get("series"))}var i=this.option,n=this._componentsMap,r=[];P(this),p(t,function(t,e){null!=t&&(L.hasClass(e)?e&&r.push(e):i[e]=null==i[e]?w(t):M(i[e],t,!0))}),L.topologicalTravel(r,L.getAllClassMainTypes(),e,this),this._seriesIndicesMap=b(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=w(this.option);return p(t,function(e,i){if(L.hasClass(i)){for(var e=D.normalizeToArray(e),n=e.length-1;n>=0;n--)D.isIdInner(e[n])&&e.splice(n,1);t[i]=e}}),delete t[E],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsMap.get(e);if(!a||!a.length)return[];var o;if(null!=i)m(i)||(i=[i]),o=f(g(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var s=m(n);o=f(a,function(t){return s&&v(n,t.id)>=0||!s&&t.id===n})}else if(null!=r){var l=m(r);o=f(a,function(t){return l&&v(r,t.name)>=0||!l&&t.name===r})}else o=a.slice();return u(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return!t||null==t[e]&&null==t[i]&&null==t[n]?null:{mainType:r,index:t[e],id:t[i],name:t[n]}}function i(e){return t.filter?f(e,t.filter):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap.get(r);return i(u(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,n.each(function(t,n){p(t,function(t,r){e.call(i,n,t,r)})});else if(_(t))p(n.get(t),e,i);else if(y(t)){var r=this.findComponents(t);p(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return f(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return f(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){h(this),p(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){p(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){h(this),p(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return p(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return h(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){h(this);var i=f(this._componentsMap.get("series"),t,e);l(this,i)},restoreData:function(t){var e=this._componentsMap;l(this,e.get("series"));var i=[];e.each(function(t,e){i.push(e)}),L.topologicalTravel(i,L.getAllClassMainTypes(),function(i,r){p(e.get(i),function(e){("series"!==i||!n(e,t))&&e.restoreData()})})}});k(O,I);var R=O;t.exports=R},function(t,e){function i(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>i+s||a<t-s&&a<i-s)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var h=l*a-o+u,c=h*h/(l*l+1);return c<=s/2*s/2}e.containStroke=i},function(t,e,i){function n(t,e,i,n,r,o,s,l,u){if(0===s)return!1;var h=s;if(u>e+h&&u>n+h&&u>o+h||u<e-h&&u<n-h&&u<o-h||l>t+h&&l>i+h&&l>r+h||l<t-h&&l<i-h&&l<r-h)return!1;var c=a(t,e,i,n,r,o,l,u,null);return c<=h/2}var r=i(33),a=r.quadraticProjectPoint;e.containStroke=n},function(t,e){function i(t){return t%=n,t<0&&(t+=n),t}var n=2*Math.PI;e.normalizeRadian=i},function(t,e){function i(t,e,i,n,r,a){if(a>e&&a>n||a<e&&a<n)return 0;if(n===e)return 0;var o=n<e?1:-1,s=(a-e)/(n-e);1!==s&&0!==s||(o=n<e?.5:-.5);var l=s*(i-t)+t;return l===r?1/0:l>r?o:0}t.exports=i},function(t,e,i){function n(t){return r.browser.ie&&r.browser.version>=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var r=0;r<i.length;r++){var o=i[r],s=o&&o.shape,l=o&&o.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var u=0;u<a.length;u++)a[u][2]=n[a[u][0]],n[a[u][0]]=a[u][1];e=!0;break}}if(t.apply(this,arguments),e)for(var u=0;u<a.length;u++)n[a[u][0]]=a[u][2]}:t}var r=i(15),a=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];t.exports=n},function(t,e,i){function n(t,e,i){var n=e.points,o=e.smooth;if(n&&n.length>=2){if(o&&"spline"!==o){var s=a(n,o,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var l=n.length,u=0;u<(i?l:l-1);u++){var h=s[2*u],c=s[2*u+1],d=n[(u+1)%l];t.bezierCurveTo(h[0],h[1],c[0],c[1],d[0],d[1])}}else{"spline"===o&&(n=r(n,i)),t.moveTo(n[0][0],n[0][1]);for(var u=1,p=n.length;u<p;u++)t.lineTo(n[u][0],n[u][1])}i&&t.closePath()}}var r=i(459),a=i(460);e.buildPath=n},function(t,e,i){var n=i(0),r=i(76),a=function(t,e,i,n,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,r.call(this,a)};a.prototype={constructor:a},n.inherits(a,r);var o=a;t.exports=o},function(t,e,i){function n(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}var r=i(5),a=r.makeInner,o=r.normalizeToArray,s=a(),l={clearColorPalette:function(){s(this).colorIdx=0,s(this).colorNameMap={}},getColorFromPalette:function(t,e,i){e=e||this;var r=s(e),a=r.colorIdx||0,l=r.colorNameMap=r.colorNameMap||{};if(l.hasOwnProperty(t))return l[t];var u=o(this.get("color",!0)),h=this.get("colorLayer",!0),c=null!=i&&h?n(h,i):u;if(c=c||u,c&&c.length){var d=c[a];return t&&(l[t]=d),r.colorIdx=(a+1)%c.length,d}}};t.exports=l},function(t,e,i){function n(t){var e=t.get("coordinateSystem"),i={coordSysName:e,coordSysDims:[],axisMap:s(),categoryAxisMap:s()},n=u[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}function r(t){return"category"===t.get("type")}var a=i(7),o=(a.__DEV__,i(0)),s=o.createHashMap,l=(o.retrieve,o.each),u={cartesian2d:function(t,e,i,n){var a=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",a),i.set("y",o),r(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),r(o)&&(n.set("y",o),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){var a=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",a),r(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var a=t.getReferringComponents("polar")[0],o=a.findAxisModel("radiusAxis"),s=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",s),r(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),r(s)&&(n.set("angle",s),e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var a=t.ecModel,o=a.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=o.dimensions.slice();l(o.parallelAxisIndex,function(t,o){var l=a.getComponent("parallelAxis",t),u=s[o];i.set(u,l),r(l)&&null==e.firstCategoryDimIndex&&(n.set(u,l),e.firstCategoryDimIndex=o)})}};e.getCoordSysDefineBySeries=n},function(t,e,i){function n(t){r.each(a,function(e){this[e]=r.bind(t[e],t)},this)}var r=i(0),a=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],o=n;t.exports=o},function(t,e,i){var n=i(16),r=i(79),a=i(78),o=a.detectSourceFormat,s=i(59),l=s.SERIES_LAYOUT_BY_COLUMN;n.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),r.extend({type:"dataset"})},function(t,e,i){var n=i(72);e.zrender=n;var r=i(19);e.matrix=r;var a=i(10);e.vector=a;var o=i(0),s=i(26);e.color=s;var l=i(3);e.graphic=l;var u=i(4);e.number=u;var h=i(11);e.format=h;var c=i(38);c.throttle;e.throttle=c.throttle;var d=i(481);e.helper=d;var p=i(273);e.parseGeoJSON=p;var f=i(20);e.List=f;var g=i(17);e.Model=g;var m=i(34);e.Axis=m;var v=i(15);e.env=v;var y=p,_={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){_[t]=o[t]}),e.parseGeoJson=y,e.util=_},function(t,e,i){function n(t,e,i){function n(t,e,i){null!=b.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,_.set(e,!0))}y.isInstance(e)||(e=y.seriesDataToSource(e)),i=i||{},t=(t||[]).slice();for(var o=(i.dimsDef||[]).slice(),f=s(i.encodeDef),m=s(),_=s(),x=[],w=r(e,t,o,i.dimCount),M=0;M<w;M++){var S=o[M]=c({},d(o[M])?o[M]:{name:o[M]}),k=S.name,D=x[M]={otherDims:{}};null!=k&&null==m.get(k)&&(D.name=D.displayName=k,m.set(k,M)),null!=S.type&&(D.type=S.type),null!=S.displayName&&(D.displayName=S.displayName)}f.each(function(t,e){t=g(t).slice();var i=f.set(e,[]);l(t,function(t,r){u(t)&&(t=m.get(t)),null!=t&&t<w&&(i[r]=t,n(x[t],e,r))})});var T=0;l(t,function(t,e){var i,t,r,a;if(u(t))i=t,t={};else{i=t.name;var o=t.ordinalMeta;t.ordinalMeta=null,t=p(t),t.ordinalMeta=o,r=t.dimsDef,a=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var s=g(f.get(i));if(!s.length)for(var c=0;c<(r&&r.length||1);c++){for(;T<x.length&&null!=x[T].coordDim;)T++;T<x.length&&s.push(T++)}l(s,function(e,o){var s=x[e];if(n(h(s,t),i,o),null==s.name&&r){var l=r[o];!d(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}a&&h(s.otherDims,a)})});var L=i.generateCoord,C=i.generateCoordCount,I=null!=C;C=L?C||1:0;for(var A=L||"value",P=0;P<w;P++){var D=x[P]=x[P]||{},E=D.coordDim;null==E&&(D.coordDim=a(A,_,I),D.coordDimIndex=0,(!L||C<=0)&&(D.isExtraCoord=!0),C--),null==D.name&&(D.name=a(D.coordDim,m)),null==D.type&&v(e,P,D.name)&&(D.type="ordinal")}return x}function r(t,e,i,n){var r=Math.max(t.dimensionsDetectCount||1,e.length,i.length,n||0);return l(e,function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))}),r}function a(t,e,i){if(i||null!=e.get(t)){for(var n=0;null!=e.get(t+n);)n++;t+=n}return e.set(t,!0),t}var o=i(0),s=o.createHashMap,l=o.each,u=o.isString,h=o.defaults,c=o.extend,d=o.isObject,p=o.clone,f=i(5),g=f.normalizeToArray,m=i(78),v=m.guessOrdinal,y=i(58),_=i(60),b=_.OTHER_DIMENSIONS,x=n;t.exports=x},function(t,e,i){function n(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}function r(t){return t._map||(t._map=s(t.categories))}function a(t){return l(t)&&null!=t.value?t.value:t+""}var o=i(0),s=o.createHashMap,l=o.isObject,u=o.map;n.createByAxisModel=function(t){var e=t.option,i=e.data,r=i&&u(i,a);return new n({categories:r,needCollect:!r,deduplication:e.dedplication!==!1})};var h=n.prototype;h.getOrdinal=function(t){return r(this).get(t)},h.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=r(this);return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e};var c=n;t.exports=c},function(t,e,i){function n(t,e,i,n){var a={},s=t[1]-t[0],h=a.interval=l.nice(s/e,!0);null!=i&&h<i&&(h=a.interval=i),null!=n&&h>n&&(h=a.interval=n);var c=a.intervalPrecision=r(h),d=a.niceTickExtent=[u(Math.ceil(t[0]/h)*h,c),u(Math.floor(t[1]/h)*h,c)];return o(d,t),a}function r(t){return l.getPrecisionSafe(t)+2}function a(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function o(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),a(t,0,e),a(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function s(t,e,i,n){var r=[];if(!t)return r;var a=1e4;e[0]<i[0]&&r.push(e[0]);for(var o=i[0];o<=i[1]&&(r.push(o),o=u(o+t,n),o!==r[r.length-1]);)if(r.length>a)return[];return e[1]>(r.length?r[r.length-1]:i[1])&&r.push(e[1]),r}var l=i(4),u=l.round;e.intervalScaleNiceTicks=n,e.getIntervalPrecision=r,e.fixExtent=o,e.intervalScaleGetTicks=s},function(t,e,i){function n(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n<i.length;n++)for(var a=i[n],o=a.geometry,s=o.coordinates,l=o.encodeOffsets,u=0;u<s.length;u++){var h=s[u];if("Polygon"===o.type)s[u]=r(h,l[u],e);else if("MultiPolygon"===o.type)for(var c=0;c<h.length;c++){var d=h[c];h[c]=r(d,l[u][c],e)}}return t.UTF8Encoding=!1,t}function r(t,e,i){for(var n=[],r=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,n.push([s/i,l/i])}return n}function a(t){return n(t),o.map(o.filter(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var e=t.properties,i=t.geometry,n=i.coordinates,r=[];"Polygon"===i.type&&r.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===i.type&&o.each(n,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var a=new s(e.name,r,e.cp);return a.properties=e,a})}var o=i(0),s=i(274);t.exports=a},function(t,e,i){function n(t,e,i){if(this.name=t,this.geometries=e,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}var r=i(12),a=i(95),o=i(10),s=i(275);n.prototype={constructor:n,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],n=[-e,-e],s=[],l=[],u=this.geometries,h=0;h<u.length;h++)if("polygon"===u[h].type){var c=u[h].exterior;a.fromPoints(c,s,l),o.min(i,i,s),o.max(n,n,l)}return 0===h&&(i[0]=i[1]=n[0]=n[1]=0),this._rect=new r(i[0],i[1],n[0]-i[0],n[1]-i[1])},contain:function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;n<r;n++)if("polygon"===i[n].type){var a=i[n].exterior,o=i[n].interiors;if(s.contain(a,t[0],t[1])){for(var l=0;l<(o?o.length:0);l++)if(s.contain(o[l]))continue t;return!0}}return!1},transformTo:function(t,e,i,n){var a=this.getBoundingRect(),s=a.width/a.height;i?n||(n=i/s):i=s*n;for(var l=new r(t,e,i,n),u=a.calculateTransform(l),h=this.geometries,c=0;c<h.length;c++)if("polygon"===h[c].type){for(var d=h[c].exterior,p=h[c].interiors,f=0;f<d.length;f++)o.applyTransform(d[f],d[f],u);for(var g=0;g<(p?p.length:0);g++)for(var f=0;f<p[g].length;f++)o.applyTransform(p[g][f],p[g][f],u)}a=this._rect,a.copy(l),this.center=[a.x+a.width/2,a.y+a.height/2]}};var l=n;t.exports=l},function(t,e,i){function n(t,e){return Math.abs(t-e)<o}function r(t,e,i){var r=0,o=t[0];if(!o)return!1;for(var s=1;s<t.length;s++){var l=t[s];r+=a(o[0],o[1],l[0],l[1],e,i),o=l}var u=t[0];return n(o[0],u[0])&&n(o[1],u[1])||(r+=a(o[0],o[1],u[0],u[1],e,i)),0!==r}var a=i(261),o=1e-8;e.contain=r},function(t,e,i){function n(t,e,i){var n,a=t.getBaseAxis(),o=t.getOtherAxis(a),l=r(o,i),h=a.dim,c=o.dim,d=e.mapDimension(c),p=e.mapDimension(h),f="x"===c||"radius"===c?1:0,g=u(t.dimensions,function(t){return e.mapDimension(t)}),m=e.getCalculationInfo("stackResultDimension");return(n|=s(e,g[0]))&&(g[0]=m),(n|=s(e,g[1]))&&(g[1]=m),{dataDimsForPoint:g,valueStart:l,valueAxisDim:c,baseAxisDim:h,stacked:!!n,valueDim:d,baseDim:p,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function r(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function a(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=i.get(t.baseDim,n),o[1-a]=r,e.dataToPoint(o)}var o=i(31),s=o.isDimensionStacked,l=i(0),u=l.map;e.prepareDataCoordInfo=n,e.getStackedOnPoint=a},function(t,e,i){function n(t){return isNaN(t[0])||isNaN(t[1])}function r(t,e,i,n,r,s,l,u,h,c,d){return"none"!==c&&c?a.apply(this,arguments):o.apply(this,arguments)}function a(t,e,i,r,a,o,s,l,u,h,c){for(var d=0,p=i,g=0;g<r;g++){var y=e[p];if(p>=a||p<0)break;if(n(y)){if(c){p+=o;continue}break}if(p===i)t[o>0?"moveTo":"lineTo"](y[0],y[1]);else if(u>0){var _=e[d],b="y"===h?1:0,x=(y[b]-_[b])*u;f(m,_),m[b]=_[b]+x,f(v,y),v[b]=y[b]-x,t.bezierCurveTo(m[0],m[1],v[0],v[1],y[0],y[1])}else t.lineTo(y[0],y[1]);d=p,p+=o}return g}function o(t,e,i,r,a,o,s,l,h,y,_){for(var b=0,x=i,w=0;w<r;w++){var M=e[x];if(x>=a||x<0)break;if(n(M)){if(_){x+=o;continue}break}if(x===i)t[o>0?"moveTo":"lineTo"](M[0],M[1]),f(m,M);else if(h>0){var S=x+o,k=e[S];if(_)for(;k&&n(e[S]);)S+=o,k=e[S];var D=.5,T=e[b],k=e[S];if(!k||n(k))f(v,M);else{n(k)&&!_&&(k=M),u.sub(g,k,T);var L,C;if("x"===y||"y"===y){var I="x"===y?0:1;L=Math.abs(M[I]-T[I]),C=Math.abs(M[I]-k[I])}else L=u.dist(M,T),C=u.dist(M,k);D=C/(C+L),p(v,M,g,-h*(1-D))}c(m,m,l),d(m,m,s),c(v,v,l),d(v,v,s),t.bezierCurveTo(m[0],m[1],v[0],v[1],M[0],M[1]),p(m,M,g,h*D)}else t.lineTo(M[0],M[1]);b=x,x+=o}return w}function s(t,e){var i=[1/0,1/0],n=[-(1/0),-(1/0)];if(e)for(var r=0;r<t.length;r++){var a=t[r];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[0]>n[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var l=i(14),u=i(10),h=i(262),c=u.min,d=u.max,p=u.scaleAndAdd,f=u.copy,g=[],m=[],v=[],y=l.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:h(l.prototype.brush),buildPath:function(t,e){var i=e.points,a=0,o=i.length,l=s(i,e.smoothConstraint);if(e.connectNulls){for(;o>0&&n(i[o-1]);o--);for(;a<o&&n(i[a]);a++);}for(;a<o;)a+=r(t,i,a,o,o,1,l.min,l.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),_=l.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:h(l.prototype.brush),buildPath:function(t,e){var i=e.points,a=e.stackedOnPoints,o=0,l=i.length,u=e.smoothMonotone,h=s(i,e.smoothConstraint),c=s(a,e.smoothConstraint);if(e.connectNulls){for(;l>0&&n(i[l-1]);l--);for(;o<l&&n(i[o]);o++);}for(;o<l;){var d=r(t,i,o,l,l,1,h.min,h.max,e.smooth,u,e.connectNulls);r(t,a,o+d-1,d,l,-1,c.min,c.max,e.stackedOnSmooth,u,e.connectNulls),o+=d+1,t.closePath()}}});e.Polyline=y,e.Polygon=_},function(t,e,i){function n(t,e){return e.type||(e.data?"category":"value")}var r=i(0),a=i(16),o=i(84),s=i(50),l=a.extend({type:"cartesian2dAxis",axis:null,init:function(){l.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){l.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){l.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});r.merge(l.prototype,s);var u={offset:0};o("x",l,n,u),o("y",l,n,u);var h=l;t.exports=h},function(t,e,i){var n=i(0),r={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},a={};a.categoryAxis=n.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a.valueAxis=n.merge({boundaryGap:[0,0],splitNumber:5},r),a.timeAxis=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},a.valueAxis),a.logAxis=n.defaults({scale:!0,logBase:10},a.valueAxis);var o=a;t.exports=o},function(t,e,i){function n(t,e,i){i=i||{};var n=t.coordinateSystem,a=e.axis,o={},s=a.getAxesOnZeroOf()[0],l=a.position,u=s?"onZero":l,h=a.dim,c=n.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g="x"===h?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(s){var m=s.toGlobalCoord(s.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}o.position=["y"===h?g[p[u]]:d[0],"x"===h?g[p[u]]:d[3]],o.rotation=Math.PI/2*("x"===h?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[l],o.labelOffset=s?g[p[l]]-g[p.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),r.retrieve(i.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var y=e.get("axisLabel.rotate");return o.labelRotate="top"===u?-y:y,o.z2=1,o}var r=i(0);e.layout=n},function(t,e,i){var n=i(18),r=i(30),a=n.extend({type:"series.__base_bar__",getInitialData:function(t,e){return r(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(e.clampData(t)),n=this.getData(),r=n.getLayout("offset"),a=n.getLayout("size"),o=e.getBaseAxis().isHorizontal()?0:1;return i[o]+=r+a/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:5e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});t.exports=a},function(t,e,i){function n(t,e,i,n,o,l,u){var h=i.getModel("label"),c=i.getModel("emphasis.label");a.setLabelStyle(t,e,h,c,{labelFetcher:o,labelDataIndex:l,defaultText:s(o.getData(),l),isRectText:!0,autoColor:n}),r(t),r(e)}function r(t,e){"outside"===t.textPosition&&(t.textPosition=e)}var a=i(3),o=i(99),s=o.getDefaultLabel;e.setLabel=n},function(t,e,i){function n(t,e){a.each(e,function(e){e.update="updateView",r.registerAction(e,function(i,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:i},function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each(function(e){var i=n.getName(e);r[i]=t.isSelected(i)||!1})}),{name:i.name,selected:r}})})}var r=i(2),a=i(0);t.exports=n},function(t,e,i){function n(){h.call(this)}function r(t){this.name=t,this.zoomLimit,h.call(this),this._roamTransformable=new n,this._rawTransformable=new n,this._center,this._zoom}function a(t,e,i,n){var r=i.seriesModel,a=r?r.coordinateSystem:null;return a===this?a[t](n):null}var o=i(0),s=i(10),l=i(19),u=i(12),h=i(92),c=s.applyTransform;o.mixin(n,h),r.prototype={constructor:r,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new u(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new u(t,e,i,n)},transformTo:function(t,e,i,n){var r=this.getBoundingRect(),a=this._rawTransformable;a.transform=r.calculateTransform(new u(t,e,i,n)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),e=t.x+t.width/2,i=t.y+t.height/2;return[e,i]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),r=this.getZoom();n=s.applyTransform([],n,t),i=s.applyTransform([],i,t),e.origin=n,e.position=[i[0]-n[0],i[1]-n[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),l.copy(this.transform||(this.transform=[]),e.transform||l.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],l.invert(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,i){var n=e?this._rawTransform:this.transform;return i=i||[],n?c(i,t,n):s.copy(i,t)},pointToData:function(t){var e=this.invTransform;return e?c([],t,e):[t[0],t[1]]},convertToPixel:o.curry(a,"dataToPoint"),convertFromPixel:o.curry(a,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},o.mixin(r,h);var d=r;t.exports=d},function(t,e,i){function n(t,e){var i=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(i.fill=n),i}function r(t,e,i,n,r){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",function(){t._mouseDownFlag=!0}),i.on("click",function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var l=o.target;!l.__regions;)l=l.parent;if(l){var u={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:s.map(l.__regions,function(t){return{name:t.name,from:r.uid}})};u[e.mainType+"Id"]=e.id,n.dispatchAction(u),a(e,i)}}}))}function a(t,e){e.eachChild(function(e){s.each(e.__regions,function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")})})}function o(t,e){var i=new d.Group;this._controller=new l(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag}var s=i(0),l=i(88),u=i(287),h=i(102),c=h.onIrrelevantElement,d=i(3);o.prototype={constructor:o,draw:function(t,e,i,o,l){var u="geo"===t.mainType,h=t.getData&&t.getData();u&&e.eachComponent({mainType:"series",subType:"map"},function(e){h||e.getHostGeoModel()!==t||(h=e.getData())});var c=t.coordinateSystem,p=this.group,f=c.scale,g={position:c.position,scale:f};!p.childAt(0)||l?p.attr(g):d.updateProps(p,g,t),p.removeAll();var m=["itemStyle"],v=["emphasis","itemStyle"],y=["label"],_=["emphasis","label"],b=s.createHashMap();s.each(c.regions,function(e){var i=b.get(e.name)||b.set(e.name,new d.Group),r=new d.CompoundPath({shape:{paths:[]}});i.add(r);var a,o=t.getRegionModel(e.name)||t,l=o.getModel(m),c=o.getModel(v),g=n(l,f),x=n(c,f),w=o.getModel(y),M=o.getModel(_);if(h){a=h.indexOfName(e.name);var S=h.getItemVisual(a,"color",!0);S&&(g.fill=S)}s.each(e.geometries,function(t){if("polygon"===t.type){r.shape.paths.push(new d.Polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)r.shape.paths.push(new d.Polygon({shape:{points:t.interiors[e]}}))}}),r.setStyle(g),r.style.strokeNoScale=!0,r.culling=!0;var k=w.get("show"),D=M.get("show"),T=h&&isNaN(h.get(h.mapDimension("value"),a)),L=h&&h.getItemLayout(a);if(u||T&&(k||D)||L&&L.showLabel){var C,I=u?e.name:a;(!h||a>=0)&&(C=t);var A=new d.Text({position:e.center.slice(),scale:[1/f[0],1/f[1]],z2:10,silent:!0});d.setLabelStyle(A.style,A.hoverStyle={},w,M,{labelFetcher:C,labelDataIndex:I,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(A)}if(h)h.setItemGraphicEl(a,i);else{var o=t.getRegionModel(e.name);r.eventData={componentType:"geo",geoIndex:t.componentIndex,name:e.name,region:o&&o.option||{}}}var P=i.__regions||(i.__regions=[]);P.push(e),d.setHoverStyle(i,x,{hoverSilentOnTouch:!!t.get("selectedMode")}),p.add(i)}),this._updateController(t,e,i),r(this,t,p,i,o),a(t,p)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(t,e,i){function n(){var e={type:"geoRoam",componentType:l};return e[l+"Id"]=t.id,e}var r=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),a.enable(t.get("roam")||!1);var l=t.mainType;a.off("pan").on("pan",function(t,e){this._mouseDownFlag=!1,u.updateViewOnPan(o,t,e),i.dispatchAction(s.extend(n(),{dx:t,dy:e}))},this),a.off("zoom").on("zoom",function(t,e,r){if(this._mouseDownFlag=!1,u.updateViewOnZoom(o,t,e,r),i.dispatchAction(s.extend(n(),{zoom:t,originX:e,originY:r})),this._updateGroup){var a=this.group,l=a.scale;a.traverse(function(t){"text"===t.type&&t.attr("scale",[1/l[0],1/l[1]])})}},this),a.setPointerChecker(function(e,n,a){return r.getViewRectAfterRoam().contain(n,a)&&!c(e,i,t)})}};var p=o;t.exports=p},function(t,e,i){function n(t,e,i){var n=o(t);n[e]=i}function r(t,e,i){var n=o(t),r=n[e];r===i&&(n[e]=null)}function a(t,e){return!!o(t)[e]}function o(t){return t[l]||(t[l]={})}var s=i(2),l="\0_ec_interaction_mutex";s.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),e.take=n,e.release=r,e.isTaken=a},function(t,e){function i(t,e,i){var n=t.target,r=n.position;r[0]+=e,r[1]+=i,n.dirty()}function n(t,e,i,n){var r=t.target,a=t.zoomLimit,o=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,a){var u=a.min||0,h=a.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,o[0]-=(i-o[0])*(c-1),o[1]-=(n-o[1])*(c-1),s[0]*=c,s[1]*=c,r.dirty()}e.updateViewOnPan=i,e.updateViewOnZoom=n},function(t,e,i){var n=i(2),r=i(0),a=i(289),o=a.updateCenterAndZoom;n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(e){var n=e.coordinateSystem;if("geo"===n.type){var a=o(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===i&&r.each(e.seriesGroup,function(t){t.setCenter(a.center),t.setZoom(a.zoom)})}})})},function(t,e){function i(t,e,i){var n=t.getZoom(),r=t.getCenter(),a=e.zoom,o=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy){o[0]-=e.dx,o[1]-=e.dy;var r=t.pointToData(o);t.setCenter(r)}if(null!=a){if(i){var s=i.min||0,l=i.max||1/0;a=Math.max(Math.min(n*a,l),s)/n}t.scale[0]*=a,t.scale[1]*=a;var u=t.position,h=(e.originX-u[0])*(a-1),c=(e.originY-u[1])*(a-1);u[0]-=h,u[1]-=c,t.updateTransform();var r=t.pointToData(o);t.setCenter(r),t.setZoom(a*n)}return{center:t.getCenter(),zoom:t.getZoom()}}e.updateCenterAndZoom=i},function(t,e,i){function n(t){var e=t.mainData,i=t.datas;i||(i={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,u(e,i,t),d(i,function(i){d(e.TRANSFERABLE_METHODS,function(e){i.wrapMethod(e,c.curry(r,t))})}),e.wrapMethod("cloneShallow",c.curry(o,t)),d(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,c.curry(a,t))}),c.assert(i[e.dataType]===e)}function r(t,e){if(l(this)){var i=c.extend({},this[p]);i[this.dataType]=e,u(e,i,t)}else h(e,this.dataType,this[f],t);return e}function a(t,e){return t.struct&&t.struct.update(this),e}function o(t,e){return d(e[p],function(i,n){i!==e&&h(i.cloneShallow(),n,e,t)}),e}function s(t){var e=this[f];return null==t||null==e?e:e[p][t]}function l(t){return t[f]===t}function u(t,e,i){t[p]={},d(e,function(e,n){h(e,n,t,i)})}function h(t,e,i,n){i[p][e]=t,t[f]=i,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=s}var c=i(0),d=c.each,p="\0__link_datas",f="\0__link_mainData",g=n;t.exports=g},function(t,e,i){function n(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,i,n=[t];e=n.pop();)if(i=e.children,e.isExpand&&i.length)for(var r=i.length,a=r-1;a>=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0, change:0,shift:0,i:a,thread:null},n.push(o)}}function r(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,r=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){u(t);var a=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=h(t,r,t.parentNode.hierNode.defaultAncestor||n[0],e)}function a(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function o(t){return arguments.length?t:g}function s(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i}function l(t,e){return m.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t){for(var e=t.children,i=e.length,n=0,r=0;--i>=0;){var a=e[i];a.hierNode.prelim+=n,a.hierNode.modifier+=n,r+=a.hierNode.change,n+=a.hierNode.shift+r}}function h(t,e,i,n){if(e){for(var r=t,a=t,o=a.parentNode.children[0],s=e,l=r.hierNode.modifier,u=a.hierNode.modifier,h=o.hierNode.modifier,g=s.hierNode.modifier;s=c(s),a=d(a),s&&a;){r=c(r),o=d(o),r.hierNode.ancestor=t;var m=s.hierNode.prelim+g-a.hierNode.prelim-u+n(s,a);m>0&&(f(p(s,t,i),t,m),u+=m,l+=m),g+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=r.hierNode.modifier,h+=o.hierNode.modifier}s&&!c(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=g-l),a&&!d(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-h,i=t)}return i}function c(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function d(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function p(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function f(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function g(t,e){return t.parentNode===e.parentNode?1:2}var m=i(8);e.init=n,e.firstWalk=r,e.secondWalk=a,e.separation=o,e.radialCoordinate=s,e.getViewRect=l},function(t,e,i){function n(t,e,i,n,c){for(var d=new o(n),p=0;p<t.length;p++)d.addNode(r.retrieve(t[p].id,t[p].name,p),p);for(var f=[],g=[],m=0,p=0;p<e.length;p++){var v=e[p],y=v.source,_=v.target;d.addEdge(y,_,m)&&(g.push(v),f.push(r.retrieve(v.id,y+" > "+_)),m++)}var b,x=i.get("coordinateSystem");if("cartesian2d"===x||"polar"===x)b=h(t,i);else{var w=u.get(x),M=w&&"view"!==w.type?w.dimensions||[]:[];r.indexOf(M,"value")<0&&M.concat(["value"]);var S=l(t,{coordDimensions:M});b=new a(S,i),b.initData(t)}var k=new a(["value"],i);return k.initData(g,f),c&&c(b,k),s({mainData:b,struct:d,structAttr:"graph",datas:{node:b,edge:k},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}var r=i(0),a=i(20),o=i(548),s=i(290),l=i(49),u=i(22),h=i(30);t.exports=n},function(t,e,i){function n(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=t.getGraph();i.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),r(i)}}function r(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.curveness")||0,i=a.clone(t.node1.getLayout()),n=a.clone(t.node2.getLayout()),r=[i,n];+e&&r.push([(i[0]+n[0])/2-(i[1]-n[1])*e,(i[1]+n[1])/2-(n[0]-i[0])*e]),t.setLayout(r)})}var a=i(10);e.simpleLayout=n,e.simpleLayoutEdge=r},function(t,e,i){function n(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=e.getBoundingRect(),n=t.getData(),a=n.graph,o=0,s=n.getSum("value"),l=2*Math.PI/(s||n.count()),u=i.width/2+i.x,h=i.height/2+i.y,c=Math.min(i.width,i.height)/2;a.eachNode(function(t){var e=t.getValue("value");o+=l*(s?e:1)/2,t.setLayout([c*Math.cos(o)+u,c*Math.sin(o)+h]),o+=l*(s?e:1)/2}),n.setLayout({cx:u,cy:h}),a.eachEdge(function(t){var e,i=t.getModel().get("lineStyle.curveness")||0,n=r.clone(t.node1.getLayout()),a=r.clone(t.node2.getLayout()),o=(n[0]+a[0])/2,s=(n[1]+a[1])/2;+i&&(i*=3,e=[u*i+o*(1-i),h*i+s*(1-i)]),t.setLayout([n,a,e])})}}var r=i(10);e.circularLayout=n},function(t,e,i){function n(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}var r=i(2),a=i(0),o=i(38),s=i(570);i(296),i(573),i(575);var l=5;r.extendComponentView({type:"parallel",render:function(t,e,i){this._model=t,this._api=i,this._handlers||(this._handlers={},a.each(u,function(t,e){i.getZr().on(e,this._handlers[e]=a.bind(t,this))},this)),o.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){a.each(this._handlers,function(t,i){e.getZr().off(i,t)}),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(a.extend({type:"parallelAxisExpand"},t))}});var u={mousedown:function(t){n(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(n(this,"click")&&e){var i=[t.offsetX,t.offsetY],r=Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2);if(r>l)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==a.behavior&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&n(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=i.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===r&&null})}}};r.registerPreprocessor(s)},function(t,e,i){function n(t,e){var i=[];return t.eachComponent("parallel",function(n,a){var o=new r(n,t,e);o.name="parallel_"+a,o.resize(n,e),n.coordinateSystem=o,o.model=n,i.push(o)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}var r=i(571),a=i(22);a.register("parallel",{create:n})},function(t,e,i){function n(t){return t=o(t),function(e,i){return h.clipPointsByRect(e,t)}}function r(t,e){return t=o(t),function(i){var n=null!=e?e:i,r=n?t.width:t.height,a=n?t.x:t.y;return[a,a+(r||0)]}}function a(t,e,i){return t=o(t),function(n,r,a){return t.contain(r[0],r[1])&&!u(n,e,i)}}function o(t){return s.create(t)}var s=i(12),l=i(102),u=l.onIrrelevantElement,h=i(3);e.makeRectPanelClipPath=n,e.makeLinearBrushOtherExtent=r,e.makeRectIsTargetByCursor=a},function(t,e,i){function n(){function t(e,n){if(n>=i.length)return e;for(var a=-1,o=e.length,s=i[n++],l={},u={};++a<o;){var h=s(e[a]),c=u[h];c?c.push(e[a]):u[h]=[e[a]]}return r.each(u,function(e,i){l[i]=t(e,n)}),l}function e(t,a){if(a>=i.length)return t;var o=[],s=n[a++];return r.each(t,function(t,i){o.push({key:i,values:e(t,a)})}),s?o.sort(function(t,e){return s(t.key,e.key)}):o}var i=[],n=[];return{key:function(t){return i.push(t),this},sortKeys:function(t){return n[i.length-1]=t,this},entries:function(i){return e(t(i,0),0)}}}var r=i(0);t.exports=n},function(t,e,i){var n=i(51),r=i(0),a=i(60),o=a.getDimensionTypeByAxis,s={_baseAxisDim:null,getInitialData:function(t,e){var i,a,s=e.getComponent("xAxis",this.get("xAxisIndex")),l=e.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),h=l.get("type");"category"===u?(t.layout="horizontal",i=s.getOrdinalMeta(),a=!0):"category"===h?(t.layout="vertical",i=l.getOrdinalMeta(),a=!0):t.layout=t.layout||"horizontal";var c=["x","y"],d="horizontal"===t.layout?0:1,p=this._baseAxisDim=c[d],f=c[1-d],g=[s,l],m=g[d].get("type"),v=g[1-d].get("type"),y=t.data;if(y&&a){var _=[];r.each(y,function(t,e){var i;t.value&&r.isArray(t.value)?(i=t.value.slice(),t.value.unshift(e)):r.isArray(t)?(i=t.slice(),t.unshift(e)):i=t,_.push(i)}),t.data=_}var b=this.defaultValueDimensions;return n(this,{coordDimensions:[{name:p,type:o(m),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:o(v),dimsDef:b.slice()}],dimensionsCount:b.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};e.seriesModelMixin=s},function(t,e,i){function n(t,e,i){r.Group.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}var r=i(3),a=i(105),o=i(0),s=i(21),l=s.createSymbol,u=i(10),h=i(33),c=n.prototype;c.createLine=function(t,e,i){return new a(t,e,i)},c._updateEffectSymbol=function(t,e){var i=t.getItemModel(e),n=i.getModel("effect"),r=n.get("symbolSize"),a=n.get("symbol");o.isArray(r)||(r=[r,r]);var s=n.get("color")||t.getItemVisual(e,"color"),u=this.childAt(1);this._symbolType!==a&&(this.remove(u),u=l(a,-.5,-.5,1,1,s),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",s),u.setStyle(n.getItemStyle(["color"])),u.attr("scale",r),u.setColor(s),u.attr("scale",r),this._symbolType=a,this._updateEffectAnimation(t,n,e))},c._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var r=this,a=t.getItemLayout(i),s=1e3*e.get("period"),l=e.get("loop"),u=e.get("constantSpeed"),h=o.retrieve(e.get("delay"),function(e){return e/t.count()*s/3}),c="function"==typeof h;if(n.ignore=!0,this.updateAnimationPoints(n,a),u>0&&(s=this.getLineLength(n)/u*1e3),s!==this._period||l!==this._loop){n.stopAnimation();var d=h;c&&(d=h(i)),n.__t>0&&(d=-s*n.__t),n.__t=0;var p=n.animate("",l).when(s,{__t:1}).delay(d).during(function(){r.updateSymbolPosition(n)});l||p.done(function(){r.remove(n)}),p.start()}this._period=s,this._loop=l}},c.getLineLength=function(t){return u.dist(t.__p1,t.__cp1)+u.dist(t.__cp1,t.__p2)},c.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},c.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},c.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,r=t.__t,a=t.position,o=h.quadraticAt,s=h.quadraticDerivativeAt;a[0]=o(e[0],n[0],i[0],r),a[1]=o(e[1],n[1],i[1],r);var l=s(e[0],n[0],i[0],r),u=s(e[1],n[1],i[1],r);t.rotation=-Math.atan2(u,l)-Math.PI/2,t.ignore=!1},c.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},o.inherits(n,r.Group);var d=n;t.exports=d},function(t,e,i){function n(t,e,i){r.Group.call(this),this._createPolyline(t,e,i)}var r=i(3),a=i(0),o=n.prototype;o._createPolyline=function(t,e,i){var n=t.getItemLayout(e),a=new r.Polyline({shape:{points:n}});this.add(a),this._updateCommonStl(t,e,i)},o.updateData=function(t,e,i){var n=t.hostModel,a=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};r.updateProps(a,o,n,e),this._updateCommonStl(t,e,i)},o._updateCommonStl=function(t,e,i){var n=this.childAt(0),o=t.getItemModel(e),s=t.getItemVisual(e,"color"),l=i&&i.lineStyle,u=i&&i.hoverLineStyle;i&&!t.hasItemOption||(l=o.getModel("lineStyle").getLineStyle(),u=o.getModel("emphasis.lineStyle").getLineStyle()),n.useStyle(a.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),n.hoverStyle=u,r.setHoverStyle(this)},o.updateLayout=function(t,e){var i=this.childAt(0);i.setShape("points",t.getItemLayout(e))},a.inherits(n,r.Group);var s=n;t.exports=s},function(t,e,i){var n=i(48),r={seriesType:"lines",plan:n(),reset:function(t){function e(e,a){var o=[];if(r){var s,l=e.end-e.start;if(n){for(var u=0,h=e.start;h<e.end;h++)u+=t.getLineCoordsCount(h);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);for(var c=0,d=[],h=e.start;h<e.end;h++){var p=t.getLineCoords(h,o);n&&(s[c++]=p);for(var f=0;f<p;f++)d=i.dataToPoint(o[f],!1,d),s[c++]=d[0],s[c++]=d[1]}a.setLayout("linesPoints",s)}else for(var h=e.start;h<e.end;h++){var g=a.getItemModel(h),p=t.getLineCoords(h,o),m=[];if(n)for(var v=0;v<p;v++)m.push(i.dataToPoint(o[v]));else{m[0]=i.dataToPoint(o[0]),m[1]=i.dataToPoint(o[1]);var y=g.get("lineStyle.curveness");+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}a.setItemLayout(h,m)}}var i=t.coordinateSystem,n=t.get("polyline"),r=t.pipelineContext.large;return{progress:e}}};t.exports=r},function(t,e,i){var n=i(2);i(616),i(619),i(620),i(66),i(624),n.extendComponentView({type:"single"})},function(t,e,i){function n(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,a={},o=n.position,s=n.orient,l=i.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],h={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};a.position=["vertical"===s?h.vertical[o]:u[0],"horizontal"===s?h.horizontal[o]:u[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[s];var d={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),r.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var p=e.rotate;return null==p&&(p=t.get("axisLabel.rotate")),a.labelRotation="top"===o?-p:p,a.z2=1,a}var r=i(0);e.layout=n},function(t,e,i){function n(t,e){var i,n=[],o=t.seriesIndex;if(null==o||!(i=e.getSeriesByIndex(o)))return{point:[]};var s=i.getData(),l=a.queryDataIndex(s,t);if(null==l||l<0||r.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),h=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(l)||[];else if(h&&h.dataToPoint)n=h.dataToPoint(s.getValues(r.map(h.dimensions,function(t){return s.mapDimension(t)}),l,!0))||[];else if(u){var c=u.getBoundingRect().clone();c.applyTransform(u.transform),n=[c.x+c.width/2,c.y+c.height/2]}return{point:n,el:u}}var r=i(0),a=i(5);t.exports=n},function(t,e,i){function n(t,e,i){if(!c.node){var n=e.getZr();f(n).records||(f(n).records={}),r(n,e);var a=f(n).records[t]||(f(n).records[t]={});a.handler=i}}function r(t,e){function i(i,n){t.on(i,function(i){var r=l(e);g(f(t).records,function(t){t&&n(t,i,r.dispatchAction)}),a(r.pendings,e)})}f(t).initialized||(f(t).initialized=!0,i("click",h.curry(s,"click")),i("mousemove",h.curry(s,"mousemove")),i("globalout",o))}function a(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function o(t,e,i){t.handler("leave",null,i)}function s(t,e,i,n){e.handler(t,i,n)}function l(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function u(t,e){if(!c.node){var i=e.getZr(),n=(f(i).records||{})[t];n&&(f(i).records[t]=null)}}var h=i(0),c=i(15),d=i(5),p=d.makeInner,f=p(),g=h.each;e.register=n,e.unregister=u},function(t,e,i){function n(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function r(t){return"x"===t.dim?0:1}var a=i(3),o=i(107),s=i(89),l=i(280),u=i(43),h=o.extend({makeElOption:function(t,e,i,r,a){var o=i.axis,u=o.grid,h=r.get("type"),d=n(u,o).getOtherAxis(o).getGlobalExtent(),p=o.toGlobalCoord(o.dataToCoord(e,!0));if(h&&"none"!==h){var f=s.buildElStyle(r),g=c[h](o,p,d,f);g.style=f,t.graphicKey=g.type,t.pointer=g}var m=l.layout(u.model,i);s.buildCartesianSingleLabelElOption(e,t,m,i,r,a)},getHandleTransform:function(t,e,i){var n=l.layout(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:s.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,r){var a=i.axis,o=a.grid,s=a.getGlobalExtent(!0),l=n(o,a).getOtherAxis(a).getGlobalExtent(),u="x"===a.dim?0:1,h=t.position;h[u]+=e[u],h[u]=Math.min(s[1],h[u]),h[u]=Math.max(s[0],h[u]);var c=(l[1]+l[0])/2,d=[c,c];d[u]=h[u];var p=[{verticalAlign:"middle"},{align:"center"}];return{position:h,rotation:t.rotation,cursorPoint:d,tooltipOption:p[u]}}}),c={line:function(t,e,i,n){var o=s.makeLineShape([e,i[0]],[e,i[1]],r(t));return a.subPixelOptimizeLine({shape:o,style:n}),{type:"Line",shape:o}},shadow:function(t,e,i,n){var a=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:s.makeRectShape([e-a/2,i[0]],[a,o],r(t))}}};u.registerAxisPointerClass("CartesianAxisPointer",h);var d=h;t.exports=d},function(t,e,i){var n=i(2),r=i(0),a=i(17),o=i(5),s=o.isNameSpecified,l=n.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){l.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],i=[];t.eachRawSeries(function(n){var r=n.name;i.push(r);var a;if(n.legendDataProvider){var o=n.legendDataProvider(),l=o.mapArray(o.getName);t.isSeriesFiltered(n)||(i=i.concat(l)),l.length?e=e.concat(l):a=!0}else a=!0;a&&s(n)&&e.push(n.name)}),this._availableNames=i;var n=this.get("data")||e,o=r.map(n,function(t){return"string"!=typeof t&&"number"!=typeof t||(t={name:t}),new a(t,this,this.ecModel)},this);this._data=o},getData:function(){return this._data},select:function(t){var e=this.option.selected,i=this.get("selectedMode");if("single"===i){var n=this._data;r.each(n,function(t){e[t.get("name")]=!1})}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&r.indexOf(this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}}),u=l;t.exports=u},function(t,e,i){function n(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function r(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:t.name,name:e,excludeSeriesId:n})}function a(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:t.name,name:e,excludeSeriesId:n})}var o=i(7),s=(o.__DEV__,i(2)),l=i(0),u=i(21),h=u.createSymbol,c=i(3),d=i(310),p=d.makeBackground,f=i(8),g=l.curry,m=l.each,v=c.Group,y=s.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new v),this._backgroundEl},getContentGroup:function(){return this._contentGroup},render:function(t,e,i){if(this.resetInner(),t.get("show",!0)){var n=t.get("align");n&&"auto"!==n||(n="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(n,t,e,i);var r=t.getBoxLayoutParams(),a={width:i.getWidth(),height:i.getHeight()},o=t.get("padding"),s=f.getLayoutRect(r,a,o),u=this.layoutInner(t,n,s),h=f.getLayoutRect(l.defaults({width:u.width,height:u.height},r),a,o);this.group.attr("position",[h.x-u.x,h.y-u.y]),this.group.add(this._backgroundEl=p(u,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,i,o){var s=this.getContentGroup(),u=l.createHashMap(),h=e.get("selectedMode"),c=[];i.eachRawSeries(function(t){!t.get("legendHoverLink")&&c.push(t.id)}),m(e.getData(),function(l,d){var p=l.get("name");if(!this.newlineDisabled&&(""===p||"\n"===p))return void s.add(new v({newline:!0}));var f=i.getSeriesByName(p)[0];if(!u.get(p))if(f){var m=f.getData(),y=m.getVisual("color");"function"==typeof y&&(y=y(f.getDataParams(0)));var _=m.getVisual("legendSymbol")||"roundRect",b=m.getVisual("symbol"),x=this._createItem(p,d,l,e,_,b,t,y,h);x.on("click",g(n,p,o)).on("mouseover",g(r,f,null,o,c)).on("mouseout",g(a,f,null,o,c)),u.set(p,!0)}else i.eachRawSeries(function(i){if(!u.get(p)&&i.legendDataProvider){var s=i.legendDataProvider(),f=s.indexOfName(p);if(f<0)return;var m=s.getItemVisual(f,"color"),v="roundRect",y=this._createItem(p,d,l,e,v,null,t,m,h);y.on("click",g(n,p,o)).on("mouseover",g(r,i,p,o,c)).on("mouseout",g(a,i,p,o,c)),u.set(p,!0)}},this)},this)},_createItem:function(t,e,i,n,r,a,o,s,u){var d=n.get("itemWidth"),p=n.get("itemHeight"),f=n.get("inactiveColor"),g=n.get("symbolKeepAspect"),m=n.isSelected(t),y=new v,_=i.getModel("textStyle"),b=i.get("icon"),x=i.getModel("tooltip"),w=x.parentModel;if(r=b||r,y.add(h(r,0,0,d,p,m?s:f,null==g||g)),!b&&a&&(a!==r||"none"==a)){var M=.8*p;"none"===a&&(a="circle"),y.add(h(a,(d-M)/2,(p-M)/2,M,M,m?s:f,null==g||g))}var S="left"===o?d+5:-5,k=o,D=n.get("formatter"),T=t;"string"==typeof D&&D?T=D.replace("{name}",null!=t?t:""):"function"==typeof D&&(T=D(t)),y.add(new c.Text({style:c.setTextStyle({},_,{text:T,x:S,y:p/2,textFill:m?_.getTextColor():f,textAlign:k,textVerticalAlign:"middle"})}));var L=new c.Rect({shape:y.getBoundingRect(),invisible:!0,tooltip:x.get("show")?l.extend({content:t,formatter:w.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},x.option):null});return y.add(L),y.eachChild(function(t){t.silent=!0}),L.silent=!u,this.getContentGroup().add(y),c.setHoverStyle(y),y.__legendDataIndex=e,y},layoutInner:function(t,e,i){var n=this.getContentGroup();f.box(t.get("orient"),n,t.get("itemGap"),i.width,i.height);var r=n.getBoundingRect();return n.attr("position",[-r.x,-r.y]),this.group.getBoundingRect()}});t.exports=y},function(t,e,i){function n(t,e,i){var n=e.getBoxLayoutParams(),r=e.get("padding"),a={width:i.getWidth(),height:i.getHeight()},u=o(n,a,r);s(e.get("orient"),t,e.get("itemGap"),u.width,u.height),l(t,n,a,r)}function r(t,e){var i=u.normalizeCssArray(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var t=new h.Rect({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return t}var a=i(8),o=a.getLayoutRect,s=a.box,l=a.positionElement,u=i(11),h=i(3);e.layout=n,e.makeBackground=r},function(t,e,i){function n(t,e,i){var n=this._targetInfoList=[],r={},o=a(e,t);g(x,function(t,e){(!i||!i.include||m(i.include,e)>=0)&&t(o,n,r)})}function r(t){return t[0]>t[1]&&t.reverse(),t}function a(t,e){return p.parseFinder(t,e,{includeMainTypes:_})}function o(t,e,i,n){var a=i.getAxis(["x","y"][t]),o=r(c.map([0,1],function(t){return e?a.coordToData(a.toLocalCoord(n[t])):a.toGlobalCoord(a.dataToCoord(n[t]))})),s=[];return s[t]=o,s[1-t]=[NaN,NaN],{values:o,xyMinMax:s}}function s(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function l(t,e){var i=u(t),n=u(e),r=[i[0]/n[0],i[1]/n[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function u(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var h=i(7),c=(h.__DEV__,i(0)),d=i(3),p=i(5),f=i(297),g=c.each,m=c.indexOf,v=c.curry,y=["dataToPoint","pointToData"],_=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],b=n.prototype;b.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=S[t.brushType](0,i,e);t.__rangeOffset={offset:k[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}})},b.matchOutputRanges=function(t,e,i){g(t,function(t){var n=this.findTargetInfo(t,e);n&&n!==!0&&c.each(n.coordSyses,function(n){var r=S[t.brushType](1,n,t.range);i(t,r.values,n,e)})},this)},b.setInputRanges=function(t,e){g(t,function(t){var i=this.findTargetInfo(t,e);if(t.range=t.range||[],i&&i!==!0){t.panelId=i.panelId;var n=S[t.brushType](0,i.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?k[t.brushType](n.values,r.offset,l(n.xyMinMax,r.xyMinMax)):n.values}},this)},b.makePanelOpts=function(t,e){return c.map(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e&&e(i),clipPath:f.makeRectPanelClipPath(n),isTargetByCursor:f.makeRectIsTargetByCursor(n,t,i.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(n)}})},b.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return n===!0||n&&m(n.coordSyses,e.coordinateSystem)>=0},b.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=a(e,t),r=0;r<i.length;r++){var o=i[r],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var r=0;r<w.length;r++)if(w[r](n,o))return o}return!0};var x={grid:function(t,e){var i=t.xAxisModels,n=t.yAxisModels,r=t.gridModels,a=c.createHashMap(),o={},s={};(i||n||r)&&(g(i,function(t){var e=t.axis.grid.model;a.set(e.id,e),o[e.id]=!0}),g(n,function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0}),g(r,function(t){a.set(t.id,t),o[t.id]=!0,s[t.id]=!0}),a.each(function(t){var r=t.coordinateSystem,a=[];g(r.getCartesians(),function(t,e){(m(i,t.getAxis("x").model)>=0||m(n,t.getAxis("y").model)>=0)&&a.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:M.grid,xAxisDeclared:o[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){g(t.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:M.geo})})}},w=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,r=t.gridModel;return!r&&i&&(r=i.axis.grid.model),!r&&n&&(r=n.axis.grid.model),r&&r===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],M={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(d.getTransform(t)),e}},S={lineX:v(o,0),lineY:v(o,1),rect:function(t,e,i){var n=e[y[t]]([i[0][0],i[1][0]]),a=e[y[t]]([i[0][1],i[1][1]]),o=[r([n[0],a[0]]),r([n[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,i){var n=[[1/0,-(1/0)],[1/0,-(1/0)]],r=c.map(i,function(i){var r=e[y[t]](i);return n[0][0]=Math.min(n[0][0],r[0]),n[1][0]=Math.min(n[1][0],r[1]),n[0][1]=Math.max(n[0][1],r[0]),n[1][1]=Math.max(n[1][1],r[1]),r});return{values:r,xyMinMax:n}}},k={lineX:v(s,0),lineY:v(s,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return c.map(t,function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]})}},D=n;t.exports=D},function(t,e,i){var n=i(16);n.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},function(t,e,i){var n=i(2),r=i(0),a=r.createHashMap,o=r.each;n.registerProcessor({getTargetSeries:function(t){var e=a();return t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){var r=n.getAxisProxy(t.name,i);o(r.getTargetSeriesModels(),function(t){e.set(t.uid,t)})})}),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).reset(n,e)}),t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)})}})},function(t,e,i){var n=i(2),r=i(0),a=i(109);n.registerAction("dataZoom",function(t,e){var i=a.createLinkedNodesFinder(r.bind(e.eachComponent,e,"dataZoom"),a.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),n=[];e.eachComponent({mainType:"dataZoom",query:t},function(t,e){n.push.apply(n,i(t).nodes)}),r.each(n,function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})},function(t,e,i){function n(t){var e=t&&t.visualMap;a.isArray(e)||(e=e?[e]:[]),o(e,function(t){if(t){r(t,"splitList")&&!r(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&a.isArray(e)&&o(e,function(t){a.isObject(t)&&(r(t,"start")&&!r(t,"min")&&(t.min=t.start),r(t,"end")&&!r(t,"max")&&(t.max=t.end))})}})}function r(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var a=i(0),o=a.each;t.exports=n},function(t,e,i){var n=i(16);n.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})},function(t,e,i){function n(t,e,i,n){function r(t){return u[t]}function a(t,e){u[t]=e}for(var o=e.targetVisuals[n],l=s.prepareVisualTypes(o),u={color:t.getData().getVisual("color")},h=0,c=l.length;h<c;h++){var d=l[h],p=o["opacity"===d?"__alphaForOpacity":d];p&&p.applyVisual(i,r,a)}return u.color}var r=i(2),a=i(0),o=i(90),s=i(45),l=r.PRIORITY.VISUAL.COMPONENT;r.registerVisual(l,{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",function(e){var n=t.pipelineContext;!e.isTargetSeries(t)||n&&n.large||i.push(o.incrementalApplyVisual(e.stateList,e.targetVisuals,a.bind(e.getValueState,e),e.getDataDimension(t.getData())))}),i}}),r.registerVisual(l,{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),r=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var o=e.getVisualMeta(a.bind(n,null,t,e))||{stops:[],outerColors:[]},s=e.getDataDimension(i),l=i.getDimensionInfo(s);null!=l&&(o.dimension=l.index,r.push(o))}}),t.getData().setVisual("visualMeta",r)}})},function(t,e,i){var n=i(2),r=i(0),a=i(15),o=i(319),s=i(45),l=i(90),u=i(5),h=i(4),c=s.mapVisual,d=s.eachVisual,p=r.isArray,f=r.each,g=h.asc,m=h.linearMap,v=r.noop,y=n.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-(1/0),1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,i)},optionUpdated:function(t,e){var i=this.option;a.canvasSupported||(i.realtime=!1),!e&&l.replaceVisualOption(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=r.bind(t,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,e,t),this.targetVisuals=l.createVisualMappings(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,i){e.push(i)}):e=u.normalizeToArray(t),e},eachTargetSeries:function(t,e){r.each(this.getTargetSeriesIndices(),function(i){t.call(e,this.ecModel.getSeriesByIndex(i))},this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries(function(i){i===t&&(e=!0)}),e},formatValueText:function(t,e,i){function n(t){return t===u[0]?"min":t===u[1]?"max":(+t).toFixed(Math.min(l,20))}var a,o,s=this.option,l=s.precision,u=this.dataBound,h=s.formatter;return i=i||["<",">"],r.isArray(t)&&(t=t.slice(),a=!0),o=e?t:a?[n(t[0]),n(t[1])]:n(t),r.isString(h)?h.replace("{value}",a?o[0]:o).replace("{value2}",a?o[1]:o):r.isFunction(h)?a?h(t[0],t[1]):h(t):a?t[0]===u[0]?i[0]+" "+o[1]:t[1]===u[1]?i[1]+" "+o[0]:o[0]+" - "+o[1]:o},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var a=n[r],o=t.getDimensionInfo(a);if(!o.isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){p(a.color)&&!t.inRange&&(t.inRange={color:a.color.slice().reverse()}),t.inRange=t.inRange||{color:n.get("gradientColor")},f(this.stateList,function(e){var i=t[e];if(r.isString(i)){var n=o.get(i,"active",g); n?(t[e]={},t[e][i]=n):delete t[e]}},this)}function e(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},f(n,function(t,e){if(s.isValidType(e)){var i=o.get(e,"inactive",g);null!=i&&(r[e]=i,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}function i(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor");f(this.stateList,function(a){var o=this.itemSize,s=t[a];s||(s=t[a]={color:g?n:[n]}),null==s.symbol&&(s.symbol=e&&r.clone(e)||(g?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&r.clone(i)||(g?o[0]:[o[0],o[0]])),s.symbol=c(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var l=s.symbolSize;if(null!=l){var u=-(1/0);d(l,function(t){t>u&&(u=t)}),s.symbolSize=c(l,function(t){return m(t,[0,u],[0,o[0]],!0)})}},this)}var n=this.ecModel,a=this.option,l={inRange:a.inRange,outOfRange:a.outOfRange},u=a.target||(a.target={}),h=a.controller||(a.controller={});r.merge(u,l),r.merge(h,l);var g=this.isCategory();t.call(this,u),t.call(this,h),e.call(this,u,"inRange","outOfRange"),i.call(this,h)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v}),_=y;t.exports=_},function(t,e,i){var n=i(0),r={get:function(t,e,i){var r=n.clone((a[t]||{})[e]);return i&&n.isArray(r)?r[r.length-1]:r}},a={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},o=r;t.exports=o},function(t,e,i){var n=i(2),r=i(0),a=i(3),o=i(11),s=i(8),l=i(45),u=n.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,i,n){return this.visualMapModel=t,t.get("show")===!1?void this.group.removeAll():void this.doRender.apply(this,arguments)},renderBackground:function(t){var e=this.visualMapModel,i=o.normalizeCssArray(e.get("padding")||0),n=t.getBoundingRect();t.add(new a.Rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,i){function n(t){return u[t]}function a(t,e){u[t]=e}i=i||{};var o=i.forceState,s=this.visualMapModel,u={};if("symbol"===e&&(u.symbol=s.get("itemSymbol")),"color"===e){var h=s.get("contentColor");u.color=h}var c=s.controllerVisuals[o||s.getValueState(t)],d=l.prepareVisualTypes(c);return r.each(d,function(r){var o=c[r];i.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",o=c.__alphaForOpacity),l.dependsOn(r,e)&&o&&o.applyVisual(t,n,a)}),u[e]},positionGroup:function(t){var e=this.visualMapModel,i=this.api;s.positionElement(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:r.noop});t.exports=u},function(t,e,i){function n(t,e,i){var n=t.option,r=n.align;if(null!=r&&"auto"!==r)return r;for(var a={width:e.getWidth(),height:e.getHeight()},o="horizontal"===n.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[o],h=[0,null,10],c={},d=0;d<3;d++)c[l[1-o][d]]=h[d],c[u[d]]=2===d?i[0]:n[u[d]];var p=[["x","width",3],["y","height",0]][o],f=s(c,a,n.padding);return u[(f.margin[p[2]]||0)+f[p[0]]+.5*f[p[1]]<.5*a[p[1]]?0:1]}function r(t){return a.each(t||[],function(e){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null)}),t}var a=i(0),o=i(8),s=o.getLayoutRect;e.getItemAlign=n,e.convertDataIndex=r},function(t,e,i){var n=i(2),r={type:"selectDataRange",event:"dataRangeSelected",update:"update"};n.registerAction(r,function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})})},function(t,e,i){function n(t,e){var i=s(t);u(e,function(e,n){for(var r=i.length-1;r>=0;r--){var a=i[r];if(a[n])break}if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var s=o.getPercentRange();i[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}}),i.push(e)}function r(t){var e=s(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return u(i,function(t,i){for(var r=e.length-1;r>=0;r--){var t=e[r][i];if(t){n[i]=t;break}}}),n}function a(t){t[h]=null}function o(t){return s(t).length}function s(t){var e=t[h];return e||(e=t[h]=[{}]),e}var l=i(0),u=l.each,h="\0_ec_hist_store";e.push=n,e.pop=r,e.clear=a,e.count=o},function(t,e,i){function n(t){return a(t)}function r(){if(!u&&h){u=!0;var t=h.styleSheets;t.length<31?h.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}var a,o=i(15),s="urn:schemas-microsoft-com:vml",l="undefined"==typeof window?null:window,u=!1,h=l&&l.document;if(h&&!o.canvasSupported)try{!h.namespaces.zrvml&&h.namespaces.add("zrvml",s),a=function(t){return h.createElement("<zrvml:"+t+' class="zrvml">')}}catch(c){a=function(t){return h.createElement("<"+t+' xmlns="'+s+'" class="zrvml">')}}e.doc=h,e.createNode=n,e.initVML=r},function(t,e,i){var n;n=function(){return window}.call(e,i,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,i){var n;n=function(){return document}.call(e,i,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,i){t.exports=i(328)},function(t,e,i){i(329),i(408),i(409),i(410),i(412),i(414),i(417),i(419),i(421),i(423),i(425),i(427),i(429),i(432),i(434),i(734),i(736),i(741),i(742),i(744),i(747),i(749),i(752),i(754),i(756)},function(t,e,i){i(330),window.$=window.jQuery=i(13),i(332),i(333),i(334),i(335),i(336),i(337),i(338),i(340),i(341),i(342),i(344),i(351),i(353),i(355),i(356),i(404),i(406),i(407)},function(t,e,i){var n=i(331);document.addEventListener("DOMContentLoaded",function(){n.start()}),window.addEventListener("load",function(){var t=document.body,e=document.getElementById("loader");t.classList.add("loaded"),e.classList.add("loader-fade"),n.done()},!0)},function(t,e,i){var n,r;!function(a,o){n=o,r="function"==typeof n?n.call(e,i,e,t):n,!(void 0!==r&&(t.exports=r))}(this,function(){function t(t,e,i){return t<e?e:t>i?i:t}function e(t){return 100*(-1+t)}function i(t,i,n){var r;return r="translate3d"===u.positionUsing?{transform:"translate3d("+e(t)+"%,0,0)"}:"translate"===u.positionUsing?{transform:"translate("+e(t)+"%,0)"}:{"margin-left":e(t)+"%"},r.transition="all "+i+"ms "+n,r}function n(t,e){var i="string"==typeof t?t:o(t);return i.indexOf(" "+e+" ")>=0}function r(t,e){var i=o(t),r=i+e;n(i,e)||(t.className=r.substring(1))}function a(t,e){var i,r=o(t);n(t,e)&&(i=r.replace(" "+e+" "," "),t.className=i.substring(1,i.length-1))}function o(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function s(t){t&&t.parentNode&&t.parentNode.removeChild(t)}var l={};l.version="0.2.0";var u=l.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};l.configure=function(t){var e,i;for(e in t)i=t[e],void 0!==i&&t.hasOwnProperty(e)&&(u[e]=i);return this},l.status=null,l.set=function(e){var n=l.isStarted();e=t(e,u.minimum,1),l.status=1===e?null:e;var r=l.render(!n),a=r.querySelector(u.barSelector),o=u.speed,s=u.easing;return r.offsetWidth,h(function(t){""===u.positionUsing&&(u.positionUsing=l.getPositioningCSS()),c(a,i(e,o,s)),1===e?(c(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){c(r,{transition:"all "+o+"ms linear",opacity:0}),setTimeout(function(){l.remove(),t()},o)},o)):setTimeout(t,o)}),this},l.isStarted=function(){return"number"==typeof l.status},l.start=function(){l.status||l.set(0);var t=function(){setTimeout(function(){l.status&&(l.trickle(),t())},u.trickleSpeed)};return u.trickle&&t(),this},l.done=function(t){return t||l.status?l.inc(.3+.5*Math.random()).set(1):this},l.inc=function(e){var i=l.status;return i?("number"!=typeof e&&(e=(1-i)*t(Math.random()*i,.1,.95)),i=t(i+e,0,.994),l.set(i)):l.start()},l.trickle=function(){return l.inc(Math.random()*u.trickleRate)},function(){var t=0,e=0;l.promise=function(i){return i&&"resolved"!==i.state()?(0===e&&l.start(),t++,e++,i.always(function(){e--,0===e?(t=0,l.done()):l.set((t-e)/t)}),this):this}}(),l.render=function(t){if(l.isRendered())return document.getElementById("nprogress");r(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=u.template;var n,a=i.querySelector(u.barSelector),o=t?"-100":e(l.status||0),h=document.querySelector(u.parent);return c(a,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),u.showSpinner||(n=i.querySelector(u.spinnerSelector),n&&s(n)),h!=document.body&&r(h,"nprogress-custom-parent"),h.appendChild(i),i},l.remove=function(){a(document.documentElement,"nprogress-busy"),a(document.querySelector(u.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&s(t)},l.isRendered=function(){return!!document.getElementById("nprogress")},l.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var h=function(){function t(){var i=e.shift();i&&i(t)}var e=[];return function(i){e.push(i),1==e.length&&t()}}(),c=function(){function t(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})}function e(t){var e=document.body.style;if(t in e)return t;for(var i,n=r.length,a=t.charAt(0).toUpperCase()+t.slice(1);n--;)if(i=r[n]+a,i in e)return i;return t}function i(i){return i=t(i),a[i]||(a[i]=e(i))}function n(t,e,n){e=i(e),t.style[e]=n}var r=["Webkit","O","Moz","ms"],a={};return function(t,e){var i,r,a=arguments;if(2==a.length)for(i in e)r=e[i],void 0!==r&&e.hasOwnProperty(i)&&n(t,i,r);else n(t,a[1],a[2])}}();return l})},function(t,e){!function(t,e,i){function n(t){var e=S.className,i=w._config.classPrefix||"";if(k&&(e=e.baseVal),w._config.enableJSClass){var n=new RegExp("(^|\\s)"+i+"no-js(\\s|$)");e=e.replace(n,"$1"+i+"js$2")}w._config.enableClasses&&(e+=" "+i+t.join(" "+i),k?S.className.baseVal=e:S.className=e)}function r(t,e){return typeof t===e}function a(){var t,e,i,n,a,o,s;for(var l in b)if(b.hasOwnProperty(l)){if(t=[],e=b[l],e.name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(i=0;i<e.options.aliases.length;i++)t.push(e.options.aliases[i].toLowerCase());for(n=r(e.fn,"function")?e.fn():e.fn,a=0;a<t.length;a++)o=t[a],s=o.split("."),1===s.length?w[s[0]]=n:(!w[s[0]]||w[s[0]]instanceof Boolean||(w[s[0]]=new Boolean(w[s[0]])),w[s[0]][s[1]]=n),_.push((n?"":"no-")+s.join("-"))}}function o(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):k?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function s(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,i){return e+i.toUpperCase()}).replace(/^-/,"")}function l(t,e){return!!~(""+t).indexOf(e)}function u(){var t=e.body;return t||(t=o(k?"svg":"body"),t.fake=!0),t}function h(t,i,n,r){var a,s,l,h,c="modernizr",d=o("div"),p=u();if(parseInt(n,10))for(;n--;)l=o("div"),l.id=r?r[n]:c+(n+1),d.appendChild(l);return a=o("style"),a.type="text/css",a.id="s"+c,(p.fake?p:d).appendChild(a),p.appendChild(d),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(e.createTextNode(t)),d.id=c,p.fake&&(p.style.background="",p.style.overflow="hidden",h=S.style.overflow,S.style.overflow="hidden",S.appendChild(p)),s=i(d,t),p.fake?(p.parentNode.removeChild(p),S.style.overflow=h,S.offsetHeight):d.parentNode.removeChild(d),!!s}function c(t,e){return function(){return t.apply(e,arguments)}}function d(t,e,i){var n;for(var a in t)if(t[a]in e)return i===!1?t[a]:(n=e[t[a]],r(n,"function")?c(n,i||e):n);return!1}function p(e,i,n){var r;if("getComputedStyle"in t){r=getComputedStyle.call(t,e,i);var a=t.console;if(null!==r)n&&(r=r.getPropertyValue(n));else if(a){var o=a.error?"error":"log";a[o].call(a,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else r=!i&&e.currentStyle&&e.currentStyle[n];return r}function f(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function g(e,n){var r=e.length;if("CSS"in t&&"supports"in t.CSS){for(;r--;)if(t.CSS.supports(f(e[r]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var a=[];r--;)a.push("("+f(e[r])+":"+n+")");return a=a.join(" or "),h("@supports ("+a+") { #modernizr { position: absolute; } }",function(t){return"absolute"==p(t,null,"position")})}return i}function m(t,e,n,a){function u(){c&&(delete W.style,delete W.modElem)}if(a=!r(a,"undefined")&&a,!r(n,"undefined")){var h=g(t,n);if(!r(h,"undefined"))return h}for(var c,d,p,f,m,v=["modernizr","tspan","samp"];!W.style&&v.length;)c=!0,W.modElem=o(v.shift()),W.style=W.modElem.style;for(p=t.length,d=0;p>d;d++)if(f=t[d],m=W.style[f],l(f,"-")&&(f=s(f)),W.style[f]!==i){if(a||r(n,"undefined"))return u(),"pfx"!=e||f;try{W.style[f]=n}catch(y){}if(W.style[f]!=m)return u(),"pfx"!=e||f}return u(),!1}function v(t,e,i,n,a){var o=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+H.join(o+" ")+o).split(" ");return r(e,"string")||r(e,"undefined")?m(s,e,n,a):(s=(t+" "+T.join(o+" ")+o).split(" "),d(s,e,i))}function y(t,e,n){return v(t,i,i,e,n)}var _=[],b=[],x={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout(function(){e(i[t])},0)},addTest:function(t,e,i){b.push({name:t,fn:e,options:i})},addAsyncTest:function(t){b.push({name:null,fn:t})}},w=function(){};w.prototype=x,w=new w,w.addTest("applicationcache","applicationCache"in t),w.addTest("cors","XMLHttpRequest"in t&&"withCredentials"in new XMLHttpRequest),w.addTest("ie8compat",!t.addEventListener&&!!e.documentMode&&7===e.documentMode),w.addTest("history",function(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history)}),w.addTest("json","JSON"in t&&"parse"in JSON&&"stringify"in JSON),w.addTest("postmessage","postMessage"in t),w.addTest("strictmode",function(){"use strict";return!this}()),w.addTest("devicemotion","DeviceMotionEvent"in t),w.addTest("deviceorientation","DeviceOrientationEvent"in t),w.addTest("filereader",!!(t.File&&t.FileList&&t.FileReader)),w.addTest("localstorage",function(){var t="modernizr";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(e){return!1}}),w.addTest("sessionstorage",function(){var t="modernizr";try{return sessionStorage.setItem(t,t),sessionStorage.removeItem(t),!0}catch(e){return!1}});var M=x._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];x._prefixes=M;var S=e.documentElement,k="svg"===S.nodeName.toLowerCase(),D="Moz O ms Webkit",T=x._config.usePrefixes?D.toLowerCase().split(" "):[];x._domPrefixes=T;var L=function(){function t(t,e){var r;return!!t&&(e&&"string"!=typeof e||(e=o(e||"div")),t="on"+t,r=t in e,!r&&n&&(e.setAttribute||(e=o("div")),e.setAttribute(t,""),r="function"==typeof e[t],e[t]!==i&&(e[t]=i),e.removeAttribute(t)),r)}var n=!("onblur"in e.documentElement);return t}();x.hasEvent=L,w.addTest("hashchange",function(){return L("hashchange",t)!==!1&&(e.documentMode===i||e.documentMode>7)}),w.addTest("cssgradients",function(){for(var t,e="background-image:",i="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="",r=0,a=M.length-1;a>r;r++)t=0===r?"to ":"",n+=e+M[r]+"linear-gradient("+t+"left top, #9f9, white);";w._config.usePrefixes&&(n+=e+"-webkit-"+i);var s=o("a"),l=s.style;return l.cssText=n,(""+l.backgroundImage).indexOf("gradient")>-1}),w.addTest("multiplebgs",function(){var t=o("a").style;return t.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(t.background)}),w.addTest("opacity",function(){var t=o("a").style;return t.cssText=M.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),w.addTest("cssremunit",function(){var t=o("a").style;try{t.fontSize="3rem"}catch(e){}return/rem/.test(t.fontSize)}),w.addTest("rgba",function(){var t=o("a").style;return t.cssText="background-color:rgba(150,255,150,.5)",(""+t.backgroundColor).indexOf("rgba")>-1}),w.addTest("fileinput",function(){if(navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle\/(1.0|2.0|2.5|3.0))/))return!1;var t=o("input");return t.type="file",!t.disabled}),w.addTest("formattribute",function(){var t,i=o("form"),n=o("input"),r=o("div"),a="formtest"+(new Date).getTime(),s=!1;i.id=a;try{n.setAttribute("form",a)}catch(l){e.createAttribute&&(t=e.createAttribute("form"),t.nodeValue=a,n.setAttributeNode(t))}return r.appendChild(i),r.appendChild(n),S.appendChild(r),s=i.elements&&1===i.elements.length&&n.form==i,r.parentNode.removeChild(r),s}),w.addTest("placeholder","placeholder"in o("input")&&"placeholder"in o("textarea"));var C=o("input"),I="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),A={};w.input=function(e){for(var i=0,n=e.length;n>i;i++)A[e[i]]=!!(e[i]in C);return A.list&&(A.list=!(!o("datalist")||!t.HTMLDataListElement)),A}(I);var P="search tel url email datetime date month week time datetime-local number range color".split(" "),E={};w.inputtypes=function(t){for(var n,r,a,o=t.length,s="1)",l=0;o>l;l++)C.setAttribute("type",n=t[l]),a="text"!==C.type&&"style"in C,a&&(C.value=s,C.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(n)&&C.style.WebkitAppearance!==i?(S.appendChild(C),r=e.defaultView,a=r.getComputedStyle&&"textfield"!==r.getComputedStyle(C,null).WebkitAppearance&&0!==C.offsetHeight,S.removeChild(C)):/^(search|tel)$/.test(n)||(a=/^(url|email)$/.test(n)?C.checkValidity&&C.checkValidity()===!1:C.value!=s)),E[t[l]]=!!a;return E}(P),w.addTest("hsla",function(){var t=o("a").style;return t.cssText="background-color:hsla(120,40%,100%,.5)",l(t.backgroundColor,"rgba")||l(t.backgroundColor,"hsla")});var O="CSS"in t&&"supports"in t.CSS,R="supportsCSS"in t;w.addTest("supports",O||R);var H=x._config.usePrefixes?D.split(" "):[];x._cssomPrefixes=H;var z=function(e){var n,r=M.length,a=t.CSSRule;if("undefined"==typeof a)return i;if(!e)return!1;if(e=e.replace(/^@/,""),n=e.replace(/-/g,"_").toUpperCase()+"_RULE",n in a)return"@"+e;for(var o=0;r>o;o++){var s=M[o],l=s.toUpperCase()+"_"+n;if(l in a)return"@-"+s.toLowerCase()+"-"+e}return!1};x.atRule=z;var Y=x.testStyles=h,N=function(){var t=navigator.userAgent,e=t.match(/w(eb)?osbrowser/gi),i=t.match(/windows phone/gi)&&t.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9;return e||i}();N?w.addTest("fontface",!1):Y('@font-face {font-family:"font";src:url("https://")}',function(t,i){var n=e.getElementById("smodernizr"),r=n.sheet||n.styleSheet,a=r?r.cssRules&&r.cssRules[0]?r.cssRules[0].cssText:r.cssText||"":"",o=/src/i.test(a)&&0===a.indexOf(i.split(" ")[0]);w.addTest("fontface",o)}),Y('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(t){w.addTest("generatedcontent",t.offsetHeight>=6)}),Y("#modernizr{overflow: scroll; width: 40px; height: 40px; }#"+M.join("scrollbar{width:10px} #modernizr::").split("#").slice(1).join("#")+"scrollbar{width:10px}",function(t){w.addTest("cssscrollbar","scrollWidth"in t&&30==t.scrollWidth)}),w.addTest("formvalidation",function(){var e=o("form");if(!("checkValidity"in e&&"addEventListener"in e))return!1;if("reportValidity"in e)return!0;var i,n=!1;return w.formvalidationapi=!0,e.addEventListener("submit",function(e){(!t.opera||t.operamini)&&e.preventDefault(),e.stopPropagation()},!1),e.innerHTML='<input name="modTest" required="required" /><button></button>',Y("#modernizr form{position:absolute;top:-99999em}",function(t){t.appendChild(e),i=e.getElementsByTagName("input")[0],i.addEventListener("invalid",function(t){n=!0,t.preventDefault(),t.stopPropagation()},!1),w.formvalidationmessage=!!i.validationMessage,e.getElementsByTagName("button")[0].click()}),n});var F={elem:o("modernizr")};w._q.push(function(){delete F.elem});var W={style:F.elem.style};w._q.unshift(function(){delete W.style});var B=x.testProp=function(t,e,n){return m([t],i,e,n)};w.addTest("textshadow",B("textShadow","1px 1px")),x.testAllProps=v;var j=x.prefixed=function(t,e,i){return 0===t.indexOf("@")?z(t):(-1!=t.indexOf("-")&&(t=s(t)),e?v(t,e,i):v(t,"pfx"))};w.addTest("fullscreen",!(!j("exitFullscreen",e,!1)&&!j("cancelFullScreen",e,!1))),w.addTest("filesystem",!!j("requestFileSystem",t)),x.testAllProps=y,w.addTest("cssanimations",y("animationName","a",!0)),w.addTest("backgroundsize",y("backgroundSize","100%",!0)),w.addTest("borderradius",y("borderRadius","0px",!0)),w.addTest("borderimage",y("borderImage","url() 1",!0)),w.addTest("boxshadow",y("boxShadow","1px 1px",!0)),function(){w.addTest("csscolumns",function(){var t=!1,e=y("columnCount");try{t=!!e,t&&(t=new Boolean(t))}catch(i){}return t});for(var t,e,i=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],n=0;n<i.length;n++)t=i[n].toLowerCase(),e=y("column"+i[n]),("breakbefore"===t||"breakafter"===t||"breakinside"==t)&&(e=e||y(i[n])),w.addTest("csscolumns."+t,e)}(),w.addTest("flexbox",y("flexBasis","1px",!0)),w.addTest("flexboxlegacy",y("boxDirection","reverse",!0)),w.addTest("overflowscrolling",y("overflowScrolling","touch",!0)),w.addTest("cssreflections",y("boxReflect","above",!0)),w.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&y("transform","scale(1)",!0)}),w.addTest("csstransforms3d",function(){var t=!!y("perspective","1px",!0),e=w._config.usePrefixes;if(t&&(!e||"webkitPerspective"in S.style)){var i,n="#modernizr{width:0;height:0}";w.supports?i="@supports (perspective: 1px)":(i="@media (transform-3d)",e&&(i+=",(-webkit-transform-3d)")),i+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",Y(n+i,function(e){t=7===e.offsetWidth&&18===e.offsetHeight})}return t}),w.addTest("csstransitions",y("transition","all",!0)),a(),n(_),delete x.addTest,delete x.addAsyncTest;for(var V=0;V<w._q.length;V++)w._q[V]();t.Modernizr=w}(window,document)},function(t,e,i){var n,r;!function(a){n=[i(13)],r=function(t){return a(t)}.apply(e,n),!(void 0!==r&&(t.exports=r))}(function(t){function e(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375}t.easing.jswing=t.easing.swing;var i=Math.pow,n=Math.sqrt,r=Math.sin,a=Math.cos,o=Math.PI,s=1.70158,l=1.525*s,u=s+1,h=2*o/3,c=2*o/4.5;t.extend(t.easing,{def:"easeOutQuad",swing:function(e){return t.easing[t.easing.def](e)},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return 1-(1-t)*(1-t)},easeInOutQuad:function(t){return t<.5?2*t*t:1-i(-2*t+2,2)/2},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1-i(1-t,3)},easeInOutCubic:function(t){return t<.5?4*t*t*t:1-i(-2*t+2,3)/2},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1-i(1-t,4)},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-i(-2*t+2,4)/2},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1-i(1-t,5)},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1-i(-2*t+2,5)/2},easeInSine:function(t){return 1-a(t*o/2)},easeOutSine:function(t){return r(t*o/2)},easeInOutSine:function(t){return-(a(o*t)-1)/2},easeInExpo:function(t){return 0===t?0:i(2,10*t-10)},easeOutExpo:function(t){return 1===t?1:1-i(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:t<.5?i(2,20*t-10)/2:(2-i(2,-20*t+10))/2},easeInCirc:function(t){return 1-n(1-i(t,2))},easeOutCirc:function(t){return n(1-i(t-1,2))},easeInOutCirc:function(t){return t<.5?(1-n(1-i(2*t,2)))/2:(n(1-i(-2*t+2,2))+1)/2},easeInElastic:function(t){return 0===t?0:1===t?1:-i(2,10*t-10)*r((10*t-10.75)*h)},easeOutElastic:function(t){return 0===t?0:1===t?1:i(2,-10*t)*r((10*t-.75)*h)+1},easeInOutElastic:function(t){return 0===t?0:1===t?1:t<.5?-(i(2,20*t-10)*r((20*t-11.125)*c))/2:i(2,-20*t+10)*r((20*t-11.125)*c)/2+1},easeInBack:function(t){return u*t*t*t-s*t*t},easeOutBack:function(t){return 1+u*i(t-1,3)+s*i(t-1,2)},easeInOutBack:function(t){return t<.5?i(2*t,2)*(2*(l+1)*t-l)/2:(i(2*t-2,2)*((l+1)*(2*t-2)+l)+2)/2},easeInBounce:function(t){return 1-e(1-t)},easeOutBounce:e,easeInOutBounce:function(t){return t<.5?(1-e(1-2*t))/2:(1+e(2*t-1))/2}})})},function(t,e,i){i(116),$(function(){"use strict";$('[data-toggle="popover"]').length&&$('[data-toggle="popover"]').popover()})},function(t,e,i){!function(t,n){n(e,i(13),i(116))}(this,function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),n.forEach(function(e){a(t,e,i[e])})}return t}function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}e=e&&e.hasOwnProperty("default")?e["default"]:e,i=i&&i.hasOwnProperty("default")?i["default"]:i;var l=function(t){function e(t){return{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function i(){return{bindType:a,delegateType:a,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function n(e){var i=this,n=!1;return t(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(i)},e),this}function r(){t.fn.emulateTransitionEnd=n,t.event.special[l.TRANSITION_END]=i()}var a="transitionend",o=1e6,s=1e3,l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do t+=~~(Math.random()*o);while(document.getElementById(t));return t},getSelectorFromElement:function(e){var i=e.getAttribute("data-target");i&&"#"!==i||(i=e.getAttribute("href")||"");try{var n=t(document).find(i);return n.length>0?i:null}catch(r){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var i=t(e).css("transition-duration"),n=parseFloat(i);return n?(i=i.split(",")[0],parseFloat(i)*s):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger(a)},supportsTransitionEnd:function(){return Boolean(a)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,i,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var a=n[r],o=i[r],s=o&&l.isElement(o)?"element":e(o);if(!new RegExp(a).test(s))throw new Error(t.toUpperCase()+": "+('Option "'+r+'" provided type "'+s+'" ')+('but expected type "'+a+'".'))}}};return r(),l}(e),u=function(t){var e="alert",i="4.1.1",n="bs.alert",a="."+n,o=".data-api",s=t.fn[e],u={DISMISS:'[data-dismiss="alert"]'},h={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+o},c={ALERT:"alert",FADE:"fade",SHOW:"show"},d=function(){function e(t){this._element=t}var a=e.prototype;return a.close=function(t){var e=this._element;t&&(e=this._getRootElement(t));var i=this._triggerCloseEvent(e);i.isDefaultPrevented()||this._removeElement(e)},a.dispose=function(){t.removeData(this._element,n),this._element=null},a._getRootElement=function(e){var i=l.getSelectorFromElement(e),n=!1;return i&&(n=t(i)[0]),n||(n=t(e).closest("."+c.ALERT)[0]),n},a._triggerCloseEvent=function(e){var i=t.Event(h.CLOSE);return t(e).trigger(i),i},a._removeElement=function(e){var i=this;if(t(e).removeClass(c.SHOW),!t(e).hasClass(c.FADE))return void this._destroyElement(e);var n=l.getTransitionDurationFromElement(e);t(e).one(l.TRANSITION_END,function(t){return i._destroyElement(e,t)}).emulateTransitionEnd(n)},a._destroyElement=function(e){t(e).detach().trigger(h.CLOSED).remove()},e._jQueryInterface=function(i){return this.each(function(){var r=t(this),a=r.data(n);a||(a=new e(this),r.data(n,a)),"close"===i&&a[i](this)})},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},r(e,null,[{key:"VERSION",get:function(){return i}}]),e}();return t(document).on(h.CLICK_DATA_API,u.DISMISS,d._handleDismiss(new d)),t.fn[e]=d._jQueryInterface,t.fn[e].Constructor=d,t.fn[e].noConflict=function(){return t.fn[e]=s,d._jQueryInterface},d}(e),h=function(t){var e="button",i="4.1.1",n="bs.button",a="."+n,o=".data-api",s=t.fn[e],l={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},u={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},h={CLICK_DATA_API:"click"+a+o,FOCUS_BLUR_DATA_API:"focus"+a+o+" "+("blur"+a+o)},c=function(){function e(t){this._element=t}var a=e.prototype;return a.toggle=function(){var e=!0,i=!0,n=t(this._element).closest(u.DATA_TOGGLE)[0];if(n){var r=t(this._element).find(u.INPUT)[0];if(r){if("radio"===r.type)if(r.checked&&t(this._element).hasClass(l.ACTIVE))e=!1;else{var a=t(n).find(u.ACTIVE)[0];a&&t(a).removeClass(l.ACTIVE)}if(e){if(r.hasAttribute("disabled")||n.hasAttribute("disabled")||r.classList.contains("disabled")||n.classList.contains("disabled"))return;r.checked=!t(this._element).hasClass(l.ACTIVE),t(r).trigger("change")}r.focus(),i=!1}}i&&this._element.setAttribute("aria-pressed",!t(this._element).hasClass(l.ACTIVE)),e&&t(this._element).toggleClass(l.ACTIVE)},a.dispose=function(){t.removeData(this._element,n),this._element=null},e._jQueryInterface=function(i){return this.each(function(){var r=t(this).data(n);r||(r=new e(this),t(this).data(n,r)),"toggle"===i&&r[i]()})},r(e,null,[{key:"VERSION",get:function(){return i}}]),e}();return t(document).on(h.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var i=e.target;t(i).hasClass(l.BUTTON)||(i=t(i).closest(u.BUTTON)),c._jQueryInterface.call(t(i),"toggle")}).on(h.FOCUS_BLUR_DATA_API,u.DATA_TOGGLE_CARROT,function(e){var i=t(e.target).closest(u.BUTTON)[0];t(i).toggleClass(l.FOCUS,/^focus(in)?$/.test(e.type))}),t.fn[e]=c._jQueryInterface,t.fn[e].Constructor=c,t.fn[e].noConflict=function(){return t.fn[e]=s,c._jQueryInterface},c}(e),c=function(t){var e="carousel",i="4.1.1",n="bs.carousel",a="."+n,s=".data-api",u=t.fn[e],h=37,c=39,d=500,p={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},f={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},g={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},m={SLIDE:"slide"+a,SLID:"slid"+a,KEYDOWN:"keydown"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a,TOUCHEND:"touchend"+a,LOAD_DATA_API:"load"+a+s,CLICK_DATA_API:"click"+a+s},v={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},y={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},_=function(){function s(e,i){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(i),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(y.INDICATORS)[0], this._addEventListeners()}var u=s.prototype;return u.next=function(){this._isSliding||this._slide(g.NEXT)},u.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},u.prev=function(){this._isSliding||this._slide(g.PREV)},u.pause=function(e){e||(this._isPaused=!0),t(this._element).find(y.NEXT_PREV)[0]&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},u.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},u.to=function(e){var i=this;this._activeElement=t(this._element).find(y.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0)){if(this._isSliding)return void t(this._element).one(m.SLID,function(){return i.to(e)});if(n===e)return this.pause(),void this.cycle();var r=e>n?g.NEXT:g.PREV;this._slide(r,this._items[e])}},u.dispose=function(){t(this._element).off(a),t.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},u._getConfig=function(t){return t=o({},p,t),l.typeCheckConfig(e,t,f),t},u._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(m.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(t(this._element).on(m.MOUSEENTER,function(t){return e.pause(t)}).on(m.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&t(this._element).on(m.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},d+e._config.interval)}))},u._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case h:t.preventDefault(),this.prev();break;case c:t.preventDefault(),this.next()}},u._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(y.ITEM)),this._items.indexOf(e)},u._getItemByDirection=function(t,e){var i=t===g.NEXT,n=t===g.PREV,r=this._getItemIndex(e),a=this._items.length-1,o=n&&0===r||i&&r===a;if(o&&!this._config.wrap)return e;var s=t===g.PREV?-1:1,l=(r+s)%this._items.length;return l===-1?this._items[this._items.length-1]:this._items[l]},u._triggerSlideEvent=function(e,i){var n=this._getItemIndex(e),r=this._getItemIndex(t(this._element).find(y.ACTIVE_ITEM)[0]),a=t.Event(m.SLIDE,{relatedTarget:e,direction:i,from:r,to:n});return t(this._element).trigger(a),a},u._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(y.ACTIVE).removeClass(v.ACTIVE);var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&t(i).addClass(v.ACTIVE)}},u._slide=function(e,i){var n,r,a,o=this,s=t(this._element).find(y.ACTIVE_ITEM)[0],u=this._getItemIndex(s),h=i||s&&this._getItemByDirection(e,s),c=this._getItemIndex(h),d=Boolean(this._interval);if(e===g.NEXT?(n=v.LEFT,r=v.NEXT,a=g.LEFT):(n=v.RIGHT,r=v.PREV,a=g.RIGHT),h&&t(h).hasClass(v.ACTIVE))return void(this._isSliding=!1);var p=this._triggerSlideEvent(h,a);if(!p.isDefaultPrevented()&&s&&h){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(h);var f=t.Event(m.SLID,{relatedTarget:h,direction:a,from:u,to:c});if(t(this._element).hasClass(v.SLIDE)){t(h).addClass(r),l.reflow(h),t(s).addClass(n),t(h).addClass(n);var _=l.getTransitionDurationFromElement(s);t(s).one(l.TRANSITION_END,function(){t(h).removeClass(n+" "+r).addClass(v.ACTIVE),t(s).removeClass(v.ACTIVE+" "+r+" "+n),o._isSliding=!1,setTimeout(function(){return t(o._element).trigger(f)},0)}).emulateTransitionEnd(_)}else t(s).removeClass(v.ACTIVE),t(h).addClass(v.ACTIVE),this._isSliding=!1,t(this._element).trigger(f);d&&this.cycle()}},s._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),r=o({},p,t(this).data());"object"==typeof e&&(r=o({},r,e));var a="string"==typeof e?e:r.slide;if(i||(i=new s(this,r),t(this).data(n,i)),"number"==typeof e)i.to(e);else if("string"==typeof a){if("undefined"==typeof i[a])throw new TypeError('No method named "'+a+'"');i[a]()}else r.interval&&(i.pause(),i.cycle())})},s._dataApiClickHandler=function(e){var i=l.getSelectorFromElement(this);if(i){var r=t(i)[0];if(r&&t(r).hasClass(v.CAROUSEL)){var a=o({},t(r).data(),t(this).data()),u=this.getAttribute("data-slide-to");u&&(a.interval=!1),s._jQueryInterface.call(t(r),a),u&&t(r).data(n).to(u),e.preventDefault()}}},r(s,null,[{key:"VERSION",get:function(){return i}},{key:"Default",get:function(){return p}}]),s}();return t(document).on(m.CLICK_DATA_API,y.DATA_SLIDE,_._dataApiClickHandler),t(window).on(m.LOAD_DATA_API,function(){t(y.DATA_RIDE).each(function(){var e=t(this);_._jQueryInterface.call(e,e.data())})}),t.fn[e]=_._jQueryInterface,t.fn[e].Constructor=_,t.fn[e].noConflict=function(){return t.fn[e]=u,_._jQueryInterface},_}(e),d=function(t){var e="collapse",i="4.1.1",n="bs.collapse",a="."+n,s=".data-api",u=t.fn[e],h={toggle:!0,parent:""},c={toggle:"boolean",parent:"(string|element)"},d={SHOW:"show"+a,SHOWN:"shown"+a,HIDE:"hide"+a,HIDDEN:"hidden"+a,CLICK_DATA_API:"click"+a+s},p={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},f={WIDTH:"width",HEIGHT:"height"},g={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},m=function(){function a(e,i){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(i),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],'+('[data-toggle="collapse"][data-target="#'+e.id+'"]')));for(var n=t(g.DATA_TOGGLE),r=0;r<n.length;r++){var a=n[r],o=l.getSelectorFromElement(a);null!==o&&t(o).filter(e).length>0&&(this._selector=o,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var s=a.prototype;return s.toggle=function(){t(this._element).hasClass(p.SHOW)?this.hide():this.show()},s.show=function(){var e=this;if(!this._isTransitioning&&!t(this._element).hasClass(p.SHOW)){var i,r;if(this._parent&&(i=t.makeArray(t(this._parent).find(g.ACTIVES).filter('[data-parent="'+this._config.parent+'"]')),0===i.length&&(i=null)),!(i&&(r=t(i).not(this._selector).data(n),r&&r._isTransitioning))){var o=t.Event(d.SHOW);if(t(this._element).trigger(o),!o.isDefaultPrevented()){i&&(a._jQueryInterface.call(t(i).not(this._selector),"hide"),r||t(i).data(n,null));var s=this._getDimension();t(this._element).removeClass(p.COLLAPSE).addClass(p.COLLAPSING),this._element.style[s]=0,this._triggerArray.length>0&&t(this._triggerArray).removeClass(p.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var u=function(){t(e._element).removeClass(p.COLLAPSING).addClass(p.COLLAPSE).addClass(p.SHOW),e._element.style[s]="",e.setTransitioning(!1),t(e._element).trigger(d.SHOWN)},h=s[0].toUpperCase()+s.slice(1),c="scroll"+h,f=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,u).emulateTransitionEnd(f),this._element.style[s]=this._element[c]+"px"}}}},s.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(p.SHOW)){var i=t.Event(d.HIDE);if(t(this._element).trigger(i),!i.isDefaultPrevented()){var n=this._getDimension();if(this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",l.reflow(this._element),t(this._element).addClass(p.COLLAPSING).removeClass(p.COLLAPSE).removeClass(p.SHOW),this._triggerArray.length>0)for(var r=0;r<this._triggerArray.length;r++){var a=this._triggerArray[r],o=l.getSelectorFromElement(a);if(null!==o){var s=t(o);s.hasClass(p.SHOW)||t(a).addClass(p.COLLAPSED).attr("aria-expanded",!1)}}this.setTransitioning(!0);var u=function(){e.setTransitioning(!1),t(e._element).removeClass(p.COLLAPSING).addClass(p.COLLAPSE).trigger(d.HIDDEN)};this._element.style[n]="";var h=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,u).emulateTransitionEnd(h)}}},s.setTransitioning=function(t){this._isTransitioning=t},s.dispose=function(){t.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s._getConfig=function(t){return t=o({},h,t),t.toggle=Boolean(t.toggle),l.typeCheckConfig(e,t,c),t},s._getDimension=function(){var e=t(this._element).hasClass(f.WIDTH);return e?f.WIDTH:f.HEIGHT},s._getParent=function(){var e=this,i=null;l.isElement(this._config.parent)?(i=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(i=this._config.parent[0])):i=t(this._config.parent)[0];var n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(i).find(n).each(function(t,i){e._addAriaAndCollapsedClass(a._getTargetFromElement(i),[i])}),i},s._addAriaAndCollapsedClass=function(e,i){if(e){var n=t(e).hasClass(p.SHOW);i.length>0&&t(i).toggleClass(p.COLLAPSED,!n).attr("aria-expanded",n)}},a._getTargetFromElement=function(e){var i=l.getSelectorFromElement(e);return i?t(i)[0]:null},a._jQueryInterface=function(e){return this.each(function(){var i=t(this),r=i.data(n),s=o({},h,i.data(),"object"==typeof e&&e?e:{});if(!r&&s.toggle&&/show|hide/.test(e)&&(s.toggle=!1),r||(r=new a(this,s),i.data(n,r)),"string"==typeof e){if("undefined"==typeof r[e])throw new TypeError('No method named "'+e+'"');r[e]()}})},r(a,null,[{key:"VERSION",get:function(){return i}},{key:"Default",get:function(){return h}}]),a}();return t(document).on(d.CLICK_DATA_API,g.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=t(this),r=l.getSelectorFromElement(this);t(r).each(function(){var e=t(this),r=e.data(n),a=r?"toggle":i.data();m._jQueryInterface.call(e,a)})}),t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=u,m._jQueryInterface},m}(e),p=function(t){var e="dropdown",n="4.1.1",a="bs.dropdown",s="."+a,u=".data-api",h=t.fn[e],c=27,d=32,p=9,f=38,g=40,m=3,v=new RegExp(f+"|"+g+"|"+c),y={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,CLICK:"click"+s,CLICK_DATA_API:"click"+s+u,KEYDOWN_DATA_API:"keydown"+s+u,KEYUP_DATA_API:"keyup"+s+u},_={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},b={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},x={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},w={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},M={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},S=function(){function u(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var h=u.prototype;return h.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(_.DISABLED)){var e=u._getParentFromElement(this._element),n=t(this._menu).hasClass(_.SHOW);if(u._clearMenus(),!n){var r={relatedTarget:this._element},a=t.Event(y.SHOW,r);if(t(e).trigger(a),!a.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof i)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var o=this._element;"parent"===this._config.reference?o=e:l.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(e).addClass(_.POSITION_STATIC),this._popper=new i(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(e).closest(b.NAVBAR_NAV).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(_.SHOW),t(e).toggleClass(_.SHOW).trigger(t.Event(y.SHOWN,r))}}}},h.dispose=function(){t.removeData(this._element,a),t(this._element).off(s),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},h.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},h._addEventListeners=function(){var e=this;t(this._element).on(y.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},h._getConfig=function(i){return i=o({},this.constructor.Default,t(this._element).data(),i),l.typeCheckConfig(e,i,this.constructor.DefaultType),i},h._getMenuElement=function(){if(!this._menu){var e=u._getParentFromElement(this._element);this._menu=t(e).find(b.MENU)[0]}return this._menu},h._getPlacement=function(){var e=t(this._element).parent(),i=x.BOTTOM;return e.hasClass(_.DROPUP)?(i=x.TOP,t(this._menu).hasClass(_.MENURIGHT)&&(i=x.TOPEND)):e.hasClass(_.DROPRIGHT)?i=x.RIGHT:e.hasClass(_.DROPLEFT)?i=x.LEFT:t(this._menu).hasClass(_.MENURIGHT)&&(i=x.BOTTOMEND),i},h._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},h._getPopperConfig=function(){var t=this,e={};"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=o({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset;var i={placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(i.modifiers.applyStyle={enabled:!1}),i},u._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(a),n="object"==typeof e?e:null;if(i||(i=new u(this,n),t(this).data(a,i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},u._clearMenus=function(e){if(!e||e.which!==m&&("keyup"!==e.type||e.which===p))for(var i=t.makeArray(t(b.DATA_TOGGLE)),n=0;n<i.length;n++){var r=u._getParentFromElement(i[n]),o=t(i[n]).data(a),s={relatedTarget:i[n]};if(o){var l=o._menu;if(t(r).hasClass(_.SHOW)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===p)&&t.contains(r,e.target))){var h=t.Event(y.HIDE,s);t(r).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),i[n].setAttribute("aria-expanded","false"),t(l).removeClass(_.SHOW),t(r).removeClass(_.SHOW).trigger(t.Event(y.HIDDEN,s)))}}}},u._getParentFromElement=function(e){var i,n=l.getSelectorFromElement(e);return n&&(i=t(n)[0]),i||e.parentNode},u._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(e.which===d||e.which!==c&&(e.which!==g&&e.which!==f||t(e.target).closest(b.MENU).length)):v.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!t(this).hasClass(_.DISABLED))){var i=u._getParentFromElement(this),n=t(i).hasClass(_.SHOW);if(!n&&(e.which!==c||e.which!==d)||n&&(e.which===c||e.which===d)){if(e.which===c){var r=t(i).find(b.DATA_TOGGLE)[0];t(r).trigger("focus")}return void t(this).trigger("click")}var a=t(i).find(b.VISIBLE_ITEMS).get();if(0!==a.length){var o=a.indexOf(e.target);e.which===f&&o>0&&o--,e.which===g&&o<a.length-1&&o++,o<0&&(o=0),a[o].focus()}}},r(u,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return w}},{key:"DefaultType",get:function(){return M}}]),u}();return t(document).on(y.KEYDOWN_DATA_API,b.DATA_TOGGLE,S._dataApiKeydownHandler).on(y.KEYDOWN_DATA_API,b.MENU,S._dataApiKeydownHandler).on(y.CLICK_DATA_API+" "+y.KEYUP_DATA_API,S._clearMenus).on(y.CLICK_DATA_API,b.DATA_TOGGLE,function(e){e.preventDefault(),e.stopPropagation(),S._jQueryInterface.call(t(this),"toggle")}).on(y.CLICK_DATA_API,b.FORM_CHILD,function(t){t.stopPropagation()}),t.fn[e]=S._jQueryInterface,t.fn[e].Constructor=S,t.fn[e].noConflict=function(){return t.fn[e]=h,S._jQueryInterface},S}(e,i),f=function(t){var e="modal",i="4.1.1",n="bs.modal",a="."+n,s=".data-api",u=t.fn[e],h=27,c={backdrop:!0,keyboard:!0,focus:!0,show:!0},d={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},p={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,FOCUSIN:"focusin"+a,RESIZE:"resize"+a,CLICK_DISMISS:"click.dismiss"+a,KEYDOWN_DISMISS:"keydown.dismiss"+a,MOUSEUP_DISMISS:"mouseup.dismiss"+a,MOUSEDOWN_DISMISS:"mousedown.dismiss"+a,CLICK_DATA_API:"click"+a+s},f={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},g={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},m=function(){function s(e,i){this._config=this._getConfig(i),this._element=e,this._dialog=t(e).find(g.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var u=s.prototype;return u.toggle=function(t){return this._isShown?this.hide():this.show(t)},u.show=function(e){var i=this;if(!this._isTransitioning&&!this._isShown){t(this._element).hasClass(f.FADE)&&(this._isTransitioning=!0);var n=t.Event(p.SHOW,{relatedTarget:e});t(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),t(document.body).addClass(f.OPEN),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(p.CLICK_DISMISS,g.DATA_DISMISS,function(t){return i.hide(t)}),t(this._dialog).on(p.MOUSEDOWN_DISMISS,function(){t(i._element).one(p.MOUSEUP_DISMISS,function(e){t(e.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(e)}))}},u.hide=function(e){var i=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=t.Event(p.HIDE);if(t(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var r=t(this._element).hasClass(f.FADE);if(r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(p.FOCUSIN),t(this._element).removeClass(f.SHOW),t(this._element).off(p.CLICK_DISMISS),t(this._dialog).off(p.MOUSEDOWN_DISMISS),r){var a=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,function(t){return i._hideModal(t)}).emulateTransitionEnd(a)}else this._hideModal()}}},u.dispose=function(){t.removeData(this._element,n),t(window,document,this._element,this._backdrop).off(a),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},u.handleUpdate=function(){this._adjustDialog()},u._getConfig=function(t){return t=o({},c,t),l.typeCheckConfig(e,t,d),t},u._showElement=function(e){var i=this,n=t(this._element).hasClass(f.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&l.reflow(this._element),t(this._element).addClass(f.SHOW),this._config.focus&&this._enforceFocus();var r=t.Event(p.SHOWN,{relatedTarget:e}),a=function(){i._config.focus&&i._element.focus(),i._isTransitioning=!1,t(i._element).trigger(r)};if(n){var o=l.getTransitionDurationFromElement(this._element);t(this._dialog).one(l.TRANSITION_END,a).emulateTransitionEnd(o)}else a()},u._enforceFocus=function(){var e=this;t(document).off(p.FOCUSIN).on(p.FOCUSIN,function(i){document!==i.target&&e._element!==i.target&&0===t(e._element).has(i.target).length&&e._element.focus()})},u._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(p.KEYDOWN_DISMISS,function(t){t.which===h&&(t.preventDefault(),e.hide())}):this._isShown||t(this._element).off(p.KEYDOWN_DISMISS)},u._setResizeEvent=function(){var e=this;this._isShown?t(window).on(p.RESIZE,function(t){return e.handleUpdate(t)}):t(window).off(p.RESIZE)},u._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(f.OPEN),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(p.HIDDEN)})},u._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},u._showBackdrop=function(e){var i=this,n=t(this._element).hasClass(f.FADE)?f.FADE:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=f.BACKDROP,n&&t(this._backdrop).addClass(n),t(this._backdrop).appendTo(document.body),t(this._element).on(p.CLICK_DISMISS,function(t){return i._ignoreBackdropClick?void(i._ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide()))}),n&&l.reflow(this._backdrop),t(this._backdrop).addClass(f.SHOW),!e)return;if(!n)return void e();var r=l.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(l.TRANSITION_END,e).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(f.SHOW);var a=function(){i._removeBackdrop(),e&&e()};if(t(this._element).hasClass(f.FADE)){var o=l.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(l.TRANSITION_END,a).emulateTransitionEnd(o)}else a()}else e&&e()},u._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},u._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},u._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},u._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){t(g.FIXED_CONTENT).each(function(i,n){var r=t(n)[0].style.paddingRight,a=t(n).css("padding-right");t(n).data("padding-right",r).css("padding-right",parseFloat(a)+e._scrollbarWidth+"px")}),t(g.STICKY_CONTENT).each(function(i,n){var r=t(n)[0].style.marginRight,a=t(n).css("margin-right");t(n).data("margin-right",r).css("margin-right",parseFloat(a)-e._scrollbarWidth+"px")}),t(g.NAVBAR_TOGGLER).each(function(i,n){var r=t(n)[0].style.marginRight,a=t(n).css("margin-right");t(n).data("margin-right",r).css("margin-right",parseFloat(a)+e._scrollbarWidth+"px")});var i=document.body.style.paddingRight,n=t(document.body).css("padding-right");t(document.body).data("padding-right",i).css("padding-right",parseFloat(n)+this._scrollbarWidth+"px")}},u._resetScrollbar=function(){t(g.FIXED_CONTENT).each(function(e,i){var n=t(i).data("padding-right");"undefined"!=typeof n&&t(i).css("padding-right",n).removeData("padding-right")}),t(g.STICKY_CONTENT+", "+g.NAVBAR_TOGGLER).each(function(e,i){var n=t(i).data("margin-right");"undefined"!=typeof n&&t(i).css("margin-right",n).removeData("margin-right")});var e=t(document.body).data("padding-right");"undefined"!=typeof e&&t(document.body).css("padding-right",e).removeData("padding-right")},u._getScrollbarWidth=function(){var t=document.createElement("div");t.className=f.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},s._jQueryInterface=function(e,i){return this.each(function(){var r=t(this).data(n),a=o({},c,t(this).data(),"object"==typeof e&&e?e:{});if(r||(r=new s(this,a),t(this).data(n,r)),"string"==typeof e){if("undefined"==typeof r[e])throw new TypeError('No method named "'+e+'"');r[e](i)}else a.show&&r.show(i)})},r(s,null,[{key:"VERSION",get:function(){return i}},{key:"Default",get:function(){return c}}]),s}();return t(document).on(p.CLICK_DATA_API,g.DATA_TOGGLE,function(e){var i,r=this,a=l.getSelectorFromElement(this);a&&(i=t(a)[0]);var s=t(i).data(n)?"toggle":o({},t(i).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var u=t(i).one(p.SHOW,function(e){e.isDefaultPrevented()||u.one(p.HIDDEN,function(){t(r).is(":visible")&&r.focus()})});m._jQueryInterface.call(t(i),s,this)}),t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=u,m._jQueryInterface},m}(e),g=function(t){var e="tooltip",n="4.1.1",a="bs.tooltip",s="."+a,u=t.fn[e],h="bs-tooltip",c=new RegExp("(^|\\s)"+h+"\\S+","g"),d={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},p={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},f={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},g={SHOW:"show",OUT:"out"},m={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,INSERTED:"inserted"+s,CLICK:"click"+s,FOCUSIN:"focusin"+s,FOCUSOUT:"focusout"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s},v={FADE:"fade",SHOW:"show"},y={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},_={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},b=function(){function u(t,e){if("undefined"==typeof i)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var b=u.prototype;return b.enable=function(){this._isEnabled=!0},b.disable=function(){this._isEnabled=!1},b.toggleEnabled=function(){this._isEnabled=!this._isEnabled},b.toggle=function(e){if(this._isEnabled)if(e){var i=this.constructor.DATA_KEY,n=t(e.currentTarget).data(i);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(t(this.getTipElement()).hasClass(v.SHOW))return void this._leave(null,this);this._enter(null,this)}},b.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},b.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var r=t.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!r)return;var a=this.getTipElement(),o=l.getUID(this.constructor.NAME);a.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&t(a).addClass(v.FADE);var s="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(s);this.addAttachmentClass(u);var h=this.config.container===!1?document.body:t(this.config.container);t(a).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(a).appendTo(h),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i(this.element,a,{placement:u,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:y.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),t(a).addClass(v.SHOW),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var c=function(){e.config.animation&&e._fixTransition();var i=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),i===g.OUT&&e._leave(null,e)};if(t(this.tip).hasClass(v.FADE)){var d=l.getTransitionDurationFromElement(this.tip);t(this.tip).one(l.TRANSITION_END,c).emulateTransitionEnd(d)}else c()}},b.hide=function(e){var i=this,n=this.getTipElement(),r=t.Event(this.constructor.Event.HIDE),a=function(){i._hoverState!==g.SHOW&&n.parentNode&&n.parentNode.removeChild(n),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),t(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()};if(t(this.element).trigger(r),!r.isDefaultPrevented()){if(t(n).removeClass(v.SHOW),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[_.CLICK]=!1,this._activeTrigger[_.FOCUS]=!1,this._activeTrigger[_.HOVER]=!1,t(this.tip).hasClass(v.FADE)){var o=l.getTransitionDurationFromElement(n);t(n).one(l.TRANSITION_END,a).emulateTransitionEnd(o)}else a();this._hoverState=""}},b.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},b.isWithContent=function(){return Boolean(this.getTitle())},b.addAttachmentClass=function(e){t(this.getTipElement()).addClass(h+"-"+e)},b.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},b.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(y.TOOLTIP_INNER),this.getTitle()),e.removeClass(v.FADE+" "+v.SHOW)},b.setElementContent=function(e,i){var n=this.config.html;"object"==typeof i&&(i.nodeType||i.jquery)?n?t(i).parent().is(e)||e.empty().append(i):e.text(t(i).text()):e[n?"html":"text"](i)},b.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},b._getAttachment=function(t){return p[t.toUpperCase()]},b._setListeners=function(){var e=this,i=this.config.trigger.split(" ");i.forEach(function(i){if("click"===i)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(i!==_.MANUAL){var n=i===_.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=i===_.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(n,e.config.selector,function(t){return e._enter(t)}).on(r,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},b._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},b._enter=function(e,i){var n=this.constructor.DATA_KEY;return i=i||t(e.currentTarget).data(n),i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),e&&(i._activeTrigger["focusin"===e.type?_.FOCUS:_.HOVER]=!0),t(i.getTipElement()).hasClass(v.SHOW)||i._hoverState===g.SHOW?void(i._hoverState=g.SHOW):(clearTimeout(i._timeout), i._hoverState=g.SHOW,i.config.delay&&i.config.delay.show?void(i._timeout=setTimeout(function(){i._hoverState===g.SHOW&&i.show()},i.config.delay.show)):void i.show())},b._leave=function(e,i){var n=this.constructor.DATA_KEY;if(i=i||t(e.currentTarget).data(n),i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),e&&(i._activeTrigger["focusout"===e.type?_.FOCUS:_.HOVER]=!1),!i._isWithActiveTrigger())return clearTimeout(i._timeout),i._hoverState=g.OUT,i.config.delay&&i.config.delay.hide?void(i._timeout=setTimeout(function(){i._hoverState===g.OUT&&i.hide()},i.config.delay.hide)):void i.hide()},b._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},b._getConfig=function(i){return i=o({},this.constructor.Default,t(this.element).data(),"object"==typeof i&&i?i:{}),"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),"number"==typeof i.title&&(i.title=i.title.toString()),"number"==typeof i.content&&(i.content=i.content.toString()),l.typeCheckConfig(e,i,this.constructor.DefaultType),i},b._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},b._cleanTipClass=function(){var e=t(this.getTipElement()),i=e.attr("class").match(c);null!==i&&i.length>0&&e.removeClass(i.join(""))},b._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},b._fixTransition=function(){var e=this.getTipElement(),i=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(v.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},u._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(a),n="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new u(this,n),t(this).data(a,i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},r(u,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return f}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return a}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return s}},{key:"DefaultType",get:function(){return d}}]),u}();return t.fn[e]=b._jQueryInterface,t.fn[e].Constructor=b,t.fn[e].noConflict=function(){return t.fn[e]=u,b._jQueryInterface},b}(e,i),m=function(t){var e="popover",i="4.1.1",n="bs.popover",a="."+n,l=t.fn[e],u="bs-popover",h=new RegExp("(^|\\s)"+u+"\\S+","g"),c=o({},g.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),d=o({},g.DefaultType,{content:"(string|element|function)"}),p={FADE:"fade",SHOW:"show"},f={TITLE:".popover-header",CONTENT:".popover-body"},m={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},v=function(o){function l(){return o.apply(this,arguments)||this}s(l,o);var g=l.prototype;return g.isWithContent=function(){return this.getTitle()||this._getContent()},g.addAttachmentClass=function(e){t(this.getTipElement()).addClass(u+"-"+e)},g.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},g.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(f.TITLE),this.getTitle());var i=this._getContent();"function"==typeof i&&(i=i.call(this.element)),this.setElementContent(e.find(f.CONTENT),i),e.removeClass(p.FADE+" "+p.SHOW)},g._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},g._cleanTipClass=function(){var e=t(this.getTipElement()),i=e.attr("class").match(h);null!==i&&i.length>0&&e.removeClass(i.join(""))},l._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),r="object"==typeof e?e:null;if((i||!/destroy|hide/.test(e))&&(i||(i=new l(this,r),t(this).data(n,i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},r(l,null,[{key:"VERSION",get:function(){return i}},{key:"Default",get:function(){return c}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return d}}]),l}(g);return t.fn[e]=v._jQueryInterface,t.fn[e].Constructor=v,t.fn[e].noConflict=function(){return t.fn[e]=l,v._jQueryInterface},v}(e),v=function(t){var e="scrollspy",i="4.1.1",n="bs.scrollspy",a="."+n,s=".data-api",u=t.fn[e],h={offset:10,method:"auto",target:""},c={offset:"number",method:"string",target:"(string|element)"},d={ACTIVATE:"activate"+a,SCROLL:"scroll"+a,LOAD_DATA_API:"load"+a+s},p={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},g={OFFSET:"offset",POSITION:"position"},m=function(){function s(e,i){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(i),this._selector=this._config.target+" "+f.NAV_LINKS+","+(this._config.target+" "+f.LIST_ITEMS+",")+(this._config.target+" "+f.DROPDOWN_ITEMS),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(d.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var u=s.prototype;return u.refresh=function(){var e=this,i=this._scrollElement===this._scrollElement.window?g.OFFSET:g.POSITION,n="auto"===this._config.method?i:this._config.method,r=n===g.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var a=t.makeArray(t(this._selector));a.map(function(e){var i,a=l.getSelectorFromElement(e);if(a&&(i=t(a)[0]),i){var o=i.getBoundingClientRect();if(o.width||o.height)return[t(i)[n]().top+r,a]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},u.dispose=function(){t.removeData(this._element,n),t(this._scrollElement).off(a),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},u._getConfig=function(i){if(i=o({},h,"object"==typeof i&&i?i:{}),"string"!=typeof i.target){var n=t(i.target).attr("id");n||(n=l.getUID(e),t(i.target).attr("id",n)),i.target="#"+n}return l.typeCheckConfig(e,i,c),i},u._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},u._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},u._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},u._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];return void(this._activeTarget!==n&&this._activate(n))}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){var a=this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&("undefined"==typeof this._offsets[r+1]||t<this._offsets[r+1]);a&&this._activate(this._targets[r])}},u._activate=function(e){this._activeTarget=e,this._clear();var i=this._selector.split(",");i=i.map(function(t){return t+'[data-target="'+e+'"],'+(t+'[href="'+e+'"]')});var n=t(i.join(","));n.hasClass(p.DROPDOWN_ITEM)?(n.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(p.ACTIVE),n.addClass(p.ACTIVE)):(n.addClass(p.ACTIVE),n.parents(f.NAV_LIST_GROUP).prev(f.NAV_LINKS+", "+f.LIST_ITEMS).addClass(p.ACTIVE),n.parents(f.NAV_LIST_GROUP).prev(f.NAV_ITEMS).children(f.NAV_LINKS).addClass(p.ACTIVE)),t(this._scrollElement).trigger(d.ACTIVATE,{relatedTarget:e})},u._clear=function(){t(this._selector).filter(f.ACTIVE).removeClass(p.ACTIVE)},s._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),r="object"==typeof e&&e;if(i||(i=new s(this,r),t(this).data(n,i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},r(s,null,[{key:"VERSION",get:function(){return i}},{key:"Default",get:function(){return h}}]),s}();return t(window).on(d.LOAD_DATA_API,function(){for(var e=t.makeArray(t(f.DATA_SPY)),i=e.length;i--;){var n=t(e[i]);m._jQueryInterface.call(n,n.data())}}),t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=u,m._jQueryInterface},m}(e),y=function(t){var e="tab",i="4.1.1",n="bs.tab",a="."+n,o=".data-api",s=t.fn[e],u={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK_DATA_API:"click"+a+o},h={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},c={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},d=function(){function e(t){this._element=t}var a=e.prototype;return a.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(h.ACTIVE)||t(this._element).hasClass(h.DISABLED))){var i,n,r=t(this._element).closest(c.NAV_LIST_GROUP)[0],a=l.getSelectorFromElement(this._element);if(r){var o="UL"===r.nodeName?c.ACTIVE_UL:c.ACTIVE;n=t.makeArray(t(r).find(o)),n=n[n.length-1]}var s=t.Event(u.HIDE,{relatedTarget:this._element}),d=t.Event(u.SHOW,{relatedTarget:n});if(n&&t(n).trigger(s),t(this._element).trigger(d),!d.isDefaultPrevented()&&!s.isDefaultPrevented()){a&&(i=t(a)[0]),this._activate(this._element,r);var p=function(){var i=t.Event(u.HIDDEN,{relatedTarget:e._element}),r=t.Event(u.SHOWN,{relatedTarget:n});t(n).trigger(i),t(e._element).trigger(r)};i?this._activate(i,i.parentNode,p):p()}}},a.dispose=function(){t.removeData(this._element,n),this._element=null},a._activate=function(e,i,n){var r,a=this;r="UL"===i.nodeName?t(i).find(c.ACTIVE_UL):t(i).children(c.ACTIVE);var o=r[0],s=n&&o&&t(o).hasClass(h.FADE),u=function(){return a._transitionComplete(e,o,n)};if(o&&s){var d=l.getTransitionDurationFromElement(o);t(o).one(l.TRANSITION_END,u).emulateTransitionEnd(d)}else u()},a._transitionComplete=function(e,i,n){if(i){t(i).removeClass(h.SHOW+" "+h.ACTIVE);var r=t(i.parentNode).find(c.DROPDOWN_ACTIVE_CHILD)[0];r&&t(r).removeClass(h.ACTIVE),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}if(t(e).addClass(h.ACTIVE),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),l.reflow(e),t(e).addClass(h.SHOW),e.parentNode&&t(e.parentNode).hasClass(h.DROPDOWN_MENU)){var a=t(e).closest(c.DROPDOWN)[0];a&&t(a).find(c.DROPDOWN_TOGGLE).addClass(h.ACTIVE),e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(i){return this.each(function(){var r=t(this),a=r.data(n);if(a||(a=new e(this),r.data(n,a)),"string"==typeof i){if("undefined"==typeof a[i])throw new TypeError('No method named "'+i+'"');a[i]()}})},r(e,null,[{key:"VERSION",get:function(){return i}}]),e}();return t(document).on(u.CLICK_DATA_API,c.DATA_TOGGLE,function(e){e.preventDefault(),d._jQueryInterface.call(t(this),"show")}),t.fn[e]=d._jQueryInterface,t.fn[e].Constructor=d,t.fn[e].noConflict=function(){return t.fn[e]=s,d._jQueryInterface},d}(e);!function(t){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split("."),i=1,n=2,r=9,a=1,o=4;if(e[0]<n&&e[1]<r||e[0]===i&&e[1]===r&&e[2]<a||e[0]>=o)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=l,t.Alert=u,t.Button=h,t.Carousel=c,t.Collapse=d,t.Dropdown=p,t.Modal=f,t.Popover=m,t.Scrollspy=v,t.Tab=y,t.Tooltip=g,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e){!function(t){var e="waitForImages";t.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"]},t.expr[":"].uncached=function(e){if(!t(e).is('img[src!=""]'))return!1;var i=new Image;return i.src=e.src,!i.complete},t.fn.waitForImages=function(i,n,r){var a=0,o=0;if(t.isPlainObject(arguments[0])&&(r=arguments[0].waitForAll,n=arguments[0].each,i=arguments[0].finished),i=i||t.noop,n=n||t.noop,r=!!r,!t.isFunction(i)||!t.isFunction(n))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var s=t(this),l=[],u=t.waitForImages.hasImageProperties||[],h=/url\(\s*(['"]?)(.*?)\1\s*\)/g;r?s.find("*").addBack().each(function(){var e=t(this);e.is("img:uncached")&&l.push({src:e.attr("src"),element:e[0]}),t.each(u,function(t,i){var n,r=e.css(i);if(!r)return!0;for(;n=h.exec(r);)l.push({src:n[2],element:e[0]})})}):s.find("img:uncached").each(function(){l.push({src:this.src,element:this})}),a=l.length,o=0,0===a&&i.call(s[0]),t.each(l,function(r,l){var u=new Image;t(u).on("load."+e+" error."+e,function(t){return o++,n.call(l.element,o,a,"load"==t.type),o==a?(i.call(s[0]),!1):void 0}),u.src=l.src})})}}(jQuery)},function(t,e){!function(t){function e(){a=!1;for(var e=0;e<n.length;e++){var r=t(n[e]).filter(function(){return t(this).is(":appeared")});if(r.trigger("appear",[r]),i){var o=i.not(r);o.trigger("disappear",[o])}i=r}}var i,n=[],r=!1,a=!1,o={interval:250,force_process:!1},s=t(window);t.expr[":"].appeared=function(e){var i=t(e);if(!i.is(":visible"))return!1;var n=s.scrollLeft(),r=s.scrollTop(),a=i.offset(),o=a.left,l=a.top;return l+i.height()>=r&&l-(i.data("appear-top-offset")||0)<=r+s.height()&&o+i.width()>=n&&o-(i.data("appear-left-offset")||0)<=n+s.width()},t.fn.extend({appear:function(i){var s=t.extend({},o,i||{}),l=this.selector||this;if(!r){var u=function(){a||(a=!0,setTimeout(e,s.interval))};t(window).scroll(u).resize(u),r=!0}return s.force_process&&setTimeout(e,s.interval),n.push(l),t(l)}}),t.extend({force_appear:function(){return!!r&&(e(),!0)}})}(jQuery),function(t){"$:nomunge";function e(e){function n(){e?o.removeData(e):d&&delete i[d]}function a(){l.id=setTimeout(function(){l.fn()},p)}var o,s=this,l={},u=e?t.fn:t,h=arguments,c=4,d=h[1],p=h[2],f=h[3];if("string"!=typeof d&&(c--,d=e=0,p=h[1],f=h[2]),e?(o=s.eq(0),o.data(e,l=o.data(e)||{})):d&&(l=i[d]||(i[d]={})),l.id&&clearTimeout(l.id),delete l.id,f)l.fn=function(t){"string"==typeof f&&(f=u[f]),f.apply(s,r.call(h,c))!==!0||t?n():a()},a();else{if(l.fn)return void 0===p?n():l.fn(p===!1),!0;n()}}var i={},n="doTimeout",r=Array.prototype.slice;t[n]=function(){return e.apply(window,[0].concat(r.call(arguments)))},t.fn[n]=function(){var t=r.call(arguments),i=e.apply(this,[n+t[0]].concat(t));return"number"==typeof t[0]||"number"==typeof t[1]?this:i}}(jQuery),$(".animatedParent").appear(),$(".animatedClick").click(function(){var t=$(this).attr("data-target");if(void 0!=$(this).attr("data-sequence")){var e=$("."+t+":first").attr("data-id"),i=$("."+t+":last").attr("data-id"),n=e;$("."+t+"[data-id="+n+"]").hasClass("go")?($("."+t+"[data-id="+n+"]").addClass("goAway"),$("."+t+"[data-id="+n+"]").removeClass("go")):($("."+t+"[data-id="+n+"]").addClass("go"),$("."+t+"[data-id="+n+"]").removeClass("goAway")),n++,delay=Number($(this).attr("data-sequence")),$.doTimeout(delay,function(){if(console.log(i),$("."+t+"[data-id="+n+"]").hasClass("go")?($("."+t+"[data-id="+n+"]").addClass("goAway"),$("."+t+"[data-id="+n+"]").removeClass("go")):($("."+t+"[data-id="+n+"]").addClass("go"),$("."+t+"[data-id="+n+"]").removeClass("goAway")),++n,n<=i)return!0})}else $("."+t).hasClass("go")?($("."+t).addClass("goAway"),$("."+t).removeClass("go")):($("."+t).addClass("go"),$("."+t).removeClass("goAway"))}),$(document.body).on("appear",".animatedParent",function(t,e){var i=$(this).find(".animated"),n=$(this);if(void 0!=n.attr("data-sequence")){var r=$(this).find(".animated:first").attr("data-id"),a=r,o=$(this).find(".animated:last").attr("data-id");$(n).find(".animated[data-id="+a+"]").addClass("go"),a++,delay=Number(n.attr("data-sequence")),$.doTimeout(delay,function(){if($(n).find(".animated[data-id="+a+"]").addClass("go"),++a,a<=o)return!0})}else i.addClass("go")}),$(document.body).on("disappear",".animatedParent",function(t,e){$(this).hasClass("animateOnce")||$(this).find(".animated").removeClass("go")}),$(window).on("load",function(){$.force_appear()})},function(t,e,i){i(339),function(){"use strict";$(".sticky").length&&$(".sticky").Stickyfill()}()},function(t,e){!function(t,e){function i(){S=C=k=D=T=L=H}function n(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}function r(t){return parseFloat(t)||0}function a(){A={top:e.pageYOffset,left:e.pageXOffset}}function o(){return e.pageXOffset!=A.left?(a(),void k()):void(e.pageYOffset!=A.top&&(a(),l()))}function s(t){setTimeout(function(){e.pageYOffset!=A.top&&(A.top=e.pageYOffset,l())},0)}function l(){for(var t=E.length-1;t>=0;t--)u(E[t])}function u(t){if(t.inited){var e=A.top<=t.limit.start?0:A.top>=t.limit.end?2:1;t.mode!=e&&g(t,e)}}function h(){for(var t=E.length-1;t>=0;t--)if(E[t].inited){var e=Math.abs(_(E[t].clone)-E[t].docOffsetTop),i=Math.abs(E[t].parent.node.offsetHeight-E[t].parent.height);if(e>=2||i>=2)return!1}return!0}function c(t){isNaN(parseFloat(t.computed.top))||t.isCell||"none"==t.computed.display||(t.inited=!0,t.clone||m(t),"absolute"!=t.parent.computed.position&&"relative"!=t.parent.computed.position&&(t.parent.node.style.position="relative"),u(t),t.parent.height=t.parent.node.offsetHeight,t.docOffsetTop=_(t.clone))}function d(t){var e=!0;t.clone&&v(t),n(t.node.style,t.css);for(var i=E.length-1;i>=0;i--)if(E[i].node!==t.node&&E[i].parent.node===t.parent.node){e=!1;break}e&&(t.parent.node.style.position=t.parent.css.position),t.mode=-1}function p(){for(var t=E.length-1;t>=0;t--)c(E[t])}function f(){for(var t=E.length-1;t>=0;t--)d(E[t])}function g(t,e){var i=t.node.style;switch(e){case 0:i.position="absolute",i.left=t.offset.left+"px",i.right=t.offset.right+"px",i.top=t.offset.top+"px",i.bottom="auto",i.width="auto",i.marginLeft=0,i.marginRight=0,i.marginTop=0;break;case 1:i.position="fixed",i.left=t.box.left+"px",i.right=t.box.right+"px",i.top=t.css.top,i.bottom="auto",i.width="auto",i.marginLeft=0,i.marginRight=0,i.marginTop=0;break;case 2:i.position="absolute",i.left=t.offset.left+"px",i.right=t.offset.right+"px",i.top="auto",i.bottom=0,i.width="auto",i.marginLeft=0,i.marginRight=0}t.mode=e}function m(t){t.clone=document.createElement("div");var e=t.node.nextSibling||t.node,i=t.clone.style;i.height=t.height+"px",i.width=t.width+"px",i.marginTop=t.computed.marginTop,i.marginBottom=t.computed.marginBottom,i.marginLeft=t.computed.marginLeft,i.marginRight=t.computed.marginRight,i.padding=i.border=i.borderSpacing=0,i.fontSize="1em",i.position="static",i.cssFloat=t.computed.cssFloat,t.node.parentNode.insertBefore(t.clone,e)}function v(t){t.clone.parentNode.removeChild(t.clone),t.clone=void 0}function y(t){var e=getComputedStyle(t),i=t.parentNode,n=getComputedStyle(i),a=t.style.position;t.style.position="relative";var o={top:e.top,marginTop:e.marginTop,marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginRight:e.marginRight,cssFloat:e.cssFloat,display:e.display},s={top:r(e.top),marginBottom:r(e.marginBottom),paddingLeft:r(e.paddingLeft),paddingRight:r(e.paddingRight),borderLeftWidth:r(e.borderLeftWidth),borderRightWidth:r(e.borderRightWidth)};t.style.position=a;var l={position:t.style.position,top:t.style.top,bottom:t.style.bottom,left:t.style.left,right:t.style.right,width:t.style.width,marginTop:t.style.marginTop,marginLeft:t.style.marginLeft,marginRight:t.style.marginRight},u=b(t),h=b(i),c={node:i,css:{position:i.style.position},computed:{position:n.position},numeric:{borderLeftWidth:r(n.borderLeftWidth),borderRightWidth:r(n.borderRightWidth),borderTopWidth:r(n.borderTopWidth),borderBottomWidth:r(n.borderBottomWidth)}},d={node:t,box:{left:u.win.left,right:R.clientWidth-u.win.right},offset:{top:u.win.top-h.win.top-c.numeric.borderTopWidth,left:u.win.left-h.win.left-c.numeric.borderLeftWidth,right:-u.win.right+h.win.right-c.numeric.borderRightWidth},css:l,isCell:"table-cell"==e.display,computed:o,numeric:s,width:u.win.right-u.win.left,height:u.win.bottom-u.win.top,mode:-1,inited:!1,parent:c,limit:{start:u.doc.top-s.top,end:h.doc.top+i.offsetHeight-c.numeric.borderBottomWidth-t.offsetHeight-s.top-s.marginBottom}};return d}function _(t){for(var e=0;t;)e+=t.offsetTop,t=t.offsetParent;return e}function b(t){var i=t.getBoundingClientRect();return{doc:{top:i.top+e.pageYOffset,left:i.left+e.pageXOffset},win:i}}function x(){P=setInterval(function(){!h()&&k()},500)}function w(){clearInterval(P)}function M(){O&&(document[z]?w():x())}function S(){O||(a(),p(),e.addEventListener("scroll",o),e.addEventListener("wheel",s),e.addEventListener("resize",k),e.addEventListener("orientationchange",k),t.addEventListener(Y,M),x(),O=!0)}function k(){if(O){f();for(var t=E.length-1;t>=0;t--)E[t]=y(E[t].node);p()}}function D(){e.removeEventListener("scroll",o),e.removeEventListener("wheel",s),e.removeEventListener("resize",k),e.removeEventListener("orientationchange",k),t.removeEventListener(Y,M),w(),O=!1}function T(){D(),f()}function L(){for(T();E.length;)E.pop()}function C(t){for(var e=E.length-1;e>=0;e--)if(E[e].node===t)return;var i=y(t);E.push(i),O?c(i):S()}function I(t){for(var e=E.length-1;e>=0;e--)E[e].node===t&&(d(E[e]),E.splice(e,1))}var A,P,E=[],O=!1,R=t.documentElement,H=function(){},z="hidden",Y="visibilitychange";void 0!==t.webkitHidden&&(z="webkitHidden",Y="webkitvisibilitychange"),e.getComputedStyle||i();for(var N=["","-webkit-","-moz-","-ms-"],F=document.createElement("div"),W=N.length-1;W>=0;W--){try{F.style.position=N[W]+"sticky"}catch(B){}""!=F.style.position&&i()}a(),e.Stickyfill={stickies:E,add:C,remove:I,init:S,rebuild:k,pause:D,stop:T,kill:L}}(document,window),window.jQuery&&!function(t){t.fn.Stickyfill=function(t){return this.each(function(){Stickyfill.add(this)}),this}}(window.jQuery)},function(t,e){getNumberWithCommas=function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},isElementInViewport=function(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},$.fn.hasData=function(t){return"undefined"!=typeof $(this).data(t)},getDataOptions=function(t,e){if(e||(e="options"),$.fn.hasData(t)){var i=$.extend({},t.data());return i.options?i.options:null}return null}},function(t,e){!function(){"use strict";$(window).width(),$(window).height(),$(window).scrollTop(),$("html"),$("body");$("#docs").length&&$("#docs").popover("show"),($(".scroll").length>0||$(".scroll a[href^='#']").length>0)&&$('.scroll, .scroll a[href^="#"]').on("click",function(){return $("html, body").animate({scrollTop:$($.attr(this,"href")).offset().top-30},1500,function(){}),!1}),$("body").on("click",".xv-qyt",function(t){t.preventDefault();var e=parseInt($(this).attr("data-value")),i=$(this).siblings("input.qty"),n=parseInt(i.val());if(n>=1){if(e===-1&&1===n)return!1;i.val(n+e)}}),$(".custome-select select").on("change",function(){var t=$(this).parent(".custome-select");t.find("span").html($(this).val())}),$(".js-gotop").length&&($(".js-gotop").on("click",function(t){return t.preventDefault(),$("html, body").animate({scrollTop:$("html").offset().top},500,"easeInOutExpo"),!1}),$(window).scroll(function(){var t=$(window);t.scrollTop()>200?$(".js-top").addClass("active"):$(".js-top").removeClass("active")})),$(".form-control").length&&($(".form-control").focus(function(){$(this).parent().addClass("focused")}),$(".form-control").focusout(function(){var t=$(this);t.parents(".form-group").hasClass("form-float")?""==t.val()&&t.parents(".form-line").removeClass("focused"):t.parents(".form-line").removeClass("focused")}),$("body").on("click",".form-float .form-line .form-label",function(){$(this).parent().find("input").focus()}),$(".form-control").each(function(){""!==$(this).val()&&$(this).parents(".form-line").addClass("focused")}))}()},function(t,e,i){i(343),function(){"use strict";var t=function(){var t=($("#clientSlider").lightSlider({adaptiveHeight:!0,item:5,slideMargin:0,auto:!0,loop:!1,pauseOnHover:!0}),$(".lightSlider"));t.each(function(){var t=$(this);t.lightSlider({verticalHeight:t.data("vertical-height"),vertical:t.data("vertical"),autoWidth:t.data("auto-width"),slideWidth:t.data("slide-width"),centerSlide:t.data("center-slide"),gallery:t.data("gallery"),thumbItem:t.data("thumbs"),thumbMargin:t.data("margin"),item:t.data("item"),loop:t.data("loop"),mode:t.data("mode"),adaptiveHeight:t.data("adaptive-height"),speed:t.data("speed"),auto:t.data("auto"),pause:t.data("pause"),pauseOnHover:t.data("pause-on-hover"),pager:t.data("pager"),slideMargin:t.data("slide-margin"),vThumbWidth:80,currentPagerPosition:t.data("position"),controls:t.data("controls"),prevHtml:'<span class="icon-left-arrow"></span>',nextHtml:'<span class="icon-right-arrow"></span>',responsive:[{breakpoint:1368,settings:{item:t.data("item-xl"),slideMove:1,slideMargin:6}},{breakpoint:1025,settings:{item:t.data("item-lg"),slideMove:1,slideMargin:6}},{breakpoint:768,settings:{item:t.data("item-md"),slideMove:1,slideMargin:6}},{breakpoint:480,settings:{item:t.data("item-sm"),slideMove:1}}],onSliderLoad:function(e){t.data("start")&&t.goToSlide(t.data("start")),t.addClass("showSlider"),e.find(".lslide .animated").addClass("go")},onBeforeNextSlide:function(t){t.find(".lslide .animated").removeClass("go")},onAfterSlide:function(t){t.find(".lslide .animated").addClass("go")}})})};t()}()},function(t,e){!function(t,e){"use strict";var i={item:3,autoWidth:!1,slideMove:1,slideMargin:10,addClass:"",mode:"slide",useCSS:!0,cssEasing:"ease",easing:"linear",speed:400,auto:!1,pauseOnHover:!1,loop:!1,slideEndAnimation:!0,pause:2e3,keyPress:!1,controls:!0,prevHtml:"",nextHtml:"",rtl:!1,adaptiveHeight:!1,vertical:!1,verticalHeight:500,vThumbWidth:100,thumbItem:10,pager:!0,gallery:!1,galleryMargin:5,thumbMargin:5,currentPagerPosition:"middle",enableTouch:!0,enableDrag:!0,freeMove:!0,swipeThreshold:40,responsive:[],onBeforeStart:function(t){},onSliderLoad:function(t){},onBeforeSlide:function(t,e){},onAfterSlide:function(t,e){},onBeforeNextSlide:function(t,e){},onBeforePrevSlide:function(t,e){}};t.fn.lightSlider=function(e){if(0===this.length)return this;if(this.length>1)return this.each(function(){t(this).lightSlider(e)}),this;var n={},r=t.extend(!0,{},i,e),a={},o=this;n.$el=this,"fade"===r.mode&&(r.vertical=!1);var s=o.children(),l=t(window).width(),u=null,h=null,c=0,d=0,p=!1,f=0,g="",m=0,v=r.vertical===!0?"height":"width",y=r.vertical===!0?"margin-bottom":"margin-right",_=0,b=0,x=0,w=0,M=null,S="ontouchstart"in document.documentElement,k={};return k.chbreakpoint=function(){if(l=t(window).width(),r.responsive.length){var e;if(r.autoWidth===!1&&(e=r.item),l<r.responsive[0].breakpoint)for(var i=0;i<r.responsive.length;i++)l<r.responsive[i].breakpoint&&(u=r.responsive[i].breakpoint,h=r.responsive[i]);if("undefined"!=typeof h&&null!==h)for(var n in h.settings)h.settings.hasOwnProperty(n)&&("undefined"!=typeof a[n]&&null!==a[n]||(a[n]=r[n]),r[n]=h.settings[n]);if(!t.isEmptyObject(a)&&l>r.responsive[0].breakpoint)for(var o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);r.autoWidth===!1&&_>0&&x>0&&e!==r.item&&(m=Math.round(_/((x+r.slideMargin)*r.slideMove)))}},k.calSW=function(){r.autoWidth===!1&&(x=(f-(r.item*r.slideMargin-r.slideMargin))/r.item)},k.calWidth=function(t){var e=t===!0?g.find(".lslide").length:s.length;if(r.autoWidth===!1)d=e*(x+r.slideMargin);else{d=0;for(var i=0;i<e;i++)d+=parseInt(s.eq(i).width())+r.slideMargin}return d},n={doCss:function(){var t=function(){for(var t=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],e=document.documentElement,i=0;i<t.length;i++)if(t[i]in e.style)return!0};return!(!r.useCSS||!t())},keyPress:function(){r.keyPress&&t(document).on("keyup.lightslider",function(e){t(":focus").is("input, textarea")||(e.preventDefault?e.preventDefault():e.returnValue=!1,37===e.keyCode?o.goToPrevSlide():39===e.keyCode&&o.goToNextSlide())})},controls:function(){r.controls&&(o.after('<div class="lSAction"><a class="lSPrev">'+r.prevHtml+'</a><a class="lSNext">'+r.nextHtml+"</a></div>"),r.autoWidth?k.calWidth(!1)<f&&g.find(".lSAction").hide():c<=r.item&&g.find(".lSAction").hide(),g.find(".lSAction a").on("click",function(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,"lSPrev"===t(this).attr("class")?o.goToPrevSlide():o.goToNextSlide(),!1}))},initialStyle:function(){var t=this;"fade"===r.mode&&(r.autoWidth=!1,r.slideEndAnimation=!1),r.auto&&(r.slideEndAnimation=!1),r.autoWidth&&(r.slideMove=1,r.item=1),r.loop&&(r.slideMove=1,r.freeMove=!1),r.onBeforeStart.call(this,o),k.chbreakpoint(),o.addClass("lightSlider").wrap('<div class="lSSlideOuter '+r.addClass+'"><div class="lSSlideWrapper"></div></div>'),g=o.parent(".lSSlideWrapper"),r.rtl===!0&&g.parent().addClass("lSrtl"),r.vertical?(g.parent().addClass("vertical"),f=r.verticalHeight,g.css("height",f+"px")):f=o.outerWidth(),s.addClass("lslide"),r.loop===!0&&"slide"===r.mode&&(k.calSW(),k.clone=function(){if(k.calWidth(!0)>f){for(var e=0,i=0,n=0;n<s.length&&(e+=parseInt(o.find(".lslide").eq(n).width())+r.slideMargin,i++,!(e>=f+r.slideMargin));n++);var a=r.autoWidth===!0?i:r.item;if(a<o.find(".clone.left").length)for(var l=0;l<o.find(".clone.left").length-a;l++)s.eq(l).remove();if(a<o.find(".clone.right").length)for(var u=s.length-1;u>s.length-1-o.find(".clone.right").length;u--)m--,s.eq(u).remove();for(var h=o.find(".clone.right").length;h<a;h++)o.find(".lslide").eq(h).clone().removeClass("lslide").addClass("clone right").appendTo(o),m++;for(var c=o.find(".lslide").length-o.find(".clone.left").length;c>o.find(".lslide").length-a;c--)o.find(".lslide").eq(c-1).clone().removeClass("lslide").addClass("clone left").prependTo(o);s=o.children()}else s.hasClass("clone")&&(o.find(".clone").remove(),t.move(o,0))},k.clone()),k.sSW=function(){c=s.length,r.rtl===!0&&r.vertical===!1&&(y="margin-left"),r.autoWidth===!1&&s.css(v,x+"px"),s.css(y,r.slideMargin+"px"),d=k.calWidth(!1),o.css(v,d+"px"),r.loop===!0&&"slide"===r.mode&&p===!1&&(m=o.find(".clone.left").length)},k.calL=function(){s=o.children(),c=s.length},this.doCss()&&g.addClass("usingCss"),k.calL(),"slide"===r.mode?(k.calSW(),k.sSW(),r.loop===!0&&(_=t.slideValue(),this.move(o,_)),r.vertical===!1&&this.setHeight(o,!1)):(this.setHeight(o,!0),o.addClass("lSFade"),this.doCss()||(s.fadeOut(0),s.eq(m).fadeIn(0))),r.loop===!0&&"slide"===r.mode?s.eq(m).addClass("active"):s.first().addClass("active")},pager:function(){var t=this;if(k.createPager=function(){w=(f-(r.thumbItem*r.thumbMargin-r.thumbMargin))/r.thumbItem;var e=g.find(".lslide"),i=g.find(".lslide").length,n=0,a="",s=0;for(n=0;n<i;n++){"slide"===r.mode&&(r.autoWidth?s+=(parseInt(e.eq(n).width())+r.slideMargin)*r.slideMove:s=n*((x+r.slideMargin)*r.slideMove));var l=e.eq(n*r.slideMove).attr("data-thumb");if(a+=r.gallery===!0?'<li style="width:100%;'+v+":"+w+"px;"+y+":"+r.thumbMargin+'px"><a href="#"><img src="'+l+'" /></a></li>':'<li><a href="#">'+(n+1)+"</a></li>","slide"===r.mode&&s>=d-f-r.slideMargin){n+=1;var u=2;r.autoWidth&&(a+='<li><a href="#">'+(n+1)+"</a></li>", u=1),n<u?(a=null,g.parent().addClass("noPager")):g.parent().removeClass("noPager");break}}var h=g.parent();h.find(".lSPager").html(a),r.gallery===!0&&(r.vertical===!0&&h.find(".lSPager").css("width",r.vThumbWidth+"px"),b=n*(r.thumbMargin+w)+.5,h.find(".lSPager").css({property:b+"px","transition-duration":r.speed+"ms"}),r.vertical===!0&&g.parent().css("padding-right",r.vThumbWidth+r.galleryMargin+"px"),h.find(".lSPager").css(v,b+"px"));var c=h.find(".lSPager").find("li");c.first().addClass("active"),c.on("click",function(){return r.loop===!0&&"slide"===r.mode?m+=c.index(this)-h.find(".lSPager").find("li.active").index():m=c.index(this),o.mode(!1),r.gallery===!0&&t.slideThumb(),!1})},r.pager){var e="lSpg";r.gallery&&(e="lSGallery"),g.after('<ul class="lSPager '+e+'"></ul>');var i=r.vertical?"margin-left":"margin-top";g.parent().find(".lSPager").css(i,r.galleryMargin+"px"),k.createPager()}setTimeout(function(){k.init()},0)},setHeight:function(t,e){var i=null,n=this;i=r.loop?t.children(".lslide ").first():t.children().first();var a=function(){var n=i.outerHeight(),r=0,a=n;e&&(n=0,r=100*a/f),t.css({height:n+"px","padding-bottom":r+"%"})};a(),i.find("img").length?i.find("img")[0].complete?(a(),M||n.auto()):i.find("img").on("load",function(){setTimeout(function(){a(),M||n.auto()},100)}):M||n.auto()},active:function(t,e){this.doCss()&&"fade"===r.mode&&g.addClass("on");var i=0;if(m*r.slideMove<c){t.removeClass("active"),this.doCss()||"fade"!==r.mode||e!==!1||t.fadeOut(r.speed),i=e===!0?m:m*r.slideMove;var n,a;e===!0&&(n=t.length,a=n-1,i+1>=n&&(i=a)),r.loop===!0&&"slide"===r.mode&&(i=e===!0?m-o.find(".clone.left").length:m*r.slideMove,e===!0&&(n=t.length,a=n-1,i+1===n?i=a:i+1>n&&(i=0))),this.doCss()||"fade"!==r.mode||e!==!1||t.eq(i).fadeIn(r.speed),t.eq(i).addClass("active")}else t.removeClass("active"),t.eq(t.length-1).addClass("active"),this.doCss()||"fade"!==r.mode||e!==!1||(t.fadeOut(r.speed),t.eq(i).fadeIn(r.speed))},move:function(t,e){r.rtl===!0&&(e=-e),this.doCss()?r.vertical===!0?t.css({transform:"translate3d(0px, "+-e+"px, 0px)","-webkit-transform":"translate3d(0px, "+-e+"px, 0px)"}):t.css({transform:"translate3d("+-e+"px, 0px, 0px)","-webkit-transform":"translate3d("+-e+"px, 0px, 0px)"}):r.vertical===!0?t.css("position","relative").animate({top:-e+"px"},r.speed,r.easing):t.css("position","relative").animate({left:-e+"px"},r.speed,r.easing);var i=g.parent().find(".lSPager").find("li");this.active(i,!0)},fade:function(){this.active(s,!1);var t=g.parent().find(".lSPager").find("li");this.active(t,!0)},slide:function(){var t=this;k.calSlide=function(){d>f&&(_=t.slideValue(),t.active(s,!1),_>d-f-r.slideMargin?_=d-f-r.slideMargin:_<0&&(_=0),t.move(o,_),r.loop===!0&&"slide"===r.mode&&(m>=c-o.find(".clone.left").length/r.slideMove&&t.resetSlide(o.find(".clone.left").length),0===m&&t.resetSlide(g.find(".lslide").length)))},k.calSlide()},resetSlide:function(t){var e=this;g.find(".lSAction a").addClass("disabled"),setTimeout(function(){m=t,g.css("transition-duration","0ms"),_=e.slideValue(),e.active(s,!1),n.move(o,_),setTimeout(function(){g.css("transition-duration",r.speed+"ms"),g.find(".lSAction a").removeClass("disabled")},50)},r.speed+100)},slideValue:function(){var t=0;if(r.autoWidth===!1)t=m*((x+r.slideMargin)*r.slideMove);else{t=0;for(var e=0;e<m;e++)t+=parseInt(s.eq(e).width())+r.slideMargin}return t},slideThumb:function(){var t;switch(r.currentPagerPosition){case"left":t=0;break;case"middle":t=f/2-w/2;break;case"right":t=f-w}var e=m-o.find(".clone.left").length,i=g.parent().find(".lSPager");"slide"===r.mode&&r.loop===!0&&(e>=i.children().length?e=0:e<0&&(e=i.children().length));var n=e*(w+r.thumbMargin)-t;n+f>b&&(n=b-f-r.thumbMargin),n<0&&(n=0),this.move(i,n)},auto:function(){r.auto&&(clearInterval(M),M=setInterval(function(){o.goToNextSlide()},r.pause))},pauseOnHover:function(){var e=this;r.auto&&r.pauseOnHover&&(g.on("mouseenter",function(){t(this).addClass("ls-hover"),o.pause(),r.auto=!0}),g.on("mouseleave",function(){t(this).removeClass("ls-hover"),g.find(".lightSlider").hasClass("lsGrabbing")||e.auto()}))},touchMove:function(t,e){if(g.css("transition-duration","0ms"),"slide"===r.mode){var i=t-e,n=_-i;if(n>=d-f-r.slideMargin)if(r.freeMove===!1)n=d-f-r.slideMargin;else{var a=d-f-r.slideMargin;n=a+(n-a)/5}else n<0&&(r.freeMove===!1?n=0:n/=5);this.move(o,n)}},touchEnd:function(t){if(g.css("transition-duration",r.speed+"ms"),"slide"===r.mode){var e=!1,i=!0;_-=t,_>d-f-r.slideMargin?(_=d-f-r.slideMargin,r.autoWidth===!1&&(e=!0)):_<0&&(_=0);var n=function(t){var i=0;if(e||t&&(i=1),r.autoWidth)for(var n=0,a=0;a<s.length&&(n+=parseInt(s.eq(a).width())+r.slideMargin,m=a+i,!(n>=_));a++);else{var o=_/((x+r.slideMargin)*r.slideMove);m=parseInt(o)+i,_>=d-f-r.slideMargin&&o%1!==0&&m++}};t>=r.swipeThreshold?(n(!1),i=!1):t<=-r.swipeThreshold&&(n(!0),i=!1),o.mode(i),this.slideThumb()}else t>=r.swipeThreshold?o.goToPrevSlide():t<=-r.swipeThreshold&&o.goToNextSlide()},enableDrag:function(){var e=this;if(!S){var i=0,n=0,a=!1;g.find(".lightSlider").addClass("lsGrab"),g.on("mousedown",function(e){return!(d<f&&0!==d)&&void("lSPrev"!==t(e.target).attr("class")&&"lSNext"!==t(e.target).attr("class")&&(i=r.vertical===!0?e.pageY:e.pageX,a=!0,e.preventDefault?e.preventDefault():e.returnValue=!1,g.scrollLeft+=1,g.scrollLeft-=1,g.find(".lightSlider").removeClass("lsGrab").addClass("lsGrabbing"),clearInterval(M)))}),t(window).on("mousemove",function(t){a&&(n=r.vertical===!0?t.pageY:t.pageX,e.touchMove(n,i))}),t(window).on("mouseup",function(o){if(a){g.find(".lightSlider").removeClass("lsGrabbing").addClass("lsGrab"),a=!1,n=r.vertical===!0?o.pageY:o.pageX;var s=n-i;Math.abs(s)>=r.swipeThreshold&&t(window).on("click.ls",function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopImmediatePropagation(),e.stopPropagation(),t(window).off("click.ls")}),e.touchEnd(s)}})}},enableTouch:function(){var t=this;if(S){var e={},i={};g.on("touchstart",function(t){i=t.originalEvent.targetTouches[0],e.pageX=t.originalEvent.targetTouches[0].pageX,e.pageY=t.originalEvent.targetTouches[0].pageY,clearInterval(M)}),g.on("touchmove",function(n){if(d<f&&0!==d)return!1;var a=n.originalEvent;i=a.targetTouches[0];var o=Math.abs(i.pageX-e.pageX),s=Math.abs(i.pageY-e.pageY);r.vertical===!0?(3*s>o&&n.preventDefault(),t.touchMove(i.pageY,e.pageY)):(3*o>s&&n.preventDefault(),t.touchMove(i.pageX,e.pageX))}),g.on("touchend",function(){if(d<f&&0!==d)return!1;var n;n=r.vertical===!0?i.pageY-e.pageY:i.pageX-e.pageX,t.touchEnd(n)})}},build:function(){var e=this;e.initialStyle(),this.doCss()&&(r.enableTouch===!0&&e.enableTouch(),r.enableDrag===!0&&e.enableDrag()),t(window).on("focus",function(){e.auto()}),t(window).on("blur",function(){clearInterval(M)}),e.pager(),e.pauseOnHover(),e.controls(),e.keyPress()}},n.build(),k.init=function(){k.chbreakpoint(),r.vertical===!0?(f=r.item>1?r.verticalHeight:s.outerHeight(),g.css("height",f+"px")):f=g.outerWidth(),r.loop===!0&&"slide"===r.mode&&k.clone(),k.calL(),"slide"===r.mode&&o.removeClass("lSSlide"),"slide"===r.mode&&(k.calSW(),k.sSW()),setTimeout(function(){"slide"===r.mode&&o.addClass("lSSlide")},1e3),r.pager&&k.createPager(),r.adaptiveHeight===!0&&r.vertical===!1&&o.css("height",s.eq(m).outerHeight(!0)),r.adaptiveHeight===!1&&("slide"===r.mode?r.vertical===!1?n.setHeight(o,!1):n.auto():n.setHeight(o,!0)),r.gallery===!0&&n.slideThumb(),"slide"===r.mode&&n.slide(),r.autoWidth===!1?s.length<=r.item?g.find(".lSAction").hide():g.find(".lSAction").show():k.calWidth(!1)<f&&0!==d?g.find(".lSAction").hide():g.find(".lSAction").show()},o.goToPrevSlide=function(){if(m>0)r.onBeforePrevSlide.call(this,o,m),m--,o.mode(!1),r.gallery===!0&&n.slideThumb();else if(r.loop===!0){if(r.onBeforePrevSlide.call(this,o,m),"fade"===r.mode){var t=c-1;m=parseInt(t/r.slideMove)}o.mode(!1),r.gallery===!0&&n.slideThumb()}else r.slideEndAnimation===!0&&(o.addClass("leftEnd"),setTimeout(function(){o.removeClass("leftEnd")},400))},o.goToNextSlide=function(){var t=!0;if("slide"===r.mode){var e=n.slideValue();t=e<d-f-r.slideMargin}m*r.slideMove<c-r.slideMove&&t?(r.onBeforeNextSlide.call(this,o,m),m++,o.mode(!1),r.gallery===!0&&n.slideThumb()):r.loop===!0?(r.onBeforeNextSlide.call(this,o,m),m=0,o.mode(!1),r.gallery===!0&&n.slideThumb()):r.slideEndAnimation===!0&&(o.addClass("rightEnd"),setTimeout(function(){o.removeClass("rightEnd")},400))},o.mode=function(t){r.adaptiveHeight===!0&&r.vertical===!1&&o.css("height",s.eq(m).outerHeight(!0)),p===!1&&("slide"===r.mode?n.doCss()&&(o.addClass("lSSlide"),""!==r.speed&&g.css("transition-duration",r.speed+"ms"),""!==r.cssEasing&&g.css("transition-timing-function",r.cssEasing)):n.doCss()&&(""!==r.speed&&o.css("transition-duration",r.speed+"ms"),""!==r.cssEasing&&o.css("transition-timing-function",r.cssEasing))),t||r.onBeforeSlide.call(this,o,m),"slide"===r.mode?n.slide():n.fade(),g.hasClass("ls-hover")||n.auto(),setTimeout(function(){t||r.onAfterSlide.call(this,o,m)},r.speed),p=!0},o.play=function(){o.goToNextSlide(),r.auto=!0,n.auto()},o.pause=function(){r.auto=!1,clearInterval(M)},o.refresh=function(){k.init()},o.getCurrentSlideCount=function(){var t=m;if(r.loop){var e=g.find(".lslide").length,i=o.find(".clone.left").length;t=m<=i-1?e+(m-i):m>=e+i?m-e-i:m-i}return t+1},o.getTotalSlideCount=function(){return g.find(".lslide").length},o.goToSlide=function(t){m=r.loop?t+o.find(".clone.left").length-1:t,o.mode(!1),r.gallery===!0&&n.slideThumb()},o.destroy=function(){o.lightSlider&&(o.goToPrevSlide=function(){},o.goToNextSlide=function(){},o.mode=function(){},o.play=function(){},o.pause=function(){},o.refresh=function(){},o.getCurrentSlideCount=function(){},o.getTotalSlideCount=function(){},o.goToSlide=function(){},o.lightSlider=null,k={init:function(){}},o.parent().parent().find(".lSAction, .lSPager").remove(),o.removeClass("lightSlider lSFade lSSlide lsGrab lsGrabbing leftEnd right").removeAttr("style").unwrap().unwrap(),o.children().removeAttr("style"),s.removeClass("lslide active"),o.find(".clone").remove(),s=null,M=null,p=!1,m=0)},setTimeout(function(){r.onSliderLoad.call(this,o)},10),t(window).on("resize orientationchange",function(t){setTimeout(function(){t.preventDefault?t.preventDefault():t.returnValue=!1,k.init()},200)}),this}}(jQuery)},function(t,e,i){i(345),i(350),function(){"use strict";function t(){var t=$(".masonry-container"),i=$(".project-filter li, .filter li");$("#filter-items").length&&$(".filter li").on("click",function(){return $("html, body").animate({scrollTop:$("#filter-items").offset().top-0},1500,function(){}),!1}),t.waitForImages(function(){$(".masonry-container").show(),$(".masonry-container").masonry({itemSelector:".masonry-post"})}),$(window).on("load",function(){var i=$(".project-filter .active");e(t,i)}),i.on("click",function(){i.removeClass("active");var n=$(this).addClass("active");e(t,n,i)})}var e=function(t,e){var i=$(".project-filter li, .filter li");i.removeClass("active"),e.addClass("active"),$(".masonry-container .animated").length>0&&$(".masonry-container .animated").addClass("go");var n=e.attr("data-filter");return t.isotope({filter:n,animationOptions:{duration:750,easing:"linear",queue:!1}}),!1};t()}()},function(t,e,i){var n,r,a;!function(o,s){r=[i(346),i(91)],n=s,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(window,function(t,e){"use strict";var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,r=this.containerWidth+this.gutter,a=r/n,o=n-r%n,s=o&&o<1?"round":"floor";a=Math[s](a),this.cols=Math.max(a,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",a=this[r](n,t),o={x:this.columnWidth*a.col,y:a.y},s=a.y+t.size.outerHeight,l=n+a.col,u=a.col;u<l;u++)this.colYs[u]=s;return o},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var r=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=r?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),r=this._getOption("originLeft"),a=r?n.left:n.right,o=a+i.outerWidth,s=Math.floor(a/this.columnWidth);s=Math.max(0,s);var l=Math.floor(o/this.columnWidth);l-=o%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var u=this._getOption("originTop"),h=(u?n.top:n.bottom)+i.outerHeight,c=s;c<=l;c++)this.colYs[c]=Math.max(h,this.colYs[c])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i})},function(t,e,i){var n,r;!function(a,o){"use strict";n=[i(118),i(91),i(347),i(349)],r=function(t,e,i,n){return o(a,t,e,i,n)}.apply(e,n),!(void 0!==r&&(t.exports=r))}(window,function(t,e,i,n,r){"use strict";function a(t,e){var i=n.getQueryElement(t);if(!i)return void(l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var r=++c;this.element.outlayerGUID=r,d[r]=this,this._create();var a=this._getOption("initLayout");a&&this.layout()}function o(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function s(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var r=f[n]||1;return i*r}var l=t.console,u=t.jQuery,h=function(){},c=0,d={};a.namespace="outlayer",a.Item=r,a.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var p=a.prototype;n.extend(p,e.prototype),p.option=function(t){n.extend(this.options,t)},p._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},a.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},p._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},p.reloadItems=function(){this.items=this._itemize(this.element.children)},p._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],r=0;r<e.length;r++){var a=e[r],o=new i(a,this);n.push(o)}return n},p._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},p.getItemElements=function(){return this.items.map(function(t){return t.element})},p.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},p._init=p.layout,p._resetLayout=function(){this.getSize()},p.getSize=function(){this.size=i(this.element)},p._getMeasurement=function(t,e){var n,r=this.options[t];r?("string"==typeof r?n=this.element.querySelector(r):r instanceof HTMLElement&&(n=r),this[t]=n?i(n)[e]:r):this[t]=0},p.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},p._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},p._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},p._getItemLayoutPosition=function(){return{x:0,y:0}},p._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},p.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=s(t),this.stagger)},p._positionItem=function(t,e,i,n,r){n?t.goTo(e,i):(t.stagger(r*this.stagger),t.moveTo(e,i))},p._postLayout=function(){this.resizeContainer()},p.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},p._getContainerSize=h,p._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},p._emitCompleteOnItems=function(t,e){function i(){r.dispatchEvent(t+"Complete",null,[e])}function n(){o++,o==a&&i()}var r=this,a=e.length;if(!e||!a)return void i();var o=0;e.forEach(function(e){e.once(t,n)})},p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var r=u.Event(e);r.type=t,this.$element.trigger(r,i)}else this.$element.trigger(t,i)},p.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},p.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},p.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},p.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},p._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},p._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},p._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},p._manageStamp=h,p._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,r=i(t),a={left:e.left-n.left-r.marginLeft,top:e.top-n.top-r.marginTop,right:n.right-e.right-r.marginRight,bottom:n.bottom-e.bottom-r.marginBottom};return a},p.handleEvent=n.handleEvent,p.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},p.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},p.onresize=function(){this.resize()},n.debounceMethod(a,"onresize",100),p.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},p.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},p.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},p.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},p.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},p.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},p.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},p.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},p.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},p.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},p.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},p.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},p.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete d[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},a.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&d[e]},a.create=function(t,e){var i=o(a);return i.defaults=n.extend({},a.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},a.compatOptions),i.namespace=t,i.data=a.data,i.Item=o(r),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var f={ms:1,s:1e3};return a.Item=r,a})},function(t,e,i){var n,r;!function(a,o){n=[i(348)],r=function(t){return o(a,t)}.apply(e,n),!(void 0!==r&&(t.exports=r))}(window,function(t,e){"use strict";var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var r=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void r.push(t);e(t,n)&&r.push(t);for(var i=t.querySelectorAll(n),a=0;a<i.length;a++)r.push(i[a])}}),r},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,a=this;this[r]=setTimeout(function(){n.apply(a,e),delete a[r]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var r=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var a=i.toDashed(n),o="data-"+a,s=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+a),u=i.makeArray(s).concat(i.makeArray(l)),h=o+"-options",c=t.jQuery;u.forEach(function(t){var i,a=t.getAttribute(o)||t.getAttribute(h);try{i=a&&JSON.parse(a)}catch(s){return void(r&&r.error("Error parsing "+o+" on "+t.className+": "+s))}var l=new e(t,i);c&&c.data(t,n,l)})})},i})},function(t,e,i){var n,r;!function(a,o){"use strict";n=o,r="function"==typeof n?n.call(e,i,e,t):n,!(void 0!==r&&(t.exports=r))}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],r=n+"MatchesSelector";if(t[r])return r}}();return function(e,i){return e[t](i)}})},function(t,e,i){var n,r,a;!function(o,s){r=[i(118),i(91)],n=s,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function r(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var a=document.documentElement.style,o="string"==typeof a.transition?"transition":"WebkitTransition",s="string"==typeof a.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],u={transform:s,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"},h=n.prototype=Object.create(t.prototype);h.constructor=n,h._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.getSize=function(){this.size=e(this.element)},h.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},h.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],r=t[i?"top":"bottom"],a=parseFloat(n),o=parseFloat(r),s=this.layout.size;n.indexOf("%")!=-1&&(a=a/100*s.width),r.indexOf("%")!=-1&&(o=o/100*s.height),a=isNaN(a)?0:a,o=isNaN(o)?0:o,a-=e?s.paddingLeft:s.paddingRight,o-=i?s.paddingTop:s.paddingBottom,this.position.x=a,this.position.y=o},h.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=i?"paddingLeft":"paddingRight",a=i?"left":"right",o=i?"right":"left",s=this.position.x+t[r];e[a]=this.getXValue(s),e[o]="";var l=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",h=n?"bottom":"top",c=this.position.y+t[l];e[u]=this.getYValue(c),e[h]="",this.css(e),this.emitEvent("layout",[this])},h.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},h.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},h._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,r=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),r&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,o=e-n,s={};s.transform=this.getTranslate(a,o),this.transition({to:s,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},h.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},h.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},h.moveTo=h._transitionTo,h.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},h._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},h.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var c="opacity,"+r(s);h.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:c,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},h.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},h.onotransitionend=function(t){this.ontransitionend(t)};var d={"-webkit-transform":"transform"};h.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=d[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var r=e.onEnd[n];r.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},h.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},h._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var p={transitionProperty:"",transitionDuration:"",transitionDelay:""};return h.removeTransitionStyles=function(){this.css(p)},h.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},h.remove=function(){return o&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},h.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},h.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},h.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},h.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},h.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},h.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n})},function(t,e,i){var n,r,a,o,s,n,l,u,h,c,n,d,n,p,f,n,g,n,p,m,n,p,v,n,p,y,n,p,_,n,p,b,n,p,x,n,r;!function(a,o){n=[i(13)],r=function(t){return o(a,t)}.apply(e,n),!(void 0!==r&&(t.exports=r))}(window,function(t,e){"use strict";function i(i,a,s){function l(t,e,n){var r,a="$()."+i+'("'+e+'")';return t.each(function(t,l){var u=s.data(l,i);if(!u)return void o(i+" not initialized. Cannot call methods, i.e. "+a);var h=u[e];if(!h||"_"==e.charAt(0))return void o(a+" is not a valid method");var c=h.apply(u,n);r=void 0===r?c:r}),void 0!==r?r:t}function u(t,e){t.each(function(t,n){var r=s.data(n,i);r?(r.option(e),r._init()):(r=new a(n,e),s.data(n,i,r))})}s=s||e||t.jQuery,s&&(a.prototype.option||(a.prototype.option=function(t){s.isPlainObject(t)&&(this.options=s.extend(!0,this.options,t))}),s.fn[i]=function(t){if("string"==typeof t){var e=r.call(arguments,1);return l(this,t,e)}return u(this,t),this},n(s))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var r=Array.prototype.slice,a=t.console,o="undefined"==typeof a?function(){}:function(t){a.error(t)};return n(e||t.jQuery),i}),function(t,e){o=e,s={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},a="function"==typeof o?o.call(s.exports,i,s.exports,s):o,s.loaded=!0,!(void 0===a&&(a=s.exports))}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e); return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,r=i[n];e=e||[];for(var a=this._onceEvents&&this._onceEvents[t];r;){var o=a&&a[r];o&&(this.off(t,r),delete a[r]),r.apply(this,e),n+=o?0:1,r=i[n]}return this}},t}),function(t,i){"use strict";n=[],!(l=function(){return i()}.apply(e,n))}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<u;e++){var i=l[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||s("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function r(){if(!h){h=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var r=n(e);a.isBoxSizeOuter=o=200==t(r.width),i.removeChild(e)}}function a(e){if(r(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var a=n(e);if("none"==a.display)return i();var s={};s.width=e.offsetWidth,s.height=e.offsetHeight;for(var h=s.isBorderBox="border-box"==a.boxSizing,c=0;c<u;c++){var d=l[c],p=a[d],f=parseFloat(p);s[d]=isNaN(f)?0:f}var g=s.paddingLeft+s.paddingRight,m=s.paddingTop+s.paddingBottom,v=s.marginLeft+s.marginRight,y=s.marginTop+s.marginBottom,_=s.borderLeftWidth+s.borderRightWidth,b=s.borderTopWidth+s.borderBottomWidth,x=h&&o,w=t(a.width);w!==!1&&(s.width=w+(x?0:g+_));var M=t(a.height);return M!==!1&&(s.height=M+(x?0:m+b)),s.innerWidth=s.width-(g+_),s.innerHeight=s.height-(m+b),s.outerWidth=s.width+v,s.outerHeight=s.height+y,s}}var o,s="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=l.length,h=!1;return a}),function(t,e){"use strict";h=e,c={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},u="function"==typeof h?h.call(c.exports,i,c.exports,c):h,c.loaded=!0,!(void 0===u&&(u=c.exports))}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],r=n+"MatchesSelector";if(t[r])return r}}();return function(e,i){return e[t](i)}}),function(t,i){n=[u],!(d=function(e){return i(t,e)}.apply(e,n))}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"object"==typeof t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var r=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void r.push(t);e(t,n)&&r.push(t);for(var i=t.querySelectorAll(n),a=0;a<i.length;a++)r.push(i[a])}}),r},i.debounceMethod=function(t,e,i){var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];t&&clearTimeout(t);var e=arguments,a=this;this[r]=setTimeout(function(){n.apply(a,e),delete a[r]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,r){i.docReady(function(){var a=i.toDashed(r),o="data-"+a,s=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+a),u=i.makeArray(s).concat(i.makeArray(l)),h=o+"-options",c=t.jQuery;u.forEach(function(t){var i,a=t.getAttribute(o)||t.getAttribute(h);try{i=a&&JSON.parse(a)}catch(s){return void(n&&n.error("Error parsing "+o+" on "+t.className+": "+s))}var l=new e(t,i);c&&c.data(t,r,l)})})},i}),function(t,i){n=[a,l],p=i,!(f="function"==typeof p?p.apply(e,n):p)}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function r(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var a=document.documentElement.style,o="string"==typeof a.transition?"transition":"WebkitTransition",s="string"==typeof a.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],u={transform:s,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"},h=n.prototype=Object.create(t.prototype);h.constructor=n,h._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.getSize=function(){this.size=e(this.element)},h.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},h.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],r=t[i?"top":"bottom"],a=this.layout.size,o=n.indexOf("%")!=-1?parseFloat(n)/100*a.width:parseInt(n,10),s=r.indexOf("%")!=-1?parseFloat(r)/100*a.height:parseInt(r,10);o=isNaN(o)?0:o,s=isNaN(s)?0:s,o-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=o,this.position.y=s},h.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=i?"paddingLeft":"paddingRight",a=i?"left":"right",o=i?"right":"left",s=this.position.x+t[r];e[a]=this.getXValue(s),e[o]="";var l=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",h=n?"bottom":"top",c=this.position.y+t[l];e[u]=this.getYValue(c),e[h]="",this.css(e),this.emitEvent("layout",[this])},h.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},h.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},h._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,r=parseInt(t,10),a=parseInt(e,10),o=r===this.position.x&&a===this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var s=t-i,l=e-n,u={};u.transform=this.getTranslate(s,l),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},h.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},h.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},h.moveTo=h._transitionTo,h.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},h._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},h.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var c="opacity,"+r(s);h.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:c,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},h.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},h.onotransitionend=function(t){this.ontransitionend(t)};var d={"-webkit-transform":"transform"};h.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=d[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var r=e.onEnd[n];r.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},h.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},h._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var p={transitionProperty:"",transitionDuration:"",transitionDelay:""};return h.removeTransitionStyles=function(){this.css(p)},h.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},h.remove=function(){return o&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},h.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},h.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},h.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},h.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},h.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},h.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,i){"use strict";n=[a,l,d,f],!(g=function(e,n,r,a){return i(t,e,n,r,a)}.apply(e,n))}(window,function(t,e,i,n,r){"use strict";function a(t,e){var i=n.getQueryElement(t);if(!i)return void(l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var r=++c;this.element.outlayerGUID=r,d[r]=this,this._create();var a=this._getOption("initLayout");a&&this.layout()}function o(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function s(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var r=f[n]||1;return i*r}var l=t.console,u=t.jQuery,h=function(){},c=0,d={};a.namespace="outlayer",a.Item=r,a.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var p=a.prototype;n.extend(p,e.prototype),p.option=function(t){n.extend(this.options,t)},p._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},a.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},p._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},p.reloadItems=function(){this.items=this._itemize(this.element.children)},p._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],r=0;r<e.length;r++){var a=e[r],o=new i(a,this);n.push(o)}return n},p._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},p.getItemElements=function(){return this.items.map(function(t){return t.element})},p.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},p._init=p.layout,p._resetLayout=function(){this.getSize()},p.getSize=function(){this.size=i(this.element)},p._getMeasurement=function(t,e){var n,r=this.options[t];r?("string"==typeof r?n=this.element.querySelector(r):r instanceof HTMLElement&&(n=r),this[t]=n?i(n)[e]:r):this[t]=0},p.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},p._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},p._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},p._getItemLayoutPosition=function(){return{x:0,y:0}},p._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},p.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=s(t),this.stagger)},p._positionItem=function(t,e,i,n,r){n?t.goTo(e,i):(t.stagger(r*this.stagger),t.moveTo(e,i))},p._postLayout=function(){this.resizeContainer()},p.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},p._getContainerSize=h,p._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},p._emitCompleteOnItems=function(t,e){function i(){r.dispatchEvent(t+"Complete",null,[e])}function n(){o++,o==a&&i()}var r=this,a=e.length;if(!e||!a)return void i();var o=0;e.forEach(function(e){e.once(t,n)})},p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var r=u.Event(e);r.type=t,this.$element.trigger(r,i)}else this.$element.trigger(t,i)},p.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},p.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},p.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},p.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},p._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},p._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},p._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},p._manageStamp=h,p._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,r=i(t),a={left:e.left-n.left-r.marginLeft,top:e.top-n.top-r.marginTop,right:n.right-e.right-r.marginRight,bottom:n.bottom-e.bottom-r.marginBottom};return a},p.handleEvent=n.handleEvent,p.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},p.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},p.onresize=function(){this.resize()},n.debounceMethod(a,"onresize",100),p.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},p.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},p.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},p.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},p.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},p.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},p.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},p.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},p.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},p.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},p.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},p.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},p.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete d[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},a.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&d[e]},a.create=function(t,e){var i=o(a);return i.defaults=n.extend({},a.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},a.compatOptions),i.namespace=t,i.data=a.data,i.Item=o(r),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var f={ms:1,s:1e3};return a.Item=r,a}),function(t,i){n=[g],p=i,!(m="function"==typeof p?p.apply(e,n):p)}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}}};var r=i.destroy;return i.destroy=function(){r.apply(this,arguments),this.css({display:""})},e}),function(t,i){n=[l,g],p=i,!(v="function"==typeof p?p.apply(e,n):p)}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=i.prototype,r=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return r.forEach(function(t){n[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;if(this._getMeasurement(i,n),!this[i]){var r=this.getFirstItemSize();this[i]=r&&r[n]||this.isotope.size["inner"+e]}},n.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function r(){i.apply(this,arguments)}return r.prototype=Object.create(n),r.prototype.constructor=r,e&&(r.options=e),r.prototype.namespace=t,i.modes[t]=r,r},i}),function(t,i){n=[g,l],p=i,!(y="function"==typeof p?p.apply(e,n):p)}(window,function(t,e){var i=t.create("masonry");return i.compatOptions.fitWidth="isFitWidth",i.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},i.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,r=this.containerWidth+this.gutter,a=r/n,o=n-r%n,s=o&&o<1?"round":"floor";a=Math[s](a),this.cols=Math.max(a,1)},i.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this._getColGroup(n),a=Math.min.apply(Math,r),o=r.indexOf(a),s={x:this.columnWidth*o,y:a},l=a+t.size.outerHeight,u=this.cols+1-r.length,h=0;h<u;h++)this.colYs[o+h]=l;return s},i.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++){var r=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,r)}return e},i.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),r=this._getOption("originLeft"),a=r?n.left:n.right,o=a+i.outerWidth,s=Math.floor(a/this.columnWidth);s=Math.max(0,s);var l=Math.floor(o/this.columnWidth);l-=o%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var u=this._getOption("originTop"),h=(u?n.top:n.bottom)+i.outerHeight,c=s;c<=l;c++)this.colYs[c]=Math.max(h,this.colYs[c])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,i){n=[v,y],p=i,!(_="function"==typeof p?p.apply(e,n):p)}(window,function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,r={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var a in e.prototype)r[a]||(n[a]=e.prototype[a]);var o=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,o.call(this)};var s=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},i}),function(t,i){n=[v],p=i,!(b="function"==typeof p?p.apply(e,n):p)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,i){n=[v],p=i,!(x="function"==typeof p?p.apply(e,n):p)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(i,a){n=[g,l,u,d,m,v,_,b,x],r=function(t,e,n,r,o,s){return a(i,t,e,n,r,o,s)}.apply(e,n),!(void 0!==r&&(t.exports=r))}(window,function(t,e,i,n,r,a,o){function s(t,e){return function(i,n){for(var r=0;r<t.length;r++){var a=t[r],o=i.sortData[a],s=n.sortData[a];if(o>s||o<s){var l=void 0!==e[a]?e[a]:e,u=l?1:-1;return(o>s?1:-1)*u}}return 0}}var l=t.jQuery,u=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},h=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});h.Item=a,h.LayoutMode=o;var c=h.prototype;c._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in o.modes)this._initLayoutMode(t)},c.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},c._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var n=t[i];n.id=this.itemGUID++}return this._updateItemsSortData(t),t},c._initLayoutMode=function(t){var e=o.modes[t],i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i,this.modes[t]=new e(this)},c.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},c._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},c.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},c._init=c.arrange,c._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},c._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},c._bindArrangeComplete=function(){function t(){e&&i&&n&&r.dispatchEvent("arrangeComplete",null,[r.filteredItems])}var e,i,n,r=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},c._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],n=[],r=[],a=this._getFilterTest(e),o=0;o<t.length;o++){var s=t[o];if(!s.isIgnored){var l=a(s);l&&i.push(s),l&&s.isHidden?n.push(s):l||s.isHidden||r.push(s)}}return{matches:i,needReveal:n,needHide:r}},c._getFilterTest=function(t){return l&&this.options.isJQueryFiltering?function(e){return l(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return n(e.element,t)}},c.updateSortData=function(t){var e;t?(t=r.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},c._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=d(i)}},c._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var d=function(){function t(t){if("string"!=typeof t)return t;var i=u(t).split(" "),n=i[0],r=n.match(/^\[(.+)\]$/),a=r&&r[1],o=e(a,n),s=h.sortDataParsers[i[1]];return t=s?function(t){return t&&s(o(t))}:function(t){return t&&o(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();h.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},c._sort=function(){if(this.options.sortBy){var t=r.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=s(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},c._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},c._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},c._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},c._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},c._manageStamp=function(t){this._mode()._manageStamp(t)},c._getContainerSize=function(){return this._mode()._getContainerSize()},c.needsResizeLayout=function(){return this._mode().needsResizeLayout()},c.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},c.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},c._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},c.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,r=e.length;for(i=0;i<r;i++)n=e[i],this.element.appendChild(n.element);var a=this._filter(e).matches;for(i=0;i<r;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<r;i++)delete e[i].isLayoutInstant;this.reveal(a)}};var p=c.remove;return c.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);p.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var a=e[n];r.removeFrom(this.filteredItems,a)}},c.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},c._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},c.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},h})},function(t,e,i){function n(){"use strict";var t=$(".slimScroll"),e=0;t.length&&t.each(function(){var t=$(this),i=t.data();t.slimscroll({height:i.height?i.height+"px":$(window).height()-e+"px",color:i.color?i.color:"rgba(0,0,0,0.95)",size:i.size?i.size+"px":"5px"})}),$.PaperPanel.layout={activate:function(){var t=this;t.fix(),t.fixSidebar(),$(window,".wrapper").on("resize",function(){t.fix(),t.fixSidebar()})},fix:function(){var t=$(".main-header").outerHeight()+$(".main-footer").outerHeight(),e=$(window).height(),i=$(".sidebar").height();if($("body").hasClass("fixed"))$(".content-wrapper, .right-side").css("min-height",e-$(".main-footer").outerHeight());else{var n;e>=i?($(".content-wrapper, .right-side").css("min-height",e-t),n=e-t):($(".content-wrapper, .right-side").css("min-height",i),n=i);var r=$($.PaperPanel.options.controlSidebarOptions.selector);"undefined"!=typeof r&&r.height()>n&&$(".content-wrapper, .right-side").css("min-height",r.height())}},fixSidebar:function(){return $(".main-sidebar").hasClass("fixed")?("undefined"==typeof $.fn.slimScroll&&window.console&&window.console.error("Error: the fixed layout requires the slimscroll plugin!"),void($.PaperPanel.options.sidebarSlimScroll&&"undefined"!=typeof $.fn.slimScroll&&($(".sidebar").slimScroll({destroy:!0}).height("auto"),$(".sidebar").slimscroll({height:$(window).height()+"px",color:"rgba(0,0,0,0.3)",size:"5px"})))):void("undefined"!=typeof $.fn.slimScroll&&$(".sidebar").slimScroll({destroy:!0}).height("auto"))}},$.PaperPanel.pushMenu={activate:function(t){var e=$.PaperPanel.options.screenSizes;$(document).on("click",t,function(t){t.preventDefault(),t.stopPropagation(),$(window).width()>e.md-1?$("body").hasClass("sidebar-collapse")?($(".offcanvas").parent().removeClass("sidebar-collapse"), $("body").removeClass("sidebar-collapse").trigger("expanded.pushMenu")):$("body").addClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").hasClass("sidebar-open")?$("body").removeClass("sidebar-open").removeClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").addClass("sidebar-open").trigger("expanded.pushMenu")}),$(".page").on("click",function(){$(window).width()<=e.md-1&&$("body").hasClass("sidebar-open")&&$("body").removeClass("sidebar-open")}),$("#app").on("click",function(t){$(t.target).closest(".control-sidebar").length||$(".control-sidebar").hasClass("control-sidebar-open")&&$(".control-sidebar").removeClass("control-sidebar-open"),$(t.target).closest(".main-sidebar").length||$(".sidebar-offCanvas-lg").length&&($("body").removeClass("sidebar-open").removeClass("sidebar-collapse").trigger("collapsed.pushMenu"),$("body").addClass("sidebar-collapse").trigger("collapsed.pushMenu"))}),($.PaperPanel.options.sidebarExpandOnHover||$("body").hasClass("sidebar-expanded-on-hover")&&$("body").hasClass("sidebar-mini"))&&this.expandOnHover()},expandOnHover:function(){var t=this,e=$.PaperPanel.options.screenSizes.sm-1;$(".main-sidebar").hover(function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-collapse")&&$(window).width()>e&&t.expand()},function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-expanded-on-hover")&&$(window).width()>e&&t.collapse()})},expand:function(){$("body").removeClass("sidebar-collapse").addClass("sidebar-expanded-on-hover")},collapse:function(){$("body").hasClass("sidebar-expanded-on-hover")&&$("body").removeClass("sidebar-expanded-on-hover").addClass("sidebar-collapse")}},$.PaperPanel.tree=function(t){var e=this,i=$.PaperPanel.options.animationSpeed;$(document).on("click",t+" li a",function(t){var n=$(this),r=n.next();if(r.is(".treeview-menu")&&r.is(":visible")&&!$("body").hasClass("sidebar-collapse"))r.slideUp(i,function(){r.removeClass("menu-open")}),r.parent("li").removeClass("active");else if(r.is(".treeview-menu")&&!r.is(":visible")){var a=n.parents("ul").first(),o=a.find("ul:visible").slideUp(i);o.removeClass("menu-open");var s=n.parent("li");r.slideDown(i,function(){r.addClass("menu-open"),a.find("li.active").removeClass("active"),s.addClass("active"),e.layout.fix()})}r.is(".treeview-menu")&&t.preventDefault()})}}i(352),$(function(){"use strict";$.PaperPanel={},$.PaperPanel.options={animationSpeed:500,sidebarToggleSelector:"[data-toggle='push-menu']",sidebarPushMenu:!0,navbarMenuSlimscrollWidth:"3px",sidebarSlimScroll:!0,controlSidebarOptions:{toggleBtnSelector:"[data-toggle='control-sidebar']",selector:".control-sidebar",slide:!0},sidebarExpandOnHover:!1,screenSizes:{xs:480,sm:768,md:1025,lg:1200}},$("body").removeClass("hold-transition"),"undefined"!=typeof PaperPanelOptions&&$.extend(!0,$.PaperPanel.options,PaperPanelOptions);var t=$.PaperPanel.options;n(),$.PaperPanel.layout.activate(),$.PaperPanel.tree(".sidebar"),t.enableControlSidebar&&$.PaperPanel.controlSidebar.activate(),t.sidebarPushMenu&&$.PaperPanel.pushMenu.activate(t.sidebarToggleSelector),$('.btn-group[data-toggle="btn-toggle"]').each(function(){var t=$(this);$(this).find(".btn").on("click",function(e){t.find(".btn.active").removeClass("active"),$(this).addClass("active"),e.preventDefault()})}),$('.sidebar-tabs a[data-toggle="tab"], .sidebar-tabs a[data-toggle="pill"]').on("click",function(t){$.PaperPanel.pushMenu.expand()})})},function(e,i){!function(e){e.fn.extend({slimScroll:function(i){var n={width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},r=e.extend(n,i);return this.each(function(){function n(t){if(h){var t=t||window.event,i=0;t.wheelDelta&&(i=-t.wheelDelta/120),t.detail&&(i=t.detail/3);var n=t.target||t.srcTarget||t.srcElement;e(n).closest("."+r.wrapperClass).is(x.parent())&&a(i,!0),t.preventDefault&&!b&&t.preventDefault(),b||(t.returnValue=!1)}}function a(t,e,i){b=!1;var n=t,a=x.outerHeight()-T.outerHeight();if(e&&(n=parseInt(T.css("top"))+t*parseInt(r.wheelStep)/100*T.outerHeight(),n=Math.min(Math.max(n,0),a),n=t>0?Math.ceil(n):Math.floor(n),T.css({top:n+"px"})),m=parseInt(T.css("top"))/(x.outerHeight()-T.outerHeight()),n=m*(x[0].scrollHeight-x.outerHeight()),i){n=t;var o=n/x[0].scrollHeight*x.outerHeight();o=Math.min(Math.max(o,0),a),T.css({top:o+"px"})}x.scrollTop(n),x.trigger("slimscrolling",~~n),l(),u()}function o(t){window.addEventListener?(t.addEventListener("DOMMouseScroll",n,!1),t.addEventListener("mousewheel",n,!1)):document.attachEvent("onmousewheel",n)}function s(){g=Math.max(x.outerHeight()/x[0].scrollHeight*x.outerHeight(),_),T.css({height:g+"px"});var t=g==x.outerHeight()?"none":"block";T.css({display:t})}function l(){if(s(),clearTimeout(p),m==~~m){if(b=r.allowPageScroll,v!=m){var t=0==~~m?"top":"bottom";x.trigger("slimscroll",t)}}else b=!1;return v=m,g>=x.outerHeight()?void(b=!0):(T.stop(!0,!0).fadeIn("fast"),void(r.railVisible&&D.stop(!0,!0).fadeIn("fast")))}function u(){r.alwaysVisible||(p=setTimeout(function(){r.disableFadeOut&&h||c||d||(T.fadeOut("slow"),D.fadeOut("slow"))},1e3))}var h,c,d,p,f,g,m,v,y="<div></div>",_=30,b=!1,x=e(this);if(x.parent().hasClass(r.wrapperClass)){var w=x.scrollTop();if(T=x.siblings("."+r.barClass),D=x.siblings("."+r.railClass),s(),e.isPlainObject(i)){if("height"in i&&"auto"==i.height){x.parent().css("height","auto"),x.css("height","auto");var M=x.parent().parent().height();x.parent().css("height",M),x.css("height",M)}else if("height"in i){var S=i.height;x.parent().css("height",S),x.css("height",S)}if("scrollTo"in i)w=parseInt(r.scrollTo);else if("scrollBy"in i)w+=parseInt(r.scrollBy);else if("destroy"in i)return T.remove(),D.remove(),void x.unwrap();a(w,!1,!0)}}else if(!(e.isPlainObject(i)&&"destroy"in i)){r.height="auto"==r.height?x.parent().height():r.height;var k=e(y).addClass(r.wrapperClass).css({position:"relative",overflow:"hidden",width:r.width,height:r.height});x.css({overflow:"hidden",width:r.width,height:r.height});var D=e(y).addClass(r.railClass).css({width:r.size,height:"100%",position:"absolute",top:0,display:r.alwaysVisible&&r.railVisible?"block":"none","border-radius":r.railBorderRadius,background:r.railColor,opacity:r.railOpacity,zIndex:90}),T=e(y).addClass(r.barClass).css({background:r.color,width:r.size,position:"absolute",top:0,opacity:r.opacity,display:r.alwaysVisible?"block":"none","border-radius":r.borderRadius,BorderRadius:r.borderRadius,MozBorderRadius:r.borderRadius,WebkitBorderRadius:r.borderRadius,zIndex:99}),L="right"==r.position?{right:r.distance}:{left:r.distance};D.css(L),T.css(L),x.wrap(k),x.parent().append(T),x.parent().append(D),r.railDraggable&&T.bind("mousedown",function(i){var n=e(document);return d=!0,t=parseFloat(T.css("top")),pageY=i.pageY,n.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,T.css("top",currTop),a(0,T.position().top,!1)}),n.bind("mouseup.slimscroll",function(t){d=!1,u(),n.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(t){return t.stopPropagation(),t.preventDefault(),!1}),D.hover(function(){l()},function(){u()}),T.hover(function(){c=!0},function(){c=!1}),x.hover(function(){h=!0,l(),u()},function(){h=!1,u()}),x.bind("touchstart",function(t,e){t.originalEvent.touches.length&&(f=t.originalEvent.touches[0].pageY)}),x.bind("touchmove",function(t){if(b||t.originalEvent.preventDefault(),t.originalEvent.touches.length){var e=(f-t.originalEvent.touches[0].pageY)/r.touchScrollStep;a(e,!0),f=t.originalEvent.touches[0].pageY}}),s(),"bottom"===r.start?(T.css({top:x.outerHeight()-T.outerHeight()}),a(0,!0)):"top"!==r.start&&(a(e(r.start).position().top,null,!0),r.alwaysVisible||T.hide()),o(this)}}),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(jQuery)},function(t,e,i){i(354),function(){"use strict";function t(){$(".sc-counter").each(function(){var t=$(this),e=t.data("value"),i=t.hasClass("counter-animated");isElementInViewport(t)&&!i&&(t.addClass("counter-animated"),$({startVal:0}).animate({startVal:e},{duration:3e3,easing:"swing",step:function(){t.text(getNumberWithCommas(Math.ceil(this.startVal)))}}))})}$(".sc-counter").each(function(){$(this).data("value",$(this).text()).text(0)}),t(),$(window).on("load resize scroll",function(){t()})}()},function(t,e,i){var n,r,a;!function(o){"use strict";r=[i(13)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t){"use strict";function e(t){if(t instanceof Date)return t;if(String(t).match(o))return String(t).match(/^[0-9]*$/)&&(t=Number(t)),String(t).match(/\-/)&&(t=String(t).replace(/\-/g,"/")),new Date(t);throw new Error("Couldn't cast `"+t+"` to a date object.")}function i(t){var e=t.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(e)}function n(t){return function(e){var n=e.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(n)for(var a=0,o=n.length;a<o;++a){var s=n[a].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),u=i(s[0]),h=s[1]||"",c=s[3]||"",d=null;s=s[2],l.hasOwnProperty(s)&&(d=l[s],d=Number(t[d])),null!==d&&("!"===h&&(d=r(c,d)),""===h&&d<10&&(d="0"+d.toString()),e=e.replace(u,d.toString()))}return e=e.replace(/%%/,"%")}}function r(t,e){var i="s",n="";return t&&(t=t.replace(/(:|;|\s)/gi,"").split(/\,/),1===t.length?i=t[0]:(n=t[0],i=t[1])),Math.abs(e)>1?i:n}var a=[],o=[],s={precision:100,elapse:!1,defer:!1};o.push(/^[0-9]*$/.source),o.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),o.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),o=new RegExp(o.join("|"));var l={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"},u=function(e,i,n){this.el=e,this.$el=t(e),this.interval=null,this.offset={},this.options=t.extend({},s),this.instanceNumber=a.length,a.push(this),this.$el.data("countdown-instance",this.instanceNumber),n&&("function"==typeof n?(this.$el.on("update.countdown",n),this.$el.on("stoped.countdown",n),this.$el.on("finish.countdown",n)):this.options=t.extend({},s,n)),this.setFinalDate(i),this.options.defer===!1&&this.start()};t.extend(u.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var t=this;this.update(),this.interval=setInterval(function(){t.update.call(t)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),a[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(t){this.finalDate=e(t)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var e,i=void 0!==t._data(this.el,"events"),n=new Date;e=this.finalDate.getTime()-n.getTime(),e=Math.ceil(e/1e3),e=!this.options.elapse&&e<0?0:Math.abs(e),this.totalSecsLeft!==e&&i&&(this.totalSecsLeft=e,this.elapsed=n>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-n.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))},dispatchEvent:function(e){var i=t.Event(e+".countdown");i.finalDate=this.finalDate,i.elapsed=this.elapsed,i.offset=t.extend({},this.offset),i.strftime=n(this.offset),this.$el.trigger(i)}}),t.fn.countdown=function(){var e=Array.prototype.slice.call(arguments,0);return this.each(function(){var i=t(this).data("countdown-instance");if(void 0!==i){var n=a[i],r=e[0];u.prototype.hasOwnProperty(r)?n[r].apply(n,e.slice(1)):null===String(r).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(n.setFinalDate.call(n,r),n.start()):t.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,r))}else new u(this,e[0],e[1])})}})},function(t,e){!function(){"use strict";var t=$(".counter");t.each(function(){function t(t){var e=$(this);switch(t.type){case"seconds":case"minutes":case"hours":case"days":case"weeks":case"daysLeft":e.find("div span."+t.type).html(t.value),r&&(e.fadeTo(0,1),r=!1);break;case"finished":e.fadeTo("slow",.5),r=!0}}var e=$(this),i=e.data("date"),n=new Date(i),r=!1;e.countdown(n.valueOf(),t)})}()},function(module,exports,__webpack_require__){__webpack_require__(357),function(){"use strict";var Charts={_HYPHY_REGEX:/-([a-z])/g,_cleanAttr:function(t){delete t.chart,delete t.datasets,delete t.datasetsOptions,delete t.labels,delete t.options},spark:function(element){var attrData=$.extend({},$(element).data()),data=attrData.dataset?eval(attrData.dataset):[],datasetOptions=attrData.datasetOptions?eval(attrData.datasetOptions):[],labels=attrData.labels?eval(attrData.labels):{},options=attrData.options?eval("("+attrData.options+")"):{},data={labels:labels,datasets:data.map(function(t,e){return $.extend({data:t,fill:!0,backgroundColor:"rgba(255,255,255,.3)",borderColor:"#fff",pointBorderColor:"#fff",lineTension:.25,pointRadius:0},datasetOptions[e])})};Charts._cleanAttr(attrData);var options=$.extend({animation:{duration:0},legend:{display:!1},scales:{xAxes:[{display:!1}],yAxes:[{display:!1}]},tooltips:{enabled:!1}},options);new Chart(element.getContext("2d"),{type:$(element).data().chartType,data:data,options:options})},line:function(element){var attrData=$.extend({},$(element).data()),data=attrData.dataset?eval(attrData.dataset):[],datasetOptions=attrData.datasetOptions?eval(attrData.datasetOptions):[],labels=attrData.labels?eval(attrData.labels):{},options=attrData.options?eval("("+attrData.options+")"):{},isDark=!!attrData.dark,data={labels:labels,datasets:data.map(function(t,e){return $.extend({data:t,fill:!0,backgroundColor:isDark?"rgba(28,168,221,.03)":"rgba(66,165,245,.2)",borderColor:"#42a5f5",pointBorderColor:"#fff",lineTension:.25,pointRadius:0,pointHoverRadius:0,pointHitRadius:20},datasetOptions[e])})};Charts._cleanAttr(attrData);var options=$.extend({maintainAspectRatio:!1,animation:{duration:0},legend:{display:!1},scales:{yAxes:[{gridLines:{color:isDark?"rgba(255,255,255,.05)":"rgba(0,0,0,.05)",zeroLineColor:isDark?"rgba(255,255,255,.05)":"rgba(0,0,0,.05)",drawBorder:!1},ticks:{beginAtZero:!1,fixedStepSize:1e3,fontColor:isDark?"#a2a2a2":"rgba(0,0,0,.4)",fontSize:14}}],xAxes:[{gridLines:{display:!1},ticks:{fontColor:isDark?"#a2a2a2":"rgba(0,0,0,.4)",fontSize:14}}]},tooltips:{enabled:!0,bodyFontSize:14,callbacks:{title:function(){return""},labelColor:function(){return{backgroundColor:"#42a5f5",borderColor:"#42a5f5"}}}}},options);new Chart(element.getContext("2d"),{type:"line",data:data,options:options})},bar:function(element){var attrData=$.extend({},$(element).data()),data=attrData.dataset?eval(attrData.dataset):[],datasetOptions=attrData.datasetOptions?eval(attrData.datasetOptions):[],labels=attrData.labels?eval(attrData.labels):{},options=attrData.options?eval("("+attrData.options+")"):{},isDark=!!attrData.dark,data={labels:labels,datasets:data.map(function(t,e){return $.extend({data:t,fill:!0,backgroundColor:e%2?"#42a5f5":"#1bc98e",borderColor:"transparent"},datasetOptions[e])})};Charts._cleanAttr(attrData);var options=$.extend({maintainAspectRatio:!1,animation:{duration:0},legend:{display:!1},scales:{yAxes:[{gridLines:{color:isDark?"rgba(255,255,255,.05)":"rgba(0,0,0,.05)",zeroLineColor:isDark?"rgba(255,255,255,.05)":"rgba(0,0,0,.05)",drawBorder:!1},ticks:{fixedStepSize:25,fontColor:isDark?"#a2a2a2":"rgba(0,0,0,.4)",fontSize:14}}],xAxes:[{gridLines:{display:!1},ticks:{fontColor:isDark?"#a2a2a2":"rgba(0,0,0,.4)",fontSize:14}}]},tooltips:{enabled:!0,bodyFontSize:14}},options);new Chart(element.getContext("2d"),{type:"bar",data:data,options:options})},chartJs:function(element){var attrData=$.extend({},$(element).data()),data=attrData.dataset?eval(attrData.dataset):[],datasetOptions=attrData.datasetOptions?eval(attrData.datasetOptions):[],labels=attrData.labels?eval(attrData.labels):{},options=attrData.options?eval("("+attrData.options+")"):{},isDark=!!attrData.dark,data={labels:labels,datasets:data.map(function(t,e){return $.extend({data:t,fill:!0,backgroundColor:e%2?"#42a5f5":"#1bc98e",borderColor:"transparent"},datasetOptions[e])})};Charts._cleanAttr(attrData);var options=$.extend({maintainAspectRatio:!1,animation:{duration:0},tooltips:{enabled:!0,bodyFontSize:14}},options);new Chart(element.getContext("2d"),{type:$(element).data().chartType,data:data,options:options})},radar:function(element){var attrData=$.extend({},$(element).data()),data=attrData.dataset?eval(attrData.dataset):[],datasetOptions=attrData.datasetOptions?eval(attrData.datasetOptions):[],labels=attrData.labels?eval(attrData.labels):{},options=attrData.options?eval("("+attrData.options+")"):{},isDark=!!attrData.dark,data={labels:labels,datasets:data.map(function(t,e){return $.extend({data:t,fill:!0,backgroundColor:e%2?"#42a5f5":"#1bc98e",borderColor:"transparent"},datasetOptions[e])})};Charts._cleanAttr(attrData);var options=$.extend({maintainAspectRatio:!1,animation:{duration:0},legend:{display:!1},scales:{yAxes:[{gridLines:{color:isDark?"rgba(255,255,255,.05)":"rgba(0,0,0,.05)",zeroLineColor:isDark?"rgba(255,255,255,.05)":"rgba(0,0,0,.05)",drawBorder:!1},ticks:{fixedStepSize:25,fontColor:isDark?"#a2a2a2":"rgba(0,0,0,.4)",fontSize:14}}],xAxes:[{gridLines:{display:!1},ticks:{fontColor:isDark?"#a2a2a2":"rgba(0,0,0,.4)",fontSize:14}}]},tooltips:{enabled:!0,bodyFontSize:14}},options);new Chart(element.getContext("2d"),{type:"radar",data:data,options:options})}},initCharts=function(){$("[data-chart]").each(function(){$(this).is(":visible")&&!$(this).hasClass("js-chart-drawn")&&(Charts[$(this).attr("data-chart")](this),$(this).addClass("js-chart-drawn"))})};initCharts(),$('a[data-toggle="tab"], a[data-toggle="pill"]').on("shown.bs.tab",function(t){initCharts()})}()},function(t,e,i){var n=i(358)();n.helpers=i(6),i(362)(n),n.defaults=i(9),n.Element=i(24),n.elements=i(32),n.Interaction=i(120),n.layouts=i(52),n.platform=i(121),n.plugins=i(122),n.Ticks=i(53),i(373)(n),i(374)(n),i(375)(n),i(376)(n),i(377)(n),i(378)(n),i(379)(n),i(380)(n),i(381)(n),i(382)(n),i(383)(n),i(384)(n),i(386)(n),i(387)(n),i(388)(n),i(389)(n),i(390)(n),i(391)(n),i(392)(n),i(393)(n),i(394)(n),i(395)(n),i(396)(n),i(397)(n),i(398)(n),i(399)(n);var r=i(400);for(var a in r)r.hasOwnProperty(a)&&n.plugins.register(r[a]);n.platform.initialize(),t.exports=n,"undefined"!=typeof window&&(window.Chart=n),n.Legend=r.legend._element,n.Title=r.title._element,n.pluginService=n.plugins,n.PluginBase=n.Element.extend({}),n.canvasHelpers=n.helpers.canvas,n.layoutService=n.layouts},function(t,e,i){"use strict";var n=i(9);n._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),t.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},function(t,e,i){"use strict";var n=i(71),r={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-Math.cos(t*(Math.PI/2))+1},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:-Math.pow(2,-10*t)+1},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===t?1:(i||(i=.3),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},easeOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===t?1:(i||(i=.3),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},easeInOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:2===(t/=.5)?1:(i||(i=.45),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),t<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-r.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*r.easeInBounce(2*t):.5*r.easeOutBounce(2*t-1)+.5}};t.exports={effects:r},n.easingEffects=r},function(t,e,i){"use strict";var n=i(71),e=t.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,i,n,r,a){if(a){var o=Math.min(a,n/2),s=Math.min(a,r/2);t.moveTo(e+o,i),t.lineTo(e+n-o,i),t.quadraticCurveTo(e+n,i,e+n,i+s),t.lineTo(e+n,i+r-s),t.quadraticCurveTo(e+n,i+r,e+n-o,i+r),t.lineTo(e+o,i+r),t.quadraticCurveTo(e,i+r,e,i+r-s),t.lineTo(e,i+s),t.quadraticCurveTo(e,i,e+o,i)}else t.rect(e,i,n,r)},drawPoint:function(t,e,i,n,r){var a,o,s,l,u,h;if(e&&"object"==typeof e&&(a=e.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return void t.drawImage(e,n-e.width/2,r-e.height/2,e.width,e.height);if(!(isNaN(i)||i<=0)){switch(e){default:t.beginPath(),t.arc(n,r,i,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),o=3*i/Math.sqrt(3),u=o*Math.sqrt(3)/2,t.moveTo(n-o/2,r+u/3),t.lineTo(n+o/2,r+u/3),t.lineTo(n,r-2*u/3),t.closePath(),t.fill();break;case"rect":h=1/Math.SQRT2*i,t.beginPath(),t.fillRect(n-h,r-h,2*h,2*h),t.strokeRect(n-h,r-h,2*h,2*h);break;case"rectRounded":var c=i/Math.SQRT2,d=n-c,p=r-c,f=Math.SQRT2*i;t.beginPath(),this.roundedRect(t,d,p,f,f,i/2),t.closePath(),t.fill();break;case"rectRot":h=1/Math.SQRT2*i,t.beginPath(),t.moveTo(n-h,r),t.lineTo(n,r+h),t.lineTo(n+h,r),t.lineTo(n,r-h),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(n,r+i),t.lineTo(n,r-i),t.moveTo(n-i,r),t.lineTo(n+i,r),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-s,r-l),t.lineTo(n+s,r+l),t.moveTo(n-s,r+l),t.lineTo(n+s,r-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(n,r+i),t.lineTo(n,r-i),t.moveTo(n-i,r),t.lineTo(n+i,r),s=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-s,r-l),t.lineTo(n+s,r+l),t.moveTo(n-s,r+l),t.lineTo(n+s,r-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(n-i,r),t.lineTo(n+i,r),t.closePath();break;case"dash":t.beginPath(),t.moveTo(n,r),t.lineTo(n+i,r),t.closePath()}t.stroke()}},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,i,n){return i.steppedLine?("after"===i.steppedLine&&!n||"after"!==i.steppedLine&&n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y),void t.lineTo(i.x,i.y)):i.tension?void t.bezierCurveTo(n?e.controlPointPreviousX:e.controlPointNextX,n?e.controlPointPreviousY:e.controlPointNextY,n?i.controlPointNextX:i.controlPointPreviousX,n?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):void t.lineTo(i.x,i.y)}};n.clear=e.clear,n.drawRoundedRectangle=function(t){t.beginPath(),e.roundedRect.apply(e,arguments),t.closePath()}},function(t,e,i){"use strict";var n=i(71);t.exports={toLineHeight:function(t,e){var i=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,i,r,a;return n.isObject(t)?(e=+t.top||0,i=+t.right||0,r=+t.bottom||0,a=+t.left||0):e=i=r=a=+t||0,{top:e,right:i,bottom:r,left:a,height:e+r,width:a+i}},resolve:function(t,e,i){var r,a,o;for(r=0,a=t.length;r<a;++r)if(o=t[r],void 0!==o&&(void 0!==e&&"function"==typeof o&&(o=o(e)),void 0!==i&&n.isArray(o)&&(o=o[i]),void 0!==o))return o}}},function(t,e,i){"use strict";var n=i(119),r=i(9),a=i(6);t.exports=function(t){function e(t,e,i){var n;return"string"==typeof t?(n=parseInt(t,10),t.indexOf("%")!==-1&&(n=n/100*e.parentNode[i])):n=t,n}function i(t){return void 0!==t&&null!==t&&"none"!==t}function o(t,n,r){var a=document.defaultView,o=t.parentNode,s=a.getComputedStyle(t)[n],l=a.getComputedStyle(o)[n],u=i(s),h=i(l),c=Number.POSITIVE_INFINITY;return u||h?Math.min(u?e(s,t,r):c,h?e(l,o,r):c):"none"}a.configMerge=function(){return a.merge(a.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,i,n,r){var o=i[e]||{},s=n[e];"scales"===e?i[e]=a.scaleMerge(o,s):"scale"===e?i[e]=a.merge(o,[t.scaleService.getScaleDefaults(s.type),s]):a._merger(e,i,n,r)}})},a.scaleMerge=function(){return a.merge(a.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,i,n,r){if("xAxes"===e||"yAxes"===e){var o,s,l,u=n[e].length;for(i[e]||(i[e]=[]),o=0;o<u;++o)l=n[e][o],s=a.valueOrDefault(l.type,"xAxes"===e?"category":"linear"),o>=i[e].length&&i[e].push({}),!i[e][o].type||l.type&&l.type!==i[e][o].type?a.merge(i[e][o],[t.scaleService.getScaleDefaults(s),l]):a.merge(i[e][o],l)}else a._merger(e,i,n,r)}})},a.where=function(t,e){if(a.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return a.each(t,function(t){e(t)&&i.push(t)}),i},a.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,r=t.length;n<r;++n)if(e.call(i,t[n],n,t))return n;return-1},a.findNextWhere=function(t,e,i){a.isNullOrUndef(i)&&(i=-1);for(var n=i+1;n<t.length;n++){var r=t[n];if(e(r))return r}},a.findPreviousWhere=function(t,e,i){a.isNullOrUndef(i)&&(i=t.length);for(var n=i-1;n>=0;n--){var r=t[n];if(e(r))return r}},a.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},a.almostEquals=function(t,e,i){return Math.abs(t-e)<i},a.almostWhole=function(t,e){var i=Math.round(t);return i-e<t&&i+e>t},a.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},a.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},a.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},a.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,i=Math.round(e),n=t===Math.pow(10,i);return n?i:e},a.toRadians=function(t){return t*(Math.PI/180)},a.toDegrees=function(t){return t*(180/Math.PI)},a.getAngleFromPoint=function(t,e){var i=e.x-t.x,n=e.y-t.y,r=Math.sqrt(i*i+n*n),a=Math.atan2(n,i);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:r}},a.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.aliasPixel=function(t){return t%2===0?0:.5},a.splineCurve=function(t,e,i,n){var r=t.skip?e:t,a=e,o=i.skip?e:i,s=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),h=l/(s+l);u=isNaN(u)?0:u,h=isNaN(h)?0:h;var c=n*u,d=n*h;return{previous:{x:a.x-c*(o.x-r.x),y:a.y-c*(o.y-r.y)},next:{x:a.x+d*(o.x-r.x),y:a.y+d*(o.y-r.y)}}},a.EPSILON=Number.EPSILON||1e-14,a.splineCurveMonotone=function(t){var e,i,n,r,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e<s;++e)if(n=o[e],!n.model.skip){if(i=e>0?o[e-1]:null,r=e<s-1?o[e+1]:null,r&&!r.model.skip){var l=r.model.x-n.model.x;n.deltaK=0!==l?(r.model.y-n.model.y)/l:0}!i||i.model.skip?n.mK=n.deltaK:!r||r.model.skip?n.mK=i.deltaK:this.sign(i.deltaK)!==this.sign(n.deltaK)?n.mK=0:n.mK=(i.deltaK+n.deltaK)/2}var u,h,c,d;for(e=0;e<s-1;++e)n=o[e],r=o[e+1],n.model.skip||r.model.skip||(a.almostEquals(n.deltaK,0,this.EPSILON)?n.mK=r.mK=0:(u=n.mK/n.deltaK,h=r.mK/n.deltaK,d=Math.pow(u,2)+Math.pow(h,2),d<=9||(c=3/Math.sqrt(d),n.mK=u*c*n.deltaK,r.mK=h*c*n.deltaK)));var p;for(e=0;e<s;++e)n=o[e],n.model.skip||(i=e>0?o[e-1]:null,r=e<s-1?o[e+1]:null,i&&!i.model.skip&&(p=(n.model.x-i.model.x)/3,n.model.controlPointPreviousX=n.model.x-p,n.model.controlPointPreviousY=n.model.y-p*n.mK),r&&!r.model.skip&&(p=(r.model.x-n.model.x)/3,n.model.controlPointNextX=n.model.x+p,n.model.controlPointNextY=n.model.y+p*n.mK))},a.nextItem=function(t,e,i){return i?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},a.previousItem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},a.niceNum=function(t,e){var i,n=Math.floor(a.log10(t)),r=t/Math.pow(10,n);return i=e?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10,i*Math.pow(10,n)},a.requestAnimFrame=function(){return"undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),a.getRelativePosition=function(t,e){var i,n,r=t.originalEvent||t,o=t.currentTarget||t.srcElement,s=o.getBoundingClientRect(),l=r.touches;l&&l.length>0?(i=l[0].clientX,n=l[0].clientY):(i=r.clientX,n=r.clientY);var u=parseFloat(a.getStyle(o,"padding-left")),h=parseFloat(a.getStyle(o,"padding-top")),c=parseFloat(a.getStyle(o,"padding-right")),d=parseFloat(a.getStyle(o,"padding-bottom")),p=s.right-s.left-u-c,f=s.bottom-s.top-h-d;return i=Math.round((i-s.left-u)/p*o.width/e.currentDevicePixelRatio),n=Math.round((n-s.top-h)/f*o.height/e.currentDevicePixelRatio),{x:i,y:n}},a.getConstraintWidth=function(t){return o(t,"max-width","clientWidth")},a.getConstraintHeight=function(t){return o(t,"max-height","clientHeight")},a.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var i=parseInt(a.getStyle(e,"padding-left"),10),n=parseInt(a.getStyle(e,"padding-right"),10),r=e.clientWidth-i-n,o=a.getConstraintWidth(t);return isNaN(o)?r:Math.min(r,o)},a.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var i=parseInt(a.getStyle(e,"padding-top"),10),n=parseInt(a.getStyle(e,"padding-bottom"),10),r=e.clientHeight-i-n,o=a.getConstraintHeight(t);return isNaN(o)?r:Math.min(r,o)},a.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e); },a.retinaScale=function(t,e){var i=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==i){var n=t.canvas,r=t.height,a=t.width;n.height=r*i,n.width=a*i,t.ctx.scale(i,i),n.style.height||n.style.width||(n.style.height=r+"px",n.style.width=a+"px")}},a.fontString=function(t,e,i){return e+" "+t+"px "+i},a.longestText=function(t,e,i,n){n=n||{};var r=n.data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(r=n.data={},o=n.garbageCollect=[],n.font=e),t.font=e;var s=0;a.each(i,function(e){void 0!==e&&null!==e&&a.isArray(e)!==!0?s=a.measureText(t,r,o,s,e):a.isArray(e)&&a.each(e,function(e){void 0===e||null===e||a.isArray(e)||(s=a.measureText(t,r,o,s,e))})});var l=o.length/2;if(l>i.length){for(var u=0;u<l;u++)delete r[o[u]];o.splice(0,l)}return s},a.measureText=function(t,e,i,n,r){var a=e[r];return a||(a=e[r]=t.measureText(r).width,i.push(r)),a>n&&(n=a),n},a.numberOfLabelLines=function(t){var e=1;return a.each(t,function(t){a.isArray(t)&&t.length>e&&(e=t.length)}),e},a.color=n?function(t){return t instanceof CanvasGradient&&(t=r.global.defaultColor),n(t)}:function(t){return console.error("Color.js not found!"),t},a.getHoverColor=function(t){return t instanceof CanvasPattern?t:a.color(t).saturate(.5).darken(.1).rgbString()}}},function(t,e,i){var n=i(364),r=function(){return new u};for(var a in n){r[a+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),n[t](e)}}(a);var o=/(\w+)2(\w+)/.exec(a),s=o[1],l=o[2];r[s]=r[s]||{},r[s][l]=r[a]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var i=n[t](e);if("string"==typeof i||void 0===i)return i;for(var r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(a)}var u=function(){this.convs={}};u.prototype.routeSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i))},u.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},u.prototype.getValues=function(t){var e=this.convs[t];if(!e){var i=this.space,n=this.convs[i];e=r[i][t](n),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){u.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),t.exports=r},function(t,e){function i(t){var e,i,n,r=t[0]/255,a=t[1]/255,o=t[2]/255,s=Math.min(r,a,o),l=Math.max(r,a,o),u=l-s;return l==s?e=0:r==l?e=(a-o)/u:a==l?e=2+(o-r)/u:o==l&&(e=4+(r-a)/u),e=Math.min(60*e,360),e<0&&(e+=360),n=(s+l)/2,i=l==s?0:n<=.5?u/(l+s):u/(2-l-s),[e,100*i,100*n]}function n(t){var e,i,n,r=t[0],a=t[1],o=t[2],s=Math.min(r,a,o),l=Math.max(r,a,o),u=l-s;return i=0==l?0:u/l*1e3/10,l==s?e=0:r==l?e=(a-o)/u:a==l?e=2+(o-r)/u:o==l&&(e=4+(r-a)/u),e=Math.min(60*e,360),e<0&&(e+=360),n=l/255*1e3/10,[e,i,n]}function a(t){var e=t[0],n=t[1],r=t[2],a=i(t)[0],o=1/255*Math.min(e,Math.min(n,r)),r=1-1/255*Math.max(e,Math.max(n,r));return[a,100*o,100*r]}function o(t){var e,i,n,r,a=t[0]/255,o=t[1]/255,s=t[2]/255;return r=Math.min(1-a,1-o,1-s),e=(1-a-r)/(1-r)||0,i=(1-o-r)/(1-r)||0,n=(1-s-r)/(1-r)||0,[100*e,100*i,100*n,100*r]}function s(t){return Z[JSON.stringify(t)]}function l(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var r=.4124*e+.3576*i+.1805*n,a=.2126*e+.7152*i+.0722*n,o=.0193*e+.1192*i+.9505*n;return[100*r,100*a,100*o]}function u(t){var e,i,n,r=l(t),a=r[0],o=r[1],s=r[2];return a/=95.047,o/=100,s/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,i=500*(a-o),n=200*(o-s),[e,i,n]}function h(t){return z(u(t))}function c(t){var e,i,n,r,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return a=255*l,[a,a,a];i=l<.5?l*(1+s):l+s-l*s,e=2*l-i,r=[0,0,0];for(var u=0;u<3;u++)n=o+1/3*-(u-1),n<0&&n++,n>1&&n--,a=6*n<1?e+6*(i-e)*n:2*n<1?i:3*n<2?e+(i-e)*(2/3-n)*6:e,r[u]=255*a;return r}function d(t){var e,i,n=t[0],r=t[1]/100,a=t[2]/100;return 0===a?[0,0,0]:(a*=2,r*=a<=1?a:2-a,i=(a+r)/2,e=2*r/(a+r),[n,100*e,100*i])}function p(t){return a(c(t))}function f(t){return o(c(t))}function m(t){return s(c(t))}function v(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,r=Math.floor(e)%6,a=e-Math.floor(e),o=255*n*(1-i),s=255*n*(1-i*a),l=255*n*(1-i*(1-a)),n=255*n;switch(r){case 0:return[n,l,o];case 1:return[s,n,o];case 2:return[o,n,l];case 3:return[o,s,n];case 4:return[l,o,n];case 5:return[n,o,s]}}function y(t){var e,i,n=t[0],r=t[1]/100,a=t[2]/100;return i=(2-r)*a,e=r*a,e/=i<=1?i:2-i,e=e||0,i/=2,[n,100*e,100*i]}function _(t){return a(v(t))}function x(t){return o(v(t))}function w(t){return s(v(t))}function M(t){var e,i,n,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),e=Math.floor(6*o),i=1-l,n=6*o-e,0!=(1&e)&&(n=1-n),a=s+n*(i-s),e){default:case 6:case 0:r=i,g=a,b=s;break;case 1:r=a,g=i,b=s;break;case 2:r=s,g=i,b=a;break;case 3:r=s,g=a,b=i;break;case 4:r=a,g=s,b=i;break;case 5:r=i,g=s,b=a}return[255*r,255*g,255*b]}function S(t){return i(M(t))}function k(t){return n(M(t))}function D(t){return o(M(t))}function T(t){return s(M(t))}function L(t){var e,i,n,r=t[0]/100,a=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,r*(1-s)+s),i=1-Math.min(1,a*(1-s)+s),n=1-Math.min(1,o*(1-s)+s),[255*e,255*i,255*n]}function C(t){return i(L(t))}function I(t){return n(L(t))}function A(t){return a(L(t))}function P(t){return s(L(t))}function E(t){var e,i,n,r=t[0]/100,a=t[1]/100,o=t[2]/100;return e=3.2406*r+a*-1.5372+o*-.4986,i=r*-.9689+1.8758*a+.0415*o,n=.0557*r+a*-.204+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e=12.92*e,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i=12.92*i,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n=12.92*n,e=Math.min(Math.max(0,e),1),i=Math.min(Math.max(0,i),1),n=Math.min(Math.max(0,n),1),[255*e,255*i,255*n]}function O(t){var e,i,n,r=t[0],a=t[1],o=t[2];return r/=95.047,a/=100,o/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*a-16,i=500*(r-a),n=200*(a-o),[e,i,n]}function R(t){return z(O(t))}function H(t){var e,i,n,r,a=t[0],o=t[1],s=t[2];return a<=8?(i=100*a/903.3,r=7.787*(i/100)+16/116):(i=100*Math.pow((a+16)/116,3),r=Math.pow(i/100,1/3)),e=e/95.047<=.008856?e=95.047*(o/500+r-16/116)/7.787:95.047*Math.pow(o/500+r,3),n=n/108.883<=.008859?n=108.883*(r-s/200-16/116)/7.787:108.883*Math.pow(r-s/200,3),[e,i,n]}function z(t){var e,i,n,r=t[0],a=t[1],o=t[2];return e=Math.atan2(o,a),i=360*e/2/Math.PI,i<0&&(i+=360),n=Math.sqrt(a*a+o*o),[r,n,i]}function Y(t){return E(H(t))}function N(t){var e,i,n,r=t[0],a=t[1],o=t[2];return n=o/360*2*Math.PI,e=a*Math.cos(n),i=a*Math.sin(n),[r,e,i]}function F(t){return H(N(t))}function W(t){return Y(N(t))}function B(t){return X[t]}function j(t){return i(B(t))}function V(t){return n(B(t))}function $(t){return a(B(t))}function G(t){return o(B(t))}function U(t){return u(B(t))}function q(t){return l(B(t))}t.exports={rgb2hsl:i,rgb2hsv:n,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:h,hsl2rgb:c,hsl2hsv:d,hsl2hwb:p,hsl2cmyk:f,hsl2keyword:m,hsv2rgb:v,hsv2hsl:y,hsv2hwb:_,hsv2cmyk:x,hsv2keyword:w,hwb2rgb:M,hwb2hsl:S,hwb2hsv:k,hwb2cmyk:D,hwb2keyword:T,cmyk2rgb:L,cmyk2hsl:C,cmyk2hsv:I,cmyk2hwb:A,cmyk2keyword:P,keyword2rgb:B,keyword2hsl:j,keyword2hsv:V,keyword2hwb:$,keyword2cmyk:G,keyword2lab:U,keyword2xyz:q,xyz2rgb:E,xyz2lab:O,xyz2lch:R,lab2xyz:H,lab2rgb:Y,lab2lch:z,lch2lab:N,lch2xyz:F,lch2rgb:W};var X={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Z={};for(var K in X)Z[JSON.stringify(X[K])]=K},function(t,e,i){function n(t){if(t){var e=/^#([a-fA-F0-9]{3})$/i,i=/^#([a-fA-F0-9]{6})$/i,n=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,r=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,a=/(\w+)/,o=[0,0,0],s=1,l=t.match(e);if(l){l=l[1];for(var u=0;u<o.length;u++)o[u]=parseInt(l[u]+l[u],16)}else if(l=t.match(i)){l=l[1];for(var u=0;u<o.length;u++)o[u]=parseInt(l.slice(2*u,2*u+2),16)}else if(l=t.match(n)){for(var u=0;u<o.length;u++)o[u]=parseInt(l[u+1]);s=parseFloat(l[4])}else if(l=t.match(r)){for(var u=0;u<o.length;u++)o[u]=Math.round(2.55*parseFloat(l[u+1]));s=parseFloat(l[4])}else if(l=t.match(a)){if("transparent"==l[1])return[0,0,0,0];if(o=b[l[1]],!o)return}for(var u=0;u<o.length;u++)o[u]=y(o[u],0,255);return s=s||0==s?y(s,0,1):1,o[3]=s,o}}function r(t){if(t){var e=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,i=t.match(e);if(i){var n=parseFloat(i[4]),r=y(parseInt(i[1]),0,360),a=y(parseFloat(i[2]),0,100),o=y(parseFloat(i[3]),0,100),s=y(isNaN(n)?1:n,0,1);return[r,a,o,s]}}}function a(t){if(t){var e=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,i=t.match(e);if(i){var n=parseFloat(i[4]),r=y(parseInt(i[1]),0,360),a=y(parseFloat(i[2]),0,100),o=y(parseFloat(i[3]),0,100),s=y(isNaN(n)?1:n,0,1);return[r,a,o,s]}}}function o(t){var e=n(t);return e&&e.slice(0,3)}function s(t){var e=r(t);return e&&e.slice(0,3)}function l(t){var e=n(t);return e?e[3]:(e=r(t))?e[3]:(e=a(t))?e[3]:void 0}function u(t){return"#"+_(t[0])+_(t[1])+_(t[2])}function h(t,e){return e<1||t[3]&&t[3]<1?c(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function c(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function d(t,e){if(e<1||t[3]&&t[3]<1)return p(t,e);var i=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return"rgb("+i+"%, "+n+"%, "+r+"%)"}function p(t,e){var i=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return"rgba("+i+"%, "+n+"%, "+r+"%, "+(e||t[3]||1)+")"}function f(t,e){return e<1||t[3]&&t[3]<1?g(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function g(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function m(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"}function v(t){return x[t.slice(0,3)]}function y(t,e,i){return Math.min(Math.max(e,t),i)}function _(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var b=i(366);t.exports={getRgba:n,getHsla:r,getRgb:o,getHsl:s,getHwb:a,getAlpha:l,hexString:u,rgbString:h,rgbaString:c,percentString:d,percentaString:p,hslString:f,hslaString:g,hwbString:m,keyword:v};var x={};for(var w in b)x[b[w]]=w},function(t,e,i){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,i){"use strict";var n=i(9),r=i(24),a=i(6);n._set("global",{elements:{arc:{backgroundColor:n.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),t.exports=r.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var i=this._view;if(i){for(var n=a.getAngleFromPoint(i,{x:t,y:e}),r=n.angle,o=n.distance,s=i.startAngle,l=i.endAngle;l<s;)l+=2*Math.PI;for(;r>l;)r-=2*Math.PI;for(;r<s;)r+=2*Math.PI;var u=r>=s&&r<=l,h=o>=i.innerRadius&&o<=i.outerRadius;return u&&h}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,i=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},function(t,e,i){"use strict";var n=i(9),r=i(24),a=i(6),o=n.global;n._set("global",{elements:{line:{tension:.4,backgroundColor:o.defaultColor,borderWidth:3,borderColor:o.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),t.exports=r.extend({draw:function(){var t,e,i,n,r=this,s=r._view,l=r._chart.ctx,u=s.spanGaps,h=r._children.slice(),c=o.elements.line,d=-1;for(r._loop&&h.length&&h.push(h[0]),l.save(),l.lineCap=s.borderCapStyle||c.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||c.borderDash),l.lineDashOffset=s.borderDashOffset||c.borderDashOffset,l.lineJoin=s.borderJoinStyle||c.borderJoinStyle,l.lineWidth=s.borderWidth||c.borderWidth,l.strokeStyle=s.borderColor||o.defaultColor,l.beginPath(),d=-1,t=0;t<h.length;++t)e=h[t],i=a.previousItem(h,t),n=e._view,0===t?n.skip||(l.moveTo(n.x,n.y),d=t):(i=d===-1?i:h[d],n.skip||(d!==t-1&&!u||d===-1?l.moveTo(n.x,n.y):a.canvas.lineTo(l,i._view,e._view),d=t));l.stroke(),l.restore()}})},function(t,e,i){"use strict";function n(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}function r(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius}var a=i(9),o=i(24),s=i(6),l=a.global.defaultColor;a._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:l,borderColor:l,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),t.exports=o.extend({inRange:function(t,e){var i=this._view;return!!i&&Math.pow(t-i.x,2)+Math.pow(e-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:n,inXRange:n,inYRange:r,getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,i=this._model,n=this._chart.ctx,r=e.pointStyle,o=e.radius,u=e.x,h=e.y,c=s.color,d=1.01,p=0;e.skip||(n.strokeStyle=e.borderColor||l,n.lineWidth=s.valueOrDefault(e.borderWidth,a.global.elements.point.borderWidth),n.fillStyle=e.backgroundColor||l,void 0!==t&&(i.x<t.left||t.right*d<i.x||i.y<t.top||t.bottom*d<i.y)&&(i.x<t.left?p=(u-i.x)/(t.left-i.x):t.right*d<i.x?p=(i.x-u)/(i.x-t.right):i.y<t.top?p=(h-i.y)/(t.top-i.y):t.bottom*d<i.y&&(p=(i.y-h)/(i.y-t.bottom)),p=Math.round(100*p)/100,n.strokeStyle=c(n.strokeStyle).alpha(p).rgbString(),n.fillStyle=c(n.fillStyle).alpha(p).rgbString()),s.canvas.drawPoint(n,r,o,u,h))}})},function(t,e,i){"use strict";function n(t){return void 0!==t._view.width}function r(t){var e,i,r,a,o=t._view;if(n(t)){var s=o.width/2;e=o.x-s,i=o.x+s,r=Math.min(o.y,o.base),a=Math.max(o.y,o.base)}else{var l=o.height/2;e=Math.min(o.x,o.base),i=Math.max(o.x,o.base),r=o.y-l,a=o.y+l}return{left:e,top:r,right:i,bottom:a}}var a=i(9),o=i(24);a._set("global",{elements:{rectangle:{backgroundColor:a.global.defaultColor,borderColor:a.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),t.exports=o.extend({draw:function(){function t(t){return v[(_+t)%4]}var e,i,n,r,a,o,s,l=this._chart.ctx,u=this._view,h=u.borderWidth;if(u.horizontal?(e=u.base,i=u.x,n=u.y-u.height/2,r=u.y+u.height/2,a=i>e?1:-1,o=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,i=u.x+u.width/2,n=u.y,r=u.base,a=1,o=r>n?1:-1,s=u.borderSkipped||"bottom"),h){var c=Math.min(Math.abs(e-i),Math.abs(n-r));h=h>c?c:h;var d=h/2,p=e+("left"!==s?d*a:0),f=i+("right"!==s?-d*a:0),g=n+("top"!==s?d*o:0),m=r+("bottom"!==s?-d*o:0);p!==f&&(n=g,r=m),g!==m&&(e=p,i=f)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=h;var v=[[e,r],[e,n],[i,n],[i,r]],y=["bottom","left","top","right"],_=y.indexOf(s,0);_===-1&&(_=0);var b=t(0);l.moveTo(b[0],b[1]);for(var x=1;x<4;x++)b=t(x),l.lineTo(b[0],b[1]);l.fill(),h&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=!1;if(this._view){var n=r(this);i=t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}return i},inLabelRange:function(t,e){var i=this;if(!i._view)return!1;var a=!1,o=r(i);return a=n(i)?t>=o.left&&t<=o.right:e>=o.top&&e<=o.bottom},inXRange:function(t){var e=r(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=r(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,i=this._view;return n(this)?(t=i.x,e=(i.y+i.base)/2):(t=(i.x+i.base)/2,e=i.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},function(t,e){t.exports={acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}}},function(t,e,i){"use strict";function n(t,e){var i=m.getStyle(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?Number(n[1]):void 0}function r(t,e){var i=t.style,r=t.getAttribute("height"),a=t.getAttribute("width");if(t[v]={initial:{height:r,width:a,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null===a||""===a){var o=n(t,"width");void 0!==o&&(t.width=o)}if(null===r||""===r)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=n(t,"height");void 0!==o&&(t.height=s)}return t}function a(t,e,i){t.addEventListener(e,i,S)}function o(t,e,i){t.removeEventListener(e,i,S)}function s(t,e,i,n,r){return{type:t,chart:e,"native":r||null,x:void 0!==i?i:null,y:void 0!==n?n:null}}function l(t,e){var i=w[t.type]||t.type,n=m.getRelativePosition(t,e);return s(i,e,n.x,n.y,t)}function u(t,e){var i=!1,n=[];return function(){n=Array.prototype.slice.call(arguments),e=e||this,i||(i=!0,m.requestAnimFrame.call(window,function(){i=!1,t.apply(e,n)}))}}function h(t){var e=document.createElement("div"),i=y+"size-monitor",n=1e6,r="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";e.style.cssText=r,e.className=i,e.innerHTML='<div class="'+i+'-expand" style="'+r+'"><div style="position:absolute;width:'+n+"px;height:"+n+'px;left:0;top:0"></div></div><div class="'+i+'-shrink" style="'+r+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var o=e.childNodes[0],s=e.childNodes[1];e._reset=function(){o.scrollLeft=n,o.scrollTop=n,s.scrollLeft=n,s.scrollTop=n};var l=function(){e._reset(),t()};return a(o,"scroll",l.bind(o,"expand")),a(s,"scroll",l.bind(s,"shrink")),e}function c(t,e){var i=t[v]||(t[v]={}),n=i.renderProxy=function(t){t.animationName===b&&e()};m.each(x,function(e){a(t,e,n)}),i.reflow=!!t.offsetParent,t.classList.add(_)}function d(t){var e=t[v]||{},i=e.renderProxy;i&&(m.each(x,function(e){o(t,e,i)}),delete e.renderProxy),t.classList.remove(_)}function p(t,e,i){var n=t[v]||(t[v]={}),r=n.resizer=h(u(function(){if(n.resizer)return e(s("resize",i))}));c(t,function(){if(n.resizer){var e=t.parentNode;e&&e!==r.parentNode&&e.insertBefore(r,e.firstChild),r._reset()}})}function f(t){var e=t[v]||{},i=e.resizer;delete e.resizer,d(t),i&&i.parentNode&&i.parentNode.removeChild(i)}function g(t,e){var i=t._style||document.createElement("style");t._style||(t._style=i,e="/* Chart.js */\n"+e,i.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(i)),i.appendChild(document.createTextNode(e))}var m=i(6),v="$chartjs",y="chartjs-",_=y+"render-monitor",b=y+"render-animation",x=["animationstart","webkitAnimationStart"],w={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},M=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(i){}return t}(),S=!!M&&{passive:!0};t.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";g(this,"@-webkit-keyframes "+b+"{"+t+"}@keyframes "+b+"{"+t+"}."+_+"{-webkit-animation:"+b+" 0.001s;animation:"+b+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(r(t,e),i):null},releaseContext:function(t){var e=t.canvas;if(e[v]){var i=e[v].initial;["height","width"].forEach(function(t){var n=i[t];m.isNullOrUndef(n)?e.removeAttribute(t):e.setAttribute(t,n)}),m.each(i.style||{},function(t,i){e.style[i]=t}),e.width=e.width,delete e[v]}},addEventListener:function(t,e,i){var n=t.canvas;if("resize"===e)return void p(n,i,t);var r=i[v]||(i[v]={}),o=r.proxies||(r.proxies={}),s=o[t.id+"_"+e]=function(e){i(l(e,t))};a(n,e,s)},removeEventListener:function(t,e,i){var n=t.canvas;if("resize"===e)return void f(n,i);var r=i[v]||{},a=r.proxies||{},s=a[t.id+"_"+e];s&&o(n,e,s)}},m.addEvent=a,m.removeEvent=o},function(t,e,i){"use strict";var n=i(9),r=i(24),a=i(6);n._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:a.noop,onComplete:a.noop}}),t.exports=function(t){t.Animation=r.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,i,n){var r,a,o=this.animations;for(e.chart=t,n||(t.animating=!0),r=0,a=o.length;r<a;++r)if(o[r].chart===t)return void(o[r]=e);o.push(e),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=a.findIndex(this.animations,function(e){return e.chart===t});e!==-1&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=a.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),i=0;t.dropFrames>1&&(i=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+i);var n=Date.now();t.dropFrames+=(n-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,i,n=this.animations,r=0;r<n.length;)e=n[r],i=e.chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),a.callback(e.render,[i,e],i),a.callback(e.onAnimationProgress,[e],i),e.currentStep>=e.numSteps?(a.callback(e.onAnimationComplete,[e],i),i.animating=!1,n.splice(r,1)):++r}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},function(t,e,i){"use strict";var n=i(9),r=i(6),a=i(120),o=i(52),s=i(121),l=i(122);t.exports=function(t){function e(t){t=t||{};var e=t.data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=r.configMerge(n.global,n[t.type],t.options||{}),t}function i(e){var i=e.options;r.each(e.scales,function(t){o.removeBox(e,t)}),i=r.configMerge(t.defaults.global,t.defaults[e.config.type],i),e.options=e.config.options=i,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=i.tooltips,e.tooltip.initialize()}function u(t){return"top"===t||"bottom"===t}t.types={},t.instances={},t.controllers={},r.extend(t.prototype,{construct:function(i,n){var a=this;n=e(n);var o=s.acquireContext(i,n),l=o&&o.canvas,u=l&&l.height,h=l&&l.width;return a.id=r.uid(),a.ctx=o,a.canvas=l,a.config=n,a.width=h,a.height=u,a.aspectRatio=u?h/u:null,a.options=n.options,a._bufferedRender=!1,a.chart=a,a.controller=a,t.instances[a.id]=a,Object.defineProperty(a,"data",{get:function(){return a.config.data},set:function(t){a.config.data=t}}),o&&l?(a.initialize(),void a.update()):void console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),r.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return r.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,i=e.options,n=e.canvas,a=i.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(r.getMaximumWidth(n))),s=Math.max(0,Math.floor(a?o/a:r.getMaximumHeight(n)));if((e.width!==o||e.height!==s)&&(n.width=e.width=o,n.height=e.height=s,n.style.width=o+"px",n.style.height=s+"px",r.retinaScale(e,i.devicePixelRatio),!t)){var u={width:o,height:s};l.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},i=t.scale;r.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),r.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),i&&(i.id=i.id||"scale")},buildOrUpdateScales:function(){var e=this,i=e.options,n=e.scales||{},a=[],o=Object.keys(n).reduce(function(t,e){return t[e]=!1,t},{});i.scales&&(a=a.concat((i.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(i.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),i.scale&&a.push({options:i.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),r.each(a,function(i){var a=i.options,s=a.id,l=r.valueOrDefault(a.type,i.dtype);u(a.position)!==u(i.dposition)&&(a.position=i.dposition),o[s]=!0;var h=null;if(s in n&&n[s].type===l)h=n[s],h.options=a,h.ctx=e.ctx, h.chart=e;else{var c=t.scaleService.getScaleConstructor(l);if(!c)return;h=new c({id:s,type:l,options:a,ctx:e.ctx,chart:e}),n[h.id]=h}h.mergeTicksOptions(),i.isDefault&&(e.scale=h)}),r.each(o,function(t,e){t||delete n[e]}),e.scales=n,t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,i=[],n=[];return r.each(e.data.datasets,function(r,a){var o=e.getDatasetMeta(a),s=r.type||e.config.type;if(o.type&&o.type!==s&&(e.destroyDatasetMeta(a),o=e.getDatasetMeta(a)),o.type=s,i.push(o.type),o.controller)o.controller.updateIndex(a),o.controller.linkScales();else{var l=t.controllers[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(e,a),n.push(o.controller)}},e),n},resetElements:function(){var t=this;r.each(t.data.datasets,function(e,i){t.getDatasetMeta(i).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),i(e),l._invalidate(e),l.notify(e,"beforeUpdate")!==!1){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();r.each(e.data.datasets,function(t,i){e.getDatasetMeta(i).controller.buildOrUpdateElements()},e),e.updateLayout(),e.options.animation&&e.options.animation.duration&&r.each(n,function(t){t.reset()}),e.updateDatasets(),e.tooltip.initialize(),e.lastActive=[],l.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var t=this;l.notify(t,"beforeLayout")!==!1&&(o.update(this,this.width,this.height),l.notify(t,"afterScaleUpdate"),l.notify(t,"afterLayout"))},updateDatasets:function(){var t=this;if(l.notify(t,"beforeDatasetsUpdate")!==!1){for(var e=0,i=t.data.datasets.length;e<i;++e)t.updateDataset(e);l.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,i=e.getDatasetMeta(t),n={meta:i,index:t};l.notify(e,"beforeDatasetUpdate",[n])!==!1&&(i.controller.update(),l.notify(e,"afterDatasetUpdate",[n]))},render:function(e){var i=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=e.duration,a=e.lazy;if(l.notify(i,"beforeRender")!==!1){var o=i.options.animation,s=function(t){l.notify(i,"afterRender"),r.callback(o&&o.onComplete,[t],i)};if(o&&("undefined"!=typeof n&&0!==n||"undefined"==typeof n&&0!==o.duration)){var u=new t.Animation({numSteps:(n||o.duration)/16.66,easing:e.easing||o.easing,render:function(t,e){var i=r.easing.effects[e.easing],n=e.currentStep,a=n/e.numSteps;t.draw(i(a),a,n)},onAnimationProgress:o.onProgress,onAnimationComplete:s});t.animationService.addAnimation(i,u,n,a)}else i.draw(),s(new t.Animation({numSteps:0,chart:i}));return i}},draw:function(t){var e=this;e.clear(),r.isNullOrUndef(t)&&(t=1),e.transition(t),l.notify(e,"beforeDraw",[t])!==!1&&(r.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),l.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=this,i=0,n=(e.data.datasets||[]).length;i<n;++i)e.isDatasetVisible(i)&&e.getDatasetMeta(i).controller.transition(t);e.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(l.notify(e,"beforeDatasetsDraw",[t])!==!1){for(var i=(e.data.datasets||[]).length-1;i>=0;--i)e.isDatasetVisible(i)&&e.drawDataset(i,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var i=this,n=i.getDatasetMeta(t),r={meta:n,index:t,easingValue:e};l.notify(i,"beforeDatasetDraw",[r])!==!1&&(n.controller.draw(e),l.notify(i,"afterDatasetDraw",[r]))},_drawTooltip:function(t){var e=this,i=e.tooltip,n={tooltip:i,easingValue:t};l.notify(e,"beforeTooltipDraw",[n])!==!1&&(i.draw(),l.notify(e,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return a.modes.single(this,t)},getElementsAtEvent:function(t){return a.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return a.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,i){var n=a.modes[e];return"function"==typeof n?n(this,t,i):[]},getDatasetAtEvent:function(t){return a.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,i=e.data.datasets[t];i._meta||(i._meta={});var n=i._meta[e.id];return n||(n=i._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,i=this.data.datasets.length;e<i;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,i=this.data.datasets[t],n=i._meta&&i._meta[e];n&&(n.controller.destroy(),delete i._meta[e])},destroy:function(){var e,i,n=this,a=n.canvas;for(n.stop(),e=0,i=n.data.datasets.length;e<i;++e)n.destroyDatasetMeta(e);a&&(n.unbindEvents(),r.canvas.clear(n),s.releaseContext(n.ctx),n.canvas=null,n.ctx=null),l.notify(n,"destroy"),delete t.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new t.Tooltip({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var t=this,e=t._listeners={},i=function(){t.eventHandler.apply(t,arguments)};r.each(t.options.events,function(n){s.addEventListener(t,n,i),e[n]=i}),t.options.responsive&&(i=function(){t.resize()},s.addEventListener(t,"resize",i),e.resize=i)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,r.each(e,function(e,i){s.removeEventListener(t,i,e)}))},updateHoverStyle:function(t,e,i){var n,r,a,o=i?"setHoverStyle":"removeHoverStyle";for(r=0,a=t.length;r<a;++r)n=t[r],n&&this.getDatasetMeta(n._datasetIndex).controller[o](n)},eventHandler:function(t){var e=this,i=e.tooltip;if(l.notify(e,"beforeEvent",[t])!==!1){e._bufferedRender=!0,e._bufferedRequest=null;var n=e.handleEvent(t);i&&(n=i._start?i.handleEvent(t):n|i.handleEvent(t)),l.notify(e,"afterEvent",[t]);var r=e._bufferedRequest;return r?e.render(r):n&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e=this,i=e.options||{},n=i.hover,a=!1;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,n.mode,n),r.callback(i.onHover||i.hover.onHover,[t["native"],e.active],e),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(e,t["native"],e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,n.mode,!1),e.active.length&&n.mode&&e.updateHoverStyle(e.active,n.mode,!0),a=!r.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,a}}),t.Controller=t}},function(t,e,i){"use strict";var n=i(6);t.exports=function(t){function e(t,e){return t._chartjs?void t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),void r.forEach(function(e){var i="onData"+e.charAt(0).toUpperCase()+e.slice(1),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),a=r.apply(this,e);return n.each(t._chartjs.listeners,function(t){"function"==typeof t[i]&&t[i].apply(t,e)}),a}})}))}function i(t,e){var i=t._chartjs;if(i){var n=i.listeners,a=n.indexOf(e);a!==-1&&n.splice(a,1),n.length>0||(r.forEach(function(e){delete t[e]}),delete t._chartjs)}}var r=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},n.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var i=this;i.chart=t,i.index=e,i.linkScales(),i.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),i=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=i.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=i.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&i(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,i=e.dataElementType;return i&&new i({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,i=this,n=i.getMeta(),r=i.getDataset().data||[],a=n.data;for(t=0,e=r.length;t<e;++t)a[t]=a[t]||i.createMetaData(t);n.dataset=n.dataset||i.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t=this,n=t.getDataset(),r=n.data||(n.data=[]);t._data!==r&&(t._data&&i(t._data,t),e(r,t),t._data=r),t.resyncElements()},update:n.noop,transition:function(t){for(var e=this.getMeta(),i=e.data||[],n=i.length,r=0;r<n;++r)i[r].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],i=e.length,n=0;for(t.dataset&&t.dataset.draw();n<i;++n)e[n].draw()},removeHoverStyle:function(t,e){var i=this.chart.data.datasets[t._datasetIndex],r=t._index,a=t.custom||{},o=n.valueAtIndexOrDefault,s=t._model;s.backgroundColor=a.backgroundColor?a.backgroundColor:o(i.backgroundColor,r,e.backgroundColor),s.borderColor=a.borderColor?a.borderColor:o(i.borderColor,r,e.borderColor),s.borderWidth=a.borderWidth?a.borderWidth:o(i.borderWidth,r,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,r=t.custom||{},a=n.valueAtIndexOrDefault,o=n.getHoverColor,s=t._model;s.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:a(e.hoverBackgroundColor,i,o(s.backgroundColor)),s.borderColor=r.hoverBorderColor?r.hoverBorderColor:a(e.hoverBorderColor,i,o(s.borderColor)),s.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:a(e.hoverBorderWidth,i,s.borderWidth)},resyncElements:function(){var t=this,e=t.getMeta(),i=t.getDataset().data,n=e.data.length,r=i.length;r<n?e.data.splice(r,n-r):r>n&&t.insertElements(n,r-n)},insertElements:function(t,e){for(var i=0;i<e;++i)this.addElementAndReset(t+i)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=n.inherits}},function(t,e,i){"use strict";var n=i(9),r=i(6),a=i(52);t.exports=function(t){t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,i){this.constructors[t]=e,this.defaults[t]=r.clone(i)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?r.merge({},[n.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){var i=this;i.defaults.hasOwnProperty(t)&&(i.defaults[t]=r.extend(i.defaults[t],e))},addScalesToLayout:function(t){r.each(t.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,a.addBox(t,e)})}}}},function(t,e,i){"use strict";function n(t){var e,i,n=[];for(e=0,i=t.length;e<i;++e)n.push(t[e].label);return n}function r(t,e,i){var n=t.getPixelForTick(e);return i&&(n-=0===e?(t.getPixelForTick(1)-n)/2:(n-t.getPixelForTick(e-1))/2),n}var a=i(9),o=i(24),s=i(6),l=i(53);a._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:l.formatters.values,minor:{},major:{}}}),t.exports=function(t){function e(t,e,i){return s.isArray(e)?s.longestText(t,i,e):t.measureText(e).width}function i(t){var e=s.valueOrDefault,i=a.global,n=e(t.fontSize,i.defaultFontSize),r=e(t.fontStyle,i.defaultFontStyle),o=e(t.fontFamily,i.defaultFontFamily);return{size:n,style:r,family:o,font:s.fontString(n,r,o)}}function l(t){return s.options.toLineHeight(s.valueOrDefault(t.lineHeight,1.2),s.valueOrDefault(t.fontSize,a.global.defaultFontSize))}t.Scale=o.extend({getPadding:function(){var t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t=this.options.ticks;t.minor===!1&&(t.minor={display:!1}),t.major===!1&&(t.major={display:!1});for(var e in t)"major"!==e&&"minor"!==e&&("undefined"==typeof t.minor[e]&&(t.minor[e]=t[e]),"undefined"==typeof t.major[e]&&(t.major[e]=t[e]))},beforeUpdate:function(){s.callback(this.options.beforeUpdate,[this])},update:function(t,e,i){var n,r,a,o,l,u,h=this;for(h.beforeUpdate(),h.maxWidth=t,h.maxHeight=e,h.margins=s.extend({left:0,right:0,top:0,bottom:0},i),h.longestTextCache=h.longestTextCache||{},h.beforeSetDimensions(),h.setDimensions(),h.afterSetDimensions(),h.beforeDataLimits(),h.determineDataLimits(),h.afterDataLimits(),h.beforeBuildTicks(),l=h.buildTicks()||[],h.afterBuildTicks(),h.beforeTickToLabelConversion(),a=h.convertTicksToLabels(l)||h.ticks,h.afterTickToLabelConversion(),h.ticks=a,n=0,r=a.length;n<r;++n)o=a[n],u=l[n],u?u.label=o:l.push(u={label:o,major:!1});return h._ticks=l,h.beforeCalculateTickRotation(),h.calculateTickRotation(),h.afterCalculateTickRotation(),h.beforeFit(),h.fit(),h.afterFit(),h.afterUpdate(),h.minSize},afterUpdate:function(){s.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){s.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){s.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){s.callback(this.options.beforeDataLimits,[this])},determineDataLimits:s.noop,afterDataLimits:function(){s.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){s.callback(this.options.beforeBuildTicks,[this])},buildTicks:s.noop,afterBuildTicks:function(){s.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){s.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this,e=t.options.ticks;t.ticks=t.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){s.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){s.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,r=t.options.ticks,a=n(t._ticks),o=i(r);e.font=o.font;var l=r.minRotation||0;if(a.length&&t.options.display&&t.isHorizontal())for(var u,h,c=s.longestText(e,o.font,a,t.longestTextCache),d=c,p=t.getPixelForTick(1)-t.getPixelForTick(0)-6;d>p&&l<r.maxRotation;){var f=s.toRadians(l);if(u=Math.cos(f),h=Math.sin(f),h*c>t.maxHeight){l--;break}l++,d=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,r=t.minSize={width:0,height:0},a=n(t._ticks),o=t.options,u=o.ticks,h=o.scaleLabel,c=o.gridLines,d=o.display,p=t.isHorizontal(),f=i(u),g=o.gridLines.tickMarkLength;if(p?r.width=t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:r.width=d&&c.drawTicks?g:0,p?r.height=d&&c.drawTicks?g:0:r.height=t.maxHeight,h.display&&d){var m=l(h),v=s.options.toPadding(h.padding),y=m+v.height;p?r.height+=y:r.width+=y}if(u.display&&d){var _=s.longestText(t.ctx,f.font,a,t.longestTextCache),b=s.numberOfLabelLines(a),x=.5*f.size,w=t.options.ticks.padding;if(p){t.longestLabelWidth=_;var M=s.toRadians(t.labelRotation),S=Math.cos(M),k=Math.sin(M),D=k*_+f.size*b+x*(b-1)+x;r.height=Math.min(t.maxHeight,r.height+D+w),t.ctx.font=f.font;var T=e(t.ctx,a[0],f.font),L=e(t.ctx,a[a.length-1],f.font);0!==t.labelRotation?(t.paddingLeft="bottom"===o.position?S*T+3:S*x+3,t.paddingRight="bottom"===o.position?S*x+3:S*L+3):(t.paddingLeft=T/2+3,t.paddingRight=L/2+3)}else u.mirror?_=0:_+=w+x,r.width=Math.min(t.maxWidth,r.width+_),t.paddingTop=f.size/2,t.paddingBottom=f.size/2}t.handleMargins(),t.width=r.width,t.height=r.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,i=e.options.offset;if(e.isHorizontal()){var n=e.width-(e.paddingLeft+e.paddingRight),r=n/Math.max(e._ticks.length-(i?0:1),1),a=r*t+e.paddingLeft;i&&(a+=r/2);var o=e.left+Math.round(a);return o+=e.isFullWidth()?e.margins.left:0}var s=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(s/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,r=e.left+Math.round(n);return r+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,i=t.max;return t.beginAtZero?0:e<0&&i<0?i:e>0&&i>0?e:0},_autoSkip:function(t){var e,i,n,r,a,o=this,l=o.isHorizontal(),u=o.options.ticks.minor,h=t.length,c=s.toRadians(o.labelRotation),d=Math.cos(c),p=o.longestLabelWidth*d,f=[];for(u.maxTicksLimit&&(a=u.maxTicksLimit),l&&(e=!1,(p+u.autoSkipPadding)*h>o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((p+u.autoSkipPadding)*h/(o.width-(o.paddingLeft+o.paddingRight)))),a&&h>a&&(e=Math.max(e,Math.floor(h/a)))),i=0;i<h;i++)n=t[i],r=e>1&&i%e>0||i%e===0&&i+e>=h,r&&i!==h-1&&delete n.label,f.push(n);return f},draw:function(t){var e=this,n=e.options;if(n.display){var o=e.ctx,u=a.global,h=n.ticks.minor,c=n.ticks.major||h,d=n.gridLines,p=n.scaleLabel,f=0!==e.labelRotation,g=e.isHorizontal(),m=h.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),v=s.valueOrDefault(h.fontColor,u.defaultFontColor),y=i(h),_=s.valueOrDefault(c.fontColor,u.defaultFontColor),b=i(c),x=d.drawTicks?d.tickMarkLength:0,w=s.valueOrDefault(p.fontColor,u.defaultFontColor),M=i(p),S=s.options.toPadding(p.padding),k=s.toRadians(e.labelRotation),D=[],T=e.options.gridLines.lineWidth,L="right"===n.position?e.right:e.right-T-x,C="right"===n.position?e.right+x:e.right,I="bottom"===n.position?e.top+T:e.bottom-x-T,A="bottom"===n.position?e.top+T+x:e.bottom+T;if(s.each(m,function(i,a){if(!s.isNullOrUndef(i.label)){var o,l,c,p,v=i.label;a===e.zeroLineIndex&&n.offset===d.offsetGridLines?(o=d.zeroLineWidth,l=d.zeroLineColor,c=d.zeroLineBorderDash,p=d.zeroLineBorderDashOffset):(o=s.valueAtIndexOrDefault(d.lineWidth,a),l=s.valueAtIndexOrDefault(d.color,a),c=s.valueOrDefault(d.borderDash,u.borderDash),p=s.valueOrDefault(d.borderDashOffset,u.borderDashOffset));var y,_,b,w,M,S,P,E,O,R,H="middle",z="middle",Y=h.padding;if(g){var N=x+Y;"bottom"===n.position?(z=f?"middle":"top",H=f?"right":"center",R=e.top+N):(z=f?"middle":"bottom",H=f?"left":"center",R=e.bottom-N);var F=r(e,a,d.offsetGridLines&&m.length>1);F<e.left&&(l="rgba(0,0,0,0)"),F+=s.aliasPixel(o),O=e.getPixelForTick(a)+h.labelOffset,y=b=M=P=F,_=I,w=A,S=t.top,E=t.bottom+T}else{var W,B="left"===n.position;h.mirror?(H=B?"left":"right",W=Y):(H=B?"right":"left",W=x+Y),O=B?e.right-W:e.left+W;var j=r(e,a,d.offsetGridLines&&m.length>1);j<e.top&&(l="rgba(0,0,0,0)"),j+=s.aliasPixel(o),R=e.getPixelForTick(a)+h.labelOffset,y=L,b=C,M=t.left,P=t.right+T,_=w=S=E=j}D.push({tx1:y,ty1:_,tx2:b,ty2:w,x1:M,y1:S,x2:P,y2:E,labelX:O,labelY:R,glWidth:o,glColor:l,glBorderDash:c,glBorderDashOffset:p,rotation:-1*k,label:v,major:i.major,textBaseline:z,textAlign:H})}}),s.each(D,function(t){if(d.display&&(o.save(),o.lineWidth=t.glWidth,o.strokeStyle=t.glColor,o.setLineDash&&(o.setLineDash(t.glBorderDash),o.lineDashOffset=t.glBorderDashOffset),o.beginPath(),d.drawTicks&&(o.moveTo(t.tx1,t.ty1),o.lineTo(t.tx2,t.ty2)),d.drawOnChartArea&&(o.moveTo(t.x1,t.y1),o.lineTo(t.x2,t.y2)),o.stroke(),o.restore()),h.display){o.save(),o.translate(t.labelX,t.labelY),o.rotate(t.rotation),o.font=t.major?b.font:y.font,o.fillStyle=t.major?_:v,o.textBaseline=t.textBaseline,o.textAlign=t.textAlign;var i=t.label;if(s.isArray(i))for(var n=i.length,r=1.5*y.size,a=e.isHorizontal()?0:-r*(n-1)/2,l=0;l<n;++l)o.fillText(""+i[l],0,a),a+=r;else o.fillText(i,0,0);o.restore()}}),p.display){var P,E,O=0,R=l(p)/2;if(g)P=e.left+(e.right-e.left)/2,E="bottom"===n.position?e.bottom-R-S.bottom:e.top+R+S.top;else{var H="left"===n.position;P=H?e.left+R+S.top:e.right-R-S.top,E=e.top+(e.bottom-e.top)/2,O=H?-.5*Math.PI:.5*Math.PI}o.save(),o.translate(P,E),o.rotate(O),o.textAlign="center",o.textBaseline="middle",o.fillStyle=w,o.font=M.font,o.fillText(p.labelString,0,0),o.restore()}if(d.drawBorder){o.lineWidth=s.valueAtIndexOrDefault(d.lineWidth,0),o.strokeStyle=s.valueAtIndexOrDefault(d.color,0);var z=e.left,Y=e.right+T,N=e.top,F=e.bottom+T,W=s.aliasPixel(o.lineWidth);g?(N=F="top"===n.position?e.bottom:e.top,N+=W,F+=W):(z=Y="left"===n.position?e.right:e.left,z+=W,Y+=W),o.beginPath(),o.moveTo(z,N),o.lineTo(Y,F),o.stroke()}}}})}},function(t,e,i){"use strict";var n=i(9),r=i(24),a=i(6);n._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:a.noop,title:function(t,e){var i="",n=e.labels,r=n?n.length:0;if(t.length>0){var a=t[0];a.xLabel?i=a.xLabel:r>0&&a.index<r&&(i=n[a.index])}return i},afterTitle:a.noop,beforeBody:a.noop,beforeLabel:a.noop,label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i&&(i+=": "),i+=t.yLabel},labelColor:function(t,e){var i=e.getDatasetMeta(t.datasetIndex),n=i.data[t.index],r=n._view;return{borderColor:r.borderColor,backgroundColor:r.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:a.noop,afterBody:a.noop,beforeFooter:a.noop,footer:a.noop,afterFooter:a.noop}}}),t.exports=function(t){function e(t,e){var i=a.color(t);return i.alpha(e*i.alpha()).rgbaString()}function i(t,e){return e&&(a.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function o(t){var e=t._xScale,i=t._yScale||t._scale,n=t._index,r=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(n,r):"",yLabel:i?i.getLabelForIndex(n,r):"",index:n,datasetIndex:r,x:t._model.x,y:t._model.y}}function s(t){var e=n.global,i=a.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:i(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:i(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:i(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:i(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:i(t.titleFontStyle,e.defaultFontStyle),titleFontSize:i(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:i(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:i(t.footerFontStyle,e.defaultFontStyle),footerFontSize:i(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function l(t,e){var i=t._chart.ctx,n=2*e.yPadding,r=0,o=e.body,s=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);s+=e.beforeBody.length+e.afterBody.length;var l=e.title.length,u=e.footer.length,h=e.titleFontSize,c=e.bodyFontSize,d=e.footerFontSize;n+=l*h,n+=l?(l-1)*e.titleSpacing:0,n+=l?e.titleMarginBottom:0,n+=s*c,n+=s?(s-1)*e.bodySpacing:0,n+=u?e.footerMarginTop:0,n+=u*d,n+=u?(u-1)*e.footerSpacing:0;var p=0,f=function(t){r=Math.max(r,i.measureText(t).width+p)};return i.font=a.fontString(h,e._titleFontStyle,e._titleFontFamily),a.each(e.title,f),i.font=a.fontString(c,e._bodyFontStyle,e._bodyFontFamily),a.each(e.beforeBody.concat(e.afterBody),f),p=e.displayColors?c+2:0,a.each(o,function(t){a.each(t.before,f),a.each(t.lines,f),a.each(t.after,f)}),p=0,i.font=a.fontString(d,e._footerFontStyle,e._footerFontFamily),a.each(e.footer,f),r+=2*e.xPadding,{width:r,height:n}}function u(t,e){var i=t._model,n=t._chart,r=t._chart.chartArea,a="center",o="center";i.y<e.height?o="top":i.y>n.height-e.height&&(o="bottom");var s,l,u,h,c,d=(r.left+r.right)/2,p=(r.top+r.bottom)/2;"center"===o?(s=function(t){return t<=d},l=function(t){return t>d}):(s=function(t){return t<=e.width/2},l=function(t){return t>=n.width-e.width/2}),u=function(t){return t+e.width+i.caretSize+i.caretPadding>n.width},h=function(t){return t-e.width-i.caretSize-i.caretPadding<0},c=function(t){return t<=p?"top":"bottom"},s(i.x)?(a="left",u(i.x)&&(a="center",o=c(i.y))):l(i.x)&&(a="right",h(i.x)&&(a="center",o=c(i.y)));var f=t._options;return{xAlign:f.xAlign?f.xAlign:a,yAlign:f.yAlign?f.yAlign:o}}function h(t,e,i,n){var r=t.x,a=t.y,o=t.caretSize,s=t.caretPadding,l=t.cornerRadius,u=i.xAlign,h=i.yAlign,c=o+s,d=l+s;return"right"===u?r-=e.width:"center"===u&&(r-=e.width/2,r+e.width>n.width&&(r=n.width-e.width),r<0&&(r=0)),"top"===h?a+=c:a-="bottom"===h?e.height+c:e.height/2,"center"===h?"left"===u?r+=c:"right"===u&&(r-=c):"left"===u?r-=d:"right"===u&&(r+=d),{x:r,y:a}}t.Tooltip=r.extend({initialize:function(){this._model=s(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,n=e.callbacks,r=n.beforeTitle.apply(t,arguments),a=n.title.apply(t,arguments),o=n.afterTitle.apply(t,arguments),s=[];return s=i(s,r),s=i(s,a),s=i(s,o)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return a.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var n=this,r=n._options.callbacks,o=[];return a.each(t,function(t){var a={before:[],lines:[],after:[]};i(a.before,r.beforeLabel.call(n,t,e)),i(a.lines,r.label.call(n,t,e)),i(a.after,r.afterLabel.call(n,t,e)),o.push(a)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return a.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,n=e.beforeFooter.apply(t,arguments),r=e.footer.apply(t,arguments),a=e.afterFooter.apply(t,arguments),o=[];return o=i(o,n),o=i(o,r),o=i(o,a)},update:function(e){var i,n,r=this,c=r._options,d=r._model,p=r._model=s(c),f=r._active,g=r._data,m={xAlign:d.xAlign,yAlign:d.yAlign},v={x:d.x,y:d.y},y={width:d.width,height:d.height},_={x:d.caretX,y:d.caretY};if(f.length){p.opacity=1;var b=[],x=[];_=t.Tooltip.positioners[c.position].call(r,f,r._eventPosition);var w=[];for(i=0,n=f.length;i<n;++i)w.push(o(f[i]));c.filter&&(w=w.filter(function(t){return c.filter(t,g)})),c.itemSort&&(w=w.sort(function(t,e){return c.itemSort(t,e,g)})),a.each(w,function(t){b.push(c.callbacks.labelColor.call(r,t,r._chart)),x.push(c.callbacks.labelTextColor.call(r,t,r._chart))}),p.title=r.getTitle(w,g),p.beforeBody=r.getBeforeBody(w,g),p.body=r.getBody(w,g),p.afterBody=r.getAfterBody(w,g),p.footer=r.getFooter(w,g),p.x=Math.round(_.x),p.y=Math.round(_.y),p.caretPadding=c.caretPadding,p.labelColors=b,p.labelTextColors=x,p.dataPoints=w,y=l(this,p),m=u(this,y),v=h(p,y,m,r._chart)}else p.opacity=0;return p.xAlign=m.xAlign,p.yAlign=m.yAlign,p.x=v.x,p.y=v.y,p.width=y.width,p.height=y.height,p.caretX=_.x,p.caretY=_.y,r._model=p,e&&c.custom&&c.custom.call(r,p),r},drawCaret:function(t,e){var i=this._chart.ctx,n=this._view,r=this.getCaretPosition(t,e,n);i.lineTo(r.x1,r.y1),i.lineTo(r.x2,r.y2),i.lineTo(r.x3,r.y3)},getCaretPosition:function(t,e,i){var n,r,a,o,s,l,u=i.caretSize,h=i.cornerRadius,c=i.xAlign,d=i.yAlign,p=t.x,f=t.y,g=e.width,m=e.height;if("center"===d)s=f+m/2,"left"===c?(n=p,r=n-u,a=n,o=s+u,l=s-u):(n=p+g,r=n+u,a=n,o=s-u,l=s+u);else if("left"===c?(r=p+h+u,n=r-u,a=r+u):"right"===c?(r=p+g-h-u,n=r-u,a=r+u):(r=i.caretX,n=r-u,a=r+u),"top"===d)o=f,s=o-u,l=o;else{o=f+m,s=o+u,l=o;var v=a;a=n,n=v}return{x1:n,x2:r,x3:a,y1:o,y2:s,y3:l}},drawTitle:function(t,i,n,r){var o=i.title;if(o.length){n.textAlign=i._titleAlign,n.textBaseline="top";var s=i.titleFontSize,l=i.titleSpacing;n.fillStyle=e(i.titleFontColor,r),n.font=a.fontString(s,i._titleFontStyle,i._titleFontFamily);var u,h;for(u=0,h=o.length;u<h;++u)n.fillText(o[u],t.x,t.y),t.y+=s+l,u+1===o.length&&(t.y+=i.titleMarginBottom-l)}},drawBody:function(t,i,n,r){var o=i.bodyFontSize,s=i.bodySpacing,l=i.body;n.textAlign=i._bodyAlign,n.textBaseline="top",n.font=a.fontString(o,i._bodyFontStyle,i._bodyFontFamily);var u=0,h=function(e){n.fillText(e,t.x+u,t.y),t.y+=o+s};n.fillStyle=e(i.bodyFontColor,r),a.each(i.beforeBody,h);var c=i.displayColors;u=c?o+2:0,a.each(l,function(s,l){var u=e(i.labelTextColors[l],r);n.fillStyle=u,a.each(s.before,h),a.each(s.lines,function(a){c&&(n.fillStyle=e(i.legendColorBackground,r),n.fillRect(t.x,t.y,o,o),n.lineWidth=1,n.strokeStyle=e(i.labelColors[l].borderColor,r),n.strokeRect(t.x,t.y,o,o),n.fillStyle=e(i.labelColors[l].backgroundColor,r),n.fillRect(t.x+1,t.y+1,o-2,o-2),n.fillStyle=u),h(a)}),a.each(s.after,h)}),u=0,a.each(i.afterBody,h),t.y-=s},drawFooter:function(t,i,n,r){var o=i.footer;o.length&&(t.y+=i.footerMarginTop,n.textAlign=i._footerAlign,n.textBaseline="top",n.fillStyle=e(i.footerFontColor,r),n.font=a.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),a.each(o,function(e){n.fillText(e,t.x,t.y),t.y+=i.footerFontSize+i.footerSpacing}))},drawBackground:function(t,i,n,r,a){n.fillStyle=e(i.backgroundColor,a),n.strokeStyle=e(i.borderColor,a),n.lineWidth=i.borderWidth;var o=i.xAlign,s=i.yAlign,l=t.x,u=t.y,h=r.width,c=r.height,d=i.cornerRadius;n.beginPath(),n.moveTo(l+d,u),"top"===s&&this.drawCaret(t,r),n.lineTo(l+h-d,u),n.quadraticCurveTo(l+h,u,l+h,u+d),"center"===s&&"right"===o&&this.drawCaret(t,r),n.lineTo(l+h,u+c-d),n.quadraticCurveTo(l+h,u+c,l+h-d,u+c),"bottom"===s&&this.drawCaret(t,r),n.lineTo(l+d,u+c),n.quadraticCurveTo(l,u+c,l,u+c-d),"center"===s&&"left"===o&&this.drawCaret(t,r),n.lineTo(l,u+d),n.quadraticCurveTo(l,u,l+d,u),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()},draw:function(){ var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i={width:e.width,height:e.height},n={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity,a=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&a&&(this.drawBackground(n,e,t,i,r),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,r),this.drawBody(n,e,t,r),this.drawFooter(n,e,t,r))}},handleEvent:function(t){var e=this,i=e._options,n=!1;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,i.mode,i),n=!a.arrayEquals(e._active,e._lastActive),n&&(e._lastActive=e._active,(i.enabled||i.custom)&&(e._eventPosition={x:t.x,y:t.y},e.update(!0),e.pivot())),n}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,i,n=0,r=0,a=0;for(e=0,i=t.length;e<i;++e){var o=t[e];if(o&&o.hasValue()){var s=o.tooltipPosition();n+=s.x,r+=s.y,++a}}return{x:Math.round(n/a),y:Math.round(r/a)}},nearest:function(t,e){var i,n,r,o=e.x,s=e.y,l=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){var u=t[i];if(u&&u.hasValue()){var h=u.getCenterPoint(),c=a.distanceBetweenPoints(e,h);c<l&&(l=c,r=u)}}if(r){var d=r.tooltipPosition();o=d.x,s=d.y}return{x:o,y:s}}}}},function(t,e,i){"use strict";function n(t,e){var i,n=[];if(t.stepSize&&t.stepSize>0)i=t.stepSize;else{var a=r.niceNum(e.max-e.min,!1);i=r.niceNum(a/(t.maxTicks-1),!0)}var o=Math.floor(e.min/i)*i,s=Math.ceil(e.max/i)*i;t.min&&t.max&&t.stepSize&&r.almostWhole((t.max-t.min)/t.stepSize,i/1e3)&&(o=t.min,s=t.max);var l=(s-o)/i;l=r.almostEquals(l,Math.round(l),i/1e3)?Math.round(l):Math.ceil(l);var u=1;i<1&&(u=Math.pow(10,i.toString().length-2),o=Math.round(o*u)/u,s=Math.round(s*u)/u),n.push(void 0!==t.min?t.min:o);for(var h=1;h<l;++h)n.push(Math.round((o+h*i)*u)/u);return n.push(void 0!==t.max?t.max:s),n}var r=i(6);t.exports=function(t){var e=r.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options,i=e.ticks;if(i.beginAtZero){var n=r.sign(t.min),a=r.sign(t.max);n<0&&a<0?t.max=0:n>0&&a>0&&(t.min=0)}var o=void 0!==i.min||void 0!==i.suggestedMin,s=void 0!==i.max||void 0!==i.suggestedMax;void 0!==i.min?t.min=i.min:void 0!==i.suggestedMin&&(null===t.min?t.min=i.suggestedMin:t.min=Math.min(t.min,i.suggestedMin)),void 0!==i.max?t.max=i.max:void 0!==i.suggestedMax&&(null===t.max?t.max=i.suggestedMax:t.max=Math.max(t.max,i.suggestedMax)),o!==s&&t.min>=t.max&&(o?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,i.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options,i=e.ticks,a=t.getTickLimit();a=Math.max(2,a);var o={maxTicks:a,min:i.min,max:i.max,stepSize:r.valueOrDefault(i.fixedStepSize,i.stepSize)},s=t.ticks=n(o,t);t.handleDirectionalChanges(),t.max=r.max(s),t.min=r.min(s),i.reverse?(s.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},function(t,e,i){"use strict";t.exports=function(t){var e={position:"bottom"},i=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,e=t.getLabels();t.minIndex=0,t.maxIndex=e.length-1;var i;void 0!==t.options.ticks.min&&(i=e.indexOf(t.options.ticks.min),t.minIndex=i!==-1?i:t.minIndex),void 0!==t.options.ticks.max&&(i=e.indexOf(t.options.ticks.max),t.maxIndex=i!==-1?i:t.maxIndex),t.min=e[t.minIndex],t.max=e[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,r=i.isHorizontal();return n.yLabels&&!r?i.getRightValue(n.datasets[e].data[t]):i.ticks[t-i.minIndex]},getPixelForValue:function(t,e){var i,n=this,r=n.options.offset,a=Math.max(n.maxIndex+1-n.minIndex-(r?0:1),1);if(void 0!==t&&null!==t&&(i=n.isHorizontal()?t.x:t.y),void 0!==i||void 0!==t&&isNaN(e)){var o=n.getLabels();t=i||t;var s=o.indexOf(t);e=s!==-1?s:e}if(n.isHorizontal()){var l=n.width/a,u=l*(e-n.minIndex);return r&&(u+=l/2),n.left+Math.round(u)}var h=n.height/a,c=h*(e-n.minIndex);return r&&(c+=h/2),n.top+Math.round(c)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e,i=this,n=i.options.offset,r=Math.max(i._ticks.length-(n?0:1),1),a=i.isHorizontal(),o=(a?i.width:i.height)/r;return t-=a?i.left:i.top,n&&(t-=o/2),e=t<=0?0:Math.round(t/o),e+i.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",i,e)}},function(t,e,i){"use strict";var n=i(9),r=i(6),a=i(53);t.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.linear}},i=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,i=e.options,n=e.chart,a=n.data,o=a.datasets,s=e.isHorizontal(),l=0,u=1;e.min=null,e.max=null;var h=i.stacked;if(void 0===h&&r.each(o,function(e,i){if(!h){var r=n.getDatasetMeta(i);n.isDatasetVisible(i)&&t(r)&&void 0!==r.stack&&(h=!0)}}),i.stacked||h){var c={};r.each(o,function(a,o){var s=n.getDatasetMeta(o),l=[s.type,void 0===i.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===c[l]&&(c[l]={positiveValues:[],negativeValues:[]});var u=c[l].positiveValues,h=c[l].negativeValues;n.isDatasetVisible(o)&&t(s)&&r.each(a.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||s.data[n].hidden||(u[n]=u[n]||0,h[n]=h[n]||0,i.relativePoints?u[n]=100:r<0?h[n]+=r:u[n]+=r)})}),r.each(c,function(t){var i=t.positiveValues.concat(t.negativeValues),n=r.min(i),a=r.max(i);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)})}else r.each(o,function(i,a){var o=n.getDatasetMeta(a);n.isDatasetVisible(a)&&t(o)&&r.each(i.data,function(t,i){var n=+e.getRightValue(t);isNaN(n)||o.data[i].hidden||(null===e.min?e.min=n:n<e.min&&(e.min=n),null===e.max?e.max=n:n>e.max&&(e.max=n))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:l,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:u,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,i=e.options.ticks;if(e.isHorizontal())t=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(e.width/50));else{var a=r.valueOrDefault(i.fontSize,n.global.defaultFontSize);t=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(e.height/(2*a)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i=this,n=i.start,r=+i.getRightValue(t),a=i.end-n;return e=i.isHorizontal()?i.left+i.width/a*(r-n):i.bottom-i.height/a*(r-n)},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=i?e.width:e.height,r=(i?t-e.left:e.bottom-t)/n;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",i,e)}},function(t,e,i){"use strict";function n(t,e){var i,n,a=[],o=r.valueOrDefault,s=o(t.min,Math.pow(10,Math.floor(r.log10(e.min)))),l=Math.floor(r.log10(e.max)),u=Math.ceil(e.max/Math.pow(10,l));0===s?(i=Math.floor(r.log10(e.minNotZero)),n=Math.floor(e.minNotZero/Math.pow(10,i)),a.push(s),s=n*Math.pow(10,i)):(i=Math.floor(r.log10(s)),n=Math.floor(s/Math.pow(10,i)));var h=i<0?Math.pow(10,Math.abs(i)):1;do a.push(s),++n,10===n&&(n=1,++i,h=i>=0?1:h),s=Math.round(n*Math.pow(10,i)*h)/h;while(i<l||i===l&&n<u);var c=o(t.max,s);return a.push(c),a}var r=i(6),a=i(53);t.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.logarithmic}},i=t.Scale.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,i=e.options,n=e.chart,a=n.data,o=a.datasets,s=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var l=i.stacked;if(void 0===l&&r.each(o,function(e,i){if(!l){var r=n.getDatasetMeta(i);n.isDatasetVisible(i)&&t(r)&&void 0!==r.stack&&(l=!0)}}),i.stacked||l){var u={};r.each(o,function(a,o){var s=n.getDatasetMeta(o),l=[s.type,void 0===i.stacked&&void 0===s.stack?o:"",s.stack].join(".");n.isDatasetVisible(o)&&t(s)&&(void 0===u[l]&&(u[l]=[]),r.each(a.data,function(t,i){var n=u[l],r=+e.getRightValue(t);isNaN(r)||s.data[i].hidden||r<0||(n[i]=n[i]||0,n[i]+=r)}))}),r.each(u,function(t){if(t.length>0){var i=r.min(t),n=r.max(t);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?n:Math.max(e.max,n)}})}else r.each(o,function(i,a){var o=n.getDatasetMeta(a);n.isDatasetVisible(a)&&t(o)&&r.each(i.data,function(t,i){var n=+e.getRightValue(t);isNaN(n)||o.data[i].hidden||n<0||(null===e.min?e.min=n:n<e.min&&(e.min=n),null===e.max?e.max=n:n>e.max&&(e.max=n),0!==n&&(null===e.minNotZero||n<e.minNotZero)&&(e.minNotZero=n))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options,i=e.ticks,n=r.valueOrDefault,a=1,o=10;t.min=n(i.min,t.min),t.max=n(i.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(r.log10(t.min))-1),t.max=Math.pow(10,Math.floor(r.log10(t.max))+1)):(t.min=a,t.max=o)),null===t.min&&(t.min=Math.pow(10,Math.floor(r.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(r.log10(t.min))+1):o),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(r.log10(t.max))):t.minNotZero=a)},buildTicks:function(){var t=this,e=t.options,i=e.ticks,a=!t.isHorizontal(),o={min:i.min,max:i.max},s=t.ticks=n(o,t);t.max=r.max(s),t.min=r.min(s),i.reverse?(a=!a,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),a&&s.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(r.log10(t)),i=Math.floor(t/Math.pow(10,e));return i*Math.pow(10,e)},getPixelForValue:function(e){var i,n,a,o,s,l=this,u=l.options.ticks.reverse,h=r.log10,c=l._getFirstTickValue(l.minNotZero),d=0;return e=+l.getRightValue(e),u?(a=l.end,o=l.start,s=-1):(a=l.start,o=l.end,s=1),l.isHorizontal()?(i=l.width,n=u?l.right:l.left):(i=l.height,s*=-1,n=u?l.top:l.bottom),e!==a&&(0===a&&(d=r.getValueOrDefault(l.options.ticks.fontSize,t.defaults.global.defaultFontSize),i-=d,a=c),0!==e&&(d+=i/(h(o)-h(a))*(h(e)-h(a))),n+=s*d),n},getValueForPixel:function(e){var i,n,a,o,s=this,l=s.options.ticks.reverse,u=r.log10,h=s._getFirstTickValue(s.minNotZero);if(l?(n=s.end,a=s.start):(n=s.start,a=s.end),s.isHorizontal()?(i=s.width,o=l?s.right-e:e-s.left):(i=s.height,o=l?e-s.top:s.bottom-e),o!==n){if(0===n){var c=r.getValueOrDefault(s.options.ticks.fontSize,t.defaults.global.defaultFontSize);o-=c,i-=c,n=h}o*=u(a)-u(n),o/=i,o=Math.pow(10,u(n)+o)}return o}});t.scaleService.registerScaleType("logarithmic",i,e)}},function(t,e,i){"use strict";var n=i(9),r=i(6),a=i(53);t.exports=function(t){function e(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function i(t){var e=t.options.pointLabels,i=r.valueOrDefault(e.fontSize,m.defaultFontSize),n=r.valueOrDefault(e.fontStyle,m.defaultFontStyle),a=r.valueOrDefault(e.fontFamily,m.defaultFontFamily),o=r.fontString(i,n,a);return{size:i,style:n,family:a,font:o}}function o(t,e,i){return r.isArray(i)?{w:r.longestText(t,t.font,i),h:i.length*e+1.5*(i.length-1)*e}:{w:t.measureText(i).width,h:e}}function s(t,e,i,n,r){return t===n||t===r?{start:e-i/2,end:e+i/2}:t<n||t>r?{start:e-i-5,end:e}:{start:e,end:e+i+5}}function l(t){var n,a,l,u=i(t),h=Math.min(t.height/2,t.width/2),c={r:t.width,l:0,t:t.height,b:0},d={};t.ctx.font=u.font,t._pointLabelSizes=[];var p=e(t);for(n=0;n<p;n++){l=t.getPointPosition(n,h),a=o(t.ctx,u.size,t.pointLabels[n]||""),t._pointLabelSizes[n]=a;var f=t.getIndexAngle(n),g=r.toDegrees(f)%360,m=s(g,l.x,a.w,0,180),v=s(g,l.y,a.h,90,270);m.start<c.l&&(c.l=m.start,d.l=f),m.end>c.r&&(c.r=m.end,d.r=f),v.start<c.t&&(c.t=v.start,d.t=f),v.end>c.b&&(c.b=v.end,d.b=f)}t.setReductions(h,c,d)}function u(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function h(t){return 0===t||180===t?"center":t<180?"left":"right"}function c(t,e,i,n){if(r.isArray(e))for(var a=i.y,o=1.5*n,s=0;s<e.length;++s)t.fillText(e[s],i.x,a),a+=o;else t.fillText(e,i.x,i.y)}function d(t,e,i){90===t||270===t?i.y-=e.h/2:(t>270||t<90)&&(i.y-=e.h)}function p(t){var n=t.ctx,a=t.options,o=a.angleLines,s=a.pointLabels;n.lineWidth=o.lineWidth,n.strokeStyle=o.color;var l=t.getDistanceFromCenterForValue(a.ticks.reverse?t.min:t.max),u=i(t);n.textBaseline="top";for(var p=e(t)-1;p>=0;p--){if(o.display){var f=t.getPointPosition(p,l);n.beginPath(),n.moveTo(t.xCenter,t.yCenter),n.lineTo(f.x,f.y),n.stroke(),n.closePath()}if(s.display){var g=t.getPointPosition(p,l+5),v=r.valueAtIndexOrDefault(s.fontColor,p,m.defaultFontColor);n.font=u.font,n.fillStyle=v;var y=t.getIndexAngle(p),_=r.toDegrees(y);n.textAlign=h(_),d(_,t._pointLabelSizes[p],g),c(n,t.pointLabels[p]||"",g,u.size)}}}function f(t,i,n,a){var o=t.ctx;if(o.strokeStyle=r.valueAtIndexOrDefault(i.color,a-1),o.lineWidth=r.valueAtIndexOrDefault(i.lineWidth,a-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,n,0,2*Math.PI),o.closePath(),o.stroke();else{var s=e(t);if(0===s)return;o.beginPath();var l=t.getPointPosition(0,n);o.moveTo(l.x,l.y);for(var u=1;u<s;u++)l=t.getPointPosition(u,n),o.lineTo(l.x,l.y);o.closePath(),o.stroke()}}function g(t){return r.isNumber(t)?t:0}var m=n.global,v={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:a.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}},y=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,i=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var n=r.min([t.height,t.width]),a=r.valueOrDefault(i.fontSize,m.defaultFontSize);t.drawingArea=e.display?n/2-(a/2+i.backdropPaddingY):n/2},determineDataLimits:function(){var t=this,e=t.chart,i=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;r.each(e.data.datasets,function(a,o){if(e.isDatasetVisible(o)){var s=e.getDatasetMeta(o);r.each(a.data,function(e,r){var a=+t.getRightValue(e);isNaN(a)||s.data[r].hidden||(i=Math.min(a,i),n=Math.max(a,n))})}}),t.min=i===Number.POSITIVE_INFINITY?0:i,t.max=n===Number.NEGATIVE_INFINITY?0:n,t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=r.valueOrDefault(t.fontSize,m.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){this.options.pointLabels.display?l(this):u(this)},setReductions:function(t,e,i){var n=this,r=e.l/Math.sin(i.l),a=Math.max(e.r-n.width,0)/Math.sin(i.r),o=-e.t/Math.cos(i.t),s=-Math.max(e.b-n.height,0)/Math.cos(i.b);r=g(r),a=g(a),o=g(o),s=g(s),n.drawingArea=Math.min(Math.round(t-(r+a)/2),Math.round(t-(o+s)/2)),n.setCenterPoint(r,a,o,s)},setCenterPoint:function(t,e,i,n){var r=this,a=r.width-e-r.drawingArea,o=t+r.drawingArea,s=i+r.drawingArea,l=r.height-n-r.drawingArea;r.xCenter=Math.round((o+a)/2+r.left),r.yCenter=Math.round((s+l)/2+r.top)},getIndexAngle:function(t){var i=2*Math.PI/e(this),n=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,r=n*Math.PI*2/360;return t*i+r},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var i=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*i:(t-e.min)*i},getPointPosition:function(t,e){var i=this,n=i.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(n)*e)+i.xCenter,y:Math.round(Math.sin(n)*e)+i.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,i=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&i<0?i:e>0&&i>0?e:0)},draw:function(){var t=this,e=t.options,i=e.gridLines,n=e.ticks,a=r.valueOrDefault;if(e.display){var o=t.ctx,s=this.getIndexAngle(0),l=a(n.fontSize,m.defaultFontSize),u=a(n.fontStyle,m.defaultFontStyle),h=a(n.fontFamily,m.defaultFontFamily),c=r.fontString(l,u,h);r.each(t.ticks,function(e,r){if(r>0||n.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[r]);if(i.display&&0!==r&&f(t,i,u,r),n.display){var h=a(n.fontColor,m.defaultFontColor);if(o.font=c,o.save(),o.translate(t.xCenter,t.yCenter),o.rotate(s),n.showLabelBackdrop){var d=o.measureText(e).width;o.fillStyle=n.backdropColor,o.fillRect(-d/2-n.backdropPaddingX,-u-l/2-n.backdropPaddingY,d+2*n.backdropPaddingX,l+2*n.backdropPaddingY)}o.textAlign="center",o.textBaseline="middle",o.fillStyle=h,o.fillText(e,0,-u),o.restore()}}}),(e.angleLines.display||e.pointLabels.display)&&p(t)}}});t.scaleService.registerScaleType("radialLinear",y,v)}},function(t,e,i){"use strict";function n(t,e){return t-e}function r(t){var e,i,n,r={},a=[];for(e=0,i=t.length;e<i;++e)n=t[e],r[n]||(r[n]=!0,a.push(n));return a}function a(t,e,i,n){if("linear"===n||!t.length)return[{time:e,pos:0},{time:i,pos:1}];var r,a,o,s,l,u=[],h=[e];for(r=0,a=t.length;r<a;++r)s=t[r],s>e&&s<i&&h.push(s);for(h.push(i),r=0,a=h.length;r<a;++r)l=h[r+1],o=h[r-1],s=h[r],void 0!==o&&void 0!==l&&Math.round((l+o)/2)===s||u.push({time:s,pos:r/(a-1)});return u}function o(t,e,i){for(var n,r,a,o=0,s=t.length-1;o>=0&&o<=s;){if(n=o+s>>1,r=t[n-1]||null,a=t[n],!r)return{lo:null,hi:a};if(a[e]<i)o=n+1;else{if(!(r[e]>i))return{lo:r,hi:a};s=n-1}}return{lo:a,hi:null}}function s(t,e,i,n){var r=o(t,e,i),a=r.lo?r.hi?r.lo:t[t.length-2]:t[0],s=r.lo?r.hi?r.hi:t[t.length-1]:t[1],l=s[e]-a[e],u=l?(i-a[e])/l:0,h=(s[n]-a[n])*u;return a[n]+h}function l(t,e){var i=e.parser,n=e.parser||e.format;return"function"==typeof i?i(t):"string"==typeof t&&"string"==typeof n?y(t,n):(t instanceof y||(t=y(t)),t.isValid()?t:"function"==typeof n?n(t):t)}function u(t,e){if(b.isNullOrUndef(t))return null;var i=e.options.time,n=l(e.getRightValue(t),i);return n.isValid()?(i.round&&n.startOf(i.round),n.valueOf()):null}function h(t,e,i,n){var r,a,o,s=e-t,l=M[i],u=l.size,h=l.steps;if(!h)return Math.ceil(s/(n*u));for(r=0,a=h.length;r<a&&(o=h[r],!(Math.ceil(s/(u*o))<=n));++r);return o}function c(t,e,i,n){var r,a,o,s=S.length;for(r=S.indexOf(t);r<s-1;++r)if(a=M[S[r]],o=a.steps?a.steps[a.steps.length-1]:w,a.common&&Math.ceil((i-e)/(o*a.size))<=n)return S[r];return S[s-1]}function d(t,e,i,n){var r,a,o=y.duration(y(n).diff(y(i))),s=S.length;for(r=s-1;r>=S.indexOf(e);r--)if(a=S[r],M[a].common&&o.as(a)>=t.length)return a;return S[e?S.indexOf(e):0]}function p(t){for(var e=S.indexOf(t)+1,i=S.length;e<i;++e)if(M[S[e]].common)return S[e]}function f(t,e,i,n){var r,a=n.time,o=a.unit||c(a.minUnit,t,e,i),s=p(o),l=b.valueOrDefault(a.stepSize,a.unitStepSize),u="week"===o&&a.isoWeekday,d=n.ticks.major.enabled,f=M[o],g=y(t),m=y(e),v=[];for(l||(l=h(t,e,o,i)),u&&(g=g.isoWeekday(u),m=m.isoWeekday(u)),g=g.startOf(u?"day":o),m=m.startOf(u?"day":o),m<e&&m.add(1,o),r=y(g),d&&s&&!u&&!a.round&&(r.startOf(s),r.add(~~((g-r)/(f.size*l))*l,o));r<m;r.add(l,o))v.push(+r);return v.push(+r),v}function g(t,e,i,n,r){var a,o,l=0,u=0;return r.offset&&e.length&&(r.time.min||(a=e.length>1?e[1]:n,o=e[0],l=(s(t,"time",a,"pos")-s(t,"time",o,"pos"))/2),r.time.max||(a=e[e.length-1],o=e.length>1?e[e.length-2]:i,u=(s(t,"time",a,"pos")-s(t,"time",o,"pos"))/2)),{left:l,right:u}}function m(t,e){var i,n,r,a,o=[];for(i=0,n=t.length;i<n;++i)r=t[i],a=!!e&&r===+y(r).startOf(e),o.push({value:r,major:a});return o}function v(t,e){var i,n,r,a=t.length;for(i=0;i<a;i++){if(n=l(t[i],e),0!==n.millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===n.second()&&0===n.minute()&&0===n.hour()||(r=!0)}return r?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}var y=i(1);y="function"==typeof y?y:window.moment;var _=i(9),b=i(6),x=Number.MIN_SAFE_INTEGER||-9007199254740991,w=Number.MAX_SAFE_INTEGER||9007199254740991,M={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},S=Object.keys(M);t.exports=function(t){var e={position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},i=t.Scale.extend({initialize:function(){if(!y)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),t.Scale.prototype.initialize.call(this)},update:function(){var e=this,i=e.options;return i.time&&i.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),t.Scale.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),t.Scale.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var t,e,i,a,o,s,l=this,h=l.chart,c=l.options.time,d=c.unit||"day",p=w,f=x,g=[],m=[],v=[];for(t=0,i=h.data.labels.length;t<i;++t)v.push(u(h.data.labels[t],l));for(t=0,i=(h.data.datasets||[]).length;t<i;++t)if(h.isDatasetVisible(t))if(o=h.data.datasets[t].data,b.isObject(o[0]))for(m[t]=[],e=0,a=o.length;e<a;++e)s=u(o[e],l),g.push(s),m[t][e]=s;else g.push.apply(g,v),m[t]=v.slice(0);else m[t]=[];v.length&&(v=r(v).sort(n),p=Math.min(p,v[0]),f=Math.max(f,v[v.length-1])),g.length&&(g=r(g).sort(n),p=Math.min(p,g[0]),f=Math.max(f,g[g.length-1])),p=u(c.min,l)||p,f=u(c.max,l)||f,p=p===w?+y().startOf(d):p,f=f===x?+y().endOf(d)+1:f,l.min=Math.min(p,f),l.max=Math.max(p+1,f),l._horizontal=l.isHorizontal(),l._table=[],l._timestamps={data:g,datasets:m,labels:v}},buildTicks:function(){var t,e,i,n=this,r=n.min,o=n.max,s=n.options,l=s.time,h=[],c=[];switch(s.ticks.source){case"data":h=n._timestamps.data;break;case"labels":h=n._timestamps.labels;break;case"auto":default:h=f(r,o,n.getLabelCapacity(r),s)}for("ticks"===s.bounds&&h.length&&(r=h[0],o=h[h.length-1]),r=u(l.min,n)||r,o=u(l.max,n)||o,t=0,e=h.length;t<e;++t)i=h[t],i>=r&&i<=o&&c.push(i);return n.min=r,n.max=o,n._unit=l.unit||d(c,l.minUnit,n.min,n.max),n._majorUnit=p(n._unit),n._table=a(n._timestamps.data,r,o,s.distribution),n._offsets=g(n._table,c,r,o,s),n._labelFormat=v(n._timestamps.data,l),m(c,n._majorUnit)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,r=i.options.time,a=n.labels&&t<n.labels.length?n.labels[t]:"",o=n.datasets[e].data[t];return b.isObject(o)&&(a=i.getRightValue(o)),r.tooltipFormat?l(a,r).format(r.tooltipFormat):"string"==typeof a?a:l(a,r).format(i._labelFormat)},tickFormatFunction:function(t,e,i,n){var r=this,a=r.options,o=t.valueOf(),s=a.time.displayFormats,l=s[r._unit],u=r._majorUnit,h=s[u],c=t.clone().startOf(u).valueOf(),d=a.ticks.major,p=d.enabled&&u&&h&&o===c,f=t.format(n?n:p?h:l),g=p?d:a.ticks.minor,m=b.valueOrDefault(g.callback,g.userCallback);return m?m(f,e,i):f},convertTicksToLabels:function(t){var e,i,n=[];for(e=0,i=t.length;e<i;++e)n.push(this.tickFormatFunction(y(t[e].value),e,t));return n},getPixelForOffset:function(t){var e=this,i=e._horizontal?e.width:e.height,n=e._horizontal?e.left:e.top,r=s(e._table,"time",t,"pos");return n+i*(e._offsets.left+r)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,i){var n=this,r=null;if(void 0!==e&&void 0!==i&&(r=n._timestamps.datasets[i][e]),null===r&&(r=u(t,n)),null!==r)return n.getPixelForOffset(r)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,i=e._horizontal?e.width:e.height,n=e._horizontal?e.left:e.top,r=(i?(t-n)/i:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,a=s(e._table,"pos",r,"time");return y(a)},getLabelWidth:function(t){var e=this,i=e.options.ticks,n=e.ctx.measureText(t).width,r=b.toRadians(i.maxRotation),a=Math.cos(r),o=Math.sin(r),s=b.valueOrDefault(i.fontSize,_.global.defaultFontSize);return n*a+s*o},getLabelCapacity:function(t){var e=this,i=e.options.time.displayFormats.millisecond,n=e.tickFormatFunction(y(t),0,[],i),r=e.getLabelWidth(n),a=e.isHorizontal()?e.width:e.height,o=Math.floor(a/r);return o>0?o:1}});t.scaleService.registerScaleType("time",i,e)}},function(t,e,i){function n(t){return i(r(t))}function r(t){var e=a[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var a={"./af":124,"./af.js":124,"./ar":125,"./ar-dz":126,"./ar-dz.js":126,"./ar-kw":127,"./ar-kw.js":127,"./ar-ly":128,"./ar-ly.js":128,"./ar-ma":129,"./ar-ma.js":129,"./ar-sa":130,"./ar-sa.js":130,"./ar-tn":131,"./ar-tn.js":131,"./ar.js":125,"./az":132,"./az.js":132,"./be":133,"./be.js":133,"./bg":134,"./bg.js":134,"./bm":135,"./bm.js":135,"./bn":136,"./bn.js":136,"./bo":137,"./bo.js":137,"./br":138,"./br.js":138,"./bs":139,"./bs.js":139,"./ca":140,"./ca.js":140,"./cs":141,"./cs.js":141,"./cv":142,"./cv.js":142,"./cy":143,"./cy.js":143,"./da":144,"./da.js":144,"./de":145,"./de-at":146,"./de-at.js":146,"./de-ch":147,"./de-ch.js":147,"./de.js":145,"./dv":148,"./dv.js":148,"./el":149,"./el.js":149,"./en-au":150,"./en-au.js":150,"./en-ca":151,"./en-ca.js":151,"./en-gb":152,"./en-gb.js":152,"./en-ie":153,"./en-ie.js":153,"./en-il":154,"./en-il.js":154,"./en-nz":155,"./en-nz.js":155,"./eo":156,"./eo.js":156,"./es":157,"./es-do":158,"./es-do.js":158,"./es-us":159,"./es-us.js":159,"./es.js":157,"./et":160,"./et.js":160,"./eu":161,"./eu.js":161,"./fa":162,"./fa.js":162,"./fi":163,"./fi.js":163,"./fo":164,"./fo.js":164,"./fr":165,"./fr-ca":166,"./fr-ca.js":166,"./fr-ch":167,"./fr-ch.js":167,"./fr.js":165,"./fy":168,"./fy.js":168,"./gd":169,"./gd.js":169,"./gl":170,"./gl.js":170,"./gom-latn":171,"./gom-latn.js":171,"./gu":172,"./gu.js":172,"./he":173,"./he.js":173,"./hi":174,"./hi.js":174,"./hr":175,"./hr.js":175,"./hu":176,"./hu.js":176,"./hy-am":177,"./hy-am.js":177,"./id":178,"./id.js":178,"./is":179,"./is.js":179,"./it":180,"./it.js":180,"./ja":181,"./ja.js":181,"./jv":182,"./jv.js":182,"./ka":183,"./ka.js":183,"./kk":184,"./kk.js":184,"./km":185,"./km.js":185,"./kn":186,"./kn.js":186,"./ko":187,"./ko.js":187,"./ky":188,"./ky.js":188,"./lb":189,"./lb.js":189,"./lo":190,"./lo.js":190,"./lt":191,"./lt.js":191,"./lv":192,"./lv.js":192,"./me":193,"./me.js":193,"./mi":194,"./mi.js":194,"./mk":195,"./mk.js":195,"./ml":196,"./ml.js":196,"./mn":197,"./mn.js":197,"./mr":198,"./mr.js":198,"./ms":199,"./ms-my":200,"./ms-my.js":200,"./ms.js":199,"./mt":201,"./mt.js":201,"./my":202,"./my.js":202,"./nb":203,"./nb.js":203,"./ne":204,"./ne.js":204,"./nl":205,"./nl-be":206,"./nl-be.js":206,"./nl.js":205,"./nn":207,"./nn.js":207,"./pa-in":208,"./pa-in.js":208,"./pl":209,"./pl.js":209,"./pt":210,"./pt-br":211,"./pt-br.js":211,"./pt.js":210,"./ro":212,"./ro.js":212,"./ru":213,"./ru.js":213,"./sd":214,"./sd.js":214,"./se":215,"./se.js":215,"./si":216,"./si.js":216,"./sk":217,"./sk.js":217,"./sl":218,"./sl.js":218,"./sq":219,"./sq.js":219,"./sr":220,"./sr-cyrl":221,"./sr-cyrl.js":221,"./sr.js":220,"./ss":222,"./ss.js":222,"./sv":223,"./sv.js":223,"./sw":224,"./sw.js":224,"./ta":225,"./ta.js":225,"./te":226,"./te.js":226,"./tet":227,"./tet.js":227,"./tg":228,"./tg.js":228,"./th":229,"./th.js":229,"./tl-ph":230,"./tl-ph.js":230,"./tlh":231,"./tlh.js":231,"./tr":232,"./tr.js":232,"./tzl":233,"./tzl.js":233,"./tzm":234,"./tzm-latn":235,"./tzm-latn.js":235,"./tzm.js":234,"./ug-cn":236,"./ug-cn.js":236,"./uk":237,"./uk.js":237,"./ur":238,"./ur.js":238,"./uz":239,"./uz-latn":240,"./uz-latn.js":240,"./uz.js":239,"./vi":241,"./vi.js":241,"./x-pseudo":242,"./x-pseudo.js":242,"./yo":243,"./yo.js":243,"./zh-cn":244,"./zh-cn.js":244,"./zh-hk":245,"./zh-hk.js":245,"./zh-tw":246,"./zh-tw.js":246};n.keys=function(){return Object.keys(a)},n.resolve=r,t.exports=n,n.id=385},function(t,e,i){"use strict";function n(t,e){var i,n,r,a,o=t.isHorizontal()?t.width:t.height,s=t.getTicks();for(r=1,a=e.length;r<a;++r)o=Math.min(o,e[r]-e[r-1]);for(r=0,a=s.length;r<a;++r)n=t.getPixelForTick(r),o=r>0?Math.min(o,n-i):o,i=n;return o}function r(t,e,i){var n,r,a=i.barThickness,o=e.stackCount,s=e.pixels[t];return l.isNullOrUndef(a)?(n=e.min*i.categoryPercentage,r=i.barPercentage):(n=a*o,r=1),{chunk:n/o,ratio:r,start:s-n/2}}function a(t,e,i){var n,r,a=e.pixels,o=a[t],s=t>0?a[t-1]:null,l=t<a.length-1?a[t+1]:null,u=i.categoryPercentage;return null===s&&(s=o-(null===l?e.end-o:l-o)),null===l&&(l=o+o-s),n=o-(o-s)/2*u,r=(l-s)/2*u,{chunk:r/e.stackCount,ratio:i.barPercentage,start:n}}var o=i(9),s=i(32),l=i(6);o._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),o._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var i="";return t.length>0&&(t[0].yLabel?i=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(i=e.labels[t[0].index])),i},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i+": "+t.xLabel}},mode:"index",axis:"y"}}),t.exports=function(t){t.controllers.bar=t.DatasetController.extend({dataElementType:s.Rectangle,initialize:function(){var e,i=this;t.DatasetController.prototype.initialize.apply(i,arguments),e=i.getMeta(),e.stack=i.getDataset().stack,e.bar=!0},update:function(t){var e,i,n=this,r=n.getMeta().data;for(n._ruler=n.getRuler(),e=0,i=r.length;e<i;++e)n.updateElement(r[e],e,t)},updateElement:function(t,e,i){var n=this,r=n.chart,a=n.getMeta(),o=n.getDataset(),s=t.custom||{},u=r.options.elements.rectangle;t._xScale=n.getScaleForId(a.xAxisID),t._yScale=n.getScaleForId(a.yAxisID),t._datasetIndex=n.index,t._index=e,t._model={datasetLabel:o.label,label:r.data.labels[e],borderSkipped:s.borderSkipped?s.borderSkipped:u.borderSkipped,backgroundColor:s.backgroundColor?s.backgroundColor:l.valueAtIndexOrDefault(o.backgroundColor,e,u.backgroundColor),borderColor:s.borderColor?s.borderColor:l.valueAtIndexOrDefault(o.borderColor,e,u.borderColor),borderWidth:s.borderWidth?s.borderWidth:l.valueAtIndexOrDefault(o.borderWidth,e,u.borderWidth)},n.updateElementGeometry(t,e,i),t.pivot()},updateElementGeometry:function(t,e,i){var n=this,r=t._model,a=n.getValueScale(),o=a.getBasePixel(),s=a.isHorizontal(),l=n._ruler||n.getRuler(),u=n.calculateBarValuePixels(n.index,e),h=n.calculateBarIndexPixels(n.index,e,l);r.horizontal=s,r.base=i?o:u.base,r.x=s?i?o:u.head:h.center,r.y=s?h.center:i?o:u.head,r.height=s?h.size:void 0,r.width=s?void 0:h.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId()); },_getStacks:function(t){var e,i,n=this,r=n.chart,a=n.getIndexScale(),o=a.options.stacked,s=void 0===t?r.data.datasets.length:t+1,l=[];for(e=0;e<s;++e)i=r.getDatasetMeta(e),i.bar&&r.isDatasetVisible(e)&&(o===!1||o===!0&&l.indexOf(i.stack)===-1||void 0===o&&(void 0===i.stack||l.indexOf(i.stack)===-1))&&l.push(i.stack);return l},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var i=this._getStacks(t),n=void 0!==e?i.indexOf(e):-1;return n===-1?i.length-1:n},getRuler:function(){var t,e,i,r=this,a=r.getIndexScale(),o=r.getStackCount(),s=r.index,u=a.isHorizontal(),h=u?a.left:a.top,c=h+(u?a.width:a.height),d=[];for(t=0,e=r.getMeta().data.length;t<e;++t)d.push(a.getPixelForValue(null,t,s));return i=l.isNullOrUndef(a.options.barThickness)?n(a,d):-1,{min:i,pixels:d,start:h,end:c,stackCount:o,scale:a}},calculateBarValuePixels:function(t,e){var i,n,r,a,o,s,l=this,u=l.chart,h=l.getMeta(),c=l.getValueScale(),d=u.data.datasets,p=c.getRightValue(d[t].data[e]),f=c.options.stacked,g=h.stack,m=0;if(f||void 0===f&&void 0!==g)for(i=0;i<t;++i)n=u.getDatasetMeta(i),n.bar&&n.stack===g&&n.controller.getValueScaleId()===c.id&&u.isDatasetVisible(i)&&(r=c.getRightValue(d[i].data[e]),(p<0&&r<0||p>=0&&r>0)&&(m+=r));return a=c.getPixelForValue(m),o=c.getPixelForValue(m+p),s=(o-a)/2,{size:s,base:a,head:o,center:o+s/2}},calculateBarIndexPixels:function(t,e,i){var n=this,o=i.scale.options,s="flex"===o.barThickness?a(e,i,o):r(e,i,o),u=n.getStackIndex(t,n.getMeta().stack),h=s.start+s.chunk*u+s.chunk/2,c=Math.min(l.valueOrDefault(o.maxBarThickness,1/0),s.chunk*s.ratio);return{base:h-c/2,head:h+c/2,center:h,size:c}},draw:function(){var t=this,e=t.chart,i=t.getValueScale(),n=t.getMeta().data,r=t.getDataset(),a=n.length,o=0;for(l.canvas.clipArea(e.ctx,e.chartArea);o<a;++o)isNaN(i.getRightValue(r.data[o]))||n[o].draw();l.canvas.unclipArea(e.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},r=t._model;r.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:l.valueAtIndexOrDefault(e.hoverBackgroundColor,i,l.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor?n.hoverBorderColor:l.valueAtIndexOrDefault(e.hoverBorderColor,i,l.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:l.valueAtIndexOrDefault(e.hoverBorderWidth,i,r.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},r=t._model,a=this.chart.options.elements.rectangle;r.backgroundColor=n.backgroundColor?n.backgroundColor:l.valueAtIndexOrDefault(e.backgroundColor,i,a.backgroundColor),r.borderColor=n.borderColor?n.borderColor:l.valueAtIndexOrDefault(e.borderColor,i,a.borderColor),r.borderWidth=n.borderWidth?n.borderWidth:l.valueAtIndexOrDefault(e.borderWidth,i,a.borderWidth)}}),t.controllers.horizontalBar=t.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},function(t,e,i){"use strict";var n=i(9),r=i(32),a=i(6);n._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"",n=e.datasets[t.datasetIndex].data[t.index];return i+": ("+t.xLabel+", "+t.yLabel+", "+n.r+")"}}}}),t.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:r.Point,update:function(t){var e=this,i=e.getMeta(),n=i.data;a.each(n,function(i,n){e.updateElement(i,n,t)})},updateElement:function(t,e,i){var n=this,r=n.getMeta(),a=t.custom||{},o=n.getScaleForId(r.xAxisID),s=n.getScaleForId(r.yAxisID),l=n._resolveElementOptions(t,e),u=n.getDataset().data[e],h=n.index,c=i?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,e,h),d=i?s.getBasePixel():s.getPixelForValue(u,e,h);t._xScale=o,t._yScale=s,t._options=l,t._datasetIndex=h,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,radius:i?0:l.radius,skip:a.skip||isNaN(c)||isNaN(d),x:c,y:d},t.pivot()},setHoverStyle:function(t){var e=t._model,i=t._options;e.backgroundColor=a.valueOrDefault(i.hoverBackgroundColor,a.getHoverColor(i.backgroundColor)),e.borderColor=a.valueOrDefault(i.hoverBorderColor,a.getHoverColor(i.borderColor)),e.borderWidth=a.valueOrDefault(i.hoverBorderWidth,i.borderWidth),e.radius=i.radius+i.hoverRadius},removeHoverStyle:function(t){var e=t._model,i=t._options;e.backgroundColor=i.backgroundColor,e.borderColor=i.borderColor,e.borderWidth=i.borderWidth,e.radius=i.radius},_resolveElementOptions:function(t,e){var i,n,r,o=this,s=o.chart,l=s.data.datasets,u=l[o.index],h=t.custom||{},c=s.options.elements.point,d=a.options.resolve,p=u.data[e],f={},g={chart:s,dataIndex:e,dataset:u,datasetIndex:o.index},m=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"];for(i=0,n=m.length;i<n;++i)r=m[i],f[r]=d([h[r],u[r],c[r]],g,e);return f.radius=d([h.radius,p?p.r:void 0,u.radius,c.radius],g,e),f}})}},function(t,e,i){"use strict";var n=i(9),r=i(32),a=i(6);n._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,r=i.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),r[a]&&e.push(r[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(i,n){var r=t.getDatasetMeta(0),o=e.datasets[0],s=r.data[n],l=s&&s.custom||{},u=a.valueAtIndexOrDefault,h=t.options.elements.arc,c=l.backgroundColor?l.backgroundColor:u(o.backgroundColor,n,h.backgroundColor),d=l.borderColor?l.borderColor:u(o.borderColor,n,h.borderColor),p=l.borderWidth?l.borderWidth:u(o.borderWidth,n,h.borderWidth);return{text:i,fillStyle:c,strokeStyle:d,lineWidth:p,hidden:isNaN(o.data[n])||r.data[n].hidden,index:n}}):[]}},onClick:function(t,e){var i,n,r,a=e.index,o=this.chart;for(i=0,n=(o.data.datasets||[]).length;i<n;++i)r=o.getDatasetMeta(i),r.data[a]&&(r.data[a].hidden=!r.data[a].hidden);o.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.labels[t.index],n=": "+e.datasets[t.datasetIndex].data[t.index];return a.isArray(i)?(i=i.slice(),i[0]+=n):i+=n,i}}}}),n._set("pie",a.clone(n.doughnut)),n._set("pie",{cutoutPercentage:0}),t.exports=function(t){t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:r.Arc,linkScales:a.noop,getRingIndex:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&++e;return e},update:function(t){var e=this,i=e.chart,n=i.chartArea,r=i.options,o=r.elements.arc,s=n.right-n.left-o.borderWidth,l=n.bottom-n.top-o.borderWidth,u=Math.min(s,l),h={x:0,y:0},c=e.getMeta(),d=r.cutoutPercentage,p=r.circumference;if(p<2*Math.PI){var f=r.rotation%(2*Math.PI);f+=2*Math.PI*(f>=Math.PI?-1:f<-Math.PI?1:0);var g=f+p,m={x:Math.cos(f),y:Math.sin(f)},v={x:Math.cos(g),y:Math.sin(g)},y=f<=0&&g>=0||f<=2*Math.PI&&2*Math.PI<=g,_=f<=.5*Math.PI&&.5*Math.PI<=g||f<=2.5*Math.PI&&2.5*Math.PI<=g,b=f<=-Math.PI&&-Math.PI<=g||f<=Math.PI&&Math.PI<=g,x=f<=.5*-Math.PI&&.5*-Math.PI<=g||f<=1.5*Math.PI&&1.5*Math.PI<=g,w=d/100,M={x:b?-1:Math.min(m.x*(m.x<0?1:w),v.x*(v.x<0?1:w)),y:x?-1:Math.min(m.y*(m.y<0?1:w),v.y*(v.y<0?1:w))},S={x:y?1:Math.max(m.x*(m.x>0?1:w),v.x*(v.x>0?1:w)),y:_?1:Math.max(m.y*(m.y>0?1:w),v.y*(v.y>0?1:w))},k={width:.5*(S.x-M.x),height:.5*(S.y-M.y)};u=Math.min(s/k.width,l/k.height),h={x:(S.x+M.x)*-.5,y:(S.y+M.y)*-.5}}i.borderWidth=e.getMaxBorderWidth(c.data),i.outerRadius=Math.max((u-i.borderWidth)/2,0),i.innerRadius=Math.max(d?i.outerRadius/100*d:0,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),i.offsetX=h.x*i.outerRadius,i.offsetY=h.y*i.outerRadius,c.total=e.calculateTotal(),e.outerRadius=i.outerRadius-i.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-i.radiusLength,0),a.each(c.data,function(i,n){e.updateElement(i,n,t)})},updateElement:function(t,e,i){var n=this,r=n.chart,o=r.chartArea,s=r.options,l=s.animation,u=(o.left+o.right)/2,h=(o.top+o.bottom)/2,c=s.rotation,d=s.rotation,p=n.getDataset(),f=i&&l.animateRotate?0:t.hidden?0:n.calculateCircumference(p.data[e])*(s.circumference/(2*Math.PI)),g=i&&l.animateScale?0:n.innerRadius,m=i&&l.animateScale?0:n.outerRadius,v=a.valueAtIndexOrDefault;a.extend(t,{_datasetIndex:n.index,_index:e,_model:{x:u+r.offsetX,y:h+r.offsetY,startAngle:c,endAngle:d,circumference:f,outerRadius:m,innerRadius:g,label:v(p.label,e,r.data.labels[e])}});var y=t._model;this.removeHoverStyle(t),i&&l.animateRotate||(0===e?y.startAngle=s.rotation:y.startAngle=n.getMeta().data[e-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),i=this.getMeta(),n=0;return a.each(i.data,function(i,r){t=e.data[r],isNaN(t)||i.hidden||(n+=Math.abs(t))}),n},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){for(var e,i,n=0,r=this.index,a=t.length,o=0;o<a;o++)e=t[o]._model?t[o]._model.borderWidth:0,i=t[o]._chart?t[o]._chart.config.data.datasets[r].hoverBorderWidth:0,n=e>n?e:n,n=i>n?i:n;return n}})}},function(t,e,i){"use strict";var n=i(9),r=i(32),a=i(6);n._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),t.exports=function(t){function e(t,e){return a.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,update:function(t){var i,n,r,o=this,s=o.getMeta(),l=s.dataset,u=s.data||[],h=o.chart.options,c=h.elements.line,d=o.getScaleForId(s.yAxisID),p=o.getDataset(),f=e(p,h);for(f&&(r=l.custom||{},void 0!==p.tension&&void 0===p.lineTension&&(p.lineTension=p.tension),l._scale=d,l._datasetIndex=o.index,l._children=u,l._model={spanGaps:p.spanGaps?p.spanGaps:h.spanGaps,tension:r.tension?r.tension:a.valueOrDefault(p.lineTension,c.tension),backgroundColor:r.backgroundColor?r.backgroundColor:p.backgroundColor||c.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:p.borderWidth||c.borderWidth,borderColor:r.borderColor?r.borderColor:p.borderColor||c.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:p.borderCapStyle||c.borderCapStyle,borderDash:r.borderDash?r.borderDash:p.borderDash||c.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:p.borderDashOffset||c.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:p.borderJoinStyle||c.borderJoinStyle,fill:r.fill?r.fill:void 0!==p.fill?p.fill:c.fill,steppedLine:r.steppedLine?r.steppedLine:a.valueOrDefault(p.steppedLine,c.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:a.valueOrDefault(p.cubicInterpolationMode,c.cubicInterpolationMode)},l.pivot()),i=0,n=u.length;i<n;++i)o.updateElement(u[i],i,t);for(f&&0!==l._model.tension&&o.updateBezierControlPoints(),i=0,n=u.length;i<n;++i)u[i].pivot()},getPointBackgroundColor:function(t,e){var i=this.chart.options.elements.point.backgroundColor,n=this.getDataset(),r=t.custom||{};return r.backgroundColor?i=r.backgroundColor:n.pointBackgroundColor?i=a.valueAtIndexOrDefault(n.pointBackgroundColor,e,i):n.backgroundColor&&(i=n.backgroundColor),i},getPointBorderColor:function(t,e){var i=this.chart.options.elements.point.borderColor,n=this.getDataset(),r=t.custom||{};return r.borderColor?i=r.borderColor:n.pointBorderColor?i=a.valueAtIndexOrDefault(n.pointBorderColor,e,i):n.borderColor&&(i=n.borderColor),i},getPointBorderWidth:function(t,e){var i=this.chart.options.elements.point.borderWidth,n=this.getDataset(),r=t.custom||{};return isNaN(r.borderWidth)?!isNaN(n.pointBorderWidth)||a.isArray(n.pointBorderWidth)?i=a.valueAtIndexOrDefault(n.pointBorderWidth,e,i):isNaN(n.borderWidth)||(i=n.borderWidth):i=r.borderWidth,i},updateElement:function(t,e,i){var n,r,o=this,s=o.getMeta(),l=t.custom||{},u=o.getDataset(),h=o.index,c=u.data[e],d=o.getScaleForId(s.yAxisID),p=o.getScaleForId(s.xAxisID),f=o.chart.options.elements.point;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),n=p.getPixelForValue("object"==typeof c?c:NaN,e,h),r=i?d.getBasePixel():o.calculatePointY(c,e,h),t._xScale=p,t._yScale=d,t._datasetIndex=h,t._index=e,t._model={x:n,y:r,skip:l.skip||isNaN(n)||isNaN(r),radius:l.radius||a.valueAtIndexOrDefault(u.pointRadius,e,f.radius),pointStyle:l.pointStyle||a.valueAtIndexOrDefault(u.pointStyle,e,f.pointStyle),backgroundColor:o.getPointBackgroundColor(t,e),borderColor:o.getPointBorderColor(t,e),borderWidth:o.getPointBorderWidth(t,e),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||a.valueAtIndexOrDefault(u.pointHitRadius,e,f.hitRadius)}},calculatePointY:function(t,e,i){var n,r,a,o=this,s=o.chart,l=o.getMeta(),u=o.getScaleForId(l.yAxisID),h=0,c=0;if(u.options.stacked){for(n=0;n<i;n++)if(r=s.data.datasets[n],a=s.getDatasetMeta(n),"line"===a.type&&a.yAxisID===u.id&&s.isDatasetVisible(n)){var d=Number(u.getRightValue(r.data[e]));d<0?c+=d||0:h+=d||0}var p=Number(u.getRightValue(t));return p<0?u.getPixelForValue(c+p):u.getPixelForValue(h+p)}return u.getPixelForValue(t)},updateBezierControlPoints:function(){function t(t,e,i){return Math.max(Math.min(t,i),e)}var e,i,n,r,o,s=this,l=s.getMeta(),u=s.chart.chartArea,h=l.data||[];if(l.dataset._model.spanGaps&&(h=h.filter(function(t){return!t._model.skip})),"monotone"===l.dataset._model.cubicInterpolationMode)a.splineCurveMonotone(h);else for(e=0,i=h.length;e<i;++e)n=h[e],r=n._model,o=a.splineCurve(a.previousItem(h,e)._model,r,a.nextItem(h,e)._model,l.dataset._model.tension),r.controlPointPreviousX=o.previous.x,r.controlPointPreviousY=o.previous.y,r.controlPointNextX=o.next.x,r.controlPointNextY=o.next.y;if(s.chart.options.elements.line.capBezierPoints)for(e=0,i=h.length;e<i;++e)r=h[e]._model,r.controlPointPreviousX=t(r.controlPointPreviousX,u.left,u.right),r.controlPointPreviousY=t(r.controlPointPreviousY,u.top,u.bottom),r.controlPointNextX=t(r.controlPointNextX,u.left,u.right),r.controlPointNextY=t(r.controlPointNextY,u.top,u.bottom)},draw:function(){var t=this,i=t.chart,n=t.getMeta(),r=n.data||[],o=i.chartArea,s=r.length,l=0;for(a.canvas.clipArea(i.ctx,o),e(t.getDataset(),i.options)&&n.dataset.draw(),a.canvas.unclipArea(i.ctx);l<s;++l)r[l].draw(o)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},r=t._model;r.radius=n.hoverRadius||a.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),r.backgroundColor=n.hoverBackgroundColor||a.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,a.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor||a.valueAtIndexOrDefault(e.pointHoverBorderColor,i,a.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth||a.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,r.borderWidth)},removeHoverStyle:function(t){var e=this,i=e.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},o=t._model;void 0!==i.radius&&void 0===i.pointRadius&&(i.pointRadius=i.radius),o.radius=r.radius||a.valueAtIndexOrDefault(i.pointRadius,n,e.chart.options.elements.point.radius),o.backgroundColor=e.getPointBackgroundColor(t,n),o.borderColor=e.getPointBorderColor(t,n),o.borderWidth=e.getPointBorderWidth(t,n)}})}},function(t,e,i){"use strict";var n=i(9),r=i(32),a=i(6);n._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,r=i.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),r[a]&&e.push(r[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(i,n){var r=t.getDatasetMeta(0),o=e.datasets[0],s=r.data[n],l=s.custom||{},u=a.valueAtIndexOrDefault,h=t.options.elements.arc,c=l.backgroundColor?l.backgroundColor:u(o.backgroundColor,n,h.backgroundColor),d=l.borderColor?l.borderColor:u(o.borderColor,n,h.borderColor),p=l.borderWidth?l.borderWidth:u(o.borderWidth,n,h.borderWidth);return{text:i,fillStyle:c,strokeStyle:d,lineWidth:p,hidden:isNaN(o.data[n])||r.data[n].hidden,index:n}}):[]}},onClick:function(t,e){var i,n,r,a=e.index,o=this.chart;for(i=0,n=(o.data.datasets||[]).length;i<n;++i)r=o.getDatasetMeta(i),r.data[a].hidden=!r.data[a].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),t.exports=function(t){t.controllers.polarArea=t.DatasetController.extend({dataElementType:r.Arc,linkScales:a.noop,update:function(t){var e=this,i=e.chart,n=i.chartArea,r=e.getMeta(),o=i.options,s=o.elements.arc,l=Math.min(n.right-n.left,n.bottom-n.top);i.outerRadius=Math.max((l-s.borderWidth/2)/2,0),i.innerRadius=Math.max(o.cutoutPercentage?i.outerRadius/100*o.cutoutPercentage:1,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),e.outerRadius=i.outerRadius-i.radiusLength*e.index,e.innerRadius=e.outerRadius-i.radiusLength,r.count=e.countVisibleElements(),a.each(r.data,function(i,n){e.updateElement(i,n,t)})},updateElement:function(t,e,i){for(var n=this,r=n.chart,o=n.getDataset(),s=r.options,l=s.animation,u=r.scale,h=r.data.labels,c=n.calculateCircumference(o.data[e]),d=u.xCenter,p=u.yCenter,f=0,g=n.getMeta(),m=0;m<e;++m)isNaN(o.data[m])||g.data[m].hidden||++f;var v=s.startAngle,y=t.hidden?0:u.getDistanceFromCenterForValue(o.data[e]),_=v+c*f,b=_+(t.hidden?0:c),x=l.animateScale?0:u.getDistanceFromCenterForValue(o.data[e]);a.extend(t,{_datasetIndex:n.index,_index:e,_scale:u,_model:{x:d,y:p,innerRadius:0,outerRadius:i?x:y,startAngle:i&&l.animateRotate?v:_,endAngle:i&&l.animateRotate?v:b,label:a.valueAtIndexOrDefault(h,e,h[e])}}),n.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),i=0;return a.each(e.data,function(e,n){isNaN(t.data[n])||e.hidden||i++}),i},calculateCircumference:function(t){var e=this.getMeta().count;return e>0&&!isNaN(t)?2*Math.PI/e:0}})}},function(t,e,i){"use strict";var n=i(9),r=i(32),a=i(6);n._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),t.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,linkScales:a.noop,update:function(t){var e=this,i=e.getMeta(),n=i.dataset,r=i.data,o=n.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),a.extend(i.dataset,{_datasetIndex:e.index,_scale:u,_children:r,_loop:!0,_model:{tension:o.tension?o.tension:a.valueOrDefault(s.lineTension,l.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||l.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||l.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||l.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),i.dataset.pivot(),a.each(r,function(i,n){e.updateElement(i,n,t)},e),e.updateBezierControlPoints()},updateElement:function(t,e,i){var n=this,r=t.custom||{},o=n.getDataset(),s=n.chart.scale,l=n.chart.options.elements.point,u=s.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),a.extend(t,{_datasetIndex:n.index,_index:e,_scale:s,_model:{x:i?s.xCenter:u.x,y:i?s.yCenter:u.y,tension:r.tension?r.tension:a.valueOrDefault(o.lineTension,n.chart.options.elements.line.tension),radius:r.radius?r.radius:a.valueAtIndexOrDefault(o.pointRadius,e,l.radius),backgroundColor:r.backgroundColor?r.backgroundColor:a.valueAtIndexOrDefault(o.pointBackgroundColor,e,l.backgroundColor),borderColor:r.borderColor?r.borderColor:a.valueAtIndexOrDefault(o.pointBorderColor,e,l.borderColor),borderWidth:r.borderWidth?r.borderWidth:a.valueAtIndexOrDefault(o.pointBorderWidth,e,l.borderWidth),pointStyle:r.pointStyle?r.pointStyle:a.valueAtIndexOrDefault(o.pointStyle,e,l.pointStyle),hitRadius:r.hitRadius?r.hitRadius:a.valueAtIndexOrDefault(o.pointHitRadius,e,l.hitRadius)}}),t._model.skip=r.skip?r.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();a.each(e.data,function(i,n){var r=i._model,o=a.splineCurve(a.previousItem(e.data,n,!0)._model,r,a.nextItem(e.data,n,!0)._model,r.tension);r.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),r.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),r.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),r.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),i.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},n=t._index,r=t._model;r.radius=i.hoverRadius?i.hoverRadius:a.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:a.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,a.getHoverColor(r.backgroundColor)),r.borderColor=i.hoverBorderColor?i.hoverBorderColor:a.valueAtIndexOrDefault(e.pointHoverBorderColor,n,a.getHoverColor(r.borderColor)),r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:a.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,r.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},n=t._index,r=t._model,o=this.chart.options.elements.point;r.radius=i.radius?i.radius:a.valueAtIndexOrDefault(e.pointRadius,n,o.radius),r.backgroundColor=i.backgroundColor?i.backgroundColor:a.valueAtIndexOrDefault(e.pointBackgroundColor,n,o.backgroundColor),r.borderColor=i.borderColor?i.borderColor:a.valueAtIndexOrDefault(e.pointBorderColor,n,o.borderColor),r.borderWidth=i.borderWidth?i.borderWidth:a.valueAtIndexOrDefault(e.pointBorderWidth,n,o.borderWidth)}})}},function(t,e,i){"use strict";var n=i(9);n._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),t.exports=function(t){t.controllers.scatter=t.controllers.line}},function(t,e,i){"use strict";t.exports=function(t){t.Bar=function(e,i){return i.type="bar",new t(e,i)}}},function(t,e,i){"use strict";t.exports=function(t){t.Bubble=function(e,i){return i.type="bubble",new t(e,i)}}},function(t,e,i){"use strict";t.exports=function(t){t.Doughnut=function(e,i){return i.type="doughnut",new t(e,i)}}},function(t,e,i){"use strict";t.exports=function(t){t.Line=function(e,i){return i.type="line",new t(e,i)}}},function(t,e,i){"use strict";t.exports=function(t){t.PolarArea=function(e,i){return i.type="polarArea",new t(e,i)}}},function(t,e,i){"use strict";t.exports=function(t){t.Radar=function(e,i){return i.type="radar",new t(e,i)}}},function(t,e,i){"use strict";t.exports=function(t){t.Scatter=function(e,i){return i.type="scatter",new t(e,i)}}},function(t,e,i){"use strict";t.exports={},t.exports.filler=i(401),t.exports.legend=i(402),t.exports.title=i(403)},function(t,e,i){"use strict";function n(t,e,i){var n,r=t._model||{},a=r.fill;if(void 0===a&&(a=!!r.backgroundColor),a===!1||null===a)return!1;if(a===!0)return"origin";if(n=parseFloat(a,10),isFinite(n)&&Math.floor(n)===n)return"-"!==a[0]&&"+"!==a[0]||(n=e+n),!(n===e||n<0||n>=i)&&n;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function r(t){var e,i=t.el._model||{},n=t.el._scale||{},r=t.fill,a=null;if(isFinite(r))return null;if("start"===r?a=void 0===i.scaleBottom?n.bottom:i.scaleBottom:"end"===r?a=void 0===i.scaleTop?n.top:i.scaleTop:void 0!==i.scaleZero?a=i.scaleZero:n.getBasePosition?a=n.getBasePosition():n.getBasePixel&&(a=n.getBasePixel()),void 0!==a&&null!==a){if(void 0!==a.x&&void 0!==a.y)return a;if("number"==typeof a&&isFinite(a))return e=n.isHorizontal(),{x:e?a:null,y:e?null:a}}return null}function a(t,e,i){var n,r=t[e],a=r.fill,o=[e];if(!i)return a;for(;a!==!1&&o.indexOf(a)===-1;){if(!isFinite(a))return a;if(n=t[a],!n)return!1;if(n.visible)return a;o.push(a),a=n.fill}return!1}function o(t){var e=t.fill,i="dataset";return e===!1?null:(isFinite(e)||(i="boundary"),p[i](t))}function s(t){return t&&!t.skip}function l(t,e,i,n,r){var a;if(n&&r){for(t.moveTo(e[0].x,e[0].y),a=1;a<n;++a)d.canvas.lineTo(t,e[a-1],e[a]);for(t.lineTo(i[r-1].x,i[r-1].y),a=r-1;a>0;--a)d.canvas.lineTo(t,i[a],i[a-1],!0)}}function u(t,e,i,n,r,a){var o,u,h,c,d,p,f,g=e.length,m=n.spanGaps,v=[],y=[],_=0,b=0;for(t.beginPath(),o=0,u=g+!!a;o<u;++o)h=o%g,c=e[h]._view,d=i(c,h,n),p=s(c),f=s(d),p&&f?(_=v.push(c),b=y.push(d)):_&&b&&(m?(p&&v.push(c),f&&y.push(d)):(l(t,v,y,_,b),_=b=0,v=[],y=[]));l(t,v,y,_,b),t.closePath(),t.fillStyle=r,t.fill()}var h=i(9),c=i(32),d=i(6);h._set("global",{plugins:{filler:{propagate:!0}}});var p={dataset:function(t){var e=t.fill,i=t.chart,n=i.getDatasetMeta(e),r=n&&i.isDatasetVisible(e),a=r&&n.dataset._children||[],o=a.length||0;return o?function(t,e){return e<o&&a[e]._view||null}:null},boundary:function(t){var e=t.boundary,i=e?e.x:null,n=e?e.y:null;return function(t){return{x:null===i?t.x:i,y:null===n?t.y:n}}}};t.exports={id:"filler",afterDatasetsUpdate:function(t,e){var i,s,l,u,h=(t.data.datasets||[]).length,d=e.propagate,p=[];for(s=0;s<h;++s)i=t.getDatasetMeta(s),l=i.dataset,u=null,l&&l._model&&l instanceof c.Line&&(u={visible:t.isDatasetVisible(s),fill:n(l,s,h),chart:t,el:l}),i.$filler=u,p.push(u);for(s=0;s<h;++s)u=p[s],u&&(u.fill=a(p,s,d),u.boundary=r(u),u.mapper=o(u))},beforeDatasetDraw:function(t,e){var i=e.meta.$filler;if(i){var n=t.ctx,r=i.el,a=r._view,o=r._children||[],s=i.mapper,l=a.backgroundColor||h.global.defaultColor;s&&l&&o.length&&(d.canvas.clipArea(n,t.chartArea),u(n,o,s,a,l,r._loop),d.canvas.unclipArea(n))}}}},function(t,e,i){"use strict";function n(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function r(t,e){var i=new h({ctx:t.ctx,options:e,chart:t});l.configure(t,i,e),l.addBox(t,i),t.legend=i}var a=i(9),o=i(24),s=i(6),l=i(52),u=s.noop;a._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var i=e.datasetIndex,n=this.chart,r=n.getDatasetMeta(i);r.hidden=null===r.hidden?!n.data.datasets[i].hidden:null,n.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return s.isArray(e.datasets)?e.datasets.map(function(e,i){return{text:e.label,fillStyle:s.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(i),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:i}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var i=0;i<t.data.datasets.length;i++)e.push('<li><span style="background-color:'+t.data.datasets[i].backgroundColor+'"></span>'),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var h=o.extend({initialize:function(t){s.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:u,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:u,beforeSetDimensions:u,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:u,beforeBuildLabels:u,buildLabels:function(){var t=this,e=t.options.labels||{},i=s.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(i=i.filter(function(i){return e.filter(i,t.chart.data)})),t.options.reverse&&i.reverse(),t.legendItems=i},afterBuildLabels:u,beforeFit:u,fit:function(){var t=this,e=t.options,i=e.labels,r=e.display,o=t.ctx,l=a.global,u=s.valueOrDefault,h=u(i.fontSize,l.defaultFontSize),c=u(i.fontStyle,l.defaultFontStyle),d=u(i.fontFamily,l.defaultFontFamily),p=s.fontString(h,c,d),f=t.legendHitBoxes=[],g=t.minSize,m=t.isHorizontal();if(m?(g.width=t.maxWidth,g.height=r?10:0):(g.width=r?10:0,g.height=t.maxHeight),r)if(o.font=p,m){var v=t.lineWidths=[0],y=t.legendItems.length?h+i.padding:0;o.textAlign="left",o.textBaseline="top",s.each(t.legendItems,function(e,r){var a=n(i,h),s=a+h/2+o.measureText(e.text).width;v[v.length-1]+s+i.padding>=t.width&&(y+=h+i.padding,v[v.length]=t.left),f[r]={left:0,top:0,width:s,height:h},v[v.length-1]+=s+i.padding}),g.height+=y}else{var _=i.padding,b=t.columnWidths=[],x=i.padding,w=0,M=0,S=h+_;s.each(t.legendItems,function(t,e){var r=n(i,h),a=r+h/2+o.measureText(t.text).width;M+S>g.height&&(x+=w+i.padding,b.push(w),w=0,M=0),w=Math.max(w,a),M+=S,f[e]={left:0,top:0,width:a,height:h}}),x+=w,b.push(w),g.width+=x}t.width=g.width,t.height=g.height},afterFit:u,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,i=e.labels,r=a.global,o=r.elements.line,l=t.width,u=t.lineWidths;if(e.display){var h,c=t.ctx,d=s.valueOrDefault,p=d(i.fontColor,r.defaultFontColor),f=d(i.fontSize,r.defaultFontSize),g=d(i.fontStyle,r.defaultFontStyle),m=d(i.fontFamily,r.defaultFontFamily),v=s.fontString(f,g,m);c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=p,c.fillStyle=p,c.font=v;var y=n(i,f),_=t.legendHitBoxes,b=function(t,i,n){if(!(isNaN(y)||y<=0)){c.save(),c.fillStyle=d(n.fillStyle,r.defaultColor),c.lineCap=d(n.lineCap,o.borderCapStyle),c.lineDashOffset=d(n.lineDashOffset,o.borderDashOffset),c.lineJoin=d(n.lineJoin,o.borderJoinStyle),c.lineWidth=d(n.lineWidth,o.borderWidth),c.strokeStyle=d(n.strokeStyle,r.defaultColor);var a=0===d(n.lineWidth,o.borderWidth);if(c.setLineDash&&c.setLineDash(d(n.lineDash,o.borderDash)),e.labels&&e.labels.usePointStyle){var l=f*Math.SQRT2/2,u=l/Math.SQRT2,h=t+u,p=i+u;s.canvas.drawPoint(c,n.pointStyle,l,h,p)}else a||c.strokeRect(t,i,y,f),c.fillRect(t,i,y,f);c.restore()}},x=function(t,e,i,n){var r=f/2,a=y+r+t,o=e+r;c.fillText(i.text,a,o),i.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(a,o),c.lineTo(a+n,o),c.stroke())},w=t.isHorizontal();h=w?{x:t.left+(l-u[0])/2, y:t.top+i.padding,line:0}:{x:t.left+i.padding,y:t.top+i.padding,line:0};var M=f+i.padding;s.each(t.legendItems,function(e,n){var r=c.measureText(e.text).width,a=y+f/2+r,o=h.x,s=h.y;w?o+a>=l&&(s=h.y+=M,h.line++,o=h.x=t.left+(l-u[h.line])/2):s+M>t.bottom&&(o=h.x=o+t.columnWidths[h.line]+i.padding,s=h.y=t.top+i.padding,h.line++),b(o,s,e),_[n].left=o,_[n].top=s,x(o,s,e,r),w?h.x+=a+i.padding:h.y+=M})}},handleEvent:function(t){var e=this,i=e.options,n="mouseup"===t.type?"click":t.type,r=!1;if("mousemove"===n){if(!i.onHover)return}else{if("click"!==n)return;if(!i.onClick)return}var a=t.x,o=t.y;if(a>=e.left&&a<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(a>=u.left&&a<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===n){i.onClick.call(e,t["native"],e.legendItems[l]),r=!0;break}if("mousemove"===n){i.onHover.call(e,t["native"],e.legendItems[l]),r=!0;break}}}return r}});t.exports={id:"legend",_element:h,beforeInit:function(t){var e=t.options.legend;e&&r(t,e)},beforeUpdate:function(t){var e=t.options.legend,i=t.legend;e?(s.mergeIf(e,a.global.legend),i?(l.configure(t,i,e),i.options=e):r(t,e)):i&&(l.removeBox(t,i),delete t.legend)},afterEvent:function(t,e){var i=t.legend;i&&i.handleEvent(e)}}},function(t,e,i){"use strict";function n(t,e){var i=new u({ctx:t.ctx,options:e,chart:t});s.configure(t,i,e),s.addBox(t,i),t.titleBlock=i}var r=i(9),a=i(24),o=i(6),s=i(52),l=o.noop;r._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var u=a.extend({initialize:function(t){var e=this;o.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:l,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:l,beforeSetDimensions:l,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:l,beforeBuildLabels:l,buildLabels:l,afterBuildLabels:l,beforeFit:l,fit:function(){var t=this,e=o.valueOrDefault,i=t.options,n=i.display,a=e(i.fontSize,r.global.defaultFontSize),s=t.minSize,l=o.isArray(i.text)?i.text.length:1,u=o.options.toLineHeight(i.lineHeight,a),h=n?l*u+2*i.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=h):(s.width=h,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:l,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,i=o.valueOrDefault,n=t.options,a=r.global;if(n.display){var s,l,u,h=i(n.fontSize,a.defaultFontSize),c=i(n.fontStyle,a.defaultFontStyle),d=i(n.fontFamily,a.defaultFontFamily),p=o.fontString(h,c,d),f=o.options.toLineHeight(n.lineHeight,h),g=f/2+n.padding,m=0,v=t.top,y=t.left,_=t.bottom,b=t.right;e.fillStyle=i(n.fontColor,a.defaultFontColor),e.font=p,t.isHorizontal()?(l=y+(b-y)/2,u=v+g,s=b-y):(l="left"===n.position?y+g:b-g,u=v+(_-v)/2,s=_-v,m=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(m),e.textAlign="center",e.textBaseline="middle";var x=n.text;if(o.isArray(x))for(var w=0,M=0;M<x.length;++M)e.fillText(x[M],0,w,s),w+=f;else e.fillText(x,0,0,s);e.restore()}}});t.exports={id:"title",_element:u,beforeInit:function(t){var e=t.options.title;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.title,i=t.titleBlock;e?(o.mergeIf(e,r.global.title),i?(s.configure(t,i,e),i.options=e):n(t,e)):i&&(s.removeBox(t,i),delete t.titleBlock)}}},function(t,e,i){i(405),function(){"use strict";function t(){e(),$(".circular-progressbar").each(function(){var t=$(this).find(".circular-progressbar-inner input"),e=t.parents(".circular-progressbar-inner").find("span.knob-percent"),i=(t.data("value"),t.data("value")),n=t.hasClass("knob-animated");isElementInViewport(t)&&!n&&(t.addClass("knob-animated"),$({startVal:0}).animate({startVal:i},{duration:1e3,easing:"swing",step:function(){t.val(Math.ceil(this.startVal)).trigger("change"),e.html(Math.ceil(this.startVal)+"<span>%</span>")}}))})}function e(){$(".circular-progressbar>input").each(function(){var t=$(this);t.wrap('<div class="circular-progressbar-inner"></div>'),t.parent().append('<span class="knob-percent"></span>');var e=$(this).val();$(this).data("value",e);var i=120;$(this).data("size")&&(i=$(this).data("size")),$(this).knob({min:0,max:100,width:i,height:i,readOnly:!0,displayInput:!1}),$(this).val(0).trigger("change")})}$(".circular-progressbar").length&&(t(),$(window).on("bind","scroll load resize",function(){t()}))}()},function(t,e,i){var n,r,a;!function(o){r=[i(13)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t){"use strict";var e={},i=Math.max,n=Math.min;e.c={},e.c.d=t(document),e.c.t=function(t){return t.originalEvent.touches.length-1},e.o=function(){var i=this;this.o=null,this.$=null,this.i=null,this.g=null,this.v=null,this.cv=null,this.x=0,this.y=0,this.w=0,this.h=0,this.$c=null,this.c=null,this.t=0,this.isInit=!1,this.fgColor=null,this.pColor=null,this.dH=null,this.cH=null,this.eH=null,this.rH=null,this.scale=1,this.relative=!1,this.relativeWidth=!1,this.relativeHeight=!1,this.$div=null,this.run=function(){var e=function(t,e){var n;for(n in e)i.o[n]=e[n];i._carve().init(),i._configure()._draw()};if(!this.$.data("kontroled")){if(this.$.data("kontroled",!0),this.extend(),this.o=t.extend({min:void 0!==this.$.data("min")?this.$.data("min"):0,max:void 0!==this.$.data("max")?this.$.data("max"):100,stopper:!0,readOnly:this.$.data("readonly")||"readonly"===this.$.attr("readonly"),cursor:this.$.data("cursor")===!0&&30||this.$.data("cursor")||0,thickness:this.$.data("thickness")&&Math.max(Math.min(this.$.data("thickness"),1),.01)||.35,lineCap:this.$.data("linecap")||"butt",width:this.$.data("width")||200,height:this.$.data("height")||200,displayInput:null==this.$.data("displayinput")||this.$.data("displayinput"),displayPrevious:this.$.data("displayprevious"),fgColor:this.$.data("fgcolor")||"#87CEEB",inputColor:this.$.data("inputcolor"),font:this.$.data("font")||"Arial",fontWeight:this.$.data("font-weight")||"bold",inline:!1,step:this.$.data("step")||1,rotation:this.$.data("rotation"),draw:null,change:null,cancel:null,release:null,format:function(t){return t},parse:function(t){return parseFloat(t)}},this.o),this.o.flip="anticlockwise"===this.o.rotation||"acw"===this.o.rotation,this.o.inputColor||(this.o.inputColor=this.o.fgColor),this.$.is("fieldset")?(this.v={},this.i=this.$.find("input"),this.i.each(function(e){var n=t(this);i.i[e]=n,i.v[e]=i.o.parse(n.val()),n.bind("change blur",function(){var t={};t[e]=n.val(),i.val(i._validate(t))})}),this.$.find("legend").remove()):(this.i=this.$,this.v=this.o.parse(this.$.val()),""===this.v&&(this.v=this.o.min),this.$.bind("change blur",function(){i.val(i._validate(i.o.parse(i.$.val())))})),!this.o.displayInput&&this.$.hide(),this.$c=t(document.createElement("canvas")).attr({width:this.o.width,height:this.o.height}),this.$div=t('<div style="'+(this.o.inline?"display:inline;":"")+"width:"+this.o.width+"px;height:"+this.o.height+'px;"></div>'),this.$.wrap(this.$div).before(this.$c),this.$div=this.$.parent(),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this.$c[0]),this.c=this.$c[0].getContext?this.$c[0].getContext("2d"):null,!this.c)throw{name:"CanvasNotSupportedException",message:"Canvas not supported. Please use excanvas on IE8.0.",toString:function(){return this.name+": "+this.message}};return this.scale=(window.devicePixelRatio||1)/(this.c.webkitBackingStorePixelRatio||this.c.mozBackingStorePixelRatio||this.c.msBackingStorePixelRatio||this.c.oBackingStorePixelRatio||this.c.backingStorePixelRatio||1),this.relativeWidth=this.o.width%1!==0&&this.o.width.indexOf("%"),this.relativeHeight=this.o.height%1!==0&&this.o.height.indexOf("%"),this.relative=this.relativeWidth||this.relativeHeight,this._carve(),this.v instanceof Object?(this.cv={},this.copy(this.v,this.cv)):this.cv=this.v,this.$.bind("configure",e).parent().bind("configure",e),this._listen()._configure()._xy().init(),this.isInit=!0,this.$.val(this.o.format(this.v)),this._draw(),this}},this._carve=function(){if(this.relative){var t=this.relativeWidth?this.$div.parent().width()*parseInt(this.o.width)/100:this.$div.parent().width(),e=this.relativeHeight?this.$div.parent().height()*parseInt(this.o.height)/100:this.$div.parent().height();this.w=this.h=Math.min(t,e)}else this.w=this.o.width,this.h=this.o.height;return this.$div.css({width:this.w+"px",height:this.h+"px"}),this.$c.attr({width:this.w,height:this.h}),1!==this.scale&&(this.$c[0].width=this.$c[0].width*this.scale,this.$c[0].height=this.$c[0].height*this.scale,this.$c.width(this.w),this.$c.height(this.h)),this},this._draw=function(){var t=!0;i.g=i.c,i.clear(),i.dH&&(t=i.dH()),t!==!1&&i.draw()},this._touch=function(t){var n=function(t){var e=i.xy2val(t.originalEvent.touches[i.t].pageX,t.originalEvent.touches[i.t].pageY);e!=i.cv&&(i.cH&&i.cH(e)===!1||(i.change(i._validate(e)),i._draw()))};return this.t=e.c.t(t),n(t),e.c.d.bind("touchmove.k",n).bind("touchend.k",function(){e.c.d.unbind("touchmove.k touchend.k"),i.val(i.cv)}),this},this._mouse=function(t){var n=function(t){var e=i.xy2val(t.pageX,t.pageY);e!=i.cv&&(i.cH&&i.cH(e)===!1||(i.change(i._validate(e)),i._draw()))};return n(t),e.c.d.bind("mousemove.k",n).bind("keyup.k",function(t){if(27===t.keyCode){if(e.c.d.unbind("mouseup.k mousemove.k keyup.k"),i.eH&&i.eH()===!1)return;i.cancel()}}).bind("mouseup.k",function(t){e.c.d.unbind("mousemove.k mouseup.k keyup.k"),i.val(i.cv)}),this},this._xy=function(){var t=this.$c.offset();return this.x=t.left,this.y=t.top,this},this._listen=function(){return this.o.readOnly?this.$.attr("readonly","readonly"):(this.$c.bind("mousedown",function(t){t.preventDefault(),i._xy()._mouse(t)}).bind("touchstart",function(t){t.preventDefault(),i._xy()._touch(t)}),this.listen()),this.relative&&t(window).resize(function(){i._carve().init(),i._draw()}),this},this._configure=function(){return this.o.draw&&(this.dH=this.o.draw),this.o.change&&(this.cH=this.o.change),this.o.cancel&&(this.eH=this.o.cancel),this.o.release&&(this.rH=this.o.release),this.o.displayPrevious?(this.pColor=this.h2rgba(this.o.fgColor,"0.4"),this.fgColor=this.h2rgba(this.o.fgColor,"0.6")):this.fgColor=this.o.fgColor,this},this._clear=function(){this.$c[0].width=this.$c[0].width},this._validate=function(t){var e=~~((t<0?-.5:.5)+t/this.o.step)*this.o.step;return Math.round(100*e)/100},this.listen=function(){},this.extend=function(){},this.init=function(){},this.change=function(t){},this.val=function(t){},this.xy2val=function(t,e){},this.draw=function(){},this.clear=function(){this._clear()},this.h2rgba=function(t,e){var i;return t=t.substring(1,7),i=[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)],"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"},this.copy=function(t,e){for(var i in t)e[i]=t[i]}},e.Dial=function(){e.o.call(this),this.startAngle=null,this.xy=null,this.radius=null,this.lineWidth=null,this.cursorExt=null,this.w2=null,this.PI2=2*Math.PI,this.extend=function(){this.o=t.extend({bgColor:this.$.data("bgcolor")||"#EEEEEE",angleOffset:this.$.data("angleoffset")||0,angleArc:this.$.data("anglearc")||360,inline:!0},this.o)},this.val=function(t,e){return null==t?this.v:(t=this.o.parse(t),void(e!==!1&&t!=this.v&&this.rH&&this.rH(t)===!1||(this.cv=this.o.stopper?i(n(t,this.o.max),this.o.min):t,this.v=this.cv,this.$.val(this.o.format(this.v)),this._draw())))},this.xy2val=function(t,e){var r,a;return r=Math.atan2(t-(this.x+this.w2),-(e-this.y-this.w2))-this.angleOffset,this.o.flip&&(r=this.angleArc-r-this.PI2),this.angleArc!=this.PI2&&r<0&&r>-.5?r=0:r<0&&(r+=this.PI2),a=r*(this.o.max-this.o.min)/this.angleArc+this.o.min,this.o.stopper&&(a=i(n(a,this.o.max),this.o.min)),a},this.listen=function(){var e,r,a,o,s=this,l=function(t){t.preventDefault();var a=t.originalEvent,o=a.detail||a.wheelDeltaX,l=a.detail||a.wheelDeltaY,u=s._validate(s.o.parse(s.$.val()))+(o>0||l>0?s.o.step:o<0||l<0?-s.o.step:0);u=i(n(u,s.o.max),s.o.min),s.val(u,!1),s.rH&&(clearTimeout(e),e=setTimeout(function(){s.rH(u),e=null},100),r||(r=setTimeout(function(){e&&s.rH(u),r=null},200)))},u=1,h={37:-s.o.step,38:s.o.step,39:s.o.step,40:-s.o.step};this.$.bind("keydown",function(e){var r=e.keyCode;if(r>=96&&r<=105&&(r=e.keyCode=r-48),a=parseInt(String.fromCharCode(r)),isNaN(a)&&(13!==r&&8!==r&&9!==r&&189!==r&&(190!==r||s.$.val().match(/\./))&&e.preventDefault(),t.inArray(r,[37,38,39,40])>-1)){e.preventDefault();var l=s.o.parse(s.$.val())+h[r]*u;s.o.stopper&&(l=i(n(l,s.o.max),s.o.min)),s.change(s._validate(l)),s._draw(),o=window.setTimeout(function(){u*=2},30)}}).bind("keyup",function(t){isNaN(a)?o&&(window.clearTimeout(o),o=null,u=1,s.val(s.$.val())):s.$.val()>s.o.max&&s.$.val(s.o.max)||s.$.val()<s.o.min&&s.$.val(s.o.min)}),this.$c.bind("mousewheel DOMMouseScroll",l),this.$.bind("mousewheel DOMMouseScroll",l)},this.init=function(){(this.v<this.o.min||this.v>this.o.max)&&(this.v=this.o.min),this.$.val(this.v),this.w2=this.w/2,this.cursorExt=this.o.cursor/100,this.xy=this.w2*this.scale,this.lineWidth=this.xy*this.o.thickness,this.lineCap=this.o.lineCap,this.radius=this.xy-this.lineWidth/2,this.o.angleOffset&&(this.o.angleOffset=isNaN(this.o.angleOffset)?0:this.o.angleOffset),this.o.angleArc&&(this.o.angleArc=isNaN(this.o.angleArc)?this.PI2:this.o.angleArc),this.angleOffset=this.o.angleOffset*Math.PI/180,this.angleArc=this.o.angleArc*Math.PI/180,this.startAngle=1.5*Math.PI+this.angleOffset,this.endAngle=1.5*Math.PI+this.angleOffset+this.angleArc;var t=i(String(Math.abs(this.o.max)).length,String(Math.abs(this.o.min)).length,2)+2;this.o.displayInput&&this.i.css({width:(this.w/2+4>>0)+"px",height:(this.w/3>>0)+"px",position:"absolute","vertical-align":"middle","margin-top":(this.w/3>>0)+"px","margin-left":"-"+(3*this.w/4+2>>0)+"px",border:0,background:"none",font:this.o.fontWeight+" "+(this.w/t>>0)+"px "+this.o.font,"text-align":"center",color:this.o.inputColor||this.o.fgColor,padding:"0px","-webkit-appearance":"none"})||this.i.css({width:"0px",visibility:"hidden"})},this.change=function(t){this.cv=t,this.$.val(this.o.format(t))},this.angle=function(t){return(t-this.o.min)*this.angleArc/(this.o.max-this.o.min)},this.arc=function(t){var e,i;return t=this.angle(t),this.o.flip?(e=this.endAngle+1e-5,i=e-t-1e-5):(e=this.startAngle-1e-5,i=e+t+1e-5),this.o.cursor&&(e=i-this.cursorExt)&&(i+=this.cursorExt),{s:e,e:i,d:this.o.flip&&!this.o.cursor}},this.draw=function(){var t,e=this.g,i=this.arc(this.cv),n=1;e.lineWidth=this.lineWidth,e.lineCap=this.lineCap,"none"!==this.o.bgColor&&(e.beginPath(),e.strokeStyle=this.o.bgColor,e.arc(this.xy,this.xy,this.radius,this.endAngle-1e-5,this.startAngle+1e-5,!0),e.stroke()),this.o.displayPrevious&&(t=this.arc(this.v),e.beginPath(),e.strokeStyle=this.pColor,e.arc(this.xy,this.xy,this.radius,t.s,t.e,t.d),e.stroke(),n=this.cv==this.v),e.beginPath(),e.strokeStyle=n?this.o.fgColor:this.fgColor,e.arc(this.xy,this.xy,this.radius,i.s,i.e,i.d),e.stroke()},this.cancel=function(){this.val(this.v)}},t.fn.dial=t.fn.knob=function(i){return this.each(function(){var n=new e.Dial;n.o=i,n.$=t(this),n.run()}).parent()}})},function(t,e){!function(){"use strict";function t(t,e,i,n,r){var a=[{featureType:"all",stylers:[{saturation:-80}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{hue:"#00ffee"},{saturation:50}]},{featureType:"poi.business",elementType:"labels",stylers:[{visibility:"off"}]}],o=new google.maps.Map(document.getElementById(t),{mapTypeId:i,styles:a,scrollwheel:!1,draggable:!1,zoom:n,mapTypeControl:!1}),s="assets/img/basic/pin.png";r&&(s=r);var l=new google.maps.Geocoder;l.geocode({address:e},function(t,e){e===google.maps.GeocoderStatus.OK&&(new google.maps.Marker({position:t[0].geometry.location,map:o,icon:s}),o.setCenter(t[0].geometry.location))})}$(".g-map").length&&$(".g-map").each(function(e,i){var n=$(this).data("id"),r=$(this).data("address"),a=$(this).data("maptype"),o=$(this).data("zoomlvl"),s=$(this).data("mapPin");$(this).attr("id",n),t(n,r,a,o,s)})}()},function(t,e){!function(){"use strict";$("body").on("click",".closePromotions",function(t){t.preventDefault();var e=$(this);e.parent().slideUp()})}()},function(t,e,i){var n,r,a;!function(o){r=[i(13)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=r(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function r(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,a)}function a(){t.datepicker._isDisabledDatepicker(m.inline?m.dpDiv.parent()[0]:m.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).addClass("ui-datepicker-next-hover"))}function o(e,i){t.extend(e,i);for(var n in i)null==i[n]&&(e[n]=i[n]);return e}function s(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{};var l=(t.ui.version="1.12.1",0),u=Array.prototype.slice;t.cleanData=function(e){return function(i){var n,r,a;for(a=0;null!=(r=i[a]);a++)try{n=t._data(r,"events"),n&&n.remove&&t(r).triggerHandler("remove")}catch(o){}e(i)}}(t.cleanData),t.widget=function(e,i,n){var r,a,o,s={},l=e.split(".")[0];e=e.split(".")[1];var u=l+"-"+e;return n||(n=i,i=t.Widget),t.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr[":"][u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},r=t[l][e],a=t[l][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new a(t,e)},t.extend(a,r,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),o=new i,o.options=t.widget.extend({},o.options),t.each(n,function(e,n){return t.isFunction(n)?void(s[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function r(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,a=this._superApply;return this._super=t,this._superApply=r,e=n.apply(this,arguments),this._super=i,this._superApply=a,e}}()):void(s[e]=n)}),a.prototype=t.widget.extend(o,{widgetEventPrefix:r?o.widgetEventPrefix||e:e},s,{constructor:a,namespace:l,widgetName:e,widgetFullName:u}),r?(t.each(r._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,a,i._proto)}),delete r._childConstructors):i._childConstructors.push(a),t.widget.bridge(e,a),a},t.widget.extend=function(e){for(var i,n,r=u.call(arguments,1),a=0,o=r.length;a<o;a++)for(i in r[a])n=r[a][i],r[a].hasOwnProperty(i)&&void 0!==n&&(t.isPlainObject(n)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):e[i]=n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(r){var a="string"==typeof r,o=u.call(arguments,1),s=this;return a?this.length||"instance"!==r?this.each(function(){var i,a=t.data(this,n);return"instance"===r?(s=a,!1):a?t.isFunction(a[r])&&"_"!==r.charAt(0)?(i=a[r].apply(a,o),i!==a&&void 0!==i?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+r+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'")}):s=void 0:(o.length&&(r=t.widget.extend.apply(null,[r].concat(o))),this.each(function(){var e=t.data(this,n);e?(e.option(r||{}),e._init&&e._init()):t.data(this,n,new i(r,this))})),s}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=l++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,r,a,o=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(o={},n=e.split("."),e=n.shift(),n.length){for(r=o[e]=t.widget.extend({},this.options[e]),a=0;a<n.length-1;a++)r[n[a]]=r[n[a]]||{},r=r[n[a]];if(e=n.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];o[e]=i}return this._setOptions(o),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,r;for(i in e)r=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&r&&r.length&&(n=t(r.get()),this._removeClass(r,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,a){var o,s;for(s=0;s<i.length;s++)o=r.classesElementLookup[i[s]]||t(),o=t(e.add?t.unique(o.get().concat(e.element.get())):o.not(e.element).get()),r.classesElementLookup[i[s]]=o,n.push(i[s]),a&&e.classes[i[s]]&&n.push(e.classes[i[s]])}var n=[],r=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(n,r){t.inArray(e.target,r)!==-1&&(i.classesElementLookup[n]=t(r.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var r="string"==typeof t||null===t,a={extra:r?e:i,keys:r?t:e,element:r?this.element:t,add:n};return a.element.toggleClass(this._classes(a),n),this},_on:function(e,i,n){var r,a=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,function(n,o){function s(){if(e||a.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof o?a[o]:o).apply(a,arguments)}"string"!=typeof o&&(s.guid=o.guid=o.guid||s.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+a.eventNamespace,h=l[2];h?r.on(u,h,s):i.on(u,s)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var r,a,o=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(r in a)r in i||(i[r]=a[r]);return this.element.trigger(i,n),!(t.isFunction(o)&&o.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,r,a){"string"==typeof r&&(r={effect:r});var o,s=r?r===!0||"number"==typeof r?i:r.effect||i:e;r=r||{},"number"==typeof r&&(r={duration:r}),o=!t.isEmptyObject(r),r.complete=a,r.delay&&n.delay(r.delay),o&&t.effects&&t.effects.effect[s]?n[e](r):s!==e&&n[s]?n[s](r.duration,r.easing,a):n.queue(function(i){t(this)[e](),a&&a.call(n[0]),i()})}});t.widget;!function(){function e(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var r,a=Math.max,o=Math.abs,s=/left|center|right/,l=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,c=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==r)return r;var e,i,n=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=n.children()[0];return t("body").append(n),e=a.offsetWidth,n.css("overflow","scroll"),i=a.offsetWidth,e===i&&(i=n[0].clientWidth),n.remove(),r=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,a="scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight;return{width:a?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),r=!!i[0]&&9===i[0].nodeType,a=!n&&!r;return{element:i,isWindow:n,isDocument:r,offset:a?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(r){if(!r||!r.of)return d.apply(this,arguments);r=t.extend({},r);var c,p,f,g,m,v,y=t(r.of),_=t.position.getWithinInfo(r.within),b=t.position.getScrollInfo(_),x=(r.collision||"flip").split(" "),w={};return v=n(y),y[0].preventDefault&&(r.at="left top"),p=v.width,f=v.height,g=v.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(r[this]||"").split(" ");1===i.length&&(i=s.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=s.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=u.exec(i[0]),e=u.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],r[this]=[h.exec(i[0])[0],h.exec(i[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===r.at[0]?m.left+=p:"center"===r.at[0]&&(m.left+=p/2),"bottom"===r.at[1]?m.top+=f:"center"===r.at[1]&&(m.top+=f/2),c=e(w.at,p,f),m.left+=c[0],m.top+=c[1],this.each(function(){var n,s,l=t(this),u=l.outerWidth(),h=l.outerHeight(),d=i(this,"marginLeft"),v=i(this,"marginTop"),M=u+d+i(this,"marginRight")+b.width,S=h+v+i(this,"marginBottom")+b.height,k=t.extend({},m),D=e(w.my,l.outerWidth(),l.outerHeight());"right"===r.my[0]?k.left-=u:"center"===r.my[0]&&(k.left-=u/2),"bottom"===r.my[1]?k.top-=h:"center"===r.my[1]&&(k.top-=h/2),k.left+=D[0],k.top+=D[1],n={marginLeft:d,marginTop:v},t.each(["left","top"],function(e,i){t.ui.position[x[e]]&&t.ui.position[x[e]][i](k,{targetWidth:p,targetHeight:f,elemWidth:u,elemHeight:h,collisionPosition:n,collisionWidth:M,collisionHeight:S,offset:[c[0]+D[0],c[1]+D[1]],my:r.my,at:r.at,within:_,elem:l})}),r.using&&(s=function(t){var e=g.left-k.left,i=e+p-u,n=g.top-k.top,s=n+f-h,c={target:{element:y,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:k.left,top:k.top,width:u,height:h},horizontal:i<0?"left":e>0?"right":"center",vertical:s<0?"top":n>0?"bottom":"middle"};p<u&&o(e+i)<p&&(c.horizontal="center"),f<h&&o(n+s)<f&&(c.vertical="middle"),a(o(e),o(i))>a(o(n),o(s))?c.important="horizontal":c.important="vertical",r.using.call(this,t,c)}),l.offset(t.extend(k,{using:s}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,s=t.left-e.collisionPosition.marginLeft,l=r-s,u=s+e.collisionWidth-o-r;e.collisionWidth>o?l>0&&u<=0?(i=t.left+l+e.collisionWidth-o-r,t.left+=l-i):u>0&&l<=0?t.left=r:l>u?t.left=r+o-e.collisionWidth:t.left=r:l>0?t.left+=l:u>0?t.left-=u:t.left=a(t.left-s,t.left); },top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,l=r-s,u=s+e.collisionHeight-o-r;e.collisionHeight>o?l>0&&u<=0?(i=t.top+l+e.collisionHeight-o-r,t.top+=l-i):u>0&&l<=0?t.top=r:l>u?t.top=r+o-e.collisionHeight:t.top=r:l>0?t.top+=l:u>0?t.top-=u:t.top=a(t.top-s,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,a=r.offset.left+r.scrollLeft,s=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-e.collisionPosition.marginLeft,h=u-l,c=u+e.collisionWidth-s-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];h<0?(i=t.left+d+p+f+e.collisionWidth-s-a,(i<0||i<o(h))&&(t.left+=d+p+f)):c>0&&(n=t.left-e.collisionPosition.marginLeft+d+p+f-l,(n>0||o(n)<c)&&(t.left+=d+p+f))},top:function(t,e){var i,n,r=e.within,a=r.offset.top+r.scrollTop,s=r.height,l=r.isWindow?r.scrollTop:r.offset.top,u=t.top-e.collisionPosition.marginTop,h=u-l,c=u+e.collisionHeight-s-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];h<0?(n=t.top+p+f+g+e.collisionHeight-s-a,(n<0||n<o(h))&&(t.top+=p+f+g)):c>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||o(i)<c)&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}();var h=(t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),"ui-effects-"),c="ui-effects-style",d="ui-effects-animated",p=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var n=c[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:n.max<t?n.max:t)}function n(e){var i=u(),n=i._rgba=[];return e=e.toLowerCase(),f(l,function(t,r){var a,o=r.re.exec(e),s=o&&r.parse(o),l=r.space||"rgba";if(s)return a=i[l](s),i[h[l].cache]=a[h[l].cache],n=i._rgba=a._rgba,!1}),n.length?("0,0,0,0"===n.join()&&t.extend(n,a.transparent),i):a[e]}function r(t,e,i){return i=(i+1)%1,6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}var a,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",s=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],u=t.Color=function(e,i,n,r){return new t.Color.fn.parse(e,i,n,r)},h={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=u.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(h,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),u.fn=t.extend(u.prototype,{parse:function(r,o,s,l){if(r===e)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=t(r).css(o),o=e);var c=this,d=t.type(r),p=this._rgba=[];return o!==e&&(r=[r,o,s,l],d="array"),"string"===d?this.parse(n(r)||a._default):"array"===d?(f(h.rgba.props,function(t,e){p[e.idx]=i(r[e.idx],e)}),this):"object"===d?(r instanceof u?f(h,function(t,e){r[e.cache]&&(c[e.cache]=r[e.cache].slice())}):f(h,function(e,n){var a=n.cache;f(n.props,function(t,e){if(!c[a]&&n.to){if("alpha"===t||null==r[t])return;c[a]=n.to(c._rgba)}c[a][e.idx]=i(r[t],e,!0)}),c[a]&&t.inArray(null,c[a].slice(0,3))<0&&(c[a][3]=1,n.from&&(c._rgba=n.from(c[a])))}),this):void 0},is:function(t){var e=u(t),i=!0,n=this;return f(h,function(t,r){var a,o=e[r.cache];return o&&(a=n[r.cache]||r.to&&r.to(n._rgba)||[],f(r.props,function(t,e){if(null!=o[e.idx])return i=o[e.idx]===a[e.idx]})),i}),i},_space:function(){var t=[],e=this;return f(h,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var n=u(t),r=n._space(),a=h[r],o=0===this.alpha()?u("transparent"):this,s=o[a.cache]||a.to(o._rgba),l=s.slice();return n=n[a.cache],f(a.props,function(t,r){var a=r.idx,o=s[a],u=n[a],h=c[r.type]||{};null!==u&&(null===o?l[a]=u:(h.mod&&(u-o>h.mod/2?o+=h.mod:o-u>h.mod/2&&(o-=h.mod)),l[a]=i((u-o)*e+o,r)))}),this[r](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),r=u(e)._rgba;return u(t.map(i,function(t,e){return(1-n)*r[e]+n*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,h.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=t[3],s=Math.max(n,r,a),l=Math.min(n,r,a),u=s-l,h=s+l,c=.5*h;return e=l===s?0:n===s?60*(r-a)/u+360:r===s?60*(a-n)/u+120:60*(n-r)/u+240,i=0===u?0:c<=.5?u/h:u/(2-h),[Math.round(e)%360,i,c,null==o?1:o]},h.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],a=t[3],o=n<=.5?n*(1+i):n+i-n*i,s=2*n-o;return[Math.round(255*r(s,o,e+1/3)),Math.round(255*r(s,o,e)),Math.round(255*r(s,o,e-1/3)),a]},f(h,function(n,r){var a=r.props,o=r.cache,l=r.to,h=r.from;u.fn[n]=function(n){if(l&&!this[o]&&(this[o]=l(this._rgba)),n===e)return this[o].slice();var r,s=t.type(n),c="array"===s||"object"===s?n:arguments,d=this[o].slice();return f(a,function(t,e){var n=c["object"===s?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=i(n,e)}),h?(r=u(h(d)),r[o]=d,r):u(d)},f(a,function(e,i){u.fn[e]||(u.fn[e]=function(r){var a,o=t.type(r),l="alpha"===e?this._hsla?"hsla":"rgba":n,u=this[l](),h=u[i.idx];return"undefined"===o?h:("function"===o&&(r=r.call(this,h),o=t.type(r)),null==r&&i.empty?this:("string"===o&&(a=s.exec(r),a&&(r=h+parseFloat(a[2])*("+"===a[1]?1:-1))),u[i.idx]=r,this[l](u)))})})}),u.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,r){var a,o,s="";if("transparent"!==r&&("string"!==t.type(r)||(a=n(r)))){if(r=u(a||r),!d.rgba&&1!==r._rgba[3]){for(o="backgroundColor"===i?e.parentNode:e;(""===s||"transparent"===s)&&o&&o.style;)try{s=t.css(o,"backgroundColor"),o=o.parentNode}catch(l){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{e.style[i]=r}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=u(e.elem,i),e.end=u(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},u.hook(o),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},a=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(p),function(){function e(e){var i,n,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,a={};if(r&&r.length&&r[0]&&r[r[0]])for(n=r.length;n--;)i=r[n],"string"==typeof r[i]&&(a[t.camelCase(i)]=r[i]);else for(i in r)"string"==typeof r[i]&&(a[i]=r[i]);return a}function i(e,i){var n,a,o={};for(n in i)a=i[n],e[n]!==a&&(r[n]||!t.fx.step[n]&&isNaN(parseFloat(a))||(o[n]=a));return o}var n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(p.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(r,a,o,s){var l=t.speed(a,o,s);return this.queue(function(){var a,o=t(this),s=o.attr("class")||"",u=l.children?o.find("*").addBack():o;u=u.map(function(){var i=t(this);return{el:i,start:e(this)}}),a=function(){t.each(n,function(t,e){r[e]&&o[e+"Class"](r[e])})},a(),u=u.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),o.attr("class",s),u=u.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,u.get()).done(function(){a(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(o[0])})})},t.fn.extend({addClass:function(e){return function(i,n,r,a){return n?t.effects.animateClass.call(this,{add:i},n,r,a):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,r,a){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,r,a):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,n,r,a,o){return"boolean"==typeof n||void 0===n?r?t.effects.animateClass.call(this,n?{add:i}:{remove:i},r,a,o):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},n,r,a)}}(t.fn.toggleClass),switchClass:function(e,i,n,r,a){return t.effects.animateClass.call(this,{add:i,remove:e},n,r,a)}})}(),function(){function e(e,i,n,r){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(r=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(r=n,n=i,i={}),t.isFunction(n)&&(r=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=r||i.complete,e}function i(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||("string"==typeof e&&!t.effects.effect[e]||(!!t.isFunction(e)||"object"==typeof e&&!e.effect))}function n(t,e){var i=e.outerWidth(),n=e.outerHeight(),r=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,a=r.exec(t)||["",0,i,n,0];return{top:parseFloat(a[1])||0,right:"auto"===a[2]?i:parseFloat(a[2]),bottom:"auto"===a[3]?n:parseFloat(a[3]),left:parseFloat(a[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(d)||e(i)}}(t.expr.filters.animated)),t.uiBackCompat!==!1&&t.extend(t.effects,{save:function(t,e){for(var i=0,n=e.length;i<n;i++)null!==e[i]&&t.data(h+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,r=e.length;n<r;n++)null!==e[n]&&(i=t.data(h+e[n]),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:e.width(),height:e.height()},a=document.activeElement;try{a.id}catch(o){a=document.body}return e.wrap(n),(e[0]===a||t.contains(e[0],a))&&t(a).trigger("focus"),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(r),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,n){return n||(n=i,i="effect"),t.effects.effect[e]=n,t.effects.effect[e].mode=i,n},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(e||100)/100:1,r="vertical"!==i?(e||100)/100:1;return{height:t.height()*r,width:t.width()*n,outerHeight:t.outerHeight()*r,outerWidth:t.outerWidth()*n}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();e>1&&n.splice.apply(n,[1,0].concat(n.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(c,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(c)||"",t.removeData(c)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createPlaceholder:function(e){var i,n=e.css("position"),r=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),"float":e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(h+"placeholder",i)),e.css({position:n,left:r.left,top:r.top}),i},removePlaceholder:function(t){var e=h+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,n,r){return r=r||{},t.each(i,function(t,i){var a=e.cssUnit(i);a[0]>0&&(r[i]=a[0]*n+a[1])}),r}}),t.fn.extend({effect:function(){function i(e){function i(){s.removeData(d),t.effects.cleanUp(s),"hide"===n.mode&&s.hide(),o()}function o(){t.isFunction(l)&&l.call(s[0]),t.isFunction(e)&&e()}var s=t(this);n.mode=h.shift(),t.uiBackCompat===!1||a?"none"===n.mode?(s[u](),o()):r.call(s[0],n,i):(s.is(":hidden")?"hide"===u:"show"===u)?(s[u](),o()):r.call(s[0],n,o)}var n=e.apply(this,arguments),r=t.effects.effect[n.effect],a=r.mode,o=n.queue,s=o||"fx",l=n.complete,u=n.mode,h=[],c=function(e){var i=t(this),n=t.effects.mode(i,u)||a;i.data(d,!0),h.push(n),a&&("show"===n||n===a&&"hide"===n)&&i.show(),a&&"none"===n||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!r?u?this[u](n.duration,l):this.each(function(){l&&l.call(this)}):o===!1?this.each(c).each(i):this.queue(s,c).queue(s,i)},show:function(t){return function(n){if(i(n))return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(t.fn.show),hide:function(t){return function(n){if(i(n))return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(t.fn.hide),toggle:function(t){return function(n){if(i(n)||"boolean"==typeof n)return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):n(this.css("clip"),this)},transfer:function(e,i){var n=t(this),r=t(e.to),a="fixed"===r.css("position"),o=t("body"),s=a?o.scrollTop():0,l=a?o.scrollLeft():0,u=r.offset(),h={top:u.top-s,left:u.left-l,height:r.innerHeight(),width:r.innerWidth()},c=n.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:c.top-s,left:c.left-l,height:n.innerHeight(),width:n.innerWidth(),position:a?"fixed":"absolute"}).animate(h,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=n(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?i(2*t)/2:1-i(t*-2+2)/2}})}();var f,f=t.effects;t.effects.define("blind","hide",function(e,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},r=t(this),a=e.direction||"up",o=r.cssClip(),s={clip:t.extend({},o)},l=t.effects.createPlaceholder(r);s.clip[n[a][0]]=s.clip[n[a][1]],"show"===e.mode&&(r.cssClip(s.clip),l&&l.css(t.effects.clipToBox(s)),s.clip=o),l&&l.animate(t.effects.clipToBox(s),e.duration,e.easing),r.animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("bounce",function(e,i){var n,r,a,o=t(this),s=e.mode,l="hide"===s,u="show"===s,h=e.direction||"up",c=e.distance,d=e.times||5,p=2*d+(u||l?1:0),f=e.duration/p,g=e.easing,m="up"===h||"down"===h?"top":"left",v="up"===h||"left"===h,y=0,_=o.queue().length;for(t.effects.createPlaceholder(o),a=o.css(m),c||(c=o["top"===m?"outerHeight":"outerWidth"]()/3),u&&(r={opacity:1},r[m]=a,o.css("opacity",0).css(m,v?2*-c:2*c).animate(r,f,g)),l&&(c/=Math.pow(2,d-1)),r={},r[m]=a;y<d;y++)n={},n[m]=(v?"-=":"+=")+c,o.animate(n,f,g).animate(r,f,g),c=l?2*c:c/2;l&&(n={opacity:0},n[m]=(v?"-=":"+=")+c,o.animate(n,f,g)),o.queue(i),t.effects.unshift(o,_,p+1)}),t.effects.define("clip","hide",function(e,i){var n,r={},a=t(this),o=e.direction||"vertical",s="both"===o,l=s||"horizontal"===o,u=s||"vertical"===o;n=a.cssClip(),r.clip={top:u?(n.bottom-n.top)/2:n.top,right:l?(n.right-n.left)/2:n.right,bottom:u?(n.bottom-n.top)/2:n.bottom,left:l?(n.right-n.left)/2:n.left},t.effects.createPlaceholder(a),"show"===e.mode&&(a.cssClip(r.clip),r.clip=n),a.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("drop","hide",function(e,i){var n,r=t(this),a=e.mode,o="show"===a,s=e.direction||"left",l="up"===s||"down"===s?"top":"left",u="up"===s||"left"===s?"-=":"+=",h="+="===u?"-=":"+=",c={opacity:0};t.effects.createPlaceholder(r),n=e.distance||r["top"===l?"outerHeight":"outerWidth"](!0)/2,c[l]=u+n,o&&(r.css(c),c[l]=h+n,c.opacity=1),r.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("explode","hide",function(e,i){function n(){_.push(this),_.length===c*d&&r()}function r(){p.css({visibility:"visible"}),t(_).remove(),i()}var a,o,s,l,u,h,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=c,p=t(this),f=e.mode,g="show"===f,m=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/d),y=Math.ceil(p.outerHeight()/c),_=[];for(a=0;a<c;a++)for(l=m.top+a*y,h=a-(c-1)/2,o=0;o<d;o++)s=m.left+o*v,u=o-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*v,top:-a*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:s+(g?u*v:0),top:l+(g?h*y:0),opacity:g?0:1}).animate({left:s+(g?0:u*v),top:l+(g?0:h*y),opacity:g?1:0},e.duration||500,e.easing,n)}),t.effects.define("fade","toggle",function(e,i){var n="show"===e.mode;t(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("fold","hide",function(e,i){var n=t(this),r=e.mode,a="show"===r,o="hide"===r,s=e.size||15,l=/([0-9]+)%/.exec(s),u=!!e.horizFirst,h=u?["right","bottom"]:["bottom","right"],c=e.duration/2,d=t.effects.createPlaceholder(n),p=n.cssClip(),f={clip:t.extend({},p)},g={clip:t.extend({},p)},m=[p[h[0]],p[h[1]]],v=n.queue().length;l&&(s=parseInt(l[1],10)/100*m[o?0:1]),f.clip[h[0]]=s,g.clip[h[0]]=s,g.clip[h[1]]=0,a&&(n.cssClip(g.clip),d&&d.css(t.effects.clipToBox(g)),g.clip=p),n.queue(function(i){d&&d.animate(t.effects.clipToBox(f),c,e.easing).animate(t.effects.clipToBox(g),c,e.easing),i()}).animate(f,c,e.easing).animate(g,c,e.easing).queue(i),t.effects.unshift(n,v,4)}),t.effects.define("highlight","show",function(e,i){var n=t(this),r={backgroundColor:n.css("backgroundColor")};"hide"===e.mode&&(r.opacity=0),t.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("size",function(e,i){var n,r,a,o=t(this),s=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=e.mode,c="effect"!==h,d=e.scale||"both",p=e.origin||["middle","center"],f=o.css("position"),g=o.position(),m=t.effects.scaledDimensions(o),v=e.from||m,y=e.to||t.effects.scaledDimensions(o,0);t.effects.createPlaceholder(o),"show"===h&&(a=v,v=y,y=a),r={from:{y:v.height/m.height,x:v.width/m.width},to:{y:y.height/m.height,x:y.width/m.width}},"box"!==d&&"both"!==d||(r.from.y!==r.to.y&&(v=t.effects.setTransition(o,l,r.from.y,v),y=t.effects.setTransition(o,l,r.to.y,y)),r.from.x!==r.to.x&&(v=t.effects.setTransition(o,u,r.from.x,v),y=t.effects.setTransition(o,u,r.to.x,y))),"content"!==d&&"both"!==d||r.from.y!==r.to.y&&(v=t.effects.setTransition(o,s,r.from.y,v),y=t.effects.setTransition(o,s,r.to.y,y)),p&&(n=t.effects.getBaseline(p,m),v.top=(m.outerHeight-v.outerHeight)*n.y+g.top,v.left=(m.outerWidth-v.outerWidth)*n.x+g.left,y.top=(m.outerHeight-y.outerHeight)*n.y+g.top,y.left=(m.outerWidth-y.outerWidth)*n.x+g.left),o.css(v),"content"!==d&&"both"!==d||(l=l.concat(["marginTop","marginBottom"]).concat(s),u=u.concat(["marginLeft","marginRight"]),o.find("*[width]").each(function(){var i=t(this),n=t.effects.scaledDimensions(i),a={height:n.height*r.from.y,width:n.width*r.from.x,outerHeight:n.outerHeight*r.from.y,outerWidth:n.outerWidth*r.from.x},o={height:n.height*r.to.y,width:n.width*r.to.x,outerHeight:n.height*r.to.y,outerWidth:n.width*r.to.x};r.from.y!==r.to.y&&(a=t.effects.setTransition(i,l,r.from.y,a),o=t.effects.setTransition(i,l,r.to.y,o)),r.from.x!==r.to.x&&(a=t.effects.setTransition(i,u,r.from.x,a),o=t.effects.setTransition(i,u,r.to.x,o)),c&&t.effects.saveStyle(i),i.css(a),i.animate(o,e.duration,e.easing,function(){c&&t.effects.restoreStyle(i)})})),o.animate(y,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=o.offset();0===y.opacity&&o.css("opacity",v.opacity),c||(o.css("position","static"===f?"relative":f).offset(e),t.effects.saveStyle(o)),i()}})}),t.effects.define("scale",function(e,i){var n=t(this),r=e.mode,a=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"effect"!==r?0:100),o=t.extend(!0,{from:t.effects.scaledDimensions(n),to:t.effects.scaledDimensions(n,a,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(o.from.opacity=1,o.to.opacity=0),t.effects.effect.size.call(this,o,i)}),t.effects.define("puff","hide",function(e,i){var n=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,n,i)}),t.effects.define("pulsate","show",function(e,i){var n=t(this),r=e.mode,a="show"===r,o="hide"===r,s=a||o,l=2*(e.times||5)+(s?1:0),u=e.duration/l,h=0,c=1,d=n.queue().length;for(!a&&n.is(":visible")||(n.css("opacity",0).show(),h=1);c<l;c++)n.animate({opacity:h},u,e.easing),h=1-h;n.animate({opacity:h},u,e.easing),n.queue(i),t.effects.unshift(n,d,l+1)}),t.effects.define("shake",function(e,i){var n=1,r=t(this),a=e.direction||"left",o=e.distance||20,s=e.times||3,l=2*s+1,u=Math.round(e.duration/l),h="up"===a||"down"===a?"top":"left",c="up"===a||"left"===a,d={},p={},f={},g=r.queue().length;for(t.effects.createPlaceholder(r),d[h]=(c?"-=":"+=")+o,p[h]=(c?"+=":"-=")+2*o,f[h]=(c?"-=":"+=")+2*o,r.animate(d,u,e.easing);n<s;n++)r.animate(p,u,e.easing).animate(f,u,e.easing);r.animate(p,u,e.easing).animate(d,u/2,e.easing).queue(i),t.effects.unshift(r,g,l+1)}),t.effects.define("slide","show",function(e,i){var n,r,a=t(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=e.mode,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l,c=e.distance||a["top"===u?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(a),n=a.cssClip(),r=a.position()[u],d[u]=(h?-1:1)*c+r,d.clip=a.cssClip(),d.clip[o[l][1]]=d.clip[o[l][0]],"show"===s&&(a.cssClip(d.clip),a.css(u,d[u]),d.clip=n,d[u]=r),a.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})});t.uiBackCompat!==!1&&(f=t.effects.define("transfer",function(e,i){t(this).transfer(e,i)}));t.ui.focusable=function(i,n){var r,a,o,s,l,u=i.nodeName.toLowerCase();return"area"===u?(r=i.parentNode,a=r.name,!(!i.href||!a||"map"!==r.nodeName.toLowerCase())&&(o=t("img[usemap='#"+a+"']"),o.length>0&&o.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(u)?(s=!i.disabled,s&&(l=t(i).closest("fieldset")[0],l&&(s=!l.disabled))):s="a"===u?i.href||n:n,s&&t(i).is(":visible")&&e(t(i)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}});t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function n(e,i,n,a){return t.each(r,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),a&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var r="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),o={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?o["inner"+i].call(this):this.each(function(){t(this).css(a,n(this,e)+"px")})},t.fn["outer"+i]=function(e,r){return"number"!=typeof e?o["outer"+i].call(this,e):this.each(function(){t(this).css(a,n(this,e,!0,r)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))});t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,i,n,r,a;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(r=this.eq(0).parents("label"),n=this.attr("id"),n&&(e=this.eq(0).parents().last(),a=e.add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(n)+"']",r=r.add(a.find(i).addBack(i))),this.pushStack(r))},t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&a.length?a:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),n=null!=i;return(!n||i>=0)&&t.ui.focusable(e,n)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,i,n=this.options.icons;n&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+n.header),e.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,n.header)._addClass(i,null,n.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(), "content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),void("icons"===t&&(this._destroyIcons(),e&&this._createIcons())))},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,r=this.headers.index(e.target),a=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:a=this.headers[(r+1)%n];break;case i.LEFT:case i.UP:a=this.headers[(r-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:a=this.headers[0];break;case i.END:a=this.headers[n-1]}a&&(t(e.target).attr("tabIndex",-1),t(a).attr("tabIndex",0),t(a).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,n=i.heightStyle,r=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=t(this),i=e.uniqueId().attr("id"),n=e.next(),r=n.uniqueId().attr("id");e.attr("aria-controls",r),n.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===n?(e=r.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===n&&(e=0,this.headers.next().each(function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i,n,r=this.options,a=this.active,o=t(e.currentTarget),s=o[0]===a[0],l=s&&r.collapsible,u=l?t():o.next(),h=a.next(),c={oldHeader:a,oldPanel:h,newHeader:l?t():o,newPanel:u};e.preventDefault(),s&&!r.collapsible||this._trigger("beforeActivate",e,c)===!1||(r.active=!l&&this.headers.index(o),this.active=s?t():o,this._toggle(c),this._removeClass(a,"ui-accordion-header-active","ui-state-active"),r.icons&&(i=a.children(".ui-accordion-header-icon"),this._removeClass(i,null,r.icons.activeHeader)._addClass(i,null,r.icons.header)),s||(this._removeClass(o,"ui-accordion-header-collapsed")._addClass(o,"ui-accordion-header-active","ui-state-active"),r.icons&&(n=o.children(".ui-accordion-header-icon"),this._removeClass(n,null,r.icons.header)._addClass(n,null,r.icons.activeHeader)),this._addClass(o.next(),"ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var n,r,a,o=this,s=0,l=t.css("box-sizing"),u=t.length&&(!e.length||t.index()<e.index()),h=this.options.animate||{},c=u&&h.down||h,d=function(){o._toggleComplete(i)};return"number"==typeof c&&(a=c),"string"==typeof c&&(r=c),r=r||c.easing||h.easing,a=a||c.duration||h.duration,e.length?t.length?(n=t.show().outerHeight(),e.animate(this.hideProps,{duration:a,easing:r,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:a,easing:r,complete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===l&&(s+=i.now):"content"!==o.options.heightStyle&&(i.now=Math.round(n-e.outerHeight()-s),s=0)}})):e.animate(this.hideProps,a,r,d):t.animate(this.showProps,a,r,d)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),n=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),n=t(e.currentTarget);i[0]===n[0]&&(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,n))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,n,r,a,o=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:o=!1,n=this.previousFilter||"",a=!1,r=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),r===n?a=!0:r=n+r,i=this._filterMenuItems(r),i=a&&i.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):i,i.length||(r=String.fromCharCode(e.keyCode),i=this._filterMenuItems(r)),i.length?(this.focus(e,i),this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,n,r,a,o=this,s=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),n=t("<span>").data("ui-menu-submenu-caret",!0);o._addClass(n,"ui-menu-icon","ui-icon "+s),i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);o._isDivider(e)&&o._addClass(e,"ui-menu-divider","ui-widget-content")}),r=i.not(".ui-menu-item, .ui-menu-divider"),a=r.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(r,"ui-menu-item")._addClass(a,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,n,r;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),r=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(r,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,r,a,o,s;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-i-n,a=this.activeMenu.scrollTop(),o=this.activeMenu.height(),s=e.outerHeight(),r<0?this.activeMenu.scrollTop(a+r):r+s>o&&this.activeMenu.scrollTop(a+r-o+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n-r<0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+r>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return n.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}});t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,r=this.element[0].nodeName.toLowerCase(),a="textarea"===r,o="input"===r;this.isMultiLine=a||!o&&this._isContentEditable(this.element),this.valueMethod=this.element[a||o?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var a=t.ui.keyCode;switch(r.keyCode){case a.PAGE_UP:e=!0,this._move("previousPage",r);break;case a.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case a.UP:e=!0,this._keyEvent("previous",r);break;case a.DOWN:e=!0,this._keyEvent("next",r);break;case a.ENTER:this.menu.active&&(e=!0,r.preventDefault(),this.menu.select(r));break;case a.TAB:this.menu.active&&this.menu.select(r);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(r),r.preventDefault());break;default:i=!0,this._searchTimeout(r)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var r=t.ui.keyCode;switch(n.keyCode){case r.PAGE_UP:this._move("previousPage",n);break;case r.PAGE_DOWN:this._move("nextPage",n);break;case r.UP:this._keyEvent("previous",n);break;case r.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var n,r;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)})):(r=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:r})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(r.value),n=i.item.attr("aria-label")||r.value,void(n&&t.trim(n).length&&(this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))))},menuselect:function(e,i){var n=i.item.data("ui-autocomplete-item"),r=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=r,this._delay(function(){this.previous=r,this.selectedItem=n})),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,r){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||i||n)||(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}});var g=(t.ui.autocomplete,/ui-corner-([a-z]){2,6}/g);t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(n,r){var a,o={};if(r)return"controlgroupLabel"===n?(a=e.element.find(r),a.each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(a,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(a.get()))):void(t.fn[n]&&(o=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(r).each(function(){var r=t(this),a=r[n]("instance"),s=t.widget.extend({},o);if("button"!==n||!r.parent(".ui-spinner").length){a||(a=r[n]()[n]("instance")),a&&(s.classes=e._resolveClassesValues(s.classes,a)),r[n](s);var l=r[n]("widget");t.data(l[0],"ui-controlgroup-data",a?a:r[n]("instance")),i.push(l[0])}})))}),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this),n=i.data("ui-controlgroup-data");n&&n[e]&&n[e]()})},_updateCornerClass:function(t,e){var i="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",n=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,i),this._addClass(t,null,n)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,i){var n={};return t.each(e,function(r){var a=i.options.classes[r]||"";a=t.trim(a.replace(g,"")),n[r]=(a+" "+e[r]).replace(/\s+/g," ")}),n},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,n){var r=e[n]().data("ui-controlgroup-data");if(r&&i["_"+r.widgetName+"Options"]){var a=i["_"+r.widgetName+"Options"](1===e.length?"only":n);a.classes=i._resolveClassesValues(a.classes,r),r.element[r.widgetName](a)}else i._updateCornerClass(e[n](),n)}),this._callChildMethod("refresh"))}});t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i,n=this,r=this._super()||{};return this._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){n.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML}),this.originalLabel&&(r.label=this.originalLabel),e=this.element[0].disabled,null!=e&&(r.disabled=e),r},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e,i=this.element[0].name,n="input[name='"+t.ui.escapeSelector(i)+"']";return i?(e=this.form.length?t(this.form[0].elements).filter(n):t(n).filter(function(){return 0===t(this).form().length}),e.not(this.element)):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e)return this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(), delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]);t.ui.checkboxradio;t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),t=this.element[0].disabled,null!=t&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,i){var n="iconPosition"!==e,r=n?this.options.iconPosition:i,a="top"===r||"bottom"===r;this.icon?n&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),n&&this._addClass(this.icon,null,i),this._attachIcon(r),a?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,i=void 0===t.icon?this.options.icon:t.icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),t.uiBackCompat!==!1&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){return"text"===t?void this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),t.fn.button=function(e){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?e.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(t.fn.button),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});t.ui.button;t.extend(t.ui,{datepicker:{version:"1.12.1"}});var m;t.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return o(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,r,a;n=e.nodeName.toLowerCase(),r="div"===n||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),a=this._newInst(t(e),r),a.settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,a):r&&this._inlineDatepicker(e,a)},_newInst:function(e,i){var n=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:n,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?r(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,r,a,o=this._get(i,"appendText"),s=this._get(i,"isRTL");i.append&&i.append.remove(),o&&(i.append=t("<span class='"+this._appendClass+"'>"+o+"</span>"),e[s?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),n=this._get(i,"showOn"),"focus"!==n&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(r=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:a,alt:r,title:r}):t("<button type='button'></button>").addClass(this._triggerClass).html(a?t("<img/>").attr({src:a,alt:r,title:r}):r)),e[s?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,r,a=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&&(e=function(t){for(i=0,n=0,r=0;r<t.length;r++)t[r].length>i&&(i=t[r].length,n=r);return n},a.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,r,a){var s,l,u,h,c,d=this._dialogInst;return d||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],"datepicker",d)),o(d.settings,r||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,u=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+h,u/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var i,n=t(e),r=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty(),m===r&&(m=null))},_enableDatepicker:function(e){var i,n,r=t(e),a=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||(n=r.children("."+this._inlineClass),n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,r=t(e),a=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||(n=r.children("."+this._inlineClass),n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var r,a,s,l,u=this._getInst(e);return 2===arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):u?"all"===i?t.extend({},u.settings):this._get(u,i):null:(r=i||{},"string"==typeof i&&(r={},r[i]=n),void(u&&(this._curInst===u&&this._hideDatepicker(),a=this._getDateDatepicker(e,!0),s=this._getMinMaxDate(u,"min"),l=this._getMinMaxDate(u,"max"),o(u.settings,r),null!==s&&void 0!==r.dateFormat&&void 0===r.minDate&&(u.settings.minDate=this._formatDate(u,s)),null!==l&&void 0!==r.dateFormat&&void 0===r.maxDate&&(u.settings.maxDate=this._formatDate(u,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),u),this._autoSize(u),this._setDate(u,a),this._updateAlternate(u),this._updateDatepicker(u))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,r,a=t.datepicker._getInst(e.target),o=!0,s=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return r=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",a.dpDiv),r[0]&&t.datepicker._selectDay(e.target,a.selectedMonth,a.selectedYear,r[0]),i=t.datepicker._get(a,"onSelect"),i?(n=t.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[n,a])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,r=t.datepicker._getInst(e.target);if(t.datepicker._get(r,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(r,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(r){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var n,r,a,s,l,u,h;n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),r=t.datepicker._get(n,"beforeShow"),a=r?r.apply(e,[e,n]):{},a!==!1&&(o(n.settings,a),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),s=!1,t(e).parents().each(function(){return s|="fixed"===t(this).css("position"),!s}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),l=t.datepicker._checkOffset(n,l,s),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":s?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),n.inline||(u=t.datepicker._get(n,"showAnim"),h=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[u]?n.dpDiv.show(u,t.datepicker._get(n,"showOptions"),h):n.dpDiv[u||"show"](u?h:null),t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),t.datepicker._curInst=n))}},_updateDatepicker:function(e){this.maxRows=4,m=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,n=this._getNumberOfMonths(e),r=n[1],o=17,s=e.dpDiv.find("."+this._dayOverClass+" a");s.length>0&&a.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",o*r+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var r=e.dpDiv.outerWidth(),a=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,s=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?r-o:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+s?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r>l&&l>r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+a>u&&u>a?Math.abs(a+s):0),i},_findPos:function(e){for(var i,n=this._getInst(e),r=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,r,a,o=this._curInst;!o||e&&o!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(o,"showAnim"),n=this._get(o,"duration"),r=function(){t.datepicker._tidyDialog(o)},t.effects&&(t.effects.effect[i]||t.effects[i])?o.dpDiv.hide(i,t.datepicker._get(o,"showOptions"),n,r):o.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,r),i||r(),this._datepickerShowing=!1,a=this._get(o,"onClose"),a&&a.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var r=t(e),a=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(a,i+("M"===n?this._get(a,"showCurrentAtPos"):0),n),this._updateDatepicker(a))},_gotoToday:function(e){var i,n=t(e),r=this._getInst(n[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var r=t(e),a=this._getInst(r[0]);a["selected"+("M"===n?"Month":"Year")]=a["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(r)},_selectDay:function(e,i,n,r){var a,o=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(a=this._getInst(o[0]),a.selectedDay=a.currentDay=t("a",r).html(),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=n,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,r=t(e),a=this._getInst(r[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),n=this._get(a,"onSelect"),n?n.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,r,a=this._get(e,"altField");a&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),r=this.formatDate(i,n,this._getFormatConfig(e)),t(a).val(r))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?i.toString():i+"",""===i)return null;var r,a,o,s,l=0,u=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),c=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,y=-1,_=!1,b=function(t){var i=r+1<e.length&&e.charAt(r+1)===t;return i&&r++,i},x=function(t){var e=b(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,r="y"===t?n:1,a=new RegExp("^\\d{"+r+","+n+"}"),o=i.substring(l).match(a);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},w=function(e,n,r){var a=-1,o=t.map(b(e)?r:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(o,function(t,e){var n=e[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return a=e[0],l+=n.length,!1}),a!==-1)return a+1;throw"Unknown name at position "+l},M=function(){if(i.charAt(l)!==e.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r<e.length;r++)if(_)"'"!==e.charAt(r)||b("'")?M():_=!1;else switch(e.charAt(r)){case"d":v=x("d");break;case"D":w("D",c,d);break;case"o":y=x("o");break;case"m":m=x("m");break;case"M":m=w("M",p,f);break;case"y":g=x("y");break;case"@":s=new Date(x("@")),g=s.getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"!":s=new Date((x("!")-this._ticksTo1970)/1e4),g=s.getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"'":b("'")?M():_=!0;break;default:M()}if(l<i.length&&(o=i.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(g===-1?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=h?0:-100)),y>-1)for(m=1,v=y;;){if(a=this._getDaysInMonth(g,m-1),v<=a)break;m++,v-=a}if(s=this._daylightSavingAdjust(new Date(g,m-1,v)),s.getFullYear()!==g||s.getMonth()+1!==m||s.getDate()!==v)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,s=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},u=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},h=function(t,e,i,n){return l(t)?n[e]:i[e]},c="",d=!1;if(e)for(n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||l("'")?c+=t.charAt(n):d=!1;else switch(t.charAt(n)){case"d":c+=u("d",e.getDate(),2);break;case"D":c+=h("D",e.getDay(),r,a);break;case"o":c+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=u("m",e.getMonth()+1,2);break;case"M":c+=h("M",e.getMonth(),o,s);break;case"y":c+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?c+="'":d=!0;break;default:c+=t.charAt(n)}return c},_possibleChars:function(t){var e,i="",n=!1,r=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||r("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":r("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),a=r,o=this._getFormatConfig(t);try{a=this.parseDate(i,n,o)||r}catch(s){n=e?"":n}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=n?a.getDate():0,t.currentMonth=n?a.getMonth():0,t.currentYear=n?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var r=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},a=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(n){}for(var r=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,a=r.getFullYear(),o=r.getMonth(),s=r.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(i);u;){switch(u[2]||"d"){case"d":case"D":s+=parseInt(u[1],10);break;case"w":case"W":s+=7*parseInt(u[1],10);break;case"m":case"M":o+=parseInt(u[1],10),s=Math.min(s,t.datepicker._getDaysInMonth(a,o));break;case"y":case"Y":a+=parseInt(u[1],10),s=Math.min(s,t.datepicker._getDaysInMonth(a,o))}u=l.exec(i)}return new Date(a,o,s)},o=null==i||""===i?n:"string"==typeof i?a(i):"number"==typeof i?isNaN(i)?n:r(i):new Date(i.getTime());return o=o&&"Invalid Date"===o.toString()?n:o,o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,r=t.selectedMonth,a=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),r===t.selectedMonth&&a===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,r,a,o,s,l,u,h,c,d,p,f,g,m,v,y,_,b,x,w,M,S,k,D,T,L,C,I,A,P,E,O,R,H,z,Y,N,F=new Date,W=this._daylightSavingAdjust(new Date(F.getFullYear(),F.getMonth(),F.getDate())),B=this._get(t,"isRTL"),j=this._get(t,"showButtonPanel"),V=this._get(t,"hideIfNoPrevNext"),$=this._get(t,"navigationAsDateFormat"),G=this._getNumberOfMonths(t),U=this._get(t,"showCurrentAtPos"),q=this._get(t,"stepMonths"),X=1!==G[0]||1!==G[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),K=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),Q=t.drawMonth-U,tt=t.drawYear;if(Q<0&&(Q+=12,tt--),J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-G[0]*G[1]+1,J.getDate())),e=K&&e<K?K:e;this._daylightSavingAdjust(new Date(tt,Q,1))>e;)Q--,Q<0&&(Q=11,tt--);for(t.drawMonth=Q,t.drawYear=tt,i=this._get(t,"prevText"),i=$?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Q-q,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,Q)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+i+"</span></a>":V?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+i+"</span></a>",r=this._get(t,"nextText"),r=$?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,Q+q,1)),this._getFormatConfig(t)):r,a=this._canAdjustMonth(t,1,tt,Q)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+r+"</span></a>":V?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+r+"</span></a>",o=this._get(t,"currentText"),s=this._get(t,"gotoCurrent")&&t.currentDay?Z:W,o=$?this.formatDate(o,s,this._getFormatConfig(t)):o,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",u=j?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(B?l:"")+(this._isInRange(t,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+o+"</button>":"")+(B?"":l)+"</div>":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,c=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),b="",w=0;w<G[0];w++){for(M="",this.maxRows=4,S=0;S<G[1];S++){if(k=this._daylightSavingAdjust(new Date(tt,Q,t.selectedDay)),D=" ui-corner-all",T="",X){if(T+="<div class='ui-datepicker-group",G[1]>1)switch(S){case 0:T+=" ui-datepicker-group-first",D=" ui-corner-"+(B?"right":"left"); break;case G[1]-1:T+=" ui-datepicker-group-last",D=" ui-corner-"+(B?"left":"right");break;default:T+=" ui-datepicker-group-middle",D=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'>"+(/all|left/.test(D)&&0===w?B?a:n:"")+(/all|right/.test(D)&&0===w?B?n:a:"")+this._generateMonthYearHeader(t,Q,tt,K,J,w>0||S>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",L=c?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",x=0;x<7;x++)C=(x+h)%7,L+="<th scope='col'"+((x+h+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[C]+"'>"+p[C]+"</span></th>";for(T+=L+"</tr></thead><tbody>",I=this._getDaysInMonth(tt,Q),tt===t.selectedYear&&Q===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,I)),A=(this._getFirstDayOfMonth(tt,Q)-h+7)%7,P=Math.ceil((A+I)/7),E=X&&this.maxRows>P?this.maxRows:P,this.maxRows=E,O=this._daylightSavingAdjust(new Date(tt,Q,1-A)),R=0;R<E;R++){for(T+="<tr>",H=c?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(O)+"</td>":"",x=0;x<7;x++)z=m?m.apply(t.input?t.input[0]:null,[O]):[!0,""],Y=O.getMonth()!==Q,N=Y&&!y||!z[0]||K&&O<K||J&&O>J,H+="<td class='"+((x+h+6)%7>=5?" ui-datepicker-week-end":"")+(Y?" ui-datepicker-other-month":"")+(O.getTime()===k.getTime()&&Q===t.selectedMonth&&t._keyEvent||_.getTime()===O.getTime()&&_.getTime()===k.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(Y&&!v?"":" "+z[1]+(O.getTime()===Z.getTime()?" "+this._currentClass:"")+(O.getTime()===W.getTime()?" ui-datepicker-today":""))+"'"+(Y&&!v||!z[2]?"":" title='"+z[2].replace(/'/g,"'")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+O.getMonth()+"' data-year='"+O.getFullYear()+"'")+">"+(Y&&!v?" ":N?"<span class='ui-state-default'>"+O.getDate()+"</span>":"<a class='ui-state-default"+(O.getTime()===W.getTime()?" ui-state-highlight":"")+(O.getTime()===Z.getTime()?" ui-state-active":"")+(Y?" ui-priority-secondary":"")+"' href='#'>"+O.getDate()+"</a>")+"</td>",O.setDate(O.getDate()+1),O=this._daylightSavingAdjust(O);T+=H+"</tr>"}Q++,Q>11&&(Q=0,tt++),T+="</tbody></table>"+(X?"</div>"+(G[0]>0&&S===G[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),M+=T}b+=M}return b+=u,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,r,a,o,s){var l,u,h,c,d,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),_="<div class='ui-datepicker-title'>",b="";if(a||!m)b+="<span class='ui-datepicker-month'>"+o[e]+"</span>";else{for(l=n&&n.getFullYear()===i,u=r&&r.getFullYear()===i,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!l||h>=n.getMonth())&&(!u||h<=r.getMonth())&&(b+="<option value='"+h+"'"+(h===e?" selected='selected'":"")+">"+s[h]+"</option>");b+="</select>"}if(y||(_+=b+(!a&&m&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",a||!v)_+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(c=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(c[0]),g=Math.max(f,p(c[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=g;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),y&&(_+=(!a&&m&&v?"":" ")+b),_+="</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),r=t.selectedMonth+("M"===i?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,a)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&&e<i?i:e;return n&&r>n?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(i,n+(e<0?e:r[0]*r[1]),1));return e<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),o=null,s=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),o=parseInt(i[0],10),s=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(o+=n),i[1].match(/[+\-].*/)&&(s+=n)),(!r||e.getTime()>=r.getTime())&&(!a||e.getTime()<=a.getTime())&&(!o||e.getFullYear()>=o)&&(!s||e.getFullYear()<=s)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new n,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1";var v=(t.datepicker,t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),!1);t(document).on("mouseup",function(){v=!1});t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!v){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,r=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(n&&!r&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),v=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,v=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,n){var r,a=t.ui[e].prototype;for(r in n)a.plugins[r]=a.plugins[r]||[],a.plugins[r].push([i,n[r]])},call:function(t,e,i,n){var r,a=t.plugins[e];if(a&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r<a.length;r++)t.options[a[r][0]]&&a[r][1].apply(t.element,i)}},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")};t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]),n=t(e.target);n.closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",e,n)===!1)return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper),r=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options,a=this.document[0];return this.relativeContainer=null,r.containment?"window"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,t(a).width()-this.helperProportions.width-this.margins.left,(t(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&&(r.containment=this.helper[0].parentNode),i=t(r.containment),n=i[0],void(n&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,r,a,o=this.options,s=this._isRootNode(this.scrollParent[0]),l=t.pageX,u=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(u=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(u=i[3]+this.offset.click.top)),o.grid&&(r=o.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,u=i?r-this.offset.click.top>=i[1]||r-this.offset.click.top>i[3]?r:r-this.offset.click.top>=i[1]?r-o.grid[1]:r+o.grid[1]:r,a=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-o.grid[0]:a+o.grid[0]:a),"y"===o.axis&&(l=this.originalPageX),"x"===o.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var r=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,r))})},stop:function(e,i,n){var r=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,r))})},drag:function(e,i,n){t.each(n.sortables,function(){var r=!1,a=this;a.positionAbs=n.positionAbs,a.helperProportions=n.helperProportions,a.offset.click=n.offset.click,a._intersectsWith(a.containerCache)&&(r=!0,t.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&t.contains(a.element[0],this.element[0])&&(r=!1),r})),r?(a.isOver||(a.isOver=1,n._parent=i.helper.parent(),a.currentItem=i.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return i.helper[0]},e.target=a.currentItem[0],a._mouseCapture(e,!0),a._mouseStart(e,!0,!0),a.offset.click.top=n.offset.click.top,a.offset.click.left=n.offset.click.left,a.offset.parent.left-=n.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=n.offset.parent.top-a.offset.parent.top,n._trigger("toSortable",e),n.dropped=a.element,t.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,a.fromOutside=n),a.currentItem&&(a._mouseDrag(e),i.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",e,a._uiHash(a)),a._mouseStop(e,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var r=t("body"),a=n.options;r.css("cursor")&&(a._cursor=r.css("cursor")),r.css("cursor",a.cursor)},stop:function(e,i,n){var r=n.options;r._cursor&&t("body").css("cursor",r._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var r=t(i.helper),a=n.options;r.css("opacity")&&(a._opacity=r.css("opacity")),r.css("opacity",a.opacity)},stop:function(e,i,n){var r=n.options;r._opacity&&t(i.helper).css("opacity",r._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var r=n.options,a=!1,o=n.scrollParentNotHidden[0],s=n.document[0];o!==s&&"HTML"!==o.tagName?(r.axis&&"x"===r.axis||(n.overflowOffset.top+o.offsetHeight-e.pageY<r.scrollSensitivity?o.scrollTop=a=o.scrollTop+r.scrollSpeed:e.pageY-n.overflowOffset.top<r.scrollSensitivity&&(o.scrollTop=a=o.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(n.overflowOffset.left+o.offsetWidth-e.pageX<r.scrollSensitivity?o.scrollLeft=a=o.scrollLeft+r.scrollSpeed:e.pageX-n.overflowOffset.left<r.scrollSensitivity&&(o.scrollLeft=a=o.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(e.pageY-t(s).scrollTop()<r.scrollSensitivity?a=t(s).scrollTop(t(s).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(s).scrollTop())<r.scrollSensitivity&&(a=t(s).scrollTop(t(s).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(e.pageX-t(s).scrollLeft()<r.scrollSensitivity?a=t(s).scrollLeft(t(s).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(s).scrollLeft())<r.scrollSensitivity&&(a=t(s).scrollLeft(t(s).scrollLeft()+r.scrollSpeed)))),a!==!1&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var r=n.options;n.snapElements=[],t(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each(function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,n){var r,a,o,s,l,u,h,c,d,p,f=n.options,g=f.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,y=i.offset.top,_=y+n.helperProportions.height;for(d=n.snapElements.length-1;d>=0;d--)l=n.snapElements[d].left-n.margins.left,u=l+n.snapElements[d].width,h=n.snapElements[d].top-n.margins.top,c=h+n.snapElements[d].height,v<l-g||m>u+g||_<h-g||y>c+g||!t.contains(n.snapElements[d].item.ownerDocument,n.snapElements[d].item)?(n.snapElements[d].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(r=Math.abs(h-_)<=g,a=Math.abs(c-y)<=g,o=Math.abs(l-v)<=g,s=Math.abs(u-m)<=g,r&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),a&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u}).left)),p=r||a||o||s,"outer"!==f.snapMode&&(r=Math.abs(h-y)<=g,a=Math.abs(c-_)<=g,o=Math.abs(l-m)<=g,s=Math.abs(u-v)<=g,r&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),a&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u-n.helperProportions.width}).left)),!n.snapElements[d].snapping&&(r||a||o||s||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=r||a||o||s||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var r,a=n.options,o=t.makeArray(t(a.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});o.length&&(r=parseInt(t(o[0]).css("zIndex"),10)||0,t(o).each(function(e){t(this).css("zIndex",r+e)}),this.css("zIndex",r+o.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var r=t(i.helper),a=n.options;r.css("zIndex")&&(a._zIndex=r.css("zIndex")),r.css("zIndex",a.zIndex)},stop:function(e,i,n){var r=n.options;r._zIndex&&t(i.helper).css("zIndex",r._zIndex)}});t.ui.draggable;t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",r=!1;return e[n]>0||(e[n]=1,r=e[n]>0,e[n]=0,r)},_create:function(){var e,i=this.options,n=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var e,i,n,r,a,o=this.options,s=this;if(this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i<n.length;i++)e=t.trim(n[i]),r="ui-resizable-"+e,a=t("<div>"),this._addClass(a,"ui-resizable-handle "+r),a.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(a);this._renderAxis=function(e){var i,n,r,a; e=e||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),r=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(r,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){s.resizing||(this.className&&(a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=a&&a[1]?a[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,n,r=!1;for(i in this.handles)n=t(this.handles[i])[0],(n===e.target||t.contains(n,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var i,n,r,a=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),a.containment&&(i+=t(a.containment).scrollLeft()||0,n+=t(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n,r=this.originalMousePosition,a=this.axis,o=e.pageX-r.left||0,s=e.pageY-r.top||0,l=this._change[a];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,o,s]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,r,a,o,s,l,u=this.options,h=this;return this._helper&&(i=this._proportionallyResizeElements,n=i.length&&/textarea/i.test(i[0].nodeName),r=n&&this._hasScroll(i[0],"left")?0:h.sizeDiff.height,a=n?0:h.sizeDiff.width,o={width:h.helper.width()-a,height:h.helper.height()-r},s=parseFloat(h.element.css("left"))+(h.position.left-h.originalPosition.left)||null,l=parseFloat(h.element.css("top"))+(h.position.top-h.originalPosition.top)||null,u.animate||this.element.css(t.extend(o,{top:l,left:s})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!u.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,r,a,o=this.options;a={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,n=a.minWidth/this.aspectRatio,i=a.maxHeight*this.aspectRatio,r=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),n>a.minHeight&&(a.minHeight=n),i<a.maxWidth&&(a.maxWidth=i),r<a.maxHeight&&(a.maxHeight=r)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,r=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,a=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,o=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,s=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(i),h=/nw|ne|n/.test(i);return a&&(t.width=e.minWidth),o&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),a&&u&&(t.left=s-e.minWidth),n&&u&&(t.left=s-e.maxWidth),o&&h&&(t.top=l-e.minHeight),r&&h&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],r=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(r[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,n=this.originalPosition;return{left:n.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize,r=this.originalPosition;return{top:r.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,r=i._proportionallyResizeElements,a=r.length&&/textarea/i.test(r[0].nodeName),o=a&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,s=a?0:i.sizeDiff.width,l={width:i.size.width-s,height:i.size.height-o},u=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,h&&u?{top:h,left:u}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};r&&r.length&&t(r[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,r,a,o,s,l=t(this).resizable("instance"),u=l.options,h=l.element,c=u.containment,d=c instanceof t?c.get(0):/parent/.test(c)?h.parent().get(0):c;d&&(l.containerElement=t(d),/document/.test(c)||c===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,n){i[t]=l._num(e.css("padding"+n))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=l.containerOffset,r=l.containerSize.height,a=l.containerSize.width,o=l._hasScroll(d,"left")?d.scrollWidth:a,s=l._hasScroll(d)?d.scrollHeight:r,l.parentData={element:d,left:n.left,top:n.top,width:o,height:s}))},resize:function(e){var i,n,r,a,o=t(this).resizable("instance"),s=o.options,l=o.containerOffset,u=o.position,h=o._aspectRatio||e.shiftKey,c={top:0,left:0},d=o.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(c=l),u.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-c.left),h&&(o.size.height=o.size.width/o.aspectRatio,p=!1),o.position.left=s.helper?l.left:0),u.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),h&&(o.size.width=o.size.height*o.aspectRatio,p=!1),o.position.top=o._helper?l.top:0),r=o.containerElement.get(0)===o.element.parent().get(0),a=/relative|absolute/.test(o.containerElement.css("position")),r&&a?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-c.left:o.offset.left-l.left)),n=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-c.top:o.offset.top-l.top)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,h&&(o.size.height=o.size.width/o.aspectRatio,p=!1)),n+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-n,h&&(o.size.width=o.size.height*o.aspectRatio,p=!1)),p||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,r=e.containerPosition,a=e.containerElement,o=t(e.helper),s=o.offset(),l=o.outerWidth()-e.sizeDiff.width,u=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(a.css("position"))&&t(this).css({left:s.left-r.left-n.left,width:l,height:u}),e._helper&&!i.animate&&/static/.test(a.css("position"))&&t(this).css({left:s.left-r.left-n.left,width:l,height:u})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var n=t(this).resizable("instance"),r=n.options,a=n.originalSize,o=n.originalPosition,s={height:n.size.height-a.height||0,width:n.size.width-a.width||0,top:n.position.top-o.top||0,left:n.position.left-o.left||0};t(r.alsoResize).each(function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),r={},a=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var i=(n[e]||0)+(s[e]||0);i&&i>=0&&(r[e]=i||null)}),e.css(r)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),t.uiBackCompat!==!1&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,r=i.size,a=i.originalSize,o=i.originalPosition,s=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,u=l[0]||1,h=l[1]||1,c=Math.round((r.width-a.width)/u)*u,d=Math.round((r.height-a.height)/h)*h,p=a.width+c,f=a.height+d,g=n.maxWidth&&n.maxWidth<p,m=n.maxHeight&&n.maxHeight<f,v=n.minWidth&&n.minWidth>p,y=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=u),y&&(f+=h),g&&(p-=u),m&&(f-=h),/^(se|s|e)$/.test(s)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(s)?(i.size.width=p,i.size.height=f,i.position.top=o.top-d):/^(sw)$/.test(s)?(i.size.width=p,i.size.height=f,i.position.left=o.left-c):((f-h<=0||p-u<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),f-h>0?(i.size.height=f,i.position.top=o.top-d):(f=h-e.height,i.size.height=f,i.position.top=o.top+a.height-f),p-u>0?(i.size.width=p,i.position.left=o.left-c):(p=u-e.width,i.size.width=p,i.position.left=o.left+a.width-p))}});t.ui.resizable;t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;i<0&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var n=!1,r=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),a=Math.max.apply(null,r);return a>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",a+1),n=!0),n&&!i&&this._trigger("focus",e),n},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function i(){var e=t.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),r=i.filter(":last");e.target!==r[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){r.trigger("focus")}),e.preventDefault()):(this._delay(function(){n.trigger("focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(t.each(i,function(i,n){var r,a;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),r=n.click,a={icon:n.icon,iconPosition:n.iconPosition,showLabel:n.showLabel,icons:n.icons,text:n.text},delete n.click,delete n.icon,delete n.iconPosition,delete n.showLabel,delete n.icons,"boolean"==typeof n.text&&delete n.text,t("<button></button>",n).button(a).appendTo(e.uiButtonSet).on("click",function(){r.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,r){i._addClass(t(this),"ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(r))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(r,a){var o=a.offset.left-i.document.scrollLeft(),s=a.offset.top-i.document.scrollTop();n.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(s>=0?"+":"")+s,of:i.window},i._removeClass(t(this),"ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",r,e(a))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,r=n.resizable,a=this.uiDialog.css("position"),o="string"==typeof r?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:o,start:function(n,r){i._addClass(t(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,e(r))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(r,a){var o=i.uiDialog.offset(),s=o.left-i.document.scrollLeft(),l=o.top-i.document.scrollTop();n.height=i.uiDialog.height(),n.width=i.uiDialog.width(),n.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(l>=0?"+":"")+l,of:i.window},i._removeClass(t(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",r,e(a))}}).css("position",a)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);i!==-1&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,n=!1,r={};t.each(e,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(r[t]=e)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(e,i){var n,r,a=this.uiDialog;"disabled"!==e&&(this._super(e,i),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&(n=a.is(":data(ui-draggable)"),n&&!i&&a.draggable("destroy"),!n&&i&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&(r=a.is(":data(ui-resizable)"),r&&!i&&a.resizable("destroy"),r&&"string"==typeof i&&a.resizable("option","handles",i),r||i===!1||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}});t.ui.dialog;t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var n=t.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,r=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&y(n,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e))return r=!0,!1}),!r&&(!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(n)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var y=t.ui.intersect=function(){function t(t,e,i){return t>=e&&t<e+i}return function(e,i,n,r){if(!i.offset)return!1;var a=(e.positionAbs||e.position.absolute).left+e.margins.left,o=(e.positionAbs||e.position.absolute).top+e.margins.top,s=a+e.helperProportions.width,l=o+e.helperProportions.height,u=i.offset.left,h=i.offset.top,c=u+i.proportions().width,d=h+i.proportions().height;switch(n){case"fit":return u<=a&&s<=c&&h<=o&&l<=d;case"intersect":return u<a+e.helperProportions.width/2&&s-e.helperProportions.width/2<c&&h<o+e.helperProportions.height/2&&l-e.helperProportions.height/2<d;case"pointer":return t(r.pageY,h,i.proportions().height)&&t(r.pageX,u,i.proportions().width);case"touch":return(o>=h&&o<=d||l>=h&&l<=d||o<h&&l>d)&&(a>=u&&a<=c||s>=u&&s<=c||a<u&&s>c);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var n,r,a=t.ui.ddmanager.droppables[e.options.scope]||[],o=i?i.type:null,s=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<a.length;n++)if(!(a[n].options.disabled||e&&!a[n].accept.call(a[n].element[0],e.currentItem||e.element))){for(r=0;r<s.length;r++)if(s[r]===a[n].element[0]){a[n].proportions().height=0;continue t}a[n].visible="none"!==a[n].element.css("display"),a[n].visible&&("mousedown"===o&&a[n]._activate.call(a[n],i),a[n].offset=a[n].element.offset(),a[n].proportions({width:a[n].element[0].offsetWidth,height:a[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&y(e,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})}, drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,r,a,o=y(e,this,this.options.tolerance,i),s=!o&&this.isover?"isout":o&&!this.isover?"isover":null;s&&(this.options.greedy&&(r=this.options.scope,a=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===r}),a.length&&(n=t(a[0]).droppable("instance"),n.greedyChild="isover"===s)),n&&"isover"===s&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,i),n&&"isout"===s&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},t.uiBackCompat!==!1&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});t.ui.droppable,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var i=t(this),n=i.offset(),r={left:n.left-e.elementPos.left,top:n.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:r.left,top:r.top,right:r.left+i.outerWidth(),bottom:r.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,r=t.data(this,"selectable-item");if(r)return n=!e.metaKey&&!e.ctrlKey||!r.$element.hasClass("ui-selected"),i._removeClass(r.$element,n?"ui-unselecting":"ui-selected")._addClass(r.$element,n?"ui-selecting":"ui-unselecting"),r.unselecting=!n,r.selecting=n,r.selected=n,n?i._trigger("selecting",e,{selecting:r.element}):i._trigger("unselecting",e,{unselecting:r.element}),!1}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,r=this.options,a=this.opos[0],o=this.opos[1],s=e.pageX,l=e.pageY;return a>s&&(i=s,s=a,a=i),o>l&&(i=l,l=o,o=i),this.helper.css({left:a,top:o,width:s-a,height:l-o}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),u=!1,h={};i&&i.element!==n.element[0]&&(h.left=i.left+n.elementPos.left,h.right=i.right+n.elementPos.left,h.top=i.top+n.elementPos.top,h.bottom=i.bottom+n.elementPos.top,"touch"===r.tolerance?u=!(h.left>s||h.right<a||h.top>l||h.bottom<o):"fit"===r.tolerance&&(u=h.left>a&&h.right<s&&h.top>o&&h.bottom<l),u?(i.selected&&(n._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(n._addClass(i.$element,"ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,n._addClass(i.$element,"ui-selected"),i.selected=!0):(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");i._removeClass(n.$element,"ui-selecting")._addClass(n.$element,"ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,i=this,n=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(n).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var n=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&n.index!==e.focusIndex&&(e._trigger("focus",t,{item:n}),e.isOpen||e._select(n,t)),e.focusIndex=n.index,e.button.attr("aria-activedescendant",e.menuItems.eq(n.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var i=t("<span>");return this._setText(i,e.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(e,i){var n=this,r="";t.each(i,function(i,a){var o;a.optgroup!==r&&(o=t("<li>",{text:a.optgroup}),n._addClass(o,"ui-selectmenu-optgroup","ui-menu-divider"+(a.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),o.appendTo(e),r=a.optgroup),n._renderItemData(e,a)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var n=t("<li>"),r=t("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(r,i.label),n.append(r).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var i,n,r=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),r+=":not(.ui-state-disabled)"),n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](r).eq(-1):i[t+"All"](r).eq(0),n.length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?(t=window.getSelection(),t.removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection(),t.rangeCount&&(this.range=t.getRangeAt(0))):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;return t===!1?void this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var i=this,n=[];e.each(function(e,r){n.push(i._parseOption(t(r),e))}),this.items=n},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,r=this.element.find(".ui-slider-handle"),a="<span tabindex='0'></span>",o=[];for(i=n.values&&n.values.length||1,r.length>i&&(r.slice(i).remove(),r=r.slice(0,i)),e=r.length;e<i;e++)o.push(a);this.handles=r.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,n,r,a,o,s,l,u,h=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-h.values(e));(r>i||r===i&&(e===h._lastChangedValue||h.values(e)===c.min))&&(r=i,a=t(this),o=e)}),s=this._start(e,o),s!==!1&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),l=a.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-l.left-a.width()/2,top:e.pageY-l.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,r,a;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/e,n>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),r=this._valueMax()-this._valueMin(),a=this._valueMin()+n*r,this._trimAlignValue(a)},_uiHash:function(t,e,i){var n={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==e?e:this.values(t),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var n,r,a=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(e?0:1),a=this.values(e),2===this.options.values.length&&this.options.range===!0&&(i=0===e?Math.min(r,i):Math.max(r,i)),o[e]=i),i!==a&&(n=this._trigger("slide",t,this._uiHash(e,i,o)),n!==!1&&(this._hasMultipleValues()?this.values(e,i):this.value(i)))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,r,a;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(n=this.options.values,r=arguments[0],a=0;a<n.length;a+=1)n[a]=this._trimAlignValue(r[a]),this._change(null,a);this._refreshValue()},_setOption:function(e,i){var n,r=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(r=this.options.values.length),this._super(e,i),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=r-1;n>=0;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step,n=Math.round((t-e)/i)*i;t=n+e,t>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return i===-1?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,n,r,a,o=this.options.range,s=this.options,l=this,u=!this._animateOff&&s.animate,h={};this._hasMultipleValues()?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[u?"animate":"css"](h,s.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},s.animate),1===n&&l.range[u?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:s.animate})):(0===n&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},s.animate),1===n&&l.range[u?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:s.animate}))),e=i}):(n=this.value(),r=this._valueMin(),a=this._valueMax(),i=a!==r?(n-r)/(a-r)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](h,s.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},s.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},s.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},s.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},s.animate))},_handleEvents:{keydown:function(e){var i,n,r,a,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),i=this._start(e,o),i===!1))return}switch(a=this.options.step,n=r=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+a);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-a)}this._slide(e,o,r)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,r=!1,a=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,a.widgetName+"-item")===a)return n=t(this),!1}),t.data(e.target,a.widgetName+"-item")===a&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(r=!0)}),!r))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var r,a,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",o.cursor),this.storedStylesheet=t("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(a)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,a,o=this.options,s=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-this.document.scrollTop()<o.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<o.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed)), e.pageX-this.document.scrollLeft()<o.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<o.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed))),s!==!1&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(n=this.items[i],r=n.item[0],a=this._intersectsWithPointer(n),a&&n.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===a?"next":"prev"]()[0]===r||t.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],r))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),a=this.options.axis,o={};a&&"x"!==a||(o.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(o.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,a=t.left,o=a+t.width,s=t.top,l=s+t.height,u=this.offset.click.top,h=this.offset.click.left,c="x"===this.options.axis||n+u>s&&n+u<l,d="y"===this.options.axis||e+h>a&&e+h<o,p=c&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:a<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<o&&s<n+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),a=n&&r;return!!a&&(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"===r&&i||"left"===r&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){s.push(this)}var n,r,a,o,s=[],l=[],u=this._connectWith();if(u&&e)for(n=u.length-1;n>=0;n--)for(a=t(u[n],this.document[0]),r=a.length-1;r>=0;r--)o=t.data(a[r],this.widgetFullName),o&&o!==this&&!o.options.disabled&&l.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,a,o,s,l,u,h=this.items,c=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(r=t(d[i],this.document[0]),n=r.length-1;n>=0;n--)a=t.data(r[n],this.widgetFullName),a&&a!==this&&!a.options.disabled&&(c.push([t.isFunction(a.options.items)?a.options.items.call(a.element[0],e,{item:this.currentItem}):t(a.options.items,a.element),a]),this.containers.push(a));for(i=c.length-1;i>=0;i--)for(o=c[i][1],s=c[i][0],n=0,u=s.length;n<u;n++)l=t(s[n]),l.data(this.widgetName+"-item",o),h.push({item:l,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,n,r,a;for(i=this.items.length-1;i>=0;i--)n=this.items[i],n.instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),a=r.offset(),n.left=a.left,n.top=a.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)a=this.containers[i].element.offset(),this.containers[i].containerCache.left=a.left,this.containers[i].containerCache.top=a.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),r=t("<"+n+">",e.document[0]);return e._addClass(r,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(r)):"tr"===n?e._createTrPlaceholder(e.currentItem,r):"img"===n&&r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,r){i&&!n.forcePlaceholderSize||(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each(function(){t("<td> </td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,n,r,a,o,s,l,u,h,c,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(r=1e4,a=null,h=d.floating||this._isFloating(this.currentItem),o=h?"left":"top",s=h?"width":"height",c=h?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[o],u=!1,e[c]-l>this.items[n][s]/2&&(u=!0),Math.abs(e[c]-l)<r&&(r=Math.abs(e[c]-l),a=this.items[n],this.direction=u?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=this.options,a=e.pageX,o=e.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),r.grid&&(i=this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1],o=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((a-this.originalPageX)/r.grid[0])*r.grid[0],a=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&r.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||r.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(r.push(function(t){this._trigger("remove",t,this._uiHash())}),r.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||r.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(r.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;n<r.length;n++)r[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}});t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],function(t,n){var r=i.attr(n);null!=r&&r.length&&(e[n]=r)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var e=this.element[0]===t.ui.safeActiveElement(this.document[0]);e||(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return this._start(e)!==!1&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_start:function(t){return!(!this.spinning&&this._trigger("start",t)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return i===-1?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i,n,r;return"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i))):("max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,e.up),r=this.buttons.last().find(".ui-icon"),this._removeClass(r,null,this.options.icons.down),this._addClass(r,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:s(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:s(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:s(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:s(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:s(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void s(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),t.uiBackCompat!==!1&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});t.ui.spinner;t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var i,n;i=e.href.replace(t,""),n=location.href.replace(t,"");try{i=decodeURIComponent(i)}catch(r){}try{n=decodeURIComponent(n)}catch(r){}return e.hash.length>1&&i===n}}(),_create:function(){var e=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each(function(i,r){if(t(r).attr("aria-controls")===n)return e=i,!1}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==e&&e!==-1||(e=!!this.tabs.length&&0)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),e===-1&&(e=!i&&0)),!i&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(i),r=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:r=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,r),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function n(){return e>r&&(e=0),e<0&&(e=r),e}for(var r=this.tabs.length-1;t.inArray(n(),this.options.disabled)!==-1;)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?void this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,i=this.tabs,n=this.anchors,r=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"), this.panels=t(),this.anchors.each(function(i,n){var r,a,o,s=t(n).uniqueId().attr("id"),l=t(n).closest("li"),u=l.attr("aria-controls");e._isLocal(n)?(r=n.hash,o=r.substring(1),a=e.element.find(e._sanitizeSelector(r))):(o=l.attr("aria-controls")||t({}).uniqueId()[0].id,r="#"+o,a=e.element.find(r),a.length||(a=e._createPanel(o),a.insertAfter(e.panels[i-1]||e.tablist)),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),u&&l.data("ui-tabs-aria-controls",u),l.attr({"aria-controls":o,"aria-labelledby":s}),a.attr("aria-labelledby",s)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(n.not(this.anchors)),this._off(r.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var i,n,r;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),r=0;n=this.tabs[r];r++)i=t(n),e===!0||t.inArray(r,e)!==-1?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,e===!0)},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),a=r.closest("li"),o=a[0]===n[0],s=o&&i.collapsible,l=s?t():this._getPanelForTab(a),u=n.length?this._getPanelForTab(n):t(),h={oldTab:n,oldPanel:u,newTab:s?t():a,newPanel:l};e.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||this._trigger("beforeActivate",e,h)===!1||(i.active=!s&&this.tabs.index(a),this.active=o?t():a,this.xhr&&this.xhr.abort(),u.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(a),e),this._toggle(e,h))},_toggle:function(e,i){function n(){a.running=!1,a._trigger("activate",e,i)}function r(){a._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),o.length&&a.options.show?a._show(o,a.options.show,n):(o.show(),n())}var a=this,o=i.newPanel,s=i.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){a._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),r()),s.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&s.length?i.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;i!==!1&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(i!==!0){if(void 0===e)i=!0;else{if(e=this._getIndex(e),t.inArray(e,i)!==-1)return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e,i){e=this._getIndex(e);var n=this,r=this.tabs.eq(e),a=r.find(".ui-tabs-anchor"),o=this._getPanelForTab(r),s={tab:r,panel:o},l=function(t,e){"abort"===e&&n.panels.stop(!1,!0),n._removeClass(r,"ui-tabs-loading"),o.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr};this._isLocal(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,i,s)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(r,"ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.done(function(t,e,r){setTimeout(function(){o.html(t),n._trigger("load",i,s),l(r,e)},1)}).fail(function(t,e){setTimeout(function(){l(t,e)},1)})))},_ajaxSettings:function(e,i,n){var r=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,a){return r._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:a},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),t.uiBackCompat!==!1&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});t.ui.tabs;t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),r=t.inArray(i,n);r!==-1&&n.splice(r,1),e.removeData("ui-tooltip-id"),n=t.trim(n.join(" ")),n?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var n=this;this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event("blur");r.target=r.currentTarget=n.element[0],e.close(r,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=t(this);if(e.is("[title]"))return e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._registerCloseHandlers(e,n),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,r=this,a=e?e.type:null;return"string"==typeof n||n.nodeType||n.jquery?this._open(e,t,n):(i=n.call(t[0],function(i){r._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=a),this._open(e,t,i))})}),void(i&&this._open(e,t,i)))},_open:function(e,i,n){function r(t){u.of=t,o.is(":hidden")||o.position(u)}var a,o,s,l,u=t.extend({},this.options.position);if(n){if(a=this._find(i))return void a.tooltip.find(".ui-tooltip-content").html(n);i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),a=this._tooltip(i),o=a.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),l=t("<div>").html(o.find(".ui-tooltip-content").html()),l.removeAttr("name").find("[name]").removeAttr("name"),l.removeAttr("id").find("[id]").removeAttr("id"),l.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:r}),r(e)):o.position(t.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(s=this.delayedShow=setInterval(function(){o.is(":visible")&&(r(u.of),clearInterval(s))},t.fx.interval)),this._trigger("open",e,{tooltip:o})}},_registerCloseHandlers:function(e,i){var n={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var n=t.Event(e);n.currentTarget=i[0],this.close(n,!0)}}};i[0]!==this.element[0]&&(n.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(n.mouseleave="close"),e&&"focusin"!==e.type||(n.focusout="close"),this._on(!0,i,n)},close:function(e){var i,n=this,r=t(e?e.currentTarget:this.element),a=this._find(r);return a?(i=a.tooltip,void(a.closing||(clearInterval(this.delayedShow),r.data("ui-tooltip-title")&&!r.attr("title")&&r.attr("title",r.data("ui-tooltip-title")),this._removeDescribedBy(r),a.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){n._removeTooltip(t(this))}),r.removeData("ui-tooltip-open"),this._off(r,"mouseleave focusout keyup"),r[0]!==this.element[0]&&this._off(r,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete n.parents[e]}),a.closing=!0,this._trigger("close",e,{tooltip:i}),a.hiding||(a.closing=!1)))):void r.removeData("ui-tooltip-open")},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),n=t("<div>").appendTo(i),r=i.uniqueId().attr("id");return this._addClass(n,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[r]={element:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event("blur"),a=n.element;r.target=r.currentTarget=a[0],e.close(r,!0),t("#"+i).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),t.uiBackCompat!==!1&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}});t.ui.tooltip})},function(t,e){!function(){"use strict";function t(t){return this.each(function(){var n=$(this),r=n.data(e);if(!r){var a=$.extend({},i,n.data(),"object"==typeof t&&t);n.data(e,r=new o(n,a))}"string"==typeof t&&r.toggle()})}var e="lte.controlsidebar",i={slide:!0},n={sidebar:".control-sidebar",data:'[data-toggle="control-sidebar"]',open:".control-sidebar-open",bg:".control-sidebar-bg",wrapper:".wrapper",content:".content-wrapper",boxed:".layout-boxed"},r={open:"control-sidebar-open",fixed:"fixed"},a={collapsed:"collapsed.controlsidebar",expanded:"expanded.controlsidebar"},o=function(t,e){this.element=t,this.options=e,this.hasBindedResize=!1,this.init()};o.prototype.init=function(){$(this.element).is(n.data)||$(this).on("click",this.toggle),this.fix(),$(window).on("resize",function(){this.fix()}.bind(this))},o.prototype.toggle=function(t){t&&t.preventDefault(),this.fix(),$(n.sidebar).is(n.open)||$("body").is(n.open)?this.collapse():this.expand()},o.prototype.expand=function(){this.options.slide?$(n.sidebar).addClass(r.open):$("body").addClass(r.open),$(this.element).trigger($.Event(a.expanded))},o.prototype.collapse=function(){$("body, "+n.sidebar).removeClass(r.open),$(this.element).trigger($.Event(a.collapsed))},o.prototype.fix=function(){$("body").is(n.boxed)&&this._fixForBoxed($(n.bg))},o.prototype._fixForBoxed=function(t){t.css({position:"absolute",height:$(n.wrapper).height()})};var s=$.fn.controlSidebar;$.fn.controlSidebar=t,$.fn.controlSidebar.Constructor=o,$.fn.controlSidebar.noConflict=function(){return $.fn.controlSidebar=s,this},$(document).on("click",n.data,function(e){e&&e.preventDefault(),t.call($(this),"toggle"),o.prototype.expand()})}()},function(t,e,i){i(411),function(){"use strict";var t=$(".range-slider");t.each(function(){var t=$(this),e=getDataOptions(t);t.ionRangeSlider(e)})}()},function(t,e,i){var n,r;!function(a){n=[i(13)],r=function(t){return a(t,document,window,navigator)}.apply(e,n),!(void 0!==r&&(t.exports=r))}(function(t,e,i,n,r){"use strict";var a=0,o=function(){var e,i=n.userAgent,r=/msie\s\d+/i;return i.search(r)>0&&(e=r.exec(i).toString(),e=e.split(" ")[1],e<9)&&(t("html").addClass("lt-ie9"),!0)}();Function.prototype.bind||(Function.prototype.bind=function(t){var e=this,i=[].slice;if("function"!=typeof e)throw new TypeError;var n=i.call(arguments,1),r=function(){if(this instanceof r){var a=function(){};a.prototype=e.prototype;var o=new a,s=e.apply(o,n.concat(i.call(arguments)));return Object(s)===s?s:o}return e.apply(t,n.concat(i.call(arguments)))};return r}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var i;if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return-1;var a=+e||0;if(Math.abs(a)===1/0&&(a=0),a>=r)return-1;for(i=Math.max(a>=0?a:r-Math.abs(a),0);i<r;){if(i in n&&n[i]===t)return i;i++}return-1});var s='<span class="irs"><span class="irs-line" tabindex="0"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span><span class="irs-bar"></span>',l='<span class="irs-bar-edge"></span><span class="irs-shadow shadow-single"></span><span class="irs-slider single"></span>',u='<span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>',h='<span class="irs-disable-mask"></span>',c=function(n,a,o){this.VERSION="2.2.0",this.input=n,this.plugin_count=o,this.current_plugin=0,this.calc_count=0,this.update_tm=0,this.old_from=0,this.old_to=0,this.old_min_interval=null,this.raf_id=null,this.dragging=!1,this.force_redraw=!1,this.no_diapason=!1,this.has_tab_index=!0,this.is_key=!1,this.is_update=!1,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,a=a||{},this.$cache={win:t(i),body:t(e.body),input:t(n),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var s,l,u,h=this.$cache.input,c=h.prop("value");s={type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==h[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",h[0]),l={type:h.data("type"),min:h.data("min"),max:h.data("max"),from:h.data("from"),to:h.data("to"),step:h.data("step"),min_interval:h.data("minInterval"),max_interval:h.data("maxInterval"),drag_interval:h.data("dragInterval"),values:h.data("values"),from_fixed:h.data("fromFixed"),from_min:h.data("fromMin"),from_max:h.data("fromMax"),from_shadow:h.data("fromShadow"),to_fixed:h.data("toFixed"),to_min:h.data("toMin"),to_max:h.data("toMax"),to_shadow:h.data("toShadow"),prettify_enabled:h.data("prettifyEnabled"),prettify_separator:h.data("prettifySeparator"),force_edges:h.data("forceEdges"),keyboard:h.data("keyboard"),grid:h.data("grid"),grid_margin:h.data("gridMargin"),grid_num:h.data("gridNum"),grid_snap:h.data("gridSnap"),hide_min_max:h.data("hideMinMax"),hide_from_to:h.data("hideFromTo"),prefix:h.data("prefix"),postfix:h.data("postfix"),max_postfix:h.data("maxPostfix"),decorate_both:h.data("decorateBoth"),values_separator:h.data("valuesSeparator"),input_values_separator:h.data("inputValuesSeparator"),disable:h.data("disable"),block:h.data("block"),extra_classes:h.data("extraClasses")},l.values=l.values&&l.values.split(",");for(u in l)l.hasOwnProperty(u)&&(l[u]!==r&&""!==l[u]||delete l[u]);c!==r&&""!==c&&(c=c.split(l.input_values_separator||a.input_values_separator||";"),c[0]&&c[0]==+c[0]&&(c[0]=+c[0]),c[1]&&c[1]==+c[1]&&(c[1]=+c[1]),a&&a.values&&a.values.length?(s.from=c[0]&&a.values.indexOf(c[0]),s.to=c[1]&&a.values.indexOf(c[1])):(s.from=c[0]&&+c[0],s.to=c[1]&&+c[1])),t.extend(s,a),t.extend(s,l),this.options=s,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};c.prototype={init:function(t){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),t?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var t='<span class="irs js-irs-'+this.plugin_count+" "+this.options.extra_classes+'"></span>';this.$cache.input.before(t),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html(s),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append(l),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append(u),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var t=this.options.min,e=this.options.max,i=this.options.from,n=this.options.to;i>t&&n===e?this.$cache.s_from.addClass("type_last"):n<e&&this.$cache.s_to.addClass("type_last")},changeLevel:function(t){switch(t){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake),this.$cache.s_single.addClass("state_hover");break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append(h),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),o&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),o&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(t){if(!this.target){var e,i;i="single"===this.options.type?this.$cache.single:this.$cache.from,e=i.offset().left,e+=i.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:e})}},pointerMove:function(t){if(this.dragging){var e=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;this.coords.x_pointer=e-this.coords.x_gap,this.calc()}},pointerUp:function(e){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,o&&t("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(t.contains(this.$cache.cont[0],e.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(e,i){i.preventDefault();var n=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;2!==i.button&&("both"===e&&this.setTempMinInterval(),e||(e=this.target||"from"),this.current_plugin=this.plugin_count,this.target=e,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=n-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(e),o&&t("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(t,e){e.preventDefault();var i=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;2!==e.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(i-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,e){if(!(this.current_plugin!==this.plugin_count||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)){switch(e.which){case 83:case 65:case 40:case 37:e.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:e.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var e=this.coords.p_pointer,i=(this.options.max-this.options.min)/100;i=this.options.step/i,t?e+=i:e-=i,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*e),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var t=this._prettify(this.options.min),e=this._prettify(this.options.max);this.result.min_pretty=t,this.result.max_pretty=e,this.$cache.min.html(this.decorate(t,this.options.min)),this.$cache.max.html(this.decorate(e,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var t=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=t},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(t){if(this.options&&(this.calc_count++,(10===this.calc_count||t)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var e=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,e=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,e=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(e)),this.target){case"base":var i=(this.options.max-this.options.min)/100,n=(this.result.from-this.options.min)/i,r=(this.result.to-this.options.min)/i;this.coords.p_single_real=this.toFixed(n),this.coords.p_from_real=this.toFixed(n),this.coords.p_to_real=this.toFixed(r),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(e),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(e),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max), this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(e),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;e=this.toFixed(e+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(e)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(e)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var a=this.convertToRealPercent(e),o=this.result.from_percent,s=this.result.to_percent,l=s-o,u=l/2,h=a-u,c=a+u;h<0&&(h=0,c=h+l),c>100&&(c=100,h=c-l),this.coords.p_from_real=this.calcWithStep(h),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(c),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){return this.coords.w_rs?(this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),void(this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100))):void(this.coords.p_pointer=0)},convertToRealPercent:function(t){var e=100-this.coords.p_handle;return t/e*100},convertToFakePercent:function(t){var e=100-this.coords.p_handle;return t/100*e},getHandleX:function(){var t=100-this.coords.p_handle,e=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return e<0?e=0:e>t&&(e=t),e},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(t){if("single"===this.options.type)return"single";var e=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2;return t>=e?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%"):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%"),this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_key=!1,this.is_click=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1))},drawLabels:function(){if(this.options){var t,e,i,n,r,a=this.options.values.length,o=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)a?(t=this.decorate(o[this.result.from]),this.$cache.single.html(t)):(n=this._prettify(this.result.from),t=this.decorate(n,this.result.from),this.$cache.single.html(t)),this.calcLabels(),this.labels.p_single_left<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{a?(this.options.decorate_both?(t=this.decorate(o[this.result.from]),t+=this.options.values_separator,t+=this.decorate(o[this.result.to])):t=this.decorate(o[this.result.from]+this.options.values_separator+o[this.result.to]),e=this.decorate(o[this.result.from]),i=this.decorate(o[this.result.to]),this.$cache.single.html(t),this.$cache.from.html(e),this.$cache.to.html(i)):(n=this._prettify(this.result.from),r=this._prettify(this.result.to),this.options.decorate_both?(t=this.decorate(n,this.result.from),t+=this.options.values_separator,t+=this.decorate(r,this.result.to)):t=this.decorate(n+this.options.values_separator+r,this.result.to),e=this.decorate(n,this.result.from),i=this.decorate(r,this.result.to),this.$cache.single.html(t),this.$cache.from.html(e),this.$cache.to.html(i)),this.calcLabels();var s=Math.min(this.labels.p_single_left,this.labels.p_from_left),l=this.labels.p_single_left+this.labels.p_single_fake,u=this.labels.p_to_left+this.labels.p_to_fake,h=Math.max(l,u);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",h=u):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",h=Math.max(l,u))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),s<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",h>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var t,e,i,n,r=this.options,a=this.$cache,o="number"==typeof r.from_min&&!isNaN(r.from_min),s="number"==typeof r.from_max&&!isNaN(r.from_max),l="number"==typeof r.to_min&&!isNaN(r.to_min),u="number"==typeof r.to_max&&!isNaN(r.to_max);"single"===r.type?r.from_shadow&&(o||s)?(t=this.convertToPercent(o?r.from_min:r.min),e=this.convertToPercent(s?r.from_max:r.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),e=this.toFixed(e-this.coords.p_handle/100*e),t+=this.coords.p_handle/2,a.shad_single[0].style.display="block",a.shad_single[0].style.left=t+"%",a.shad_single[0].style.width=e+"%"):a.shad_single[0].style.display="none":(r.from_shadow&&(o||s)?(t=this.convertToPercent(o?r.from_min:r.min),e=this.convertToPercent(s?r.from_max:r.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),e=this.toFixed(e-this.coords.p_handle/100*e),t+=this.coords.p_handle/2,a.shad_from[0].style.display="block",a.shad_from[0].style.left=t+"%",a.shad_from[0].style.width=e+"%"):a.shad_from[0].style.display="none",r.to_shadow&&(l||u)?(i=this.convertToPercent(l?r.to_min:r.min),n=this.convertToPercent(u?r.to_max:r.max)-i,i=this.toFixed(i-this.coords.p_handle/100*i),n=this.toFixed(n-this.coords.p_handle/100*n),i+=this.coords.p_handle/2,a.shad_to[0].style.display="block",a.shad_to[0].style.left=i+"%",a.shad_to[0].style.width=n+"%"):a.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(t,e){var i,n,r=this.options.max-this.options.min,a=r/100;return r?(i=e?t:t-this.options.min,n=i/a,this.toFixed(n)):(this.no_diapason=!0,0)},convertToValue:function(t){var e,i,n=this.options.min,r=this.options.max,a=n.toString().split(".")[1],o=r.toString().split(".")[1],s=0,l=0;if(0===t)return this.options.min;if(100===t)return this.options.max;a&&(e=a.length,s=e),o&&(i=o.length,s=i),e&&i&&(s=e>=i?e:i),n<0&&(l=Math.abs(n),n=+(n+l).toFixed(s),r=+(r+l).toFixed(s));var u,h=(r-n)/100*t+n,c=this.options.step.toString().split(".")[1];return c?h=+h.toFixed(c.length):(h/=this.options.step,h*=this.options.step,h=+h.toFixed(0)),l&&(h-=l),u=c?+h.toFixed(c.length):this.toFixed(h),u<this.options.min?u=this.options.min:u>this.options.max&&(u=this.options.max),u},calcWithStep:function(t){var e=Math.round(t/this.coords.p_step)*this.coords.p_step;return e>100&&(e=100),100===t&&(e=100),this.toFixed(e)},checkMinInterval:function(t,e,i){var n,r,a=this.options;return a.min_interval?(n=this.convertToValue(t),r=this.convertToValue(e),"from"===i?r-n<a.min_interval&&(n=r-a.min_interval):n-r<a.min_interval&&(n=r+a.min_interval),this.convertToPercent(n)):t},checkMaxInterval:function(t,e,i){var n,r,a=this.options;return a.max_interval?(n=this.convertToValue(t),r=this.convertToValue(e),"from"===i?r-n>a.max_interval&&(n=r-a.max_interval):n-r>a.max_interval&&(n=r+a.max_interval),this.convertToPercent(n)):t},checkDiapason:function(t,e,i){var n=this.convertToValue(t),r=this.options;return"number"!=typeof e&&(e=r.min),"number"!=typeof i&&(i=r.max),n<e&&(n=e),n>i&&(n=i),this.convertToPercent(n)},toFixed:function(t){return t=t.toFixed(20),+t},_prettify:function(t){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(t):this.prettify(t):t},prettify:function(t){var e=t.toString();return e.replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(t,e){return this.options.force_edges?(t<0?t=0:t>100-e&&(t=100-e),this.toFixed(t)):this.toFixed(t)},validate:function(){var t,e,i=this.options,n=this.result,r=i.values,a=r.length;if("string"==typeof i.min&&(i.min=+i.min),"string"==typeof i.max&&(i.max=+i.max),"string"==typeof i.from&&(i.from=+i.from),"string"==typeof i.to&&(i.to=+i.to),"string"==typeof i.step&&(i.step=+i.step),"string"==typeof i.from_min&&(i.from_min=+i.from_min),"string"==typeof i.from_max&&(i.from_max=+i.from_max),"string"==typeof i.to_min&&(i.to_min=+i.to_min),"string"==typeof i.to_max&&(i.to_max=+i.to_max),"string"==typeof i.grid_num&&(i.grid_num=+i.grid_num),i.max<i.min&&(i.max=i.min),a)for(i.p_values=[],i.min=0,i.max=a-1,i.step=1,i.grid_num=i.max,i.grid_snap=!0,e=0;e<a;e++)t=+r[e],isNaN(t)?t=r[e]:(r[e]=t,t=this._prettify(t)),i.p_values.push(t);("number"!=typeof i.from||isNaN(i.from))&&(i.from=i.min),("number"!=typeof i.to||isNaN(i.to))&&(i.to=i.max),"single"===i.type?(i.from<i.min&&(i.from=i.min),i.from>i.max&&(i.from=i.max)):(i.from<i.min&&(i.from=i.min),i.from>i.max&&(i.from=i.max),i.to<i.min&&(i.to=i.min),i.to>i.max&&(i.to=i.max),this.update_check.from&&(this.update_check.from!==i.from&&i.from>i.to&&(i.from=i.to),this.update_check.to!==i.to&&i.to<i.from&&(i.to=i.from)),i.from>i.to&&(i.from=i.to),i.to<i.from&&(i.to=i.from)),("number"!=typeof i.step||isNaN(i.step)||!i.step||i.step<0)&&(i.step=1),"number"==typeof i.from_min&&i.from<i.from_min&&(i.from=i.from_min),"number"==typeof i.from_max&&i.from>i.from_max&&(i.from=i.from_max),"number"==typeof i.to_min&&i.to<i.to_min&&(i.to=i.to_min),"number"==typeof i.to_max&&i.from>i.to_max&&(i.to=i.to_max),n&&(n.min!==i.min&&(n.min=i.min),n.max!==i.max&&(n.max=i.max),(n.from<n.min||n.from>n.max)&&(n.from=i.from),(n.to<n.min||n.to>n.max)&&(n.to=i.to)),("number"!=typeof i.min_interval||isNaN(i.min_interval)||!i.min_interval||i.min_interval<0)&&(i.min_interval=0),("number"!=typeof i.max_interval||isNaN(i.max_interval)||!i.max_interval||i.max_interval<0)&&(i.max_interval=0),i.min_interval&&i.min_interval>i.max-i.min&&(i.min_interval=i.max-i.min),i.max_interval&&i.max_interval>i.max-i.min&&(i.max_interval=i.max-i.min)},decorate:function(t,e){var i="",n=this.options;return n.prefix&&(i+=n.prefix),i+=t,n.max_postfix&&(n.values.length&&t===n.p_values[n.max]?(i+=n.max_postfix,n.postfix&&(i+=" ")):e===n.max&&(i+=n.max_postfix,n.postfix&&(i+=" "))),n.postfix&&(i+=n.postfix),i},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,e,i,n,r,a=this.options,o=a.max-a.min,s=a.grid_num,l=0,u=0,h=4,c=0,d="";for(this.calcGridMargin(),a.grid_snap?o>50?(s=50/a.step,l=this.toFixed(a.step/.5)):(s=o/a.step,l=this.toFixed(a.step/(o/100))):l=this.toFixed(100/s),s>4&&(h=3),s>7&&(h=2),s>14&&(h=1),s>28&&(h=0),t=0;t<s+1;t++){for(i=h,u=this.toFixed(l*t),u>100&&(u=100),this.coords.big[t]=u,n=(u-l*(t-1))/(i+1),e=1;e<=i&&0!==u;e++)c=this.toFixed(u-n*e),d+='<span class="irs-grid-pol small" style="left: '+c+'%"></span>';d+='<span class="irs-grid-pol" style="left: '+u+'%"></span>',r=this.convertToValue(u),r=a.values.length?a.p_values[r]:this._prettify(r),d+='<span class="irs-grid-text js-grid-text-'+t+'" style="left: '+u+'%">'+r+"</span>"}this.coords.big_num=Math.ceil(s+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(d),this.cacheGridLabels()}},cacheGridLabels:function(){var t,e,i=this.coords.big_num;for(e=0;e<i;e++)t=this.$cache.grid.find(".js-grid-text-"+e),this.$cache.grid_labels.push(t);this.calcGridLabels()},calcGridLabels:function(){var t,e,i=[],n=[],r=this.coords.big_num;for(t=0;t<r;t++)this.coords.big_w[t]=this.$cache.grid_labels[t].outerWidth(!1),this.coords.big_p[t]=this.toFixed(this.coords.big_w[t]/this.coords.w_rs*100),this.coords.big_x[t]=this.toFixed(this.coords.big_p[t]/2),i[t]=this.toFixed(this.coords.big[t]-this.coords.big_x[t]),n[t]=this.toFixed(i[t]+this.coords.big_p[t]);for(this.options.force_edges&&(i[0]<-this.coords.grid_gap&&(i[0]=-this.coords.grid_gap,n[0]=this.toFixed(i[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),n[r-1]>100+this.coords.grid_gap&&(n[r-1]=100+this.coords.grid_gap,i[r-1]=this.toFixed(n[r-1]-this.coords.big_p[r-1]),this.coords.big_x[r-1]=this.toFixed(this.coords.big_p[r-1]-this.coords.grid_gap))),this.calcGridCollision(2,i,n),this.calcGridCollision(4,i,n),t=0;t<r;t++)e=this.$cache.grid_labels[t][0],this.coords.big_x[t]!==Number.POSITIVE_INFINITY&&(e.style.marginLeft=-this.coords.big_x[t]+"%")},calcGridCollision:function(t,e,i){var n,r,a,o=this.coords.big_num;for(n=0;n<o&&(r=n+t/2,!(r>=o));n+=t)a=this.$cache.grid_labels[r][0],i[n]<=e[r]?a.style.visibility="visible":a.style.visibility="hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(e){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=t.extend(this.options,e),this.validate(),this.updateResult(e),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),t.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},t.fn.ionRangeSlider=function(e){return this.each(function(){t.data(this,"ionRangeSlider")||t.data(this,"ionRangeSlider",new c(this,e,(a++)))})},function(){for(var t=0,e=["ms","moz","webkit","o"],n=0;n<e.length&&!i.requestAnimationFrame;++n)i.requestAnimationFrame=i[e[n]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[e[n]+"CancelAnimationFrame"]||i[e[n]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(e,n){var r=(new Date).getTime(),a=Math.max(0,16-(r-t)),o=i.setTimeout(function(){e(r+a)},a);return t=r+a,o}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(t){clearTimeout(t)})}()})},function(t,e,i){i(413),function(){"use strict";$(".select2").select2()}()},function(t,e,i){var n,r,a;!function(o){r=[i(13)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var e;return function(){if(!e||!e.requirejs){e?i=e:e={};var t,i,n;!function(e){function r(t,e){return x.call(t,e)}function a(t,e){var i,n,r,a,o,s,l,u,h,c,d,p,f=e&&e.split("/"),g=_.map,m=g&&g["*"]||{};if(t){for(t=t.split("/"),o=t.length-1,_.nodeIdCompat&&M.test(t[o])&&(t[o]=t[o].replace(M,"")),"."===t[0].charAt(0)&&f&&(p=f.slice(0,f.length-1),t=p.concat(t)),h=0;h<t.length;h++)if(d=t[h],"."===d)t.splice(h,1),h-=1;else if(".."===d){if(0===h||1===h&&".."===t[2]||".."===t[h-1])continue;h>0&&(t.splice(h-1,2),h-=2)}t=t.join("/")}if((f||m)&&g){for(i=t.split("/"),h=i.length;h>0;h-=1){if(n=i.slice(0,h).join("/"),f)for(c=f.length;c>0;c-=1)if(r=g[f.slice(0,c).join("/")],r&&(r=r[n])){a=r,s=h;break}if(a)break;!l&&m&&m[n]&&(l=m[n],u=h)}!a&&l&&(a=l,s=u),a&&(i.splice(0,s,a),t=i.join("/"))}return t}function o(t,i){return function(){var n=w.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),f.apply(e,n.concat([t,i]))}}function s(t){return function(e){return a(e,t)}}function l(t){return function(e){v[t]=e}}function u(t){if(r(y,t)){var i=y[t];delete y[t],b[t]=!0,p.apply(e,i)}if(!r(v,t)&&!r(b,t))throw new Error("No "+t);return v[t]}function h(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function c(t){return t?h(t):[]}function d(t){return function(){return _&&_.config&&_.config[t]||{}}}var p,f,g,m,v={},y={},_={},b={},x=Object.prototype.hasOwnProperty,w=[].slice,M=/\.js$/;g=function(t,e){var i,n=h(t),r=n[0],o=e[1];return t=n[1],r&&(r=a(r,o),i=u(r)),r?t=i&&i.normalize?i.normalize(t,s(o)):a(t,o):(t=a(t,o),n=h(t),r=n[0],t=n[1],r&&(i=u(r))),{f:r?r+"!"+t:t,n:t,pr:r,p:i}},m={require:function(t){return o(t)},exports:function(t){var e=v[t];return"undefined"!=typeof e?e:v[t]={}},module:function(t){return{id:t,uri:"",exports:v[t],config:d(t)}}},p=function(t,i,n,a){var s,h,d,p,f,_,x,w=[],M=typeof n;if(a=a||t,_=c(a),"undefined"===M||"function"===M){for(i=!i.length&&n.length?["require","exports","module"]:i,f=0;f<i.length;f+=1)if(p=g(i[f],_),h=p.f,"require"===h)w[f]=m.require(t);else if("exports"===h)w[f]=m.exports(t),x=!0;else if("module"===h)s=w[f]=m.module(t);else if(r(v,h)||r(y,h)||r(b,h))w[f]=u(h);else{if(!p.p)throw new Error(t+" missing "+h);p.p.load(p.n,o(a,!0),l(h),{}),w[f]=v[h]}d=n?n.apply(v[t],w):void 0,t&&(s&&s.exports!==e&&s.exports!==v[t]?v[t]=s.exports:d===e&&x||(v[t]=d))}else t&&(v[t]=n)},t=i=f=function(t,i,n,r,a){if("string"==typeof t)return m[t]?m[t](i):u(g(t,c(i)).f);if(!t.splice){if(_=t,_.deps&&f(_.deps,_.callback),!i)return;i.splice?(t=i,i=n,n=null):t=e}return i=i||function(){},"function"==typeof n&&(n=r,r=a),r?p(e,t,i,n):setTimeout(function(){p(e,t,i,n)},4),f},f.config=function(t){return f(t)},t._defined=v,n=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),r(v,t)||r(y,t)||(y[t]=[t,e,i])},n.amd={jQuery:!0}}(),e.requirejs=t,e.require=i,e.define=n}}(),e.define("almond",function(){}),e.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(t){function e(t){var e=t.prototype,i=[];for(var n in e){var r=e[n];"function"==typeof r&&"constructor"!==n&&i.push(n)}return i}var i={};i.Extend=function(t,e){function i(){this.constructor=t}var n={}.hasOwnProperty;for(var r in e)n.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},i.Decorate=function(t,i){function n(){var e=Array.prototype.unshift,n=i.prototype.constructor.length,r=t.prototype.constructor;n>0&&(e.call(arguments,t.prototype.constructor),r=i.prototype.constructor),r.apply(this,arguments)}function r(){this.constructor=n}var a=e(i),o=e(t);i.displayName=t.displayName,n.prototype=new r;for(var s=0;s<o.length;s++){var l=o[s];n.prototype[l]=t.prototype[l]}for(var u=(function(t){var e=function(){};t in n.prototype&&(e=n.prototype[t]);var r=i.prototype[t];return function(){var t=Array.prototype.unshift;return t.call(arguments,e),r.apply(this,arguments)}}),h=0;h<a.length;h++){var c=a[h];n.prototype[c]=u(c)}return n};var n=function(){this.listeners={}};return n.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},n.prototype.trigger=function(t){var e=Array.prototype.slice,i=e.call(arguments,1);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),i[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(t,e){for(var i=0,n=t.length;i<n;i++)t[i].apply(this,e)},i.Observable=n,i.generateChars=function(t){for(var e="",i=0;i<t;i++){var n=Math.floor(36*Math.random());e+=n.toString(36)}return e},i.bind=function(t,e){return function(){t.apply(e,arguments)}},i._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var r=0;r<i.length;r++){var a=i[r];a=a.substring(0,1).toLowerCase()+a.substring(1),a in n||(n[a]={}),r==i.length-1&&(n[a]=t[e]),n=n[a]}delete t[e]}}return t},i.hasScroll=function(e,i){var n=t(i),r=i.style.overflowX,a=i.style.overflowY;return(r!==a||"hidden"!==a&&"visible"!==a)&&("scroll"===r||"scroll"===a||(n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth))},i.escapeMarkup=function(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},i.appendMany=function(e,i){if("1.7"===t.fn.jquery.substr(0,3)){var n=t();t.map(i,function(t){n=n.add(t)}),i=n}e.append(i)},i}),e.define("select2/results",["jquery","./utils"],function(t,e){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=t('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(i(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null==t.results||0===t.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i],r=this.option(n);e.push(r)}this.$results.append(e)},i.prototype.position=function(t,e){var i=e.find(".select2-results");i.append(t)},i.prototype.sort=function(t){var e=this.options.get("sorter");return e(t)},i.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var e=this;this.data.current(function(i){var n=t.map(i,function(t){return t.id.toString()}),r=e.$results.find(".select2-results__option[aria-selected]");r.each(function(){var e=t(this),i=t.data(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&t.inArray(r,n)>-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(t){this.hideLoading();var e=this.options.get("translations").get("searching"),i={disabled:!0,loading:!0,text:e(t)},n=this.option(i);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var i=document.createElement("li");i.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(i.id=e._resultId),e.title&&(i.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text, delete n["aria-selected"]);for(var r in n){var a=n[r];i.setAttribute(r,a)}if(e.children){var o=t(i),s=document.createElement("strong");s.className="select2-results__group";t(s);this.template(e,s);for(var l=[],u=0;u<e.children.length;u++){var h=e.children[u],c=this.option(h);l.push(c)}var d=t("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});d.append(l),o.append(s),o.append(d)}else this.template(e,i);return t.data(i,"data",e),i},i.prototype.bind=function(e,i){var n=this,r=e.id+"-results";this.$results.attr("id",r),e.on("results:all",function(t){n.clear(),n.append(t.data),e.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),e.on("results:append",function(t){n.append(t.data),e.isOpen()&&n.setClasses()}),e.on("query",function(t){n.hideMessages(),n.showLoading(t)}),e.on("select",function(){e.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),e.on("unselect",function(){e.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),e.on("open",function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()}),e.on("close",function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=n.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t=n.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?n.trigger("close",{}):n.trigger("select",{data:e})}}),e.on("results:previous",function(){var t=n.getHighlightedResults(),e=n.$results.find("[aria-selected]"),i=e.index(t);if(0!==i){var r=i-1;0===t.length&&(r=0);var a=e.eq(r);a.trigger("mouseenter");var o=n.$results.offset().top,s=a.offset().top,l=n.$results.scrollTop()+(s-o);0===r?n.$results.scrollTop(0):s-o<0&&n.$results.scrollTop(l)}}),e.on("results:next",function(){var t=n.getHighlightedResults(),e=n.$results.find("[aria-selected]"),i=e.index(t),r=i+1;if(!(r>=e.length)){var a=e.eq(r);a.trigger("mouseenter");var o=n.$results.offset().top+n.$results.outerHeight(!1),s=a.offset().top+a.outerHeight(!1),l=n.$results.scrollTop()+s-o;0===r?n.$results.scrollTop(0):s>o&&n.$results.scrollTop(l)}}),e.on("results:focus",function(t){t.element.addClass("select2-results__option--highlighted")}),e.on("results:message",function(t){n.displayMessage(t)}),t.fn.mousewheel&&this.$results.on("mousewheel",function(t){var e=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-e+t.deltaY,r=t.deltaY>0&&e-t.deltaY<=0,a=t.deltaY<0&&i<=n.$results.height();r?(n.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):a&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),t.preventDefault(),t.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var i=t(this),r=i.data("data");return"true"===i.attr("aria-selected")?void(n.options.get("multiple")?n.trigger("unselect",{originalEvent:e,data:r}):n.trigger("close",{})):void n.trigger("select",{originalEvent:e,data:r})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var i=t(this).data("data");n.getHighlightedResults().removeClass("select2-results__option--highlighted"),n.trigger("results:focus",{data:i,element:t(this)})})},i.prototype.getHighlightedResults=function(){var t=this.$results.find(".select2-results__option--highlighted");return t},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]"),i=e.index(t),n=this.$results.offset().top,r=t.offset().top,a=this.$results.scrollTop()+(r-n),o=r-n;a-=2*t.outerHeight(!1),i<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(a)}},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),a=n(e,i);null==a?i.style.display="none":"string"==typeof a?i.innerHTML=r(a):t(i).append(a)},i}),e.define("select2/keys",[],function(){var t={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return t}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e,e},n.prototype.bind=function(t,e){var n=this,r=(t.id+"-container",t.id+"-results");this.container=t,this.$selection.on("focus",function(t){n.trigger("focus",t)}),this.$selection.on("blur",function(t){n._handleBlur(t)}),this.$selection.on("keydown",function(t){n.trigger("keypress",t),t.which===i.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){n.update(t.data)}),t.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(t)}),t.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(t)}),t.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),t.on("disable",function(){n.$selection.attr("tabindex","-1")})},n.prototype._handleBlur=function(e){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||t.contains(i.$selection[0],document.activeElement)||i.trigger("blur",e)},1)},n.prototype._attachCloseHandler=function(e){t(document.body).on("mousedown.select2."+e.id,function(e){var i=t(e.target),n=i.closest(".select2"),r=t(".select2.select2-container--open");r.each(function(){var e=t(this);if(this!=n[0]){var i=e.data("element");i.select2("close")}})})},n.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(t,e){var i=e.find(".selection");i.append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},n}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,i,n){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},r.prototype.bind=function(t,e){var i=this;r.__super__.bind.apply(this,arguments);var n=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),t.on("focus",function(e){t.isOpen()||i.$selection.focus()}),t.on("selection:update",function(t){i.update(t.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(t,e){var i=this.options.get("templateSelection"),n=this.options.get("escapeMarkup");return n(i(t,e))},r.prototype.selectionContainer=function(){return t("<span></span>")},r.prototype.update=function(t){if(0===t.length)return void this.clear();var e=t[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(e,i);i.empty().append(n),i.prop("title",e.title||e.text)},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(t,e,i){function n(t,e){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(e,i){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){r.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.options.get("disabled")){var i=t(this),n=i.parent(),a=n.data("data");r.trigger("unselect",{originalEvent:e,data:a})}})},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(t,e){var i=this.options.get("templateSelection"),n=this.options.get("escapeMarkup");return n(i(t,e))},n.prototype.selectionContainer=function(){var e=t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>');return e},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=0;n<t.length;n++){var r=t[n],a=this.selectionContainer(),o=this.display(r,a);a.append(o),a.prop("title",r.title||r.text),a.data("data",r),e.push(a)}var s=this.$selection.find(".select2-selection__rendered");i.appendMany(s,e)}},n}),e.define("select2/selection/placeholder",["../utils"],function(t){function e(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();return i.html(this.display(e)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},e.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id,n=e.length>1;if(n||i)return t.call(this,e);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},e}),e.define("select2/selection/allowClear",["jquery","../keys"],function(t,e){function i(){}return i.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(t){n._handleClear(t)}),e.on("keypress",function(t){n._handleKeyboardClear(t,e)})},i.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();for(var n=i.data("data"),r=0;r<n.length;r++){var a={data:n[r]};if(this.trigger("unselect",a),a.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},i.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||i.which!=e.DELETE&&i.which!=e.BACKSPACE||this._handleClear(i)},i.prototype.update=function(e,i){if(e.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var n=t('<span class="select2-selection__clear">×</span>');n.data("data",i),this.$selection.find(".select2-selection__rendered").prepend(n)}},i}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(t,e,i){function n(t,e,i){t.call(this,e,i)}return n.prototype.render=function(e){var i=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=i,this.$search=i.find("input");var n=e.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),e.on("open",function(){r.$search.trigger("focus")}),e.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),e.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),e.on("disable",function(){r.$search.prop("disabled",!0)}),e.on("focus",function(t){r.$search.trigger("focus")}),e.on("results:focus",function(t){r.$search.attr("aria-activedescendant",t.id)}),this.$selection.on("focusin",".select2-search--inline",function(t){r.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){r._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){t.stopPropagation(),r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented();var e=t.which;if(e===i.BACKSPACE&&""===r.$search.val()){var n=r.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var a=n.data("data");r.searchRemoveChoice(a),t.preventDefault()}}});var a=document.documentMode,o=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(t){return o?void r.$selection.off("input.search input.searchcheck"):void r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(t){if(o&&"input"===t.type)return void r.$selection.off("input.search input.searchcheck");var e=t.which;e!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&r.handleSearch(t)})},n.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},n.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.focus()},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";if(""!==this.$search.attr("placeholder"))t=this.$selection.find(".select2-selection__rendered").innerWidth();else{var e=this.$search.val().length+1;t=.75*e+"em"}this.$search.css("width",t)},n}),e.define("select2/selection/eventRelay",["jquery"],function(t){function e(){}return e.prototype.bind=function(e,i,n){var r=this,a=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];e.call(this,i,n),i.on("*",function(e,i){if(t.inArray(e,a)!==-1){i=i||{};var n=t.Event("select2:"+e,{params:i});r.$element.trigger(n),t.inArray(e,o)!==-1&&(i.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,e){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(t){if(!(t in i._cache)){var n=e(t);i._cache[t]=n}return new i(i._cache[t])},i}),e.define("select2/diacritics",[],function(){var t={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return t}),e.define("select2/data/base",["../utils"],function(t){function e(t,i){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,i){var n=e.id+"-result-";return n+=t.generateChars(4),n+=null!=i.id?"-"+i.id.toString():"-"+t.generateChars(4)},e}),e.define("select2/data/select",["./base","../utils","jquery"],function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,t),n.prototype.current=function(t){var e=[],n=this;this.$element.find(":selected").each(function(){var t=i(this),r=n.item(t);e.push(r)}),t(e)},n.prototype.select=function(t){var e=this;if(t.selected=!0,i(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(n){var r=[];t=[t],t.push.apply(t,n);for(var a=0;a<t.length;a++){var o=t[a].id;i.inArray(o,r)===-1&&r.push(o)}e.$element.val(r),e.$element.trigger("change")});else{var n=t.id;this.$element.val(n),this.$element.trigger("change")}},n.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple"))return t.selected=!1,i(t.element).is("option")?(t.element.selected=!1,void this.$element.trigger("change")):void this.current(function(n){for(var r=[],a=0;a<n.length;a++){var o=n[a].id;o!==t.id&&i.inArray(o,r)===-1&&r.push(o)}e.$element.val(r),e.$element.trigger("change")})},n.prototype.bind=function(t,e){var i=this;this.container=t,t.on("select",function(t){i.select(t.data)}),t.on("unselect",function(t){i.unselect(t.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},n.prototype.query=function(t,e){var n=[],r=this,a=this.$element.children();a.each(function(){var e=i(this);if(e.is("option")||e.is("optgroup")){var a=r.item(e),o=r.matches(t,a);null!==o&&n.push(o)}}),e({results:n})},n.prototype.addOptions=function(t){e.appendMany(this.$element,t)},n.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup"),e.label=t.text):(e=document.createElement("option"),void 0!==e.textContent?e.textContent=t.text:e.innerText=t.text),void 0!==t.id&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var n=i(e),r=this._normalizeItem(t);return r.element=e,i.data(e,"data",r),n},n.prototype.item=function(t){var e={};if(e=i.data(t[0],"data"),null!=e)return e;if(t.is("option"))e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){e={text:t.prop("label"),children:[],title:t.prop("title")};for(var n=t.children("option"),r=[],a=0;a<n.length;a++){var o=i(n[a]),s=this.item(o);r.push(s)}e.children=r}return e=this._normalizeItem(e),e.element=t[0],i.data(t[0],"data",e),e},n.prototype._normalizeItem=function(t){i.isPlainObject(t)||(t={id:t,text:t}),t=i.extend({},{text:""},t);var e={selected:!1,disabled:!1};return null!=t.id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),i.extend({},e,t)},n.prototype.matches=function(t,e){var i=this.options.get("matcher");return i(t,e)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(t,e,i){function n(t,e){var i=e.get("data")||[];n.__super__.constructor.call(this,t,e),this.addOptions(this.convertToOptions(i))}return e.Extend(n,t),n.prototype.select=function(t){var e=this.$element.find("option").filter(function(e,i){return i.value==t.id.toString()});0===e.length&&(e=this.option(t),this.addOptions(e)),n.__super__.select.call(this,t)},n.prototype.convertToOptions=function(t){function n(t){return function(){return i(this).val()==t.id}}for(var r=this,a=this.$element.find("option"),o=a.map(function(){return r.item(i(this)).id}).get(),s=[],l=0;l<t.length;l++){var u=this._normalizeItem(t[l]);if(i.inArray(u.id,o)>=0){var h=a.filter(n(u)),c=this.item(h),d=i.extend(!0,{},u,c),p=this.option(d);h.replaceWith(p)}else{var f=this.option(u);if(u.children){var g=this.convertToOptions(u.children);e.appendMany(f,g)}s.push(f)}}return s},n}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(t,e,i){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return i.extend({},t,{q:t.term})},transport:function(t,e,n){var r=i.ajax(t);return r.then(e),r.fail(n),r}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){function n(){var n=a.transport(a,function(n){var a=r.processResults(n,t);r.options.get("debug")&&window.console&&console.error&&(a&&a.results&&i.isArray(a.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(a)},function(){n.status&&"0"===n.status||r.trigger("results:message",{message:"errorLoading"})});r._request=n}var r=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var a=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof a.url&&(a.url=a.url.call(this.$element,t)),"function"==typeof a.data&&(a.data=a.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(n,this.ajaxOptions.delay)):n()},n}),e.define("select2/data/tags",["jquery"],function(t){function e(e,i,n){var r=n.get("tags"),a=n.get("createTag");void 0!==a&&(this.createTag=a);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,i,n),t.isArray(r))for(var s=0;s<r.length;s++){var l=r[s],u=this._normalizeItem(l),h=this.option(u);this.$element.append(h)}}return e.prototype.query=function(t,e,i){function n(t,a){for(var o=t.results,s=0;s<o.length;s++){var l=o[s],u=null!=l.children&&!n({results:l.children},!0),h=(l.text||"").toUpperCase(),c=(e.term||"").toUpperCase(),d=h===c;if(d||u)return!a&&(t.data=o,void i(t))}if(a)return!0;var p=r.createTag(e);if(null!=p){var f=r.option(p);f.attr("data-select2-tag",!0),r.addOptions([f]),r.insertTag(o,p)}t.results=o,i(t)}var r=this;return this._removeOldTags(),null==e.term||null!=e.page?void t.call(this,e,i):void t.call(this,e,n)},e.prototype.createTag=function(e,i){var n=t.trim(i.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(t,e,i){e.unshift(i)},e.prototype._removeOldTags=function(e){var i=(this._lastTag,this.$element.find("option[data-select2-tag]"));i.each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(t){function e(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return e.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,i,n){function r(e){var i=o._normalizeItem(e),n=o.$element.find("option").filter(function(){return t(this).val()===i.id});if(!n.length){var r=o.option(i);r.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([r])}a(i)}function a(t){o.trigger("select",{data:t})}var o=this;i.term=i.term||"";var s=this.tokenizer(i,this.options,r);s.term!==i.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.focus()),i.term=s.term),e.call(this,i,n)},e.prototype.tokenizer=function(e,i,n,r){for(var a=n.get("tokenSeparators")||[],o=i.term,s=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};s<o.length;){var u=o[s];if(t.inArray(u,a)!==-1){var h=o.substr(0,s),c=t.extend({},i,{term:h}),d=l(c);null!=d?(r(d),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){return e.term=e.term||"",e.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):void t.call(this,e,i)},t}),e.define("select2/data/maximumInputLength",[],function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){return e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):void t.call(this,e,i)},t}),e.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){var n=this;this.current(function(r){var a=null!=r?r.length:0;return n.maximumSelectionLength>0&&a>=n.maximumSelectionLength?void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):void t.call(n,e,i)})},t}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e, e},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),e.define("select2/dropdown/search",["jquery","../utils"],function(t,e){function i(){}return i.prototype.render=function(e){var i=e.call(this),n=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},i.prototype.bind=function(e,i,n){var r=this;e.call(this,i,n),this.$search.on("keydown",function(t){r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(e){t(this).off("keyup")}),this.$search.on("keyup input",function(t){r.handleSearch(t)}),i.on("open",function(){r.$search.attr("tabindex",0),r.$search.focus(),window.setTimeout(function(){r.$search.focus()},0)}),i.on("close",function(){r.$search.attr("tabindex",-1),r.$search.val("")}),i.on("focus",function(){i.isOpen()||r.$search.focus()}),i.on("results:all",function(t){if(null==t.query.term||""===t.query.term){var e=r.showSearch(t);e?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide")}})},i.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.showSearch=function(t,e){return!0},i}),e.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;n>=0;n--){var r=e[n];this.placeholder.id===r.id&&i.splice(n,1)}return i},t}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(t){function e(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,i,n){var r=this;e.call(this,i,n),i.on("query",function(t){r.lastParams=t,r.loading=!0}),i.on("query:append",function(t){r.lastParams=t,r.loading=!0}),this.$results.on("scroll",function(){var e=t.contains(document.documentElement,r.$loadingMore[0]);if(!r.loading&&e){var i=r.$results.offset().top+r.$results.outerHeight(!1),n=r.$loadingMore.offset().top+r.$loadingMore.outerHeight(!1);i+50>=n&&r.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return e.html(i(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(t,e){function i(e,i,n){this.$dropdownParent=n.get("dropdownParent")||t(document.body),e.call(this,i,n)}return i.prototype.bind=function(t,e,i){var n=this,r=!1;t.call(this,e,i),e.on("open",function(){n._showDropdown(),n._attachPositioningHandler(e),r||(r=!0,e.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}))}),e.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},i.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(e){var i=t("<span></span>"),n=e.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,n){var r=this,a="scroll.select2."+n.id,o="resize.select2."+n.id,s="orientationchange.select2."+n.id,l=this.$container.parents().filter(e.hasScroll);l.each(function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})}),l.on(a,function(e){var i=t(this).data("select2-scroll-position");t(this).scrollTop(i.y)}),t(window).on(a+" "+o+" "+s,function(t){r._positionDropdown(),r._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,n){var r="scroll.select2."+n.id,a="resize.select2."+n.id,o="orientationchange.select2."+n.id,s=this.$container.parents().filter(e.hasScroll);s.off(r),t(window).off(r+" "+a+" "+o)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,a=this.$container.offset();a.bottom=a.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=a.top,o.bottom=a.top+o.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},u=l.top<a.top-s.height,h=l.bottom>a.bottom+s.height,c={left:a.left,top:o.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var p=d.offset();c.top-=p.top,c.left-=p.left,i||n||(r="below"),h||!u||i?!u&&h&&i&&(r="below"):r="above",("above"==r||i&&"below"!==r)&&(c.top=o.top-p.top-s.height),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(c)},i.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},i.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(e){for(var i=0,n=0;n<e.length;n++){var r=e[n];r.children?i+=t(r.children):i++}return i}function e(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return e.prototype.showSearch=function(e,i){return!(t(i.data.results)<this.minimumResultsForSearch)&&e.call(this,i)},e}),e.define("select2/dropdown/selectOnClose",[],function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",function(t){n._handleSelectOnClose(t)})},t.prototype._handleSelectOnClose=function(t,e){if(e&&null!=e.originalSelect2Event){var i=e.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var n=this.getHighlightedResults();if(!(n.length<1)){var r=n.data("data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},t}),e.define("select2/dropdown/closeOnSelect",[],function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",function(t){n._selectTriggered(t)}),e.on("unselect",function(t){n._selectTriggered(t)})},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&i.ctrlKey||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,i="Please delete "+e+" character";return 1!=e&&(i+="s"),i},inputTooShort:function(t){var e=t.minimum-t.input.length,i="Please enter "+e+" or more characters";return i},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(t,e,i,n,r,a,o,s,l,u,h,c,d,p,f,g,m,v,y,_,b,x,w,M,S,k,D,T,L){function C(){this.reset()}C.prototype.apply=function(c){if(c=t.extend(!0,{},this.defaults,c),null==c.dataAdapter){if(null!=c.ajax?c.dataAdapter=f:null!=c.data?c.dataAdapter=p:c.dataAdapter=d,c.minimumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,v)),c.maximumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,y)),c.maximumSelectionLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,_)),c.tags&&(c.dataAdapter=u.Decorate(c.dataAdapter,g)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=u.Decorate(c.dataAdapter,m)),null!=c.query){var L=e(c.amdBase+"compat/query");c.dataAdapter=u.Decorate(c.dataAdapter,L)}if(null!=c.initSelection){var C=e(c.amdBase+"compat/initSelection");c.dataAdapter=u.Decorate(c.dataAdapter,C)}}if(null==c.resultsAdapter&&(c.resultsAdapter=i,null!=c.ajax&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,M)),null!=c.placeholder&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,w)),c.selectOnClose&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,D))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=b;else{var I=u.Decorate(b,x);c.dropdownAdapter=I}if(0!==c.minimumResultsForSearch&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,k)),c.closeOnSelect&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,T)),null!=c.dropdownCssClass||null!=c.dropdownCss||null!=c.adaptDropdownCssClass){var A=e(c.amdBase+"compat/dropdownCss");c.dropdownAdapter=u.Decorate(c.dropdownAdapter,A)}c.dropdownAdapter=u.Decorate(c.dropdownAdapter,S)}if(null==c.selectionAdapter){if(c.multiple?c.selectionAdapter=r:c.selectionAdapter=n,null!=c.placeholder&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,a)),c.allowClear&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,o)),c.multiple&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,s)),null!=c.containerCssClass||null!=c.containerCss||null!=c.adaptContainerCssClass){var P=e(c.amdBase+"compat/containerCss");c.selectionAdapter=u.Decorate(c.selectionAdapter,P)}c.selectionAdapter=u.Decorate(c.selectionAdapter,l)}if("string"==typeof c.language)if(c.language.indexOf("-")>0){var E=c.language.split("-"),O=E[0];c.language=[c.language,O]}else c.language=[c.language];if(t.isArray(c.language)){var R=new h;c.language.push("en");for(var H=c.language,z=0;z<H.length;z++){var Y=H[z],N={};try{N=h.loadPath(Y)}catch(F){try{Y=this.defaults.amdLanguageBase+Y,N=h.loadPath(Y)}catch(W){c.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+Y+'" could not be automatically loaded. A fallback will be used instead.');continue}}R.extend(N)}c.translations=R}else{var B=h.loadPath(this.defaults.amdLanguageBase+"en"),j=new h(c.language);j.extend(B),c.translations=j}return c},C.prototype.reset=function(){function e(t){function e(t){return c[t]||t}return t.replace(/[^\u0000-\u007E]/g,e)}function i(n,r){if(""===t.trim(n.term))return r;if(r.children&&r.children.length>0){for(var a=t.extend(!0,{},r),o=r.children.length-1;o>=0;o--){var s=r.children[o],l=i(n,s);null==l&&a.children.splice(o,1)}return a.children.length>0?a:i(n,a)}var u=e(r.text).toUpperCase(),h=e(n.term).toUpperCase();return u.indexOf(h)>-1?r:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:L,matcher:i,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},C.prototype.set=function(e,i){var n=t.camelCase(e),r={};r[n]=i;var a=u._convertData(r);t.extend(this.defaults,a)};var I=new C;return I}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(t,e,i,n){function r(e,r){if(this.options=e,null!=r&&this.fromElement(r),this.options=i.apply(this.options),r&&r.is("input")){var a=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,a)}}return r.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),t.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0)),t.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));var r={};r=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset?e.extend(!0,{},t[0].dataset,t.data()):t.data();var a=e.extend(!0,{},r);a=n._convertData(a);for(var o in a)e.inArray(o,i)>-1||(e.isPlainObject(this.options[o])?e.extend(this.options[o],a[o]):this.options[o]=a[o]);return this},r.prototype.get=function(t){return this.options[t]},r.prototype.set=function(t,e){this.options[t]=e},r}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,e,i,n){var r=function(t,i){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),i=i||{},this.options=new e(i,t),r.__super__.constructor.call(this);var n=t.attr("tabindex")||0;t.data("old-tabindex",n),t.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(t,this.options);var o=this.render();this._placeContainer(o);var s=this.options.get("selectionAdapter");this.selection=new s(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var l=this.options.get("dropdownAdapter");this.dropdown=new l(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var u=this.options.get("resultsAdapter");this.results=new u(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var h=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(t){h.trigger("selection:update",{data:t})}),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return i.Extend(r,i.Observable),r.prototype._generateId=function(t){var e="";return e=null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+i.generateChars(2):i.generateChars(4),e=e.replace(/(:|\.|\[|\]|,)/g,""),e="select2-"+e},r.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},r.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e){var r=t.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==e){var a=t.attr("style");if("string"!=typeof a)return null;for(var o=a.split(";"),s=0,l=o.length;s<l;s+=1){var u=o[s].replace(/\s/g,""),h=u.match(i);if(null!==h&&h.length>=1)return h[1]}return null}return e},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n(function(i){t.each(i,e._syncA),t.each(i,e._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},r.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",function(e,i){t.trigger(e,i)})},r.prototype._registerSelectionEvents=function(){var e=this,i=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(n,r){t.inArray(n,i)===-1&&e.trigger(n,r)})},r.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",function(e,i){t.trigger(e,i)})},r.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",function(e,i){t.trigger(e,i)})},r.prototype._registerEvents=function(){var t=this;this.on("open",function(){t.$container.addClass("select2-container--open")}),this.on("close",function(){t.$container.removeClass("select2-container--open")}),this.on("enable",function(){t.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){t.$container.addClass("select2-container--disabled")}),this.on("blur",function(){t.$container.removeClass("select2-container--focus")}),this.on("query",function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,function(i){t.trigger("results:all",{data:i,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(i){t.trigger("results:append",{data:i,query:e})})}),this.on("keypress",function(e){var i=e.which;t.isOpen()?i===n.ESC||i===n.TAB||i===n.UP&&e.altKey?(t.close(),e.preventDefault()):i===n.ENTER?(t.trigger("results:select",{}),e.preventDefault()):i===n.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):i===n.UP?(t.trigger("results:previous",{}),e.preventDefault()):i===n.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&e.altKey)&&(t.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._syncSubtree=function(t,e){var i=!1,n=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(e)if(e.addedNodes&&e.addedNodes.length>0)for(var r=0;r<e.addedNodes.length;r++){var a=e.addedNodes[r];a.selected&&(i=!0)}else e.removedNodes&&e.removedNodes.length>0&&(i=!0);else i=!0;i&&this.dataAdapter.current(function(t){n.trigger("selection:update",{data:t})})}},r.prototype.trigger=function(t,e){var i=r.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in n){var a=n[t],o={prevented:!1,name:t,args:e};if(i.call(this,a,o),o.prevented)return void(e.prevented=!0)}i.call(this,t,e)},r.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.trigger("query",{})},r.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var i=e[0];t.isArray(i)&&(i=t.map(i,function(t){return t.toString()})),this.$element.val(i).trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},r}),e.define("jquery-mousewheel",["jquery"],function(t){return t}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(t,e,i,n){if(null==t.fn.select2){var r=["open","close","destroy"];t.fn.select2=function(e){if(e=e||{},"object"==typeof e)return this.each(function(){var n=t.extend(!0,{},e);new i(t(this),n)}),this;if("string"==typeof e){var n,a=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=t(this).data("select2");null==i&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=i[e].apply(i,a)}),t.inArray(e,r)>-1?this:n}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=n),i}),{define:e.define,require:e.require}}(),i=e.require("jquery.select2");return t.fn.select2.amd=e,i})},function(t,e,i){i(415),function(){"use strict";var t=$(".date-time-picker");t.each(function(){var t=$(this),e=getDataOptions(t);t.datetimepicker(e)})}()},function(t,e,i){var n,r,a,n,r,a,o;!function(){"use strict";var t,e,i,n,r,a,s;a=864e5,s=3600,t=function(t,e){return"string"==typeof t&&"string"==typeof e&&t.toLowerCase()===e.toLowerCase()},e=function(t,i,n){var r=n||"0",a=t.toString();return a.length<i?e(r+a,i):a},i=function(t){var e,n;for(t=t||{},e=1;e<arguments.length;e++)if(n=arguments[e])for(var r in n)n.hasOwnProperty(r)&&("object"==typeof n[r]?i(t[r],n[r]):t[r]=n[r]);return t},n=function(t,e){for(var i=0;i<e.length;i++)if(e[i].toLowerCase()===t.toLowerCase())return i;return-1},r={dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(t){var e=t%10,i={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(t%100/10)&&i[e]?i[e]:"th"}},separators:/[ \-+\/\.T:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},(o=function(t){var e=this,n=i(r,t);e.dateSettings=n.dateSettings,e.separators=n.separators,e.validParts=n.validParts,e.intParts=n.intParts,e.tzParts=n.tzParts,e.tzClip=n.tzClip}).prototype={constructor:o,getMonth:function(t){var e,i=this;return 0===(e=n(t,i.dateSettings.monthsShort)+1)&&(e=n(t,i.dateSettings.months)+1),e},parseDate:function(e,i){var n,r,a,o,s,l,u,h,c,d,p=this,f=!1,g=!1,m=p.dateSettings,v={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!e)return null;if(e instanceof Date)return e;if("U"===i)return(a=parseInt(e))?new Date(1e3*a):e;switch(typeof e){case"number":return new Date(e);case"string":break;default:return null}if(!(n=i.match(p.validParts))||0===n.length)throw new Error("Invalid date format definition.");for(r=e.replace(p.separators,"\0").split("\0"),a=0;a<r.length;a++)switch(o=r[a],s=parseInt(o),n[a]){case"y":case"Y":if(!s)return null;c=o.length,v.year=2===c?parseInt((70>s?"20":"19")+o):s,f=!0;break;case"m":case"n":case"M":case"F":if(isNaN(s)){if(!((l=p.getMonth(o))>0))return null;v.month=l}else{if(!(s>=1&&12>=s))return null;v.month=s}f=!0;break;case"d":case"j":if(!(s>=1&&31>=s))return null;v.day=s,f=!0;break;case"g":case"h":if(u=n.indexOf("a")>-1?n.indexOf("a"):n.indexOf("A")>-1?n.indexOf("A"):-1,d=r[u],u>-1)h=t(d,m.meridiem[0])?0:t(d,m.meridiem[1])?12:-1,s>=1&&12>=s&&h>-1?v.hour=s+h-1:s>=0&&23>=s&&(v.hour=s);else{if(!(s>=0&&23>=s))return null;v.hour=s}g=!0;break;case"G":case"H":if(!(s>=0&&23>=s))return null;v.hour=s,g=!0;break;case"i":if(!(s>=0&&59>=s))return null;v.min=s,g=!0;break;case"s":if(!(s>=0&&59>=s))return null;v.sec=s,g=!0}if(!0===f&&v.year&&v.month&&v.day)v.date=new Date(v.year,v.month-1,v.day,v.hour,v.min,v.sec,0);else{if(!0!==g)return null;v.date=new Date(0,0,0,v.hour,v.min,v.sec,0)}return v.date},guessDate:function(t,e){if("string"!=typeof t)return t;var i,n,r,a,o,s,l=this,u=t.replace(l.separators,"\0").split("\0"),h=/^[djmn]/g,c=e.match(l.validParts),d=new Date,p=0;if(!h.test(c[0]))return t;for(r=0;r<u.length;r++){if(p=2,o=u[r],s=parseInt(o.substr(0,2)),isNaN(s))return null;switch(r){case 0:"m"===c[0]||"n"===c[0]?d.setMonth(s-1):d.setDate(s);break;case 1:"m"===c[0]||"n"===c[0]?d.setDate(s):d.setMonth(s-1);break;case 2:if(n=d.getFullYear(),i=o.length,p=4>i?i:4,!(n=parseInt(4>i?n.toString().substr(0,4-i)+o:o.substr(0,4))))return null;d.setFullYear(n);break;case 3:d.setHours(s);break;case 4:d.setMinutes(s);break;case 5:d.setSeconds(s)}(a=o.substr(p)).length>0&&u.splice(r+1,0,a)}return d},parseFormat:function(t,i){var n,r=this,o=r.dateSettings,l=/\\?(.?)/gi,u=function(t,e){return n[t]?n[t]():e};return n={d:function(){return e(n.j(),2)},D:function(){return o.daysShort[n.w()]},j:function(){return i.getDate()},l:function(){return o.days[n.w()]},N:function(){return n.w()||7},w:function(){return i.getDay()},z:function(){var t=new Date(n.Y(),n.n()-1,n.j()),e=new Date(n.Y(),0,1);return Math.round((t-e)/a)},W:function(){var t=new Date(n.Y(),n.n()-1,n.j()-n.N()+3),i=new Date(t.getFullYear(),0,4);return e(1+Math.round((t-i)/a/7),2)},F:function(){return o.months[i.getMonth()]},m:function(){return e(n.n(),2)},M:function(){return o.monthsShort[i.getMonth()]},n:function(){return i.getMonth()+1},t:function(){return new Date(n.Y(),n.n(),0).getDate()},L:function(){var t=n.Y();return t%4==0&&t%100!=0||t%400==0?1:0},o:function(){var t=n.n(),e=n.W();return n.Y()+(12===t&&9>e?1:1===t&&e>9?-1:0)},Y:function(){return i.getFullYear()},y:function(){return n.Y().toString().slice(-2)},a:function(){return n.A().toLowerCase()},A:function(){var t=n.G()<12?0:1;return o.meridiem[t]},B:function(){var t=i.getUTCHours()*s,n=60*i.getUTCMinutes(),r=i.getUTCSeconds();return e(Math.floor((t+n+r+s)/86.4)%1e3,3)},g:function(){return n.G()%12||12},G:function(){return i.getHours()},h:function(){return e(n.g(),2)},H:function(){return e(n.G(),2)},i:function(){return e(i.getMinutes(),2)},s:function(){return e(i.getSeconds(),2)},u:function(){return e(1e3*i.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(i))[1]||"Coordinated Universal Time"},I:function(){return new Date(n.Y(),0)-Date.UTC(n.Y(),0)!=new Date(n.Y(),6)-Date.UTC(n.Y(),6)?1:0},O:function(){var t=i.getTimezoneOffset(),n=Math.abs(t);return(t>0?"-":"+")+e(100*Math.floor(n/60)+n%60,4)},P:function(){var t=n.O();return t.substr(0,3)+":"+t.substr(3,2)},T:function(){return(String(i).match(r.tzParts)||[""]).pop().replace(r.tzClip,"")||"UTC"},Z:function(){return 60*-i.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(l,u)},r:function(){return"D, d M Y H:i:s O".replace(l,u)},U:function(){return i.getTime()/1e3||0}},u(t,t)},formatDate:function(t,e){var i,n,r,a,o,s=this,l="";if("string"==typeof t&&!(t=s.parseDate(t,e)))return null;if(t instanceof Date){for(r=e.length,i=0;r>i;i++)"S"!==(o=e.charAt(i))&&"\\"!==o&&(i>0&&"\\"===e.charAt(i-1)?l+=o:(a=s.parseFormat(o,t),i!==r-1&&s.intParts.test(o)&&"S"===e.charAt(i+1)&&(n=parseInt(a)||0,a+=s.dateSettings.ordinal(n)),l+=a));return l}return""}}}();var s=function(t){"use strict";function e(t,e,i){this.date=t,this.desc=e,this.style=i}var i={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"], dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنجشنبه","جمعه","شنبه","یکشنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា","កុម្ភៈ","មិនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],dayOfWeekShort:["អាទិ","ច័ន្ទ","អង្គារ","ពុធ","ព្រហ","សុក្រ","សៅរ៍"],dayOfWeek:["អាទិត្យ","ច័ន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},ownerDocument:document,contentWindow:window,value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1},n=null,r=null,a="en",s={meridiem:["AM","PM"]},l=function(){var e=i.i18n[a],l={days:e.dayOfWeek,daysShort:e.dayOfWeekShort,months:e.months,monthsShort:t.map(e.months,function(t){return t.substring(0,3)})};"function"==typeof o&&(n=r=new o({dateSettings:t.extend({},s,l)}))},u={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(t,e){if(c(e))return r.parseDate(t,e);var i=moment(t,e);return!!i.isValid()&&i.toDate()},formatDate:function(t,e){return c(e)?r.formatDate(t,e):moment(t).format(e)},formatMask:function(t){return t.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59")}}}};t.datetimepicker={setLocale:function(t){var e=i.i18n[t]?t:"en";a!==e&&(a=e,l())},setDateFormatter:function(e){if("string"==typeof e&&u.hasOwnProperty(e)){var r=u[e];t.extend(i,r.default_options),n=r.formatter}else n=e}};var h={RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},c=function(t){return-1!==Object.values(h).indexOf(t)};t.extend(t.datetimepicker,h),l(),window.getComputedStyle||(window.getComputedStyle=function(t){return this.el=t,this.getPropertyValue=function(e){var i=/(-([a-z]))/g;return"float"===e&&(e="styleFloat"),i.test(e)&&(e=e.replace(i,function(t,e,i){return i.toUpperCase()})),t.currentStyle[e]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var i,n;for(i=e||0,n=this.length;i<n;i+=1)if(this[i]===t)return i;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},t.fn.xdsoftScroller=function(e,i){return this.each(function(){var n,r,a,o,s,l=t(this),u=function(t){var e,i={x:0,y:0};return"touchstart"===t.type||"touchmove"===t.type||"touchend"===t.type||"touchcancel"===t.type?(e=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],i.x=e.clientX,i.y=e.clientY):"mousedown"!==t.type&&"mouseup"!==t.type&&"mousemove"!==t.type&&"mouseover"!==t.type&&"mouseout"!==t.type&&"mouseenter"!==t.type&&"mouseleave"!==t.type||(i.x=t.clientX,i.y=t.clientY),i},h=100,c=!1,d=0,p=0,f=0,g=!1,m=0,v=function(){};"hide"!==i?(t(this).hasClass("xdsoft_scroller_box")||(n=l.children().eq(0),r=l[0].clientHeight,a=n[0].offsetHeight,o=t('<div class="xdsoft_scrollbar"></div>'),s=t('<div class="xdsoft_scroller"></div>'),o.append(s),l.addClass("xdsoft_scroller_box").append(o),v=function(t){var e=u(t).y-d+m;e<0&&(e=0),e+s[0].offsetHeight>f&&(e=f-s[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[h?e/h:0])},s.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(n){r||l.trigger("resize_scroll.xdsoft_scroller",[i]),d=u(n).y,m=parseInt(s.css("margin-top"),10),f=o[0].offsetHeight,"mousedown"===n.type||"touchstart"===n.type?(e.ownerDocument&&t(e.ownerDocument.body).addClass("xdsoft_noselect"),t([e.ownerDocument.body,e.contentWindow]).on("touchend mouseup.xdsoft_scroller",function a(){t([e.ownerDocument.body,e.contentWindow]).off("touchend mouseup.xdsoft_scroller",a).off("mousemove.xdsoft_scroller",v).removeClass("xdsoft_noselect")}),t(e.ownerDocument.body).on("mousemove.xdsoft_scroller",v)):(g=!0,n.stopPropagation(),n.preventDefault())}).on("touchmove",function(t){g&&(t.preventDefault(),v(t))}).on("touchend touchcancel",function(){g=!1,m=0}),l.on("scroll_element.xdsoft_scroller",function(t,e){r||l.trigger("resize_scroll.xdsoft_scroller",[e,!0]),e=e>1?1:e<0||isNaN(e)?0:e,s.css("margin-top",h*e),setTimeout(function(){n.css("marginTop",-parseInt((n[0].offsetHeight-r)*e,10))},10)}).on("resize_scroll.xdsoft_scroller",function(t,e,i){var u,c;r=l[0].clientHeight,a=n[0].offsetHeight,c=(u=r/a)*o[0].offsetHeight,u>1?s.hide():(s.show(),s.css("height",parseInt(c>10?c:10,10)),h=o[0].offsetHeight-s[0].offsetHeight,!0!==i&&l.trigger("scroll_element.xdsoft_scroller",[e||Math.abs(parseInt(n.css("marginTop"),10))/(a-r)]))}),l.on("mousewheel",function(t){var e=Math.abs(parseInt(n.css("marginTop"),10));return(e-=20*t.deltaY)<0&&(e=0),l.trigger("scroll_element.xdsoft_scroller",[e/(a-r)]),t.stopPropagation(),!1}),l.on("touchstart",function(t){c=u(t),p=Math.abs(parseInt(n.css("marginTop"),10))}),l.on("touchmove",function(t){if(c){t.preventDefault();var e=u(t);l.trigger("scroll_element.xdsoft_scroller",[(p-(e.y-c.y))/(a-r)])}}),l.on("touchend touchcancel",function(){c=!1,p=0})),l.trigger("resize_scroll.xdsoft_scroller",[i])):l.find(".xdsoft_scrollbar").hide()})},t.fn.datetimepicker=function(r,o){var s,l,u=this,h=48,c=57,d=96,p=105,f=17,g=46,m=13,v=27,y=8,_=37,b=38,x=39,w=40,M=9,S=116,k=65,D=67,T=86,L=90,C=89,I=!1,A=t.isPlainObject(r)||!r?t.extend(!0,{},i,r):t.extend(!0,{},i),P=0,E=function(t){t.on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(P),P=setTimeout(function(){t.data("xdsoft_datetimepicker")||s(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))})};return s=function(i){function o(){var t,e=!1;return A.startDate?e=O.strToDate(A.startDate):(e=A.value||(i&&i.val&&i.val()?i.val():""))?(e=O.strToDateTime(e),A.yearOffset&&(e=new Date(e.getFullYear()-A.yearOffset,e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))):A.defaultDate&&(e=O.strToDateTime(A.defaultDate),A.defaultTime&&(t=O.strtotime(A.defaultTime),e.setHours(t.getHours()),e.setMinutes(t.getMinutes()))),e&&O.isValidDate(e)?H.data("changed",!0):e="",e||0}function s(e){var r=function(t,e){var i=t.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(i).test(e)},a=function(t,i){if(!(t="string"==typeof t||t instanceof String?e.ownerDocument.getElementById(t):t))return!1;if(t.createTextRange){var n=t.createTextRange();return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",i),n.select(),!0}return!!t.setSelectionRange&&(t.setSelectionRange(i,i),!0)};e.mask&&i.off("keydown.xdsoft"),!0===e.mask&&(n.formatMask?e.mask=n.formatMask(e.format):e.mask=e.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===t.type(e.mask)&&(r(e.mask,i.val())||(i.val(e.mask.replace(/[0-9]/g,"_")),a(i[0],0)),i.on("paste.xdsoft",function(n){var o=(n.clipboardData||n.originalEvent.clipboardData||window.clipboardData).getData("text"),s=this.value,l=this.selectionStart;return s=s.substr(0,l)+o+s.substr(l+o.length),l+=o.length,r(e.mask,s)?(this.value=s,a(this,l)):""===t.trim(s)?this.value=e.mask.replace(/[0-9]/g,"_"):i.trigger("error_input.xdsoft"),n.preventDefault(),!1}),i.on("keydown.xdsoft",function(n){var o,s=this.value,l=n.which,u=this.selectionStart,A=this.selectionEnd,P=u!==A;if(l>=h&&l<=c||l>=d&&l<=p||l===y||l===g){for(o=l===y||l===g?"_":String.fromCharCode(d<=l&&l<=p?l-h:l),l===y&&u&&!P&&(u-=1);;){var E=e.mask.substr(u,1),O=u<e.mask.length,R=u>0;if(!(/[^0-9_]/.test(E)&&O&&R))break;u+=l!==y||P?1:-1}if(P){var H=A-u,z=e.mask.replace(/[0-9]/g,"_"),Y=z.substr(u,H).substr(1);s=s.substr(0,u)+(o+Y)+s.substr(u+H)}else s=s.substr(0,u)+o+s.substr(u+1);if(""===t.trim(s))s=z;else if(u===e.mask.length)return n.preventDefault(),!1;for(u+=l===y?0:1;/[^0-9_]/.test(e.mask.substr(u,1))&&u<e.mask.length&&u>0;)u+=l===y?0:1;r(e.mask,s)?(this.value=s,a(this,u)):""===t.trim(s)?this.value=e.mask.replace(/[0-9]/g,"_"):i.trigger("error_input.xdsoft")}else if(-1!==[k,D,T,L,C].indexOf(l)&&I||-1!==[v,b,w,_,x,S,f,M,m].indexOf(l))return!0;return n.preventDefault(),!1}))}var l,u,P,E,O,R,H=t('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),z=t('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),Y=t('<div class="xdsoft_datepicker active"></div>'),N=t('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),F=t('<div class="xdsoft_calendar"></div>'),W=t('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),B=W.find(".xdsoft_time_box").eq(0),j=t('<div class="xdsoft_time_variant"></div>'),V=t('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),$=t('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),G=t('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),U=!1,q=0;A.id&&H.attr("id",A.id),A.style&&H.attr("style",A.style),A.weeks&&H.addClass("xdsoft_showweeks"),A.rtl&&H.addClass("xdsoft_rtl"),H.addClass("xdsoft_"+A.theme),H.addClass(A.className),N.find(".xdsoft_month span").after($),N.find(".xdsoft_year span").after(G),N.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var i,n,r=t(this).find(".xdsoft_select").eq(0),a=0,o=0,s=r.is(":visible");for(N.find(".xdsoft_select").hide(),O.currentTime&&(a=O.currentTime[t(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),r[s?"hide":"show"](),i=r.find("div.xdsoft_option"),n=0;n<i.length&&i.eq(n).data("value")!==a;n+=1)o+=i[0].offsetHeight;return r.xdsoftScroller(A,o/(r.children()[0].offsetHeight-r[0].clientHeight)),e.stopPropagation(),!1});var X=function(t){var e=t.originalEvent,i=e.touches?e.touches[0]:e;this.touchStartPosition=this.touchStartPosition||i;var n=Math.abs(this.touchStartPosition.clientX-i.clientX),r=Math.abs(this.touchStartPosition.clientY-i.clientY);Math.sqrt(n*n+r*r)>A.touchMovedThreshold&&(this.touchMoved=!0)};N.find(".xdsoft_select").xdsoftScroller(A).on("touchstart mousedown.xdsoft",function(t){var e=t.originalEvent;this.touchMoved=!1,this.touchStartPosition=e.touches?e.touches[0]:e,t.stopPropagation(),t.preventDefault()}).on("touchmove",".xdsoft_option",X).on("touchend mousedown.xdsoft",".xdsoft_option",function(){if(!this.touchMoved){void 0!==O.currentTime&&null!==O.currentTime||(O.currentTime=O.now());var e=O.currentTime.getFullYear();O&&O.currentTime&&O.currentTime[t(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](t(this).data("value")),t(this).parent().parent().hide(),H.trigger("xchange.xdsoft"),A.onChangeMonth&&t.isFunction(A.onChangeMonth)&&A.onChangeMonth.call(H,O.currentTime,H.data("input")),e!==O.currentTime.getFullYear()&&t.isFunction(A.onChangeYear)&&A.onChangeYear.call(H,O.currentTime,H.data("input"))}}),H.getValue=function(){return O.getCurrentTime()},H.setOptions=function(r){var a={};A=t.extend(!0,{},A,r),r.allowTimes&&t.isArray(r.allowTimes)&&r.allowTimes.length&&(A.allowTimes=t.extend(!0,[],r.allowTimes)),r.weekends&&t.isArray(r.weekends)&&r.weekends.length&&(A.weekends=t.extend(!0,[],r.weekends)),r.allowDates&&t.isArray(r.allowDates)&&r.allowDates.length&&(A.allowDates=t.extend(!0,[],r.allowDates)),r.allowDateRe&&"[object String]"===Object.prototype.toString.call(r.allowDateRe)&&(A.allowDateRe=new RegExp(r.allowDateRe)),r.highlightedDates&&t.isArray(r.highlightedDates)&&r.highlightedDates.length&&(t.each(r.highlightedDates,function(i,r){var o,s=t.map(r.split(","),t.trim),l=new e(n.parseDate(s[0],A.formatDate),s[1],s[2]),u=n.formatDate(l.date,A.formatDate);void 0!==a[u]?(o=a[u].desc)&&o.length&&l.desc&&l.desc.length&&(a[u].desc=o+"\n"+l.desc):a[u]=l}),A.highlightedDates=t.extend(!0,[],a)),r.highlightedPeriods&&t.isArray(r.highlightedPeriods)&&r.highlightedPeriods.length&&(a=t.extend(!0,[],A.highlightedDates),t.each(r.highlightedPeriods,function(i,r){var o,s,l,u,h,c,d;if(t.isArray(r))o=r[0],s=r[1],l=r[2],d=r[3];else{var p=t.map(r.split(","),t.trim);o=n.parseDate(p[0],A.formatDate),s=n.parseDate(p[1],A.formatDate),l=p[2],d=p[3]}for(;o<=s;)u=new e(o,l,d),h=n.formatDate(o,A.formatDate),o.setDate(o.getDate()+1),void 0!==a[h]?(c=a[h].desc)&&c.length&&u.desc&&u.desc.length&&(a[h].desc=c+"\n"+u.desc):a[h]=u}),A.highlightedDates=t.extend(!0,[],a)),r.disabledDates&&t.isArray(r.disabledDates)&&r.disabledDates.length&&(A.disabledDates=t.extend(!0,[],r.disabledDates)),r.disabledWeekDays&&t.isArray(r.disabledWeekDays)&&r.disabledWeekDays.length&&(A.disabledWeekDays=t.extend(!0,[],r.disabledWeekDays)),!A.open&&!A.opened||A.inline||i.trigger("open.xdsoft"),A.inline&&(U=!0,H.addClass("xdsoft_inline"),i.after(H).hide()),A.inverseButton&&(A.next="xdsoft_prev",A.prev="xdsoft_next"),A.datepicker?Y.addClass("active"):Y.removeClass("active"),A.timepicker?W.addClass("active"):W.removeClass("active"),A.value&&(O.setCurrentTime(A.value),i&&i.val&&i.val(O.str)),isNaN(A.dayOfWeekStart)?A.dayOfWeekStart=0:A.dayOfWeekStart=parseInt(A.dayOfWeekStart,10)%7,A.timepickerScrollbar||B.xdsoftScroller(A,"hide"),A.minDate&&/^[\+\-](.*)$/.test(A.minDate)&&(A.minDate=n.formatDate(O.strToDateTime(A.minDate),A.formatDate)),A.maxDate&&/^[\+\-](.*)$/.test(A.maxDate)&&(A.maxDate=n.formatDate(O.strToDateTime(A.maxDate),A.formatDate)),A.minDateTime&&/^\+(.*)$/.test(A.minDateTime)&&(A.minDateTime=O.strToDateTime(A.minDateTime).dateFormat(A.formatDate)),A.maxDateTime&&/^\+(.*)$/.test(A.maxDateTime)&&(A.maxDateTime=O.strToDateTime(A.maxDateTime).dateFormat(A.formatDate)),V.toggle(A.showApplyButton),N.find(".xdsoft_today_button").css("visibility",A.todayButton?"visible":"hidden"),N.find("."+A.prev).css("visibility",A.prevButton?"visible":"hidden"),N.find("."+A.next).css("visibility",A.nextButton?"visible":"hidden"),s(A),A.validateOnBlur&&i.off("blur.xdsoft").on("blur.xdsoft",function(){if(A.allowBlank&&(!t.trim(t(this).val()).length||"string"==typeof A.mask&&t.trim(t(this).val())===A.mask.replace(/[0-9]/g,"_")))t(this).val(null),H.data("xdsoft_datetime").empty();else{var e=n.parseDate(t(this).val(),A.format);if(e)t(this).val(n.formatDate(e,A.format));else{var i=+[t(this).val()[0],t(this).val()[1]].join(""),r=+[t(this).val()[2],t(this).val()[3]].join("");!A.datepicker&&A.timepicker&&i>=0&&i<24&&r>=0&&r<60?t(this).val([i,r].map(function(t){return t>9?t:"0"+t}).join(":")):t(this).val(n.formatDate(O.now(),A.format))}H.data("xdsoft_datetime").setCurrentTime(t(this).val())}H.trigger("changedatetime.xdsoft"),H.trigger("close.xdsoft")}),A.dayOfWeekStartPrev=0===A.dayOfWeekStart?6:A.dayOfWeekStart-1,H.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},H.data("options",A).on("touchstart mousedown.xdsoft",function(t){return t.stopPropagation(),t.preventDefault(),G.hide(),$.hide(),!1}),B.append(j),B.xdsoftScroller(A),H.on("afterOpen.xdsoft",function(){B.xdsoftScroller(A)}),H.append(Y).append(W),!0!==A.withoutCopyright&&H.append(z),Y.append(N).append(F).append(V),t(A.parentID).append(H),O=new function(){var e=this;e.now=function(t){var i,n,r=new Date;return!t&&A.defaultDate&&(i=e.strToDateTime(A.defaultDate),r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate())),r.setFullYear(r.getFullYear()),!t&&A.defaultTime&&(n=e.strtotime(A.defaultTime),r.setHours(n.getHours()),r.setMinutes(n.getMinutes()),r.setSeconds(n.getSeconds()),r.setMilliseconds(n.getMilliseconds())),r},e.isValidDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())},e.setCurrentTime=function(t,i){"string"==typeof t?e.currentTime=e.strToDateTime(t):e.isValidDate(t)?e.currentTime=t:t||i||!A.allowBlank||A.inline?e.currentTime=e.now():e.currentTime=null,H.trigger("xchange.xdsoft")},e.empty=function(){e.currentTime=null},e.getCurrentTime=function(){return e.currentTime},e.nextMonth=function(){void 0!==e.currentTime&&null!==e.currentTime||(e.currentTime=e.now());var i,n=e.currentTime.getMonth()+1;return 12===n&&(e.currentTime.setFullYear(e.currentTime.getFullYear()+1),n=0),i=e.currentTime.getFullYear(),e.currentTime.setDate(Math.min(new Date(e.currentTime.getFullYear(),n+1,0).getDate(),e.currentTime.getDate())),e.currentTime.setMonth(n),A.onChangeMonth&&t.isFunction(A.onChangeMonth)&&A.onChangeMonth.call(H,O.currentTime,H.data("input")),i!==e.currentTime.getFullYear()&&t.isFunction(A.onChangeYear)&&A.onChangeYear.call(H,O.currentTime,H.data("input")),H.trigger("xchange.xdsoft"),n},e.prevMonth=function(){void 0!==e.currentTime&&null!==e.currentTime||(e.currentTime=e.now());var i=e.currentTime.getMonth()-1;return-1===i&&(e.currentTime.setFullYear(e.currentTime.getFullYear()-1),i=11),e.currentTime.setDate(Math.min(new Date(e.currentTime.getFullYear(),i+1,0).getDate(),e.currentTime.getDate())),e.currentTime.setMonth(i),A.onChangeMonth&&t.isFunction(A.onChangeMonth)&&A.onChangeMonth.call(H,O.currentTime,H.data("input")),H.trigger("xchange.xdsoft"),i},e.getWeekOfYear=function(e){ if(A.onGetWeekOfYear&&t.isFunction(A.onGetWeekOfYear)){var i=A.onGetWeekOfYear.call(H,e);if(void 0!==i)return i}var n=new Date(e.getFullYear(),0,1);return 4!==n.getDay()&&n.setMonth(0,1+(4-n.getDay()+7)%7),Math.ceil(((e-n)/864e5+n.getDay()+1)/7)},e.strToDateTime=function(t){var i,r,a=[];return t&&t instanceof Date&&e.isValidDate(t)?t:((a=/^([+-]{1})(.*)$/.exec(t))&&(a[2]=n.parseDate(a[2],A.formatDate)),a&&a[2]?(i=a[2].getTime()-6e4*a[2].getTimezoneOffset(),r=new Date(e.now(!0).getTime()+parseInt(a[1]+"1",10)*i)):r=t?n.parseDate(t,A.format):e.now(),e.isValidDate(r)||(r=e.now()),r)},e.strToDate=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var i=t?n.parseDate(t,A.formatDate):e.now(!0);return e.isValidDate(i)||(i=e.now(!0)),i},e.strtotime=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var i=t?n.parseDate(t,A.formatTime):e.now(!0);return e.isValidDate(i)||(i=e.now(!0)),i},e.str=function(){var t=A.format;return A.yearOffset&&(t=(t=t.replace("Y",e.currentTime.getFullYear()+A.yearOffset)).replace("y",String(e.currentTime.getFullYear()+A.yearOffset).substring(2,4))),n.formatDate(e.currentTime,t)},e.currentTime=this.now()},V.on("touchend click",function(t){t.preventDefault(),H.data("changed",!0),O.setCurrentTime(o()),i.val(O.str()),H.trigger("close.xdsoft")}),N.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){H.data("changed",!0),O.setCurrentTime(0,!0),H.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var t,e,n=O.getCurrentTime();n=new Date(n.getFullYear(),n.getMonth(),n.getDate()),t=O.strToDate(A.minDate),n<(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()))||(e=O.strToDate(A.maxDate),n>(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()))||(i.val(O.str()),i.trigger("change"),H.trigger("close.xdsoft")))}),N.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var e=t(this),i=0,n=!1;!function r(t){e.hasClass(A.next)?O.nextMonth():e.hasClass(A.prev)&&O.prevMonth(),A.monthChangeSpinner&&(n||(i=setTimeout(r,t||100)))}(500),t([A.ownerDocument.body,A.contentWindow]).on("touchend mouseup.xdsoft",function a(){clearTimeout(i),n=!0,t([A.ownerDocument.body,A.contentWindow]).off("touchend mouseup.xdsoft",a)})}),W.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var e=t(this),i=0,n=!1,r=110;!function a(t){var o=B[0].clientHeight,s=j[0].offsetHeight,l=Math.abs(parseInt(j.css("marginTop"),10));e.hasClass(A.next)&&s-o-A.timeHeightInTimePicker>=l?j.css("marginTop","-"+(l+A.timeHeightInTimePicker)+"px"):e.hasClass(A.prev)&&l-A.timeHeightInTimePicker>=0&&j.css("marginTop","-"+(l-A.timeHeightInTimePicker)+"px"),B.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(j[0].style.marginTop,10)/(s-o))]),r=r>10?10:r-10,n||(i=setTimeout(a,t||r))}(500),t([A.ownerDocument.body,A.contentWindow]).on("touchend mouseup.xdsoft",function o(){clearTimeout(i),n=!0,t([A.ownerDocument.body,A.contentWindow]).off("touchend mouseup.xdsoft",o)})}),l=0,H.on("xchange.xdsoft",function(e){clearTimeout(l),l=setTimeout(function(){void 0!==O.currentTime&&null!==O.currentTime||(O.currentTime=O.now());for(var e,o,s,l,u,h,c,d,p,f,g="",m=new Date(O.currentTime.getFullYear(),O.currentTime.getMonth(),1,12,0,0),v=0,y=O.now(),_=!1,b=!1,x=!1,w=!1,M=[],S=!0,k="";m.getDay()!==A.dayOfWeekStart;)m.setDate(m.getDate()-1);for(g+="<table><thead><tr>",A.weeks&&(g+="<th></th>"),e=0;e<7;e+=1)g+="<th>"+A.i18n[a].dayOfWeekShort[(e+A.dayOfWeekStart)%7]+"</th>";g+="</tr></thead>",g+="<tbody>",!1!==A.maxDate&&(_=O.strToDate(A.maxDate),_=new Date(_.getFullYear(),_.getMonth(),_.getDate(),23,59,59,999)),!1!==A.minDate&&(b=O.strToDate(A.minDate),b=new Date(b.getFullYear(),b.getMonth(),b.getDate())),!1!==A.minDateTime&&(x=O.strToDate(A.minDateTime),x=new Date(x.getFullYear(),x.getMonth(),x.getDate(),x.getHours(),x.getMinutes(),x.getSeconds())),!1!==A.maxDateTime&&(w=O.strToDate(A.maxDateTime),w=new Date(w.getFullYear(),w.getMonth(),w.getDate(),w.getHours(),w.getMinutes(),w.getSeconds()));var D;for(!1!==w&&(D=31*(12*w.getFullYear()+w.getMonth())+w.getDate());v<O.currentTime.countDaysInMonth()||m.getDay()!==A.dayOfWeekStart||O.currentTime.getMonth()===m.getMonth();){M=[],v+=1,s=m.getDay(),l=m.getDate(),u=m.getFullYear(),h=m.getMonth(),c=O.getWeekOfYear(m),f="",M.push("xdsoft_date"),d=A.beforeShowDay&&t.isFunction(A.beforeShowDay.call)?A.beforeShowDay.call(H,m):null,A.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(A.allowDateRe)&&(A.allowDateRe.test(n.formatDate(m,A.formatDate))||M.push("xdsoft_disabled")),A.allowDates&&A.allowDates.length>0&&-1===A.allowDates.indexOf(n.formatDate(m,A.formatDate))&&M.push("xdsoft_disabled");var T=31*(12*m.getFullYear()+m.getMonth())+m.getDate();(!1!==_&&m>_||!1!==x&&m<x||!1!==b&&m<b||!1!==w&&T>D||d&&!1===d[0])&&M.push("xdsoft_disabled"),-1!==A.disabledDates.indexOf(n.formatDate(m,A.formatDate))&&M.push("xdsoft_disabled"),-1!==A.disabledWeekDays.indexOf(s)&&M.push("xdsoft_disabled"),i.is("[disabled]")&&M.push("xdsoft_disabled"),d&&""!==d[1]&&M.push(d[1]),O.currentTime.getMonth()!==h&&M.push("xdsoft_other_month"),(A.defaultSelect||H.data("changed"))&&n.formatDate(O.currentTime,A.formatDate)===n.formatDate(m,A.formatDate)&&M.push("xdsoft_current"),n.formatDate(y,A.formatDate)===n.formatDate(m,A.formatDate)&&M.push("xdsoft_today"),0!==m.getDay()&&6!==m.getDay()&&-1===A.weekends.indexOf(n.formatDate(m,A.formatDate))||M.push("xdsoft_weekend"),void 0!==A.highlightedDates[n.formatDate(m,A.formatDate)]&&(o=A.highlightedDates[n.formatDate(m,A.formatDate)],M.push(void 0===o.style?"xdsoft_highlighted_default":o.style),f=void 0===o.desc?"":o.desc),A.beforeShowDay&&t.isFunction(A.beforeShowDay)&&M.push(A.beforeShowDay(m)),S&&(g+="<tr>",S=!1,A.weeks&&(g+="<th>"+c+"</th>")),g+='<td data-date="'+l+'" data-month="'+h+'" data-year="'+u+'" class="xdsoft_date xdsoft_day_of_week'+m.getDay()+" "+M.join(" ")+'" title="'+f+'"><div>'+l+"</div></td>",m.getDay()===A.dayOfWeekStartPrev&&(g+="</tr>",S=!0),m.setDate(l+1)}g+="</tbody></table>",F.html(g),N.find(".xdsoft_label span").eq(0).text(A.i18n[a].months[O.currentTime.getMonth()]),N.find(".xdsoft_label span").eq(1).text(O.currentTime.getFullYear()+A.yearOffset),k="",h="";var L=0;!1!==A.minTime&&(I=O.strtotime(A.minTime),L=60*I.getHours()+I.getMinutes());var C=1440;if(!1!==A.maxTime&&(I=O.strtotime(A.maxTime),C=60*I.getHours()+I.getMinutes()),!1!==A.minDateTime&&(I=O.strToDateTime(A.minDateTime),n.formatDate(O.currentTime,A.formatDate)===n.formatDate(I,A.formatDate)&&(h=60*I.getHours()+I.getMinutes())>L&&(L=h)),!1!==A.maxDateTime){var I=O.strToDateTime(A.maxDateTime);n.formatDate(O.currentTime,A.formatDate)===n.formatDate(I,A.formatDate)&&(h=60*I.getHours()+I.getMinutes())<C&&(C=h)}if(p=function(e,r){var a,o=O.now(),s=A.allowTimes&&t.isArray(A.allowTimes)&&A.allowTimes.length;o.setHours(e),e=parseInt(o.getHours(),10),o.setMinutes(r),r=parseInt(o.getMinutes(),10),M=[];var l=60*e+r;(i.is("[disabled]")||l>=C||l<L)&&M.push("xdsoft_disabled"),(a=new Date(O.currentTime)).setHours(parseInt(O.currentTime.getHours(),10)),s||a.setMinutes(Math[A.roundTime](O.currentTime.getMinutes()/A.step)*A.step),(A.initTime||A.defaultSelect||H.data("changed"))&&a.getHours()===parseInt(e,10)&&(!s&&A.step>59||a.getMinutes()===parseInt(r,10))&&(A.defaultSelect||H.data("changed")?M.push("xdsoft_current"):A.initTime&&M.push("xdsoft_init_time")),parseInt(y.getHours(),10)===parseInt(e,10)&&parseInt(y.getMinutes(),10)===parseInt(r,10)&&M.push("xdsoft_today"),k+='<div class="xdsoft_time '+M.join(" ")+'" data-hour="'+e+'" data-minute="'+r+'">'+n.formatDate(o,A.formatTime)+"</div>"},A.allowTimes&&t.isArray(A.allowTimes)&&A.allowTimes.length)for(v=0;v<A.allowTimes.length;v+=1)p(O.strtotime(A.allowTimes[v]).getHours(),h=O.strtotime(A.allowTimes[v]).getMinutes());else for(v=0,e=0;v<(A.hours12?12:24);v+=1)for(e=0;e<60;e+=A.step){var P=60*v+e;P<L||P>=C||p((v<10?"0":"")+v,h=(e<10?"0":"")+e)}for(j.html(k),r="",v=parseInt(A.yearStart,10);v<=parseInt(A.yearEnd,10);v+=1)r+='<div class="xdsoft_option '+(O.currentTime.getFullYear()===v?"xdsoft_current":"")+'" data-value="'+v+'">'+(v+A.yearOffset)+"</div>";for(G.children().eq(0).html(r),v=parseInt(A.monthStart,10),r="";v<=parseInt(A.monthEnd,10);v+=1)r+='<div class="xdsoft_option '+(O.currentTime.getMonth()===v?"xdsoft_current":"")+'" data-value="'+v+'">'+A.i18n[a].months[v]+"</div>";$.children().eq(0).html(r),t(H).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){if(A.timepicker){var t,e,i,n;j.find(".xdsoft_current").length?t=".xdsoft_current":j.find(".xdsoft_init_time").length&&(t=".xdsoft_init_time"),t?(e=B[0].clientHeight,(i=j[0].offsetHeight)-e<(n=j.find(t).index()*A.timeHeightInTimePicker+1)&&(n=i-e),B.trigger("scroll_element.xdsoft_scroller",[parseInt(n,10)/(i-e)])):B.trigger("scroll_element.xdsoft_scroller",[0])}}),u=0,F.on("touchend click.xdsoft","td",function(e){e.stopPropagation(),u+=1;var n=t(this),r=O.currentTime;return void 0!==r&&null!==r||(O.currentTime=O.now(),r=O.currentTime),!n.hasClass("xdsoft_disabled")&&(r.setDate(1),r.setFullYear(n.data("year")),r.setMonth(n.data("month")),r.setDate(n.data("date")),H.trigger("select.xdsoft",[r]),i.val(O.str()),A.onSelectDate&&t.isFunction(A.onSelectDate)&&A.onSelectDate.call(H,O.currentTime,H.data("input"),e),H.data("changed",!0),H.trigger("xchange.xdsoft"),H.trigger("changedatetime.xdsoft"),(u>1||!0===A.closeOnDateSelect||!1===A.closeOnDateSelect&&!A.timepicker)&&!A.inline&&H.trigger("close.xdsoft"),setTimeout(function(){u=0},200),void 0)}),j.on("touchstart","div",function(t){this.touchMoved=!1}).on("touchmove","div",X).on("touchend click.xdsoft","div",function(e){if(!this.touchMoved){e.stopPropagation();var i=t(this),n=O.currentTime;if(void 0!==n&&null!==n||(O.currentTime=O.now(),n=O.currentTime),i.hasClass("xdsoft_disabled"))return!1;n.setHours(i.data("hour")),n.setMinutes(i.data("minute")),H.trigger("select.xdsoft",[n]),H.data("input").val(O.str()),A.onSelectTime&&t.isFunction(A.onSelectTime)&&A.onSelectTime.call(H,O.currentTime,H.data("input"),e),H.data("changed",!0),H.trigger("xchange.xdsoft"),H.trigger("changedatetime.xdsoft"),!0!==A.inline&&!0===A.closeOnTimeSelect&&H.trigger("close.xdsoft")}}),Y.on("mousewheel.xdsoft",function(t){return!A.scrollMonth||(t.deltaY<0?O.nextMonth():O.prevMonth(),!1)}),i.on("mousewheel.xdsoft",function(t){return!A.scrollInput||(!A.datepicker&&A.timepicker?((P=j.find(".xdsoft_current").length?j.find(".xdsoft_current").eq(0).index():0)+t.deltaY>=0&&P+t.deltaY<j.children().length&&(P+=t.deltaY),j.children().eq(P).length&&j.children().eq(P).trigger("mousedown"),!1):A.datepicker&&!A.timepicker?(Y.trigger(t,[t.deltaY,t.deltaX,t.deltaY]),i.val&&i.val(O.str()),H.trigger("changedatetime.xdsoft"),!1):void 0)}),H.on("changedatetime.xdsoft",function(e){if(A.onChangeDateTime&&t.isFunction(A.onChangeDateTime)){var i=H.data("input");A.onChangeDateTime.call(H,O.currentTime,i,e),delete A.value,i.trigger("change")}}).on("generate.xdsoft",function(){A.onGenerate&&t.isFunction(A.onGenerate)&&A.onGenerate.call(H,O.currentTime,H.data("input")),U&&(H.trigger("afterOpen.xdsoft"),U=!1)}).on("click.xdsoft",function(t){t.stopPropagation()}),P=0,R=function(t,e){do if(!(t=t.parentNode)||!1===e(t))break;while("HTML"!==t.nodeName)},E=function(){var e,i,n,r,a,o,s,l,u,h,c,d,p;if(l=H.data("input"),e=l.offset(),i=l[0],h="top",n=e.top+i.offsetHeight-1,r=e.left,a="absolute",u=t(A.contentWindow).width(),d=t(A.contentWindow).height(),p=t(A.contentWindow).scrollTop(),A.ownerDocument.documentElement.clientWidth-e.left<Y.parent().outerWidth(!0)){var f=Y.parent().outerWidth(!0)-i.offsetWidth;r-=f}"rtl"===l.parent().css("direction")&&(r-=H.outerWidth()-l.outerWidth()),A.fixed?(n-=p,r-=t(A.contentWindow).scrollLeft(),a="fixed"):(s=!1,R(i,function(t){return null!==t&&("fixed"===A.contentWindow.getComputedStyle(t).getPropertyValue("position")?(s=!0,!1):void 0)}),s?(a="fixed",n+H.outerHeight()>d+p?(h="bottom",n=d+p-e.top):n-=p):n+H[0].offsetHeight>d+p&&(n=e.top-H[0].offsetHeight+1),n<0&&(n=0),r+i.offsetWidth>u&&(r=u-i.offsetWidth)),o=H[0],R(o,function(t){if("relative"===A.contentWindow.getComputedStyle(t).getPropertyValue("position")&&u>=t.offsetWidth)return r-=(u-t.offsetWidth)/2,!1}),(c={position:a,left:r,top:"",bottom:""})[h]=n,H.css(c)},H.on("open.xdsoft",function(e){var i=!0;A.onShow&&t.isFunction(A.onShow)&&(i=A.onShow.call(H,O.currentTime,H.data("input"),e)),!1!==i&&(H.show(),E(),t(A.contentWindow).off("resize.xdsoft",E).on("resize.xdsoft",E),A.closeOnWithoutClick&&t([A.ownerDocument.body,A.contentWindow]).on("touchstart mousedown.xdsoft",function n(){H.trigger("close.xdsoft"),t([A.ownerDocument.body,A.contentWindow]).off("touchstart mousedown.xdsoft",n)}))}).on("close.xdsoft",function(e){var i=!0;N.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),A.onClose&&t.isFunction(A.onClose)&&(i=A.onClose.call(H,O.currentTime,H.data("input"),e)),!1===i||A.opened||A.inline||H.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){H.is(":visible")?H.trigger("close.xdsoft"):H.trigger("open.xdsoft")}).data("input",i),q=0,H.data("xdsoft_datetime",O),H.setOptions(A),O.setCurrentTime(o()),i.data("xdsoft_datetimepicker",H).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){i.is(":disabled")||i.data("xdsoft_datetimepicker").is(":visible")&&A.closeOnInputClick||A.openOnFocus&&(clearTimeout(q),q=setTimeout(function(){i.is(":disabled")||(U=!0,O.setCurrentTime(o(),!0),A.mask&&s(A),H.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var i,n=e.which;return-1!==[m].indexOf(n)&&A.enterLikeTab?(i=t("input:visible,textarea:visible,button:visible,a:visible"),H.trigger("close.xdsoft"),i.eq(i.index(this)+1).focus(),!1):-1!==[M].indexOf(n)?(H.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){H.trigger("close.xdsoft")})},l=function(e){var i=e.data("xdsoft_datetimepicker");i&&(i.data("xdsoft_datetime",null),i.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),t(A.contentWindow).off("resize.xdsoft"),t([A.contentWindow,A.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())},t(A.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(t){t.keyCode===f&&(I=!0)}).on("keyup.xdsoftctrl",function(t){t.keyCode===f&&(I=!1)}),this.each(function(){var e=t(this).data("xdsoft_datetimepicker");if(e){if("string"===t.type(r))switch(r){case"show":t(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"toggle":e.trigger("toggle.xdsoft");break;case"destroy":l(t(this));break;case"reset":this.value=this.defaultValue,this.value&&e.data("xdsoft_datetime").isValidDate(n.parseDate(this.value,A.format))||e.data("changed",!1),e.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":e.data("input").trigger("blur.xdsoft");break;default:e[r]&&t.isFunction(e[r])&&(u=e[r](o))}else e.setOptions(r);return 0}"string"!==t.type(r)&&(!A.lazyInit||A.open||A.inline?s(t(this)):E(t(this)))}),u},t.fn.datetimepicker.defaults=i};!function(o){r=[i(13),i(416)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(s),function(o){r=[i(13)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t){function e(e){var o=e||window.event,s=l.call(arguments,1),u=0,c=0,d=0,p=0,f=0,g=0;if(e=t.event.fix(o),e.type="mousewheel","detail"in o&&(d=-1*o.detail),"wheelDelta"in o&&(d=o.wheelDelta),"wheelDeltaY"in o&&(d=o.wheelDeltaY),"wheelDeltaX"in o&&(c=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(c=-1*d,d=0),u=0===d?c:d,"deltaY"in o&&(u=d=-1*o.deltaY),"deltaX"in o&&(c=o.deltaX,0===d&&(u=-1*c)),0!==d||0!==c){if(1===o.deltaMode){var m=t.data(this,"mousewheel-line-height");u*=m,d*=m,c*=m}else if(2===o.deltaMode){var v=t.data(this,"mousewheel-page-height");u*=v,d*=v,c*=v}if(p=Math.max(Math.abs(d),Math.abs(c)),(!a||p<a)&&(a=p,n(o,p)&&(a/=40)),n(o,p)&&(u/=40,c/=40,d/=40),u=Math[u>=1?"floor":"ceil"](u/a),c=Math[c>=1?"floor":"ceil"](c/a),d=Math[d>=1?"floor":"ceil"](d/a),h.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=e.clientX-y.left,g=e.clientY-y.top}return e.deltaX=c,e.deltaY=d,e.deltaFactor=a,e.offsetX=f,e.offsetY=g,e.deltaMode=0,s.unshift(e,u,c,d),r&&clearTimeout(r),r=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,s)}}function i(){a=null}function n(t,e){return h.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}var r,a,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var u=o.length;u;)t.event.fixHooks[o[--u]]=t.event.mouseHooks;var h=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=s.length;i;)this.addEventListener(s[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",h.getLineHeight(this)),t.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=s.length;i;)this.removeEventListener(s[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})},function(t,e,i){var n,r,a;!function(o){r=[i(13)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t){function e(e){var o=e||window.event,s=l.call(arguments,1),u=0,c=0,d=0,p=0,f=0,g=0;if(e=t.event.fix(o),e.type="mousewheel","detail"in o&&(d=o.detail*-1),"wheelDelta"in o&&(d=o.wheelDelta),"wheelDeltaY"in o&&(d=o.wheelDeltaY),"wheelDeltaX"in o&&(c=o.wheelDeltaX*-1),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(c=d*-1,d=0),u=0===d?c:d,"deltaY"in o&&(d=o.deltaY*-1,u=d),"deltaX"in o&&(c=o.deltaX,0===d&&(u=c*-1)),0!==d||0!==c){if(1===o.deltaMode){var m=t.data(this,"mousewheel-line-height");u*=m,d*=m,c*=m}else if(2===o.deltaMode){var v=t.data(this,"mousewheel-page-height");u*=v,d*=v,c*=v}if(p=Math.max(Math.abs(d),Math.abs(c)),(!a||p<a)&&(a=p,n(o,p)&&(a/=40)),n(o,p)&&(u/=40,c/=40,d/=40),u=Math[u>=1?"floor":"ceil"](u/a),c=Math[c>=1?"floor":"ceil"](c/a),d=Math[d>=1?"floor":"ceil"](d/a),h.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=e.clientX-y.left,g=e.clientY-y.top}return e.deltaX=c,e.deltaY=d,e.deltaFactor=a,e.offsetX=f,e.offsetY=g,e.deltaMode=0,s.unshift(e,u,c,d),r&&clearTimeout(r),r=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,s)}}function i(){a=null}function n(t,e){return h.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120===0}var r,a,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var u=o.length;u;)t.event.fixHooks[o[--u]]=t.event.mouseHooks;var h=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=s.length;i;)this.addEventListener(s[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",h.getLineHeight(this)),t.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=s.length;i;)this.removeEventListener(s[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})},function(t,e,i){i(418),function(){"use strict";var t=$("textarea.editor"),e={autogrow:!0,svgPath:"assets/fonts/icons.svg"},i={};t.each(function(){var t=$(this);getDataOptions(t)&&(i=getDataOptions(t)),$.extend(!0,i,e),t.trumbowyg(i)}).on("tbwinit",function(){$(".trumbowyg-box").addClass("p-0 m-0 r-0 b-0 white")})}()},function(t,e){jQuery.trumbowyg={langs:{en:{viewHTML:"View HTML",undo:"Undo",redo:"Redo",formatting:"Formatting",p:"Paragraph",blockquote:"Quote",code:"Code",header:"Header",bold:"Bold",italic:"Italic",strikethrough:"Stroke",underline:"Underline",strong:"Strong",em:"Emphasis",del:"Deleted",superscript:"Superscript",subscript:"Subscript",unorderedList:"Unordered list",orderedList:"Ordered list",insertImage:"Insert Image",link:"Link",createLink:"Insert link",unlink:"Remove link",justifyLeft:"Align Left",justifyCenter:"Align Center",justifyRight:"Align Right",justifyFull:"Align Justify",horizontalRule:"Insert horizontal rule",removeformat:"Remove format",fullscreen:"Fullscreen",close:"Close",submit:"Confirm",reset:"Cancel",required:"Required",description:"Description",title:"Title",text:"Text",target:"Target",width:"Width"}},plugins:{},svgPath:null,hideButtonTexts:null},Object.defineProperty(jQuery.trumbowyg,"defaultOptions",{value:{lang:"en",fixedBtnPane:!1,fixedFullWidth:!1,autogrow:!1,autogrowOnEnter:!1,imageWidthModalEdit:!1,prefix:"trumbowyg-",semantic:!0,resetCss:!1,removeformatPasted:!1,tagsToRemove:[],btns:[["viewHTML"],["undo","redo"],["formatting"],["strong","em","del"],["superscript","subscript"],["link"],["insertImage"],["justifyLeft","justifyCenter","justifyRight","justifyFull"],["unorderedList","orderedList"],["horizontalRule"],["removeformat"],["fullscreen"]],btnsDef:{},inlineElementsSelector:"a,abbr,acronym,b,caption,cite,code,col,dfn,dir,dt,dd,em,font,hr,i,kbd,li,q,span,strikeout,strong,sub,sup,u",pasteHandlers:[],plugins:{},urlProtocol:!1,minimalLinks:!1},writable:!1,enumerable:!0,configurable:!1}),function(t,e,i,n){"use strict";var r="tbwconfirm",a="tbwcancel";n.fn.trumbowyg=function(t,e){var i="trumbowyg";if(t===Object(t)||!t)return this.each(function(){n(this).data(i)||n(this).data(i,new o(this,t))});if(1===this.length)try{var r=n(this).data(i);switch(t){case"execCmd":return r.execCmd(e.cmd,e.param,e.forceCss);case"openModal":return r.openModal(e.title,e.content);case"closeModal":return r.closeModal();case"openModalInsert":return r.openModalInsert(e.title,e.fields,e.callback);case"saveRange":return r.saveRange();case"getRange":return r.range;case"getRangeText":return r.getRangeText();case"restoreRange":return r.restoreRange();case"enable":return r.setDisabled(!1);case"disable":return r.setDisabled(!0);case"toggle":return r.toggle();case"destroy":return r.destroy();case"empty":return r.empty();case"html":return r.html(e)}}catch(a){}return!1};var o=function(r,a){var o=this,s="trumbowyg-icons",l=n.trumbowyg;o.doc=r.ownerDocument||i,o.$ta=n(r),o.$c=n(r),a=a||{},null!=a.lang||null!=l.langs[a.lang]?o.lang=n.extend(!0,{},l.langs.en,l.langs[a.lang]):o.lang=l.langs.en,o.hideButtonTexts=null!=l.hideButtonTexts?l.hideButtonTexts:a.hideButtonTexts;var u=null!=l.svgPath?l.svgPath:a.svgPath;if(o.hasSvg=u!==!1,o.svgPath=o.doc.querySelector("base")?e.location.href.split("#")[0]:"",0===n("#"+s,o.doc).length&&u!==!1){if(null==u){for(var h=i.getElementsByTagName("script"),c=0;c<h.length;c+=1){var d=h[c].src,p=d.match("trumbowyg(.min)?.js");null!=p&&(u=d.substring(0,d.indexOf(p[0]))+"ui/icons.svg")}null==u&&console.warn("You must define svgPath: https://goo.gl/CfTY9U")}var f=o.doc.createElement("div");f.id=s,o.doc.body.insertBefore(f,o.doc.body.childNodes[0]),n.ajax({async:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",dataType:"xml",crossDomain:!0,url:u,data:null,beforeSend:null,complete:null,success:function(t){f.innerHTML=(new XMLSerializer).serializeToString(t.documentElement)}})}var g=o.lang.header,m=function(){return(e.chrome||e.Intl&&Intl.v8BreakIterator)&&"CSS"in e};o.btnsDef={viewHTML:{fn:"toggle"},undo:{isSupported:m,key:"Z"},redo:{isSupported:m,key:"Y"},p:{fn:"formatBlock"},blockquote:{fn:"formatBlock"},h1:{fn:"formatBlock",title:g+" 1"},h2:{fn:"formatBlock",title:g+" 2"},h3:{fn:"formatBlock",title:g+" 3"},h4:{fn:"formatBlock",title:g+" 4"},subscript:{tag:"sub"},superscript:{tag:"sup"},bold:{key:"B",tag:"b"},italic:{key:"I",tag:"i"},underline:{tag:"u"},strikethrough:{tag:"strike"},strong:{fn:"bold",key:"B"},em:{fn:"italic",key:"I"},del:{fn:"strikethrough"},createLink:{key:"K",tag:"a"},unlink:{},insertImage:{},justifyLeft:{tag:"left",forceCss:!0},justifyCenter:{tag:"center",forceCss:!0},justifyRight:{tag:"right",forceCss:!0},justifyFull:{tag:"justify",forceCss:!0},unorderedList:{fn:"insertUnorderedList",tag:"ul"},orderedList:{fn:"insertOrderedList",tag:"ol"},horizontalRule:{fn:"insertHorizontalRule"},removeformat:{},fullscreen:{"class":"trumbowyg-not-disable"},close:{fn:"destroy","class":"trumbowyg-not-disable"},formatting:{dropdown:["p","blockquote","h1","h2","h3","h4"],ico:"p"},link:{dropdown:["createLink","unlink"]}},o.o=n.extend(!0,{},l.defaultOptions,a),o.o.hasOwnProperty("imgDblClickHandler")||(o.o.imgDblClickHandler=o.getDefaultImgDblClickHandler()),o.urlPrefix=o.setupUrlPrefix(),o.disabled=o.o.disabled||"TEXTAREA"===r.nodeName&&r.disabled,a.btns?o.o.btns=a.btns:o.o.semantic||(o.o.btns[3]=["bold","italic","underline","strikethrough"]),n.each(o.o.btnsDef,function(t,e){o.addBtnDef(t,e)}),o.eventNamespace="trumbowyg-event",o.keys=[],o.tagToButton={},o.tagHandlers=[],o.pasteHandlers=[].concat(o.o.pasteHandlers),o.isIE=t.userAgent.indexOf("MSIE")!==-1||t.appVersion.indexOf("Trident/")!==-1,o.init()};o.prototype={DEFAULT_SEMANTIC_MAP:{b:"strong",i:"em",s:"del",strike:"del",div:"p"},init:function(){var t=this;t.height=t.$ta.height(),t.initPlugins();try{t.doc.execCommand("enableObjectResizing",!1,!1),t.doc.execCommand("defaultParagraphSeparator",!1,"p")}catch(e){}t.buildEditor(),t.buildBtnPane(),t.fixedBtnPaneEvents(),t.buildOverlay(),setTimeout(function(){t.disabled&&t.setDisabled(!0),t.$c.trigger("tbwinit")})},addBtnDef:function(t,e){this.btnsDef[t]=e},setupUrlPrefix:function(){var t=this.o.urlProtocol;if(t)return"string"!=typeof t?"https://":/:\/\/$/.test(t)?t:t+"://"},buildEditor:function(){var t=this,i=t.o.prefix,r="";t.$box=n("<div/>",{"class":i+"box "+i+"editor-visible "+i+t.o.lang+" trumbowyg"}),t.isTextarea=t.$ta.is("textarea"),t.isTextarea?(r=t.$ta.val(),t.$ed=n("<div/>"),t.$box.insertAfter(t.$ta).append(t.$ed,t.$ta)):(t.$ed=t.$ta,r=t.$ed.html(),t.$ta=n("<textarea/>",{name:t.$ta.attr("id"),height:t.height}).val(r),t.$box.insertAfter(t.$ed).append(t.$ta,t.$ed),t.syncCode()),t.$ta.addClass(i+"textarea").attr("tabindex",-1),t.$ed.addClass(i+"editor").attr({contenteditable:!0,dir:t.lang._dir||"ltr"}).html(r),t.o.tabindex&&t.$ed.attr("tabindex",t.o.tabindex),t.$c.is("[placeholder]")&&t.$ed.attr("placeholder",t.$c.attr("placeholder")),t.$c.is("[spellcheck]")&&t.$ed.attr("spellcheck",t.$c.attr("spellcheck")),t.o.resetCss&&t.$ed.addClass(i+"reset-css"),t.o.autogrow||t.$ta.add(t.$ed).css({height:t.height}),t.semanticCode(),t.o.autogrowOnEnter&&t.$ed.addClass(i+"autogrow-on-enter");var a,o=!1,s=!1,l="keyup";t.$ed.on("dblclick","img",t.o.imgDblClickHandler).on("keydown",function(e){if((e.ctrlKey||e.metaKey)&&!e.altKey){o=!0;var i=t.keys[String.fromCharCode(e.which).toUpperCase()];try{return t.execCmd(i.fn,i.param),!1}catch(n){}}}).on("compositionstart compositionupdate",function(){s=!0}).on(l+" compositionend",function(e){if("compositionend"===e.type)s=!1;else if(s)return;var i=e.which;if(!(i>=37&&i<=40)){if(!e.ctrlKey&&!e.metaKey||89!==i&&90!==i)if(o||17===i)"undefined"==typeof e.which&&t.semanticCode(!1,!1,!0);else{var n=!t.isIE||"compositionend"===e.type;t.semanticCode(!1,n&&13===i),t.$c.trigger("tbwchange")}else t.$c.trigger("tbwchange");setTimeout(function(){o=!1},50)}}).on("mouseup keydown keyup",function(e){(!e.ctrlKey&&!e.metaKey||e.altKey)&&setTimeout(function(){o=!1},50),clearTimeout(a),a=setTimeout(function(){t.updateButtonPaneStatus()},50)}).on("focus blur",function(e){if(t.$c.trigger("tbw"+e.type),"blur"===e.type&&n("."+i+"active-button",t.$btnPane).removeClass(i+"active-button "+i+"active"),t.o.autogrowOnEnter){if(t.autogrowOnEnterDontClose)return;"focus"===e.type?(t.autogrowOnEnterWasFocused=!0,t.autogrowEditorOnEnter()):t.o.autogrow||(t.$ed.css({height:t.$ed.css("min-height")}),t.$c.trigger("tbwresize"))}}).on("cut",function(){setTimeout(function(){t.semanticCode(!1,!0),t.$c.trigger("tbwchange")},0)}).on("paste",function(i){if(t.o.removeformatPasted){i.preventDefault(),e.getSelection&&e.getSelection().deleteFromDocument&&e.getSelection().deleteFromDocument();try{var r=e.clipboardData.getData("Text");try{t.doc.selection.createRange().pasteHTML(r)}catch(a){t.doc.getSelection().getRangeAt(0).insertNode(t.doc.createTextNode(r))}t.$c.trigger("tbwchange",i)}catch(o){t.execCmd("insertText",(i.originalEvent||i).clipboardData.getData("text/plain"))}}n.each(t.pasteHandlers,function(t,e){e(i)}),setTimeout(function(){t.semanticCode(!1,!0),t.$c.trigger("tbwpaste",i)},0)}),t.$ta.on("keyup",function(){t.$c.trigger("tbwchange")}).on("paste",function(){setTimeout(function(){t.$c.trigger("tbwchange")},0)}),t.$box.on("keydown",function(e){if(27===e.which&&1===n("."+i+"modal-box",t.$box).length)return t.closeModal(),!1})},autogrowEditorOnEnter:function(){var t=this;t.$ed.removeClass("autogrow-on-enter");var e=t.$ed[0].clientHeight;t.$ed.height("auto");var i=t.$ed[0].scrollHeight;t.$ed.addClass("autogrow-on-enter"),e!==i&&(t.$ed.height(e),setTimeout(function(){t.$ed.css({height:i}),t.$c.trigger("tbwresize")},0))},buildBtnPane:function(){var t=this,e=t.o.prefix,i=t.$btnPane=n("<div/>",{"class":e+"button-pane"});n.each(t.o.btns,function(r,a){n.isArray(a)||(a=[a]);var o=n("<div/>",{"class":e+"button-group "+(a.indexOf("fullscreen")>=0?e+"right":"")});n.each(a,function(e,i){try{t.isSupportedBtn(i)&&o.append(t.buildBtn(i))}catch(n){}}),o.html().trim().length>0&&i.append(o)}),t.$box.prepend(i)},buildBtn:function(t){var e=this,i=e.o.prefix,r=e.btnsDef[t],a=r.dropdown,o=null==r.hasIcon||r.hasIcon,s=e.lang[t]||t,l=n("<button/>",{type:"button","class":i+t+"-button "+(r["class"]||"")+(o?"":" "+i+"textual-button"),html:e.hasSvg&&o?'<svg><use xlink:href="'+e.svgPath+"#"+i+(r.ico||t).replace(/([A-Z]+)/g,"-$1").toLowerCase()+'"/></svg>':e.hideButtonTexts?"":r.text||r.title||e.lang[t]||t,title:(r.title||r.text||s)+(r.key?" (Ctrl + "+r.key+")":""),tabindex:-1,mousedown:function(){return a&&!n("."+t+"-"+i+"dropdown",e.$box).is(":hidden")||n("body",e.doc).trigger("mousedown"),!((e.$btnPane.hasClass(i+"disable")||e.$box.hasClass(i+"disabled"))&&!n(this).hasClass(i+"active")&&!n(this).hasClass(i+"not-disable"))&&(e.execCmd(!!a&&"dropdown"||r.fn||t,r.param||t,r.forceCss),!1)}});if(a){l.addClass(i+"open-dropdown");var u=i+"dropdown",h={"class":u+"-"+t+" "+u+" "+i+"fixed-top"};h["data-"+u]=t;var c=n("<div/>",h);n.each(a,function(t,i){e.btnsDef[i]&&e.isSupportedBtn(i)&&c.append(e.buildSubBtn(i))}),e.$box.append(c.hide())}else r.key&&(e.keys[r.key]={fn:r.fn||t,param:r.param||t});return a||(e.tagToButton[(r.tag||t).toLowerCase()]=t),l},buildSubBtn:function(t){var e=this,i=e.o.prefix,r=e.btnsDef[t],a=null==r.hasIcon||r.hasIcon;return r.key&&(e.keys[r.key]={fn:r.fn||t,param:r.param||t}),e.tagToButton[(r.tag||t).toLowerCase()]=t,n("<button/>",{type:"button","class":i+t+"-dropdown-button"+(r.ico?" "+i+r.ico+"-button":""),html:e.hasSvg&&a?'<svg><use xlink:href="'+e.svgPath+"#"+i+(r.ico||t).replace(/([A-Z]+)/g,"-$1").toLowerCase()+'"/></svg>'+(r.text||r.title||e.lang[t]||t):r.text||r.title||e.lang[t]||t,title:r.key?" (Ctrl + "+r.key+")":null, style:r.style||null,mousedown:function(){return n("body",e.doc).trigger("mousedown"),e.execCmd(r.fn||t,r.param||t,r.forceCss),!1}})},isSupportedBtn:function(t){try{return this.btnsDef[t].isSupported()}catch(e){}return!0},buildOverlay:function(){var t=this;return t.$overlay=n("<div/>",{"class":t.o.prefix+"overlay"}).appendTo(t.$box),t.$overlay},showOverlay:function(){var t=this;n(e).trigger("scroll"),t.$overlay.fadeIn(200),t.$box.addClass(t.o.prefix+"box-blur")},hideOverlay:function(){var t=this;t.$overlay.fadeOut(50),t.$box.removeClass(t.o.prefix+"box-blur")},fixedBtnPaneEvents:function(){var t=this,i=t.o.fixedFullWidth,r=t.$box;t.o.fixedBtnPane&&(t.isFixed=!1,n(e).on("scroll."+t.eventNamespace+" resize."+t.eventNamespace,function(){if(r){t.syncCode();var a=n(e).scrollTop(),o=r.offset().top+1,s=t.$btnPane,l=s.outerHeight()-2;a-o>0&&a-o-t.height<0?(t.isFixed||(t.isFixed=!0,s.css({position:"fixed",top:0,left:i?"0":"auto",zIndex:7}),n([t.$ta,t.$ed]).css({marginTop:s.height()})),s.css({width:i?"100%":r.width()-1+"px"}),n("."+t.o.prefix+"fixed-top",r).css({position:i?"fixed":"absolute",top:i?l:l+(a-o)+"px",zIndex:15})):t.isFixed&&(t.isFixed=!1,s.removeAttr("style"),n([t.$ta,t.$ed]).css({marginTop:0}),n("."+t.o.prefix+"fixed-top",r).css({position:"absolute",top:l}))}}))},setDisabled:function(t){var e=this,i=e.o.prefix;e.disabled=t,t?e.$ta.attr("disabled",!0):e.$ta.removeAttr("disabled"),e.$box.toggleClass(i+"disabled",t),e.$ed.attr("contenteditable",!t)},destroy:function(){var t=this,i=t.o.prefix;t.isTextarea?t.$box.after(t.$ta.css({height:""}).val(t.html()).removeClass(i+"textarea").show()):t.$box.after(t.$ed.css({height:""}).removeClass(i+"editor").removeAttr("contenteditable").removeAttr("dir").html(t.html()).show()),t.$ed.off("dblclick","img"),t.destroyPlugins(),t.$box.remove(),t.$c.removeData("trumbowyg"),n("body").removeClass(i+"body-fullscreen"),t.$c.trigger("tbwclose"),n(e).off("scroll."+t.eventNamespace+" resize."+t.eventNamespace)},empty:function(){this.$ta.val(""),this.syncCode(!0)},toggle:function(){var t=this,e=t.o.prefix;t.o.autogrowOnEnter&&(t.autogrowOnEnterDontClose=!t.$box.hasClass(e+"editor-hidden")),t.semanticCode(!1,!0),setTimeout(function(){t.doc.activeElement.blur(),t.$box.toggleClass(e+"editor-hidden "+e+"editor-visible"),t.$btnPane.toggleClass(e+"disable"),n("."+e+"viewHTML-button",t.$btnPane).toggleClass(e+"active"),t.$box.hasClass(e+"editor-visible")?t.$ta.attr("tabindex",-1):t.$ta.removeAttr("tabindex"),t.o.autogrowOnEnter&&!t.autogrowOnEnterDontClose&&t.autogrowEditorOnEnter()},0)},dropdown:function(t){var i=this,r=i.doc,a=i.o.prefix,o=n("[data-"+a+"dropdown="+t+"]",i.$box),s=n("."+a+t+"-button",i.$btnPane),l=o.is(":hidden");if(n("body",r).trigger("mousedown"),l){var u=s.offset().left;s.addClass(a+"active"),o.css({position:"absolute",top:s.offset().top-i.$btnPane.offset().top+s.outerHeight(),left:i.o.fixedFullWidth&&i.isFixed?u+"px":u-i.$btnPane.offset().left+"px"}).show(),n(e).trigger("scroll"),n("body",r).on("mousedown."+i.eventNamespace,function(t){o.is(t.target)||(n("."+a+"dropdown",i.$box).hide(),n("."+a+"active",i.$btnPane).removeClass(a+"active"),n("body",r).off("mousedown."+i.eventNamespace))})}},html:function(t){var e=this;return null!=t?(e.$ta.val(t),e.syncCode(!0),e.$c.trigger("tbwchange"),e):e.$ta.val()},syncTextarea:function(){var t=this;t.$ta.val(t.$ed.text().trim().length>0||t.$ed.find("hr,img,embed,iframe,input").length>0?t.$ed.html():"")},syncCode:function(t){var e=this;if(!t&&e.$ed.is(":visible"))e.syncTextarea();else{var i=n("<div>").html(e.$ta.val()),r=n("<div>").append(i);n(e.o.tagsToRemove.join(","),r).remove(),e.$ed.html(r.contents().html())}if(e.o.autogrow&&(e.height=e.$ed.height(),e.height!==e.$ta.css("height")&&(e.$ta.css({height:e.height}),e.$c.trigger("tbwresize"))),e.o.autogrowOnEnter){e.$ed.height("auto");var a=e.autogrowOnEnterWasFocused?e.$ed[0].scrollHeight:e.$ed.css("min-height");a!==e.$ta.css("height")&&(e.$ed.css({height:a}),e.$c.trigger("tbwresize"))}},semanticCode:function(t,e,i){var r=this;if(r.saveRange(),r.syncCode(t),r.o.semantic){if(r.semanticTag("b"),r.semanticTag("i"),r.semanticTag("s"),r.semanticTag("strike"),e){var a=r.o.inlineElementsSelector,o=":not("+a+")";r.$ed.contents().filter(function(){return 3===this.nodeType&&this.nodeValue.trim().length>0}).wrap("<span data-tbw/>");var s=function(t){if(0!==t.length){var e=t.nextUntil(o).addBack().wrapAll("<p/>").parent(),i=e.nextAll(a).first();e.next("br").remove(),s(i)}};s(r.$ed.children(a).first()),r.semanticTag("div",!0),r.$ed.find("p").filter(function(){return(!r.range||this!==r.range.startContainer)&&(0===n(this).text().trim().length&&0===n(this).children().not("br,span").length)}).contents().unwrap(),n("[data-tbw]",r.$ed).contents().unwrap(),r.$ed.find("p:empty").remove()}i||r.restoreRange(),r.syncTextarea()}},semanticTag:function(t,e){var i;if(null!=this.o.semantic&&"object"==typeof this.o.semantic&&this.o.semantic.hasOwnProperty(t))i=this.o.semantic[t];else{if(this.o.semantic!==!0||!this.DEFAULT_SEMANTIC_MAP.hasOwnProperty(t))return;i=this.DEFAULT_SEMANTIC_MAP[t]}n(t,this.$ed).each(function(){var t=n(this);t.wrap("<"+i+"/>"),e&&n.each(t.prop("attributes"),function(){t.parent().attr(this.name,this.value)}),t.contents().unwrap()})},createLink:function(){for(var t,e,i,r=this,a=r.doc.getSelection(),o=a.focusNode,s=(new XMLSerializer).serializeToString(a.getRangeAt(0).cloneContents());["A","DIV"].indexOf(o.nodeName)<0;)o=o.parentNode;if(o&&"A"===o.nodeName){var l=n(o);s=l.text(),t=l.attr("href"),r.o.minimalLinks||(e=l.attr("title"),i=l.attr("target"));var u=r.doc.createRange();u.selectNode(o),a.removeAllRanges(),a.addRange(u)}r.saveRange();var h={url:{label:"URL",required:!0,value:t},text:{label:r.lang.text,value:s}};r.o.minimalLinks||Object.assign(h,{title:{label:r.lang.title,value:e},target:{label:r.lang.target,value:i}}),r.openModalInsert(r.lang.createLink,h,function(t){var e=r.prependUrlPrefix(t.url);if(!e.length)return!1;var i=n(['<a href="',t.url,'">',t.text||t.url,"</a>"].join(""));return r.o.minimalLinks||(t.title.length>0&&i.attr("title",t.title),t.target.length>0&&i.attr("target",t.target)),r.range.deleteContents(),r.range.insertNode(i[0]),r.syncCode(),r.$c.trigger("tbwchange"),!0})},prependUrlPrefix:function(t){var e=this;if(!e.urlPrefix)return t;const i=/^([a-z][-+.a-z0-9]*:|\/|#)/i;if(i.test(t))return t;const n=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return n.test(t)?"mailto:"+t:e.urlPrefix+t},unlink:function(){var t=this,e=t.doc.getSelection(),i=e.focusNode;if(e.isCollapsed){for(;["A","DIV"].indexOf(i.nodeName)<0;)i=i.parentNode;if(i&&"A"===i.nodeName){var n=t.doc.createRange();n.selectNode(i),e.removeAllRanges(),e.addRange(n)}}t.execCmd("unlink",void 0,void 0,!0)},insertImage:function(){var t=this;t.saveRange();var e={url:{label:"URL",required:!0},alt:{label:t.lang.description,value:t.getRangeText()}};t.o.imageWidthModalEdit&&(e.width={}),t.openModalInsert(t.lang.insertImage,e,function(e){t.execCmd("insertImage",e.url);var i=n('img[src="'+e.url+'"]:not([alt])',t.$box);return i.attr("alt",e.alt),t.o.imageWidthModalEdit&&i.attr({width:e.width}),t.syncCode(),t.$c.trigger("tbwchange"),!0})},fullscreen:function(){var t,i=this,r=i.o.prefix,a=r+"fullscreen";i.$box.toggleClass(a),t=i.$box.hasClass(a),n("body").toggleClass(r+"body-fullscreen",t),n(e).trigger("scroll"),i.$c.trigger("tbw"+(t?"open":"close")+"fullscreen")},execCmd:function(t,e,i,n){var r=this;n=!!n||"","dropdown"!==t&&r.$ed.focus();try{r.doc.execCommand("styleWithCSS",!1,i||!1)}catch(a){}try{r[t+n](e)}catch(a){try{t(e)}catch(o){"insertHorizontalRule"===t?e=void 0:"formatBlock"===t&&r.isIE&&(e="<"+e+">"),r.doc.execCommand(t,!1,e),r.syncCode(),r.semanticCode(!1,!0)}"dropdown"!==t&&(r.updateButtonPaneStatus(),r.$c.trigger("tbwchange"))}},openModal:function(t,i){var o=this,s=o.o.prefix;if(n("."+s+"modal-box",o.$box).length>0)return!1;o.o.autogrowOnEnter&&(o.autogrowOnEnterDontClose=!0),o.saveRange(),o.showOverlay(),o.$btnPane.addClass(s+"disable");var l=n("<div/>",{"class":s+"modal "+s+"fixed-top"}).css({top:o.$btnPane.height()}).appendTo(o.$box);o.$overlay.one("click",function(){return l.trigger(a),!1});var u=n("<form/>",{action:"",html:i}).on("submit",function(){return l.trigger(r),!1}).on("reset",function(){return l.trigger(a),!1}).on("submit reset",function(){o.o.autogrowOnEnter&&(o.autogrowOnEnterDontClose=!1)}),h=n("<div/>",{"class":s+"modal-box",html:u}).css({top:"-"+o.$btnPane.outerHeight()+"px",opacity:0}).appendTo(l).animate({top:0,opacity:1},100);return n("<span/>",{text:t,"class":s+"modal-title"}).prependTo(h),l.height(h.outerHeight()+10),n("input:first",h).focus(),o.buildModalBtn("submit",h),o.buildModalBtn("reset",h),n(e).trigger("scroll"),l},buildModalBtn:function(t,e){var i=this,r=i.o.prefix;return n("<button/>",{"class":r+"modal-button "+r+"modal-"+t,type:t,text:i.lang[t]||t}).appendTo(n("form",e))},closeModal:function(){var t=this,e=t.o.prefix;t.$btnPane.removeClass(e+"disable"),t.$overlay.off();var i=n("."+e+"modal-box",t.$box);i.animate({top:"-"+i.height()},100,function(){i.parent().remove(),t.hideOverlay()}),t.restoreRange()},openModalInsert:function(t,e,i){var o=this,s=o.o.prefix,l=o.lang,u="";return n.each(e,function(t,e){var i=e.label||t,n=e.name||t,r=e.attributes||{},a=Object.keys(r).map(function(t){return t+'="'+r[t]+'"'}).join(" ");u+='<label><input type="'+(e.type||"text")+'" name="'+n+'"'+("checkbox"===e.type&&e.value?' checked="checked"':' value="'+(e.value||"").replace(/"/g,"""))+'"'+a+'><span class="'+s+'input-infos"><span>'+(l[i]?l[i]:i)+"</span></span></label>"}),o.openModal(t,u).on(r,function(){var t=n("form",n(this)),a=!0,s={};n.each(e,function(e,i){var r=i.name||e,l=n('input[name="'+r+'"]',t),u=l.attr("type");switch(u.toLowerCase()){case"checkbox":s[r]=l.is(":checked");break;case"radio":s[r]=l.filter(":checked").val();break;default:s[r]=n.trim(l.val())}i.required&&""===s[r]?(a=!1,o.addErrorOnModalField(l,o.lang.required)):i.pattern&&!i.pattern.test(s[r])&&(a=!1,o.addErrorOnModalField(l,i.patternError))}),a&&(o.restoreRange(),i(s,e)&&(o.syncCode(),o.$c.trigger("tbwchange"),o.closeModal(),n(this).off(r)))}).one(a,function(){n(this).off(r),o.closeModal()})},addErrorOnModalField:function(t,e){var i=this.o.prefix,r=t.parent();t.on("change keyup",function(){r.removeClass(i+"input-error")}),r.addClass(i+"input-error").find("input+span").append(n("<span/>",{"class":i+"msg-error",text:e}))},getDefaultImgDblClickHandler:function(){var t=this;return function(){var e=n(this),i=e.attr("src"),r="(Base64)";0===i.indexOf("data:image")&&(i=r);var a={url:{label:"URL",value:i,required:!0},alt:{label:t.lang.description,value:e.attr("alt")}};return t.o.imageWidthModalEdit&&(a.width={value:e.attr("width")?e.attr("width"):""}),t.openModalInsert(t.lang.insertImage,a,function(i){return i.src!==r&&e.attr({src:i.url}),e.attr({alt:i.alt}),t.o.imageWidthModalEdit&&(parseInt(i.width)>0?e.attr({width:i.width}):e.removeAttr("width")),!0}),!1}},saveRange:function(){var t=this,e=t.doc.getSelection();if(t.range=null,e.rangeCount){var i,n=t.range=e.getRangeAt(0),r=t.doc.createRange();r.selectNodeContents(t.$ed[0]),r.setEnd(n.startContainer,n.startOffset),i=(r+"").length,t.metaRange={start:i,end:i+(n+"").length}}},restoreRange:function(){var t,e=this,i=e.metaRange,n=e.range,r=e.doc.getSelection();if(n){if(i&&i.start!==i.end){var a,o=0,s=[e.$ed[0]],l=!1,u=!1;for(t=e.doc.createRange();!u&&(a=s.pop());)if(3===a.nodeType){var h=o+a.length;!l&&i.start>=o&&i.start<=h&&(t.setStart(a,i.start-o),l=!0),l&&i.end>=o&&i.end<=h&&(t.setEnd(a,i.end-o),u=!0),o=h}else for(var c=a.childNodes,d=c.length;d>0;)d-=1,s.push(c[d])}r.removeAllRanges(),r.addRange(t||n)}},getRangeText:function(){return this.range+""},updateButtonPaneStatus:function(){var t=this,e=t.o.prefix,i=t.getTagsRecursive(t.doc.getSelection().focusNode),r=e+"active-button "+e+"active";n("."+e+"active-button",t.$btnPane).removeClass(r),n.each(i,function(i,a){var o=t.tagToButton[a.toLowerCase()],s=n("."+e+o+"-button",t.$btnPane);if(s.length>0)s.addClass(r);else try{s=n("."+e+"dropdown ."+e+o+"-dropdown-button",t.$box);var l=s.parent().data("dropdown");n("."+e+l+"-button",t.$box).addClass(r)}catch(u){}})},getTagsRecursive:function(t,e){var i=this;if(e=e||(t&&t.tagName?[t.tagName]:[]),!t||!t.parentNode)return e;t=t.parentNode;var r=t.tagName;return"DIV"===r?e:("P"===r&&""!==t.style.textAlign&&e.push(t.style.textAlign),n.each(i.tagHandlers,function(n,r){e=e.concat(r(t,i))}),e.push(r),i.getTagsRecursive(t,e).filter(function(t){return null!=t}))},initPlugins:function(){var t=this;t.loadedPlugins=[],n.each(n.trumbowyg.plugins,function(e,i){i.shouldInit&&!i.shouldInit(t)||(i.init(t),i.tagHandler&&t.tagHandlers.push(i.tagHandler),t.loadedPlugins.push(i))})},destroyPlugins:function(){n.each(this.loadedPlugins,function(t,e){e.destroy&&e.destroy()})}}}(navigator,window,document,jQuery)},function(t,e,i){i(420),function(){"use strict";var t={tagClass:"badge badge-primary"},e={},i=$(".tags-input");i.each(function(){var i=$(this);getDataOptions(i)&&(e=getDataOptions(i)),$.extend(!0,e,t),i.tagsinput(e)})}()},function(t,e){!function(t){"use strict";function e(e,i){this.isInit=!0,this.itemsArray=[],this.$element=t(e),this.$element.hide(),this.isSelect="SELECT"===e.tagName,this.multiple=this.isSelect&&e.hasAttribute("multiple"),this.objectItems=i&&i.itemValue,this.placeholderText=e.hasAttribute("placeholder")?this.$element.attr("placeholder"):"",this.inputSize=Math.max(1,this.placeholderText.length),this.$container=t('<div class="bootstrap-tagsinput"></div>'),this.$input=t('<input type="text" placeholder="'+this.placeholderText+'"/>').appendTo(this.$container),this.$element.before(this.$container),this.build(i),this.isInit=!1}function i(t,e){if("function"!=typeof t[e]){var i=t[e];t[e]=function(t){return t[i]}}}function n(t,e){if("function"!=typeof t[e]){var i=t[e];t[e]=function(){return i}}}function r(t){return t?l.text(t).html():""}function a(t){var e=0;if(document.selection){t.focus();var i=document.selection.createRange();i.moveStart("character",-t.value.length),e=i.text.length}else(t.selectionStart||"0"==t.selectionStart)&&(e=t.selectionStart);return e}function o(e,i){var n=!1;return t.each(i,function(t,i){if("number"==typeof i&&e.which===i)return n=!0,!1;if(e.which===i.which){var r=!i.hasOwnProperty("altKey")||e.altKey===i.altKey,a=!i.hasOwnProperty("shiftKey")||e.shiftKey===i.shiftKey,o=!i.hasOwnProperty("ctrlKey")||e.ctrlKey===i.ctrlKey;if(r&&a&&o)return n=!0,!1}}),n}var s={tagClass:function(t){return"label label-info"},itemValue:function(t){return t?t.toString():t},itemText:function(t){return this.itemValue(t)},itemTitle:function(t){return null},freeInput:!0,addOnBlur:!0,maxTags:void 0,maxChars:void 0,confirmKeys:[13,44],delimiter:",",delimiterRegex:null,cancelConfirmKeysOnEmpty:!1,onTagExists:function(t,e){e.hide().fadeIn()},trimValue:!1,allowDuplicates:!1};e.prototype={constructor:e,add:function(e,i,n){var a=this;if(!(a.options.maxTags&&a.itemsArray.length>=a.options.maxTags)&&(e===!1||e)){if("string"==typeof e&&a.options.trimValue&&(e=t.trim(e)),"object"==typeof e&&!a.objectItems)throw"Can't add objects when itemValue option is not set";if(!e.toString().match(/^\s*$/)){if(a.isSelect&&!a.multiple&&a.itemsArray.length>0&&a.remove(a.itemsArray[0]),"string"==typeof e&&"INPUT"===this.$element[0].tagName){var o=a.options.delimiterRegex?a.options.delimiterRegex:a.options.delimiter,s=e.split(o);if(s.length>1){for(var l=0;l<s.length;l++)this.add(s[l],!0);return void(i||a.pushVal())}}var u=a.options.itemValue(e),h=a.options.itemText(e),c=a.options.tagClass(e),d=a.options.itemTitle(e),p=t.grep(a.itemsArray,function(t){return a.options.itemValue(t)===u})[0];if(!p||a.options.allowDuplicates){if(!(a.items().toString().length+e.length+1>a.options.maxInputLength)){var f=t.Event("beforeItemAdd",{item:e,cancel:!1,options:n});if(a.$element.trigger(f),!f.cancel){a.itemsArray.push(e);var g=t('<span class="tag '+r(c)+(null!==d?'" title="'+d:"")+'">'+r(h)+'<span data-role="remove"></span></span>');g.data("item",e),a.findInputWrapper().before(g),g.after(" ");var m=t('option[value="'+encodeURIComponent(u)+'"]',a.$element).length||t('option[value="'+r(u)+'"]',a.$element).length;if(a.isSelect&&!m){var v=t("<option selected>"+r(h)+"</option>");v.data("item",e),v.attr("value",u),a.$element.append(v)}i||a.pushVal(),a.options.maxTags!==a.itemsArray.length&&a.items().toString().length!==a.options.maxInputLength||a.$container.addClass("bootstrap-tagsinput-max"),t(".typeahead, .twitter-typeahead",a.$container).length&&a.$input.typeahead("val",""),this.isInit?a.$element.trigger(t.Event("itemAddedOnInit",{item:e,options:n})):a.$element.trigger(t.Event("itemAdded",{item:e,options:n}))}}}else if(a.options.onTagExists){var y=t(".tag",a.$container).filter(function(){return t(this).data("item")===p});a.options.onTagExists(e,y)}}}},remove:function(e,i,n){var r=this;if(r.objectItems&&(e="object"==typeof e?t.grep(r.itemsArray,function(t){return r.options.itemValue(t)==r.options.itemValue(e)}):t.grep(r.itemsArray,function(t){return r.options.itemValue(t)==e}),e=e[e.length-1]),e){var a=t.Event("beforeItemRemove",{item:e,cancel:!1,options:n});if(r.$element.trigger(a),a.cancel)return;t(".tag",r.$container).filter(function(){return t(this).data("item")===e}).remove(),t("option",r.$element).filter(function(){return t(this).data("item")===e}).remove(),t.inArray(e,r.itemsArray)!==-1&&r.itemsArray.splice(t.inArray(e,r.itemsArray),1)}i||r.pushVal(),r.options.maxTags>r.itemsArray.length&&r.$container.removeClass("bootstrap-tagsinput-max"),r.$element.trigger(t.Event("itemRemoved",{item:e,options:n}))},removeAll:function(){var e=this;for(t(".tag",e.$container).remove(),t("option",e.$element).remove();e.itemsArray.length>0;)e.itemsArray.pop();e.pushVal()},refresh:function(){var e=this;t(".tag",e.$container).each(function(){var i=t(this),n=i.data("item"),a=e.options.itemValue(n),o=e.options.itemText(n),s=e.options.tagClass(n);if(i.attr("class",null),i.addClass("tag "+r(s)),i.contents().filter(function(){return 3==this.nodeType})[0].nodeValue=r(o),e.isSelect){var l=t("option",e.$element).filter(function(){return t(this).data("item")===n});l.attr("value",a)}})},items:function(){return this.itemsArray},pushVal:function(){var e=this,i=t.map(e.items(),function(t){return e.options.itemValue(t).toString()});e.$element.val(i,!0).trigger("change")},build:function(e){var r=this;if(r.options=t.extend({},s,e),r.objectItems&&(r.options.freeInput=!1),i(r.options,"itemValue"),i(r.options,"itemText"),n(r.options,"tagClass"),r.options.typeahead){var l=r.options.typeahead||{};n(l,"source"),r.$input.typeahead(t.extend({},l,{source:function(e,i){function n(t){for(var e=[],n=0;n<t.length;n++){var o=r.options.itemText(t[n]);a[o]=t[n],e.push(o)}i(e)}this.map={};var a=this.map,o=l.source(e);t.isFunction(o.success)?o.success(n):t.isFunction(o.then)?o.then(n):t.when(o).then(n)},updater:function(t){return r.add(this.map[t]),this.map[t]},matcher:function(t){return t.toLowerCase().indexOf(this.query.trim().toLowerCase())!==-1},sorter:function(t){return t.sort()},highlighter:function(t){var e=new RegExp("("+this.query+")","gi");return t.replace(e,"<strong>$1</strong>")}}))}if(r.options.typeaheadjs){var u=null,h={},c=r.options.typeaheadjs;t.isArray(c)?(u=c[0],h=c[1]):h=c,r.$input.typeahead(u,h).on("typeahead:selected",t.proxy(function(t,e){h.valueKey?r.add(e[h.valueKey]):r.add(e),r.$input.typeahead("val","")},r))}r.$container.on("click",t.proxy(function(t){r.$element.attr("disabled")||r.$input.removeAttr("disabled"),r.$input.focus()},r)),r.options.addOnBlur&&r.options.freeInput&&r.$input.on("focusout",t.proxy(function(e){0===t(".typeahead, .twitter-typeahead",r.$container).length&&(r.add(r.$input.val()),r.$input.val(""))},r)),r.$container.on("keydown","input",t.proxy(function(e){var i=t(e.target),n=r.findInputWrapper();if(r.$element.attr("disabled"))return void r.$input.attr("disabled","disabled");switch(e.which){case 8:if(0===a(i[0])){var o=n.prev();o.length&&r.remove(o.data("item"))}break;case 46:if(0===a(i[0])){var s=n.next();s.length&&r.remove(s.data("item"))}break;case 37:var l=n.prev();0===i.val().length&&l[0]&&(l.before(n),i.focus());break;case 39:var u=n.next();0===i.val().length&&u[0]&&(u.after(n),i.focus())}var h=i.val().length;Math.ceil(h/5);i.attr("size",Math.max(this.inputSize,i.val().length))},r)),r.$container.on("keypress","input",t.proxy(function(e){var i=t(e.target);if(r.$element.attr("disabled"))return void r.$input.attr("disabled","disabled");var n=i.val(),a=r.options.maxChars&&n.length>=r.options.maxChars;r.options.freeInput&&(o(e,r.options.confirmKeys)||a)&&(0!==n.length&&(r.add(a?n.substr(0,r.options.maxChars):n),i.val("")),r.options.cancelConfirmKeysOnEmpty===!1&&e.preventDefault());var s=i.val().length;Math.ceil(s/5);i.attr("size",Math.max(this.inputSize,i.val().length))},r)),r.$container.on("click","[data-role=remove]",t.proxy(function(e){r.$element.attr("disabled")||r.remove(t(e.target).closest(".tag").data("item"))},r)),r.options.itemValue===s.itemValue&&("INPUT"===r.$element[0].tagName?r.add(r.$element.val()):t("option",r.$element).each(function(){r.add(t(this).attr("value"),!0)}))},destroy:function(){var t=this;t.$container.off("keypress","input"),t.$container.off("click","[role=remove]"),t.$container.remove(),t.$element.removeData("tagsinput"),t.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var e=this.$input[0],i=this.$container[0];e&&e.parentNode!==i;)e=e.parentNode;return t(e)}},t.fn.tagsinput=function(i,n,r){var a=[];return this.each(function(){var o=t(this).data("tagsinput");if(o)if(i||n){if(void 0!==o[i]){if(3===o[i].length&&void 0!==r)var s=o[i](n,null,r);else var s=o[i](n);void 0!==s&&a.push(s)}}else a.push(o);else o=new e(this,i),t(this).data("tagsinput",o),a.push(o),"SELECT"===this.tagName&&t("option",t(this)).attr("selected","selected"),t(this).val(t(this).val())}),"string"==typeof i?a.length>1?a:a[0]:a},t.fn.tagsinput.Constructor=e;var l=t("<div />");t(function(){t("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput()})}(window.jQuery)},function(t,e,i){i(422),function(){"use strict";function t(t){t.each(function(){var t={title:$.trim($(this).text())};$(this).data("eventObject",t),$(this).draggable({zIndex:1070,revert:!0,revertDuration:0})})}t($("#external-events div.external-event"));var e=new Date,i=e.getDate(),n=e.getMonth(),r=e.getFullYear();$("#calendar").fullCalendar({header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"},buttonText:{today:"today",month:"month",week:"week",day:"day"},events:[{title:"All Day Event",start:new Date(r,n,1),backgroundColor:"#f56954",borderColor:"#f56954"},{title:"Long Event",start:new Date(r,n,i-5),end:new Date(r,n,i-2),backgroundColor:"#f39c12",borderColor:"#f39c12"},{title:"Meeting",start:new Date(r,n,i,10,30),allDay:!1,backgroundColor:"#0073b7",borderColor:"#0073b7"},{title:"Lunch",start:new Date(r,n,i,12,0),end:new Date(r,n,i,14,0),allDay:!1,backgroundColor:"#00c0ef",borderColor:"#00c0ef"},{title:"Birthday Party",start:new Date(r,n,i+1,19,0),end:new Date(r,n,i+1,22,30),allDay:!1,backgroundColor:"#00a65a",borderColor:"#00a65a"},{title:"Click for Google",start:new Date(r,n,28),end:new Date(r,n,29),url:"http://google.com/",backgroundColor:"#3c8dbc",borderColor:"#3c8dbc"}],editable:!0,droppable:!0,drop:function(t,e){var i=$(this).data("eventObject"),n=$.extend({},i);n.start=t,n.allDay=e,n.backgroundColor=$(this).css("background-color"),n.borderColor=$(this).css("border-color"),$("#calendar").fullCalendar("renderEvent",n,!0),$("#drop-remove").is(":checked")&&$(this).remove()}});var a="#3c8dbc";$("#color-chooser-btn");$("#color-chooser > li > a").on("click",function(t){t.preventDefault(),a=$(this).css("color"),$("#add-new-event").css({"background-color":a,"border-color":a})}),$("#add-new-event").on("click",function(e){e.preventDefault();var i=$("#new-event").val();if(0!=i.length){var n=$("<div />");n.css({"background-color":a,"border-color":a,color:"#fff"}).addClass("external-event p-2 my-2 r-3 text-white"),n.html(i),$("#external-events").prepend(n),t(n),$("#new-event").val("")}})}()},function(t,e,i){!function(e,n){t.exports=n(i(1),i(13))}("undefined"!=typeof self?self:this,function(t,e){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=236)}([function(e,i){e.exports=t},,function(t,e){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};e.__extends=function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},function(t,i){t.exports=e},function(t,e,i){function n(t,e){e.left&&t.css({"border-left-width":1,"margin-left":e.left-1}),e.right&&t.css({"border-right-width":1,"margin-right":e.right-1})}function r(t){t.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function a(){pt("body").addClass("fc-not-allowed")}function o(){pt("body").removeClass("fc-not-allowed")}function s(t,e,i){var n=Math.floor(e/t.length),r=Math.floor(e-n*(t.length-1)),a=[],o=[],s=[],u=0;l(t),t.each(function(e,i){var l=e===t.length-1?r:n,h=pt(i).outerHeight(!0);h<l?(a.push(i),o.push(h),s.push(pt(i).height())):u+=h}),i&&(e-=u,n=Math.floor(e/a.length),r=Math.floor(e-n*(a.length-1))),pt(a).each(function(t,e){var i=t===a.length-1?r:n,l=o[t],u=s[t],h=i-(l-u);l<i&&pt(e).height(h)})}function l(t){t.height("")}function u(t){var e=0;return t.find("> *").each(function(t,i){var n=pt(i).outerWidth();n>e&&(e=n)}),e++,t.width(e),e}function h(t,e){var i,n=t.add(e);return n.css({position:"relative",left:-1}),i=t.outerHeight()-e.outerHeight(),n.css({position:"",left:""}),i}function c(t){var e=t.css("position"),i=t.parents().filter(function(){var t=pt(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&i.length?i:pt(t[0].ownerDocument||document)}function d(t,e){var i=t.offset(),n=i.left-(e?e.left:0),r=i.top-(e?e.top:0);return{left:n,right:n+t.outerWidth(),top:r,bottom:r+t.outerHeight()}}function p(t,e){var i=t.offset(),n=g(t),r=i.left+_(t,"border-left-width")+n.left-(e?e.left:0),a=i.top+_(t,"border-top-width")+n.top-(e?e.top:0);return{left:r,right:r+t[0].clientWidth,top:a,bottom:a+t[0].clientHeight}}function f(t,e){var i=t.offset(),n=i.left+_(t,"border-left-width")+_(t,"padding-left")-(e?e.left:0),r=i.top+_(t,"border-top-width")+_(t,"padding-top")-(e?e.top:0);return{left:n,right:n+t.width(),top:r,bottom:r+t.height()}}function g(t){var e,i=t[0].offsetWidth-t[0].clientWidth,n=t[0].offsetHeight-t[0].clientHeight;return i=m(i),n=m(n),e={left:0,right:0,top:0,bottom:n},v()&&"rtl"===t.css("direction")?e.left=i:e.right=i,e}function m(t){return t=Math.max(0,t),t=Math.round(t)}function v(){return null===ft&&(ft=y()),ft}function y(){var t=pt("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),e=t.children(),i=e.offset().left>t.offset().left;return t.remove(),i}function _(t,e){return parseFloat(t.css(e))||0}function b(t){return 1===t.which&&!t.ctrlKey}function x(t){var e=t.originalEvent.touches;return e&&e.length?e[0].pageX:t.pageX}function w(t){var e=t.originalEvent.touches;return e&&e.length?e[0].pageY:t.pageY}function M(t){return/^touch/.test(t.type)}function S(t){t.addClass("fc-unselectable").on("selectstart",D)}function k(t){t.removeClass("fc-unselectable").off("selectstart",D)}function D(t){t.preventDefault()}function T(t,e){var i={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return i.left<i.right&&i.top<i.bottom&&i}function L(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function C(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function I(t,e){return{left:t.left-e.left,top:t.top-e.top}}function A(t){var e,i,n=[],r=[];for("string"==typeof t?r=t.split(/\s*,\s*/):"function"==typeof t?r=[t]:pt.isArray(t)&&(r=t),e=0;e<r.length;e++)i=r[e],"string"==typeof i?n.push("-"===i.charAt(0)?{field:i.substring(1),order:-1}:{field:i,order:1}):"function"==typeof i&&n.push({func:i});return n}function P(t,e,i,n,r){var a,o;for(a=0;a<i.length;a++)if(o=E(t,e,i[a],n,r))return o;return 0}function E(t,e,i,n,r){if(i.func)return i.func(t,e);var a=t[i.field],o=e[i.field];return null==a&&n&&(a=n[i.field]),null==o&&r&&(o=r[i.field]),O(a,o)*(i.order||1)}function O(t,e){return t||e?null==e?-1:null==t?1:"string"===pt.type(t)||"string"===pt.type(e)?String(t).localeCompare(String(e)):t-e:0}function R(t,e){return dt.duration({days:t.clone().stripTime().diff(e.clone().stripTime(),"days"),ms:t.time()-e.time()})}function H(t,e){return dt.duration({days:t.clone().stripTime().diff(e.clone().stripTime(),"days")})}function z(t,e,i){return dt.duration(Math.round(t.diff(e,i,!0)),i)}function Y(t,i){var n,r,a;for(n=0;n<e.unitsDesc.length&&(r=e.unitsDesc[n],a=F(r,t,i),!(a>=1&&ut(a)));n++);return r}function N(t,e){var i=Y(t);return"week"===i&&"object"==typeof e&&e.days&&(i="day"),i}function F(t,e,i){return null!=i?i.diff(e,t,!0):dt.isDuration(e)?e.as(t):e.end.diff(e.start,t,!0)}function W(t,e,i){var n;return V(i)?(e-t)/i:(n=i.asMonths(),Math.abs(n)>=1&&ut(n)?e.diff(t,"months",!0)/n:e.diff(t,"days",!0)/i.asDays())}function B(t,e){var i,n;return V(t)||V(e)?t/e:(i=t.asMonths(),n=e.asMonths(),Math.abs(i)>=1&&ut(i)&&Math.abs(n)>=1&&ut(n)?i/n:t.asDays()/e.asDays())}function j(t,e){var i;return V(t)?dt.duration(t*e):(i=t.asMonths(),Math.abs(i)>=1&&ut(i)?dt.duration({months:i*e}):dt.duration({days:t.asDays()*e}))}function V(t){return Boolean(t.hours()||t.minutes()||t.seconds()||t.milliseconds())}function $(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function G(t){return"string"==typeof t&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(t)}function U(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=window.console;if(i&&i.log)return i.log.apply(i,t)}function q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=window.console;return i&&i.warn?i.warn.apply(i,t):U.apply(null,t)}function X(t,e){var i,n,r,a,o,s,l={};if(e)for(i=0;i<e.length;i++){for(n=e[i],r=[],a=t.length-1;a>=0;a--)if(o=t[a][n],"object"==typeof o)r.unshift(o);else if(void 0!==o){l[n]=o;break}r.length&&(l[n]=X(r))}for(i=t.length-1;i>=0;i--){s=t[i];for(n in s)n in l||(l[n]=s[n])}return l}function Z(t,e){for(var i in t)K(t,i)&&(e[i]=t[i])}function K(t,e){return gt.call(t,e)}function J(t,e,i){if(pt.isFunction(t)&&(t=[t]),t){var n=void 0,r=void 0;for(n=0;n<t.length;n++)r=t[n].apply(e,i)||r;return r}}function Q(t,e){for(var i=0,n=0;n<t.length;)e(t[n])?(t.splice(n,1),i++):n++;return i}function tt(t,e){for(var i=0,n=0;n<t.length;)t[n]===e?(t.splice(n,1),i++):n++;return i}function et(t,e){var i,n=t.length;if(null==n||n!==e.length)return!1;for(i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function it(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0;i<t.length;i++)if(void 0!==t[i])return t[i]}function nt(t){return(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function rt(t){return t.replace(/&.*?;/g,"")}function at(t){var e=[];return pt.each(t,function(t,i){null!=i&&e.push(t+":"+i)}),e.join(";")}function ot(t){var e=[];return pt.each(t,function(t,i){null!=i&&e.push(t+'="'+nt(i)+'"')}),e.join(" ")}function st(t){return t.charAt(0).toUpperCase()+t.slice(1); }function lt(t,e){return t-e}function ut(t){return t%1===0}function ht(t,e){var i=t[e];return function(){return i.apply(t,arguments)}}function ct(t,e,i){void 0===i&&(i=!1);var n,r,a,o,s,l=function(){var u=+new Date-o;u<e?n=setTimeout(l,e-u):(n=null,i||(s=t.apply(a,r),a=r=null))};return function(){a=this,r=arguments,o=+new Date;var u=i&&!n;return n||(n=setTimeout(l,e)),u&&(s=t.apply(a,r),a=r=null),s}}Object.defineProperty(e,"__esModule",{value:!0});var dt=i(0),pt=i(3);e.compensateScroll=n,e.uncompensateScroll=r,e.disableCursor=a,e.enableCursor=o,e.distributeHeight=s,e.undistributeHeight=l,e.matchCellWidths=u,e.subtractInnerElHeight=h,e.getScrollParent=c,e.getOuterRect=d,e.getClientRect=p,e.getContentRect=f,e.getScrollbarWidths=g;var ft=null;e.isPrimaryMouseButton=b,e.getEvX=x,e.getEvY=w,e.getEvIsTouch=M,e.preventSelection=S,e.allowSelection=k,e.preventDefault=D,e.intersectRects=T,e.constrainPoint=L,e.getRectCenter=C,e.diffPoints=I,e.parseFieldSpecs=A,e.compareByFieldSpecs=P,e.compareByFieldSpec=E,e.flexibleCompare=O,e.dayIDs=["sun","mon","tue","wed","thu","fri","sat"],e.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"],e.diffDayTime=R,e.diffDay=H,e.diffByUnit=z,e.computeGreatestUnit=Y,e.computeDurationGreatestUnit=N,e.divideRangeByDuration=W,e.divideDurationByDuration=B,e.multiplyDuration=j,e.durationHasTime=V,e.isNativeDate=$,e.isTimeString=G,e.log=U,e.warn=q;var gt={}.hasOwnProperty;e.mergeProps=X,e.copyOwnProps=Z,e.hasOwnProp=K,e.applyAll=J,e.removeMatching=Q,e.removeExact=tt,e.isArraysEqual=et,e.firstDefined=it,e.htmlEscape=nt,e.stripHtmlEntities=rt,e.cssToStr=at,e.attrsToStr=ot,e.capitaliseFirstLetter=st,e.compareNumbers=lt,e.isInt=ut,e.proxy=ht,e.debounce=ct},function(t,e,i){function n(t,e){return t.startMs-e.startMs}Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),a=i(10),o=function(){function t(t,e){this.isStart=!0,this.isEnd=!0,r.isMoment(t)&&(t=t.clone().stripZone()),r.isMoment(e)&&(e=e.clone().stripZone()),t&&(this.startMs=t.valueOf()),e&&(this.endMs=e.valueOf())}return t.invertRanges=function(e,i){var r,a,o=[],s=i.startMs;for(e.sort(n),r=0;r<e.length;r++)a=e[r],a.startMs>s&&o.push(new t(s,a.startMs)),a.endMs>s&&(s=a.endMs);return s<i.endMs&&o.push(new t(s,i.endMs)),o},t.prototype.intersect=function(e){var i=this.startMs,n=this.endMs,r=null;return null!=e.startMs&&(i=null==i?e.startMs:Math.max(i,e.startMs)),null!=e.endMs&&(n=null==n?e.endMs:Math.min(n,e.endMs)),(null==i||null==n||i<n)&&(r=new t(i,n),r.isStart=this.isStart&&i===this.startMs,r.isEnd=this.isEnd&&n===this.endMs),r},t.prototype.intersectsWith=function(t){return(null==this.endMs||null==t.startMs||this.endMs>t.startMs)&&(null==this.startMs||null==t.endMs||this.startMs<t.endMs)},t.prototype.containsRange=function(t){return(null==this.startMs||null!=t.startMs&&t.startMs>=this.startMs)&&(null==this.endMs||null!=t.endMs&&t.endMs<=this.endMs)},t.prototype.containsDate=function(t){var e=t.valueOf();return(null==this.startMs||e>=this.startMs)&&(null==this.endMs||e<this.endMs)},t.prototype.constrainDate=function(t){var e=t.valueOf();return null!=this.startMs&&e<this.startMs&&(e=this.startMs),null!=this.endMs&&e>=this.endMs&&(e=this.endMs-1),e},t.prototype.equals=function(t){return this.startMs===t.startMs&&this.endMs===t.endMs},t.prototype.clone=function(){var e=new t(this.startMs,this.endMs);return e.isStart=this.isStart,e.isEnd=this.isEnd,e},t.prototype.getStart=function(){return null!=this.startMs?a["default"].utc(this.startMs).stripZone():null},t.prototype.getEnd=function(){return null!=this.endMs?a["default"].utc(this.endMs).stripZone():null},t.prototype.as=function(t){return r.utc(this.endMs).diff(r.utc(this.startMs),t,!0)},t}();e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(208),o=i(33),s=i(49),l=function(t){function e(i){var n=t.call(this)||this;return n.calendar=i,n.className=[],n.uid=String(e.uuid++),n}return n.__extends(e,t),e.parse=function(t,e){var i=new this(e);return!("object"!=typeof t||!i.applyProps(t))&&i},e.normalizeId=function(t){return t?String(t):null},e.prototype.fetch=function(t,e,i){},e.prototype.removeEventDefsById=function(t){},e.prototype.removeAllEventDefs=function(){},e.prototype.getPrimitive=function(t){},e.prototype.parseEventDefs=function(t){var e,i,n=[];for(e=0;e<t.length;e++)i=this.parseEventDef(t[e]),i&&n.push(i);return n},e.prototype.parseEventDef=function(t){var e=this.calendar.opt("eventDataTransform"),i=this.eventDataTransform;return e&&(t=e(t,this.calendar)),i&&(t=i(t,this.calendar)),s["default"].parse(t,this)},e.prototype.applyManualStandardProps=function(t){return null!=t.id&&(this.id=e.normalizeId(t.id)),r.isArray(t.className)?this.className=t.className:"string"==typeof t.className&&(this.className=t.className.split(/\s+/)),!0},e.uuid=0,e.defineStandardProps=a["default"].defineStandardProps,e.copyVerbatimStandardProps=a["default"].copyVerbatimStandardProps,e}(o["default"]);e["default"]=l,a["default"].mixInto(l),l.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(14),o=0,s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.listenTo=function(t,e,i){if("object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&this.listenTo(t,n,e[n]);else"string"==typeof e&&t.on(e+"."+this.getListenerNamespace(),r.proxy(i,this))},e.prototype.stopListeningTo=function(t,e){t.off((e||"")+"."+this.getListenerNamespace())},e.prototype.getListenerNamespace=function(){return null==this.listenerId&&(this.listenerId=o++),"_listener"+this.listenerId},e}(a["default"]);e["default"]=s},,,function(t,e,i){function n(t,e){return c.format.call(t,e)}function r(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n,r,h,c,d=t[0],p=1===t.length&&"string"==typeof d;return a.isMoment(d)||s.isNativeDate(d)||void 0===d?c=a.apply(null,t):(n=!1,r=!1,p?l.test(d)?(d+="-01",t=[d],n=!0,r=!0):(h=u.exec(d))&&(n=!h[5],r=!0):o.isArray(d)&&(r=!0),c=e||n?a.utc.apply(a,t):a.apply(null,t),n?(c._ambigTime=!0,c._ambigZone=!0):i&&(r?c._ambigZone=!0:p&&c.utcOffset(d))),c._fullCalendar=!0,c}Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),o=i(3),s=i(4),l=/^\s*\d{4}-\d\d$/,u=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,h=a.fn;e.newMomentProto=h;var c=o.extend({},h);e.oldMomentProto=c;var d=a.momentProperties;d.push("_fullCalendar"),d.push("_ambigTime"),d.push("_ambigZone"),e.oldMomentFormat=n;var p=function(){return r(arguments)};e["default"]=p,p.utc=function(){var t=r(arguments,!0);return t.hasTime()&&t.utc(),t},p.parseZone=function(){return r(arguments,!0,!0)},h.week=h.weeks=function(t){var e=this._locale._fullCalendar_weekCalc;return null==t&&"function"==typeof e?e(this):"ISO"===e?c.isoWeek.apply(this,arguments):c.week.apply(this,arguments)},h.time=function(t){if(!this._fullCalendar)return c.time.apply(this,arguments);if(null==t)return a.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,a.isDuration(t)||a.isMoment(t)||(t=a.duration(t));var e=0;return a.isDuration(t)&&(e=24*Math.floor(t.asDays())),this.hours(e+t.hours()).minutes(t.minutes()).seconds(t.seconds()).milliseconds(t.milliseconds())},h.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this},h.hasTime=function(){return!this._ambigTime},h.stripZone=function(){var t;return this._ambigZone||(t=this._ambigTime,this.utc(!0),this._ambigTime=t||!1,this._ambigZone=!0),this},h.hasZone=function(){return!this._ambigZone},h.local=function(t){return c.local.call(this,this._ambigZone||t),this._ambigTime=!1,this._ambigZone=!1,this},h.utc=function(t){return c.utc.call(this,t),this._ambigTime=!1,this._ambigZone=!1,this},h.utcOffset=function(t){return null!=t&&(this._ambigTime=!1,this._ambigZone=!1),c.utcOffset.apply(this,arguments)}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(14),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.on=function(t,e){return r(this).on(t,this._prepareIntercept(e)),this},e.prototype.one=function(t,e){return r(this).one(t,this._prepareIntercept(e)),this},e.prototype._prepareIntercept=function(t){var e=function(e,i){return t.apply(i.context||this,i.args||[])};return t.guid||(t.guid=r.guid++),e.guid=t.guid,e},e.prototype.off=function(t,e){return r(this).off(t,e),this},e.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return r(this).triggerHandler(t,{args:e}),this},e.prototype.triggerWith=function(t,e,i){return r(this).triggerHandler(t,{context:e,args:i}),this},e.prototype.hasHandlers=function(t){var e=r._data(this,"events");return e&&e[t]&&e[t].length>0},e}(a["default"]);e["default"]=o},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.isAllDay=!1,this.unzonedRange=t,this.isAllDay=e}return t.prototype.toLegacy=function(t){return{start:t.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:t.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},t}();e["default"]=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(34),a=i(209),o=i(17),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.buildInstances=function(){return[this.buildInstance()]},e.prototype.buildInstance=function(){return new a["default"](this,this.dateProfile)},e.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.dateProfile=this.dateProfile,e},e.prototype.rezone=function(){var t=this.source.calendar,e=this.dateProfile;this.dateProfile=new o["default"](t.moment(e.start),e.end?t.moment(e.end):null,t)},e.prototype.applyManualStandardProps=function(e){var i=t.prototype.applyManualStandardProps.call(this,e),n=o["default"].parse(e,this.source);return!!n&&(this.dateProfile=n,null!=e.date&&(this.miscProps.date=e.date),i)},e}(r["default"]);e["default"]=s,s.defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.mixInto=function(t){var e=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){t.prototype[i]||(t.prototype[i]=e.prototype[i])})},t.mixOver=function(t){var e=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){t.prototype[i]=e.prototype[i]})},t}();e["default"]=i},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.view=t._getView(),this.component=t}return t.prototype.opt=function(t){return this.view.opt(t)},t.prototype.end=function(){},t}();e["default"]=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.version="3.9.0",e.internalApiVersion=12;var n=i(4);e.applyAll=n.applyAll,e.debounce=n.debounce,e.isInt=n.isInt,e.htmlEscape=n.htmlEscape,e.cssToStr=n.cssToStr,e.proxy=n.proxy,e.capitaliseFirstLetter=n.capitaliseFirstLetter,e.getOuterRect=n.getOuterRect,e.getClientRect=n.getClientRect,e.getContentRect=n.getContentRect,e.getScrollbarWidths=n.getScrollbarWidths,e.preventDefault=n.preventDefault,e.parseFieldSpecs=n.parseFieldSpecs,e.compareByFieldSpecs=n.compareByFieldSpecs,e.compareByFieldSpec=n.compareByFieldSpec,e.flexibleCompare=n.flexibleCompare,e.computeGreatestUnit=n.computeGreatestUnit,e.divideRangeByDuration=n.divideRangeByDuration,e.divideDurationByDuration=n.divideDurationByDuration,e.multiplyDuration=n.multiplyDuration,e.durationHasTime=n.durationHasTime,e.log=n.log,e.warn=n.warn,e.removeExact=n.removeExact,e.intersectRects=n.intersectRects;var r=i(47);e.formatDate=r.formatDate,e.formatRange=r.formatRange,e.queryMostGranularFormatUnit=r.queryMostGranularFormatUnit;var a=i(31);e.datepickerLocale=a.datepickerLocale,e.locale=a.locale;var o=i(10);e.moment=o["default"];var s=i(11);e.EmitterMixin=s["default"];var l=i(7);e.ListenerMixin=l["default"];var u=i(48);e.Model=u["default"];var h=i(207);e.Constraints=h["default"];var c=i(5);e.UnzonedRange=c["default"];var d=i(12);e.ComponentFootprint=d["default"];var p=i(212);e.BusinessHourGenerator=p["default"];var f=i(34);e.EventDef=f["default"];var g=i(37);e.EventDefMutation=g["default"];var m=i(38);e.EventSourceParser=m["default"];var v=i(6);e.EventSource=v["default"];var y=i(51);e.defineThemeSystem=y.defineThemeSystem;var _=i(18);e.EventInstanceGroup=_["default"];var b=i(52);e.ArrayEventSource=b["default"];var x=i(215);e.FuncEventSource=x["default"];var w=i(216);e.JsonFeedEventSource=w["default"];var M=i(36);e.EventFootprint=M["default"];var S=i(33);e.Class=S["default"];var k=i(14);e.Mixin=k["default"];var D=i(53);e.CoordCache=D["default"];var T=i(54);e.DragListener=T["default"];var L=i(20);e.Promise=L["default"];var C=i(217);e.TaskQueue=C["default"];var I=i(218);e.RenderQueue=I["default"];var A=i(39);e.Scroller=A["default"];var P=i(19);e.Theme=P["default"];var E=i(219);e.DateComponent=E["default"];var O=i(40);e.InteractiveDateComponent=O["default"];var R=i(220);e.Calendar=R["default"];var H=i(41);e.View=H["default"];var z=i(22);e.defineView=z.defineView,e.getViewConfig=z.getViewConfig;var Y=i(55);e.DayTableMixin=Y["default"];var N=i(56);e.BusinessHourRenderer=N["default"];var F=i(42);e.EventRenderer=F["default"];var W=i(57);e.FillRenderer=W["default"];var B=i(58);e.HelperRenderer=B["default"];var j=i(222);e.ExternalDropping=j["default"];var V=i(223);e.EventResizing=V["default"];var $=i(59);e.EventPointing=$["default"];var G=i(224);e.EventDragging=G["default"];var U=i(225);e.DateSelecting=U["default"];var q=i(60);e.StandardInteractionsMixin=q["default"];var X=i(226);e.AgendaView=X["default"];var Z=i(227);e.TimeGrid=Z["default"];var K=i(61);e.DayGrid=K["default"];var J=i(62);e.BasicView=J["default"];var Q=i(229);e.MonthView=Q["default"];var tt=i(230);e.ListView=tt["default"]},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),r=function(){function t(t,e,i){this.start=t,this.end=e||null,this.unzonedRange=this.buildUnzonedRange(i)}return t.parse=function(e,i){var n=e.start||e.date,r=e.end;if(!n)return!1;var a=i.calendar,o=a.moment(n),s=r?a.moment(r):null,l=e.allDay,u=a.opt("forceEventDuration");return!!o.isValid()&&(!s||s.isValid()&&s.isAfter(o)||(s=null),null==l&&(l=i.allDayDefault,null==l&&(l=a.opt("allDayDefault"))),l===!0?(o.stripTime(),s&&s.stripTime()):l===!1&&(o.hasTime()||o.time(0),s&&!s.hasTime()&&s.time(0)),!s&&u&&(s=a.getDefaultEventEnd(!o.hasTime(),o)),new t(o,s,a))},t.isStandardProp=function(t){return"start"===t||"date"===t||"end"===t||"allDay"===t},t.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},t.prototype.buildUnzonedRange=function(t){var e=this.start.clone().stripZone().valueOf(),i=this.getEnd(t).stripZone().valueOf();return new n["default"](e,i)},t.prototype.getEnd=function(t){return this.end?this.end.clone():t.getDefaultEventEnd(this.isAllDay(),this.start)},t}();e["default"]=r},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),r=i(35),a=i(211),o=function(){function t(t){this.eventInstances=t||[]}return t.prototype.getAllEventRanges=function(t){return t?this.sliceNormalRenderRanges(t):this.eventInstances.map(r.eventInstanceToEventRange)},t.prototype.sliceRenderRanges=function(t){return this.isInverse()?this.sliceInverseRenderRanges(t):this.sliceNormalRenderRanges(t)},t.prototype.sliceNormalRenderRanges=function(t){var e,i,n,r=this.eventInstances,o=[];for(e=0;e<r.length;e++)i=r[e],n=i.dateProfile.unzonedRange.intersect(t),n&&o.push(new a["default"](n,i.def,i));return o},t.prototype.sliceInverseRenderRanges=function(t){var e=this.eventInstances.map(r.eventInstanceToUnzonedRange),i=this.getEventDef();return e=n["default"].invertRanges(e,t),e.map(function(t){return new a["default"](t,i)})},t.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},t.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},t}();e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=function(){function t(t){this.optionsManager=t,this.processIconOverride()}return t.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},t.prototype.setIconOverride=function(t){var e,i;if(n.isPlainObject(t)){e=n.extend({},this.iconClasses);for(i in t)e[i]=this.applyIconOverridePrefix(t[i]);this.iconClasses=e}else t===!1&&(this.iconClasses={})},t.prototype.applyIconOverridePrefix=function(t){var e=this.iconOverridePrefix;return e&&0!==t.indexOf(e)&&(t=e+t),t},t.prototype.getClass=function(t){return this.classes[t]||""},t.prototype.getIconClass=function(t){var e=this.iconClasses[t];return e?this.baseIconClass+" "+e:""},t.prototype.getCustomButtonIconClass=function(t){var e;return this.iconOverrideCustomButtonOption&&(e=t[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(e):""},t}();e["default"]=r,r.prototype.classes={},r.prototype.iconClasses={},r.prototype.baseIconClass="",r.prototype.iconOverridePrefix=""},function(t,e,i){function n(t,e){t.then=function(i){return"function"==typeof i?o.resolve(i(e)):t}}function r(t){t.then=function(e,i){return"function"==typeof i&&i(),t}}Object.defineProperty(e,"__esModule",{value:!0});var a=i(3),o={construct:function(t){var e=a.Deferred(),i=e.promise();return"function"==typeof t&&t(function(t){e.resolve(t),n(i,t)},function(){e.reject(),r(i)}),i},resolve:function(t){var e=a.Deferred().resolve(t),i=e.promise();return n(i,t),i},reject:function(){var t=a.Deferred().reject(),e=t.promise();return r(e),e}};e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(16),a=i(11),o=i(7);r.touchMouseIgnoreWait=500;var s=null,l=0,u=function(){function t(){this.isTouching=!1,this.mouseIgnoreDepth=0}return t.get=function(){return s||(s=new t,s.bind()),s},t.needed=function(){t.get(),l++},t.unneeded=function(){l--,l||(s.unbind(),s=null)},t.prototype.bind=function(){var t=this;this.listenTo(n(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(e){t.handleTouchMove(n.Event(e))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(e){t.handleScroll(n.Event(e))},!0)},t.prototype.unbind=function(){this.stopListeningTo(n(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy),window.removeEventListener("scroll",this.handleScrollProxy,!0)},t.prototype.handleTouchStart=function(t){this.stopTouch(t,!0),this.isTouching=!0,this.trigger("touchstart",t)},t.prototype.handleTouchMove=function(t){this.isTouching&&this.trigger("touchmove",t)},t.prototype.handleTouchCancel=function(t){this.isTouching&&(this.trigger("touchcancel",t),this.stopTouch(t))},t.prototype.handleTouchEnd=function(t){this.stopTouch(t)},t.prototype.handleMouseDown=function(t){this.shouldIgnoreMouse()||this.trigger("mousedown",t)},t.prototype.handleMouseMove=function(t){this.shouldIgnoreMouse()||this.trigger("mousemove",t)},t.prototype.handleMouseUp=function(t){this.shouldIgnoreMouse()||this.trigger("mouseup",t)},t.prototype.handleClick=function(t){this.shouldIgnoreMouse()||this.trigger("click",t)},t.prototype.handleSelectStart=function(t){this.trigger("selectstart",t)},t.prototype.handleContextMenu=function(t){this.trigger("contextmenu",t)},t.prototype.handleScroll=function(t){this.trigger("scroll",t)},t.prototype.stopTouch=function(t,e){void 0===e&&(e=!1),this.isTouching&&(this.isTouching=!1,this.trigger("touchend",t),e||this.startTouchMouseIgnore())},t.prototype.startTouchMouseIgnore=function(){var t=this,e=r.touchMouseIgnoreWait;e&&(this.mouseIgnoreDepth++,setTimeout(function(){t.mouseIgnoreDepth--},e))},t.prototype.shouldIgnoreMouse=function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)},t}();e["default"]=u,o["default"].mixInto(u),a["default"].mixInto(u)},function(t,e,i){function n(t,i){e.viewHash[t]=i}function r(t){return e.viewHash[t]}Object.defineProperty(e,"__esModule",{value:!0});var a=i(16);e.viewHash={},a.views=e.viewHash,e.defineView=n,e.getViewConfig=r},function(t,e,i){function n(t,e){return!t&&!e||!(!t||!e)&&(t.component===e.component&&r(t,e)&&r(e,t))}function r(t,e){for(var i in t)if(!/^(component|left|right|top|bottom)$/.test(i)&&t[i]!==e[i])return!1;return!0}Object.defineProperty(e,"__esModule",{value:!0});var a=i(2),o=i(4),s=i(54),l=function(t){function e(e,i){var n=t.call(this,i)||this;return n.component=e,n}return a.__extends(e,t),e.prototype.handleInteractionStart=function(e){var i,n,r,a=this.subjectEl;this.component.hitsNeeded(),this.computeScrollBounds(),e?(n={left:o.getEvX(e),top:o.getEvY(e)},r=n,a&&(i=o.getOuterRect(a),r=o.constrainPoint(r,i)),this.origHit=this.queryHit(r.left,r.top),a&&this.options.subjectCenter&&(this.origHit&&(i=o.intersectRects(this.origHit,i)||i),r=o.getRectCenter(i)),this.coordAdjust=o.diffPoints(r,n)):(this.origHit=null,this.coordAdjust=null),t.prototype.handleInteractionStart.call(this,e)},e.prototype.handleDragStart=function(e){var i;t.prototype.handleDragStart.call(this,e),i=this.queryHit(o.getEvX(e),o.getEvY(e)),i&&this.handleHitOver(i)},e.prototype.handleDrag=function(e,i,r){var a;t.prototype.handleDrag.call(this,e,i,r),a=this.queryHit(o.getEvX(r),o.getEvY(r)),n(a,this.hit)||(this.hit&&this.handleHitOut(),a&&this.handleHitOver(a))},e.prototype.handleDragEnd=function(e){this.handleHitDone(),t.prototype.handleDragEnd.call(this,e)},e.prototype.handleHitOver=function(t){var e=n(t,this.origHit);this.hit=t,this.trigger("hitOver",this.hit,e,this.origHit)},e.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},e.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},e.prototype.handleInteractionEnd=function(e,i){t.prototype.handleInteractionEnd.call(this,e,i),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},e.prototype.handleScrollEnd=function(){t.prototype.handleScrollEnd.call(this),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},e.prototype.queryHit=function(t,e){return this.coordAdjust&&(t+=this.coordAdjust.left,e+=this.coordAdjust.top),this.component.queryHit(t,e)},e}(s["default"]);e["default"]=l},,,,,,,,function(t,e,i){function n(t){s.each(f,function(e,i){null==t[e]&&(t[e]=i(t))})}function r(t,i,n){var r=e.localeOptionHash[t]||(e.localeOptionHash[t]={});r.isRTL=n.isRTL,r.weekNumberTitle=n.weekHeader,s.each(d,function(t,e){r[t]=e(n)});var a=s.datepicker;a&&(a.regional[i]=a.regional[t]=n,a.regional.en=a.regional[""],a.setDefaults(n))}function a(t,i){var n,r;n=e.localeOptionHash[t]||(e.localeOptionHash[t]={}),i&&(n=e.localeOptionHash[t]=h.mergeOptions([n,i])),r=o(t),s.each(p,function(t,e){null==n[t]&&(n[t]=e(r,n))}),h.globalDefaults.locale=t}function o(t){return l.localeData(t)||l.localeData("en")}Object.defineProperty(e,"__esModule",{value:!0});var s=i(3),l=i(0),u=i(16),h=i(32),c=i(4);e.localeOptionHash={},u.locales=e.localeOptionHash;var d={buttonText:function(t){return{prev:c.stripHtmlEntities(t.prevText),next:c.stripHtmlEntities(t.nextText),today:c.stripHtmlEntities(t.currentText)}},monthYearFormat:function(t){return t.showMonthAfterYear?"YYYY["+t.yearSuffix+"] MMMM":"MMMM YYYY["+t.yearSuffix+"]"}},p={dayOfMonthFormat:function(t,e){var i=t.longDateFormat("l");return i=i.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),e.isRTL?i+=" ddd":i="ddd "+i,i},mediumTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(t){return t.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"")}},f={smallDayDateFormat:function(t){return t.isRTL?"D dd":"dd D"},weekFormat:function(t){return t.isRTL?"w[ "+t.weekNumberTitle+"]":"["+t.weekNumberTitle+" ]w"},smallWeekFormat:function(t){return t.isRTL?"w["+t.weekNumberTitle+"]":"["+t.weekNumberTitle+"]w"}};e.populateInstanceComputableOptions=n,e.datepickerLocale=r,e.locale=a,e.getMomentLocaleData=o,a("en",h.englishDefaults)},function(t,e,i){function n(t){return r.mergeProps(t,a)}Object.defineProperty(e,"__esModule",{value:!0});var r=i(4);e.globalDefaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3},e.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},e.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var a=["header","footer","buttonText","buttonIcons","themeButtonIcons"];e.mergeOptions=n},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(4),a=function(){function t(){}return t.extend=function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(this);return r.copyOwnProps(t,e.prototype),e},t.mixin=function(t){r.copyOwnProps(t,this.prototype)},t}();e["default"]=a},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(208),a=function(){function t(t){this.source=t,this.className=[],this.miscProps={}}return t.parse=function(t,e){var i=new this(e);return!!i.applyProps(t)&&i},t.normalizeId=function(t){return String(t)},t.generateId=function(){return"_fc"+t.uuid++},t.prototype.clone=function(){var e=new this.constructor(this.source);return e.id=this.id,e.rawId=this.rawId,e.uid=this.uid,t.copyVerbatimStandardProps(this,e),e.className=this.className.slice(),e.miscProps=n.extend({},this.miscProps),e},t.prototype.hasInverseRendering=function(){return"inverse-background"===this.getRendering()},t.prototype.hasBgRendering=function(){var t=this.getRendering();return"inverse-background"===t||"background"===t},t.prototype.getRendering=function(){return null!=this.rendering?this.rendering:this.source.rendering},t.prototype.getConstraint=function(){return null!=this.constraint?this.constraint:null!=this.source.constraint?this.source.constraint:this.source.calendar.opt("eventConstraint")},t.prototype.getOverlap=function(){return null!=this.overlap?this.overlap:null!=this.source.overlap?this.source.overlap:this.source.calendar.opt("eventOverlap")},t.prototype.isStartExplicitlyEditable=function(){return null!=this.startEditable?this.startEditable:this.source.startEditable},t.prototype.isDurationExplicitlyEditable=function(){return null!=this.durationEditable?this.durationEditable:this.source.durationEditable},t.prototype.isExplicitlyEditable=function(){return null!=this.editable?this.editable:this.source.editable},t.prototype.toLegacy=function(){var e=n.extend({},this.miscProps);return e._id=this.uid,e.source=this.source,e.className=this.className.slice(),e.allDay=this.isAllDay(),null!=this.rawId&&(e.id=this.rawId),t.copyVerbatimStandardProps(this,e),e},t.prototype.applyManualStandardProps=function(e){return null!=e.id?this.id=t.normalizeId(this.rawId=e.id):this.id=t.generateId(),null!=e._id?this.uid=String(e._id):this.uid=t.generateId(),n.isArray(e.className)&&(this.className=e.className),"string"==typeof e.className&&(this.className=e.className.split(/\s+/)),!0},t.prototype.applyMiscProps=function(t){n.extend(this.miscProps,t)},t.uuid=0,t.defineStandardProps=r["default"].defineStandardProps,t.copyVerbatimStandardProps=r["default"].copyVerbatimStandardProps,t}();e["default"]=a,r["default"].mixInto(a),a.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(t,e,i){function n(t,e){var i,n=[];for(i=0;i<t.length;i++)n.push.apply(n,t[i].buildInstances(e));return n}function r(t){return new l["default"](t.dateProfile.unzonedRange,t.def,t)}function a(t){return new u["default"](new h["default"](t.unzonedRange,t.eventDef.isAllDay()),t.eventDef,t.eventInstance)}function o(t){return t.dateProfile.unzonedRange}function s(t){return t.componentFootprint}Object.defineProperty(e,"__esModule",{value:!0});var l=i(211),u=i(36),h=i(12);e.eventDefsToEventInstances=n,e.eventInstanceToEventRange=r,e.eventRangeToEventFootprint=a,e.eventInstanceToUnzonedRange=o,e.eventFootprintToComponentFootprint=s},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,i){this.componentFootprint=t,this.eventDef=e,i&&(this.eventInstance=i)}return t.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},t}();e["default"]=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(4),r=i(17),a=i(34),o=i(50),s=i(13),l=function(){function t(){}return t.createFromRawProps=function(e,i,s){var l,u,h,c,d=e.def,p={},f={},g={},m={},v=null,y=null;for(l in i)r["default"].isStandardProp(l)?p[l]=i[l]:d.isStandardProp(l)?f[l]=i[l]:d.miscProps[l]!==i[l]&&(g[l]=i[l]);return u=r["default"].parse(p,d.source),u&&(h=o["default"].createFromDiff(e.dateProfile,u,s)),f.id!==d.id&&(v=f.id),n.isArraysEqual(f.className,d.className)||(y=f.className),a["default"].copyVerbatimStandardProps(f,m),c=new t,c.eventDefId=v,c.className=y,c.verbatimStandardProps=m,c.miscProps=g,h&&(c.dateMutation=h),c},t.prototype.mutateSingle=function(t){var e;return this.dateMutation&&(e=t.dateProfile,t.dateProfile=this.dateMutation.buildNewDateProfile(e,t.source.calendar)),null!=this.eventDefId&&(t.id=a["default"].normalizeId(t.rawId=this.eventDefId)),this.className&&(t.className=this.className),this.verbatimStandardProps&&s["default"].copyVerbatimStandardProps(this.verbatimStandardProps,t),this.miscProps&&t.applyMiscProps(this.miscProps),e?function(){t.dateProfile=e}:function(){}},t.prototype.setDateMutation=function(t){t&&!t.isEmpty()?this.dateMutation=t:this.dateMutation=null},t.prototype.isEmpty=function(){return!this.dateMutation},t}();e["default"]=l},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={sourceClasses:[],registerClass:function(t){this.sourceClasses.unshift(t); },parse:function(t,e){var i,n,r=this.sourceClasses;for(i=0;i<r.length;i++)if(n=r[i].parse(t,e))return n}}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(4),o=i(33),s=function(t){function e(e){var i=t.call(this)||this;return e=e||{},i.overflowX=e.overflowX||e.overflow||"auto",i.overflowY=e.overflowY||e.overflow||"auto",i}return n.__extends(e,t),e.prototype.render=function(){this.el=this.renderEl(),this.applyOverflow()},e.prototype.renderEl=function(){return this.scrollEl=r('<div class="fc-scroller"></div>')},e.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},e.prototype.destroy=function(){this.el.remove()},e.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},e.prototype.lockOverflow=function(t){var e=this.overflowX,i=this.overflowY;t=t||this.getScrollbarWidths(),"auto"===e&&(e=t.top||t.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===i&&(i=t.left||t.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":e,"overflow-y":i})},e.prototype.setHeight=function(t){this.scrollEl.height(t)},e.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},e.prototype.setScrollTop=function(t){this.scrollEl.scrollTop(t)},e.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},e.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},e.prototype.getScrollbarWidths=function(){return a.getScrollbarWidths(this.scrollEl)},e}(o["default"]);e["default"]=s},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(4),o=i(219),s=i(21),l=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.segSelector=".fc-event-container > *",n.dateSelectingClass&&(n.dateClicking=new n.dateClickingClass(n)),n.dateSelectingClass&&(n.dateSelecting=new n.dateSelectingClass(n)),n.eventPointingClass&&(n.eventPointing=new n.eventPointingClass(n)),n.eventDraggingClass&&n.eventPointing&&(n.eventDragging=new n.eventDraggingClass(n,n.eventPointing)),n.eventResizingClass&&n.eventPointing&&(n.eventResizing=new n.eventResizingClass(n,n.eventPointing)),n.externalDroppingClass&&(n.externalDropping=new n.externalDroppingClass(n)),n}return n.__extends(e,t),e.prototype.setElement=function(e){t.prototype.setElement.call(this,e),this.dateClicking&&this.dateClicking.bindToEl(e),this.dateSelecting&&this.dateSelecting.bindToEl(e),this.bindAllSegHandlersToEl(e)},e.prototype.removeElement=function(){this.endInteractions(),t.prototype.removeElement.call(this)},e.prototype.executeEventUnrender=function(){this.endInteractions(),t.prototype.executeEventUnrender.call(this)},e.prototype.bindGlobalHandlers=function(){t.prototype.bindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.bindToDocument()},e.prototype.unbindGlobalHandlers=function(){t.prototype.unbindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.unbindFromDocument()},e.prototype.bindDateHandlerToEl=function(t,e,i){var n=this;this.el.on(e,function(t){if(!r(t.target).is(n.segSelector+":not(.fc-helper),"+n.segSelector+":not(.fc-helper) *,.fc-more,a[data-goto]"))return i.call(n,t)})},e.prototype.bindAllSegHandlersToEl=function(t){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(e){e&&e.bindToEl(t)})},e.prototype.bindSegHandlerToEl=function(t,e,i){var n=this;t.on(e,this.segSelector,function(t){var e=r(t.currentTarget);if(!e.is(".fc-helper")){var a=e.data("fc-seg");if(a&&!n.shouldIgnoreEventPointing())return i.call(n,a,t)}})},e.prototype.shouldIgnoreMouse=function(){return s["default"].get().shouldIgnoreMouse()},e.prototype.shouldIgnoreTouch=function(){var t=this._getView();return t.isSelected||t.selectedEvent},e.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},e.prototype.canStartSelection=function(t,e){return a.getEvIsTouch(e)&&!this.canStartResize(t,e)&&(this.isEventDefDraggable(t.footprint.eventDef)||this.isEventDefResizable(t.footprint.eventDef))},e.prototype.canStartDrag=function(t,e){return!this.canStartResize(t,e)&&this.isEventDefDraggable(t.footprint.eventDef)},e.prototype.canStartResize=function(t,e){var i=this._getView(),n=t.footprint.eventDef;return(!a.getEvIsTouch(e)||i.isEventDefSelected(n))&&this.isEventDefResizable(n)&&r(e.target).is(".fc-resizer")},e.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(t){t&&t.end()})},e.prototype.isEventDefDraggable=function(t){return this.isEventDefStartEditable(t)},e.prototype.isEventDefStartEditable=function(t){var e=t.isStartExplicitlyEditable();return null==e&&(e=this.opt("eventStartEditable"),null==e&&(e=this.isEventDefGenerallyEditable(t))),e},e.prototype.isEventDefGenerallyEditable=function(t){var e=t.isExplicitlyEditable();return null==e&&(e=this.opt("editable")),e},e.prototype.isEventDefResizableFromStart=function(t){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(t)},e.prototype.isEventDefResizableFromEnd=function(t){return this.isEventDefResizable(t)},e.prototype.isEventDefResizable=function(t){var e=t.isDurationExplicitlyEditable();return null==e&&(e=this.opt("eventDurationEditable"),null==e&&(e=this.isEventDefGenerallyEditable(t))),e},e.prototype.diffDates=function(t,e){return this.largeUnit?a.diffByUnit(t,e,this.largeUnit):a.diffDayTime(t,e)},e.prototype.isEventInstanceGroupAllowed=function(t){var e,i=this._getView(),n=this.dateProfile,r=this.eventRangesToEventFootprints(t.getAllEventRanges());for(e=0;e<r.length;e++)if(!n.validUnzonedRange.containsRange(r[e].componentFootprint.unzonedRange))return!1;return i.calendar.constraints.isEventInstanceGroupAllowed(t)},e.prototype.isExternalInstanceGroupAllowed=function(t){var e,i=this._getView(),n=this.dateProfile,r=this.eventRangesToEventFootprints(t.getAllEventRanges());for(e=0;e<r.length;e++)if(!n.validUnzonedRange.containsRange(r[e].componentFootprint.unzonedRange))return!1;for(e=0;e<r.length;e++)if(!i.calendar.constraints.isSelectionFootprintAllowed(r[e].componentFootprint))return!1;return!0},e}(o["default"]);e["default"]=l},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(0),o=i(4),s=i(218),l=i(221),u=i(40),h=i(21),c=i(5),d=function(t){function e(e,i){var n=t.call(this,null,i.options)||this;return n.batchRenderDepth=0,n.isSelected=!1,n.calendar=e,n.viewSpec=i,n.type=i.type,n.name=n.type,n.initRenderQueue(),n.initHiddenDays(),n.dateProfileGenerator=new n.dateProfileGeneratorClass(n),n.bindBaseRenderHandlers(),n.eventOrderSpecs=o.parseFieldSpecs(n.opt("eventOrder")),n.initialize&&n.initialize(),n}return n.__extends(e,t),e.prototype._getView=function(){return this},e.prototype.opt=function(t){return this.options[t]},e.prototype.initRenderQueue=function(){this.renderQueue=new s["default"]({event:this.opt("eventRenderWait")}),this.renderQueue.on("start",this.onRenderQueueStart.bind(this)),this.renderQueue.on("stop",this.onRenderQueueStop.bind(this)),this.on("before:change",this.startBatchRender),this.on("change",this.stopBatchRender)},e.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight(),this.addScroll(this.queryScroll())},e.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll(),this.calendar.thawContentHeight()},e.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},e.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},e.prototype.requestRender=function(t,e,i){this.renderQueue.queue(t,e,i)},e.prototype.whenSizeUpdated=function(t){this.renderQueue.isRunning?this.renderQueue.one("stop",t.bind(this)):t.call(this)},e.prototype.computeTitle=function(t){var e;return e=/^(year|month)$/.test(t.currentRangeUnit)?t.currentUnzonedRange:t.activeUnzonedRange,this.formatRange({start:this.calendar.msToMoment(e.startMs,t.isRangeAllDay),end:this.calendar.msToMoment(e.endMs,t.isRangeAllDay)},t.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(t),this.opt("titleRangeSeparator"))},e.prototype.computeTitleFormat=function(t){var e=t.currentRangeUnit;return"year"===e?"YYYY":"month"===e?this.opt("monthYearFormat"):t.currentUnzonedRange.as("days")>1?"ll":"LL"},e.prototype.setDate=function(t){var e=this.get("dateProfile"),i=this.dateProfileGenerator.build(t,void 0,!0);e&&e.activeUnzonedRange.equals(i.activeUnzonedRange)||this.set("dateProfile",i)},e.prototype.unsetDate=function(){this.unset("dateProfile")},e.prototype.fetchInitialEvents=function(t){var e=this.calendar,i=t.isRangeAllDay&&!this.usesMinMaxTime;return e.requestEvents(e.msToMoment(t.activeUnzonedRange.startMs,i),e.msToMoment(t.activeUnzonedRange.endMs,i))},e.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},e.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},e.prototype.setEvents=function(t){this.set("currentEvents",t),this.set("hasEvents",!0)},e.prototype.unsetEvents=function(){this.unset("currentEvents"),this.unset("hasEvents")},e.prototype.resetEvents=function(t){this.startBatchRender(),this.unsetEvents(),this.setEvents(t),this.stopBatchRender()},e.prototype.requestDateRender=function(t){var e=this;this.requestRender(function(){e.executeDateRender(t)},"date","init")},e.prototype.requestDateUnrender=function(){var t=this;this.requestRender(function(){t.executeDateUnrender()},"date","destroy")},e.prototype.executeDateRender=function(e){t.prototype.executeDateRender.call(this,e),this.render&&this.render(),this.trigger("datesRendered"),this.addScroll({isDateInit:!0}),this.startNowIndicator()},e.prototype.executeDateUnrender=function(){this.unselect(),this.stopNowIndicator(),this.trigger("before:datesUnrendered"),this.destroy&&this.destroy(),t.prototype.executeDateUnrender.call(this)},e.prototype.bindBaseRenderHandlers=function(){var t=this;this.on("datesRendered",function(){t.whenSizeUpdated(t.triggerViewRender)}),this.on("before:datesUnrendered",function(){t.triggerViewDestroy()})},e.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},e.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},e.prototype.requestEventsRender=function(t){var e=this;this.requestRender(function(){e.executeEventRender(t),e.whenSizeUpdated(e.triggerAfterEventsRendered)},"event","init")},e.prototype.requestEventsUnrender=function(){var t=this;this.requestRender(function(){t.triggerBeforeEventsDestroyed(),t.executeEventUnrender()},"event","destroy")},e.prototype.requestBusinessHoursRender=function(t){var e=this;this.requestRender(function(){e.renderBusinessHours(t)},"businessHours","init")},e.prototype.requestBusinessHoursUnrender=function(){var t=this;this.requestRender(function(){t.unrenderBusinessHours()},"businessHours","destroy")},e.prototype.bindGlobalHandlers=function(){t.prototype.bindGlobalHandlers.call(this),this.listenTo(h["default"].get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},e.prototype.unbindGlobalHandlers=function(){t.prototype.unbindGlobalHandlers.call(this),this.stopListeningTo(h["default"].get())},e.prototype.startNowIndicator=function(){var t,e,i,n=this;this.opt("nowIndicator")&&(t=this.getNowIndicatorUnit(),t&&(e=o.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),i=this.initialNowDate.clone().startOf(t).add(1,t).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){n.nowIndicatorTimeoutID=null,e(),i=+a.duration(1,t),i=Math.max(100,i),n.nowIndicatorIntervalID=setInterval(e,i)},i)))},e.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add((new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},e.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},e.prototype.updateSize=function(e,i,n){this.setHeight?this.setHeight(e,i):t.prototype.updateSize.call(this,e,i,n),this.updateNowIndicator()},e.prototype.addScroll=function(t){var e=this.queuedScroll||(this.queuedScroll={});r.extend(e,t)},e.prototype.popScroll=function(){this.applyQueuedScroll(),this.queuedScroll=null},e.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},e.prototype.queryScroll=function(){var t={};return this.isDatesRendered&&r.extend(t,this.queryDateScroll()),t},e.prototype.applyScroll=function(t){t.isDateInit&&this.isDatesRendered&&r.extend(t,this.computeInitialDateScroll()),this.isDatesRendered&&this.applyDateScroll(t)},e.prototype.computeInitialDateScroll=function(){return{}},e.prototype.queryDateScroll=function(){return{}},e.prototype.applyDateScroll=function(t){},e.prototype.reportEventDrop=function(t,e,i,n){var r=this.calendar.eventManager,o=r.mutateEventsWithId(t.def.id,e),s=e.dateMutation;s&&(t.dateProfile=s.buildNewDateProfile(t.dateProfile,this.calendar)),this.triggerEventDrop(t,s&&s.dateDelta||a.duration(),o,i,n)},e.prototype.triggerEventDrop=function(t,e,i,n,r){this.publiclyTrigger("eventDrop",{context:n[0],args:[t.toLegacy(),e,i,r,{},this]})},e.prototype.reportExternalDrop=function(t,e,i,n,r,a){e&&this.calendar.eventManager.addEventDef(t,i),this.triggerExternalDrop(t,e,n,r,a)},e.prototype.triggerExternalDrop=function(t,e,i,n,r){this.publiclyTrigger("drop",{context:i[0],args:[t.dateProfile.start.clone(),n,r,this]}),e&&this.publiclyTrigger("eventReceive",{context:this,args:[t.buildInstance().toLegacy(),this]})},e.prototype.reportEventResize=function(t,e,i,n){var r=this.calendar.eventManager,a=r.mutateEventsWithId(t.def.id,e);t.dateProfile=e.dateMutation.buildNewDateProfile(t.dateProfile,this.calendar),this.triggerEventResize(t,e.dateMutation.endDelta,a,i,n)},e.prototype.triggerEventResize=function(t,e,i,n,r){this.publiclyTrigger("eventResize",{context:n[0],args:[t.toLegacy(),e,i,r,{},this]})},e.prototype.select=function(t,e){this.unselect(e),this.renderSelectionFootprint(t),this.reportSelection(t,e)},e.prototype.renderSelectionFootprint=function(e){this.renderSelection?this.renderSelection(e.toLegacy(this.calendar)):t.prototype.renderSelectionFootprint.call(this,e)},e.prototype.reportSelection=function(t,e){this.isSelected=!0,this.triggerSelect(t,e)},e.prototype.triggerSelect=function(t,e){var i=this.calendar.footprintToDateProfile(t);this.publiclyTrigger("select",{context:this,args:[i.start,i.end,e,this]})},e.prototype.unselect=function(t){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[t,this]}))},e.prototype.selectEventInstance=function(t){this.selectedEventInstance&&this.selectedEventInstance===t||(this.unselectEventInstance(),this.getEventSegs().forEach(function(e){e.footprint.eventInstance===t&&e.el&&e.el.addClass("fc-selected")}),this.selectedEventInstance=t)},e.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(t){t.el&&t.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},e.prototype.isEventDefSelected=function(t){return this.selectedEventInstance&&this.selectedEventInstance.def.id===t.id},e.prototype.handleDocumentMousedown=function(t){o.isPrimaryMouseButton(t)&&this.processUnselect(t)},e.prototype.processUnselect=function(t){this.processRangeUnselect(t),this.processEventUnselect(t)},e.prototype.processRangeUnselect=function(t){var e;this.isSelected&&this.opt("unselectAuto")&&(e=this.opt("unselectCancel"),e&&r(t.target).closest(e).length||this.unselect(t))},e.prototype.processEventUnselect=function(t){this.selectedEventInstance&&(r(t.target).closest(".fc-selected").length||this.unselectEventInstance())},e.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},e.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},e.prototype.triggerDayClick=function(t,e,i){var n=this.calendar.footprintToDateProfile(t);this.publiclyTrigger("dayClick",{context:e,args:[n.start,i,this]})},e.prototype.isDateInOtherMonth=function(t,e){return!1},e.prototype.getUnzonedRangeOption=function(t){var e=this.opt(t);if("function"==typeof e&&(e=e.apply(null,Array.prototype.slice.call(arguments,1))),e)return this.calendar.parseUnzonedRange(e)},e.prototype.initHiddenDays=function(){var t,e=this.opt("hiddenDays")||[],i=[],n=0;for(this.opt("weekends")===!1&&e.push(0,6),t=0;t<7;t++)(i[t]=r.inArray(t,e)!==-1)||n++;if(!n)throw new Error("invalid hiddenDays");this.isHiddenDayHash=i},e.prototype.trimHiddenDays=function(t){var e=t.getStart(),i=t.getEnd();return e&&(e=this.skipHiddenDays(e)),i&&(i=this.skipHiddenDays(i,-1,!0)),null===e||null===i||e<i?new c["default"](e,i):null},e.prototype.isHiddenDay=function(t){return a.isMoment(t)&&(t=t.day()),this.isHiddenDayHash[t]},e.prototype.skipHiddenDays=function(t,e,i){void 0===e&&(e=1),void 0===i&&(i=!1);for(var n=t.clone();this.isHiddenDayHash[(n.day()+(i?e:0)+7)%7];)n.add(e,"days");return n},e}(u["default"]);e["default"]=d,d.prototype.usesMinMaxTime=!1,d.prototype.dateProfileGeneratorClass=l["default"],d.watch("displayingDates",["isInDom","dateProfile"],function(t){this.requestDateRender(t.dateProfile)},function(){this.requestDateUnrender()}),d.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(t){this.requestBusinessHoursRender(t.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()}),d.watch("initialEvents",["dateProfile"],function(t){return this.fetchInitialEvents(t.dateProfile)}),d.watch("bindingEvents",["initialEvents"],function(t){this.setEvents(t.initialEvents),this.bindEventChanges()},function(){this.unbindEventChanges(),this.unsetEvents()}),d.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()}),d.watch("title",["dateProfile"],function(t){return this.title=this.computeTitle(t.dateProfile)}),d.watch("legacyDateProps",["dateProfile"],function(t){var e=this.calendar,i=t.dateProfile;this.start=e.msToMoment(i.activeUnzonedRange.startMs,i.isRangeAllDay),this.end=e.msToMoment(i.activeUnzonedRange.endMs,i.isRangeAllDay),this.intervalStart=e.msToMoment(i.currentUnzonedRange.startMs,i.isRangeAllDay),this.intervalEnd=e.msToMoment(i.currentUnzonedRange.endMs,i.isRangeAllDay)})},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(4),a=function(){function t(t,e){this.view=t._getView(),this.component=t,this.fillRenderer=e}return t.prototype.opt=function(t){return this.view.opt(t)},t.prototype.rangeUpdated=function(){var t,e;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat(),t=this.opt("displayEventTime"),null==t&&(t=this.computeDisplayEventTime()),e=this.opt("displayEventEnd"),null==e&&(e=this.computeDisplayEventEnd()),this.displayEventTime=t,this.displayEventEnd=e},t.prototype.render=function(t){var e,i,n,r=this.component._getDateProfile(),a=[],o=[];for(e in t)i=t[e],n=i.sliceRenderRanges(r.activeUnzonedRange),i.getEventDef().hasBgRendering()?a.push.apply(a,n):o.push.apply(o,n);this.renderBgRanges(a),this.renderFgRanges(o)},t.prototype.unrender=function(){this.unrenderBgRanges(),this.unrenderFgRanges()},t.prototype.renderFgRanges=function(t){var e=this.component.eventRangesToEventFootprints(t),i=this.component.eventFootprintsToSegs(e);i=this.renderFgSegEls(i),this.renderFgSegs(i)!==!1&&(this.fgSegs=i)},t.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]),this.fgSegs=null},t.prototype.renderBgRanges=function(t){var e=this.component.eventRangesToEventFootprints(t),i=this.component.eventFootprintsToSegs(e);this.renderBgSegs(i)!==!1&&(this.bgSegs=i)},t.prototype.unrenderBgRanges=function(){this.unrenderBgSegs(),this.bgSegs=null},t.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},t.prototype.renderFgSegs=function(t){return!1},t.prototype.unrenderFgSegs=function(t){},t.prototype.renderBgSegs=function(t){var e=this;return!!this.fillRenderer&&void this.fillRenderer.renderSegs("bgEvent",t,{getClasses:function(t){return e.getBgClasses(t.footprint.eventDef)},getCss:function(t){return{"background-color":e.getBgColor(t.footprint.eventDef)}},filterEl:function(t,i){return e.filterEventRenderEl(t.footprint,i)}})},t.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},t.prototype.renderFgSegEls=function(t,e){var i=this;void 0===e&&(e=!1);var r,a=this.view.hasPublicHandlers("eventRender"),o="",s=[];if(t.length){for(r=0;r<t.length;r++)this.beforeFgSegHtml(t[r]),o+=this.fgSegHtml(t[r],e);n(o).each(function(e,r){var o=t[e],l=n(r);a&&(l=i.filterEventRenderEl(o.footprint,l)),l&&(l.data("fc-seg",o),o.el=l,s.push(o))})}return s},t.prototype.beforeFgSegHtml=function(t){},t.prototype.fgSegHtml=function(t,e){},t.prototype.getSegClasses=function(t,e,i){var n=["fc-event",t.isStart?"fc-start":"fc-not-start",t.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(t.footprint.eventDef));return e&&n.push("fc-draggable"),i&&n.push("fc-resizable"),this.view.isEventDefSelected(t.footprint.eventDef)&&n.push("fc-selected"),n},t.prototype.filterEventRenderEl=function(t,e){var i=t.getEventLegacy(),r=this.view.publiclyTrigger("eventRender",{context:i,args:[i,e,this.view]});return r===!1?e=null:r&&r!==!0&&(e=n(r)),e},t.prototype.getTimeText=function(t,e,i){return this._getTimeText(t.eventInstance.dateProfile.start,t.eventInstance.dateProfile.end,t.componentFootprint.isAllDay,e,i)},t.prototype._getTimeText=function(t,e,i,n,r){return null==n&&(n=this.eventTimeFormat),null==r&&(r=this.displayEventEnd),this.displayEventTime&&!i?r&&e?this.view.formatRange({start:t,end:e},!1,n):t.format(n):""},t.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},t.prototype.computeDisplayEventTime=function(){return!0},t.prototype.computeDisplayEventEnd=function(){return!0},t.prototype.getBgClasses=function(t){var e=this.getClasses(t);return e.push("fc-bgevent"),e},t.prototype.getClasses=function(t){var e,i=this.getStylingObjs(t),n=[];for(e=0;e<i.length;e++)n.push.apply(n,i[e].eventClassName||i[e].className||[]);return n},t.prototype.getSkinCss=function(t){return{"background-color":this.getBgColor(t),"border-color":this.getBorderColor(t),color:this.getTextColor(t)}},t.prototype.getBgColor=function(t){var e,i,n=this.getStylingObjs(t);for(e=0;e<n.length&&!i;e++)i=n[e].eventBackgroundColor||n[e].eventColor||n[e].backgroundColor||n[e].color;return i||(i=this.opt("eventBackgroundColor")||this.opt("eventColor")),i},t.prototype.getBorderColor=function(t){var e,i,n=this.getStylingObjs(t);for(e=0;e<n.length&&!i;e++)i=n[e].eventBorderColor||n[e].eventColor||n[e].borderColor||n[e].color;return i||(i=this.opt("eventBorderColor")||this.opt("eventColor")),i},t.prototype.getTextColor=function(t){var e,i,n=this.getStylingObjs(t);for(e=0;e<n.length&&!i;e++)i=n[e].eventTextColor||n[e].textColor;return i||(i=this.opt("eventTextColor")),i},t.prototype.getStylingObjs=function(t){var e=this.getFallbackStylingObjs(t);return e.unshift(t),e},t.prototype.getFallbackStylingObjs=function(t){return[t.source]},t.prototype.sortEventSegs=function(t){t.sort(r.proxy(this,"compareEventSegs"))},t.prototype.compareEventSegs=function(t,e){var i=t.footprint,n=e.footprint,a=i.componentFootprint,o=n.componentFootprint,s=a.unzonedRange,l=o.unzonedRange;return s.startMs-l.startMs||l.endMs-l.startMs-(s.endMs-s.startMs)||o.isAllDay-a.isAllDay||r.compareByFieldSpecs(i.eventDef,n.eventDef,this.view.eventOrderSpecs,i.eventDef.miscProps,n.eventDef.miscProps)},t}();e["default"]=a},,,,,function(t,e,i){function n(t){return"en"!==t.locale()?t.clone().locale("en"):t}function r(t,e){return p(s(e).fakeFormatString,t)}function a(t,e,i,n,r){var a;return t=v["default"].parseZone(t),e=v["default"].parseZone(e),a=t.localeData(),i=a.longDateFormat(i)||i,o(s(i),t,e,n||" - ",r)}function o(t,e,i,n,r){var a,o,s,l=t.sameUnits,u=e.clone().stripZone(),h=i.clone().stripZone(),c=f(t.fakeFormatString,e),d=f(t.fakeFormatString,i),p="",m="",v="",y="",_="";for(a=0;a<l.length&&(!l[a]||u.isSame(h,l[a]));a++)p+=c[a];for(o=l.length-1;o>a&&(!l[o]||u.isSame(h,l[o]))&&(o-1!==a||"."!==c[o]);o--)m=c[o]+m;for(s=a;s<=o;s++)v+=c[s],y+=d[s];return(v||y)&&(_=r?y+n+v:v+n+y),g(p+_+m)}function s(t){return S[t]||(S[t]=l(t))}function l(t){var e=u(t);return{fakeFormatString:c(e),sameUnits:d(e)}}function u(t){for(var e,i=[],n=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;e=n.exec(t);)e[1]?i.push.apply(i,h(e[1])):e[2]?i.push({maybe:u(e[2])}):e[3]?i.push({token:e[3]}):e[5]&&i.push.apply(i,h(e[5]));return i}function h(t){return". "===t?["."," "]:[t]}function c(t){var e,i,n=[];for(e=0;e<t.length;e++)i=t[e],"string"==typeof i?n.push("["+i+"]"):i.token?i.token in w?n.push(_+"["+i.token+"]"):n.push(i.token):i.maybe&&n.push(b+c(i.maybe)+b);return n.join(y)}function d(t){var e,i,n,r=[];for(e=0;e<t.length;e++)i=t[e],i.token?(n=M[i.token.charAt(0)],r.push(n?n.unit:"second")):i.maybe?r.push.apply(r,d(i.maybe)):r.push(null);return r}function p(t,e){return g(f(t,e).join(""))}function f(t,e){var i,n,r=[],a=v.oldMomentFormat(e,t),o=a.split(y);for(i=0;i<o.length;i++)n=o[i],n.charAt(0)===_?r.push(w[n.substring(1)](e)):r.push(n);return r}function g(t){return t.replace(x,function(t,e){return e.match(/[1-9]/)?e:""})}function m(t){var e,i,n,r,a=u(t);for(e=0;e<a.length;e++)i=a[e],i.token&&(n=M[i.token.charAt(0)],n&&(!r||n.value>r.value)&&(r=n));return r?r.unit:null}Object.defineProperty(e,"__esModule",{value:!0});var v=i(10);v.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?r(this,arguments[0]):this._ambigTime?v.oldMomentFormat(n(this),"YYYY-MM-DD"):this._ambigZone?v.oldMomentFormat(n(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?v.oldMomentFormat(n(this)):v.oldMomentProto.format.apply(this,arguments)},v.newMomentProto.toISOString=function(){return this._ambigTime?v.oldMomentFormat(n(this),"YYYY-MM-DD"):this._ambigZone?v.oldMomentFormat(n(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?v.oldMomentProto.toISOString.apply(n(this),arguments):v.oldMomentProto.toISOString.apply(this,arguments)};var y="\x0B",_="",b="",x=new RegExp(b+"([^"+b+"]*)"+b,"g"),w={t:function(t){return v.oldMomentFormat(t,"a").charAt(0)},T:function(t){return v.oldMomentFormat(t,"A").charAt(0)}},M={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};e.formatDate=r,e.formatRange=a;var S={};e.queryMostGranularFormatUnit=m},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(33),a=i(11),o=i(7),s=function(t){function e(){var e=t.call(this)||this;return e._watchers={},e._props={},e.applyGlobalWatchers(),e.constructed(),e}return n.__extends(e,t),e.watch=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs)),this.prototype._globalWatchArgs[t]=e},e.prototype.constructed=function(){},e.prototype.applyGlobalWatchers=function(){var t,e=this._globalWatchArgs;for(t in e)this.watch.apply(this,[t].concat(e[t]))},e.prototype.has=function(t){return t in this._props},e.prototype.get=function(t){return void 0===t?this._props:this._props[t]},e.prototype.set=function(t,e){var i;"string"==typeof t?(i={},i[t]=void 0===e?null:e):i=t,this.setProps(i)},e.prototype.reset=function(t){var e,i=this._props,n={};for(e in i)n[e]=void 0;for(e in t)n[e]=t[e];this.setProps(n)},e.prototype.unset=function(t){var e,i,n={};for(e="string"==typeof t?[t]:t,i=0;i<e.length;i++)n[e[i]]=void 0;this.setProps(n)},e.prototype.setProps=function(t){var e,i,n={},r=0;for(e in t)i=t[e],"object"!=typeof i&&i===this._props[e]||(n[e]=i,r++);if(r){this.trigger("before:batchChange",n);for(e in n)i=n[e],this.trigger("before:change",e,i),this.trigger("before:change:"+e,i);for(e in n)i=n[e],void 0===i?delete this._props[e]:this._props[e]=i,this.trigger("change:"+e,i),this.trigger("change",e,i);this.trigger("batchChange",n)}},e.prototype.watch=function(t,e,i,n){var r=this;this.unwatch(t),this._watchers[t]=this._watchDeps(e,function(e){var n=i.call(r,e);n&&n.then?(r.unset(t),n.then(function(e){r.set(t,e)})):r.set(t,n)},function(e){r.unset(t),n&&n.call(r,e)})},e.prototype.unwatch=function(t){var e=this._watchers[t];e&&(delete this._watchers[t],e.teardown())},e.prototype._watchDeps=function(t,e,i){var n=this,r=0,a=t.length,o=0,s={},l=[],u=!1,h=function(t,e,n){r++,1===r&&o===a&&(u=!0,i(s),u=!1)},c=function(t,i,n){void 0===i?(n||void 0===s[t]||o--,delete s[t]):(n||void 0!==s[t]||o++,s[t]=i),r--,r||o===a&&(u||e(s))},d=function(t,e){n.on(t,e),l.push([t,e])};return t.forEach(function(t){var e=!1;"?"===t.charAt(0)&&(t=t.substring(1),e=!0),d("before:change:"+t,function(i){h(t,i,e)}),d("change:"+t,function(i){c(t,i,e)})}),t.forEach(function(t){var e=!1;"?"===t.charAt(0)&&(t=t.substring(1),e=!0),n.has(t)?(s[t]=n.get(t),o++):e&&o++}),o===a&&e(s),{teardown:function(){for(var t=0;t<l.length;t++)n.off(l[t][0],l[t][1]);l=null,o===a&&i()},flash:function(){o===a&&(i(),e(s))}}},e.prototype.flash=function(t){var e=this._watchers[t];e&&e.flash()},e}(r["default"]);e["default"]=s,s.prototype._globalWatchArgs={},a["default"].mixInto(s),o["default"].mixInto(s)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(4),a=i(13),o=i(210);e["default"]={parse:function(t,e){return r.isTimeString(t.start)||n.isDuration(t.start)||r.isTimeString(t.end)||n.isDuration(t.end)?o["default"].parse(t,e):a["default"].parse(t,e)}}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(4),r=i(17),a=function(){function t(){this.clearEnd=!1,this.forceTimed=!1,this.forceAllDay=!1}return t.createFromDiff=function(e,i,r){function a(t,e){return r?n.diffByUnit(t,e,r):i.isAllDay()?n.diffDay(t,e):n.diffDayTime(t,e)}var o,s,l,u,h=e.end&&!i.end,c=e.isAllDay()&&!i.isAllDay(),d=!e.isAllDay()&&i.isAllDay();return o=a(i.start,e.start),i.end&&(s=a(i.unzonedRange.getEnd(),e.unzonedRange.getEnd()),l=s.subtract(o)),u=new t,u.clearEnd=h,u.forceTimed=c,u.forceAllDay=d,u.setDateDelta(o),u.setEndDelta(l),u},t.prototype.buildNewDateProfile=function(t,e){var i=t.start.clone(),n=null,a=!1;return t.end&&!this.clearEnd?n=t.end.clone():this.endDelta&&!n&&(n=e.getDefaultEventEnd(t.isAllDay(),i)),this.forceTimed?(a=!0,i.hasTime()||i.time(0),n&&!n.hasTime()&&n.time(0)):this.forceAllDay&&(i.hasTime()&&i.stripTime(),n&&n.hasTime()&&n.stripTime()),this.dateDelta&&(a=!0,i.add(this.dateDelta),n&&n.add(this.dateDelta)),this.endDelta&&(a=!0,n.add(this.endDelta)),this.startDelta&&(a=!0,i.add(this.startDelta)),a&&(i=e.applyTimezone(i),n&&(n=e.applyTimezone(n))),!n&&e.opt("forceEventDuration")&&(n=e.getDefaultEventEnd(t.isAllDay(),i)),new r["default"](i,n,e)},t.prototype.setDateDelta=function(t){t&&t.valueOf()?this.dateDelta=t:this.dateDelta=null},t.prototype.setStartDelta=function(t){t&&t.valueOf()?this.startDelta=t:this.startDelta=null},t.prototype.setEndDelta=function(t){t&&t.valueOf()?this.endDelta=t:this.endDelta=null},t.prototype.isEmpty=function(){return!(this.clearEnd||this.forceTimed||this.forceAllDay||this.dateDelta||this.startDelta||this.endDelta); },t}();e["default"]=a},function(t,e,i){function n(t,e){s[t]=e}function r(t){return t?t===!0?o["default"]:s[t]:a["default"]}Object.defineProperty(e,"__esModule",{value:!0});var a=i(213),o=i(214),s={};e.defineThemeSystem=n,e.getThemeSystemClass=r},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(4),o=i(20),s=i(6),l=i(13),u=function(t){function e(e){var i=t.call(this,e)||this;return i.eventDefs=[],i}return n.__extends(e,t),e.parse=function(t,e){var i;return r.isArray(t.events)?i=t:r.isArray(t)&&(i={events:t}),!!i&&s["default"].parse.call(this,i,e)},e.prototype.setRawEventDefs=function(t){this.rawEventDefs=t,this.eventDefs=this.parseEventDefs(t)},e.prototype.fetch=function(t,e,i){var n,r=this.eventDefs;if(null!=this.currentTimezone&&this.currentTimezone!==i)for(n=0;n<r.length;n++)r[n]instanceof l["default"]&&r[n].rezone();return this.currentTimezone=i,o["default"].resolve(r)},e.prototype.addEventDef=function(t){this.eventDefs.push(t)},e.prototype.removeEventDefsById=function(t){return a.removeMatching(this.eventDefs,function(e){return e.id===t})},e.prototype.removeAllEventDefs=function(){this.eventDefs=[]},e.prototype.getPrimitive=function(){return this.rawEventDefs},e.prototype.applyManualStandardProps=function(e){var i=t.prototype.applyManualStandardProps.call(this,e);return this.setRawEventDefs(e.events),i},e}(s["default"]);e["default"]=u,u.defineStandardProps({events:!1})},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(4),a=function(){function t(t){this.isHorizontal=!1,this.isVertical=!1,this.els=n(t.els),this.isHorizontal=t.isHorizontal,this.isVertical=t.isVertical,this.forcedOffsetParentEl=t.offsetParent?n(t.offsetParent):null}return t.prototype.build=function(){var t=this.forcedOffsetParentEl;!t&&this.els.length>0&&(t=this.els.eq(0).offsetParent()),this.origin=t?t.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},t.prototype.clear=function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},t.prototype.ensureBuilt=function(){this.origin||this.build()},t.prototype.buildElHorizontals=function(){var t=[],e=[];this.els.each(function(i,r){var a=n(r),o=a.offset().left,s=a.outerWidth();t.push(o),e.push(o+s)}),this.lefts=t,this.rights=e},t.prototype.buildElVerticals=function(){var t=[],e=[];this.els.each(function(i,r){var a=n(r),o=a.offset().top,s=a.outerHeight();t.push(o),e.push(o+s)}),this.tops=t,this.bottoms=e},t.prototype.getHorizontalIndex=function(t){this.ensureBuilt();var e,i=this.lefts,n=this.rights,r=i.length;for(e=0;e<r;e++)if(t>=i[e]&&t<n[e])return e},t.prototype.getVerticalIndex=function(t){this.ensureBuilt();var e,i=this.tops,n=this.bottoms,r=i.length;for(e=0;e<r;e++)if(t>=i[e]&&t<n[e])return e},t.prototype.getLeftOffset=function(t){return this.ensureBuilt(),this.lefts[t]},t.prototype.getLeftPosition=function(t){return this.ensureBuilt(),this.lefts[t]-this.origin.left},t.prototype.getRightOffset=function(t){return this.ensureBuilt(),this.rights[t]},t.prototype.getRightPosition=function(t){return this.ensureBuilt(),this.rights[t]-this.origin.left},t.prototype.getWidth=function(t){return this.ensureBuilt(),this.rights[t]-this.lefts[t]},t.prototype.getTopOffset=function(t){return this.ensureBuilt(),this.tops[t]},t.prototype.getTopPosition=function(t){return this.ensureBuilt(),this.tops[t]-this.origin.top},t.prototype.getBottomOffset=function(t){return this.ensureBuilt(),this.bottoms[t]},t.prototype.getBottomPosition=function(t){return this.ensureBuilt(),this.bottoms[t]-this.origin.top},t.prototype.getHeight=function(t){return this.ensureBuilt(),this.bottoms[t]-this.tops[t]},t.prototype.queryBoundingRect=function(){var t;return this.els.length>0&&(t=r.getScrollParent(this.els.eq(0)),!t.is(document))?r.getClientRect(t):null},t.prototype.isPointInBounds=function(t,e){return this.isLeftInBounds(t)&&this.isTopInBounds(e)},t.prototype.isLeftInBounds=function(t){return!this.boundingRect||t>=this.boundingRect.left&&t<this.boundingRect.right},t.prototype.isTopInBounds=function(t){return!this.boundingRect||t>=this.boundingRect.top&&t<this.boundingRect.bottom},t}();e["default"]=a},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(4),a=i(7),o=i(21),s=function(){function t(t){this.isInteracting=!1,this.isDistanceSurpassed=!1,this.isDelayEnded=!1,this.isDragging=!1,this.isTouch=!1,this.isGeneric=!1,this.shouldCancelTouchScroll=!0,this.scrollAlwaysKills=!1,this.isAutoScroll=!1,this.scrollSensitivity=30,this.scrollSpeed=200,this.scrollIntervalMs=50,this.options=t||{}}return t.prototype.startInteraction=function(t,e){if(void 0===e&&(e={}),"mousedown"===t.type){if(o["default"].get().shouldIgnoreMouse())return;if(!r.isPrimaryMouseButton(t))return;t.preventDefault()}this.isInteracting||(this.delay=r.firstDefined(e.delay,this.options.delay,0),this.minDistance=r.firstDefined(e.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,r.preventSelection(n("body")),this.isInteracting=!0,this.isTouch=r.getEvIsTouch(t),this.isGeneric="dragstart"===t.type,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=r.getEvX(t),this.originY=r.getEvY(t),this.scrollEl=r.getScrollParent(n(t.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(t),this.startDelay(t),this.minDistance||this.handleDistanceSurpassed(t))},t.prototype.handleInteractionStart=function(t){this.trigger("interactionStart",t)},t.prototype.endInteraction=function(t,e){this.isInteracting&&(this.endDrag(t),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(t,e),r.allowSelection(n("body")))},t.prototype.handleInteractionEnd=function(t,e){this.trigger("interactionEnd",t,e||!1)},t.prototype.bindHandlers=function(){var t=o["default"].get();this.isGeneric?this.listenTo(n(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(t,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(t,{mousemove:this.handleMouseMove,mouseup:this.endInteraction}),this.listenTo(t,{selectstart:r.preventDefault,contextmenu:r.preventDefault})},t.prototype.unbindHandlers=function(){this.stopListeningTo(o["default"].get()),this.stopListeningTo(n(document))},t.prototype.startDrag=function(t,e){this.startInteraction(t,e),this.isDragging||(this.isDragging=!0,this.handleDragStart(t))},t.prototype.handleDragStart=function(t){this.trigger("dragStart",t)},t.prototype.handleMove=function(t){var e,i=r.getEvX(t)-this.originX,n=r.getEvY(t)-this.originY,a=this.minDistance;this.isDistanceSurpassed||(e=i*i+n*n,e>=a*a&&this.handleDistanceSurpassed(t)),this.isDragging&&this.handleDrag(i,n,t)},t.prototype.handleDrag=function(t,e,i){this.trigger("drag",t,e,i),this.updateAutoScroll(i)},t.prototype.endDrag=function(t){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(t))},t.prototype.handleDragEnd=function(t){this.trigger("dragEnd",t)},t.prototype.startDelay=function(t){var e=this;this.delay?this.delayTimeoutId=setTimeout(function(){e.handleDelayEnd(t)},this.delay):this.handleDelayEnd(t)},t.prototype.handleDelayEnd=function(t){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(t)},t.prototype.handleDistanceSurpassed=function(t){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(t)},t.prototype.handleTouchMove=function(t){this.isDragging&&this.shouldCancelTouchScroll&&t.preventDefault(),this.handleMove(t)},t.prototype.handleMouseMove=function(t){this.handleMove(t)},t.prototype.handleTouchScroll=function(t){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(t,!0)},t.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];this.options[t]&&this.options[t].apply(this,e),this["_"+t]&&this["_"+t].apply(this,e)},t.prototype.initAutoScroll=function(){var t=this.scrollEl;this.isAutoScroll=this.options.scroll&&t&&!t.is(window)&&!t.is(document),this.isAutoScroll&&this.listenTo(t,"scroll",r.debounce(this.handleDebouncedScroll,100))},t.prototype.destroyAutoScroll=function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},t.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=r.getOuterRect(this.scrollEl))},t.prototype.updateAutoScroll=function(t){var e,i,n,a,o=this.scrollSensitivity,s=this.scrollBounds,l=0,u=0;s&&(e=(o-(r.getEvY(t)-s.top))/o,i=(o-(s.bottom-r.getEvY(t)))/o,n=(o-(r.getEvX(t)-s.left))/o,a=(o-(s.right-r.getEvX(t)))/o,e>=0&&e<=1?l=e*this.scrollSpeed*-1:i>=0&&i<=1&&(l=i*this.scrollSpeed),n>=0&&n<=1?u=n*this.scrollSpeed*-1:a>=0&&a<=1&&(u=a*this.scrollSpeed)),this.setScrollVel(l,u)},t.prototype.setScrollVel=function(t,e){this.scrollTopVel=t,this.scrollLeftVel=e,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(r.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},t.prototype.constrainScrollVel=function(){var t=this.scrollEl;this.scrollTopVel<0?t.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&t.scrollTop()+t[0].clientHeight>=t[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?t.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&t.scrollLeft()+t[0].clientWidth>=t[0].scrollWidth&&(this.scrollLeftVel=0)},t.prototype.scrollIntervalFunc=function(){var t=this.scrollEl,e=this.scrollIntervalMs/1e3;this.scrollTopVel&&t.scrollTop(t.scrollTop()+this.scrollTopVel*e),this.scrollLeftVel&&t.scrollLeft(t.scrollLeft()+this.scrollLeftVel*e),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},t.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},t.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},t.prototype.handleScrollEnd=function(){},t}();e["default"]=s,a["default"].mixInto(s)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(4),a=i(14),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.updateDayTable=function(){for(var t,e,i,n=this,r=n.view,a=r.calendar,o=a.msToUtcMoment(n.dateProfile.renderUnzonedRange.startMs,!0),s=a.msToUtcMoment(n.dateProfile.renderUnzonedRange.endMs,!0),l=-1,u=[],h=[];o.isBefore(s);)r.isHiddenDay(o)?u.push(l+.5):(l++,u.push(l),h.push(o.clone())),o.add(1,"days");if(this.breakOnWeeks){for(e=h[0].day(),t=1;t<h.length&&h[t].day()!==e;t++);i=Math.ceil(h.length/t)}else i=1,t=h.length;this.dayDates=h,this.dayIndices=u,this.daysPerRow=t,this.rowCnt=i,this.updateDayTableCols()},e.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},e.prototype.computeColCnt=function(){return this.daysPerRow},e.prototype.getCellDate=function(t,e){return this.dayDates[this.getCellDayIndex(t,e)].clone()},e.prototype.getCellRange=function(t,e){var i=this.getCellDate(t,e),n=i.clone().add(1,"days");return{start:i,end:n}},e.prototype.getCellDayIndex=function(t,e){return t*this.daysPerRow+this.getColDayIndex(e)},e.prototype.getColDayIndex=function(t){return this.isRTL?this.colCnt-1-t:t},e.prototype.getDateDayIndex=function(t){var e=this.dayIndices,i=t.diff(this.dayDates[0],"days");return i<0?e[0]-1:i>=e.length?e[e.length-1]+1:e[i]},e.prototype.computeColHeadFormat=function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.opt("dayOfMonthFormat"):"dddd"},e.prototype.sliceRangeByRow=function(t){var e,i,n,r,a,o=this.daysPerRow,s=this.view.computeDayRange(t),l=this.getDateDayIndex(s.start),u=this.getDateDayIndex(s.end.clone().subtract(1,"days")),h=[];for(e=0;e<this.rowCnt;e++)i=e*o,n=i+o-1,r=Math.max(l,i),a=Math.min(u,n),r=Math.ceil(r),a=Math.floor(a),r<=a&&h.push({row:e,firstRowDayIndex:r-i,lastRowDayIndex:a-i,isStart:r===l,isEnd:a===u});return h},e.prototype.sliceRangeByDay=function(t){var e,i,n,r,a,o,s=this.daysPerRow,l=this.view.computeDayRange(t),u=this.getDateDayIndex(l.start),h=this.getDateDayIndex(l.end.clone().subtract(1,"days")),c=[];for(e=0;e<this.rowCnt;e++)for(i=e*s,n=i+s-1,r=i;r<=n;r++)a=Math.max(u,r),o=Math.min(h,r),a=Math.ceil(a),o=Math.floor(o),a<=o&&c.push({row:e,firstRowDayIndex:a-i,lastRowDayIndex:o-i,isStart:a===u,isEnd:o===h});return c},e.prototype.renderHeadHtml=function(){var t=this.view.calendar.theme;return'<div class="fc-row '+t.getClass("headerRow")+'"><table class="'+t.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},e.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},e.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"</tr>"},e.prototype.renderHeadDateCellsHtml=function(){var t,e,i=[];for(t=0;t<this.colCnt;t++)e=this.getCellDate(0,t),i.push(this.renderHeadDateCellHtml(e));return i.join("")},e.prototype.renderHeadDateCellHtml=function(t,e,i){var n,a=this,o=a.view,s=a.dateProfile.activeUnzonedRange.containsDate(t),l=["fc-day-header",o.calendar.theme.getClass("widgetHeader")];return n="function"==typeof a.opt("columnHeaderHtml")?a.opt("columnHeaderHtml")(t):"function"==typeof a.opt("columnHeaderText")?r.htmlEscape(a.opt("columnHeaderText")(t)):r.htmlEscape(t.format(a.colHeadFormat)),1===a.rowCnt?l=l.concat(a.getDayClasses(t,!0)):l.push("fc-"+r.dayIDs[t.day()]),'<th class="'+l.join(" ")+'"'+(1===(s&&a.rowCnt)?' data-date="'+t.format("YYYY-MM-DD")+'"':"")+(e>1?' colspan="'+e+'"':"")+(i?" "+i:"")+">"+(s?o.buildGotoAnchorHtml({date:t,forceOff:a.rowCnt>1||1===a.colCnt},n):n)+"</th>"},e.prototype.renderBgTrHtml=function(t){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(t))+this.renderBgCellsHtml(t)+(this.isRTL?this.renderBgIntroHtml(t):"")+"</tr>"},e.prototype.renderBgIntroHtml=function(t){return this.renderIntroHtml()},e.prototype.renderBgCellsHtml=function(t){var e,i,n=[];for(e=0;e<this.colCnt;e++)i=this.getCellDate(t,e),n.push(this.renderBgCellHtml(i));return n.join("")},e.prototype.renderBgCellHtml=function(t,e){var i=this,n=i.view,r=i.dateProfile.activeUnzonedRange.containsDate(t),a=i.getDayClasses(t);return a.unshift("fc-day",n.calendar.theme.getClass("widgetContent")),'<td class="'+a.join(" ")+'"'+(r?' data-date="'+t.format("YYYY-MM-DD")+'"':"")+(e?" "+e:"")+"></td>"},e.prototype.renderIntroHtml=function(){},e.prototype.bookendCells=function(t){var e=this.renderIntroHtml();e&&(this.isRTL?t.append(e):t.prepend(e))},e}(a["default"]);e["default"]=o},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.component=t,this.fillRenderer=e}return t.prototype.render=function(t){var e=this.component,i=e._getDateProfile().activeUnzonedRange,n=t.buildEventInstanceGroup(e.hasAllDayBusinessHours,i),r=n?e.eventRangesToEventFootprints(n.sliceRenderRanges(i)):[];this.renderEventFootprints(r)},t.prototype.renderEventFootprints=function(t){var e=this.component.eventFootprintsToSegs(t);this.renderSegs(e),this.segs=e},t.prototype.renderSegs=function(t){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",t,{getClasses:function(t){return["fc-nonbusiness","fc-bgevent"]}})},t.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours"),this.segs=null},t.prototype.getSegs=function(){return this.segs||[]},t}();e["default"]=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(4),a=function(){function t(t){this.fillSegTag="div",this.component=t,this.elsByFill={}}return t.prototype.renderFootprint=function(t,e,i){this.renderSegs(t,this.component.componentFootprintToSegs(e),i)},t.prototype.renderSegs=function(t,e,i){var n;return e=this.buildSegEls(t,e,i),n=this.attachSegEls(t,e),n&&this.reportEls(t,n),e},t.prototype.unrender=function(t){var e=this.elsByFill[t];e&&(e.remove(),delete this.elsByFill[t])},t.prototype.buildSegEls=function(t,e,i){var r,a=this,o="",s=[];if(e.length){for(r=0;r<e.length;r++)o+=this.buildSegHtml(t,e[r],i);n(o).each(function(t,r){var o=e[t],l=n(r);i.filterEl&&(l=i.filterEl(o,l)),l&&(l=n(l),l.is(a.fillSegTag)&&(o.el=l,s.push(o)))})}return s},t.prototype.buildSegHtml=function(t,e,i){var n=i.getClasses?i.getClasses(e):[],a=r.cssToStr(i.getCss?i.getCss(e):{});return"<"+this.fillSegTag+(n.length?' class="'+n.join(" ")+'"':"")+(a?' style="'+a+'"':"")+" />"},t.prototype.attachSegEls=function(t,e){},t.prototype.reportEls=function(t,e){this.elsByFill[t]?this.elsByFill[t]=this.elsByFill[t].add(e):this.elsByFill[t]=n(e)},t}();e["default"]=a},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(13),r=i(36),a=i(6),o=function(){function t(t,e){this.view=t._getView(),this.component=t,this.eventRenderer=e}return t.prototype.renderComponentFootprint=function(t){this.renderEventFootprints([this.fabricateEventFootprint(t)])},t.prototype.renderEventDraggingFootprints=function(t,e,i){this.renderEventFootprints(t,e,"fc-dragging",i?null:this.view.opt("dragOpacity"))},t.prototype.renderEventResizingFootprints=function(t,e,i){this.renderEventFootprints(t,e,"fc-resizing")},t.prototype.renderEventFootprints=function(t,e,i,n){var r,a=this.component.eventFootprintsToSegs(t),o="fc-helper "+(i||"");for(a=this.eventRenderer.renderFgSegEls(a),r=0;r<a.length;r++)a[r].el.addClass(o);if(null!=n)for(r=0;r<a.length;r++)a[r].el.css("opacity",n);this.helperEls=this.renderSegs(a,e)},t.prototype.renderSegs=function(t,e){},t.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},t.prototype.fabricateEventFootprint=function(t){var e,i=this.view.calendar,o=i.footprintToDateProfile(t),s=new n["default"](new a["default"](i));return s.dateProfile=o,e=s.buildInstance(),new r["default"](t,s,e)},t}();e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(21),a=i(15),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.bindToEl=function(t){var e=this.component;e.bindSegHandlerToEl(t,"click",this.handleClick.bind(this)),e.bindSegHandlerToEl(t,"mouseenter",this.handleMouseover.bind(this)),e.bindSegHandlerToEl(t,"mouseleave",this.handleMouseout.bind(this))},e.prototype.handleClick=function(t,e){var i=this.component.publiclyTrigger("eventClick",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,this.view]});i===!1&&e.preventDefault()},e.prototype.handleMouseover=function(t,e){r["default"].get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=t,this.view.isEventDefResizable(t.footprint.eventDef)&&t.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,this.view]}))},e.prototype.handleMouseout=function(t,e){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(t.footprint.eventDef)&&t.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:t.el[0],args:[t.footprint.getEventLegacy(),e||{},this.view]}))},e.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},e}(a["default"]);e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(14),a=i(245),o=i(225),s=i(59),l=i(224),u=i(223),h=i(222),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(r["default"]);e["default"]=c,c.prototype.dateClickingClass=a["default"],c.prototype.dateSelectingClass=o["default"],c.prototype.eventPointingClass=s["default"],c.prototype.eventDraggingClass=l["default"],c.prototype.eventResizingClass=u["default"],c.prototype.externalDroppingClass=h["default"]},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(4),o=i(53),s=i(249),l=i(5),u=i(12),h=i(36),c=i(56),d=i(60),p=i(40),f=i(55),g=i(250),m=i(251),v=i(252),y=function(t){function e(e){var i=t.call(this,e)||this;return i.cellWeekNumbersVisible=!1,i.bottomCoordPadding=0,i.isRigid=!1,i.hasAllDayBusinessHours=!0,i}return n.__extends(e,t),e.prototype.componentFootprintToSegs=function(t){var e,i,n=this.sliceRangeByRow(t.unzonedRange);for(e=0;e<n.length;e++)i=n[e],this.isRTL?(i.leftCol=this.daysPerRow-1-i.lastRowDayIndex,i.rightCol=this.daysPerRow-1-i.firstRowDayIndex):(i.leftCol=i.firstRowDayIndex,i.rightCol=i.lastRowDayIndex);return n},e.prototype.renderDates=function(t){this.dateProfile=t,this.updateDayTable(),this.renderGrid()},e.prototype.unrenderDates=function(){this.removeSegPopover()},e.prototype.renderGrid=function(){var t,e,i=this.view,n=this.rowCnt,r=this.colCnt,a="";for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),t=0;t<n;t++)a+=this.renderDayRowHtml(t,this.isRigid);for(this.el.html(a),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new o["default"]({els:this.rowEls,isVertical:!0}),this.colCoordCache=new o["default"]({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),t=0;t<n;t++)for(e=0;e<r;e++)this.publiclyTrigger("dayRender",{context:i,args:[this.getCellDate(t,e),this.getCellEl(t,e),i]})},e.prototype.renderDayRowHtml=function(t,e){var i=this.view.calendar.theme,n=["fc-row","fc-week",i.getClass("dayRow")];return e&&n.push("fc-rigid"),'<div class="'+n.join(" ")+'"><div class="fc-bg"><table class="'+i.getClass("tableGrid")+'">'+this.renderBgTrHtml(t)+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(t)+"</thead>":"")+"</table></div></div>"},e.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},e.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},e.prototype.renderNumberTrHtml=function(t){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(t))+this.renderNumberCellsHtml(t)+(this.isRTL?this.renderNumberIntroHtml(t):"")+"</tr>"},e.prototype.renderNumberIntroHtml=function(t){return this.renderIntroHtml()},e.prototype.renderNumberCellsHtml=function(t){var e,i,n=[];for(e=0;e<this.colCnt;e++)i=this.getCellDate(t,e),n.push(this.renderNumberCellHtml(i));return n.join("")},e.prototype.renderNumberCellHtml=function(t){var e,i,n=this.view,r="",a=this.dateProfile.activeUnzonedRange.containsDate(t),o=this.getIsDayNumbersVisible()&&a;return o||this.cellWeekNumbersVisible?(e=this.getDayClasses(t),e.unshift("fc-day-top"),this.cellWeekNumbersVisible&&(i="ISO"===t._locale._fullCalendar_weekCalc?1:t._locale.firstDayOfWeek()),r+='<td class="'+e.join(" ")+'"'+(a?' data-date="'+t.format()+'"':"")+">",this.cellWeekNumbersVisible&&t.day()===i&&(r+=n.buildGotoAnchorHtml({date:t,type:"week"},{"class":"fc-week-number"},t.format("w"))),o&&(r+=n.buildGotoAnchorHtml(t,{"class":"fc-day-number"},t.format("D"))),r+="</td>"):"<td/>"},e.prototype.prepareHits=function(){this.colCoordCache.build(),this.rowCoordCache.build(),this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},e.prototype.releaseHits=function(){this.colCoordCache.clear(),this.rowCoordCache.clear()},e.prototype.queryHit=function(t,e){if(this.colCoordCache.isLeftInBounds(t)&&this.rowCoordCache.isTopInBounds(e)){var i=this.colCoordCache.getHorizontalIndex(t),n=this.rowCoordCache.getVerticalIndex(e);if(null!=n&&null!=i)return this.getCellHit(n,i)}},e.prototype.getHitFootprint=function(t){var e=this.getCellRange(t.row,t.col);return new u["default"](new l["default"](e.start,e.end),(!0))},e.prototype.getHitEl=function(t){return this.getCellEl(t.row,t.col)},e.prototype.getCellHit=function(t,e){return{row:t,col:e,component:this,left:this.colCoordCache.getLeftOffset(e),right:this.colCoordCache.getRightOffset(e),top:this.rowCoordCache.getTopOffset(t),bottom:this.rowCoordCache.getBottomOffset(t)}},e.prototype.getCellEl=function(t,e){return this.cellEls.eq(t*this.colCnt+e)},e.prototype.executeEventUnrender=function(){this.removeSegPopover(),t.prototype.executeEventUnrender.call(this)},e.prototype.getOwnEventSegs=function(){return t.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},e.prototype.renderDrag=function(t,e,i){var n;for(n=0;n<t.length;n++)this.renderHighlight(t[n].componentFootprint);if(t.length&&e&&e.component!==this)return this.helperRenderer.renderEventDraggingFootprints(t,e,i),!0},e.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},e.prototype.renderEventResize=function(t,e,i){var n;for(n=0;n<t.length;n++)this.renderHighlight(t[n].componentFootprint);this.helperRenderer.renderEventResizingFootprints(t,e,i)},e.prototype.unrenderEventResize=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},e.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},e.prototype.limitRows=function(t){var e,i,n=this.eventRenderer.rowStructs||[];for(e=0;e<n.length;e++)this.unlimitRow(e),i=!!t&&("number"==typeof t?t:this.computeRowLevelLimit(e)),i!==!1&&this.limitRow(e,i)},e.prototype.computeRowLevelLimit=function(t){function e(t,e){a=Math.max(a,r(e).outerHeight())}var i,n,a,o=this.rowEls.eq(t),s=o.height(),l=this.eventRenderer.rowStructs[t].tbodyEl.children();for(i=0;i<l.length;i++)if(n=l.eq(i).removeClass("fc-limited"),a=0,n.find("> td > :first-child").each(e),n.position().top+a>s)return i;return!1},e.prototype.limitRow=function(t,e){var i,n,a,o,s,l,u,h,c,d,p,f,g,m,v,y=this,_=this.eventRenderer.rowStructs[t],b=[],x=0,w=function(i){for(;x<i;)l=y.getCellSegs(t,x,e),l.length&&(c=n[e-1][x],v=y.renderMoreLink(t,x,l),m=r("<div/>").append(v),c.append(m),b.push(m[0])),x++};if(e&&e<_.segLevels.length){for(i=_.segLevels[e-1],n=_.cellMatrix,a=_.tbodyEl.children().slice(e).addClass("fc-limited").get(),o=0;o<i.length;o++){for(s=i[o],w(s.leftCol),h=[],u=0;x<=s.rightCol;)l=this.getCellSegs(t,x,e),h.push(l),u+=l.length,x++;if(u){for(c=n[e-1][s.leftCol],d=c.attr("rowspan")||1,p=[],f=0;f<h.length;f++)g=r('<td class="fc-more-cell"/>').attr("rowspan",d),l=h[f],v=this.renderMoreLink(t,s.leftCol+f,[s].concat(l)),m=r("<div/>").append(v),g.append(m),p.push(g[0]),b.push(g[0]);c.addClass("fc-limited").after(r(p)),a.push(c[0])}}w(this.colCnt),_.moreEls=r(b),_.limitedEls=r(a)}},e.prototype.unlimitRow=function(t){var e=this.eventRenderer.rowStructs[t];e.moreEls&&(e.moreEls.remove(),e.moreEls=null),e.limitedEls&&(e.limitedEls.removeClass("fc-limited"),e.limitedEls=null)},e.prototype.renderMoreLink=function(t,e,i){var n=this,a=this.view;return r('<a class="fc-more"/>').text(this.getMoreLinkText(i.length)).on("click",function(o){var s=n.opt("eventLimitClick"),l=n.getCellDate(t,e),u=r(o.currentTarget),h=n.getCellEl(t,e),c=n.getCellSegs(t,e),d=n.resliceDaySegs(c,l),p=n.resliceDaySegs(i,l);"function"==typeof s&&(s=n.publiclyTrigger("eventLimitClick",{context:a,args:[{date:l.clone(),dayEl:h,moreEl:u,segs:d,hiddenSegs:p},o,a]})),"popover"===s?n.showSegPopover(t,e,u,d):"string"==typeof s&&a.calendar.zoomTo(l,s)})},e.prototype.showSegPopover=function(t,e,i,n){var r,a,o=this,l=this.view,u=i.parent();r=1===this.rowCnt?l.el:this.rowEls.eq(t),a={className:"fc-more-popover "+l.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(t,e,n),parentEl:l.el,top:r.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){o.popoverSegs&&o.triggerBeforeEventSegsDestroyed(o.popoverSegs),o.segPopover.removeElement(),o.segPopover=null,o.popoverSegs=null}},this.isRTL?a.right=u.offset().left+u.outerWidth()+1:a.left=u.offset().left-1,this.segPopover=new s["default"](a),this.segPopover.show(),this.bindAllSegHandlersToEl(this.segPopover.el),this.triggerAfterEventSegsRendered(n)},e.prototype.renderSegPopoverContent=function(t,e,i){var n,o=this.view,s=o.calendar.theme,l=this.getCellDate(t,e).format(this.opt("dayPopoverFormat")),u=r('<div class="fc-header '+s.getClass("popoverHeader")+'"><span class="fc-close '+s.getIconClass("close")+'"></span><span class="fc-title">'+a.htmlEscape(l)+'</span><div class="fc-clear"/></div><div class="fc-body '+s.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>'),h=u.find(".fc-event-container");for(i=this.eventRenderer.renderFgSegEls(i,!0),this.popoverSegs=i,n=0;n<i.length;n++)this.hitsNeeded(),i[n].hit=this.getCellHit(t,e),this.hitsNotNeeded(),h.append(i[n].el);return u},e.prototype.resliceDaySegs=function(t,e){var i,n,a,o=e.clone(),s=o.clone().add(1,"days"),c=new l["default"](o,s),d=[];for(i=0;i<t.length;i++)n=t[i],a=n.footprint.componentFootprint.unzonedRange.intersect(c),a&&d.push(r.extend({},n,{footprint:new h["default"](new u["default"](a,n.footprint.componentFootprint.isAllDay),n.footprint.eventDef,n.footprint.eventInstance),isStart:n.isStart&&a.isStart,isEnd:n.isEnd&&a.isEnd}));return this.eventRenderer.sortEventSegs(d),d},e.prototype.getMoreLinkText=function(t){var e=this.opt("eventLimitText");return"function"==typeof e?e(t):"+"+t+" "+e},e.prototype.getCellSegs=function(t,e,i){for(var n,r=this.eventRenderer.rowStructs[t].segMatrix,a=i||0,o=[];a<r.length;)n=r[a][e],n&&o.push(n),a++;return o},e}(p["default"]);e["default"]=y,y.prototype.eventRendererClass=g["default"],y.prototype.businessHourRendererClass=c["default"],y.prototype.helperRendererClass=m["default"],y.prototype.fillRendererClass=v["default"],d["default"].mixInto(y),f["default"].mixInto(y)},function(t,e,i){function n(t){return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.colWeekNumbersVisible=!1,e}return r.__extends(e,t),e.prototype.renderHeadIntroHtml=function(){var t=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+t.calendar.theme.getClass("widgetHeader")+'" '+t.weekNumberStyleAttr()+"><span>"+o.htmlEscape(this.opt("weekNumberTitle"))+"</span></th>":""},e.prototype.renderNumberIntroHtml=function(t){var e=this.view,i=this.getCellDate(t,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+">"+e.buildGotoAnchorHtml({date:i,type:"week",forceOff:1===this.colCnt},i.format("w"))+"</td>":""},e.prototype.renderBgIntroHtml=function(){var t=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+t.calendar.theme.getClass("widgetContent")+'" '+t.weekNumberStyleAttr()+"></td>":""},e.prototype.renderIntroHtml=function(){var t=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+"></td>":""},e.prototype.getIsNumbersVisible=function(){return h["default"].prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},e}(t)}Object.defineProperty(e,"__esModule",{value:!0});var r=i(2),a=i(3),o=i(4),s=i(39),l=i(41),u=i(228),h=i(61),c=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.dayGrid=n.instantiateDayGrid(),n.dayGrid.isRigid=n.hasRigidRows(),n.opt("weekNumbers")&&(n.opt("weekNumbersWithinDays")?(n.dayGrid.cellWeekNumbersVisible=!0,n.dayGrid.colWeekNumbersVisible=!1):(n.dayGrid.cellWeekNumbersVisible=!1,n.dayGrid.colWeekNumbersVisible=!0)),n.addChild(n.dayGrid),n.scroller=new s["default"]({overflowX:"hidden",overflowY:"auto"}),n}return r.__extends(e,t),e.prototype.instantiateDayGrid=function(){var t=n(this.dayGridClass);return new t(this)},e.prototype.executeDateRender=function(e){this.dayGrid.breakOnWeeks=/year|month|week/.test(e.currentRangeUnit),t.prototype.executeDateRender.call(this,e)},e.prototype.renderSkeleton=function(){var t,e;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.scroller.render(),t=this.scroller.el.addClass("fc-day-grid-container"),e=a('<div class="fc-day-grid" />').appendTo(t),this.el.find(".fc-body > tr > td").append(t),this.dayGrid.headContainerEl=this.el.find(".fc-head-container"),this.dayGrid.setElement(e)},e.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement(), this.scroller.destroy()},e.prototype.renderSkeletonHtml=function(){var t=this.calendar.theme;return'<table class="'+t.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'"> </td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'"></td></tr></tbody></table>'},e.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},e.prototype.hasRigidRows=function(){var t=this.opt("eventLimit");return t&&"number"!=typeof t},e.prototype.updateSize=function(e,i,n){var r,a,s=this.opt("eventLimit"),l=this.dayGrid.headContainerEl.find(".fc-row");return this.dayGrid.rowEls?(t.prototype.updateSize.call(this,e,i,n),this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=o.matchCellWidths(this.el.find(".fc-week-number"))),this.scroller.clear(),o.uncompensateScroll(l),this.dayGrid.removeSegPopover(),s&&"number"==typeof s&&this.dayGrid.limitRows(s),r=this.computeScrollerHeight(e),this.setGridHeight(r,i),s&&"number"!=typeof s&&this.dayGrid.limitRows(s),void(i||(this.scroller.setHeight(r),a=this.scroller.getScrollbarWidths(),(a.left||a.right)&&(o.compensateScroll(l,a),r=this.computeScrollerHeight(e),this.scroller.setHeight(r)),this.scroller.lockOverflow(a)))):void(i||(r=this.computeScrollerHeight(e),this.scroller.setHeight(r)))},e.prototype.computeScrollerHeight=function(t){return t-o.subtractInnerElHeight(this.el,this.scroller.el)},e.prototype.setGridHeight=function(t,e){e?o.undistributeHeight(this.dayGrid.rowEls):o.distributeHeight(this.dayGrid.rowEls,t,!0)},e.prototype.computeInitialDateScroll=function(){return{top:0}},e.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},e.prototype.applyDateScroll=function(t){void 0!==t.top&&this.scroller.setScrollTop(t.top)},e}(l["default"]);e["default"]=c,c.prototype.dateProfileGeneratorClass=u["default"],c.prototype.dayGridClass=h["default"]},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){function n(t,e,i){var n;for(n=0;n<t.length;n++)if(!e(t[n].eventInstance.toLegacy(),i?i.toLegacy():null))return!1;return!0}function r(t,e){var i,n,r,a,o=e.toLegacy();for(i=0;i<t.length;i++){if(n=t[i].eventInstance,r=n.def,a=r.getOverlap(),a===!1)return!1;if("function"==typeof a&&!a(n.toLegacy(),o))return!1}return!0}Object.defineProperty(e,"__esModule",{value:!0});var a=i(5),o=i(12),s=i(49),l=i(6),u=i(35),h=function(){function t(t,e){this.eventManager=t,this._calendar=e}return t.prototype.opt=function(t){return this._calendar.opt(t)},t.prototype.isEventInstanceGroupAllowed=function(t){var e,i=t.getEventDef(),n=this.eventRangesToEventFootprints(t.getAllEventRanges()),r=this.getPeerEventInstances(i),a=r.map(u.eventInstanceToEventRange),o=this.eventRangesToEventFootprints(a),s=i.getConstraint(),l=i.getOverlap(),h=this.opt("eventAllow");for(e=0;e<n.length;e++)if(!this.isFootprintAllowed(n[e].componentFootprint,o,s,l,n[e].eventInstance))return!1;if(h)for(e=0;e<n.length;e++)if(h(n[e].componentFootprint.toLegacy(this._calendar),n[e].getEventLegacy())===!1)return!1;return!0},t.prototype.getPeerEventInstances=function(t){return this.eventManager.getEventInstancesWithoutId(t.id)},t.prototype.isSelectionFootprintAllowed=function(t){var e,i=this.eventManager.getEventInstances(),n=i.map(u.eventInstanceToEventRange),r=this.eventRangesToEventFootprints(n);return!!this.isFootprintAllowed(t,r,this.opt("selectConstraint"),this.opt("selectOverlap"))&&(e=this.opt("selectAllow"),!e||e(t.toLegacy(this._calendar))!==!1)},t.prototype.isFootprintAllowed=function(t,e,i,a,o){var s,l;if(null!=i&&(s=this.constraintValToFootprints(i,t.isAllDay),!this.isFootprintWithinConstraints(t,s)))return!1;if(l=this.collectOverlapEventFootprints(e,t),a===!1){if(l.length)return!1}else if("function"==typeof a&&!n(l,a,o))return!1;return!(o&&!r(l,o))},t.prototype.isFootprintWithinConstraints=function(t,e){var i;for(i=0;i<e.length;i++)if(this.footprintContainsFootprint(e[i],t))return!0;return!1},t.prototype.constraintValToFootprints=function(t,e){var i;return"businessHours"===t?this.buildCurrentBusinessFootprints(e):"object"==typeof t?(i=this.parseEventDefToInstances(t),i?this.eventInstancesToFootprints(i):this.parseFootprints(t)):null!=t?(i=this.eventManager.getEventInstancesWithId(t),this.eventInstancesToFootprints(i)):void 0},t.prototype.buildCurrentBusinessFootprints=function(t){var e=this._calendar.view,i=e.get("businessHourGenerator"),n=e.dateProfile.activeUnzonedRange,r=i.buildEventInstanceGroup(t,n);return r?this.eventInstancesToFootprints(r.eventInstances):[]},t.prototype.eventInstancesToFootprints=function(t){var e=t.map(u.eventInstanceToEventRange),i=this.eventRangesToEventFootprints(e);return i.map(u.eventFootprintToComponentFootprint)},t.prototype.collectOverlapEventFootprints=function(t,e){var i,n=[];for(i=0;i<t.length;i++)this.footprintsIntersect(e,t[i].componentFootprint)&&n.push(t[i]);return n},t.prototype.parseEventDefToInstances=function(t){var e=this.eventManager,i=s["default"].parse(t,new l["default"](this._calendar));return!!i&&i.buildInstances(e.currentPeriod.unzonedRange)},t.prototype.eventRangesToEventFootprints=function(t){var e,i=[];for(e=0;e<t.length;e++)i.push.apply(i,this.eventRangeToEventFootprints(t[e]));return i},t.prototype.eventRangeToEventFootprints=function(t){return[u.eventRangeToEventFootprint(t)]},t.prototype.parseFootprints=function(t){var e,i;return t.start&&(e=this._calendar.moment(t.start),e.isValid()||(e=null)),t.end&&(i=this._calendar.moment(t.end),i.isValid()||(i=null)),[new o["default"](new a["default"](e,i),e&&!e.hasTime()||i&&!i.hasTime())]},t.prototype.footprintContainsFootprint=function(t,e){return t.unzonedRange.containsRange(e.unzonedRange)},t.prototype.footprintsIntersect=function(t,e){return t.unzonedRange.intersectsWith(e.unzonedRange)},t}();e["default"]=h},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(4),a=i(14),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.defineStandardProps=function(t){var e=this.prototype;e.hasOwnProperty("standardPropMap")||(e.standardPropMap=Object.create(e.standardPropMap)),r.copyOwnProps(t,e.standardPropMap)},e.copyVerbatimStandardProps=function(t,e){var i,n=this.prototype.standardPropMap;for(i in n)null!=t[i]&&n[i]===!0&&(e[i]=t[i])},e.prototype.applyProps=function(t){var e,i=this.standardPropMap,n={},r={};for(e in t)i[e]===!0?this[e]=t[e]:i[e]===!1?n[e]=t[e]:r[e]=t[e];return this.applyMiscProps(r),this.applyManualStandardProps(n)},e.prototype.applyManualStandardProps=function(t){return!0},e.prototype.applyMiscProps=function(t){},e.prototype.isStandardProp=function(t){return t in this.standardPropMap},e}(a["default"]);e["default"]=o,o.prototype.standardPropMap={}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.def=t,this.dateProfile=e}return t.prototype.toLegacy=function(){var t=this.dateProfile,e=this.def.toLegacy();return e.start=t.start.clone(),e.end=t.end?t.end.clone():null,e},t}();e["default"]=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(0),o=i(34),s=i(209),l=i(17),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},e.prototype.buildInstances=function(t){for(var e,i,n,r=this.source.calendar,a=t.getStart(),o=t.getEnd(),u=[];a.isBefore(o);)this.dowHash&&!this.dowHash[a.day()]||(e=r.applyTimezone(a),i=e.clone(),n=null,this.startTime?i.time(this.startTime):i.stripTime(),this.endTime&&(n=e.clone().time(this.endTime)),u.push(new s["default"](this,new l["default"](i,n,r)))),a.add(1,"days");return u},e.prototype.setDow=function(t){this.dowHash||(this.dowHash={});for(var e=0;e<t.length;e++)this.dowHash[t[e]]=!0},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.startTime&&(e.startTime=a.duration(this.startTime)),e.endTime&&(e.endTime=a.duration(this.endTime)),this.dowHash&&(e.dowHash=r.extend({},this.dowHash)),e},e}(o["default"]);e["default"]=u,u.prototype.applyProps=function(t){var e=o["default"].prototype.applyProps.call(this,t);return t.start&&(this.startTime=a.duration(t.start)),t.end&&(this.endTime=a.duration(t.end)),t.dow&&this.setDow(t.dow),e},u.defineStandardProps({start:!1,end:!1,dow:!1})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,i){this.unzonedRange=t,this.eventDef=e,i&&(this.eventInstance=i)}return t}();e["default"]=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(35),a=i(18),o=i(210),s=i(6),l={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},u=function(){function t(t,e){this.rawComplexDef=t,this.calendar=e}return t.prototype.buildEventInstanceGroup=function(t,e){var i,n=this.buildEventDefs(t);if(n.length)return i=new a["default"](r.eventDefsToEventInstances(n,e)),i.explicitEventDef=n[0],i},t.prototype.buildEventDefs=function(t){var e,i=this.rawComplexDef,r=[],a=!1,o=[];for(i===!0?r=[{}]:n.isPlainObject(i)?r=[i]:n.isArray(i)&&(r=i,a=!0),e=0;e<r.length;e++)a&&!r[e].dow||o.push(this.buildEventDef(t,r[e]));return o},t.prototype.buildEventDef=function(t,e){var i=n.extend({},l,e);return t&&(i.start=null,i.end=null),o["default"].parse(i,new s["default"](this.calendar))},t}();e["default"]=u},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(19),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(r["default"]);e["default"]=a,a.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},a.prototype.baseIconClass="fc-icon",a.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"},a.prototype.iconOverrideOption="buttonIcons",a.prototype.iconOverrideCustomButtonOption="icon",a.prototype.iconOverridePrefix="fc-icon-"},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(19),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(r["default"]);e["default"]=a,a.prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"},a.prototype.baseIconClass="ui-icon",a.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"},a.prototype.iconOverrideOption="themeButtonIcons",a.prototype.iconOverrideCustomButtonOption="themeIcon",a.prototype.iconOverridePrefix="ui-icon-"},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(20),o=i(6),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.parse=function(t,e){var i;return r.isFunction(t.events)?i=t:r.isFunction(t)&&(i={events:t}),!!i&&o["default"].parse.call(this,i,e)},e.prototype.fetch=function(t,e,i){var n=this;return this.calendar.pushLoading(),a["default"].construct(function(r){n.func.call(n.calendar,t.clone(),e.clone(),i,function(t){n.calendar.popLoading(),r(n.parseEventDefs(t))})})},e.prototype.getPrimitive=function(){return this.func},e.prototype.applyManualStandardProps=function(e){var i=t.prototype.applyManualStandardProps.call(this,e);return this.func=e.events,i},e}(o["default"]);e["default"]=s,s.defineStandardProps({events:!1})},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(4),o=i(20),s=i(6),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.parse=function(t,e){var i;return"string"==typeof t.url?i=t:"string"==typeof t&&(i={url:t}),!!i&&s["default"].parse.call(this,i,e)},e.prototype.fetch=function(t,i,n){var s=this,l=this.ajaxSettings,u=l.success,h=l.error,c=this.buildRequestParams(t,i,n);return this.calendar.pushLoading(),o["default"].construct(function(t,i){r.ajax(r.extend({},e.AJAX_DEFAULTS,l,{url:s.url,data:c,success:function(e,n,o){var l;s.calendar.popLoading(),e?(l=a.applyAll(u,s,[e,n,o]),r.isArray(l)&&(e=l),t(s.parseEventDefs(e))):i()},error:function(t,e,n){s.calendar.popLoading(),a.applyAll(h,s,[t,e,n]),i()}}))})},e.prototype.buildRequestParams=function(t,e,i){var n,a,o,s,l=this.calendar,u=this.ajaxSettings,h={};return n=this.startParam,null==n&&(n=l.opt("startParam")),a=this.endParam,null==a&&(a=l.opt("endParam")),o=this.timezoneParam,null==o&&(o=l.opt("timezoneParam")),s=r.isFunction(u.data)?u.data():u.data||{},r.extend(h,s),h[n]=t.format(),h[a]=e.format(),i&&"local"!==i&&(h[o]=i),h},e.prototype.getPrimitive=function(){return this.url},e.prototype.applyMiscProps=function(t){this.ajaxSettings=t},e.AJAX_DEFAULTS={dataType:"json",cache:!1},e}(s["default"]);e["default"]=l,l.defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(11),r=function(){function t(){this.q=[],this.isPaused=!1,this.isRunning=!1}return t.prototype.queue=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.q.push.apply(this.q,t),this.tryStart()},t.prototype.pause=function(){this.isPaused=!0},t.prototype.resume=function(){this.isPaused=!1,this.tryStart()},t.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},t.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},t.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},t.prototype.runRemaining=function(){var t,e,i=this;do if(t=this.q.shift(),e=this.runTask(t),e&&e.then)return void e.then(function(){i.canRunNext()&&i.runRemaining()});while(this.canRunNext());this.trigger("stop"),this.isRunning=!1,this.tryStart()},t.prototype.runTask=function(t){return t()},t}();e["default"]=r,n["default"].mixInto(r)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(217),a=function(t){function e(e){var i=t.call(this)||this;return i.waitsByNamespace=e||{},i}return n.__extends(e,t),e.prototype.queue=function(t,e,i){var n,r={func:t,namespace:e,type:i};e&&(n=this.waitsByNamespace[e]),this.waitNamespace&&(e===this.waitNamespace&&null!=n?this.delayWait(n):(this.clearWait(),this.tryStart())),this.compoundTask(r)&&(this.waitNamespace||null==n?this.tryStart():this.startWait(e,n))},e.prototype.startWait=function(t,e){this.waitNamespace=t,this.spawnWait(e)},e.prototype.delayWait=function(t){clearTimeout(this.waitId),this.spawnWait(t)},e.prototype.spawnWait=function(t){var e=this;this.waitId=setTimeout(function(){e.waitNamespace=null,e.tryStart()},t)},e.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},e.prototype.canRunNext=function(){if(!t.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(var e=this.q,i=0;i<e.length;i++)if(e[i].namespace!==this.waitNamespace)return!0;return!1}return!0},e.prototype.runTask=function(t){t.func()},e.prototype.compoundTask=function(t){var e,i,n=this.q,r=!0;if(t.namespace&&"destroy"===t.type)for(e=n.length-1;e>=0;e--)switch(i=n[e],i.type){case"init":r=!1;case"add":case"remove":n.splice(e,1)}return r&&n.push(t),r},e}(r["default"]);e["default"]=a},function(t,e,i){function n(t){var e,i,n,r=[];for(e in t)for(i=t[e].eventInstances,n=0;n<i.length;n++)r.push(i[n].toLegacy());return r}Object.defineProperty(e,"__esModule",{value:!0});var r=i(2),a=i(3),o=i(0),s=i(4),l=i(10),u=i(47),h=i(237),c=i(35),d=function(t){function e(i,n){var r=t.call(this)||this;return r.isRTL=!1,r.hitsNeededDepth=0,r.hasAllDayBusinessHours=!1,r.isDatesRendered=!1,i&&(r.view=i),n&&(r.options=n),r.uid=String(e.guid++),r.childrenByUid={},r.nextDayThreshold=o.duration(r.opt("nextDayThreshold")),r.isRTL=r.opt("isRTL"),r.fillRendererClass&&(r.fillRenderer=new r.fillRendererClass(r)),r.eventRendererClass&&(r.eventRenderer=new r.eventRendererClass(r,r.fillRenderer)),r.helperRendererClass&&r.eventRenderer&&(r.helperRenderer=new r.helperRendererClass(r,r.eventRenderer)),r.businessHourRendererClass&&r.fillRenderer&&(r.businessHourRenderer=new r.businessHourRendererClass(r,r.fillRenderer)),r}return r.__extends(e,t),e.prototype.addChild=function(t){return!this.childrenByUid[t.uid]&&(this.childrenByUid[t.uid]=t,!0)},e.prototype.removeChild=function(t){return!!this.childrenByUid[t.uid]&&(delete this.childrenByUid[t.uid],!0)},e.prototype.updateSize=function(t,e,i){this.callChildren("updateSize",arguments)},e.prototype.opt=function(t){return this._getView().opt(t)},e.prototype.publiclyTrigger=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this._getCalendar();return i.publiclyTrigger.apply(i,t)},e.prototype.hasPublicHandlers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this._getCalendar();return i.hasPublicHandlers.apply(i,t)},e.prototype.executeDateRender=function(t){this.dateProfile=t,this.renderDates(t),this.isDatesRendered=!0,this.callChildren("executeDateRender",arguments)},e.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments),this.dateProfile=null,this.unrenderDates(),this.isDatesRendered=!1},e.prototype.renderDates=function(t){},e.prototype.unrenderDates=function(){},e.prototype.getNowIndicatorUnit=function(){},e.prototype.renderNowIndicator=function(t){this.callChildren("renderNowIndicator",arguments)},e.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},e.prototype.renderBusinessHours=function(t){this.businessHourRenderer&&this.businessHourRenderer.render(t),this.callChildren("renderBusinessHours",arguments)},e.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments),this.businessHourRenderer&&this.businessHourRenderer.unrender()},e.prototype.executeEventRender=function(t){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(t)):this.renderEvents&&this.renderEvents(n(t)),this.callChildren("executeEventRender",arguments)},e.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments),this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},e.prototype.getBusinessHourSegs=function(){var t=this.getOwnBusinessHourSegs();return this.iterChildren(function(e){t.push.apply(t,e.getBusinessHourSegs())}),t},e.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},e.prototype.getEventSegs=function(){var t=this.getOwnEventSegs();return this.iterChildren(function(e){t.push.apply(t,e.getEventSegs())}),t},e.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},e.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs()),this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},e.prototype.triggerAfterEventSegsRendered=function(t){var e=this;this.hasPublicHandlers("eventAfterRender")&&t.forEach(function(t){var i;t.el&&(i=t.footprint.getEventLegacy(),e.publiclyTrigger("eventAfterRender",{context:i,args:[i,t.el,e]}))})},e.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},e.prototype.triggerBeforeEventSegsDestroyed=function(t){var e=this;this.hasPublicHandlers("eventDestroy")&&t.forEach(function(t){var i;t.el&&(i=t.footprint.getEventLegacy(),e.publiclyTrigger("eventDestroy",{context:i,args:[i,t.el,e]}))})},e.prototype.showEventsWithId=function(t){this.getEventSegs().forEach(function(e){e.footprint.eventDef.id===t&&e.el&&e.el.css("visibility","")}),this.callChildren("showEventsWithId",arguments)},e.prototype.hideEventsWithId=function(t){this.getEventSegs().forEach(function(e){e.footprint.eventDef.id===t&&e.el&&e.el.css("visibility","hidden")}),this.callChildren("hideEventsWithId",arguments)},e.prototype.renderDrag=function(t,e,i){var n=!1;return this.iterChildren(function(r){r.renderDrag(t,e,i)&&(n=!0)}),n},e.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},e.prototype.renderEventResize=function(t,e,i){this.callChildren("renderEventResize",arguments)},e.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},e.prototype.renderSelectionFootprint=function(t){this.renderHighlight(t),this.callChildren("renderSelectionFootprint",arguments)},e.prototype.unrenderSelection=function(){this.unrenderHighlight(),this.callChildren("unrenderSelection",arguments)},e.prototype.renderHighlight=function(t){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",t,{getClasses:function(){return["fc-highlight"]}}),this.callChildren("renderHighlight",arguments)},e.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight"),this.callChildren("unrenderHighlight",arguments)},e.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits(),this.callChildren("hitsNeeded",arguments)},e.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits(),this.callChildren("hitsNotNeeded",arguments)},e.prototype.prepareHits=function(){},e.prototype.releaseHits=function(){},e.prototype.queryHit=function(t,e){var i,n,r=this.childrenByUid;for(i in r)if(n=r[i].queryHit(t,e))break;return n},e.prototype.getSafeHitFootprint=function(t){var e=this.getHitFootprint(t);return this.dateProfile.activeUnzonedRange.containsRange(e.unzonedRange)?e:null},e.prototype.getHitFootprint=function(t){},e.prototype.getHitEl=function(t){},e.prototype.eventRangesToEventFootprints=function(t){var e,i=[];for(e=0;e<t.length;e++)i.push.apply(i,this.eventRangeToEventFootprints(t[e]));return i},e.prototype.eventRangeToEventFootprints=function(t){return[c.eventRangeToEventFootprint(t)]},e.prototype.eventFootprintsToSegs=function(t){var e,i=[];for(e=0;e<t.length;e++)i.push.apply(i,this.eventFootprintToSegs(t[e]));return i},e.prototype.eventFootprintToSegs=function(t){var e,i,n,r=t.componentFootprint.unzonedRange;for(e=this.componentFootprintToSegs(t.componentFootprint),i=0;i<e.length;i++)n=e[i],r.isStart||(n.isStart=!1),r.isEnd||(n.isEnd=!1),n.footprint=t;return e},e.prototype.componentFootprintToSegs=function(t){return[]},e.prototype.callChildren=function(t,e){this.iterChildren(function(i){i[t].apply(i,e)})},e.prototype.iterChildren=function(t){var e,i=this.childrenByUid;for(e in i)t(i[e])},e.prototype._getCalendar=function(){var t=this;return t.calendar||t.view.calendar},e.prototype._getView=function(){return this.view},e.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},e.prototype.buildGotoAnchorHtml=function(t,e,i){var n,r,o,u;return a.isPlainObject(t)?(n=t.date,r=t.type,o=t.forceOff):n=t,n=l["default"](n),u={date:n.format("YYYY-MM-DD"),type:r||"day"},"string"==typeof e&&(i=e,e=null),e=e?" "+s.attrsToStr(e):"",i=i||"",!o&&this.opt("navLinks")?"<a"+e+' data-goto="'+s.htmlEscape(JSON.stringify(u))+'">'+i+"</a>":"<span"+e+">"+i+"</span>"},e.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||s.htmlEscape(this.opt("allDayText"))},e.prototype.getDayClasses=function(t,e){var i,n=this._getView(),r=[];return this.dateProfile.activeUnzonedRange.containsDate(t)?(r.push("fc-"+s.dayIDs[t.day()]),n.isDateInOtherMonth(t,this.dateProfile)&&r.push("fc-other-month"),i=n.calendar.getNow(),t.isSame(i,"day")?(r.push("fc-today"),e!==!0&&r.push(n.calendar.theme.getClass("today"))):t<i?r.push("fc-past"):r.push("fc-future")):r.push("fc-disabled-day"),r},e.prototype.formatRange=function(t,e,i,n){var r=t.end;return e&&(r=r.clone().subtract(1)),u.formatRange(t.start,r,i,n,this.isRTL)},e.prototype.currentRangeAs=function(t){return this._getDateProfile().currentUnzonedRange.as(t)},e.prototype.computeDayRange=function(t){var e=this._getCalendar(),i=e.msToUtcMoment(t.startMs,!0),n=e.msToUtcMoment(t.endMs),r=+n.time(),a=n.clone().stripTime();return r&&r>=this.nextDayThreshold&&a.add(1,"days"),a<=i&&(a=i.clone().add(1,"days")),{start:i,end:a}},e.prototype.isMultiDayRange=function(t){var e=this.computeDayRange(t);return e.end.diff(e.start,"days")>1},e.guid=0,e}(h["default"]);e["default"]=d},function(t,e,i){function n(t,e){return null==e?t:r.isFunction(e)?t.filter(e):(e+="",t.filter(function(t){return t.id==e||t._id===e}))}Object.defineProperty(e,"__esModule",{value:!0});var r=i(3),a=i(0),o=i(4),s=i(32),l=i(238),u=i(21),h=i(11),c=i(7),d=i(239),p=i(240),f=i(241),g=i(207),m=i(31),v=i(10),y=i(5),_=i(12),b=i(17),x=i(242),w=i(212),M=i(38),S=i(49),k=i(13),D=i(37),T=i(6),L=i(51),C=function(){function t(t,e){this.loadingLevel=0,this.ignoreUpdateViewSize=0,this.freezeContentHeightDepth=0,u["default"].needed(),this.el=t,this.viewsByType={},this.optionsManager=new p["default"](this,e),this.viewSpecManager=new f["default"](this.optionsManager,this),this.initMomentInternals(),this.initCurrentDate(),this.initEventManager(),this.constraints=new g["default"](this.eventManager,this),this.constructed()}return t.prototype.constructed=function(){},t.prototype.getView=function(){return this.view},t.prototype.publiclyTrigger=function(t,e){var i,n,a=this.opt(t);if(r.isPlainObject(e)?(i=e.context,n=e.args):r.isArray(e)&&(n=e),null==i&&(i=this.el[0]),n||(n=[]),this.triggerWith(t,i,n),a)return a.apply(i,n)},t.prototype.hasPublicHandlers=function(t){return this.hasHandlers(t)||this.opt(t)},t.prototype.option=function(t,e){var i;if("string"==typeof t){if(void 0===e)return this.optionsManager.get(t);i={},i[t]=e,this.optionsManager.add(i)}else"object"==typeof t&&this.optionsManager.add(t)},t.prototype.opt=function(t){return this.optionsManager.get(t)},t.prototype.instantiateView=function(t){var e=this.viewSpecManager.getViewSpec(t);if(!e)throw new Error('View type "'+t+'" is not valid');return new e["class"](this,e)},t.prototype.isValidViewType=function(t){return Boolean(this.viewSpecManager.getViewSpec(t))},t.prototype.changeView=function(t,e){e&&(e.start&&e.end?this.optionsManager.recordOverrides({visibleRange:e}):this.currentDate=this.moment(e).stripZone()),this.renderView(t)},t.prototype.zoomTo=function(t,e){var i;e=e||"day",i=this.viewSpecManager.getViewSpec(e)||this.viewSpecManager.getUnitViewSpec(e),this.currentDate=t.clone(),this.renderView(i?i.type:null)},t.prototype.initCurrentDate=function(){var t=this.opt("defaultDate");null!=t?this.currentDate=this.moment(t).stripZone():this.currentDate=this.getNow()},t.prototype.prev=function(){var t=this.view,e=t.dateProfileGenerator.buildPrev(t.get("dateProfile"));e.isValid&&(this.currentDate=e.date,this.renderView())},t.prototype.next=function(){var t=this.view,e=t.dateProfileGenerator.buildNext(t.get("dateProfile"));e.isValid&&(this.currentDate=e.date,this.renderView())},t.prototype.prevYear=function(){this.currentDate.add(-1,"years"),this.renderView()},t.prototype.nextYear=function(){this.currentDate.add(1,"years"),this.renderView()},t.prototype.today=function(){this.currentDate=this.getNow(),this.renderView()},t.prototype.gotoDate=function(t){this.currentDate=this.moment(t).stripZone(),this.renderView()},t.prototype.incrementDate=function(t){this.currentDate.add(a.duration(t)),this.renderView()},t.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},t.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},t.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},t.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},t.prototype.initialRender=function(){var t=this,e=this.el;e.addClass("fc"),e.on("click.fc","a[data-goto]",function(e){var i=r(e.currentTarget),n=i.data("goto"),a=t.moment(n.date),s=n.type,l=t.view.opt("navLink"+o.capitaliseFirstLetter(s)+"Click");"function"==typeof l?l(a,e):("string"==typeof l&&(s=l),t.zoomTo(a,s))}),this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(i){var n=L.getThemeSystemClass(i.themeSystem||i.theme),r=new n(t.optionsManager),a=r.getClass("widget");t.theme=r,a&&e.addClass(a)},function(){var i=t.theme.getClass("widget");t.theme=null,i&&e.removeClass(i)}),this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(e){t.businessHourGenerator=new w["default"](e.businessHours,t),t.view&&t.view.set("businessHourGenerator",t.businessHourGenerator)},function(){t.businessHourGenerator=null}),this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(t){e.toggleClass("fc-ltr",!t.isRTL),e.toggleClass("fc-rtl",t.isRTL)}),this.contentEl=r("<div class='fc-view-container'/>").prependTo(e),this.initToolbars(),this.renderHeader(),this.renderFooter(),this.renderView(this.opt("defaultView")),this.opt("handleWindowResize")&&r(window).resize(this.windowResizeProxy=o.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},t.prototype.destroy=function(){this.view&&this.clearView(),this.toolbarsManager.proxyCall("removeElement"),this.contentEl.remove(),this.el.removeClass("fc fc-ltr fc-rtl"),this.optionsManager.unwatch("settingTheme"),this.optionsManager.unwatch("settingBusinessHourGenerator"),this.el.off(".fc"),this.windowResizeProxy&&(r(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null),u["default"].unneeded()},t.prototype.elementVisible=function(){return this.el.is(":visible")},t.prototype.bindViewHandlers=function(t){var e=this;t.watch("titleForCalendar",["title"],function(i){t===e.view&&e.setToolbarsTitle(i.title)}),t.watch("dateProfileForCalendar",["dateProfile"],function(i){t===e.view&&(e.currentDate=i.dateProfile.date,e.updateToolbarButtons(i.dateProfile))})},t.prototype.unbindViewHandlers=function(t){t.unwatch("titleForCalendar"),t.unwatch("dateProfileForCalendar")},t.prototype.renderView=function(t){var e,i=this.view;this.freezeContentHeight(),i&&t&&i.type!==t&&this.clearView(),!this.view&&t&&(e=this.view=this.viewsByType[t]||(this.viewsByType[t]=this.instantiateView(t)),this.bindViewHandlers(e),e.startBatchRender(),e.setElement(r("<div class='fc-view fc-"+t+"-view' />").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",t)),this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),e&&e.stopBatchRender()),this.thawContentHeight()},t.prototype.clearView=function(){var t=this.view;this.toolbarsManager.proxyCall("deactivateButton",t.type),this.unbindViewHandlers(t),t.removeElement(),t.unsetDate(),this.view=null},t.prototype.reinitView=function(){var t=this.view,e=t.queryScroll();this.freezeContentHeight(),this.clearView(),this.calcSize(),this.renderView(t.type),this.view.applyScroll(e),this.thawContentHeight(); },t.prototype.getSuggestedViewHeight=function(){return null==this.suggestedViewHeight&&this.calcSize(),this.suggestedViewHeight},t.prototype.isHeightAuto=function(){return"auto"===this.opt("contentHeight")||"auto"===this.opt("height")},t.prototype.updateViewSize=function(t){void 0===t&&(t=!1);var e,i=this.view;if(!this.ignoreUpdateViewSize&&i)return t&&(this.calcSize(),e=i.queryScroll()),this.ignoreUpdateViewSize++,i.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),t),this.ignoreUpdateViewSize--,t&&i.applyScroll(e),!0},t.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},t.prototype._calcSize=function(){var t=this.opt("contentHeight"),e=this.opt("height");"number"==typeof t?this.suggestedViewHeight=t:"function"==typeof t?this.suggestedViewHeight=t():"number"==typeof e?this.suggestedViewHeight=e-this.queryToolbarsHeight():"function"==typeof e?this.suggestedViewHeight=e()-this.queryToolbarsHeight():"parent"===e?this.suggestedViewHeight=this.el.parent().height()-this.queryToolbarsHeight():this.suggestedViewHeight=Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},t.prototype.windowResize=function(t){t.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},t.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},t.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},t.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--,this.contentEl.css({width:"",height:"",overflow:""}),this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},t.prototype.initToolbars=function(){this.header=new d["default"](this,this.computeHeaderOptions()),this.footer=new d["default"](this,this.computeFooterOptions()),this.toolbarsManager=new l["default"]([this.header,this.footer])},t.prototype.computeHeaderOptions=function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},t.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},t.prototype.renderHeader=function(){var t=this.header;t.setToolbarOptions(this.computeHeaderOptions()),t.render(),t.el&&this.el.prepend(t.el)},t.prototype.renderFooter=function(){var t=this.footer;t.setToolbarOptions(this.computeFooterOptions()),t.render(),t.el&&this.el.append(t.el)},t.prototype.setToolbarsTitle=function(t){this.toolbarsManager.proxyCall("updateTitle",t)},t.prototype.updateToolbarButtons=function(t){var e=this.getNow(),i=this.view,n=i.dateProfileGenerator.build(e),r=i.dateProfileGenerator.buildPrev(i.get("dateProfile")),a=i.dateProfileGenerator.buildNext(i.get("dateProfile"));this.toolbarsManager.proxyCall(n.isValid&&!t.currentUnzonedRange.containsDate(e)?"enableButton":"disableButton","today"),this.toolbarsManager.proxyCall(r.isValid?"enableButton":"disableButton","prev"),this.toolbarsManager.proxyCall(a.isValid?"enableButton":"disableButton","next")},t.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(t,e){var i=e.el?e.el.outerHeight(!0):0;return t+i},0)},t.prototype.select=function(t,e){this.view.select(this.buildSelectFootprint.apply(this,arguments))},t.prototype.unselect=function(){this.view&&this.view.unselect()},t.prototype.buildSelectFootprint=function(t,e){var i,n=this.moment(t).stripZone();return i=e?this.moment(e).stripZone():n.hasTime()?n.clone().add(this.defaultTimedEventDuration):n.clone().add(this.defaultAllDayEventDuration),new _["default"](new y["default"](n,i),(!n.hasTime()))},t.prototype.initMomentInternals=function(){var t=this;this.defaultAllDayEventDuration=a.duration(this.opt("defaultAllDayEventDuration")),this.defaultTimedEventDuration=a.duration(this.opt("defaultTimedEventDuration")),this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(e){var i,n=e.weekNumberCalculation,r=e.firstDay;"iso"===n&&(n="ISO");var a=Object.create(m.getMomentLocaleData(e.locale));e.monthNames&&(a._months=e.monthNames),e.monthNamesShort&&(a._monthsShort=e.monthNamesShort),e.dayNames&&(a._weekdays=e.dayNames),e.dayNamesShort&&(a._weekdaysShort=e.dayNamesShort),null==r&&"ISO"===n&&(r=1),null!=r&&(i=Object.create(a._week),i.dow=r,a._week=i),"ISO"!==n&&"local"!==n&&"function"!=typeof n||(a._fullCalendar_weekCalc=n),t.localeData=a,t.currentDate&&t.localizeMoment(t.currentDate)})},t.prototype.moment=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i;return"local"===this.opt("timezone")?(i=v["default"].apply(null,t),i.hasTime()&&i.local()):i="UTC"===this.opt("timezone")?v["default"].utc.apply(null,t):v["default"].parseZone.apply(null,t),this.localizeMoment(i),i},t.prototype.msToMoment=function(t,e){var i=v["default"].utc(t);return e?i.stripTime():i=this.applyTimezone(i),this.localizeMoment(i),i},t.prototype.msToUtcMoment=function(t,e){var i=v["default"].utc(t);return e&&i.stripTime(),this.localizeMoment(i),i},t.prototype.localizeMoment=function(t){t._locale=this.localeData},t.prototype.getIsAmbigTimezone=function(){return"local"!==this.opt("timezone")&&"UTC"!==this.opt("timezone")},t.prototype.applyTimezone=function(t){if(!t.hasTime())return t.clone();var e,i=this.moment(t.toArray()),n=t.time().asMilliseconds()-i.time().asMilliseconds();return n&&(e=i.clone().add(n),t.time().asMilliseconds()-e.time().asMilliseconds()===0&&(i=e)),i},t.prototype.footprintToDateProfile=function(t,e){void 0===e&&(e=!1);var i,n=v["default"].utc(t.unzonedRange.startMs);return e||(i=v["default"].utc(t.unzonedRange.endMs)),t.isAllDay?(n.stripTime(),i&&i.stripTime()):(n=this.applyTimezone(n),i&&(i=this.applyTimezone(i))),new b["default"](n,i,this)},t.prototype.getNow=function(){var t=this.opt("now");return"function"==typeof t&&(t=t()),this.moment(t).stripZone()},t.prototype.humanizeDuration=function(t){return t.locale(this.opt("locale")).humanize()},t.prototype.parseUnzonedRange=function(t){var e=null,i=null;return t.start&&(e=this.moment(t.start).stripZone()),t.end&&(i=this.moment(t.end).stripZone()),e||i?e&&i&&i.isBefore(e)?null:new y["default"](e,i):null},t.prototype.initEventManager=function(){var t=this,e=new x["default"](this),i=this.opt("eventSources")||[],n=this.opt("events");this.eventManager=e,n&&i.unshift(n),e.on("release",function(e){t.trigger("eventsReset",e)}),e.freeze(),i.forEach(function(i){var n=M["default"].parse(i,t);n&&e.addSource(n)}),e.thaw()},t.prototype.requestEvents=function(t,e){return this.eventManager.requestEvents(t,e,this.opt("timezone"),!this.opt("lazyFetching"))},t.prototype.getEventEnd=function(t){return t.end?t.end.clone():this.getDefaultEventEnd(t.allDay,t.start)},t.prototype.getDefaultEventEnd=function(t,e){var i=e.clone();return t?i.stripTime().add(this.defaultAllDayEventDuration):i.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&i.stripZone(),i},t.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},t.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},t.prototype.renderEvents=function(t,e){this.eventManager.freeze();for(var i=0;i<t.length;i++)this.renderEvent(t[i],e);this.eventManager.thaw()},t.prototype.renderEvent=function(t,e){void 0===e&&(e=!1);var i=this.eventManager,n=S["default"].parse(t,t.source||i.stickySource);n&&i.addEventDef(n,e)},t.prototype.removeEvents=function(t){var e,i,r=this.eventManager,a=[],o={};if(null==t)r.removeAllEventDefs();else{for(r.getEventInstances().forEach(function(t){a.push(t.toLegacy())}),a=n(a,t),i=0;i<a.length;i++)e=this.eventManager.getEventDefByUid(a[i]._id),o[e.id]=!0;r.freeze();for(i in o)r.removeEventDefsById(i);r.thaw()}},t.prototype.clientEvents=function(t){var e=[];return this.eventManager.getEventInstances().forEach(function(t){e.push(t.toLegacy())}),n(e,t)},t.prototype.updateEvents=function(t){this.eventManager.freeze();for(var e=0;e<t.length;e++)this.updateEvent(t[e]);this.eventManager.thaw()},t.prototype.updateEvent=function(t){var e,i,n=this.eventManager.getEventDefByUid(t._id);n instanceof k["default"]&&(e=n.buildInstance(),i=D["default"].createFromRawProps(e,t,null),this.eventManager.mutateEventsWithId(n.id,i))},t.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},t.prototype.getEventSourceById=function(t){return this.eventManager.getSourceById(T["default"].normalizeId(t))},t.prototype.addEventSource=function(t){var e=M["default"].parse(t,this);e&&this.eventManager.addSource(e)},t.prototype.removeEventSources=function(t){var e,i,n=this.eventManager;if(null==t)this.eventManager.removeAllSources();else{for(e=n.multiQuerySources(t),n.freeze(),i=0;i<e.length;i++)n.removeSource(e[i]);n.thaw()}},t.prototype.removeEventSource=function(t){var e,i=this.eventManager,n=i.querySources(t);for(i.freeze(),e=0;e<n.length;e++)i.removeSource(n[e]);i.thaw()},t.prototype.refetchEventSources=function(t){var e,i=this.eventManager,n=i.multiQuerySources(t);for(i.freeze(),e=0;e<n.length;e++)i.refetchSource(n[e]);i.thaw()},t.defaults=s.globalDefaults,t.englishDefaults=s.englishDefaults,t.rtlDefaults=s.rtlDefaults,t}();e["default"]=C,h["default"].mixInto(C),c["default"].mixInto(C)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(4),a=i(5),o=function(){function t(t){this._view=t}return t.prototype.opt=function(t){return this._view.opt(t)},t.prototype.trimHiddenDays=function(t){return this._view.trimHiddenDays(t)},t.prototype.msToUtcMoment=function(t,e){return this._view.calendar.msToUtcMoment(t,e)},t.prototype.buildPrev=function(t){var e=t.date.clone().startOf(t.currentRangeUnit).subtract(t.dateIncrement);return this.build(e,-1)},t.prototype.buildNext=function(t){var e=t.date.clone().startOf(t.currentRangeUnit).add(t.dateIncrement);return this.build(e,1)},t.prototype.build=function(t,e,i){void 0===i&&(i=!1);var r,a,o,s,l,u,h=!t.hasTime(),c=null,d=null;return r=this.buildValidRange(),r=this.trimHiddenDays(r),i&&(t=this.msToUtcMoment(r.constrainDate(t),h)),a=this.buildCurrentRangeInfo(t,e),o=/^(year|month|week|day)$/.test(a.unit),s=this.buildRenderRange(this.trimHiddenDays(a.unzonedRange),a.unit,o),s=this.trimHiddenDays(s),l=s.clone(),this.opt("showNonCurrentDates")||(l=l.intersect(a.unzonedRange)),c=n.duration(this.opt("minTime")),d=n.duration(this.opt("maxTime")),l=this.adjustActiveRange(l,c,d),l=l.intersect(r),l&&(t=this.msToUtcMoment(l.constrainDate(t),h)),u=a.unzonedRange.intersectsWith(r),{validUnzonedRange:r,currentUnzonedRange:a.unzonedRange,currentRangeUnit:a.unit,isRangeAllDay:o,activeUnzonedRange:l,renderUnzonedRange:s,minTime:c,maxTime:d,isValid:u,date:t,dateIncrement:this.buildDateIncrement(a.duration)}},t.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new a["default"]},t.prototype.buildCurrentRangeInfo=function(t,e){var i,n=this._view.viewSpec,a=null,o=null,s=null;return n.duration?(a=n.duration,o=n.durationUnit,s=this.buildRangeFromDuration(t,e,a,o)):(i=this.opt("dayCount"))?(o="day",s=this.buildRangeFromDayCount(t,e,i)):(s=this.buildCustomVisibleRange(t))?o=r.computeGreatestUnit(s.getStart(),s.getEnd()):(a=this.getFallbackDuration(),o=r.computeGreatestUnit(a),s=this.buildRangeFromDuration(t,e,a,o)),{duration:a,unit:o,unzonedRange:s}},t.prototype.getFallbackDuration=function(){return n.duration({days:1})},t.prototype.adjustActiveRange=function(t,e,i){var n=t.getStart(),r=t.getEnd();return this._view.usesMinMaxTime&&(e<0&&n.time(0).add(e),i>864e5&&r.time(i-864e5)),new a["default"](n,r)},t.prototype.buildRangeFromDuration=function(t,e,i,o){function s(){h=t.clone().startOf(p),c=h.clone().add(i),d=new a["default"](h,c)}var l,u,h,c,d,p=this.opt("dateAlignment");return p||(l=this.opt("dateIncrement"),l?(u=n.duration(l),p=u<i?r.computeDurationGreatestUnit(u,l):o):p=o),i.as("days")<=1&&this._view.isHiddenDay(h)&&(h=this._view.skipHiddenDays(h,e),h.startOf("day")),s(),this.trimHiddenDays(d)||(t=this._view.skipHiddenDays(t,e),s()),d},t.prototype.buildRangeFromDayCount=function(t,e,i){var n,r=this.opt("dateAlignment"),o=0,s=t.clone();r&&s.startOf(r),s.startOf("day"),s=this._view.skipHiddenDays(s,e),n=s.clone();do n.add(1,"day"),this._view.isHiddenDay(n)||o++;while(o<i);return new a["default"](s,n)},t.prototype.buildCustomVisibleRange=function(t){var e=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(t));return!e||null!=e.startMs&&null!=e.endMs?e:null},t.prototype.buildRenderRange=function(t,e,i){return t.clone()},t.prototype.buildDateIncrement=function(t){var e,i=this.opt("dateIncrement");return i?n.duration(i):(e=this.opt("dateAlignment"))?n.duration(1,e):t?t:n.duration({days:1})},t}();e["default"]=o},function(t,e,i){function n(t){var e,i,n,r,l=s.dataAttrPrefix;return l&&(l+="-"),e=t.data(l+"event")||null,e&&(e="object"==typeof e?a.extend({},e):{},i=e.start,null==i&&(i=e.time),n=e.duration,r=e.stick,delete e.start,delete e.time,delete e.duration,delete e.stick),null==i&&(i=t.data(l+"start")),null==i&&(i=t.data(l+"time")),null==n&&(n=t.data(l+"duration")),null==r&&(r=t.data(l+"stick")),i=null!=i?o.duration(i):null,n=null!=n?o.duration(n):null,r=Boolean(r),{eventProps:e,startTime:i,duration:n,stick:r}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(2),a=i(3),o=i(0),s=i(16),l=i(4),u=i(10),h=i(7),c=i(23),d=i(13),p=i(18),f=i(6),g=i(15),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return r.__extends(e,t),e.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},e.prototype.bindToDocument=function(){this.listenTo(a(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},e.prototype.unbindFromDocument=function(){this.stopListeningTo(a(document))},e.prototype.handleDragStart=function(t,e){var i,n;this.opt("droppable")&&(i=a((e?e.item:null)||t.target),n=this.opt("dropAccept"),(a.isFunction(n)?n.call(i[0],i):i.is(n))&&(this.isDragging||this.listenToExternalDrag(i,t,e)))},e.prototype.listenToExternalDrag=function(t,e,i){var r,a=this,o=this.component,s=this.view,u=n(t),h=this.dragListener=new c["default"](o,{interactionStart:function(){a.isDragging=!0},hitOver:function(t){var e,i=!0,n=t.component.getSafeHitFootprint(t);n?(r=a.computeExternalDrop(n,u),r?(e=new p["default"](r.buildInstances()),i=u.eventProps?o.isEventInstanceGroupAllowed(e):o.isExternalInstanceGroupAllowed(e)):i=!1):i=!1,i||(r=null,l.disableCursor()),r&&o.renderDrag(o.eventRangesToEventFootprints(e.sliceRenderRanges(o.dateProfile.renderUnzonedRange,s.calendar)))},hitOut:function(){r=null},hitDone:function(){l.enableCursor(),o.unrenderDrag()},interactionEnd:function(e){r&&s.reportExternalDrop(r,Boolean(u.eventProps),Boolean(u.stick),t,e,i),a.isDragging=!1,a.dragListener=null}});h.startDrag(e)},e.prototype.computeExternalDrop=function(t,e){var i,n,r=this.view.calendar,o=u["default"].utc(t.unzonedRange.startMs).stripZone();return t.isAllDay&&(e.startTime?o.time(e.startTime):o.stripTime()),e.duration&&(i=o.clone().add(e.duration)),o=r.applyTimezone(o),i&&(i=r.applyTimezone(i)),n=d["default"].parse(a.extend({},e.eventProps,{start:o,end:i}),new f["default"](r))},e}(g["default"]);e["default"]=m,h["default"].mixInto(m),s.dataAttrPrefix=""},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(4),o=i(37),s=i(50),l=i(23),u=i(15),h=function(t){function e(e,i){var n=t.call(this,e)||this;return n.isResizing=!1,n.eventPointing=i,n}return n.__extends(e,t),e.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},e.prototype.bindToEl=function(t){var e=this.component;e.bindSegHandlerToEl(t,"mousedown",this.handleMouseDown.bind(this)),e.bindSegHandlerToEl(t,"touchstart",this.handleTouchStart.bind(this))},e.prototype.handleMouseDown=function(t,e){this.component.canStartResize(t,e)&&this.buildDragListener(t,r(e.target).is(".fc-start-resizer")).startInteraction(e,{distance:5})},e.prototype.handleTouchStart=function(t,e){this.component.canStartResize(t,e)&&this.buildDragListener(t,r(e.target).is(".fc-start-resizer")).startInteraction(e)},e.prototype.buildDragListener=function(t,e){var i,n,r=this,o=this.component,s=this.view,u=s.calendar,h=u.eventManager,c=t.el,d=t.footprint.eventDef,p=t.footprint.eventInstance,f=this.dragListener=new l["default"](o,{scroll:this.opt("dragScroll"),subjectEl:c,interactionStart:function(){i=!1},dragStart:function(e){i=!0,r.eventPointing.handleMouseout(t,e),r.segResizeStart(t,e)},hitOver:function(i,l,c){var p,f=!0,g=o.getSafeHitFootprint(c),m=o.getSafeHitFootprint(i);g&&m?(n=e?r.computeEventStartResizeMutation(g,m,t.footprint):r.computeEventEndResizeMutation(g,m,t.footprint),n?(p=h.buildMutatedEventInstanceGroup(d.id,n),f=o.isEventInstanceGroupAllowed(p)):f=!1):f=!1,f?n.isEmpty()&&(n=null):(n=null,a.disableCursor()),n&&(s.hideEventsWithId(t.footprint.eventDef.id),s.renderEventResize(o.eventRangesToEventFootprints(p.sliceRenderRanges(o.dateProfile.renderUnzonedRange,u)),t))},hitOut:function(){n=null},hitDone:function(){s.unrenderEventResize(t),s.showEventsWithId(t.footprint.eventDef.id),a.enableCursor()},interactionEnd:function(e){i&&r.segResizeStop(t,e),n&&s.reportEventResize(p,n,c,e),r.dragListener=null}});return f},e.prototype.segResizeStart=function(t,e){this.isResizing=!0,this.component.publiclyTrigger("eventResizeStart",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},e.prototype.segResizeStop=function(t,e){this.isResizing=!1,this.component.publiclyTrigger("eventResizeStop",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},e.prototype.computeEventStartResizeMutation=function(t,e,i){var n,r,a=i.componentFootprint.unzonedRange,l=this.component.diffDates(e.unzonedRange.getStart(),t.unzonedRange.getStart());return a.getStart().add(l)<a.getEnd()&&(n=new s["default"],n.setStartDelta(l),r=new o["default"],r.setDateMutation(n),r)},e.prototype.computeEventEndResizeMutation=function(t,e,i){var n,r,a=i.componentFootprint.unzonedRange,l=this.component.diffDates(e.unzonedRange.getEnd(),t.unzonedRange.getEnd());return a.getEnd().add(l)>a.getStart()&&(n=new s["default"],n.setEndDelta(l),r=new o["default"],r.setDateMutation(n),r)},e}(u["default"]);e["default"]=h},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(4),a=i(37),o=i(50),s=i(54),l=i(23),u=i(244),h=i(15),c=function(t){function e(e,i){var n=t.call(this,e)||this;return n.isDragging=!1,n.eventPointing=i,n}return n.__extends(e,t),e.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},e.prototype.getSelectionDelay=function(){var t=this.opt("eventLongPressDelay");return null==t&&(t=this.opt("longPressDelay")),t},e.prototype.bindToEl=function(t){var e=this.component;e.bindSegHandlerToEl(t,"mousedown",this.handleMousedown.bind(this)),e.bindSegHandlerToEl(t,"touchstart",this.handleTouchStart.bind(this))},e.prototype.handleMousedown=function(t,e){!this.component.shouldIgnoreMouse()&&this.component.canStartDrag(t,e)&&this.buildDragListener(t).startInteraction(e,{distance:5})},e.prototype.handleTouchStart=function(t,e){var i=this.component,n={delay:this.view.isEventDefSelected(t.footprint.eventDef)?0:this.getSelectionDelay()};i.canStartDrag(t,e)?this.buildDragListener(t).startInteraction(e,n):i.canStartSelection(t,e)&&this.buildSelectListener(t).startInteraction(e,n)},e.prototype.buildSelectListener=function(t){var e=this,i=this.view,n=t.footprint.eventDef,r=t.footprint.eventInstance;if(this.dragListener)return this.dragListener;var a=this.dragListener=new s["default"]({dragStart:function(t){a.isTouch&&!i.isEventDefSelected(n)&&r&&i.selectEventInstance(r)},interactionEnd:function(t){e.dragListener=null}});return a},e.prototype.buildDragListener=function(t){var e,i,n,a=this,o=this.component,s=this.view,h=s.calendar,c=h.eventManager,d=t.el,p=t.footprint.eventDef,f=t.footprint.eventInstance;if(this.dragListener)return this.dragListener;var g=this.dragListener=new l["default"](s,{scroll:this.opt("dragScroll"),subjectEl:d,subjectCenter:!0,interactionStart:function(n){t.component=o,e=!1,i=new u["default"](t.el,{additionalClass:"fc-dragging",parentEl:s.el,opacity:g.isTouch?null:a.opt("dragOpacity"),revertDuration:a.opt("dragRevertDuration"),zIndex:2}),i.hide(),i.start(n)},dragStart:function(i){g.isTouch&&!s.isEventDefSelected(p)&&f&&s.selectEventInstance(f),e=!0,a.eventPointing.handleMouseout(t,i),a.segDragStart(t,i),s.hideEventsWithId(t.footprint.eventDef.id)},hitOver:function(e,l,u){var d,f,m,v=!0;t.hit&&(u=t.hit),d=u.component.getSafeHitFootprint(u),f=e.component.getSafeHitFootprint(e),d&&f?(n=a.computeEventDropMutation(d,f,p),n?(m=c.buildMutatedEventInstanceGroup(p.id,n),v=o.isEventInstanceGroupAllowed(m)):v=!1):v=!1,v||(n=null,r.disableCursor()),n&&s.renderDrag(o.eventRangesToEventFootprints(m.sliceRenderRanges(o.dateProfile.renderUnzonedRange,h)),t,g.isTouch)?i.hide():i.show(),l&&(n=null)},hitOut:function(){s.unrenderDrag(t),i.show(),n=null},hitDone:function(){r.enableCursor()},interactionEnd:function(r){delete t.component,i.stop(!n,function(){e&&(s.unrenderDrag(t),a.segDragStop(t,r)),s.showEventsWithId(t.footprint.eventDef.id),n&&s.reportEventDrop(f,n,d,r)}),a.dragListener=null}});return g},e.prototype.segDragStart=function(t,e){this.isDragging=!0,this.component.publiclyTrigger("eventDragStart",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},e.prototype.segDragStop=function(t,e){this.isDragging=!1,this.component.publiclyTrigger("eventDragStop",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},e.prototype.computeEventDropMutation=function(t,e,i){var n=new a["default"];return n.setDateMutation(this.computeEventDateMutation(t,e)),n},e.prototype.computeEventDateMutation=function(t,e){var i,n,r=t.unzonedRange.getStart(),a=e.unzonedRange.getStart(),s=!1,l=!1,u=!1;return t.isAllDay!==e.isAllDay&&(s=!0,e.isAllDay?(u=!0,r.stripTime()):l=!0),i=this.component.diffDates(a,r),n=new o["default"],n.clearEnd=s,n.forceTimed=l,n.forceAllDay=u,n.setDateDelta(i),n},e}(h["default"]);e["default"]=c},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(4),a=i(23),o=i(12),s=i(5),l=i(15),u=function(t){function e(e){var i=t.call(this,e)||this;return i.dragListener=i.buildDragListener(),i}return n.__extends(e,t),e.prototype.end=function(){this.dragListener.endInteraction()},e.prototype.getDelay=function(){var t=this.opt("selectLongPressDelay");return null==t&&(t=this.opt("longPressDelay")),t},e.prototype.bindToEl=function(t){var e=this,i=this.component,n=this.dragListener;i.bindDateHandlerToEl(t,"mousedown",function(t){e.opt("selectable")&&!i.shouldIgnoreMouse()&&n.startInteraction(t,{distance:e.opt("selectMinDistance")})}),i.bindDateHandlerToEl(t,"touchstart",function(t){e.opt("selectable")&&!i.shouldIgnoreTouch()&&n.startInteraction(t,{delay:e.getDelay()})}),r.preventSelection(t)},e.prototype.buildDragListener=function(){var t,e=this,i=this.component,n=new a["default"](i,{scroll:this.opt("dragScroll"),interactionStart:function(){t=null},dragStart:function(t){e.view.unselect(t)},hitOver:function(n,a,o){var s,l;o&&(s=i.getSafeHitFootprint(o),l=i.getSafeHitFootprint(n),t=s&&l?e.computeSelection(s,l):null,t?i.renderSelectionFootprint(t):t===!1&&r.disableCursor())},hitOut:function(){t=null,i.unrenderSelection()},hitDone:function(){r.enableCursor()},interactionEnd:function(i,n){!n&&t&&e.view.reportSelection(t,i)}});return n},e.prototype.computeSelection=function(t,e){var i=this.computeSelectionFootprint(t,e);return!(i&&!this.isSelectionFootprintAllowed(i))&&i},e.prototype.computeSelectionFootprint=function(t,e){var i=[t.unzonedRange.startMs,t.unzonedRange.endMs,e.unzonedRange.startMs,e.unzonedRange.endMs];return i.sort(r.compareNumbers),new o["default"](new s["default"](i[0],i[3]),t.isAllDay)},e.prototype.isSelectionFootprintAllowed=function(t){return this.component.dateProfile.validUnzonedRange.containsRange(t.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(t)},e}(l["default"]);e["default"]=u},function(t,e,i){function n(t){var e,i=[],n=[];for(e=0;e<t.length;e++)t[e].componentFootprint.isAllDay?i.push(t[e]):n.push(t[e]);return{allDay:i,timed:n}}Object.defineProperty(e,"__esModule",{value:!0});var r,a,o=i(2),s=i(0),l=i(3),u=i(4),h=i(39),c=i(41),d=i(227),p=i(61),f=5,g=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.usesMinMaxTime=!0,n.timeGrid=n.instantiateTimeGrid(),n.addChild(n.timeGrid),n.opt("allDaySlot")&&(n.dayGrid=n.instantiateDayGrid(),n.addChild(n.dayGrid)),n.scroller=new h["default"]({overflowX:"hidden",overflowY:"auto"}),n}return o.__extends(e,t),e.prototype.instantiateTimeGrid=function(){var t=new this.timeGridClass(this);return u.copyOwnProps(r,t),t},e.prototype.instantiateDayGrid=function(){var t=new this.dayGridClass(this);return u.copyOwnProps(a,t),t},e.prototype.renderSkeleton=function(){var t,e;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.scroller.render(),t=this.scroller.el.addClass("fc-time-grid-container"),e=l('<div class="fc-time-grid" />').appendTo(t),this.el.find(".fc-body > tr > td").append(t),this.timeGrid.headContainerEl=this.el.find(".fc-head-container"),this.timeGrid.setElement(e),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},e.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement(),this.dayGrid&&this.dayGrid.removeElement(),this.scroller.destroy()},e.prototype.renderSkeletonHtml=function(){var t=this.calendar.theme;return'<table class="'+t.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'"> </td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+t.getClass("widgetHeader")+'"/>':"")+"</td></tr></tbody></table>"},e.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},e.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},e.prototype.updateSize=function(e,i,n){var r,a,o;if(t.prototype.updateSize.call(this,e,i,n),this.axisWidth=u.matchCellWidths(this.el.find(".fc-axis")),!this.timeGrid.colEls)return void(i||(a=this.computeScrollerHeight(e),this.scroller.setHeight(a)));var s=this.el.find(".fc-row:not(.fc-scroller *)");this.timeGrid.bottomRuleEl.hide(),this.scroller.clear(),u.uncompensateScroll(s),this.dayGrid&&(this.dayGrid.removeSegPopover(),r=this.opt("eventLimit"),r&&"number"!=typeof r&&(r=f),r&&this.dayGrid.limitRows(r)),i||(a=this.computeScrollerHeight(e),this.scroller.setHeight(a),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(u.compensateScroll(s,o),a=this.computeScrollerHeight(e),this.scroller.setHeight(a)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<a&&this.timeGrid.bottomRuleEl.show())},e.prototype.computeScrollerHeight=function(t){return t-u.subtractInnerElHeight(this.el,this.scroller.el)},e.prototype.computeInitialDateScroll=function(){var t=s.duration(this.opt("scrollTime")),e=this.timeGrid.computeTimeTop(t);return e=Math.ceil(e),e&&e++,{top:e}},e.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},e.prototype.applyDateScroll=function(t){void 0!==t.top&&this.scroller.setScrollTop(t.top)},e.prototype.getHitFootprint=function(t){return t.component.getHitFootprint(t)},e.prototype.getHitEl=function(t){return t.component.getHitEl(t)},e.prototype.executeEventRender=function(t){var e,i,n={},r={};for(e in t)i=t[e],i.getEventDef().isAllDay()?n[e]=i:r[e]=i;this.timeGrid.executeEventRender(r),this.dayGrid&&this.dayGrid.executeEventRender(n)},e.prototype.renderDrag=function(t,e,i){var r=n(t),a=!1;return a=this.timeGrid.renderDrag(r.timed,e,i),this.dayGrid&&(a=this.dayGrid.renderDrag(r.allDay,e,i)||a),a},e.prototype.renderEventResize=function(t,e,i){var r=n(t);this.timeGrid.renderEventResize(r.timed,e,i),this.dayGrid&&this.dayGrid.renderEventResize(r.allDay,e,i)},e.prototype.renderSelectionFootprint=function(t){t.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(t):this.timeGrid.renderSelectionFootprint(t)},e}(c["default"]);e["default"]=g,g.prototype.timeGridClass=d["default"],g.prototype.dayGridClass=p["default"],r={renderHeadIntroHtml:function(){var t,e=this.view,i=e.calendar,n=i.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0);return this.opt("weekNumbers")?(t=n.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+i.theme.getClass("widgetHeader")+'" '+e.axisStyleAttr()+">"+e.buildGotoAnchorHtml({date:n,type:"week",forceOff:this.colCnt>1},u.htmlEscape(t))+"</th>"):'<th class="fc-axis '+i.theme.getClass("widgetHeader")+'" '+e.axisStyleAttr()+"></th>"},renderBgIntroHtml:function(){var t=this.view;return'<td class="fc-axis '+t.calendar.theme.getClass("widgetContent")+'" '+t.axisStyleAttr()+"></td>"},renderIntroHtml:function(){var t=this.view;return'<td class="fc-axis" '+t.axisStyleAttr()+"></td>"}},a={renderBgIntroHtml:function(){var t=this.view;return'<td class="fc-axis '+t.calendar.theme.getClass("widgetContent")+'" '+t.axisStyleAttr()+"><span>"+t.getAllDayHtml()+"</span></td>"},renderIntroHtml:function(){var t=this.view;return'<td class="fc-axis" '+t.axisStyleAttr()+"></td>"}}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(0),o=i(4),s=i(40),l=i(56),u=i(60),h=i(55),c=i(53),d=i(5),p=i(12),f=i(246),g=i(247),m=i(248),v=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],y=function(t){function e(e){var i=t.call(this,e)||this;return i.processOptions(),i}return n.__extends(e,t),e.prototype.componentFootprintToSegs=function(t){var e,i=this.sliceRangeByTimes(t.unzonedRange);for(e=0;e<i.length;e++)this.isRTL?i[e].col=this.daysPerRow-1-i[e].dayIndex:i[e].col=i[e].dayIndex;return i},e.prototype.sliceRangeByTimes=function(t){var e,i,n=[];for(i=0;i<this.daysPerRow;i++)e=t.intersect(this.dayRanges[i]),e&&n.push({startMs:e.startMs,endMs:e.endMs,isStart:e.isStart,isEnd:e.isEnd,dayIndex:i});return n},e.prototype.processOptions=function(){var t,e=this.opt("slotDuration"),i=this.opt("snapDuration");e=a.duration(e),i=i?a.duration(i):e,this.slotDuration=e,this.snapDuration=i,this.snapsPerSlot=e/i,t=this.opt("slotLabelFormat"),r.isArray(t)&&(t=t[t.length-1]),this.labelFormat=t||this.opt("smallTimeFormat"),t=this.opt("slotLabelInterval"),this.labelInterval=t?a.duration(t):this.computeLabelInterval(e)},e.prototype.computeLabelInterval=function(t){var e,i,n;for(e=v.length-1;e>=0;e--)if(i=a.duration(v[e]),n=o.divideDurationByDuration(i,t),o.isInt(n)&&n>1)return i;return a.duration(t)},e.prototype.renderDates=function(t){this.dateProfile=t,this.updateDayTable(),this.renderSlats(),this.renderColumns()},e.prototype.unrenderDates=function(){this.unrenderColumns()},e.prototype.renderSkeleton=function(){var t=this.view.calendar.theme;this.el.html('<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+t.getClass("widgetHeader")+'" style="display:none" />'),this.bottomRuleEl=this.el.find("hr")},e.prototype.renderSlats=function(){var t=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+t.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"</table>"),this.slatEls=this.slatContainerEl.find("tr"),this.slatCoordCache=new c["default"]({els:this.slatEls,isVertical:!0})},e.prototype.renderSlatRowHtml=function(){for(var t,e,i,n=this.view,r=n.calendar,s=r.theme,l=this.isRTL,u=this.dateProfile,h="",c=a.duration(+u.minTime),d=a.duration(0);c<u.maxTime;)t=r.msToUtcMoment(u.renderUnzonedRange.startMs).time(c),e=o.isInt(o.divideDurationByDuration(d,this.labelInterval)),i='<td class="fc-axis fc-time '+s.getClass("widgetContent")+'" '+n.axisStyleAttr()+">"+(e?"<span>"+o.htmlEscape(t.format(this.labelFormat))+"</span>":"")+"</td>", h+='<tr data-time="'+t.format("HH:mm:ss")+'"'+(e?"":' class="fc-minor"')+">"+(l?"":i)+'<td class="'+s.getClass("widgetContent")+'"/>'+(l?i:"")+"</tr>",c.add(this.slotDuration),d.add(this.slotDuration);return h},e.prototype.renderColumns=function(){var t=this.dateProfile,e=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(e){return new d["default"](e.clone().add(t.minTime),e.clone().add(t.maxTime))}),this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),this.el.find("> .fc-bg").html('<table class="'+e.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"</table>"),this.colEls=this.el.find(".fc-day, .fc-disabled-day"),this.colCoordCache=new c["default"]({els:this.colEls,isHorizontal:!0}),this.renderContentSkeleton()},e.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},e.prototype.renderContentSkeleton=function(){var t,e,i="";for(t=0;t<this.colCnt;t++)i+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>';e=this.contentSkeletonEl=r('<div class="fc-content-skeleton"><table><tr>'+i+"</tr></table></div>"),this.colContainerEls=e.find(".fc-content-col"),this.helperContainerEls=e.find(".fc-helper-container"),this.fgContainerEls=e.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=e.find(".fc-bgevent-container"),this.highlightContainerEls=e.find(".fc-highlight-container"),this.businessContainerEls=e.find(".fc-business-container"),this.bookendCells(e.find("tr")),this.el.append(e)},e.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl&&(this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null)},e.prototype.groupSegsByCol=function(t){var e,i=[];for(e=0;e<this.colCnt;e++)i.push([]);for(e=0;e<t.length;e++)i[t[e].col].push(t[e]);return i},e.prototype.attachSegsByCol=function(t,e){var i,n,r;for(i=0;i<this.colCnt;i++)for(n=t[i],r=0;r<n.length;r++)e.eq(i).append(n[r].el)},e.prototype.getNowIndicatorUnit=function(){return"minute"},e.prototype.renderNowIndicator=function(t){if(this.colContainerEls){var e,i=this.componentFootprintToSegs(new p["default"](new d["default"](t,t.valueOf()+1),(!1))),n=this.computeDateTop(t,t),a=[];for(e=0;e<i.length;e++)a.push(r('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",n).appendTo(this.colContainerEls.eq(i[e].col))[0]);i.length>0&&a.push(r('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",n).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=r(a)}},e.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},e.prototype.updateSize=function(e,i,n){t.prototype.updateSize.call(this,e,i,n),this.slatCoordCache.build(),n&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},e.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.outerHeight()},e.prototype.computeDateTop=function(t,e){return this.computeTimeTop(a.duration(t-e.clone().stripTime()))},e.prototype.computeTimeTop=function(t){var e,i,n=this.slatEls.length,r=this.dateProfile,a=(t-r.minTime)/this.slotDuration;return a=Math.max(0,a),a=Math.min(n,a),e=Math.floor(a),e=Math.min(e,n-1),i=a-e,this.slatCoordCache.getTopPosition(e)+this.slatCoordCache.getHeight(e)*i},e.prototype.updateSegVerticals=function(t){this.computeSegVerticals(t),this.assignSegVerticals(t)},e.prototype.computeSegVerticals=function(t){var e,i,n,r=this.opt("agendaEventMinHeight");for(e=0;e<t.length;e++)i=t[e],n=this.dayDates[i.dayIndex],i.top=this.computeDateTop(i.startMs,n),i.bottom=Math.max(i.top+r,this.computeDateTop(i.endMs,n))},e.prototype.assignSegVerticals=function(t){var e,i;for(e=0;e<t.length;e++)i=t[e],i.el.css(this.generateSegVerticalCss(i))},e.prototype.generateSegVerticalCss=function(t){return{top:t.top,bottom:-t.bottom}},e.prototype.prepareHits=function(){this.colCoordCache.build(),this.slatCoordCache.build()},e.prototype.releaseHits=function(){this.colCoordCache.clear()},e.prototype.queryHit=function(t,e){var i=this.snapsPerSlot,n=this.colCoordCache,r=this.slatCoordCache;if(n.isLeftInBounds(t)&&r.isTopInBounds(e)){var a=n.getHorizontalIndex(t),o=r.getVerticalIndex(e);if(null!=a&&null!=o){var s=r.getTopOffset(o),l=r.getHeight(o),u=(e-s)/l,h=Math.floor(u*i),c=o*i+h,d=s+h/i*l,p=s+(h+1)/i*l;return{col:a,snap:c,component:this,left:n.getLeftOffset(a),right:n.getRightOffset(a),top:d,bottom:p}}}},e.prototype.getHitFootprint=function(t){var e,i=this.getCellDate(0,t.col),n=this.computeSnapTime(t.snap);return i.time(n),e=i.clone().add(this.snapDuration),new p["default"](new d["default"](i,e),(!1))},e.prototype.computeSnapTime=function(t){return a.duration(this.dateProfile.minTime+this.snapDuration*t)},e.prototype.getHitEl=function(t){return this.colEls.eq(t.col)},e.prototype.renderDrag=function(t,e,i){var n;if(e){if(t.length)return this.helperRenderer.renderEventDraggingFootprints(t,e,i),!0}else for(n=0;n<t.length;n++)this.renderHighlight(t[n].componentFootprint)},e.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},e.prototype.renderEventResize=function(t,e,i){this.helperRenderer.renderEventResizingFootprints(t,e,i)},e.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},e.prototype.renderSelectionFootprint=function(t){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(t):this.renderHighlight(t)},e.prototype.unrenderSelection=function(){this.helperRenderer.unrender(),this.unrenderHighlight()},e}(s["default"]);e["default"]=y,y.prototype.eventRendererClass=f["default"],y.prototype.businessHourRendererClass=l["default"],y.prototype.helperRendererClass=g["default"],y.prototype.fillRendererClass=m["default"],u["default"].mixInto(y),h["default"].mixInto(y)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(5),a=i(221),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.buildRenderRange=function(e,i,n){var a=t.prototype.buildRenderRange.call(this,e,i,n),o=this.msToUtcMoment(a.startMs,n),s=this.msToUtcMoment(a.endMs,n);return/^(year|month)$/.test(i)&&(o.startOf("week"),s.weekday()&&s.add(1,"week").startOf("week")),new r["default"](o,s)},e}(a["default"]);e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(0),a=i(4),o=i(62),s=i(253),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.setGridHeight=function(t,e){e&&(t*=this.dayGrid.rowCnt/6),a.distributeHeight(this.dayGrid.rowEls,t,!e)},e.prototype.isDateInOtherMonth=function(t,e){return t.month()!==r.utc(e.currentUnzonedRange.startMs).month()},e}(o["default"]);e["default"]=l,l.prototype.dateProfileGeneratorClass=s["default"]},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(4),o=i(5),s=i(41),l=i(39),u=i(254),h=i(255),c=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.segSelector=".fc-list-item",n.scroller=new l["default"]({overflowX:"hidden",overflowY:"auto"}),n}return n.__extends(e,t),e.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView")),this.scroller.render(),this.scroller.el.appendTo(this.el),this.contentEl=this.scroller.scrollEl},e.prototype.unrenderSkeleton=function(){this.scroller.destroy()},e.prototype.updateSize=function(e,i,n){t.prototype.updateSize.call(this,e,i,n),this.scroller.clear(),i||this.scroller.setHeight(this.computeScrollerHeight(e))},e.prototype.computeScrollerHeight=function(t){return t-a.subtractInnerElHeight(this.el,this.scroller.el)},e.prototype.renderDates=function(t){for(var e=this.calendar,i=e.msToUtcMoment(t.renderUnzonedRange.startMs,!0),n=e.msToUtcMoment(t.renderUnzonedRange.endMs,!0),r=[],a=[];i<n;)r.push(i.clone()),a.push(new o["default"](i,i.clone().add(1,"day"))),i.add(1,"day");this.dayDates=r,this.dayRanges=a},e.prototype.componentFootprintToSegs=function(t){var e,i,n,r=this.dayRanges,a=[];for(e=0;e<r.length;e++)if(i=t.unzonedRange.intersect(r[e]),i&&(n={startMs:i.startMs,endMs:i.endMs,isStart:i.isStart,isEnd:i.isEnd,dayIndex:e},a.push(n),!n.isEnd&&!t.isAllDay&&e+1<r.length&&t.unzonedRange.endMs<r[e+1].startMs+this.nextDayThreshold)){n.endMs=t.unzonedRange.endMs,n.isEnd=!0;break}return a},e.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+a.htmlEscape(this.opt("noEventsMessage"))+"</div></div></div>")},e.prototype.renderSegList=function(t){var e,i,n,a=this.groupSegsByDay(t),o=r('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody/></table>'),s=o.find("tbody");for(e=0;e<a.length;e++)if(i=a[e])for(s.append(this.dayHeaderHtml(this.dayDates[e])),this.eventRenderer.sortEventSegs(i),n=0;n<i.length;n++)s.append(i[n].el);this.contentEl.empty().append(o)},e.prototype.groupSegsByDay=function(t){var e,i,n=[];for(e=0;e<t.length;e++)i=t[e],(n[i.dayIndex]||(n[i.dayIndex]=[])).push(i);return n},e.prototype.dayHeaderHtml=function(t){var e=this.opt("listDayFormat"),i=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+t.format("YYYY-MM-DD")+'"><td class="'+(this.calendar.theme.getClass("tableListHeading")||this.calendar.theme.getClass("widgetHeader"))+'" colspan="3">'+(e?this.buildGotoAnchorHtml(t,{"class":"fc-list-heading-main"},a.htmlEscape(t.format(e))):"")+(i?this.buildGotoAnchorHtml(t,{"class":"fc-list-heading-alt"},a.htmlEscape(t.format(i))):"")+"</td></tr>"},e}(s["default"]);e["default"]=c,c.prototype.eventRendererClass=u["default"],c.prototype.eventPointingClass=h["default"]},,,,,,function(t,e,i){var n=i(3),r=i(16),a=i(4),o=i(220);i(10),i(47),i(256),i(257),i(260),i(261),i(262),i(263),n.fullCalendar=r,n.fn.fullCalendar=function(t){var e=Array.prototype.slice.call(arguments,1),i=this;return this.each(function(r,s){var l,u=n(s),h=u.data("fullCalendar");"string"==typeof t?"getCalendar"===t?r||(i=h):"destroy"===t?h&&(h.destroy(),u.removeData("fullCalendar")):h?n.isFunction(h[t])?(l=h[t].apply(h,e),r||(i=l),"destroy"===t&&u.removeData("fullCalendar")):a.warn("'"+t+"' is an unknown FullCalendar method."):a.warn("Attempting to call a FullCalendar method on an element with no calendar."):h||(h=new o["default"](u,t),u.data("fullCalendar",h),h.render())}),i},t.exports=r},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(48),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.setElement=function(t){this.el=t,this.bindGlobalHandlers(),this.renderSkeleton(),this.set("isInDom",!0)},e.prototype.removeElement=function(){this.unset("isInDom"),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},e.prototype.bindGlobalHandlers=function(){},e.prototype.unbindGlobalHandlers=function(){},e.prototype.renderSkeleton=function(){},e.prototype.unrenderSkeleton=function(){},e}(r["default"]);e["default"]=a},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.items=t||[]}return t.prototype.proxyCall=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=[];return this.items.forEach(function(i){n.push(i[t].apply(i,e))}),n},t}();e["default"]=i},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(4),a=function(){function t(t,e){this.el=null,this.viewsWithButtons=[],this.calendar=t,this.toolbarOptions=e}return t.prototype.setToolbarOptions=function(t){this.toolbarOptions=t},t.prototype.render=function(){var t=this.toolbarOptions.layout,e=this.el;t?(e?e.empty():e=this.el=n("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'/>"),e.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"/>')):this.removeElement()},t.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},t.prototype.renderSection=function(t){var e=this,i=this.calendar,a=i.theme,o=i.optionsManager,s=i.viewSpecManager,l=n('<div class="fc-'+t+'"/>'),u=this.toolbarOptions.layout[t],h=o.get("customButtons")||{},c=o.overrides.buttonText||{},d=o.get("buttonText")||{};return u&&n.each(u.split(" "),function(t,o){var u,p=n(),f=!0;n.each(o.split(","),function(t,o){var l,u,g,m,v,y,_,b,x;"title"===o?(p=p.add(n("<h2> </h2>")),f=!1):((l=h[o])?(g=function(t){l.click&&l.click.call(b[0],t)},(m=a.getCustomButtonIconClass(l))||(m=a.getIconClass(o))||(v=l.text)):(u=s.getViewSpec(o))?(e.viewsWithButtons.push(o),g=function(){i.changeView(o)},(v=u.buttonTextOverride)||(m=a.getIconClass(o))||(v=u.buttonTextDefault)):i[o]&&(g=function(){i[o]()},(v=c[o])||(m=a.getIconClass(o))||(v=d[o])),g&&(_=["fc-"+o+"-button",a.getClass("button"),a.getClass("stateDefault")],v?(y=r.htmlEscape(v),x=""):m&&(y="<span class='"+m+"'></span>",x=' aria-label="'+o+'"'),b=n('<button type="button" class="'+_.join(" ")+'"'+x+">"+y+"</button>").click(function(t){b.hasClass(a.getClass("stateDisabled"))||(g(t),(b.hasClass(a.getClass("stateActive"))||b.hasClass(a.getClass("stateDisabled")))&&b.removeClass(a.getClass("stateHover")))}).mousedown(function(){b.not("."+a.getClass("stateActive")).not("."+a.getClass("stateDisabled")).addClass(a.getClass("stateDown"))}).mouseup(function(){b.removeClass(a.getClass("stateDown"))}).hover(function(){b.not("."+a.getClass("stateActive")).not("."+a.getClass("stateDisabled")).addClass(a.getClass("stateHover"))},function(){b.removeClass(a.getClass("stateHover")).removeClass(a.getClass("stateDown"))}),p=p.add(b)))}),f&&p.first().addClass(a.getClass("cornerLeft")).end().last().addClass(a.getClass("cornerRight")).end(),p.length>1?(u=n("<div/>"),f&&u.addClass(a.getClass("buttonGroup")),u.append(p),l.append(u)):l.append(p)}),l},t.prototype.updateTitle=function(t){this.el&&this.el.find("h2").text(t)},t.prototype.activateButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").addClass(this.calendar.theme.getClass("stateActive"))},t.prototype.deactivateButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},t.prototype.disableButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},t.prototype.enableButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},t.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},t}();e["default"]=a},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(4),o=i(32),s=i(31),l=i(48),u=function(t){function e(e,i){var n=t.call(this)||this;return n._calendar=e,n.overrides=r.extend({},i),n.dynamicOverrides={},n.compute(),n}return n.__extends(e,t),e.prototype.add=function(t){var e,i=0;this.recordOverrides(t);for(e in t)i++;if(1===i){if("height"===e||"contentHeight"===e||"aspectRatio"===e)return void this._calendar.updateViewSize(!0);if("defaultDate"===e)return;if("businessHours"===e)return;if(/^(event|select)(Overlap|Constraint|Allow)$/.test(e))return;if("timezone"===e)return void this._calendar.view.flash("initialEvents")}this._calendar.renderHeader(),this._calendar.renderFooter(),this._calendar.viewsByType={},this._calendar.reinitView()},e.prototype.compute=function(){var t,e,i,n,r;t=a.firstDefined(this.dynamicOverrides.locale,this.overrides.locale),e=s.localeOptionHash[t],e||(t=o.globalDefaults.locale,e=s.localeOptionHash[t]||{}),i=a.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,e.isRTL,o.globalDefaults.isRTL),n=i?o.rtlDefaults:{},this.dirDefaults=n,this.localeDefaults=e,r=o.mergeOptions([o.globalDefaults,n,e,this.overrides,this.dynamicOverrides]),s.populateInstanceComputableOptions(r),this.reset(r)},e.prototype.recordOverrides=function(t){var e;for(e in t)this.dynamicOverrides[e]=t[e];this._calendar.viewSpecManager.clearCache(),this.compute()},e}(l["default"]);e["default"]=u},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=i(3),a=i(22),o=i(4),s=i(32),l=i(31),u=function(){function t(t,e){this.optionsManager=t,this._calendar=e,this.clearCache()}return t.prototype.clearCache=function(){this.viewSpecCache={}},t.prototype.getViewSpec=function(t){var e=this.viewSpecCache;return e[t]||(e[t]=this.buildViewSpec(t))},t.prototype.getUnitViewSpec=function(t){var e,i,n;if(r.inArray(t,o.unitsDesc)!==-1)for(e=this._calendar.header.getViewsWithButtons(),r.each(a.viewHash,function(t){e.push(t)}),i=0;i<e.length;i++)if(n=this.getViewSpec(e[i]),n&&n.singleUnit===t)return n},t.prototype.buildViewSpec=function(t){for(var e,i,r,l,u,h=this.optionsManager.overrides.views||{},c=[],d=[],p=[],f=t;f;)e=a.viewHash[f],i=h[f],f=null,"function"==typeof e&&(e={"class":e}),e&&(c.unshift(e),d.unshift(e.defaults||{}),r=r||e.duration,f=f||e.type),i&&(p.unshift(i),r=r||i.duration,f=f||i.type);return e=o.mergeProps(c),e.type=t,!!e["class"]&&(r=r||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration,r&&(l=n.duration(r),l.valueOf()&&(u=o.computeDurationGreatestUnit(l,r),e.duration=l,e.durationUnit=u,1===l.as(u)&&(e.singleUnit=u,p.unshift(h[u]||{})))),e.defaults=s.mergeOptions(d),e.overrides=s.mergeOptions(p),this.buildViewSpecOptions(e),this.buildViewSpecButtonText(e,t),e)},t.prototype.buildViewSpecOptions=function(t){var e=this.optionsManager;t.options=s.mergeOptions([s.globalDefaults,t.defaults,e.dirDefaults,e.localeDefaults,e.overrides,t.overrides,e.dynamicOverrides]),l.populateInstanceComputableOptions(t.options)},t.prototype.buildViewSpecButtonText=function(t,e){function i(i){var n=i.buttonText||{};return n[e]||(t.buttonTextKey?n[t.buttonTextKey]:null)||(t.singleUnit?n[t.singleUnit]:null)}var n=this.optionsManager;t.buttonTextOverride=i(n.dynamicOverrides)||i(n.overrides)||t.overrides.buttonText,t.buttonTextDefault=i(n.localeDefaults)||i(n.dirDefaults)||t.defaults.buttonText||i(s.globalDefaults)||(t.duration?this._calendar.humanizeDuration(t.duration):null)||e},t}();e["default"]=u},function(t,e,i){function n(t,e){return t.getPrimitive()===e.getPrimitive()}Object.defineProperty(e,"__esModule",{value:!0});var r=i(3),a=i(4),o=i(243),s=i(52),l=i(6),u=i(38),h=i(13),c=i(18),d=i(11),p=i(7),f=function(){function t(t){this.calendar=t,this.stickySource=new s["default"](t),this.otherSources=[]}return t.prototype.requestEvents=function(t,e,i,n){return!n&&this.currentPeriod&&this.currentPeriod.isWithinRange(t,e)&&i===this.currentPeriod.timezone||this.setPeriod(new o["default"](t,e,i)),this.currentPeriod.whenReleased()},t.prototype.addSource=function(t){this.otherSources.push(t),this.currentPeriod&&this.currentPeriod.requestSource(t)},t.prototype.removeSource=function(t){a.removeExact(this.otherSources,t),this.currentPeriod&&this.currentPeriod.purgeSource(t)},t.prototype.removeAllSources=function(){this.otherSources=[],this.currentPeriod&&this.currentPeriod.purgeAllSources()},t.prototype.refetchSource=function(t){var e=this.currentPeriod;e&&(e.freeze(),e.purgeSource(t),e.requestSource(t),e.thaw())},t.prototype.refetchAllSources=function(){var t=this.currentPeriod;t&&(t.freeze(),t.purgeAllSources(),t.requestSources(this.getSources()),t.thaw())},t.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},t.prototype.multiQuerySources=function(t){t?r.isArray(t)||(t=[t]):t=[];var e,i=[];for(e=0;e<t.length;e++)i.push.apply(i,this.querySources(t[e]));return i},t.prototype.querySources=function(t){var e,i,a=this.otherSources;for(e=0;e<a.length;e++)if(i=a[e],i===t)return[i];return(i=this.getSourceById(l["default"].normalizeId(t)))?[i]:(t=u["default"].parse(t,this.calendar),t?r.grep(a,function(e){return n(t,e)}):void 0)},t.prototype.getSourceById=function(t){return r.grep(this.otherSources,function(e){return e.id&&e.id===t})[0]},t.prototype.setPeriod=function(t){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null),this.currentPeriod=t,this.bindPeriod(t),t.requestSources(this.getSources())},t.prototype.bindPeriod=function(t){this.listenTo(t,"release",function(t){this.trigger("release",t)})},t.prototype.unbindPeriod=function(t){this.stopListeningTo(t)},t.prototype.getEventDefByUid=function(t){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(t)},t.prototype.addEventDef=function(t,e){e&&this.stickySource.addEventDef(t),this.currentPeriod&&this.currentPeriod.addEventDef(t)},t.prototype.removeEventDefsById=function(t){this.getSources().forEach(function(e){e.removeEventDefsById(t)}),this.currentPeriod&&this.currentPeriod.removeEventDefsById(t)},t.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(t){t.removeAllEventDefs()}),this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},t.prototype.mutateEventsWithId=function(t,e){var i,n=this.currentPeriod,r=[];return n?(n.freeze(),i=n.getEventDefsById(t),i.forEach(function(t){n.removeEventDef(t),r.push(e.mutateSingle(t)),n.addEventDef(t)}),n.thaw(),function(){n.freeze();for(var t=0;t<i.length;t++)n.removeEventDef(i[t]),r[t](),n.addEventDef(i[t]);n.thaw()}):function(){}},t.prototype.buildMutatedEventInstanceGroup=function(t,e){var i,n,r=this.getEventDefsById(t),a=[];for(i=0;i<r.length;i++)n=r[i].clone(),n instanceof h["default"]&&(e.mutateSingle(n),a.push.apply(a,n.buildInstances()));return new c["default"](a)},t.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},t.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},t.prototype.getEventDefsById=function(t){return this.currentPeriod.getEventDefsById(t)},t.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},t.prototype.getEventInstancesWithId=function(t){return this.currentPeriod.getEventInstancesWithId(t)},t.prototype.getEventInstancesWithoutId=function(t){return this.currentPeriod.getEventInstancesWithoutId(t)},t}();e["default"]=f,d["default"].mixInto(f),p["default"].mixInto(f)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(4),a=i(20),o=i(11),s=i(5),l=i(18),u=function(){function t(t,e,i){this.pendingCnt=0,this.freezeDepth=0,this.stuntedReleaseCnt=0,this.releaseCnt=0,this.start=t,this.end=e,this.timezone=i,this.unzonedRange=new s["default"](t.clone().stripZone(),e.clone().stripZone()),this.requestsByUid={},this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={}}return t.prototype.isWithinRange=function(t,e){return!t.isBefore(this.start)&&!e.isAfter(this.end)},t.prototype.requestSources=function(t){this.freeze();for(var e=0;e<t.length;e++)this.requestSource(t[e]);this.thaw()},t.prototype.requestSource=function(t){var e=this,i={source:t,status:"pending",eventDefs:null};this.requestsByUid[t.uid]=i,this.pendingCnt+=1,t.fetch(this.start,this.end,this.timezone).then(function(t){"cancelled"!==i.status&&(i.status="completed",i.eventDefs=t,e.addEventDefs(t),e.pendingCnt--,e.tryRelease())},function(){"cancelled"!==i.status&&(i.status="failed",e.pendingCnt--,e.tryRelease())})},t.prototype.purgeSource=function(t){var e=this.requestsByUid[t.uid];e&&(delete this.requestsByUid[t.uid],"pending"===e.status?(e.status="cancelled",this.pendingCnt--,this.tryRelease()):"completed"===e.status&&e.eventDefs.forEach(this.removeEventDef.bind(this)))},t.prototype.purgeAllSources=function(){var t,e,i=this.requestsByUid,n=0;for(t in i)e=i[t],"pending"===e.status?e.status="cancelled":"completed"===e.status&&n++;this.requestsByUid={},this.pendingCnt=0,n&&this.removeAllEventDefs()},t.prototype.getEventDefByUid=function(t){return this.eventDefsByUid[t]},t.prototype.getEventDefsById=function(t){var e=this.eventDefsById[t];return e?e.slice():[]},t.prototype.addEventDefs=function(t){for(var e=0;e<t.length;e++)this.addEventDef(t[e])},t.prototype.addEventDef=function(t){var e,i=this.eventDefsById,n=t.id,r=i[n]||(i[n]=[]),a=t.buildInstances(this.unzonedRange);for(r.push(t),this.eventDefsByUid[t.uid]=t,e=0;e<a.length;e++)this.addEventInstance(a[e],n)},t.prototype.removeEventDefsById=function(t){var e=this;this.getEventDefsById(t).forEach(function(t){e.removeEventDef(t)})},t.prototype.removeAllEventDefs=function(){var t=n.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={},t||this.tryRelease()},t.prototype.removeEventDef=function(t){var e=this.eventDefsById,i=e[t.id];delete this.eventDefsByUid[t.uid],i&&(r.removeExact(i,t),i.length||delete e[t.id],this.removeEventInstancesForDef(t))},t.prototype.getEventInstances=function(){var t,e=this.eventInstanceGroupsById,i=[];for(t in e)i.push.apply(i,e[t].eventInstances);return i},t.prototype.getEventInstancesWithId=function(t){var e=this.eventInstanceGroupsById[t];return e?e.eventInstances.slice():[]},t.prototype.getEventInstancesWithoutId=function(t){var e,i=this.eventInstanceGroupsById,n=[];for(e in i)e!==t&&n.push.apply(n,i[e].eventInstances);return n},t.prototype.addEventInstance=function(t,e){var i=this.eventInstanceGroupsById,n=i[e]||(i[e]=new l["default"]);n.eventInstances.push(t),this.tryRelease()},t.prototype.removeEventInstancesForDef=function(t){var e,i=this.eventInstanceGroupsById,n=i[t.id];n&&(e=r.removeMatching(n.eventInstances,function(e){return e.def===t}),n.eventInstances.length||delete i[t.id],e&&this.tryRelease())},t.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release())},t.prototype.release=function(){this.releaseCnt++,this.trigger("release",this.eventInstanceGroupsById)},t.prototype.whenReleased=function(){var t=this;return this.releaseCnt?a["default"].resolve(this.eventInstanceGroupsById):a["default"].construct(function(e){t.one("release",e)})},t.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},t.prototype.thaw=function(){--this.freezeDepth||!this.stuntedReleaseCnt||this.pendingCnt||this.release()},t}();e["default"]=u,o["default"].mixInto(u)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(4),a=i(7),o=function(){function t(t,e){this.isFollowing=!1,this.isHidden=!1,this.isAnimating=!1,this.options=e=e||{},this.sourceEl=t,this.parentEl=e.parentEl?n(e.parentEl):t.parent()}return t.prototype.start=function(t){this.isFollowing||(this.isFollowing=!0,this.y0=r.getEvY(t),this.x0=r.getEvX(t),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),r.getEvIsTouch(t)?this.listenTo(n(document),"touchmove",this.handleMove):this.listenTo(n(document),"mousemove",this.handleMove))},t.prototype.stop=function(t,e){var i=this,r=this.options.revertDuration,a=function(){i.isAnimating=!1,i.removeElement(),i.top0=i.left0=null,e&&e()};this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(n(document)),t&&r&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:r,complete:a})):a())},t.prototype.getEl=function(){var t=this.el;return t||(t=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}),t.addClass("fc-unselectable"),t.appendTo(this.parentEl)),t},t.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},t.prototype.updatePosition=function(){var t,e;this.getEl(),null==this.top0&&(t=this.sourceEl.offset(),e=this.el.offsetParent().offset(),this.top0=t.top-e.top,this.left0=t.left-e.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},t.prototype.handleMove=function(t){this.topDelta=r.getEvY(t)-this.y0,this.leftDelta=r.getEvX(t)-this.x0,this.isHidden||this.updatePosition()},t.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},t.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},t}();e["default"]=o,a["default"].mixInto(o)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(23),a=i(15),o=function(t){function e(e){var i=t.call(this,e)||this;return i.dragListener=i.buildDragListener(),i}return n.__extends(e,t),e.prototype.end=function(){this.dragListener.endInteraction()},e.prototype.bindToEl=function(t){var e=this.component,i=this.dragListener;e.bindDateHandlerToEl(t,"mousedown",function(t){e.shouldIgnoreMouse()||i.startInteraction(t)}),e.bindDateHandlerToEl(t,"touchstart",function(t){e.shouldIgnoreTouch()||i.startInteraction(t)})},e.prototype.buildDragListener=function(){var t,e=this,i=this.component,n=new r["default"](i,{scroll:this.opt("dragScroll"),interactionStart:function(){t=n.origHit},hitOver:function(e,i,n){i||(t=null)},hitOut:function(){t=null},interactionEnd:function(n,r){var a;!r&&t&&(a=i.getSafeHitFootprint(t),a&&e.view.triggerDayClick(a,i.getHitEl(t),n))}});return n.shouldCancelTouchScroll=!1,n.scrollAlwaysKills=!0,n},e}(a["default"]);e["default"]=o},function(t,e,i){function n(t){var e,i,n,r=[];for(e=0;e<t.length;e++){for(i=t[e],n=0;n<r.length&&o(i,r[n]).length;n++);i.level=n,(r[n]||(r[n]=[])).push(i)}return r}function r(t){var e,i,n,r,a;for(e=0;e<t.length;e++)for(i=t[e],n=0;n<i.length;n++)for(r=i[n],r.forwardSegs=[],a=e+1;a<t.length;a++)o(r,t[a],r.forwardSegs)}function a(t){var e,i,n=t.forwardSegs,r=0;if(void 0===t.forwardPressure){for(e=0;e<n.length;e++)i=n[e],a(i),r=Math.max(r,1+i.forwardPressure);t.forwardPressure=r}}function o(t,e,i){void 0===i&&(i=[]);for(var n=0;n<e.length;n++)s(t,e[n])&&i.push(e[n]);return i}function s(t,e){return t.bottom>e.top&&t.top<e.bottom}Object.defineProperty(e,"__esModule",{value:!0});var l=i(2),u=i(4),h=i(42),c=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.timeGrid=e,n}return l.__extends(e,t),e.prototype.renderFgSegs=function(t){this.renderFgSegsIntoContainers(t,this.timeGrid.fgContainerEls)},e.prototype.renderFgSegsIntoContainers=function(t,e){var i,n;for(i=this.timeGrid.groupSegsByCol(t),n=0;n<this.timeGrid.colCnt;n++)this.updateFgSegCoords(i[n]);this.timeGrid.attachSegsByCol(i,e)},e.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEach(function(t){t.el.remove()})},e.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},e.prototype.computeDisplayEventEnd=function(){return!0},e.prototype.fgSegHtml=function(t,e){var i,n,r,a=this.view,o=a.calendar,s=t.footprint.componentFootprint,l=s.isAllDay,h=t.footprint.eventDef,c=a.isEventDefDraggable(h),d=!e&&t.isStart&&a.isEventDefResizableFromStart(h),p=!e&&t.isEnd&&a.isEventDefResizableFromEnd(h),f=this.getSegClasses(t,c,d||p),g=u.cssToStr(this.getSkinCss(h));if(f.unshift("fc-time-grid-event","fc-v-event"),a.isMultiDayRange(s.unzonedRange)){if(t.isStart||t.isEnd){var m=o.msToMoment(t.startMs),v=o.msToMoment(t.endMs);i=this._getTimeText(m,v,l),n=this._getTimeText(m,v,l,"LT"),r=this._getTimeText(m,v,l,null,!1)}}else i=this.getTimeText(t.footprint),n=this.getTimeText(t.footprint,"LT"),r=this.getTimeText(t.footprint,null,!1);return'<a class="'+f.join(" ")+'"'+(h.url?' href="'+u.htmlEscape(h.url)+'"':"")+(g?' style="'+g+'"':"")+'><div class="fc-content">'+(i?'<div class="fc-time" data-start="'+u.htmlEscape(r)+'" data-full="'+u.htmlEscape(n)+'"><span>'+u.htmlEscape(i)+"</span></div>":"")+(h.title?'<div class="fc-title">'+u.htmlEscape(h.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(p?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},e.prototype.updateFgSegCoords=function(t){this.timeGrid.computeSegVerticals(t),this.computeFgSegHorizontals(t),this.timeGrid.assignSegVerticals(t), this.assignFgSegHorizontals(t)},e.prototype.computeFgSegHorizontals=function(t){var e,i,o;if(this.sortEventSegs(t),e=n(t),r(e),i=e[0]){for(o=0;o<i.length;o++)a(i[o]);for(o=0;o<i.length;o++)this.computeFgSegForwardBack(i[o],0,0)}},e.prototype.computeFgSegForwardBack=function(t,e,i){var n,r=t.forwardSegs;if(void 0===t.forwardCoord)for(r.length?(this.sortForwardSegs(r),this.computeFgSegForwardBack(r[0],e+1,i),t.forwardCoord=r[0].backwardCoord):t.forwardCoord=1,t.backwardCoord=t.forwardCoord-(t.forwardCoord-i)/(e+1),n=0;n<r.length;n++)this.computeFgSegForwardBack(r[n],0,t.forwardCoord)},e.prototype.sortForwardSegs=function(t){t.sort(u.proxy(this,"compareForwardSegs"))},e.prototype.compareForwardSegs=function(t,e){return e.forwardPressure-t.forwardPressure||(t.backwardCoord||0)-(e.backwardCoord||0)||this.compareEventSegs(t,e)},e.prototype.assignFgSegHorizontals=function(t){var e,i;for(e=0;e<t.length;e++)i=t[e],i.el.css(this.generateFgSegHorizontalCss(i)),i.bottom-i.top<30&&i.el.addClass("fc-short")},e.prototype.generateFgSegHorizontalCss=function(t){var e,i,n=this.opt("slotEventOverlap"),r=t.backwardCoord,a=t.forwardCoord,o=this.timeGrid.generateSegVerticalCss(t),s=this.timeGrid.isRTL;return n&&(a=Math.min(1,r+2*(a-r))),s?(e=1-a,i=r):(e=r,i=1-a),o.zIndex=t.level+1,o.left=100*e+"%",o.right=100*i+"%",n&&t.forwardPressure&&(o[s?"marginLeft":"marginRight"]=20),o},e}(h["default"]);e["default"]=c},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(58),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.renderSegs=function(t,e){var i,n,a,o=[];for(this.eventRenderer.renderFgSegsIntoContainers(t,this.component.helperContainerEls),i=0;i<t.length;i++)n=t[i],e&&e.col===n.col&&(a=e.el,n.el.css({left:a.css("left"),right:a.css("right"),"margin-left":a.css("margin-left"),"margin-right":a.css("margin-right")})),o.push(n.el[0]);return r(o)},e}(a["default"]);e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(57),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.attachSegEls=function(t,e){var i,n=this.component;return"bgEvent"===t?i=n.bgContainerEls:"businessHours"===t?i=n.businessContainerEls:"highlight"===t&&(i=n.highlightContainerEls),n.updateSegVerticals(e),n.attachSegsByCol(n.groupSegsByCol(e),i),e.map(function(t){return t.el[0]})},e}(r["default"]);e["default"]=a},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),r=i(4),a=i(7),o=function(){function t(t){this.isHidden=!0,this.margin=10,this.options=t||{}}return t.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},t.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},t.prototype.render=function(){var t=this,e=this.options;this.el=n('<div class="fc-popover"/>').addClass(e.className||"").css({top:0,left:0}).append(e.content).appendTo(e.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),e.autoHide&&this.listenTo(n(document),"mousedown",this.documentMousedown)},t.prototype.documentMousedown=function(t){this.el&&!n(t.target).closest(this.el).length&&this.hide()},t.prototype.removeElement=function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(n(document),"mousedown")},t.prototype.position=function(){var t,e,i,a,o,s=this.options,l=this.el.offsetParent().offset(),u=this.el.outerWidth(),h=this.el.outerHeight(),c=n(window),d=r.getScrollParent(this.el);a=s.top||0,o=void 0!==s.left?s.left:void 0!==s.right?s.right-u:0,d.is(window)||d.is(document)?(d=c,t=0,e=0):(i=d.offset(),t=i.top,e=i.left),t+=c.scrollTop(),e+=c.scrollLeft(),s.viewportConstrain!==!1&&(a=Math.min(a,t+d.outerHeight()-h-this.margin),a=Math.max(a,t+this.margin),o=Math.min(o,e+d.outerWidth()-u-this.margin),o=Math.max(o,e+this.margin)),this.el.css({top:a-l.top,left:o-l.left})},t.prototype.trigger=function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))},t}();e["default"]=o,a["default"].mixInto(o)},function(t,e,i){function n(t,e){var i,n;for(i=0;i<e.length;i++)if(n=e[i],n.leftCol<=t.rightCol&&n.rightCol>=t.leftCol)return!0;return!1}function r(t,e){return t.leftCol-e.leftCol}Object.defineProperty(e,"__esModule",{value:!0});var a=i(2),o=i(3),s=i(4),l=i(42),u=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.dayGrid=e,n}return a.__extends(e,t),e.prototype.renderBgRanges=function(e){e=o.grep(e,function(t){return t.eventDef.isAllDay()}),t.prototype.renderBgRanges.call(this,e)},e.prototype.renderFgSegs=function(t){var e=this.rowStructs=this.renderSegRows(t);this.dayGrid.rowEls.each(function(t,i){o(i).find(".fc-content-skeleton > table").append(e[t].tbodyEl)})},e.prototype.unrenderFgSegs=function(){for(var t,e=this.rowStructs||[];t=e.pop();)t.tbodyEl.remove();this.rowStructs=null},e.prototype.renderSegRows=function(t){var e,i,n=[];for(e=this.groupSegRows(t),i=0;i<e.length;i++)n.push(this.renderSegRow(i,e[i]));return n},e.prototype.renderSegRow=function(t,e){function i(t){for(;a<t;)h=(v[n-1]||[])[a],h?h.attr("rowspan",parseInt(h.attr("rowspan")||1,10)+1):(h=o("<td/>"),s.append(h)),m[n][a]=h,v[n][a]=h,a++}var n,r,a,s,l,u,h,c=this.dayGrid.colCnt,d=this.buildSegLevels(e),p=Math.max(1,d.length),f=o("<tbody/>"),g=[],m=[],v=[];for(n=0;n<p;n++){if(r=d[n],a=0,s=o("<tr/>"),g.push([]),m.push([]),v.push([]),r)for(l=0;l<r.length;l++){for(u=r[l],i(u.leftCol),h=o('<td class="fc-event-container"/>').append(u.el),u.leftCol!==u.rightCol?h.attr("colspan",u.rightCol-u.leftCol+1):v[n][a]=h;a<=u.rightCol;)m[n][a]=h,g[n][a]=u,a++;s.append(h)}i(c),this.dayGrid.bookendCells(s),f.append(s)}return{row:t,tbodyEl:f,cellMatrix:m,segMatrix:g,segLevels:d,segs:e}},e.prototype.buildSegLevels=function(t){var e,i,a,o=[];for(this.sortEventSegs(t),e=0;e<t.length;e++){for(i=t[e],a=0;a<o.length&&n(i,o[a]);a++);i.level=a,(o[a]||(o[a]=[])).push(i)}for(a=0;a<o.length;a++)o[a].sort(r);return o},e.prototype.groupSegRows=function(t){var e,i=[];for(e=0;e<this.dayGrid.rowCnt;e++)i.push([]);for(e=0;e<t.length;e++)i[t[e].row].push(t[e]);return i},e.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},e.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},e.prototype.fgSegHtml=function(t,e){var i,n,r=this.view,a=t.footprint.eventDef,o=t.footprint.componentFootprint.isAllDay,l=r.isEventDefDraggable(a),u=!e&&o&&t.isStart&&r.isEventDefResizableFromStart(a),h=!e&&o&&t.isEnd&&r.isEventDefResizableFromEnd(a),c=this.getSegClasses(t,l,u||h),d=s.cssToStr(this.getSkinCss(a)),p="";return c.unshift("fc-day-grid-event","fc-h-event"),t.isStart&&(i=this.getTimeText(t.footprint),i&&(p='<span class="fc-time">'+s.htmlEscape(i)+"</span>")),n='<span class="fc-title">'+(s.htmlEscape(a.title||"")||" ")+"</span>",'<a class="'+c.join(" ")+'"'+(a.url?' href="'+s.htmlEscape(a.url)+'"':"")+(d?' style="'+d+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?n+" "+p:p+" "+n)+"</div>"+(u?'<div class="fc-resizer fc-start-resizer" />':"")+(h?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},e}(l["default"]);e["default"]=u},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(58),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.renderSegs=function(t,e){var i,n=[];return i=this.eventRenderer.renderSegRows(t),this.component.rowEls.each(function(t,a){var o,s,l=r(a),u=r('<div class="fc-helper-skeleton"><table/></div>');e&&e.row===t?s=e.el.position().top:(o=l.find(".fc-content-skeleton tbody"),o.length||(o=l.find(".fc-content-skeleton table")),s=o.position().top),u.css("top",s).find("table").append(i[t].tbodyEl),l.append(u),n.push(u[0])}),r(n)},e}(a["default"]);e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(57),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.fillSegTag="td",e}return n.__extends(e,t),e.prototype.attachSegEls=function(t,e){var i,n,r,a=[];for(i=0;i<e.length;i++)n=e[i],r=this.renderFillRow(t,n),this.component.rowEls.eq(n.row).append(r),a.push(r[0]);return a},e.prototype.renderFillRow=function(t,e){var i,n,a,o=this.component.colCnt,s=e.leftCol,l=e.rightCol+1;return i="businessHours"===t?"bgevent":t.toLowerCase(),n=r('<div class="fc-'+i+'-skeleton"><table><tr/></table></div>'),a=n.find("tr"),s>0&&a.append('<td colspan="'+s+'"/>'),a.append(e.el.attr("colspan",l-s)),l<o&&a.append('<td colspan="'+(o-l)+'"/>'),this.component.bookendCells(a),n},e}(a["default"]);e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(228),a=i(5),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.buildRenderRange=function(e,i,n){var r,o=t.prototype.buildRenderRange.call(this,e,i,n),s=this.msToUtcMoment(o.startMs,n),l=this.msToUtcMoment(o.endMs,n);return this.opt("fixedWeekCount")&&(r=Math.ceil(l.diff(s,"weeks",!0)),l.add(6-r,"weeks")),new a["default"](s,l)},e}(r["default"]);e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(4),a=i(42),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.renderFgSegs=function(t){t.length?this.component.renderSegList(t):this.component.renderEmptyMessage()},e.prototype.fgSegHtml=function(t){var e,i=this.view,n=i.calendar,a=n.theme,o=t.footprint,s=o.eventDef,l=o.componentFootprint,u=s.url,h=["fc-list-item"].concat(this.getClasses(s)),c=this.getBgColor(s);return e=l.isAllDay?i.getAllDayHtml():i.isMultiDayRange(l.unzonedRange)?t.isStart||t.isEnd?r.htmlEscape(this._getTimeText(n.msToMoment(t.startMs),n.msToMoment(t.endMs),l.isAllDay)):i.getAllDayHtml():r.htmlEscape(this.getTimeText(o)),u&&h.push("fc-has-url"),'<tr class="'+h.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+a.getClass("widgetContent")+'">'+(e||"")+"</td>":"")+'<td class="fc-list-item-marker '+a.getClass("widgetContent")+'"><span class="fc-event-dot"'+(c?' style="background-color:'+c+'"':"")+'></span></td><td class="fc-list-item-title '+a.getClass("widgetContent")+'"><a'+(u?' href="'+r.htmlEscape(u)+'"':"")+">"+r.htmlEscape(s.title||"")+"</a></td></tr>"},e.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},e}(a["default"]);e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(3),a=i(59),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.handleClick=function(e,i){var n;t.prototype.handleClick.call(this,e,i),r(i.target).closest("a[href]").length||(n=e.footprint.eventDef.url,n&&!i.isDefaultPrevented()&&(window.location.href=n))},e}(a["default"]);e["default"]=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(38),r=i(52),a=i(215),o=i(216);n["default"].registerClass(r["default"]),n["default"].registerClass(a["default"]),n["default"].registerClass(o["default"])},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(51),r=i(213),a=i(214),o=i(258),s=i(259);n.defineThemeSystem("standard",r["default"]),n.defineThemeSystem("jquery-ui",a["default"]),n.defineThemeSystem("bootstrap3",o["default"]),n.defineThemeSystem("bootstrap4",s["default"])},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(19),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(r["default"]);e["default"]=a,a.prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table",tableListHeading:"active",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"},a.prototype.baseIconClass="glyphicon",a.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"},a.prototype.iconOverrideOption="bootstrapGlyphicons",a.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon",a.prototype.iconOverridePrefix="glyphicon-"},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),r=i(19),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(r["default"]);e["default"]=a,a.prototype.classes={widget:"fc-bootstrap4",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"},a.prototype.baseIconClass="fa",a.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},a.prototype.iconOverrideOption="bootstrapFontAwesome",a.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",a.prototype.iconOverridePrefix="fa-"},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(22),r=i(62),a=i(229);n.defineView("basic",{"class":r["default"]}),n.defineView("basicDay",{type:"basic",duration:{days:1}}),n.defineView("basicWeek",{type:"basic",duration:{weeks:1}}),n.defineView("month",{"class":a["default"],duration:{months:1},defaults:{fixedWeekCount:!0}})},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(22),r=i(226);n.defineView("agenda",{"class":r["default"],defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}}),n.defineView("agendaDay",{type:"agenda",duration:{days:1}}),n.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(22),r=i(230);n.defineView("list",{"class":r["default"],buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}}),n.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}}),n.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}}),n.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}}),n.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0})}])})},function(t,e,i){i(424),function(){"use strict";$(".responsive-tab").responsiveTabs()}()},function(t,e){!function(t){function e(e,i){e.each(function(){var e=t(this).outerWidth(!0);t(this).data("width",e)}),e.prependTo(i)}function i(i){var n=i.find("li"),r=n.first(),a=r.outerHeight(),o=i.outerHeight();if(o>a){var s,l=r.offset();n.each(function(){var n=t(this);if(s=n.offset(),s.top>l.top){var r=i.find(".responsivetabs-more");if(!r.length){var a='<li class="dropdown responsivetabs-more pt-2"><a href="#" data-toggle="dropdown"><i class="icon-more_vert s-18"></i></a><ul class="dropdown-menu dropdown-menu-left"></ul>';r=t(a),i.append(r)}var o=n.prev(),u=n.nextAll().not(".dropdown"),h=t(".dropdown-menu",r);return n.hasClass("dropdown")||(e(u,h),e(n,h)),void e(o,h)}})}else{var u,h=i.parent().width(),c=0;i.children("li").each(function(){c+=t(this).outerWidth(!0)}),u=h-c,i.find(".dropdown-menu li").each(function(){return t(this).data("width")<=u&&(t(this).insertBefore(i.find(".responsivetabs-more")),void(u-=t(this).data("width")))}),i.find(".dropdown-menu li").length||i.find(".responsivetabs-more").remove()}}t.fn.responsiveTabs=function(){return this.each(function(){var e=t(this);i(e),t(window).resize(function(){i(e)})}),this}}(jQuery)},function(t,e,i){i(426)},function(t,e){Math.randomString=function(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*i.length));return e},$(function(){var t=function(t,e){this.$lobiList=t,this.$el,this.$options=e,this.$items,this.$globalOptions=t.$options;var i,n,r,a,o,s,l=this,u=function(t){return $.extend({},$.fn.lobiList.OPTIONS.itemOptions,t)},h=function(){l.$options.id||(l.$options.id=Math.randomString(10));var t=$("<div>",{id:l.$options.id,"class":"lobilist"});l.$options.defaultStyle&&t.addClass(l.$options.defaultStyle),l.$el=t,n=c(),r=d(),s=p(),i=y(),e.items&&_(e.items),a=f(),s.append(i,a),o=v(),l.$globalOptions.sortable&&A()},c=function(){var t=$("<div>",{"class":"lobilist-header"}),e=$("<div>",{"class":"lobilist-actions"}).appendTo(t);return l.$options.controls&&l.$options.controls.length>0&&(l.$options.controls.indexOf("styleChange")>-1&&e.append(w()),l.$options.controls.indexOf("edit")>-1&&(e.append(M()),e.append(D()),e.append(T())),l.$options.controls.indexOf("add")>-1&&e.append(S()),l.$options.controls.indexOf("remove")>-1&&e.append(k())),l.$el.append(t),t},d=function(){var t=$("<div>",{"class":"lobilist-title",html:l.$options.title}).appendTo(n);return l.$options.controls&&l.$options.controls.indexOf("edit")>-1&&t.on("dblclick",function(){l.startTitleEditing()}),t},p=function(){return $("<div>",{"class":"lobilist-body"}).appendTo(l.$el)},f=function(){var t=$("<form>",{"class":"lobilist-add-todo-form hide"});$("<input>",{type:"hidden",name:"id"}).appendTo(t),$("<div>",{"class":"form-group"}).append($("<input>",{type:"text",name:"title","class":"form-control form-control-sm r-0 bg-light",placeholder:"TODO title"})).appendTo(t),$("<div>",{"class":"form-group"}).append($("<textarea>",{rows:"2",name:"description","class":"form-control form-control-sm r-0 bg-light",placeholder:"TODO description"})).appendTo(t),$("<div>",{"class":"form-group"}).append($("<input>",{type:"text",name:"dueDate","class":"form-control form-control-sm r-0 bg-light date-time-picker",placeholder:"Due Date"})).appendTo(t);var e=$("<div>",{"class":"lobilist-form-footer"});return $("<button>",{"class":"btn btn-outline-primary btn-xs btn-add-todo",html:"Add"}).appendTo(e),$("<button>",{type:"button","class":"btn btn-outline-danger btn-xs btn-discard-todo",html:"Clear"}).click(function(){a.addClass("hide"),o.removeClass("hide")}).appendTo(e),e.appendTo(t),g(t),l.$el.append(t),t},g=function(t){t.on("submit",function(t){t.preventDefault(),m()})},m=function(){return a[0].title.value?(l.saveOrUpdateItem({id:a[0].id.value,title:a[0].title.value,description:a[0].description.value,dueDate:a[0].dueDate.value}),a.addClass("hide"),void o.removeClass("hide")):void C("title","Title can not be empty")},v=function(){var t=$("<div>",{"class":"lobilist-footer"});return $("<button>",{type:"button","class":"btn-fab shadow btn-primary btn-show-form",html:'<i class="icon-add"></i>'}).click(function(){I(),a.removeClass("hide"),o.addClass("hide")}).appendTo(t),l.$el.append(t),t},y=function(){var t=$("<ul>",{"class":"lobilist-items"});return l.$el.append(t),t},_=function(t){for(var e=0;e<t.length;e++)b(t[e])},b=function(t){t.id||(t.id=l.$lobiList.getNextId()),t=u(t),P(t)},x=function(){var t=$("<input>",{type:"checkbox"});t.change(function(){t.closest(".lobilist-item").toggleClass("item-done")});var e=$("<label>",{"class":"checkbox-inline lobilist-check"}).append(t);return l.$options.useLobicheck&&(e.addClass("lobicheck").addClass(l.$options.lobicheckClass),e.append("<i></i>")),e},w=function(){for(var t=$("<div>",{"class":"dropdown"}).append($("<button>",{type:"button","data-toggle":"dropdown","class":"btn btn-default btn-xs",html:'<i class="icon icon-th"></i>'})),e=$("<div>",{"class":"dropdown-menu dropdown-menu-right"}).appendTo(t),i=0;i<$.fn.lobiList.OPTIONS.listStyles.length;i++){var n=$.fn.lobiList.OPTIONS.listStyles[i];$('<div class="'+n+'"></div>').on("mousedown",function(t){t.stopPropagation()}).click(function(){l.$el.removeClass($.fn.lobiList.OPTIONS.listStyles.join(" ")).addClass(this.className)}).appendTo(e)}return t},M=function(){var t=$("<button>",{"class":"btn btn-default btn-xs",html:'<i class="icon icon-edit"></i>'});return t.click(function(){l.startTitleEditing()}),t},S=function(){var t=$("<button>",{"class":"btn btn-default btn-xs",html:'<i class="icon icon-plus"></i>'});return t.click(function(){var t=l.$lobiList.addList();t.startTitleEditing()}),t},k=function(){var t=$("<button>",{"class":"btn btn-default btn-xs",html:'<i class="icon icon-remove"></i>'});return t.click(function(){l.remove()}),t},D=function(){var t=$("<button>",{"class":"btn btn-default btn-xs btn-finish-title-editing",html:'<i class="icon icon-ok-circle"></i>'});return t.click(function(){l.finishTitleEditing()}),t},T=function(){var t=$("<button>",{"class":"btn btn-default btn-xs btn-cancel-title-editing",html:'<i class="icon-close2"></i>'});return t.click(function(){l.cancelTitleEditing()}),t},L=function(){var t=$("<input>",{type:"text","class":"form-control form-control-sm r-0 bg-light"});return t.on("keyup",function(t){13===t.which&&l.finishTitleEditing()}),t},C=function(t,e){var i=a.find('[name="'+t+'"]').closest(".form-group").addClass("has-error");i.find(".help-block").remove(),i.append($("<span>",{"class":"help-block",html:e}))},I=function(){a[0].reset(),a[0].id.value="",a.find(".form-group").removeClass("has-error").find(".help-block").remove()},A=function(){l.$el.find(".lobilist-items").sortable({connectWith:".lobilist .lobilist-items",items:".lobilist-item",handle:".drag-handler",cursor:"move",placeholder:"lobilist-item-placeholder",forcePlaceholderSize:!0,opacity:.9,revert:70})},P=function(t){var e=$("<li>",{"data-id":t.id,"class":"lobilist-item"});return e.append($("<div>",{"class":"lobilist-item-title",html:t.title})),t.description&&e.append($("<div>",{"class":"lobilist-item-description",html:t.description})),t.dueDate&&e.append($("<div>",{"class":"lobilist-item-duedate",html:t.dueDate})),e=E(e),t.done&&(e.find("input[type=checkbox]").prop("checked",!0),e.addClass("item-done")),e.data("lobiListItem",t),i.append(e),e},E=function(t){return l.$options.useCheckboxes&&t.append(x()),l.$options.removeItemButton&&t.append($("<div>",{"class":"delete-todo",html:'<i class="icon icon-remove"></i>'}).click(function(){l.deleteItem($(this).closest("li").data("lobiListItem"))})),l.$options.editItemButton&&t.append($("<div>",{"class":"edit-todo",html:'<i class="icon icon-pencil"></i>'}).click(function(){l.editItem($(this).closest("li").data("id"))})),t.append($("<div>",{"class":"drag-handler"})),t},O=function(t){var e=l.$lobiList.$el.find('li[data-id="'+t.id+'"]');e.find("input[type=checkbox]").prop("checked",t.done),e.find(".lobilist-item-title").html(t.title),e.find(".lobilist-item-description").remove(),e.find(".lobilist-item-duedate").remove(),t.description&&e.append('<div class="lobilist-item-description">'+t.description+"</div>"),t.dueDate&&e.append('<div class="lobilist-item-duedate">'+t.dueDate+"</div>"),e.data("lobiListItem",t)};this.addItem=function(t){l.$options.onItemAdd&&l.$options.onItemAdd(l,t);var e=!1;return t=u(t),l.$globalOptions.actions.insert?$.ajax(l.$globalOptions.actions.insert,{data:t,method:"POST",async:!1}).done(function(i){i.success?(e=!0,t.id=i.id):Lobibox.notify("error",{msg:i.msg||"Error occured"})}):(e=!0,t.id=l.$lobiList.getNextId()),e&&P(t),l.$options.afterItemAdd&&l.$options.afterItemAdd(l,t),l},this.updateItem=function(t){l.$options.onItemUpdate&&l.$options.onItemUpdate(l,t);var e=!1;return l.$globalOptions.actions.update?$.ajax(l.$globalOptions.actions.update,{data:t,method:"POST",async:!1}).done(function(t){t.success?e=!0:Lobibox.notify("error",{msg:t.msg||"Error occured"})}):e=!0,e&&O(t),l.$options.afterItemUpdate&&l.$options.afterItemUpdate(l,t),l},this.deleteItem=function(t,e){var i=!0;if(!e&&l.$options.onItemDelete&&(i=l.$options.onItemDelete(l,t)),i===!1)return l;var n=!1;return l.$globalOptions.actions["delete"]?$.ajax(l.$globalOptions.actions["delete"],{data:t,method:"POST",async:!1}).done(function(t){t.success?n=!0:Lobibox.notify("error",{msg:t.msg||"Error occured"})}):n=!0,n&&l.$lobiList.$el.find("li[data-id="+t.id+"]").remove(),l.$options.afterItemDelete&&l.$options.afterItemDelete(l,t),l},this.saveOrUpdateItem=function(t){return t.id?l.updateItem(t):l.addItem(t),l},this.startTitleEditing=function(){var t=L();return r.attr("data-old-title",r.html()),t.val(r.html()),t.insertAfter(r),r.addClass("hide"),n.addClass("title-editing"),t[0].focus(),t[0].select(),l},this.finishTitleEditing=function(){var t=n.find("input");return r.html(t.val()).removeClass("hide").removeAttr("data-old-title"),t.remove(),n.removeClass("title-editing"),l},this.cancelTitleEditing=function(){var t=n.find("input");return 0===t.length?l:(r.html(r.attr("data-old-title")).removeClass("hide"),t.remove(),n.removeClass("title-editing"),l)},this.remove=function(t){var e=!0;return!t&&l.$options.onRemove&&(e=l.$options.onRemove(l)),e===!1?l:(l.$lobiList.$lists.splice(l.$el.index(),1),l.$el.remove(),l.$options.afterRemove&&l.$options.afterRemove(l),l)},this.editItem=function(t){var e=l.$lobiList.$el.find("li[data-id="+t+"]"),i=e.closest(".lobilist").find(".lobilist-add-todo-form"),n=e.closest(".lobilist").find(".lobilist-footer");i.removeClass("hide"),n.addClass("hide"),i[0].id.value=e.attr("data-id"),i[0].title.value=e.find(".lobilist-item-title").html();var r=e.find(".lobilist-item-description").html()||"";i[0].description.value=r;var a=e.find(".lobilist-item-duedate").html()||"";return i[0].dueDate.value=a,l},h()},e=function(e,i){this.$el,this.$lists=[],this.$options;var n=this,r=1,a=function(t){return t=$.extend({},$.fn.lobiList.DEFAULT_OPTIONS,t),t.actions.load&&$.ajax(t.actions.load,{async:!1}).done(function(e){t.lists=e.lists}),t},o=function(t){t=$.extend({},$.fn.lobiList.OPTIONS.listsOptions,t);for(var e=["useCheckboxes","useLobicheck","lobicheckClass","removeItemButton","editItemButton","sortable","controls","defaultStyle","onAdd","onRemove","afterRemove","onItemAdd","afterItemAdd","onItemUpdate","afterItemUpdate","onItemDelete","afterItemDelete"],i=0;i<e.length;i++)void 0===t[e[i]]&&(t[e[i]]=n.$options[e[i]]);return t},s=function(){n.$el.addClass("lobilists"),l(),n.$options.sortable&&n.$el.sortable({items:".lobilist",handle:".lobilist-header",cursor:"move",placeholder:"lobilist-placeholder",forcePlaceholderSize:!0,opacity:.9,revert:70}),n.$options.onInit&&n.$options.onInit(n)},l=function(){for(var t=0;t<n.$options.lists.length;t++)n.addList(n.$options.lists[t])};this.addList=function(e){var i;return e instanceof t?i=e:(e=o(e),i=new t(n,e)),n.$lists.push(i),n.$el.append(i.$el),i.$el.data("lobiList",i),n.$options.onAdd&&n.$options.onAdd(n),i},this.getNextId=function(){return r++},this.$el=e,this.$options=a(i),s()};$.fn.lobiList=function(t){var i,n=arguments;return this.each(function(r,a){var o=$(this),s=o.data("lobiList"),l="object"==typeof t&&t;s||o.data("lobiList",s=new e(o,l)),"string"==typeof t&&(n=Array.prototype.slice.call(n,1),i=s[t].apply(s,n))})},$.fn.lobiList.OPTIONS={listStyles:["lobilist-default","lobilist-danger","lobilist-success","lobilist-warning","lobilist-info","lobilist-primary"],listsOptions:{id:!1,title:"",items:[]},itemOptions:{id:!1,title:"",description:"",dueDate:"",done:!1}},$.fn.lobiList.DEFAULT_OPTIONS={lists:[],actions:{load:"",update:"",insert:"","delete":""},useCheckboxes:!0,useLobicheck:!0,lobicheckClass:"lobicheck-info lobicheck-inversed",removeItemButton:!0,editItemButton:!0,sortable:!0,controls:["edit","add","remove","styleChange"],defaultStyle:"lobilist-default"},$(".lobilists").lobiList()})},function(t,e,i){!function(){"use strict";var t=i(428);t.options.fileUpload={url:"blackHole.php",addRemoveLinks:!0,accept:function(t){var e=new FileReader;e.readAsDataURL(t),e.onloadend=function(){var i=e.result;$("#file").val(i),t.previewElement.classList.add("dz-success")},t.previewElement.classList.add("dz-complete")}},$(".dropzone").dropzone({url:"#"})}()},function(t,e,i){"use strict";(function(t){function e(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){return"undefined"!=typeof t&&null!==t?e(t):void 0}function a(t,e,i){return"undefined"!=typeof t&&null!==t&&"function"==typeof t[e]?i(t,e):void 0}var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=function(){function t(){n(this,t)}return o(t,[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(t){this._callbacks=this._callbacks||{};var e=this._callbacks[t];if(e){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];for(var a=e,o=!0,s=0,a=o?a:a[Symbol.iterator]();;){var l;if(o){if(s>=a.length)break;l=a[s++]}else{if(s=a.next(),s.done)break;l=s.value}var u=l;u.apply(this,n)}}return this}},{key:"off",value:function(t,e){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var i=this._callbacks[t];if(!i)return this;if(1===arguments.length)return delete this._callbacks[t],this;for(var n=0;n<i.length;n++){var r=i[n];if(r===e){i.splice(n,1);break}}return this}}]),t}(),l=function(t){function l(t,i){n(this,l);var r=e(this,(l.__proto__||Object.getPrototypeOf(l)).call(this)),a=void 0,o=void 0;if(r.element=t,r.version=l.version,r.defaultOptions.previewTemplate=r.defaultOptions.previewTemplate.replace(/\n*/g,""),r.clickableElements=[],r.listeners=[],r.files=[],"string"==typeof r.element&&(r.element=document.querySelector(r.element)),!r.element||null==r.element.nodeType)throw new Error("Invalid dropzone element.");if(r.element.dropzone)throw new Error("Dropzone already attached.");l.instances.push(r),r.element.dropzone=r;var s=null!=(o=l.optionsForElement(r.element))?o:{};if(r.options=l.extend({},r.defaultOptions,s,null!=i?i:{}),r.options.forceFallback||!l.isBrowserSupported()){var u;return u=r.options.fallback.call(r),e(r,u)}if(null==r.options.url&&(r.options.url=r.element.getAttribute("action")),!r.options.url)throw new Error("No URL provided.");if(r.options.acceptedFiles&&r.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(r.options.uploadMultiple&&r.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return r.options.acceptedMimeTypes&&(r.options.acceptedFiles=r.options.acceptedMimeTypes,delete r.options.acceptedMimeTypes),null!=r.options.renameFilename&&(r.options.renameFile=function(t){return r.options.renameFilename.call(r,t.name,t)}),r.options.method=r.options.method.toUpperCase(),(a=r.getExistingFallback())&&a.parentNode&&a.parentNode.removeChild(a),r.options.previewsContainer!==!1&&(r.options.previewsContainer?r.previewsContainer=l.getElement(r.options.previewsContainer,"previewsContainer"):r.previewsContainer=r.element),r.options.clickable&&(r.options.clickable===!0?r.clickableElements=[r.element]:r.clickableElements=l.getElements(r.options.clickable,"clickable")),r.init(),r}return i(l,t),o(l,null,[{key:"initClass",value:function(){this.prototype.Emitter=s,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"], this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(t,e,i){if(i)return{dzuuid:i.file.upload.uuid,dzchunkindex:i.index,dztotalfilesize:i.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:i.file.upload.totalChunkCount,dzchunkbyteoffset:i.index*this.options.chunkSize}},accept:function(t,e){return e()},chunksUploaded:function(t,e){e()},fallback:function(){var t=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var e=this.element.getElementsByTagName("div"),i=!0,n=0,e=i?e:e[Symbol.iterator]();;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var a=r;if(/(^| )dz-message($| )/.test(a.className)){t=a,a.className="dz-message";break}}t||(t=l.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t));var o=t.getElementsByTagName("span")[0];return o&&(null!=o.textContent?o.textContent=this.options.dictFallbackMessage:null!=o.innerText&&(o.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(t,e,i,n){var r={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},a=t.width/t.height;null==e&&null==i?(e=r.srcWidth,i=r.srcHeight):null==e?e=i*a:null==i&&(i=e/a),e=Math.min(e,r.srcWidth),i=Math.min(i,r.srcHeight);var o=e/i;if(r.srcWidth>e||r.srcHeight>i)if("crop"===n)a>o?(r.srcHeight=t.height,r.srcWidth=r.srcHeight*o):(r.srcWidth=t.width,r.srcHeight=r.srcWidth/o);else{if("contain"!==n)throw new Error("Unknown resizeMethod '"+n+"'");a>o?i=e/a:e=i*a}return r.srcX=(t.width-r.srcWidth)/2,r.srcY=(t.height-r.srcHeight)/2,r.trgWidth=e,r.trgHeight=i,r},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',drop:function(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var e=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=l.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);for(var i=t.previewElement.querySelectorAll("[data-dz-name]"),n=!0,r=0,i=n?i:i[Symbol.iterator]();;){var a;if(n){if(r>=i.length)break;a=i[r++]}else{if(r=i.next(),r.done)break;a=r.value}var o=a;o.textContent=t.name}for(var s=t.previewElement.querySelectorAll("[data-dz-size]"),u=!0,h=0,s=u?s:s[Symbol.iterator]();;){if(u){if(h>=s.length)break;o=s[h++]}else{if(h=s.next(),h.done)break;o=h.value}o.innerHTML=this.filesize(t.size)}this.options.addRemoveLinks&&(t._removeLink=l.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),t.previewElement.appendChild(t._removeLink));for(var c=function(i){return i.preventDefault(),i.stopPropagation(),t.status===l.UPLOADING?l.confirm(e.options.dictCancelUploadConfirmation,function(){return e.removeFile(t)}):e.options.dictRemoveFileConfirmation?l.confirm(e.options.dictRemoveFileConfirmation,function(){return e.removeFile(t)}):e.removeFile(t)},d=t.previewElement.querySelectorAll("[data-dz-remove]"),p=!0,f=0,d=p?d:d[Symbol.iterator]();;){var g;if(p){if(f>=d.length)break;g=d[f++]}else{if(f=d.next(),f.done)break;g=f.value}var m=g;m.addEventListener("click",c)}}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");for(var i=t.previewElement.querySelectorAll("[data-dz-thumbnail]"),n=!0,r=0,i=n?i:i[Symbol.iterator]();;){var a;if(n){if(r>=i.length)break;a=i[r++]}else{if(r=i.next(),r.done)break;a=r.value}var o=a;o.alt=t.name,o.src=e}return setTimeout(function(){return t.previewElement.classList.add("dz-image-preview")},1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"String"!=typeof e&&e.error&&(e=e.error);for(var i=t.previewElement.querySelectorAll("[data-dz-errormessage]"),n=!0,r=0,i=n?i:i[Symbol.iterator]();;){var a;if(n){if(r>=i.length)break;a=i[r++]}else{if(r=i.next(),r.done)break;a=r.value}var o=a;o.textContent=e}}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.textContent=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,i){if(t.previewElement)for(var n=t.previewElement.querySelectorAll("[data-dz-uploadprogress]"),r=!0,a=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var s=o;"PROGRESS"===s.nodeName?s.value=e:s.style.width=e+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.textContent=this.options.dictRemoveFile),t.previewElement)return t.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r=i,a=!0,o=0,r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}var l=s;for(var u in l){var h=l[u];t[u]=h}}return t}}]),o(l,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(t){return t.accepted}).map(function(t){return t})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(t){return!t.accepted}).map(function(t){return t})}},{key:"getFilesWithStatus",value:function(t){return this.files.filter(function(e){return e.status===t}).map(function(t){return t})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(l.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(l.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(l.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(t){return t.status===l.UPLOADING||t.status===l.QUEUED}).map(function(t){return t})}},{key:"init",value:function(){var t=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(l.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){var e=function u(){return t.hiddenFileInput&&t.hiddenFileInput.parentNode.removeChild(t.hiddenFileInput),t.hiddenFileInput=document.createElement("input"),t.hiddenFileInput.setAttribute("type","file"),(null===t.options.maxFiles||t.options.maxFiles>1)&&t.hiddenFileInput.setAttribute("multiple","multiple"),t.hiddenFileInput.className="dz-hidden-input",null!==t.options.acceptedFiles&&t.hiddenFileInput.setAttribute("accept",t.options.acceptedFiles),null!==t.options.capture&&t.hiddenFileInput.setAttribute("capture",t.options.capture),t.hiddenFileInput.style.visibility="hidden",t.hiddenFileInput.style.position="absolute",t.hiddenFileInput.style.top="0",t.hiddenFileInput.style.left="0",t.hiddenFileInput.style.height="0",t.hiddenFileInput.style.width="0",document.querySelector(t.options.hiddenInputContainer).appendChild(t.hiddenFileInput),t.hiddenFileInput.addEventListener("change",function(){var e=t.hiddenFileInput.files;if(e.length)for(var i=e,n=!0,r=0,i=n?i:i[Symbol.iterator]();;){var a;if(n){if(r>=i.length)break;a=i[r++]}else{if(r=i.next(),r.done)break;a=r.value}var o=a;t.addFile(o)}return t.emit("addedfiles",e),u()})};e()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var i=this.events,n=!0,r=0,i=n?i:i[Symbol.iterator]();;){var a;if(n){if(r>=i.length)break;a=i[r++]}else{if(r=i.next(),r.done)break;a=r.value}var o=a;this.on(o,this.options[o])}this.on("uploadprogress",function(){return t.updateTotalUploadProgress()}),this.on("removedfile",function(){return t.updateTotalUploadProgress()}),this.on("canceled",function(e){return t.emit("complete",e)}),this.on("complete",function(e){if(0===t.getAddedFiles().length&&0===t.getUploadingFiles().length&&0===t.getQueuedFiles().length)return setTimeout(function(){return t.emit("queuecomplete")},0)});var s=function(t){return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(e){return t.emit("dragstart",e)},dragenter:function(e){return s(e),t.emit("dragenter",e)},dragover:function(e){var i=void 0;try{i=e.dataTransfer.effectAllowed}catch(n){}return e.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy",s(e),t.emit("dragover",e)},dragleave:function(e){return t.emit("dragleave",e)},drop:function(e){return s(e),t.drop(e)},dragend:function(e){return t.emit("dragend",e)}}}],this.clickableElements.forEach(function(e){return t.listeners.push({element:e,events:{click:function(i){return(e!==t.element||i.target===t.element||l.elementInside(i.target,t.element.querySelector(".dz-message")))&&t.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,l.instances.splice(l.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var t=void 0,e=0,i=0,n=this.getActiveFiles();if(n.length){for(var r=this.getActiveFiles(),a=!0,o=0,r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}var l=s;e+=l.upload.bytesSent,i+=l.upload.total}t=100*e/i}else t=100;return this.emit("totaluploadprogress",t,i,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):""+this.options.paramName+(this.options.uploadMultiple?"["+t+"]":"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t=void 0,e=void 0;if(t=this.getExistingFallback())return t;var i='<div class="dz-fallback">';this.options.dictFallbackText&&(i+="<p>"+this.options.dictFallbackText+"</p>"),i+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var n=l.createElement(i);return"FORM"!==this.element.tagName?(e=l.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>'),e.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=e?e:n}},{key:"getExistingFallback",value:function(){for(var t=function(t){for(var e=t,i=!0,n=0,e=i?e:e[Symbol.iterator]();;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var a=r;if(/(^| )fallback($| )/.test(a.className))return a}},e=["div","form"],i=0;i<e.length;i++){var n,r=e[i];if(n=t(this.element.getElementsByTagName(r)))return n}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(t){return function(){var e=[];for(var i in t.events){var n=t.events[i];e.push(t.element.addEventListener(i,n,!1))}return e}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(t){return function(){var e=[];for(var i in t.events){var n=t.events[i];e.push(t.element.removeEventListener(i,n,!1))}return e}()})}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach(function(t){return t.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(e){return t.cancelUpload(e)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(t){return t.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,i="b";if(t>0){for(var n=["tb","gb","mb","kb","b"],r=0;r<n.length;r++){var a=n[r],o=Math.pow(this.options.filesizeBase,4-r)/10;if(t>=o){e=t/Math.pow(this.options.filesizeBase,4-r),i=a;break}}e=Math.round(10*e)/10}return"<strong>"+e+"</strong> "+this.options.dictFileSizeUnits[i]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],i=0;i<t.dataTransfer.files.length;i++)e[i]=t.dataTransfer.files[i];if(this.emit("addedfiles",e),e.length){var n=t.dataTransfer.items;n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(e)}}}},{key:"paste",value:function(t){if(null!=r(null!=t?t.clipboardData:void 0,function(t){return t.items})){this.emit("paste",t);var e=t.clipboardData.items;return e.length?this._addFilesFromItems(e):void 0}}},{key:"handleFiles",value:function(t){for(var e=t,i=!0,n=0,e=i?e:e[Symbol.iterator]();;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var a=r;this.addFile(a)}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){for(var i=[],n=t,r=!0,a=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var s,l=o;null!=l.webkitGetAsEntry&&(s=l.webkitGetAsEntry())?s.isFile?i.push(e.addFile(l.getAsFile())):s.isDirectory?i.push(e._addFilesFromDirectory(s,s.name)):i.push(void 0):null!=l.getAsFile&&(null==l.kind||"file"===l.kind)?i.push(e.addFile(l.getAsFile())):i.push(void 0)}return i}()}},{key:"_addFilesFromDirectory",value:function(t,e){var i=this,n=t.createReader(),r=function(t){return a(console,"log",function(e){return e.log(t)})},o=function s(){return n.readEntries(function(t){if(t.length>0){for(var n=t,r=!0,a=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var l=o;l.isFile?l.file(function(t){if(!i.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath=e+"/"+t.name,i.addFile(t)}):l.isDirectory&&i._addFilesFromDirectory(l,e+"/"+l.name)}s()}return null},r)};return o()}},{key:"accept",value:function(t,e){return t.size>1024*this.options.maxFilesize*1024?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):l.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var e=this;return t.upload={uuid:l.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t),chunked:this.options.chunking&&(this.options.forceChunking||t.size>this.options.chunkSize),totalChunkCount:Math.ceil(t.size/this.options.chunkSize)},this.files.push(t),t.status=l.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(i){return i?(t.accepted=!1,e._errorProcessing([t],i)):(t.accepted=!0,e.options.autoQueue&&e.enqueueFile(t)),e._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(t){for(var e=t,i=!0,n=0,e=i?e:e[Symbol.iterator]();;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var a=r;this.enqueueFile(a)}return null}},{key:"enqueueFile",value:function(t){var e=this;if(t.status!==l.ADDED||t.accepted!==!0)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=l.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return e.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(t){var e=this;if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(t),setTimeout(function(){return e._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(i){return t.emit("thumbnail",e,i),t._processingThumbnail=!1,t._processThumbnailQueue()})}}},{key:"removeFile",value:function(t){if(t.status===l.UPLOADING&&this.cancelUpload(t),this.files=u(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);for(var e=this.files.slice(),i=!0,n=0,e=i?e:e[Symbol.iterator]();;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var a=r;(a.status!==l.UPLOADING||t)&&this.removeFile(a)}return null}},{key:"resizeImage",value:function(t,e,i,n,r){var a=this;return this.createThumbnail(t,e,i,n,!1,function(e,i){if(null==i)return r(t);var n=a.options.resizeMimeType;null==n&&(n=t.type);var o=i.toDataURL(n,a.options.resizeQuality);return"image/jpeg"!==n&&"image/jpg"!==n||(o=p.restore(t.dataURL,o)),r(l.dataURItoBlob(o))})}},{key:"createThumbnail",value:function(t,e,i,n,r,a){var o=this,s=new FileReader;return s.onload=function(){return t.dataURL=s.result,"image/svg+xml"===t.type?void(null!=a&&a(s.result)):o.createThumbnailFromUrl(t,e,i,n,r,a)},s.readAsDataURL(t)}},{key:"createThumbnailFromUrl",value:function(t,e,i,n,r,a,o){var s=this,l=document.createElement("img");return o&&(l.crossOrigin=o),l.onload=function(){var o=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&r&&(o=function(t){return EXIF.getData(l,function(){return t(EXIF.getTag(this,"Orientation"))})}),o(function(r){t.width=l.width,t.height=l.height;var o=s.options.resize.call(s,t,e,i,n),u=document.createElement("canvas"),h=u.getContext("2d");switch(u.width=o.trgWidth,u.height=o.trgHeight,r>4&&(u.width=o.trgHeight,u.height=o.trgWidth),r){case 2:h.translate(u.width,0),h.scale(-1,1);break;case 3:h.translate(u.width,u.height),h.rotate(Math.PI);break;case 4:h.translate(0,u.height),h.scale(1,-1);break;case 5:h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:h.rotate(.5*Math.PI),h.translate(0,-u.height);break;case 7:h.rotate(.5*Math.PI),h.translate(u.width,-u.height),h.scale(-1,1);break;case 8:h.rotate(-.5*Math.PI),h.translate(-u.width,0)}d(h,l,null!=o.srcX?o.srcX:0,null!=o.srcY?o.srcY:0,o.srcWidth,o.srcHeight,null!=o.trgX?o.trgX:0,null!=o.trgY?o.trgY:0,o.trgWidth,o.trgHeight);var c=u.toDataURL("image/png");if(null!=a)return a(c,u)})},null!=a&&(l.onerror=a),l.src=t.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,i=e;if(!(e>=t)){var n=this.getQueuedFiles();if(n.length>0){if(this.options.uploadMultiple)return this.processFiles(n.slice(0,t-e));for(;i<t;){if(!n.length)return;this.processFile(n.shift()),i++}}}}},{key:"processFile",value:function(t){return this.processFiles([t])}},{key:"processFiles",value:function(t){for(var e=t,i=!0,n=0,e=i?e:e[Symbol.iterator]();;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var a=r;a.processing=!0,a.status=l.UPLOADING,this.emit("processing",a)}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(t){var e=void 0;return e=this.files.filter(function(e){return e.xhr===t}).map(function(t){return t})}},{key:"cancelUpload",value:function(t){if(t.status===l.UPLOADING){for(var e=this._getFilesWithXhr(t.xhr),i=e,n=!0,r=0,i=n?i:i[Symbol.iterator]();;){var a;if(n){if(r>=i.length)break;a=i[r++]}else{if(r=i.next(),r.done)break;a=r.value}var o=a;o.status=l.CANCELED}"undefined"!=typeof t.xhr&&t.xhr.abort();for(var s=e,u=!0,h=0,s=u?s:s[Symbol.iterator]();;){var c;if(u){if(h>=s.length)break;c=s[h++]}else{if(h=s.next(),h.done)break;c=h.value}var d=c;this.emit("canceled",d)}this.options.uploadMultiple&&this.emit("canceledmultiple",e)}else t.status!==l.ADDED&&t.status!==l.QUEUED||(t.status=l.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){if("function"==typeof t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return t.apply(this,i)}return t}},{key:"uploadFile",value:function(t){return this.uploadFiles([t])}},{key:"uploadFiles",value:function(t){var e=this;this._transformFiles(t,function(i){if(t[0].upload.chunked){var n=t[0],r=i[0],a=0;n.upload.chunks=[];var o=function(){for(var i=0;void 0!==n.upload.chunks[i];)i++;if(!(i>=n.upload.totalChunkCount)){a++;var o=i*e.options.chunkSize,s=Math.min(o+e.options.chunkSize,n.size),u={name:e._getParamName(0),data:r.webkitSlice?r.webkitSlice(o,s):r.slice(o,s),filename:n.upload.filename,chunkIndex:i};n.upload.chunks[i]={file:n,index:i,dataBlock:u,status:l.UPLOADING,progress:0,retries:0},e._uploadData(t,[u])}};if(n.upload.finishedChunkUpload=function(i){var r=!0;i.status=l.SUCCESS,i.dataBlock=null;for(var a=0;a<n.upload.totalChunkCount;a++){if(void 0===n.upload.chunks[a])return o();n.upload.chunks[a].status!==l.SUCCESS&&(r=!1)}r&&e.options.chunksUploaded(n,function(){e._finished(t,"",null)})},e.options.parallelChunkUploads)for(var s=0;s<n.upload.totalChunkCount;s++)o();else o()}else{for(var u=[],h=0;h<t.length;h++)u[h]={name:e._getParamName(h),data:i[h],filename:t[h].upload.filename};e._uploadData(t,u)}})}},{key:"_getChunk",value:function(t,e){for(var i=0;i<t.upload.totalChunkCount;i++)if(void 0!==t.upload.chunks[i]&&t.upload.chunks[i].xhr===e)return t.upload.chunks[i]}},{key:"_uploadData",value:function(t,e){for(var i=this,n=new XMLHttpRequest,r=t,a=!0,o=0,r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}var u=s;u.xhr=n}t[0].upload.chunked&&(t[0].upload.chunks[e[0].chunkIndex].xhr=n);var h=this.resolveOption(this.options.method,t),c=this.resolveOption(this.options.url,t);n.open(h,c,!0),n.timeout=this.resolveOption(this.options.timeout,t),n.withCredentials=!!this.options.withCredentials,n.onload=function(e){i._finishedUploading(t,n,e)},n.onerror=function(){i._handleUploadError(t,n)};var d=null!=n.upload?n.upload:n;d.onprogress=function(e){return i._updateFilesUploadProgress(t,n,e)};var p={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&l.extend(p,this.options.headers);for(var f in p){var g=p[f];g&&n.setRequestHeader(f,g)}var m=new FormData;if(this.options.params){var v=this.options.params;"function"==typeof v&&(v=v.call(this,t,n,t[0].upload.chunked?this._getChunk(t[0],n):null));for(var y in v){var _=v[y];m.append(y,_)}}for(var b=t,x=!0,w=0,b=x?b:b[Symbol.iterator]();;){var M;if(x){if(w>=b.length)break;M=b[w++]}else{if(w=b.next(),w.done)break;M=w.value}var S=M;this.emit("sending",S,n,m)}this.options.uploadMultiple&&this.emit("sendingmultiple",t,n,m),this._addFormElementData(m);for(var k=0;k<e.length;k++){var D=e[k];m.append(D.name,D.data,D.filename)}this.submitRequest(n,m,t)}},{key:"_transformFiles",value:function(t,e){for(var i=this,n=[],r=0,a=function(a){i.options.transformFile.call(i,t[a],function(i){n[a]=i,++r===t.length&&e(n)})},o=0;o<t.length;o++)a(o)}},{key:"_addFormElementData",value:function(t){if("FORM"===this.element.tagName)for(var e=this.element.querySelectorAll("input, textarea, select, button"),i=!0,n=0,e=i?e:e[Symbol.iterator]();;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var a=r,o=a.getAttribute("name"),s=a.getAttribute("type");if(s&&(s=s.toLowerCase()),"undefined"!=typeof o&&null!==o)if("SELECT"===a.tagName&&a.hasAttribute("multiple"))for(var l=a.options,u=!0,h=0,l=u?l:l[Symbol.iterator]();;){var c;if(u){if(h>=l.length)break;c=l[h++]}else{if(h=l.next(),h.done)break;c=h.value}var d=c;d.selected&&t.append(o,d.value)}else(!s||"checkbox"!==s&&"radio"!==s||a.checked)&&t.append(o,a.value)}}},{key:"_updateFilesUploadProgress",value:function(t,e,i){var n=void 0;if("undefined"!=typeof i){if(n=100*i.loaded/i.total,t[0].upload.chunked){var r=t[0],a=this._getChunk(r,e);a.progress=n,a.total=i.total,a.bytesSent=i.loaded;r.upload.progress=0,r.upload.total=0,r.upload.bytesSent=0;for(var o=0;o<r.upload.totalChunkCount;o++)void 0!==r.upload.chunks[o]&&void 0!==r.upload.chunks[o].progress&&(r.upload.progress+=r.upload.chunks[o].progress,r.upload.total+=r.upload.chunks[o].total,r.upload.bytesSent+=r.upload.chunks[o].bytesSent);r.upload.progress=r.upload.progress/r.upload.totalChunkCount}else for(var s=t,l=!0,u=0,s=l?s:s[Symbol.iterator]();;){var h;if(l){if(u>=s.length)break;h=s[u++]}else{if(u=s.next(),u.done)break;h=u.value}var c=h;c.upload.progress=n,c.upload.total=i.total,c.upload.bytesSent=i.loaded}for(var d=t,p=!0,f=0,d=p?d:d[Symbol.iterator]();;){var g;if(p){if(f>=d.length)break;g=d[f++]}else{if(f=d.next(),f.done)break;g=f.value}var m=g;this.emit("uploadprogress",m,m.upload.progress,m.upload.bytesSent)}}else{var v=!0;n=100;for(var y=t,_=!0,b=0,y=_?y:y[Symbol.iterator]();;){var x;if(_){if(b>=y.length)break;x=y[b++]}else{if(b=y.next(),b.done)break;x=b.value}var w=x;100===w.upload.progress&&w.upload.bytesSent===w.upload.total||(v=!1),w.upload.progress=n,w.upload.bytesSent=w.upload.total}if(v)return;for(var M=t,S=!0,k=0,M=S?M:M[Symbol.iterator]();;){var D;if(S){if(k>=M.length)break;D=M[k++]}else{if(k=M.next(),k.done)break;D=k.value}var T=D;this.emit("uploadprogress",T,n,T.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(t,e,i){var n=void 0;if(t[0].status!==l.CANCELED&&4===e.readyState){if("arraybuffer"!==e.responseType&&"blob"!==e.responseType&&(n=e.responseText,e.getResponseHeader("content-type")&&~e.getResponseHeader("content-type").indexOf("application/json")))try{n=JSON.parse(n)}catch(r){i=r,n="Invalid JSON response from server."}this._updateFilesUploadProgress(t),200<=e.status&&e.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],e)):this._finished(t,n,i):this._handleUploadError(t,e,n); }}},{key:"_handleUploadError",value:function(t,e,i){if(t[0].status!==l.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var n=this._getChunk(t[0],e);if(n.retries++<this.options.retryChunksLimit)return void this._uploadData(t,[n.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var r=t,a=!0,o=0,r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}this._errorProcessing(t,i||this.options.dictResponseError.replace("{{statusCode}}",e.status),e)}}}},{key:"submitRequest",value:function(t,e,i){t.send(e)}},{key:"_finished",value:function(t,e,i){for(var n=t,r=!0,a=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var s=o;s.status=l.SUCCESS,this.emit("success",s,e,i),this.emit("complete",s)}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,e,i),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,e,i){for(var n=t,r=!0,a=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var s=o;s.status=l.ERROR,this.emit("error",s,e,i),this.emit("complete",s)}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,e,i),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,i="x"===t?e:3&e|8;return i.toString(16)})}}]),l}(s);l.initClass(),l.version="5.4.0",l.options={},l.optionsForElement=function(t){return t.getAttribute("id")?l.options[h(t.getAttribute("id"))]:void 0},l.instances=[],l.forElement=function(t){if("string"==typeof t&&(t=document.querySelector(t)),null==(null!=t?t.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return t.dropzone},l.autoDiscover=!0,l.discover=function(){var t=void 0;if(document.querySelectorAll)t=document.querySelectorAll(".dropzone");else{t=[];var e=function(e){return function(){for(var i=[],n=e,r=!0,a=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var s=o;/(^| )dropzone($| )/.test(s.className)?i.push(t.push(s)):i.push(void 0)}return i}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){for(var e=[],i=t,n=!0,r=0,i=n?i:i[Symbol.iterator]();;){var a;if(n){if(r>=i.length)break;a=i[r++]}else{if(r=i.next(),r.done)break;a=r.value}var o=a;l.optionsForElement(o)!==!1?e.push(new l(o)):e.push(void 0)}return e}()},l.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],l.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var e=l.blacklistedBrowsers,i=!0,n=0,e=i?e:e[Symbol.iterator]();;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var a=r;a.test(navigator.userAgent)&&(t=!1)}else t=!1;else t=!1;return t},l.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(e.length),r=new Uint8Array(n),a=0,o=e.length,s=0<=o;s?a<=o:a>=o;s?a++:a--)r[a]=e.charCodeAt(a);return new Blob([n],{type:i})};var u=function(t,e){return t.filter(function(t){return t!==e}).map(function(t){return t})},h=function(t){return t.replace(/[\-_](\w)/g,function(t){return t.charAt(1).toUpperCase()})};l.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},l.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},l.getElement=function(t,e){var i=void 0;if("string"==typeof t?i=document.querySelector(t):null!=t.nodeType&&(i=t),null==i)throw new Error("Invalid `"+e+"` option provided. Please provide a CSS selector or a plain HTML element.");return i},l.getElements=function(t,e){var i=void 0,n=void 0;if(t instanceof Array){n=[];try{for(var r=t,a=!0,o=0,r=a?r:r[Symbol.iterator]();;){if(a){if(o>=r.length)break;i=r[o++]}else{if(o=r.next(),o.done)break;i=o.value}n.push(this.getElement(i,e))}}catch(s){n=null}}else if("string"==typeof t){n=[];for(var l=document.querySelectorAll(t),u=!0,h=0,l=u?l:l[Symbol.iterator]();;){if(u){if(h>=l.length)break;i=l[h++]}else{if(h=l.next(),h.done)break;i=h.value}n.push(i)}}else null!=t.nodeType&&(n=[t]);if(null==n||!n.length)throw new Error("Invalid `"+e+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return n},l.confirm=function(t,e,i){return window.confirm(t)?e():null!=i?i():void 0},l.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");for(var i=t.type,n=i.replace(/\/.*$/,""),r=e,a=!0,o=0,r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}var l=s;if(l=l.trim(),"."===l.charAt(0)){if(t.name.toLowerCase().indexOf(l.toLowerCase(),t.name.length-l.length)!==-1)return!0}else if(/\/\*$/.test(l)){if(n===l.replace(/\/.*$/,""))return!0}else if(i===l)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each(function(){return new l(this,t)})}),"undefined"!=typeof t&&null!==t?t.exports=l:window.Dropzone=l,l.ADDED="added",l.QUEUED="queued",l.ACCEPTED=l.QUEUED,l.UPLOADING="uploading",l.PROCESSING=l.UPLOADING,l.CANCELED="canceled",l.ERROR="error",l.SUCCESS="success";var c=function(t){var e=(t.naturalWidth,t.naturalHeight),i=document.createElement("canvas");i.width=1,i.height=e;var n=i.getContext("2d");n.drawImage(t,0,0);for(var r=n.getImageData(1,0,1,e),a=r.data,o=0,s=e,l=e;l>o;){var u=a[4*(l-1)+3];0===u?s=l:o=l,l=s+o>>1}var h=l/e;return 0===h?1:h},d=function(t,e,i,n,r,a,o,s,l,u){var h=c(e);return t.drawImage(e,i,n,r,a,o,s,l,u/h)},p=function(){function t(){n(this,t)}return o(t,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e="",i=void 0,n=void 0,r="",a=void 0,o=void 0,s=void 0,l="",u=0;;)if(i=t[u++],n=t[u++],r=t[u++],a=i>>2,o=(3&i)<<4|n>>4,s=(15&n)<<2|r>>6,l=63&r,isNaN(n)?s=l=64:isNaN(r)&&(l=64),e=e+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(l),i=n=r="",a=o=s=l="",!(u<t.length))break;return e}},{key:"restore",value:function(t,e){if(!t.match("data:image/jpeg;base64,"))return e;var i=this.decode64(t.replace("data:image/jpeg;base64,","")),n=this.slice2Segments(i),r=this.exifManipulation(e,n);return"data:image/jpeg;base64,"+this.encode64(r)}},{key:"exifManipulation",value:function(t,e){var i=this.getExifArray(e),n=this.insertExif(t,i),r=new Uint8Array(n);return r}},{key:"getExifArray",value:function(t){for(var e=void 0,i=0;i<t.length;){if(e=t[i],255===e[0]&225===e[1])return e;i++}return[]}},{key:"insertExif",value:function(t,e){var i=t.replace("data:image/jpeg;base64,",""),n=this.decode64(i),r=n.indexOf(255,3),a=n.slice(0,r),o=n.slice(r),s=a;return s=s.concat(e),s=s.concat(o)}},{key:"slice2Segments",value:function(t){for(var e=0,i=[];;){var n;if(255===t[e]&218===t[e+1])break;if(255===t[e]&216===t[e+1])e+=2;else{n=256*t[e+2]+t[e+3];var r=e+n+2,a=t.slice(e,r);i.push(a),e=r}if(e>t.length)break}return i}},{key:"decode64",value:function(t){var e=void 0,i=void 0,n="",r=void 0,a=void 0,o=void 0,s="",l=0,u=[],h=/[^A-Za-z0-9\+\/\=]/g;for(h.exec(t)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");;)if(r=this.KEY_STR.indexOf(t.charAt(l++)),a=this.KEY_STR.indexOf(t.charAt(l++)),o=this.KEY_STR.indexOf(t.charAt(l++)),s=this.KEY_STR.indexOf(t.charAt(l++)),e=r<<2|a>>4,i=(15&a)<<4|o>>2,n=(3&o)<<6|s,u.push(e),64!==o&&u.push(i),64!==s&&u.push(n),e=i=n="",r=a=o=s="",!(l<t.length))break;return u}}]),t}();p.initClass();var f=function(t,e){var i=!1,n=!0,r=t.document,a=r.documentElement,o=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",u=function d(n){if("readystatechange"!==n.type||"complete"===r.readyState)return("load"===n.type?t:r)[s](l+n.type,d,!1),!i&&(i=!0)?e.call(t,n.type||n):void 0},h=function p(){try{a.doScroll("left")}catch(t){return void setTimeout(p,50)}return u("poll")};if("complete"!==r.readyState){if(r.createEventObject&&a.doScroll){try{n=!t.frameElement}catch(c){}n&&h()}return r[o](l+"DOMContentLoaded",u,!1),r[o](l+"readystatechange",u,!1),t[o](l+"load",u,!1)}};l._autoDiscoverFunction=function(){if(l.autoDiscover)return l.discover()},f(window,l._autoDiscoverFunction)}).call(e,i(123)(t))},function(t,e,i){i(430),function(){"use strict";"undefined"!=typeof Morris&&($("#graph_bar").length&&Morris.Bar({element:"graph_bar",data:[{device:"iPhone 4",geekbench:380},{device:"iPhone 4S",geekbench:655},{device:"iPhone 3GS",geekbench:275},{device:"iPhone 5",geekbench:1571},{device:"iPhone 5S",geekbench:655},{device:"iPhone 6",geekbench:2154},{device:"iPhone 6 Plus",geekbench:1144},{device:"iPhone 6S",geekbench:2371},{device:"iPhone 6S Plus",geekbench:1471},{device:"Other",geekbench:1371}],xkey:"device",ykeys:["geekbench"],labels:["Geekbench"],barRatio:.4,barColors:["#2979ff","#34495E","#ACADAC","#3498DB"],xLabelAngle:35,hideHover:"auto",resize:!0}),$("#graph_bar_group").length&&Morris.Bar({element:"graph_bar_group",data:[{period:"2016-10-01",licensed:807,sorned:660},{period:"2016-09-30",licensed:1251,sorned:729},{period:"2016-09-29",licensed:1769,sorned:1018},{period:"2016-09-20",licensed:2246,sorned:1461},{period:"2016-09-19",licensed:2657,sorned:1967},{period:"2016-09-18",licensed:3148,sorned:2627},{period:"2016-09-17",licensed:3471,sorned:3740},{period:"2016-09-16",licensed:2871,sorned:2216},{period:"2016-09-15",licensed:2401,sorned:1656},{period:"2016-09-10",licensed:2115,sorned:1022}],xkey:"period",barColors:["#2979ff","#34495E","#ACADAC","#3498DB"],ykeys:["licensed","sorned"],labels:["Licensed","SORN"],hideHover:"auto",xLabelAngle:60,resize:!0}),$("#graphx").length&&Morris.Bar({element:"graphx",data:[{x:"2015 Q1",y:2,z:3,a:4},{x:"2015 Q2",y:3,z:5,a:6},{x:"2015 Q3",y:4,z:3,a:2},{x:"2015 Q4",y:2,z:4,a:5}],xkey:"x",ykeys:["y","z","a"],barColors:["#2979ff","#34495E","#ACADAC","#3498DB"],hideHover:"auto",labels:["Y","Z","A"],resize:!0}).on("click",function(t,e){console.log(t,e)}),$("#graph_area").length&&Morris.Area({element:"graph_area",data:[{period:"2014 Q1",iphone:2666,ipad:null,itouch:2647},{period:"2014 Q2",iphone:2778,ipad:2294,itouch:2441},{period:"2014 Q3",iphone:4912,ipad:1969,itouch:2501},{period:"2014 Q4",iphone:3767,ipad:3597,itouch:5689},{period:"2015 Q1",iphone:6810,ipad:1914,itouch:2293},{period:"2015 Q2",iphone:5670,ipad:4293,itouch:1881},{period:"2015 Q3",iphone:4820,ipad:3795,itouch:1588},{period:"2015 Q4",iphone:15073,ipad:5967,itouch:5175},{period:"2016 Q1",iphone:10687,ipad:4460,itouch:2028},{period:"2016 Q2",iphone:8432,ipad:5713,itouch:1791}],xkey:"period",ykeys:["iphone","ipad","itouch"],lineColors:["#2979ff","#34495E","#ACADAC","#3498DB"],labels:["iPhone","iPad","iPod Touch"],pointSize:2,hideHover:"auto",resize:!0}),$("#graph_donut").length&&Morris.Donut({element:"graph_donut",data:[{label:"Jam",value:25},{label:"Frosted",value:40},{label:"Custard",value:25},{label:"Sugar",value:10}],colors:["#2979ff","#34495E","#ACADAC","#3498DB"],formatter:function(t){return t+"%"},resize:!0}),$("#graph_line").length&&Morris.Line({element:"graph_line",xkey:"year",ykeys:["value"],labels:["Value"],hideHover:"auto",lineColors:["#2979ff","#34495E","#ACADAC","#3498DB"],data:[{year:"2012",value:20},{year:"2013",value:10},{year:"2014",value:5},{year:"2015",value:5},{year:"2016",value:20}],resize:!0}))}()},function(t,e,i){const n=i(431);(function(){var t,e,i,r,a=[].slice,o=function(t,e){return function(){return t.apply(e,arguments)}},s={}.hasOwnProperty,l=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};e=window.Morris={},t=jQuery,e.EventEmitter=function(){function t(){}return t.prototype.on=function(t,e){return null==this.handlers&&(this.handlers={}),null==this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this},t.prototype.fire=function(){var t,e,i,n,r,o,s;if(i=arguments[0],t=2<=arguments.length?a.call(arguments,1):[],null!=this.handlers&&null!=this.handlers[i]){for(o=this.handlers[i],s=[],n=0,r=o.length;r>n;n++)e=o[n],s.push(e.apply(null,t));return s}},t}(),e.commas=function(t){var e,i,n,r;return null!=t?(n=0>t?"-":"",e=Math.abs(t),i=Math.floor(e).toFixed(0),n+=i.replace(/(?=(?:\d{3})+$)(?!^)/g,","),r=e.toString(),r.length>i.length&&(n+=r.slice(i.length)),n):"-"},e.pad2=function(t){return(10>t?"0":"")+t},e.Grid=function(i){function r(e){this.hasToShow=o(this.hasToShow,this),this.resizeHandler=o(this.resizeHandler,this);var i=this;if(this.el=t("string"==typeof e.element?document.getElementById(e.element):e.element),null==this.el||0===this.el.length)throw new Error("Graph container element not found");"static"===this.el.css("position")&&this.el.css("position","relative"),this.options=t.extend({},this.gridDefaults,this.defaults||{},e),"string"==typeof this.options.units&&(this.options.postUnits=e.units),this.raphael=new n(this.el[0]),this.elementWidth=null,this.elementHeight=null,this.dirty=!1,this.selectFrom=null,this.init&&this.init(),this.setData(this.options.data),this.el.bind("mousemove",function(t){var e,n,r,a,o;return n=i.el.offset(),o=t.pageX-n.left,i.selectFrom?(e=i.data[i.hitTest(Math.min(o,i.selectFrom))]._x,r=i.data[i.hitTest(Math.max(o,i.selectFrom))]._x,a=r-e,i.selectionRect.attr({x:e,width:a})):i.fire("hovermove",o,t.pageY-n.top)}),this.el.bind("mouseleave",function(){return i.selectFrom&&(i.selectionRect.hide(),i.selectFrom=null),i.fire("hoverout")}),this.el.bind("touchstart touchmove touchend",function(t){var e,n;return n=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],e=i.el.offset(),i.fire("hovermove",n.pageX-e.left,n.pageY-e.top)}),this.el.bind("click",function(t){var e;return e=i.el.offset(),i.fire("gridclick",t.pageX-e.left,t.pageY-e.top)}),this.options.rangeSelect&&(this.selectionRect=this.raphael.rect(0,0,0,this.el.innerHeight()).attr({fill:this.options.rangeSelectColor,stroke:!1}).toBack().hide(),this.el.bind("mousedown",function(t){var e;return e=i.el.offset(),i.startRange(t.pageX-e.left)}),this.el.bind("mouseup",function(t){var e;return e=i.el.offset(),i.endRange(t.pageX-e.left),i.fire("hovermove",t.pageX-e.left,t.pageY-e.top)})),this.options.resize&&t(window).bind("resize",function(){return null!=i.timeoutId&&window.clearTimeout(i.timeoutId),i.timeoutId=window.setTimeout(i.resizeHandler,100)}),this.el.css("-webkit-tap-highlight-color","rgba(0,0,0,0)"),this.postInit&&this.postInit()}return l(r,i),r.prototype.gridDefaults={dateFormat:null,axes:!0,grid:!0,gridLineColor:"#aaa",gridStrokeWidth:.5,gridTextColor:"#888",gridTextSize:12,gridTextFamily:"sans-serif",gridTextWeight:"normal",hideHover:!1,yLabelFormat:null,xLabelAngle:0,numLines:5,padding:25,parseTime:!0,postUnits:"",preUnits:"",ymax:"auto",ymin:"auto 0",goals:[],goalStrokeWidth:1,goalLineColors:["#666633","#999966","#cc6666","#663333"],events:[],eventStrokeWidth:1,eventLineColors:["#005a04","#ccffbb","#3a5f0b","#005502"],rangeSelect:null,rangeSelectColor:"#eef",resize:!1},r.prototype.setData=function(i,n){var r,a,o,s,l,u,h,c,d,p,f,g,m,v,y,_,b,x,w,M,S;if(null==n&&(n=!0),this.options.data=i,null==i||0===i.length)return this.data=[],this.raphael.clear(),void(null!=this.hover&&this.hover.hide());if(y=this.cumulative?0:null,_=this.cumulative?0:null,this.options.goals.length>0&&(h=Math.min.apply(Math,this.options.goals),u=Math.max.apply(Math,this.options.goals),_=null!=_?Math.min(_,h):h,y=null!=y?Math.max(y,u):u),this.data=function(){var t,n,r;for(r=[],l=t=0,n=i.length;n>t;l=++t)d=i[l],c={src:d},c.label=d[this.options.xkey],this.options.parseTime?(c.x=e.parseDate(c.label),this.options.dateFormat?c.label=this.options.dateFormat(c.x):"number"==typeof c.label&&(c.label=new Date(c.label).toString())):(c.x=l,this.options.xLabelFormat&&(c.label=this.options.xLabelFormat(c))),g=0,c.y=function(){var t,e,i,n;for(i=this.options.ykeys,n=[],s=t=0,e=i.length;e>t;s=++t)v=i[s],b=d[v],"string"==typeof b&&(b=parseFloat(b)),null!=b&&"number"!=typeof b&&(b=null),null!=b&&this.hasToShow(s)&&(this.cumulative?g+=b:null!=y?(y=Math.max(b,y),_=Math.min(b,_)):y=_=b),this.cumulative&&null!=g&&(y=Math.max(g,y),_=Math.min(g,_)),n.push(b);return n}.call(this),r.push(c);return r}.call(this),this.options.parseTime&&(this.data=this.data.sort(function(t,e){return(t.x>e.x)-(e.x>t.x)})),this.xmin=this.data[0].x,this.xmax=this.data[this.data.length-1].x,this.events=[],this.options.events.length>0){if(this.options.parseTime)for(M=this.options.events,x=0,w=M.length;w>x;x++)r=M[x],r instanceof Array?(o=r[0],f=r[1],this.events.push([e.parseDate(o),e.parseDate(f)])):this.events.push(e.parseDate(r));else this.events=this.options.events;a=t.map(this.events,function(t){return t}),this.xmax=Math.max(this.xmax,Math.max.apply(Math,a)),this.xmin=Math.min(this.xmin,Math.min.apply(Math,a))}return this.xmin===this.xmax&&(this.xmin-=1,this.xmax+=1),this.ymin=this.yboundary("min",_),this.ymax=this.yboundary("max",y),this.ymin===this.ymax&&(_&&(this.ymin-=1),this.ymax+=1),((S=this.options.axes)===!0||"both"===S||"y"===S||this.options.grid===!0)&&(this.options.ymax===this.gridDefaults.ymax&&this.options.ymin===this.gridDefaults.ymin?(this.grid=this.autoGridLines(this.ymin,this.ymax,this.options.numLines),this.ymin=Math.min(this.ymin,this.grid[0]),this.ymax=Math.max(this.ymax,this.grid[this.grid.length-1])):(p=(this.ymax-this.ymin)/(this.options.numLines-1),this.grid=function(){var t,e,i,n;for(n=[],m=t=e=this.ymin,i=this.ymax;p>0?i>=t:t>=i;m=t+=p)n.push(m);return n}.call(this))),this.dirty=!0,n?this.redraw():void 0},r.prototype.yboundary=function(t,e){var i,n;return i=this.options["y"+t],"string"==typeof i?"auto"===i.slice(0,4)?i.length>5?(n=parseInt(i.slice(5),10),null==e?n:Math[t](e,n)):null!=e?e:0:parseInt(i,10):i},r.prototype.autoGridLines=function(t,e,i){var n,r,a,o,s,l,u,h,c;return s=e-t,c=Math.floor(Math.log(s)/Math.log(10)),u=Math.pow(10,c),r=Math.floor(t/u)*u,n=Math.ceil(e/u)*u,l=(n-r)/(i-1),1===u&&l>1&&Math.ceil(l)!==l&&(l=Math.ceil(l),n=r+l*(i-1)),0>r&&n>0&&(r=Math.floor(t/l)*l,n=Math.ceil(e/l)*l),1>l?(o=Math.floor(Math.log(l)/Math.log(10)),a=function(){var t,e;for(e=[],h=t=r;l>0?n>=t:t>=n;h=t+=l)e.push(parseFloat(h.toFixed(1-o)));return e}()):a=function(){var t,e;for(e=[],h=t=r;l>0?n>=t:t>=n;h=t+=l)e.push(h);return e}(),a},r.prototype._calc=function(){var t,e,i,n,r,a,o,s,l;return a=this.el.width(),n=this.el.height(),(this.elementWidth!==a||this.elementHeight!==n||this.dirty)&&(this.elementWidth=a,this.elementHeight=n,this.dirty=!1,this.left=this.options.padding,this.right=this.elementWidth-this.options.padding,this.top=this.options.padding,this.bottom=this.elementHeight-this.options.padding,((s=this.options.axes)===!0||"both"===s||"y"===s)&&(o=function(){var t,e,n,r;for(n=this.grid,r=[],t=0,e=n.length;e>t;t++)i=n[t],r.push(this.measureText(this.yAxisFormat(i)).width);return r}.call(this),this.options.horizontal?this.bottom-=Math.max.apply(Math,o):this.left+=Math.max.apply(Math,o)),((l=this.options.axes)===!0||"both"===l||"x"===l)&&(t=this.options.horizontal?-90:-this.options.xLabelAngle,e=function(){var e,i,n;for(n=[],r=e=0,i=this.data.length;i>=0?i>e:e>i;r=i>=0?++e:--e)n.push(this.measureText(this.data[r].label,t).height);return n}.call(this),this.options.horizontal?this.left+=Math.max.apply(Math,e):this.bottom-=Math.max.apply(Math,e)),this.width=Math.max(1,this.right-this.left),this.height=Math.max(1,this.bottom-this.top),this.options.horizontal?(this.dx=this.height/(this.xmax-this.xmin),this.dy=this.width/(this.ymax-this.ymin),this.yStart=this.left,this.yEnd=this.right,this.xStart=this.top,this.xEnd=this.bottom,this.xSize=this.height,this.ySize=this.width):(this.dx=this.width/(this.xmax-this.xmin),this.dy=this.height/(this.ymax-this.ymin),this.yStart=this.bottom,this.yEnd=this.top,this.xStart=this.left,this.xEnd=this.right,this.xSize=this.width,this.ySize=this.height),this.calc)?this.calc():void 0},r.prototype.transY=function(t){return this.options.horizontal?this.left+(t-this.ymin)*this.dy:this.bottom-(t-this.ymin)*this.dy},r.prototype.transX=function(t){return 1===this.data.length?(this.xStart+this.xEnd)/2:this.xStart+(t-this.xmin)*this.dx},r.prototype.redraw=function(){return this.raphael.clear(),this._calc(),this.drawGrid(),this.drawGoals(),this.drawEvents(),this.draw?this.draw():void 0},r.prototype.measureText=function(t,e){var i,n;return null==e&&(e=0),n=this.raphael.text(100,100,t).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).rotate(e),i=n.getBBox(),n.remove(),i},r.prototype.yAxisFormat=function(t){return this.yLabelFormat(t,0)},r.prototype.yLabelFormat=function(t,i){return"function"==typeof this.options.yLabelFormat?this.options.yLabelFormat(t,i):""+this.options.preUnits+e.commas(t)+this.options.postUnits},r.prototype.getYAxisLabelX=function(){return this.left-this.options.padding/2},r.prototype.drawGrid=function(){var t,e,i,n,r,a,o,s,l;if(this.options.grid!==!1||(a=this.options.axes)===!0||"both"===a||"y"===a){for(t=this.options.horizontal?this.getXAxisLabelY():this.getYAxisLabelX(),o=this.grid,l=[],n=0,r=o.length;r>n;n++)e=o[n],i=this.transY(e),((s=this.options.axes)===!0||"both"===s||"y"===s)&&(this.options.horizontal?this.drawXAxisLabel(i,t,this.yAxisFormat(e)):this.drawYAxisLabel(t,i,this.yAxisFormat(e))),this.options.grid?(i=Math.floor(i)+.5,l.push(this.options.horizontal?this.drawGridLine("M"+i+","+this.xStart+"V"+this.xEnd):this.drawGridLine("M"+this.xStart+","+i+"H"+this.xEnd))):l.push(void 0);return l}},r.prototype.drawGoals=function(){var t,e,i,n,r,a,o;for(a=this.options.goals,o=[],i=n=0,r=a.length;r>n;i=++n)e=a[i],t=this.options.goalLineColors[i%this.options.goalLineColors.length],o.push(this.drawGoal(e,t));return o},r.prototype.drawEvents=function(){var t,e,i,n,r,a,o;for(a=this.events,o=[],i=n=0,r=a.length;r>n;i=++n)e=a[i],t=this.options.eventLineColors[i%this.options.eventLineColors.length],o.push(this.drawEvent(e,t));return o},r.prototype.drawGoal=function(t,e){var i,n;return n=Math.floor(this.transY(t))+.5,i=this.options.horizontal?"M"+n+","+this.xStart+"V"+this.xEnd:"M"+this.xStart+","+n+"H"+this.xEnd,this.raphael.path(i).attr("stroke",e).attr("stroke-width",this.options.goalStrokeWidth)},r.prototype.drawEvent=function(t,e){var i,n,r,a;return t instanceof Array?(i=t[0],r=t[1],i=Math.floor(this.transX(i))+.5,r=Math.floor(this.transX(r))+.5,this.options.horizontal?this.raphael.rect(this.yStart,i,this.yEnd-this.yStart,r-i).attr({fill:e,stroke:!1}).toBack():this.raphael.rect(i,this.yEnd,r-i,this.yStart-this.yEnd).attr({fill:e,stroke:!1}).toBack()):(a=Math.floor(this.transX(t))+.5,n=this.options.horizontal?"M"+this.yStart+","+a+"H"+this.yEnd:"M"+a+","+this.yStart+"V"+this.yEnd,this.raphael.path(n).attr("stroke",e).attr("stroke-width",this.options.eventStrokeWidth))},r.prototype.drawYAxisLabel=function(t,e,i){return this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor).attr("text-anchor","end")},r.prototype.drawGridLine=function(t){return this.raphael.path(t).attr("stroke",this.options.gridLineColor).attr("stroke-width",this.options.gridStrokeWidth)},r.prototype.startRange=function(t){return this.hover.hide(),this.selectFrom=t,this.selectionRect.attr({x:t,width:0}).show()},r.prototype.endRange=function(t){var e,i;return this.selectFrom?(i=Math.min(this.selectFrom,t),e=Math.max(this.selectFrom,t),this.options.rangeSelect.call(this.el,{start:this.data[this.hitTest(i)].x,end:this.data[this.hitTest(e)].x}),this.selectFrom=null):void 0},r.prototype.resizeHandler=function(){return this.timeoutId=null,this.raphael.setSize(this.el.width(),this.el.height()),this.redraw()},r.prototype.hasToShow=function(t){return this.options.shown===!0||this.options.shown[t]===!0},r}(e.EventEmitter),e.parseDate=function(t){var e,i,n,r,a,o,s,l,u,h,c;return"number"==typeof t?t:(i=t.match(/^(\d+) Q(\d)$/),r=t.match(/^(\d+)-(\d+)$/),a=t.match(/^(\d+)-(\d+)-(\d+)$/),s=t.match(/^(\d+) W(\d+)$/),l=t.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+)(Z|([+-])(\d\d):?(\d\d))?$/),u=t.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+):(\d+(\.\d+)?)(Z|([+-])(\d\d):?(\d\d))?$/),i?new Date(parseInt(i[1],10),3*parseInt(i[2],10)-1,1).getTime():r?new Date(parseInt(r[1],10),parseInt(r[2],10)-1,1).getTime():a?new Date(parseInt(a[1],10),parseInt(a[2],10)-1,parseInt(a[3],10)).getTime():s?(h=new Date(parseInt(s[1],10),0,1),4!==h.getDay()&&h.setMonth(0,1+(4-h.getDay()+7)%7),h.getTime()+6048e5*parseInt(s[2],10)):l?l[6]?(o=0,"Z"!==l[6]&&(o=60*parseInt(l[8],10)+parseInt(l[9],10),"+"===l[7]&&(o=0-o)),Date.UTC(parseInt(l[1],10),parseInt(l[2],10)-1,parseInt(l[3],10),parseInt(l[4],10),parseInt(l[5],10)+o)):new Date(parseInt(l[1],10),parseInt(l[2],10)-1,parseInt(l[3],10),parseInt(l[4],10),parseInt(l[5],10)).getTime():u?(c=parseFloat(u[6]),e=Math.floor(c),n=Math.round(1e3*(c-e)),u[8]?(o=0,"Z"!==u[8]&&(o=60*parseInt(u[10],10)+parseInt(u[11],10),"+"===u[9]&&(o=0-o)),Date.UTC(parseInt(u[1],10),parseInt(u[2],10)-1,parseInt(u[3],10),parseInt(u[4],10),parseInt(u[5],10)+o,e,n)):new Date(parseInt(u[1],10),parseInt(u[2],10)-1,parseInt(u[3],10),parseInt(u[4],10),parseInt(u[5],10),e,n).getTime()):new Date(parseInt(t,10),0,1).getTime())},e.Hover=function(){function i(i){null==i&&(i={}),this.options=t.extend({},e.Hover.defaults,i),this.el=t("<div class='"+this.options["class"]+"'></div>"),this.el.hide(),this.options.parent.append(this.el)}return i.defaults={"class":"morris-hover morris-default-style"},i.prototype.update=function(t,e,i,n){return t?(this.html(t),this.show(),this.moveTo(e,i,n)):this.hide()},i.prototype.html=function(t){return this.el.html(t)},i.prototype.moveTo=function(t,e,i){var n,r,a,o,s,l;return s=this.options.parent.innerWidth(),o=this.options.parent.innerHeight(),r=this.el.outerWidth(),n=this.el.outerHeight(),a=Math.min(Math.max(0,t-r/2),s-r),null!=e?i===!0?(l=e-n/2,0>l&&(l=0)):(l=e-n-10,0>l&&(l=e+10,l+n>o&&(l=o/2-n/2))):l=o/2-n/2,this.el.css({left:a+"px",top:parseInt(l)+"px"})},i.prototype.show=function(){return this.el.show()},i.prototype.hide=function(){return this.el.hide()},i}(),e.Line=function(i){function r(t){return this.hilight=o(this.hilight,this),this.onHoverOut=o(this.onHoverOut,this),this.onHoverMove=o(this.onHoverMove,this),this.onGridClick=o(this.onGridClick,this),this instanceof e.Line?void r.__super__.constructor.call(this,t):new e.Line(t)}return l(r,i),r.prototype.init=function(){return"always"!==this.options.hideHover?(this.hover=new e.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)):void 0},r.prototype.defaults={lineWidth:3,pointSize:4,lineColors:["#0b62a4","#7A92A3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],pointStrokeWidths:[1],pointStrokeColors:["#ffffff"],pointFillColors:[],smooth:!0,shown:!0,xLabels:"auto",xLabelFormat:null,xLabelMargin:24,hideHover:!1,trendLine:!1,trendLineWidth:2,trendLineColors:["#689bc3","#a2b3bf","#64b764"]},r.prototype.calc=function(){return this.calcPoints(),this.generatePaths()},r.prototype.calcPoints=function(){var t,e,i,n,r,a;for(r=this.data,a=[],i=0,n=r.length;n>i;i++)t=r[i],t._x=this.transX(t.x),t._y=function(){var i,n,r,a;for(r=t.y,a=[],i=0,n=r.length;n>i;i++)e=r[i],a.push(null!=e?this.transY(e):e);return a}.call(this),a.push(t._ymax=Math.min.apply(Math,[this.bottom].concat(function(){var i,n,r,a;for(r=t._y,a=[],i=0,n=r.length;n>i;i++)e=r[i],null!=e&&a.push(e);return a}())));return a},r.prototype.hitTest=function(t){var e,i,n,r,a;if(0===this.data.length)return null;for(a=this.data.slice(1),e=n=0,r=a.length;r>n&&(i=a[e],!(t<(i._x+this.data[e]._x)/2));e=++n);return e},r.prototype.onGridClick=function(t,e){var i;return i=this.hitTest(t),this.fire("click",i,this.data[i].src,t,e)},r.prototype.onHoverMove=function(t){var e;return e=this.hitTest(t),this.displayHoverForRow(e)},r.prototype.onHoverOut=function(){return this.options.hideHover!==!1?this.displayHoverForRow(null):void 0},r.prototype.displayHoverForRow=function(t){var e;return null!=t?((e=this.hover).update.apply(e,this.hoverContentForRow(t)),this.hilight(t)):(this.hover.hide(),this.hilight())},r.prototype.hoverContentForRow=function(e){var i,n,r,a,o,s,l;for(r=this.data[e],i=t("<div class='morris-hover-row-label'>").text(r.label),i=i.prop("outerHTML"),l=r.y,n=o=0,s=l.length;s>o;n=++o)a=l[n],this.options.labels[n]!==!1&&(i+="<div class='morris-hover-point' style='color: "+this.colorFor(r,n,"label")+"'>\n "+this.options.labels[n]+":\n "+this.yLabelFormat(a,n)+"\n</div>");return"function"==typeof this.options.hoverCallback&&(i=this.options.hoverCallback(e,this.options,i,r.src)),[i,r._x,r._ymax]},r.prototype.generatePaths=function(){var t,i,n,r;return this.paths=function(){var a,o,s,l;for(l=[],i=a=0,o=this.options.ykeys.length;o>=0?o>a:a>o;i=o>=0?++a:--a)r="boolean"==typeof this.options.smooth?this.options.smooth:(s=this.options.ykeys[i],u.call(this.options.smooth,s)>=0),t=function(){var t,e,r,a;for(r=this.data,a=[],t=0,e=r.length;e>t;t++)n=r[t],void 0!==n._y[i]&&a.push({x:n._x,y:n._y[i]});return a}.call(this),l.push(t.length>1?e.Line.createPath(t,r,this.bottom):null);return l}.call(this)},r.prototype.draw=function(){var t;return((t=this.options.axes)===!0||"both"===t||"x"===t)&&this.drawXAxis(),this.drawSeries(),this.options.hideHover===!1?this.displayHoverForRow(this.data.length-1):void 0},r.prototype.drawXAxis=function(){var t,i,n,r,a,o,s,l,u,h,c=this;for(s=this.bottom+this.options.padding/2,a=null,r=null,t=function(t,e){var i,n,o,l,u;return i=c.drawXAxisLabel(c.transX(e),s,t),u=i.getBBox(),i.transform("r"+-c.options.xLabelAngle),n=i.getBBox(),i.transform("t0,"+n.height/2+"..."),0!==c.options.xLabelAngle&&(l=-.5*u.width*Math.cos(c.options.xLabelAngle*Math.PI/180),i.transform("t"+l+",0...")),n=i.getBBox(),(null==a||a>=n.x+n.width||null!=r&&r>=n.x)&&n.x>=0&&n.x+n.width<c.el.width()?(0!==c.options.xLabelAngle&&(o=1.25*c.options.gridTextSize/Math.sin(c.options.xLabelAngle*Math.PI/180),r=n.x-o),a=n.x-c.options.xLabelMargin):i.remove()},n=this.options.parseTime?1===this.data.length&&"auto"===this.options.xLabels?[[this.data[0].label,this.data[0].x]]:e.labelSeries(this.xmin,this.xmax,this.width,this.options.xLabels,this.options.xLabelFormat):function(){var t,e,i,n;for(i=this.data,n=[],t=0,e=i.length;e>t;t++)o=i[t],n.push([o.label,o.x]);return n}.call(this),n.reverse(),h=[],l=0,u=n.length;u>l;l++)i=n[l],h.push(t(i[0],i[1]));return h},r.prototype.drawSeries=function(){var t,e,i,n,r,a;for(this.seriesPoints=[],t=e=n=this.options.ykeys.length-1;0>=n?0>=e:e>=0;t=0>=n?++e:--e)this.hasToShow(t)&&((this.options.trendLine!==!1&&this.options.trendLine===!0||this.options.trendLine[t]===!0)&&this._drawTrendLine(t),this._drawLineFor(t));for(a=[],t=i=r=this.options.ykeys.length-1;0>=r?0>=i:i>=0;t=0>=r?++i:--i)a.push(this.hasToShow(t)?this._drawPointFor(t):void 0);return a},r.prototype._drawPointFor=function(t){var e,i,n,r,a,o;for(this.seriesPoints[t]=[],a=this.data,o=[],n=0,r=a.length;r>n;n++)i=a[n],e=null,null!=i._y[t]&&(e=this.drawLinePoint(i._x,i._y[t],this.colorFor(i,t,"point"),t)),o.push(this.seriesPoints[t].push(e)); return o},r.prototype._drawLineFor=function(t){var e;return e=this.paths[t],null!==e?this.drawLinePath(e,this.colorFor(null,t,"line"),t):void 0},r.prototype._drawTrendLine=function(t){var i,n,r,a,o,s,l,u,h,c,d,p,f,g,m;for(s=0,h=0,l=0,u=0,a=0,m=this.data,f=0,g=m.length;g>f;f++)c=m[f],d=c.x,p=c.y[t],void 0!==p&&(a+=1,s+=d,h+=p,l+=d*d,u+=d*p);return i=(a*u-s*h)/(a*l-s*s),n=h/a-i*s/a,r=[{},{}],r[0].x=this.transX(this.data[0].x),r[0].y=this.transY(this.data[0].x*i+n),r[1].x=this.transX(this.data[this.data.length-1].x),r[1].y=this.transY(this.data[this.data.length-1].x*i+n),o=e.Line.createPath(r,!1,this.bottom),o=this.raphael.path(o).attr("stroke",this.colorFor(null,t,"trendLine")).attr("stroke-width",this.options.trendLineWidth)},r.createPath=function(t,i,n){var r,a,o,s,l,u,h,c,d,p,f,g,m,v;for(h="",i&&(o=e.Line.gradients(t)),c={y:null},s=m=0,v=t.length;v>m;s=++m)r=t[s],null!=r.y&&(null!=c.y?i?(a=o[s],u=o[s-1],l=(r.x-c.x)/4,d=c.x+l,f=Math.min(n,c.y+l*u),p=r.x-l,g=Math.min(n,r.y-l*a),h+="C"+d+","+f+","+p+","+g+","+r.x+","+r.y):h+="L"+r.x+","+r.y:i&&null==o[s]||(h+="M"+r.x+","+r.y)),c=r;return h},r.gradients=function(t){var e,i,n,r,a,o,s,l;for(i=function(t,e){return(t.y-e.y)/(t.x-e.x)},l=[],n=o=0,s=t.length;s>o;n=++o)e=t[n],null!=e.y?(r=t[n+1]||{y:null},a=t[n-1]||{y:null},l.push(null!=a.y&&null!=r.y?i(a,r):null!=a.y?i(a,e):null!=r.y?i(e,r):null)):l.push(null);return l},r.prototype.hilight=function(t){var e,i,n,r,a;if(null!==this.prevHilight&&this.prevHilight!==t)for(e=i=0,r=this.seriesPoints.length-1;r>=0?r>=i:i>=r;e=r>=0?++i:--i)this.seriesPoints[e][this.prevHilight]&&this.seriesPoints[e][this.prevHilight].animate(this.pointShrinkSeries(e));if(null!==t&&this.prevHilight!==t)for(e=n=0,a=this.seriesPoints.length-1;a>=0?a>=n:n>=a;e=a>=0?++n:--n)this.seriesPoints[e][t]&&this.seriesPoints[e][t].animate(this.pointGrowSeries(e));return this.prevHilight=t},r.prototype.colorFor=function(t,e,i){return"function"==typeof this.options.lineColors?this.options.lineColors.call(this,t,e,i):"point"===i?this.options.pointFillColors[e%this.options.pointFillColors.length]||this.options.lineColors[e%this.options.lineColors.length]:"line"===i?this.options.lineColors[e%this.options.lineColors.length]:this.options.trendLineColors[e%this.options.trendLineColors.length]},r.prototype.drawXAxisLabel=function(t,e,i){return this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},r.prototype.drawLinePath=function(t,e,i){return this.raphael.path(t).attr("stroke",e).attr("stroke-width",this.lineWidthForSeries(i))},r.prototype.drawLinePoint=function(t,e,i,n){return this.raphael.circle(t,e,this.pointSizeForSeries(n)).attr("fill",i).attr("stroke-width",this.pointStrokeWidthForSeries(n)).attr("stroke",this.pointStrokeColorForSeries(n))},r.prototype.pointStrokeWidthForSeries=function(t){return this.options.pointStrokeWidths[t%this.options.pointStrokeWidths.length]},r.prototype.pointStrokeColorForSeries=function(t){return this.options.pointStrokeColors[t%this.options.pointStrokeColors.length]},r.prototype.lineWidthForSeries=function(t){return this.options.lineWidth instanceof Array?this.options.lineWidth[t%this.options.lineWidth.length]:this.options.lineWidth},r.prototype.pointSizeForSeries=function(t){return this.options.pointSize instanceof Array?this.options.pointSize[t%this.options.pointSize.length]:this.options.pointSize},r.prototype.pointGrowSeries=function(t){return 0!==this.pointSizeForSeries(t)?n.animation({r:this.pointSizeForSeries(t)+3},25,"linear"):void 0},r.prototype.pointShrinkSeries=function(t){return n.animation({r:this.pointSizeForSeries(t)},25,"linear")},r}(e.Grid),e.labelSeries=function(i,n,r,a,o){var s,l,u,h,c,d,p,f,g,m,v;if(u=200*(n-i)/r,l=new Date(i),p=e.LABEL_SPECS[a],void 0===p)for(v=e.AUTO_LABEL_ORDER,g=0,m=v.length;m>g;g++)if(h=v[g],d=e.LABEL_SPECS[h],u>=d.span){p=d;break}for(void 0===p&&(p=e.LABEL_SPECS.second),o&&(p=t.extend({},p,{fmt:o})),s=p.start(l),c=[];(f=s.getTime())<=n;)f>=i&&c.push([p.fmt(s),f]),p.incr(s);return c},i=function(t){return{span:60*t*1e3,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours())},fmt:function(t){return""+e.pad2(t.getHours())+":"+e.pad2(t.getMinutes())},incr:function(e){return e.setUTCMinutes(e.getUTCMinutes()+t)}}},r=function(t){return{span:1e3*t,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes())},fmt:function(t){return""+e.pad2(t.getHours())+":"+e.pad2(t.getMinutes())+":"+e.pad2(t.getSeconds())},incr:function(e){return e.setUTCSeconds(e.getUTCSeconds()+t)}}},e.LABEL_SPECS={decade:{span:1728e8,start:function(t){return new Date(t.getFullYear()-t.getFullYear()%10,0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+10)}},year:{span:1728e7,start:function(t){return new Date(t.getFullYear(),0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+1)}},month:{span:24192e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),1)},fmt:function(t){return""+t.getFullYear()+"-"+e.pad2(t.getMonth()+1)},incr:function(t){return t.setMonth(t.getMonth()+1)}},week:{span:6048e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return""+t.getFullYear()+"-"+e.pad2(t.getMonth()+1)+"-"+e.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+7)}},day:{span:864e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return""+t.getFullYear()+"-"+e.pad2(t.getMonth()+1)+"-"+e.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+1)}},hour:i(60),"30min":i(30),"15min":i(15),"10min":i(10),"5min":i(5),minute:i(1),"30sec":r(30),"15sec":r(15),"10sec":r(10),"5sec":r(5),second:r(1)},e.AUTO_LABEL_ORDER=["decade","year","month","week","day","hour","30min","15min","10min","5min","minute","30sec","15sec","10sec","5sec","second"],e.Area=function(i){function r(i){var n;return this instanceof e.Area?(n=t.extend({},a,i),this.cumulative=!n.behaveLikeLine,"auto"===n.fillOpacity&&(n.fillOpacity=n.behaveLikeLine?.8:1),void r.__super__.constructor.call(this,n)):new e.Area(i)}var a;return l(r,i),a={fillOpacity:"auto",behaveLikeLine:!1},r.prototype.calcPoints=function(){var t,e,i,n,r,a,o;for(a=this.data,o=[],n=0,r=a.length;r>n;n++)t=a[n],t._x=this.transX(t.x),e=0,t._y=function(){var n,r,a,o;for(a=t.y,o=[],n=0,r=a.length;r>n;n++)i=a[n],this.options.behaveLikeLine?o.push(this.transY(i)):(e+=i||0,o.push(this.transY(e)));return o}.call(this),o.push(t._ymax=Math.max.apply(Math,t._y));return o},r.prototype.drawSeries=function(){var t,e,i,n,r,a,o,s;for(this.seriesPoints=[],e=this.options.behaveLikeLine?function(){a=[];for(var t=0,e=this.options.ykeys.length-1;e>=0?e>=t:t>=e;e>=0?t++:t--)a.push(t);return a}.apply(this):function(){o=[];for(var t=r=this.options.ykeys.length-1;0>=r?0>=t:t>=0;0>=r?t++:t--)o.push(t);return o}.apply(this),s=[],i=0,n=e.length;n>i;i++)t=e[i],this._drawFillFor(t),this._drawLineFor(t),s.push(this._drawPointFor(t));return s},r.prototype._drawFillFor=function(t){var e;return e=this.paths[t],null!==e?(e+="L"+this.transX(this.xmax)+","+this.bottom+"L"+this.transX(this.xmin)+","+this.bottom+"Z",this.drawFilledPath(e,this.fillForSeries(t))):void 0},r.prototype.fillForSeries=function(t){var e;return e=n.rgb2hsl(this.colorFor(this.data[t],t,"line")),n.hsl(e.h,this.options.behaveLikeLine?.9*e.s:.75*e.s,Math.min(.98,this.options.behaveLikeLine?1.2*e.l:1.25*e.l))},r.prototype.drawFilledPath=function(t,e){return this.raphael.path(t).attr("fill",e).attr("fill-opacity",this.options.fillOpacity).attr("stroke","none")},r}(e.Line),e.Bar=function(i){function n(i){return this.onHoverOut=o(this.onHoverOut,this),this.onHoverMove=o(this.onHoverMove,this),this.onGridClick=o(this.onGridClick,this),this instanceof e.Bar?void n.__super__.constructor.call(this,t.extend({},i,{parseTime:!1})):new e.Bar(i)}return l(n,i),n.prototype.init=function(){return this.cumulative=this.options.stacked,"always"!==this.options.hideHover?(this.hover=new e.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)):void 0},n.prototype.defaults={barSizeRatio:.75,barGap:3,barColors:["#0b62a4","#7a92a3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],barOpacity:1,barRadius:[0,0,0,0],xLabelMargin:50,horizontal:!1,shown:!0},n.prototype.calc=function(){var t;return this.calcBars(),this.options.hideHover===!1?(t=this.hover).update.apply(t,this.hoverContentForRow(this.data.length-1)):void 0},n.prototype.calcBars=function(){var t,e,i,n,r,a,o;for(a=this.data,o=[],t=n=0,r=a.length;r>n;t=++n)e=a[t],e._x=this.xStart+this.xSize*(t+.5)/this.data.length,o.push(e._y=function(){var t,n,r,a;for(r=e.y,a=[],t=0,n=r.length;n>t;t++)i=r[t],a.push(null!=i?this.transY(i):null);return a}.call(this));return o},n.prototype.draw=function(){var t;return((t=this.options.axes)===!0||"both"===t||"x"===t)&&this.drawXAxis(),this.drawSeries()},n.prototype.drawXAxis=function(){var t,e,i,n,r,a,o,s,l,u,h,c,d,p,f,g,m;for(e=this.options.horizontal?this.getYAxisLabelX():this.getXAxisLabelY(),u=null,l=null,m=[],i=f=0,g=this.data.length;g>=0?g>f:f>g;i=g>=0?++f:--f)h=this.data[this.data.length-1-i],n=this.options.horizontal?this.drawYAxisLabel(e,h._x-.5*this.options.gridTextSize,h.label):this.drawXAxisLabel(h._x,e,h.label),t=this.options.horizontal?0:this.options.xLabelAngle,p=n.getBBox(),n.transform("r"+-t),r=n.getBBox(),n.transform("t0,"+r.height/2+"..."),0!==t&&(s=-.5*p.width*Math.cos(t*Math.PI/180),n.transform("t"+s+",0...")),this.options.horizontal?(d=r.y,c=r.height,o=this.el.height()):(d=r.x,c=r.width,o=this.el.width()),(null==u||u>=d+c||null!=l&&l>=d)&&d>=0&&o>d+c?(0!==t&&(a=1.25*this.options.gridTextSize/Math.sin(t*Math.PI/180),l=d-a),m.push(u=this.options.horizontal?d:d-this.options.xLabelMargin)):m.push(n.remove());return m},n.prototype.getXAxisLabelY=function(){return this.bottom+(this.options.xAxisLabelTopPadding||this.options.padding/2)},n.prototype.drawSeries=function(){var t,e,i,n,r,a,o,s,l,u,h,c,d,p,f,g,m,v;if(i=this.xSize/this.options.data.length,this.options.stacked)l=1;else for(l=0,n=m=0,v=this.options.ykeys.length-1;v>=0?v>=m:m>=v;n=v>=0?++m:--m)this.hasToShow(n)&&(l+=1);return t=(i*this.options.barSizeRatio-this.options.barGap*(l-1))/l,this.options.barSize&&(t=Math.min(t,this.options.barSize)),d=i-t*l-this.options.barGap*(l-1),s=d/2,g=this.ymin<=0&&this.ymax>=0?this.transY(0):null,this.bars=function(){var n,l,d,m;for(d=this.data,m=[],r=n=0,l=d.length;l>n;r=++n)u=d[r],a=0,m.push(function(){var n,l,d,m;for(d=u._y,m=[],h=n=0,l=d.length;l>n;h=++n)f=d[h],this.hasToShow(h)&&(null!==f?(g?(p=Math.min(f,g),e=Math.max(f,g)):(p=f,e=this.bottom),o=this.xStart+r*i+s,this.options.stacked||(o+=h*(t+this.options.barGap)),c=e-p,this.options.verticalGridCondition&&this.options.verticalGridCondition(u.x)&&(this.options.horizontal?this.drawBar(this.yStart,this.xStart+r*i,this.ySize,i,this.options.verticalGridColor,this.options.verticalGridOpacity,this.options.barRadius):this.drawBar(this.xStart+r*i,this.yEnd,i,this.ySize,this.options.verticalGridColor,this.options.verticalGridOpacity,this.options.barRadius)),this.options.stacked&&(p-=a),this.options.horizontal?(this.drawBar(p,o,c,t,this.colorFor(u,h,"bar"),this.options.barOpacity,this.options.barRadius),m.push(a-=c)):(this.drawBar(o,p,t,c,this.colorFor(u,h,"bar"),this.options.barOpacity,this.options.barRadius),m.push(a+=c))):m.push(null));return m}.call(this));return m}.call(this)},n.prototype.colorFor=function(t,e,i){var n,r;return"function"==typeof this.options.barColors?(n={x:t.x,y:t.y[e],label:t.label},r={index:e,key:this.options.ykeys[e],label:this.options.labels[e]},this.options.barColors.call(this,n,r,i)):this.options.barColors[e%this.options.barColors.length]},n.prototype.hitTest=function(t,e){var i;return 0===this.data.length?null:(i=this.options.horizontal?e:t,i=Math.max(Math.min(i,this.xEnd),this.xStart),Math.min(this.data.length-1,Math.floor((i-this.xStart)/(this.xSize/this.data.length))))},n.prototype.onGridClick=function(t,e){var i;return i=this.hitTest(t,e),this.fire("click",i,this.data[i].src,t,e)},n.prototype.onHoverMove=function(t,e){var i,n;return i=this.hitTest(t,e),(n=this.hover).update.apply(n,this.hoverContentForRow(i))},n.prototype.onHoverOut=function(){return this.options.hideHover!==!1?this.hover.hide():void 0},n.prototype.hoverContentForRow=function(e){var i,n,r,a,o,s,l,u;for(r=this.data[e],i=t("<div class='morris-hover-row-label'>").text(r.label),i=i.prop("outerHTML"),u=r.y,n=s=0,l=u.length;l>s;n=++s)o=u[n],this.options.labels[n]!==!1&&(i+="<div class='morris-hover-point' style='color: "+this.colorFor(r,n,"label")+"'>\n "+this.options.labels[n]+":\n "+this.yLabelFormat(o,n)+"\n</div>");return"function"==typeof this.options.hoverCallback&&(i=this.options.hoverCallback(e,this.options,i,r.src)),this.options.horizontal?(a=this.left+.5*this.width,o=this.top+(e+.5)*this.height/this.data.length,[i,a,o,!0]):(a=this.left+(e+.5)*this.width/this.data.length,[i,a])},n.prototype.drawXAxisLabel=function(t,e,i){var n;return n=this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},n.prototype.drawBar=function(t,e,i,n,r,a,o){var s,l;return s=Math.max.apply(Math,o),l=0===s||s>n?this.raphael.rect(t,e,i,n):this.raphael.path(this.roundedRect(t,e,i,n,o)),l.attr("fill",r).attr("fill-opacity",a).attr("stroke","none")},n.prototype.roundedRect=function(t,e,i,n,r){return null==r&&(r=[0,0,0,0]),["M",t,r[0]+e,"Q",t,e,t+r[0],e,"L",t+i-r[1],e,"Q",t+i,e,t+i,e+r[1],"L",t+i,e+n-r[2],"Q",t+i,e+n,t+i-r[2],e+n,"L",t+r[3],e+n,"Q",t,e+n,t,e+n-r[3],"Z"]},n}(e.Grid),e.Donut=function(i){function r(i){this.resizeHandler=o(this.resizeHandler,this),this.select=o(this.select,this),this.click=o(this.click,this);var r=this;if(!(this instanceof e.Donut))return new e.Donut(i);if(this.options=t.extend({},this.defaults,i),this.el=t("string"==typeof i.element?document.getElementById(i.element):i.element),null===this.el||0===this.el.length)throw new Error("Graph placeholder not found.");void 0!==i.data&&0!==i.data.length&&(this.raphael=new n(this.el[0]),this.options.resize&&t(window).bind("resize",function(){return null!=r.timeoutId&&window.clearTimeout(r.timeoutId),r.timeoutId=window.setTimeout(r.resizeHandler,100)}),this.setData(i.data))}return l(r,i),r.prototype.defaults={colors:["#0B62A4","#3980B5","#679DC6","#95BBD7","#B0CCE1","#095791","#095085","#083E67","#052C48","#042135"],backgroundColor:"#FFFFFF",labelColor:"#000000",formatter:e.commas,resize:!1},r.prototype.redraw=function(){var t,i,n,r,a,o,s,l,u,h,c,d,p,f,g,m,v,y,_,b,x,w,M;for(this.raphael.clear(),i=this.el.width()/2,n=this.el.height()/2,p=(Math.min(i,n)-10)/3,c=0,b=this.values,f=0,v=b.length;v>f;f++)d=b[f],c+=d;for(l=5/(2*p),t=1.9999*Math.PI-l*this.data.length,o=0,a=0,this.segments=[],x=this.values,r=g=0,y=x.length;y>g;r=++g)d=x[r],u=o+l+t*(d/c),h=new e.DonutSegment(i,n,2*p,p,o,u,this.data[r].color||this.options.colors[a%this.options.colors.length],this.options.backgroundColor,a,this.raphael),h.render(),this.segments.push(h),h.on("hover",this.select),h.on("click",this.click),o=u,a+=1;for(this.text1=this.drawEmptyDonutLabel(i,n-10,this.options.labelColor,15,800),this.text2=this.drawEmptyDonutLabel(i,n+10,this.options.labelColor,14),s=Math.max.apply(Math,this.values),a=0,w=this.values,M=[],m=0,_=w.length;_>m;m++){if(d=w[m],d===s){this.select(a);break}M.push(a+=1)}return M},r.prototype.setData=function(t){var e;return this.data=t,this.values=function(){var t,i,n,r;for(n=this.data,r=[],t=0,i=n.length;i>t;t++)e=n[t],r.push(parseFloat(e.value));return r}.call(this),this.redraw()},r.prototype.click=function(t){return this.fire("click",t,this.data[t])},r.prototype.select=function(t){var e,i,n,r,a,o;for(o=this.segments,r=0,a=o.length;a>r;r++)i=o[r],i.deselect();return n=this.segments[t],n.select(),e=this.data[t],this.setLabels(e.label,this.options.formatter(e.value,e))},r.prototype.setLabels=function(t,e){var i,n,r,a,o,s,l,u;return i=2*(Math.min(this.el.width()/2,this.el.height()/2)-10)/3,a=1.8*i,r=i/2,n=i/3,this.text1.attr({text:t,transform:""}),o=this.text1.getBBox(),s=Math.min(a/o.width,r/o.height),this.text1.attr({transform:"S"+s+","+s+","+(o.x+o.width/2)+","+(o.y+o.height)}),this.text2.attr({text:e,transform:""}),l=this.text2.getBBox(),u=Math.min(a/l.width,n/l.height),this.text2.attr({transform:"S"+u+","+u+","+(l.x+l.width/2)+","+l.y})},r.prototype.drawEmptyDonutLabel=function(t,e,i,n,r){var a;return a=this.raphael.text(t,e,"").attr("font-size",n).attr("fill",i),null!=r&&a.attr("font-weight",r),a},r.prototype.resizeHandler=function(){return this.timeoutId=null,this.raphael.setSize(this.el.width(),this.el.height()),this.redraw()},r}(e.EventEmitter),e.DonutSegment=function(t){function e(t,e,i,n,r,a,s,l,u,h){this.cx=t,this.cy=e,this.inner=i,this.outer=n,this.color=s,this.backgroundColor=l,this.index=u,this.raphael=h,this.deselect=o(this.deselect,this),this.select=o(this.select,this),this.sin_p0=Math.sin(r),this.cos_p0=Math.cos(r),this.sin_p1=Math.sin(a),this.cos_p1=Math.cos(a),this.is_long=a-r>Math.PI?1:0,this.path=this.calcSegment(this.inner+3,this.inner+this.outer-5),this.selectedPath=this.calcSegment(this.inner+3,this.inner+this.outer),this.hilight=this.calcArc(this.inner)}return l(e,t),e.prototype.calcArcPoints=function(t){return[this.cx+t*this.sin_p0,this.cy+t*this.cos_p0,this.cx+t*this.sin_p1,this.cy+t*this.cos_p1]},e.prototype.calcSegment=function(t,e){var i,n,r,a,o,s,l,u,h,c;return h=this.calcArcPoints(t),i=h[0],r=h[1],n=h[2],a=h[3],c=this.calcArcPoints(e),o=c[0],l=c[1],s=c[2],u=c[3],"M"+i+","+r+("A"+t+","+t+",0,"+this.is_long+",0,"+n+","+a)+("L"+s+","+u)+("A"+e+","+e+",0,"+this.is_long+",1,"+o+","+l)+"Z"},e.prototype.calcArc=function(t){var e,i,n,r,a;return a=this.calcArcPoints(t),e=a[0],n=a[1],i=a[2],r=a[3],"M"+e+","+n+("A"+t+","+t+",0,"+this.is_long+",0,"+i+","+r)},e.prototype.render=function(){var t=this;return this.arc=this.drawDonutArc(this.hilight,this.color),this.seg=this.drawDonutSegment(this.path,this.color,this.backgroundColor,function(){return t.fire("hover",t.index)},function(){return t.fire("click",t.index)})},e.prototype.drawDonutArc=function(t,e){return this.raphael.path(t).attr({stroke:e,"stroke-width":2,opacity:0})},e.prototype.drawDonutSegment=function(t,e,i,n,r){return this.raphael.path(t).attr({fill:e,stroke:i,"stroke-width":3}).hover(n).click(r)},e.prototype.select=function(){return this.selected?void 0:(this.seg.animate({path:this.selectedPath},150,"<>"),this.arc.animate({opacity:1},150,"<>"),this.selected=!0)},e.prototype.deselect=function(){return this.selected?(this.seg.animate({path:this.path},150,"<>"),this.arc.animate({opacity:0},150,"<>"),this.selected=!1):void 0},e}(e.EventEmitter)}).call(this)},function(t,e,i){!function(e,i){t.exports=i()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){var n,r;n=[i(1),i(3),i(4)],r=function(t){return t}.apply(e,n),!(void 0!==r&&(t.exports=r))},function(t,e,i){var n,r;n=[i(2)],r=function(t){function e(i){if(e.is(i,"function"))return _?i():t.on("raphael.DOMload",i);if(e.is(i,G))return e._engine.create[L](e,i.splice(0,3+e.is(i[0],V))).add(i);var n=Array.prototype.slice.call(arguments,0);if(e.is(n[n.length-1],"function")){var r=n.pop();return _?r.call(e._engine.create[L](e,n)):t.on("raphael.DOMload",function(){r.call(e._engine.create[L](e,n))})}return e._engine.create[L](e,arguments)}function i(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[S](n)&&(e[n]=i(t[n]));return e}function n(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return t.push(t.splice(i,1)[0])}function r(t,e,i){function r(){var a=Array.prototype.slice.call(arguments,0),o=a.join("␀"),s=r.cache=r.cache||{},l=r.count=r.count||[];return s[S](o)?(n(l,o),i?i(s[o]):s[o]):(l.length>=1e3&&delete s[l.shift()],l.push(o),s[o]=t[L](e,a),i?i(s[o]):s[o])}return r}function a(){return this.hex}function o(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var a=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4==n?a[3]={x:+t[0],y:+t[1]}:r-2==n&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4==n?a[3]=a[2]:n||(a[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return i}function s(t,e,i,n,r){var a=-3*e+9*i-9*n+3*r,o=t*a+6*e-12*i+6*n;return t*o-3*e+3*i}function l(t,e,i,n,r,a,o,l,u){null==u&&(u=1),u=u>1?1:u<0?0:u;for(var h=u/2,c=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,g=0;g<c;g++){var m=h*d[g]+h,v=s(m,t,i,r,o),y=s(m,e,n,a,l),_=v*v+y*y;f+=p[g]*Y.sqrt(_)}return h*f}function u(t,e,i,n,r,a,o,s,u){if(!(u<0||l(t,e,i,n,r,a,o,s)<u)){var h,c=1,d=c/2,p=c-d,f=.01;for(h=l(t,e,i,n,r,a,o,s,p);W(h-u)>f;)d/=2,p+=(h<u?1:-1)*d,h=l(t,e,i,n,r,a,o,s,p);return p}}function h(t,e,i,n,r,a,o,s){if(!(N(t,i)<F(r,o)||F(t,i)>N(r,o)||N(e,n)<F(a,s)||F(e,n)>N(a,s))){var l=(t*n-e*i)*(r-o)-(t-i)*(r*s-a*o),u=(t*n-e*i)*(a-s)-(e-n)*(r*s-a*o),h=(t-i)*(a-s)-(e-n)*(r-o);if(h){var c=l/h,d=u/h,p=+c.toFixed(2),f=+d.toFixed(2);if(!(p<+F(t,i).toFixed(2)||p>+N(t,i).toFixed(2)||p<+F(r,o).toFixed(2)||p>+N(r,o).toFixed(2)||f<+F(e,n).toFixed(2)||f>+N(e,n).toFixed(2)||f<+F(a,s).toFixed(2)||f>+N(a,s).toFixed(2)))return{x:c,y:d}}}}function c(t,i,n){var r=e.bezierBBox(t),a=e.bezierBBox(i);if(!e.isBBoxIntersect(r,a))return n?0:[];for(var o=l.apply(0,t),s=l.apply(0,i),u=N(~~(o/5),1),c=N(~~(s/5),1),d=[],p=[],f={},g=n?0:[],m=0;m<u+1;m++){var v=e.findDotsAtSegment.apply(e,t.concat(m/u));d.push({x:v.x,y:v.y,t:m/u})}for(m=0;m<c+1;m++)v=e.findDotsAtSegment.apply(e,i.concat(m/c)),p.push({x:v.x,y:v.y,t:m/c});for(m=0;m<u;m++)for(var y=0;y<c;y++){var _=d[m],b=d[m+1],x=p[y],w=p[y+1],M=W(b.x-_.x)<.001?"y":"x",S=W(w.x-x.x)<.001?"y":"x",k=h(_.x,_.y,b.x,b.y,x.x,x.y,w.x,w.y);if(k){if(f[k.x.toFixed(4)]==k.y.toFixed(4))continue;f[k.x.toFixed(4)]=k.y.toFixed(4);var D=_.t+W((k[M]-_[M])/(b[M]-_[M]))*(b.t-_.t),T=x.t+W((k[S]-x[S])/(w[S]-x[S]))*(w.t-x.t);D>=0&&D<=1.001&&T>=0&&T<=1.001&&(n?g++:g.push({x:k.x,y:k.y,t1:F(D,1),t2:F(T,1)}))}}return g}function d(t,i,n){t=e._path2curve(t),i=e._path2curve(i);for(var r,a,o,s,l,u,h,d,p,f,g=n?0:[],m=0,v=t.length;m<v;m++){var y=t[m];if("M"==y[0])r=l=y[1],a=u=y[2];else{"C"==y[0]?(p=[r,a].concat(y.slice(1)),r=p[6],a=p[7]):(p=[r,a,r,a,l,u,l,u],r=l,a=u);for(var _=0,b=i.length;_<b;_++){var x=i[_];if("M"==x[0])o=h=x[1],s=d=x[2];else{"C"==x[0]?(f=[o,s].concat(x.slice(1)),o=f[6],s=f[7]):(f=[o,s,o,s,h,d,h,d],o=h,s=d);var w=c(p,f,n);if(n)g+=w;else{for(var M=0,S=w.length;M<S;M++)w[M].segment1=m,w[M].segment2=_,w[M].bez1=p,w[M].bez2=f;g=g.concat(w)}}}}}return g}function p(t,e,i,n,r,a){null!=t?(this.a=+t,this.b=+e,this.c=+i,this.d=+n,this.e=+r,this.f=+a):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function f(){return this.x+P+this.y+P+this.width+" × "+this.height}function g(t,e,i,n,r,a){function o(t){return((c*t+h)*t+u)*t}function s(t,e){var i=l(t,e);return((f*i+p)*i+d)*i}function l(t,e){var i,n,r,a,s,l;for(r=t,l=0;l<8;l++){if(a=o(r)-t,W(a)<e)return r;if(s=(3*c*r+2*h)*r+u,W(s)<1e-6)break;r-=a/s}if(i=0,n=1,r=t,r<i)return i;if(r>n)return n;for(;i<n;){if(a=o(r),W(a-t)<e)return r;t>a?i=r:n=r,r=(n-i)/2+i}return r}var u=3*e,h=3*(n-e)-u,c=1-u-h,d=3*i,p=3*(r-i)-d,f=1-d-p;return s(t,1/(200*a))}function m(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var r in t)t[S](r)&&(n[J(r)]=t[r],i.push(J(r)));i.sort(ht)}this.anim=n,this.top=i[i.length-1],this.percents=i}function v(i,n,r,a,o,s){r=J(r);var l,u,h,c,d,f,m=i.ms,v={},y={},_={};if(a)for(w=0,M=ae.length;w<M;w++){var b=ae[w];if(b.el.id==n.id&&b.anim==i){b.percent!=r?(ae.splice(w,1),h=1):u=b,n.attr(b.totalOrigin);break}}else a=+y;for(var w=0,M=i.percents.length;w<M;w++){if(i.percents[w]==r||i.percents[w]>a*i.top){r=i.percents[w],d=i.percents[w-1]||0,m=m/i.top*(r-d),c=i.percents[w+1],l=i.anim[r];break}a&&n.attr(i.anim[i.percents[w]])}if(l){if(u)u.initstatus=a,u.start=new Date-u.ms*a;else{for(var k in l)if(l[S](k)&&(it[S](k)||n.paper.customAttributes[S](k)))switch(v[k]=n.attr(k),null==v[k]&&(v[k]=et[k]),y[k]=l[k],it[k]){case V:_[k]=(y[k]-v[k])/m;break;case"colour":v[k]=e.getRGB(v[k]);var D=e.getRGB(y[k]);_[k]={r:(D.r-v[k].r)/m,g:(D.g-v[k].g)/m,b:(D.b-v[k].b)/m};break;case"path":var T=Ot(v[k],y[k]),L=T[1];for(v[k]=T[0],_[k]=[],w=0,M=v[k].length;w<M;w++){_[k][w]=[0];for(var I=1,A=v[k][w].length;I<A;I++)_[k][w][I]=(L[w][I]-v[k][w][I])/m}break;case"transform":var P=n._,R=Nt(P[k],y[k]);if(R)for(v[k]=R.from,y[k]=R.to,_[k]=[],_[k].real=!0,w=0,M=v[k].length;w<M;w++)for(_[k][w]=[v[k][w][0]],I=1,A=v[k][w].length;I<A;I++)_[k][w][I]=(y[k][w][I]-v[k][w][I])/m;else{var H=n.matrix||new p,z={_:{transform:P.transform},getBBox:function(){return n.getBBox(1)}};v[k]=[H.a,H.b,H.c,H.d,H.e,H.f],zt(z,y[k]),y[k]=z._.transform,_[k]=[(z.matrix.a-H.a)/m,(z.matrix.b-H.b)/m,(z.matrix.c-H.c)/m,(z.matrix.d-H.d)/m,(z.matrix.e-H.e)/m,(z.matrix.f-H.f)/m]}break;case"csv":var Y=E(l[k])[O](x),N=E(v[k])[O](x);if("clip-rect"==k)for(v[k]=N,_[k]=[],w=N.length;w--;)_[k][w]=(Y[w]-v[k][w])/m;y[k]=Y;break;default:for(Y=[][C](l[k]),N=[][C](v[k]),_[k]=[],w=n.paper.customAttributes[k].length;w--;)_[k][w]=((Y[w]||0)-(N[w]||0))/m}var F=l.easing,W=e.easing_formulas[F];if(!W)if(W=E(F).match(Z),W&&5==W.length){var B=W;W=function(t){return g(t,+B[1],+B[2],+B[3],+B[4],m)}}else W=ct;if(f=l.start||i.start||+new Date,b={anim:i,percent:r,timestamp:f,start:f+(i.del||0),status:0,initstatus:a||0,stop:!1,ms:m,easing:W,from:v,diff:_,to:y,el:n,callback:l.callback,prev:d,next:c,repeat:s||i.times,origin:n.attr(),totalOrigin:o},ae.push(b),a&&!u&&!h&&(b.stop=!0,b.start=new Date-m*a,1==ae.length))return se();h&&(b.start=new Date-b.ms*a),1==ae.length&&oe(se)}t("raphael.anim.start."+n.id,n,i)}}function y(t){for(var e=0;e<ae.length;e++)ae[e].el.paper==t&&ae.splice(e--,1)}e.version="2.2.0",e.eve=t;var _,b,x=/[, ]+/,w={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},M=/\{(\d+)\}/g,S="hasOwnProperty",k={doc:document,win:window},D={was:Object.prototype[S].call(k.win,"Raphael"),is:k.win.Raphael},T=function(){this.ca=this.customAttributes={}},L="apply",C="concat",I="ontouchstart"in k.win||k.win.DocumentTouch&&k.doc instanceof DocumentTouch,A="",P=" ",E=String,O="split",R="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[O](P),H={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},z=E.prototype.toLowerCase,Y=Math,N=Y.max,F=Y.min,W=Y.abs,B=Y.pow,j=Y.PI,V="number",$="string",G="array",U=Object.prototype.toString,q=(e._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),X={NaN:1,Infinity:1,"-Infinity":1},Z=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,K=Y.round,J=parseFloat,Q=parseInt,tt=E.prototype.toUpperCase,et=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,"class":""},it=e._availableAnimAttrs={blur:V,"clip-rect":"csv",cx:V,cy:V,fill:"colour","fill-opacity":V,"font-size":V,height:V,opacity:V,path:"path",r:V,rx:V,ry:V,stroke:"colour","stroke-opacity":V,"stroke-width":V,transform:"transform",width:V,x:V,y:V},nt=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,rt={hs:1,rg:1},at=/,?([achlmqrstvxz]),?/gi,ot=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,st=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,lt=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,ut=(e._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),ht=function(t,e){return J(t)-J(e)},ct=function(t){return t},dt=e._rectPath=function(t,e,i,n,r){return r?[["M",t+r,e],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]]:[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]]},pt=function(t,e,i,n){return null==n&&(n=i),[["M",t,e],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]]},ft=e._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return pt(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return pt(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return dt(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return dt(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return dt(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return dt(e.x,e.y,e.width,e.height)}},gt=e.mapPath=function(t,e){if(!e)return t;var i,n,r,a,o,s,l;for(t=Ot(t),r=0,o=t.length;r<o;r++)for(l=t[r],a=1,s=l.length;a<s;a+=2)i=e.x(l[a],l[a+1]),n=e.y(l[a],l[a+1]),l[a]=i,l[a+1]=n;return t};if(e._g=k,e.type=k.win.SVGAngle||k.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==e.type){var mt,vt=k.doc.createElement("div");if(vt.innerHTML='<v:shape adj="1"/>',mt=vt.firstChild,mt.style.behavior="url(#default#VML)",!mt||"object"!=typeof mt.adj)return e.type=A;vt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=T,e.fn=b=T.prototype=e.prototype,e._id=0,e.is=function(t,e){return e=z.call(e),"finite"==e?!X[S](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||U.call(t).slice(8,-1).toLowerCase()==e; },e.angle=function(t,i,n,r,a,o){if(null==a){var s=t-n,l=i-r;return s||l?(180+180*Y.atan2(-l,-s)/j+360)%360:0}return e.angle(t,i,a,o)-e.angle(n,r,a,o)},e.rad=function(t){return t%360*j/180},e.deg=function(t){return Math.round(180*t/j%360*1e3)/1e3},e.snapTo=function(t,i,n){if(n=e.is(n,"finite")?n:10,e.is(t,G)){for(var r=t.length;r--;)if(W(t[r]-i)<=n)return t[r]}else{t=+t;var a=i%t;if(a<n)return i-a;if(a>t-n)return i-a+t}return i};e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*Y.random()|0,i="x"==t?e:3&e|8;return i.toString(16)});e.setWindow=function(i){t("raphael.setWindow",e,k.win,i),k.win=i,k.doc=k.win.document,e._engine.initWin&&e._engine.initWin(k.win)};var yt=function(t){if(e.vml){var i,n=/^\s+|\s+$/g;try{var a=new ActiveXObject("htmlfile");a.write("<body>"),a.close(),i=a.body}catch(o){i=createPopup().document.body}var s=i.createTextRange();yt=r(function(t){try{i.style.color=E(t).replace(n,A);var e=s.queryCommandValue("ForeColor");return e=(255&e)<<16|65280&e|(16711680&e)>>>16,"#"+("000000"+e.toString(16)).slice(-6)}catch(r){return"none"}})}else{var l=k.doc.createElement("i");l.title="Raphaël Colour Picker",l.style.display="none",k.doc.body.appendChild(l),yt=r(function(t){return l.style.color=t,k.doc.defaultView.getComputedStyle(l,A).getPropertyValue("color")})}return yt(t)},_t=function(){return"hsb("+[this.h,this.s,this.b]+")"},bt=function(){return"hsl("+[this.h,this.s,this.l]+")"},xt=function(){return this.hex},wt=function(t,i,n){if(null==i&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,i=t.g,t=t.r),null==i&&e.is(t,$)){var r=e.getRGB(t);t=r.r,i=r.g,n=r.b}return(t>1||i>1||n>1)&&(t/=255,i/=255,n/=255),[t,i,n]},Mt=function(t,i,n,r){t*=255,i*=255,n*=255;var a={r:t,g:i,b:n,hex:e.rgb(t,i,n),toString:xt};return e.is(r,"finite")&&(a.opacity=r),a};e.color=function(t){var i;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(i=e.hsb2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(i=e.hsl2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(i=e.rgb2hsl(t),t.h=i.h,t.s=i.s,t.l=i.l,i=e.rgb2hsb(t),t.v=i.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.toString=xt,t},e.hsb2rgb=function(t,e,i,n){this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=t.o,t=t.h),t*=360;var r,a,o,s,l;return t=t%360/60,l=i*e,s=l*(1-W(t%2-1)),r=a=o=i-l,t=~~t,r+=[l,s,0,0,s,l][t],a+=[s,l,l,s,0,0][t],o+=[0,0,s,l,l,s][t],Mt(r,a,o,n)},e.hsl2rgb=function(t,e,i,n){this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),t*=360;var r,a,o,s,l;return t=t%360/60,l=2*e*(i<.5?i:1-i),s=l*(1-W(t%2-1)),r=a=o=i-l/2,t=~~t,r+=[l,s,0,0,s,l][t],a+=[s,l,l,s,0,0][t],o+=[0,0,s,l,l,s][t],Mt(r,a,o,n)},e.rgb2hsb=function(t,e,i){i=wt(t,e,i),t=i[0],e=i[1],i=i[2];var n,r,a,o;return a=N(t,e,i),o=a-F(t,e,i),n=0==o?null:a==t?(e-i)/o:a==e?(i-t)/o+2:(t-e)/o+4,n=(n+360)%6*60/360,r=0==o?0:o/a,{h:n,s:r,b:a,toString:_t}},e.rgb2hsl=function(t,e,i){i=wt(t,e,i),t=i[0],e=i[1],i=i[2];var n,r,a,o,s,l;return o=N(t,e,i),s=F(t,e,i),l=o-s,n=0==l?null:o==t?(e-i)/l:o==e?(i-t)/l+2:(t-e)/l+4,n=(n+360)%6*60/360,a=(o+s)/2,r=0==l?0:a<.5?l/(2*a):l/(2-2*a),{h:n,s:r,l:a,toString:bt}},e._path2string=function(){return this.join(",").replace(at,"$1")};e._preload=function(t,e){var i=k.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,k.doc.body.removeChild(this)},i.onerror=function(){k.doc.body.removeChild(this)},k.doc.body.appendChild(i),i.src=t};e.getRGB=r(function(t){if(!t||(t=E(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:a};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:a};!(rt[S](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=yt(t));var i,n,r,o,s,l,u=t.match(q);return u?(u[2]&&(r=Q(u[2].substring(5),16),n=Q(u[2].substring(3,5),16),i=Q(u[2].substring(1,3),16)),u[3]&&(r=Q((s=u[3].charAt(3))+s,16),n=Q((s=u[3].charAt(2))+s,16),i=Q((s=u[3].charAt(1))+s,16)),u[4]&&(l=u[4][O](nt),i=J(l[0]),"%"==l[0].slice(-1)&&(i*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),"rgba"==u[1].toLowerCase().slice(0,4)&&(o=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100)),u[5]?(l=u[5][O](nt),i=J(l[0]),"%"==l[0].slice(-1)&&(i*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(i/=360),"hsba"==u[1].toLowerCase().slice(0,4)&&(o=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100),e.hsb2rgb(i,n,r,o)):u[6]?(l=u[6][O](nt),i=J(l[0]),"%"==l[0].slice(-1)&&(i*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(i/=360),"hsla"==u[1].toLowerCase().slice(0,4)&&(o=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(o/=100),e.hsl2rgb(i,n,r,o)):(u={r:i,g:n,b:r,toString:a},u.hex="#"+(16777216|r|n<<8|i<<16).toString(16).slice(1),e.is(o,"finite")&&(u.opacity=o),u)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:a}},e),e.hsb=r(function(t,i,n){return e.hsb2rgb(t,i,n).hex}),e.hsl=r(function(t,i,n){return e.hsl2rgb(t,i,n).hex}),e.rgb=r(function(t,e,i){function n(t){return t+.5|0}return"#"+(16777216|n(i)|n(e)<<8|n(t)<<16).toString(16).slice(1)}),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var i=St(t);if(i.arr)return Dt(i.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return e.is(t,G)&&e.is(t[0],G)&&(r=Dt(t)),r.length||E(t).replace(ot,function(t,e,i){var a=[],o=e.toLowerCase();if(i.replace(lt,function(t,e){e&&a.push(+e)}),"m"==o&&a.length>2&&(r.push([e][C](a.splice(0,2))),o="l",e="m"==e?"l":"L"),"r"==o)r.push([e][C](a));else for(;a.length>=n[o]&&(r.push([e][C](a.splice(0,n[o]))),n[o]););}),r.toString=e._path2string,i.arr=Dt(r),r},e.parseTransformString=r(function(t){if(!t)return null;var i=[];return e.is(t,G)&&e.is(t[0],G)&&(i=Dt(t)),i.length||E(t).replace(st,function(t,e,n){var r=[];z.call(e);n.replace(lt,function(t,e){e&&r.push(+e)}),i.push([e][C](r))}),i.toString=e._path2string,i});var St=function(t){var e=St.ps=St.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var i in e)e[S](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])}),e[t]};e.findDotsAtSegment=function(t,e,i,n,r,a,o,s,l){var u=1-l,h=B(u,3),c=B(u,2),d=l*l,p=d*l,f=h*t+3*c*l*i+3*u*l*l*r+p*o,g=h*e+3*c*l*n+3*u*l*l*a+p*s,m=t+2*l*(i-t)+d*(r-2*i+t),v=e+2*l*(n-e)+d*(a-2*n+e),y=i+2*l*(r-i)+d*(o-2*r+i),_=n+2*l*(a-n)+d*(s-2*a+n),b=u*t+l*i,x=u*e+l*n,w=u*r+l*o,M=u*a+l*s,S=90-180*Y.atan2(m-y,v-_)/j;return(m>y||v<_)&&(S+=180),{x:f,y:g,m:{x:m,y:v},n:{x:y,y:_},start:{x:b,y:x},end:{x:w,y:M},alpha:S}},e.bezierBBox=function(t,i,n,r,a,o,s,l){e.is(t,"array")||(t=[t,i,n,r,a,o,s,l]);var u=Et.apply(null,t);return{x:u.min.x,y:u.min.y,x2:u.max.x,y2:u.max.y,width:u.max.x-u.min.x,height:u.max.y-u.min.y}},e.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},e.isBBoxIntersect=function(t,i){var n=e.isPointInsideBBox;return n(i,t.x,t.y)||n(i,t.x2,t.y)||n(i,t.x,t.y2)||n(i,t.x2,t.y2)||n(t,i.x,i.y)||n(t,i.x2,i.y)||n(t,i.x,i.y2)||n(t,i.x2,i.y2)||(t.x<i.x2&&t.x>i.x||i.x<t.x2&&i.x>t.x)&&(t.y<i.y2&&t.y>i.y||i.y<t.y2&&i.y>t.y)},e.pathIntersection=function(t,e){return d(t,e)},e.pathIntersectionNumber=function(t,e){return d(t,e,1)},e.isPointInsidePath=function(t,i,n){var r=e.pathBBox(t);return e.isPointInsideBBox(r,i,n)&&d(t,[["M",i,n],["H",r.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var kt=e.pathBBox=function(t){var e=St(t);if(e.bbox)return i(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};t=Ot(t);for(var n,r=0,a=0,o=[],s=[],l=0,u=t.length;l<u;l++)if(n=t[l],"M"==n[0])r=n[1],a=n[2],o.push(r),s.push(a);else{var h=Et(r,a,n[1],n[2],n[3],n[4],n[5],n[6]);o=o[C](h.min.x,h.max.x),s=s[C](h.min.y,h.max.y),r=n[5],a=n[6]}var c=F[L](0,o),d=F[L](0,s),p=N[L](0,o),f=N[L](0,s),g=p-c,m=f-d,v={x:c,y:d,x2:p,y2:f,width:g,height:m,cx:c+g/2,cy:d+m/2};return e.bbox=i(v),v},Dt=function(t){var n=i(t);return n.toString=e._path2string,n},Tt=e._pathToRelative=function(t){var i=St(t);if(i.rel)return Dt(i.rel);e.is(t,G)&&e.is(t&&t[0],G)||(t=e.parsePathString(t));var n=[],r=0,a=0,o=0,s=0,l=0;"M"==t[0][0]&&(r=t[0][1],a=t[0][2],o=r,s=a,l++,n.push(["M",r,a]));for(var u=l,h=t.length;u<h;u++){var c=n[u]=[],d=t[u];if(d[0]!=z.call(d[0]))switch(c[0]=z.call(d[0]),c[0]){case"a":c[1]=d[1],c[2]=d[2],c[3]=d[3],c[4]=d[4],c[5]=d[5],c[6]=+(d[6]-r).toFixed(3),c[7]=+(d[7]-a).toFixed(3);break;case"v":c[1]=+(d[1]-a).toFixed(3);break;case"m":o=d[1],s=d[2];default:for(var p=1,f=d.length;p<f;p++)c[p]=+(d[p]-(p%2?r:a)).toFixed(3)}else{c=n[u]=[],"m"==d[0]&&(o=d[1]+r,s=d[2]+a);for(var g=0,m=d.length;g<m;g++)n[u][g]=d[g]}var v=n[u].length;switch(n[u][0]){case"z":r=o,a=s;break;case"h":r+=+n[u][v-1];break;case"v":a+=+n[u][v-1];break;default:r+=+n[u][v-2],a+=+n[u][v-1]}}return n.toString=e._path2string,i.rel=Dt(n),n},Lt=e._pathToAbsolute=function(t){var i=St(t);if(i.abs)return Dt(i.abs);if(e.is(t,G)&&e.is(t&&t[0],G)||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var n=[],r=0,a=0,s=0,l=0,u=0;"M"==t[0][0]&&(r=+t[0][1],a=+t[0][2],s=r,l=a,u++,n[0]=["M",r,a]);for(var h,c,d=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),p=u,f=t.length;p<f;p++){if(n.push(h=[]),c=t[p],c[0]!=tt.call(c[0]))switch(h[0]=tt.call(c[0]),h[0]){case"A":h[1]=c[1],h[2]=c[2],h[3]=c[3],h[4]=c[4],h[5]=c[5],h[6]=+(c[6]+r),h[7]=+(c[7]+a);break;case"V":h[1]=+c[1]+a;break;case"H":h[1]=+c[1]+r;break;case"R":for(var g=[r,a][C](c.slice(1)),m=2,v=g.length;m<v;m++)g[m]=+g[m]+r,g[++m]=+g[m]+a;n.pop(),n=n[C](o(g,d));break;case"M":s=+c[1]+r,l=+c[2]+a;default:for(m=1,v=c.length;m<v;m++)h[m]=+c[m]+(m%2?r:a)}else if("R"==c[0])g=[r,a][C](c.slice(1)),n.pop(),n=n[C](o(g,d)),h=["R"][C](c.slice(-2));else for(var y=0,_=c.length;y<_;y++)h[y]=c[y];switch(h[0]){case"Z":r=s,a=l;break;case"H":r=h[1];break;case"V":a=h[1];break;case"M":s=h[h.length-2],l=h[h.length-1];default:r=h[h.length-2],a=h[h.length-1]}}return n.toString=e._path2string,i.abs=Dt(n),n},Ct=function(t,e,i,n){return[t,e,i,n,i,n]},It=function(t,e,i,n,r,a){var o=1/3,s=2/3;return[o*t+s*i,o*e+s*n,o*r+s*i,o*a+s*n,r,a]},At=function(t,e,i,n,a,o,s,l,u,h){var c,d=120*j/180,p=j/180*(+a||0),f=[],g=r(function(t,e,i){var n=t*Y.cos(i)-e*Y.sin(i),r=t*Y.sin(i)+e*Y.cos(i);return{x:n,y:r}});if(h)S=h[0],k=h[1],w=h[2],M=h[3];else{c=g(t,e,-p),t=c.x,e=c.y,c=g(l,u,-p),l=c.x,u=c.y;var m=(Y.cos(j/180*a),Y.sin(j/180*a),(t-l)/2),v=(e-u)/2,y=m*m/(i*i)+v*v/(n*n);y>1&&(y=Y.sqrt(y),i=y*i,n=y*n);var _=i*i,b=n*n,x=(o==s?-1:1)*Y.sqrt(W((_*b-_*v*v-b*m*m)/(_*v*v+b*m*m))),w=x*i*v/n+(t+l)/2,M=x*-n*m/i+(e+u)/2,S=Y.asin(((e-M)/n).toFixed(9)),k=Y.asin(((u-M)/n).toFixed(9));S=t<w?j-S:S,k=l<w?j-k:k,S<0&&(S=2*j+S),k<0&&(k=2*j+k),s&&S>k&&(S-=2*j),!s&&k>S&&(k-=2*j)}var D=k-S;if(W(D)>d){var T=k,L=l,I=u;k=S+d*(s&&k>S?1:-1),l=w+i*Y.cos(k),u=M+n*Y.sin(k),f=At(l,u,i,n,a,0,s,L,I,[k,T,w,M])}D=k-S;var A=Y.cos(S),P=Y.sin(S),E=Y.cos(k),R=Y.sin(k),H=Y.tan(D/4),z=4/3*i*H,N=4/3*n*H,F=[t,e],B=[t+z*P,e-N*A],V=[l+z*R,u-N*E],$=[l,u];if(B[0]=2*F[0]-B[0],B[1]=2*F[1]-B[1],h)return[B,V,$][C](f);f=[B,V,$][C](f).join()[O](",");for(var G=[],U=0,q=f.length;U<q;U++)G[U]=U%2?g(f[U-1],f[U],p).y:g(f[U],f[U+1],p).x;return G},Pt=function(t,e,i,n,r,a,o,s,l){var u=1-l;return{x:B(u,3)*t+3*B(u,2)*l*i+3*u*l*l*r+B(l,3)*o,y:B(u,3)*e+3*B(u,2)*l*n+3*u*l*l*a+B(l,3)*s}},Et=r(function(t,e,i,n,r,a,o,s){var l,u=r-2*i+t-(o-2*r+i),h=2*(i-t)-2*(r-i),c=t-i,d=(-h+Y.sqrt(h*h-4*u*c))/2/u,p=(-h-Y.sqrt(h*h-4*u*c))/2/u,f=[e,s],g=[t,o];return W(d)>"1e12"&&(d=.5),W(p)>"1e12"&&(p=.5),d>0&&d<1&&(l=Pt(t,e,i,n,r,a,o,s,d),g.push(l.x),f.push(l.y)),p>0&&p<1&&(l=Pt(t,e,i,n,r,a,o,s,p),g.push(l.x),f.push(l.y)),u=a-2*n+e-(s-2*a+n),h=2*(n-e)-2*(a-n),c=e-n,d=(-h+Y.sqrt(h*h-4*u*c))/2/u,p=(-h-Y.sqrt(h*h-4*u*c))/2/u,W(d)>"1e12"&&(d=.5),W(p)>"1e12"&&(p=.5),d>0&&d<1&&(l=Pt(t,e,i,n,r,a,o,s,d),g.push(l.x),f.push(l.y)),p>0&&p<1&&(l=Pt(t,e,i,n,r,a,o,s,p),g.push(l.x),f.push(l.y)),{min:{x:F[L](0,g),y:F[L](0,f)},max:{x:N[L](0,g),y:N[L](0,f)}}}),Ot=e._path2curve=r(function(t,e){var i=!e&&St(t);if(!e&&i.curve)return Dt(i.curve);for(var n=Lt(t),r=e&&Lt(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=(function(t,e,i){var n,r,a={T:1,Q:1};if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in a)&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][C](At[L](0,[e.x,e.y][C](t.slice(1))));break;case"S":"C"==i||"S"==i?(n=2*e.x-e.bx,r=2*e.y-e.by):(n=e.x,r=e.y),t=["C",n,r][C](t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][C](It(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][C](It(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][C](Ct(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][C](Ct(e.x,e.y,t[1],e.y));break;case"V":t=["C"][C](Ct(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][C](Ct(e.x,e.y,e.X,e.Y))}return t}),l=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)h[e]="A",r&&(c[e]="A"),t.splice(e++,0,["C"][C](i.splice(0,6)));t.splice(e,1),g=N(n.length,r&&r.length||0)}},u=function(t,e,i,a,o){t&&e&&"M"==t[o][0]&&"M"!=e[o][0]&&(e.splice(o,0,["M",a.x,a.y]),i.bx=0,i.by=0,i.x=t[o][1],i.y=t[o][2],g=N(n.length,r&&r.length||0))},h=[],c=[],d="",p="",f=0,g=N(n.length,r&&r.length||0);f<g;f++){n[f]&&(d=n[f][0]),"C"!=d&&(h[f]=d,f&&(p=h[f-1])),n[f]=s(n[f],a,p),"A"!=h[f]&&"C"==d&&(h[f]="C"),l(n,f),r&&(r[f]&&(d=r[f][0]),"C"!=d&&(c[f]=d,f&&(p=c[f-1])),r[f]=s(r[f],o,p),"A"!=c[f]&&"C"==d&&(c[f]="C"),l(r,f)),u(n,r,a,o,f),u(r,n,o,a,f);var m=n[f],v=r&&r[f],y=m.length,_=r&&v.length;a.x=m[y-2],a.y=m[y-1],a.bx=J(m[y-4])||a.x,a.by=J(m[y-3])||a.y,o.bx=r&&(J(v[_-4])||o.x),o.by=r&&(J(v[_-3])||o.y),o.x=r&&v[_-2],o.y=r&&v[_-1]}return r||(i.curve=Dt(n)),r?[n,r]:n},null,Dt),Rt=(e._parseDots=r(function(t){for(var i=[],n=0,r=t.length;n<r;n++){var a={},o=t[n].match(/^([^:]*):?([\d\.]*)/);if(a.color=e.getRGB(o[1]),a.color.error)return null;a.opacity=a.color.opacity,a.color=a.color.hex,o[2]&&(a.offset=o[2]+"%"),i.push(a)}for(n=1,r=i.length-1;n<r;n++)if(!i[n].offset){for(var s=J(i[n-1].offset||0),l=0,u=n+1;u<r;u++)if(i[u].offset){l=i[u].offset;break}l||(l=100,u=r),l=J(l);for(var h=(l-s)/(u-n+1);n<u;n++)s+=h,i[n].offset=s+"%"}return i}),e._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),Ht=(e._tofront=function(t,e){e.top!==t&&(Rt(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},e._toback=function(t,e){e.bottom!==t&&(Rt(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},e._insertafter=function(t,e,i){Rt(t,i),e==i.top&&(i.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},e._insertbefore=function(t,e,i){Rt(t,i),e==i.bottom&&(i.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},e.toMatrix=function(t,e){var i=kt(t),n={_:{transform:A},getBBox:function(){return i}};return zt(n,e),n.matrix}),zt=(e.transformPath=function(t,e){return gt(t,Ht(t,e))},e._extractTransform=function(t,i){if(null==i)return t._.transform;i=E(i).replace(/\.{3}|\u2026/g,t._.transform||A);var n=e.parseTransformString(i),r=0,a=0,o=0,s=1,l=1,u=t._,h=new p;if(u.transform=n||[],n)for(var c=0,d=n.length;c<d;c++){var f,g,m,v,y,_=n[c],b=_.length,x=E(_[0]).toLowerCase(),w=_[0]!=x,M=w?h.invert():0;"t"==x&&3==b?w?(f=M.x(0,0),g=M.y(0,0),m=M.x(_[1],_[2]),v=M.y(_[1],_[2]),h.translate(m-f,v-g)):h.translate(_[1],_[2]):"r"==x?2==b?(y=y||t.getBBox(1),h.rotate(_[1],y.x+y.width/2,y.y+y.height/2),r+=_[1]):4==b&&(w?(m=M.x(_[2],_[3]),v=M.y(_[2],_[3]),h.rotate(_[1],m,v)):h.rotate(_[1],_[2],_[3]),r+=_[1]):"s"==x?2==b||3==b?(y=y||t.getBBox(1),h.scale(_[1],_[b-1],y.x+y.width/2,y.y+y.height/2),s*=_[1],l*=_[b-1]):5==b&&(w?(m=M.x(_[3],_[4]),v=M.y(_[3],_[4]),h.scale(_[1],_[2],m,v)):h.scale(_[1],_[2],_[3],_[4]),s*=_[1],l*=_[2]):"m"==x&&7==b&&h.add(_[1],_[2],_[3],_[4],_[5],_[6]),u.dirtyT=1,t.matrix=h}t.matrix=h,u.sx=s,u.sy=l,u.deg=r,u.dx=a=h.e,u.dy=o=h.f,1==s&&1==l&&!r&&u.bbox?(u.bbox.x+=+a,u.bbox.y+=+o):u.dirtyT=1}),Yt=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},Nt=e._equaliseTransform=function(t,i){i=E(i).replace(/\.{3}|\u2026/g,t),t=e.parseTransformString(t)||[],i=e.parseTransformString(i)||[];for(var n,r,a,o,s=N(t.length,i.length),l=[],u=[],h=0;h<s;h++){if(a=t[h]||Yt(i[h]),o=i[h]||Yt(a),a[0]!=o[0]||"r"==a[0].toLowerCase()&&(a[2]!=o[2]||a[3]!=o[3])||"s"==a[0].toLowerCase()&&(a[3]!=o[3]||a[4]!=o[4]))return;for(l[h]=[],u[h]=[],n=0,r=N(a.length,o.length);n<r;n++)n in a&&(l[h][n]=a[n]),n in o&&(u[h][n]=o[n])}return{from:l,to:u}};e._getContainer=function(t,i,n,r){var a;if(a=null!=r||e.is(t,"object")?t:k.doc.getElementById(t),null!=a)return a.tagName?null==i?{container:a,width:a.style.pixelWidth||a.offsetWidth,height:a.style.pixelHeight||a.offsetHeight}:{container:a,width:i,height:n}:{container:1,x:t,y:i,width:n,height:r}},e.pathToRelative=Tt,e._engine={},e.path2curve=Ot,e.matrix=function(t,e,i,n,r,a){return new p(t,e,i,n,r,a)},function(t){function i(t){return t[0]*t[0]+t[1]*t[1]}function n(t){var e=Y.sqrt(i(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}t.add=function(t,e,i,n,r,a){var o,s,l,u,h=[[],[],[]],c=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],d=[[t,i,r],[e,n,a],[0,0,1]];for(t&&t instanceof p&&(d=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),o=0;o<3;o++)for(s=0;s<3;s++){for(u=0,l=0;l<3;l++)u+=c[o][l]*d[l][s];h[o][s]=u}this.a=h[0][0],this.b=h[1][0],this.c=h[0][1],this.d=h[1][1],this.e=h[0][2],this.f=h[1][2]},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new p(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new p(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,i,n){null==e&&(e=t),(i||n)&&this.add(1,0,0,1,i,n),this.add(t,0,0,e,0,0),(i||n)&&this.add(1,0,0,1,-i,-n)},t.rotate=function(t,i,n){t=e.rad(t),i=i||0,n=n||0;var r=+Y.cos(t).toFixed(9),a=+Y.sin(t).toFixed(9);this.add(r,a,-a,r,i,n),this.add(1,0,0,1,-i,-n)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[E.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return e.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var r=[[this.a,this.c],[this.b,this.d]];t.scalex=Y.sqrt(i(r[0])),n(r[0]),t.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*t.shear,r[1][1]-r[0][1]*t.shear],t.scaley=Y.sqrt(i(r[1])),n(r[1]),t.shear/=t.scaley;var a=-r[0][1],o=r[1][1];return o<0?(t.rotate=e.deg(Y.acos(o)),a<0&&(t.rotate=360-t.rotate)):t.rotate=e.deg(Y.asin(a)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){var e=t||this[O]();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:A)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:A)+(e.rotate?"r"+[e.rotate,0,0]:A)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(p.prototype);for(var Ft=function(){this.returnValue=!1},Wt=function(){return this.originalEvent.preventDefault()},Bt=function(){this.cancelBubble=!0},jt=function(){return this.originalEvent.stopPropagation()},Vt=function(t){var e=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,i=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;return{x:t.clientX+i,y:t.clientY+e}},$t=function(){return k.doc.addEventListener?function(t,e,i,n){var r=function(t){var e=Vt(t);return i.call(n,t,e.x,e.y)};if(t.addEventListener(e,r,!1),I&&H[e]){var a=function(e){for(var r=Vt(e),a=e,o=0,s=e.targetTouches&&e.targetTouches.length;o<s;o++)if(e.targetTouches[o].target==t){e=e.targetTouches[o],e.originalEvent=a,e.preventDefault=Wt,e.stopPropagation=jt;break}return i.call(n,e,r.x,r.y)};t.addEventListener(H[e],a,!1)}return function(){return t.removeEventListener(e,r,!1),I&&H[e]&&t.removeEventListener(H[e],a,!1),!0}}:k.doc.attachEvent?function(t,e,i,n){var r=function(t){t=t||k.win.event;var e=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,r=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,a=t.clientX+r,o=t.clientY+e;return t.preventDefault=t.preventDefault||Ft,t.stopPropagation=t.stopPropagation||Bt,i.call(n,t,a,o)};t.attachEvent("on"+e,r);var a=function(){return t.detachEvent("on"+e,r),!0};return a}:void 0}(),Gt=[],Ut=function(e){for(var i,n=e.clientX,r=e.clientY,a=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,o=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,s=Gt.length;s--;){if(i=Gt[s],I&&e.touches){for(var l,u=e.touches.length;u--;)if(l=e.touches[u],l.identifier==i.el._drag.id){n=l.clientX,r=l.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var h,c=i.el.node,d=c.nextSibling,p=c.parentNode,f=c.style.display;k.win.opera&&p.removeChild(c),c.style.display="none",h=i.el.paper.getElementByPoint(n,r),c.style.display=f,k.win.opera&&(d?p.insertBefore(c,d):p.appendChild(c)),h&&t("raphael.drag.over."+i.el.id,i.el,h),n+=o,r+=a,t("raphael.drag.move."+i.el.id,i.move_scope||i.el,n-i.el._drag.x,r-i.el._drag.y,n,r,e)}},qt=function(i){e.unmousemove(Ut).unmouseup(qt);for(var n,r=Gt.length;r--;)n=Gt[r],n.el._drag={},t("raphael.drag.end."+n.el.id,n.end_scope||n.start_scope||n.move_scope||n.el,i);Gt=[]},Xt=e.el={},Zt=R.length;Zt--;)!function(t){e[t]=Xt[t]=function(i,n){return e.is(i,"function")&&(this.events=this.events||[],this.events.push({name:t,f:i,unbind:$t(this.shape||this.node||k.doc,t,i,n||this)})),this},e["un"+t]=Xt["un"+t]=function(i){for(var n=this.events||[],r=n.length;r--;)n[r].name!=t||!e.is(i,"undefined")&&n[r].f!=i||(n[r].unbind(),n.splice(r,1),!n.length&&delete this.events);return this}}(R[Zt]);Xt.data=function(i,n){var r=ut[this.id]=ut[this.id]||{};if(0==arguments.length)return r;if(1==arguments.length){if(e.is(i,"object")){for(var a in i)i[S](a)&&this.data(a,i[a]);return this}return t("raphael.data.get."+this.id,this,r[i],i),r[i]}return r[i]=n,t("raphael.data.set."+this.id,this,n,i),this},Xt.removeData=function(t){return null==t?ut[this.id]={}:ut[this.id]&&delete ut[this.id][t],this},Xt.getData=function(){return i(ut[this.id]||{})},Xt.hover=function(t,e,i,n){return this.mouseover(t,i).mouseout(e,n||i)},Xt.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var Kt=[];Xt.drag=function(i,n,r,a,o,s){function l(l){(l.originalEvent||l).preventDefault();var u=l.clientX,h=l.clientY,c=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,d=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;if(this._drag.id=l.identifier,I&&l.touches)for(var p,f=l.touches.length;f--;)if(p=l.touches[f],this._drag.id=p.identifier,p.identifier==this._drag.id){u=p.clientX,h=p.clientY;break}this._drag.x=u+d,this._drag.y=h+c,!Gt.length&&e.mousemove(Ut).mouseup(qt),Gt.push({el:this,move_scope:a,start_scope:o,end_scope:s}),n&&t.on("raphael.drag.start."+this.id,n),i&&t.on("raphael.drag.move."+this.id,i),r&&t.on("raphael.drag.end."+this.id,r),t("raphael.drag.start."+this.id,o||a||this,l.clientX+d,l.clientY+c,l)}return this._drag={},Kt.push({el:this,start:l}),this.mousedown(l),this},Xt.onDragOver=function(e){e?t.on("raphael.drag.over."+this.id,e):t.unbind("raphael.drag.over."+this.id)},Xt.undrag=function(){for(var i=Kt.length;i--;)Kt[i].el==this&&(this.unmousedown(Kt[i].start),Kt.splice(i,1),t.unbind("raphael.drag.*."+this.id));!Kt.length&&e.unmousemove(Ut).unmouseup(qt),Gt=[]},b.circle=function(t,i,n){var r=e._engine.circle(this,t||0,i||0,n||0);return this.__set__&&this.__set__.push(r),r},b.rect=function(t,i,n,r,a){var o=e._engine.rect(this,t||0,i||0,n||0,r||0,a||0);return this.__set__&&this.__set__.push(o),o},b.ellipse=function(t,i,n,r){var a=e._engine.ellipse(this,t||0,i||0,n||0,r||0);return this.__set__&&this.__set__.push(a),a},b.path=function(t){t&&!e.is(t,$)&&!e.is(t[0],G)&&(t+=A);var i=e._engine.path(e.format[L](e,arguments),this);return this.__set__&&this.__set__.push(i),i},b.image=function(t,i,n,r,a){var o=e._engine.image(this,t||"about:blank",i||0,n||0,r||0,a||0);return this.__set__&&this.__set__.push(o),o},b.text=function(t,i,n){var r=e._engine.text(this,t||0,i||0,E(n));return this.__set__&&this.__set__.push(r),r},b.set=function(t){!e.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var i=new ue(t);return this.__set__&&this.__set__.push(i),i.paper=this,i.type="set",i},b.setStart=function(t){this.__set__=t||this.set()},b.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},b.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},b.setSize=function(t,i){return e._engine.setSize.call(this,t,i)},b.setViewBox=function(t,i,n,r,a){return e._engine.setViewBox.call(this,t,i,n,r,a)},b.top=b.bottom=null,b.raphael=e;var Jt=function(t){var e=t.getBoundingClientRect(),i=t.ownerDocument,n=i.body,r=i.documentElement,a=r.clientTop||n.clientTop||0,o=r.clientLeft||n.clientLeft||0,s=e.top+(k.win.pageYOffset||r.scrollTop||n.scrollTop)-a,l=e.left+(k.win.pageXOffset||r.scrollLeft||n.scrollLeft)-o;return{y:s,x:l}};b.getElementByPoint=function(t,e){var i=this,n=i.canvas,r=k.doc.elementFromPoint(t,e);if(k.win.opera&&"svg"==r.tagName){var a=Jt(n),o=n.createSVGRect();o.x=t-a.x,o.y=e-a.y,o.width=o.height=1;var s=n.getIntersectionList(o,null);s.length&&(r=s[s.length-1])}if(!r)return null;for(;r.parentNode&&r!=n.parentNode&&!r.raphael;)r=r.parentNode;return r==i.canvas.parentNode&&(r=n),r=r&&r.raphael?i.getById(r.raphaelid):null},b.getElementsByBBox=function(t){var i=this.set();return this.forEach(function(n){e.isBBoxIntersect(n.getBBox(),t)&&i.push(n)}),i},b.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},b.forEach=function(t,e){for(var i=this.bottom;i;){if(t.call(e,i)===!1)return this;i=i.next}return this},b.getElementsByPoint=function(t,e){var i=this.set();return this.forEach(function(n){n.isPointInside(t,e)&&i.push(n)}),i},Xt.isPointInside=function(t,i){var n=this.realPath=ft[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=e.transformPath(n,this.attr("transform"))),e.isPointInsidePath(n,t,i)},Xt.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=ft[this.type](this),e.bboxwt=kt(this.realPath),e.bboxwt.toString=f,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=ft[this.type](this)),e.bbox=kt(gt(this.realPath,this.matrix)),e.bbox.toString=f,e.dirty=e.dirtyT=0),e.bbox)},Xt.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},Xt.glow=function(t){if("text"==this.type)return null;t=t||{};var e={width:(t.width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:null==t.opacity?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},i=e.width/2,n=this.paper,r=n.set(),a=this.realPath||ft[this.type](this);a=this.matrix?gt(a,this.matrix):a;for(var o=1;o<i+1;o++)r.push(n.path(a).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/i*o).toFixed(3),opacity:+(e.opacity/i).toFixed(3)}));return r.insertBefore(this).translate(e.offsetx,e.offsety)};var Qt=function(t,i,n,r,a,o,s,h,c){return null==c?l(t,i,n,r,a,o,s,h):e.findDotsAtSegment(t,i,n,r,a,o,s,h,u(t,i,n,r,a,o,s,h,c))},te=function(t,i){return function(n,r,a){n=Ot(n);for(var o,s,l,u,h,c="",d={},p=0,f=0,g=n.length;f<g;f++){if(l=n[f],"M"==l[0])o=+l[1],s=+l[2];else{if(u=Qt(o,s,l[1],l[2],l[3],l[4],l[5],l[6]),p+u>r){if(i&&!d.start){if(h=Qt(o,s,l[1],l[2],l[3],l[4],l[5],l[6],r-p),c+=["C"+h.start.x,h.start.y,h.m.x,h.m.y,h.x,h.y],a)return c;d.start=c,c=["M"+h.x,h.y+"C"+h.n.x,h.n.y,h.end.x,h.end.y,l[5],l[6]].join(),p+=u,o=+l[5],s=+l[6];continue}if(!t&&!i)return h=Qt(o,s,l[1],l[2],l[3],l[4],l[5],l[6],r-p),{x:h.x,y:h.y,alpha:h.alpha}}p+=u,o=+l[5],s=+l[6]}c+=l.shift()+l}return d.end=c,h=t?p:i?d:e.findDotsAtSegment(o,s,l[0],l[1],l[2],l[3],l[4],l[5],1),h.alpha&&(h={x:h.x,y:h.y,alpha:h.alpha}),h}},ee=te(1),ie=te(),ne=te(0,1);e.getTotalLength=ee,e.getPointAtLength=ie,e.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return ne(t,e).end;var n=ne(t,i,1);return e?ne(n,e).end:n},Xt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():ee(t)},Xt.getPointAtLength=function(t){var e=this.getPath();if(e)return ie(e,t)},Xt.getPath=function(){var t,i=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return i&&(t=i(this)),t},Xt.getSubpath=function(t,i){var n=this.getPath();if(n)return e.getSubpath(n,t,i)};var re=e.easing_formulas={linear:function(t){return t},"<":function(t){return B(t,1.7)},">":function(t){return B(t,.48)},"<>":function(t){var e=.48-t/1.04,i=Y.sqrt(.1734+e*e),n=i-e,r=B(W(n),1/3)*(n<0?-1:1),a=-i-e,o=B(W(a),1/3)*(a<0?-1:1),s=r+o+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:B(2,-10*t)*Y.sin((t-.075)*(2*j)/.3)+1},bounce:function(t){var e,i=7.5625,n=2.75;return t<1/n?e=i*t*t:t<2/n?(t-=1.5/n,e=i*t*t+.75):t<2.5/n?(t-=2.25/n,e=i*t*t+.9375):(t-=2.625/n,e=i*t*t+.984375),e}};re.easeIn=re["ease-in"]=re["<"],re.easeOut=re["ease-out"]=re[">"],re.easeInOut=re["ease-in-out"]=re["<>"],re["back-in"]=re.backIn,re["back-out"]=re.backOut;var ae=[],oe=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},se=function(){for(var i=+new Date,n=0;n<ae.length;n++){var r=ae[n];if(!r.el.removed&&!r.paused){var a,o,s=i-r.start,l=r.ms,u=r.easing,h=r.from,c=r.diff,d=r.to,p=(r.t,r.el),f={},g={};if(r.initstatus?(s=(r.initstatus*r.anim.top-r.prev)/(r.percent-r.prev)*l,r.status=r.initstatus,delete r.initstatus,r.stop&&ae.splice(n--,1)):r.status=(r.prev+(r.percent-r.prev)*(s/l))/r.anim.top,!(s<0))if(s<l){var m=u(s/l);for(var y in h)if(h[S](y)){switch(it[y]){case V:a=+h[y]+m*l*c[y];break;case"colour":a="rgb("+[le(K(h[y].r+m*l*c[y].r)),le(K(h[y].g+m*l*c[y].g)),le(K(h[y].b+m*l*c[y].b))].join(",")+")";break;case"path":a=[];for(var _=0,b=h[y].length;_<b;_++){a[_]=[h[y][_][0]];for(var x=1,w=h[y][_].length;x<w;x++)a[_][x]=+h[y][_][x]+m*l*c[y][_][x];a[_]=a[_].join(P)}a=a.join(P);break;case"transform":if(c[y].real)for(a=[],_=0,b=h[y].length;_<b;_++)for(a[_]=[h[y][_][0]],x=1,w=h[y][_].length;x<w;x++)a[_][x]=h[y][_][x]+m*l*c[y][_][x];else{var M=function(t){return+h[y][t]+m*l*c[y][t]};a=[["m",M(0),M(1),M(2),M(3),M(4),M(5)]]}break;case"csv":if("clip-rect"==y)for(a=[],_=4;_--;)a[_]=+h[y][_]+m*l*c[y][_];break;default:var k=[][C](h[y]);for(a=[],_=p.paper.customAttributes[y].length;_--;)a[_]=+k[_]+m*l*c[y][_]; }f[y]=a}p.attr(f),function(e,i,n){setTimeout(function(){t("raphael.anim.frame."+e,i,n)})}(p.id,p,r.anim)}else{if(function(i,n,r){setTimeout(function(){t("raphael.anim.frame."+n.id,n,r),t("raphael.anim.finish."+n.id,n,r),e.is(i,"function")&&i.call(n)})}(r.callback,p,r.anim),p.attr(d),ae.splice(n--,1),r.repeat>1&&!r.next){for(o in d)d[S](o)&&(g[o]=r.totalOrigin[o]);r.el.attr(g),v(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&v(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}ae.length&&oe(se)},le=function(t){return t>255?255:t<0?0:t};Xt.animateWith=function(t,i,n,r,a,o){var s=this;if(s.removed)return o&&o.call(s),s;var l=n instanceof m?n:e.animation(n,r,a,o);v(l,s,l.percents[0],null,s.attr());for(var u=0,h=ae.length;u<h;u++)if(ae[u].anim==i&&ae[u].el==t){ae[h-1].start=ae[u].start;break}return s},Xt.onAnimation=function(e){return e?t.on("raphael.anim.frame."+this.id,e):t.unbind("raphael.anim.frame."+this.id),this},m.prototype.delay=function(t){var e=new m(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},m.prototype.repeat=function(t){var e=new m(this.anim,this.ms);return e.del=this.del,e.times=Y.floor(N(t,0))||1,e},e.animation=function(t,i,n,r){if(t instanceof m)return t;!e.is(n,"function")&&n||(r=r||n||null,n=null),t=Object(t),i=+i||0;var a,o,s={};for(o in t)t[S](o)&&J(o)!=o&&J(o)+"%"!=o&&(a=!0,s[o]=t[o]);if(a)return n&&(s.easing=n),r&&(s.callback=r),new m({100:s},i);if(r){var l=0;for(var u in t){var h=Q(u);t[S](u)&&h>l&&(l=h)}l+="%",!t[l].callback&&(t[l].callback=r)}return new m(t,i)},Xt.animate=function(t,i,n,r){var a=this;if(a.removed)return r&&r.call(a),a;var o=t instanceof m?t:e.animation(t,i,n,r);return v(o,a,o.percents[0],null,a.attr()),a},Xt.setTime=function(t,e){return t&&null!=e&&this.status(t,F(e,t.ms)/t.ms),this},Xt.status=function(t,e){var i,n,r=[],a=0;if(null!=e)return v(t,this,-1,F(e,1)),this;for(i=ae.length;a<i;a++)if(n=ae[a],n.el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;r.push({anim:n.anim,status:n.status})}return t?0:r},Xt.pause=function(e){for(var i=0;i<ae.length;i++)ae[i].el.id!=this.id||e&&ae[i].anim!=e||t("raphael.anim.pause."+this.id,this,ae[i].anim)!==!1&&(ae[i].paused=!0);return this},Xt.resume=function(e){for(var i=0;i<ae.length;i++)if(ae[i].el.id==this.id&&(!e||ae[i].anim==e)){var n=ae[i];t("raphael.anim.resume."+this.id,this,n.anim)!==!1&&(delete n.paused,this.status(n.anim,n.status))}return this},Xt.stop=function(e){for(var i=0;i<ae.length;i++)ae[i].el.id!=this.id||e&&ae[i].anim!=e||t("raphael.anim.stop."+this.id,this,ae[i].anim)!==!1&&ae.splice(i--,1);return this},t.on("raphael.remove",y),t.on("raphael.clear",y),Xt.toString=function(){return"Raphaël’s object"};var ue=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,i=t.length;e<i;e++)!t[e]||t[e].constructor!=Xt.constructor&&t[e].constructor!=ue||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},he=ue.prototype;he.push=function(){for(var t,e,i=0,n=arguments.length;i<n;i++)t=arguments[i],!t||t.constructor!=Xt.constructor&&t.constructor!=ue||(e=this.items.length,this[e]=this.items[e]=t,this.length++);return this},he.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},he.forEach=function(t,e){for(var i=0,n=this.items.length;i<n;i++)if(t.call(e,this.items[i],i)===!1)return this;return this};for(var ce in Xt)Xt[S](ce)&&(he[ce]=function(t){return function(){var e=arguments;return this.forEach(function(i){i[t][L](i,e)})}}(ce));return he.attr=function(t,i){if(t&&e.is(t,G)&&e.is(t[0],"object"))for(var n=0,r=t.length;n<r;n++)this.items[n].attr(t[n]);else for(var a=0,o=this.items.length;a<o;a++)this.items[a].attr(t,i);return this},he.clear=function(){for(;this.length;)this.pop()},he.splice=function(t,e,i){t=t<0?N(this.length+t,0):t,e=N(0,F(this.length-t,e));var n,r=[],a=[],o=[];for(n=2;n<arguments.length;n++)o.push(arguments[n]);for(n=0;n<e;n++)a.push(this[t+n]);for(;n<this.length-t;n++)r.push(this[t+n]);var s=o.length;for(n=0;n<s+r.length;n++)this.items[t+n]=this[t+n]=n<s?o[n]:r[n-s];for(n=this.items.length=this.length-=e-s;this[n];)delete this[n++];return new ue(a)},he.exclude=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]==t)return this.splice(e,1),!0},he.animate=function(t,i,n,r){(e.is(n,"function")||!n)&&(r=n||null);var a,o,s=this.items.length,l=s,u=this;if(!s)return this;r&&(o=function(){!--s&&r.call(u)}),n=e.is(n,$)?n:o;var h=e.animation(t,i,n,o);for(a=this.items[--l].animate(h);l--;)this.items[l]&&!this.items[l].removed&&this.items[l].animateWith(a,h,h),this.items[l]&&!this.items[l].removed||s--;return this},he.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},he.getBBox=function(){for(var t=[],e=[],i=[],n=[],r=this.items.length;r--;)if(!this.items[r].removed){var a=this.items[r].getBBox();t.push(a.x),e.push(a.y),i.push(a.x+a.width),n.push(a.y+a.height)}return t=F[L](0,t),e=F[L](0,e),i=N[L](0,i),n=N[L](0,n),{x:t,y:e,x2:i,y2:n,width:i-t,height:n-e}},he.clone=function(t){t=this.paper.set();for(var e=0,i=this.items.length;e<i;e++)t.push(this.items[e].clone());return t},he.toString=function(){return"Raphaël‘s set"},he.glow=function(t){var e=this.paper.set();return this.forEach(function(i,n){var r=i.glow(t);null!=r&&r.forEach(function(t,i){e.push(t)})}),e},he.isPointInside=function(t,e){var i=!1;return this.forEach(function(n){if(n.isPointInside(t,e))return i=!0,!1}),i},e.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},i=t.face["font-family"];for(var n in t.face)t.face[S](n)&&(e.face[n]=t.face[n]);if(this.fonts[i]?this.fonts[i].push(e):this.fonts[i]=[e],!t.svg){e.face["units-per-em"]=Q(t.face["units-per-em"],10);for(var r in t.glyphs)if(t.glyphs[S](r)){var a=t.glyphs[r];if(e.glyphs[r]={w:a.w,k:{},d:a.d&&"M"+a.d.replace(/[mlcxtrv]/g,function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"})+"z"},a.k)for(var o in a.k)a[S](o)&&(e.glyphs[r].k[o]=a.k[o])}}return t},b.getFont=function(t,i,n,r){if(r=r||"normal",n=n||"normal",i=+i||{normal:400,bold:700,lighter:300,bolder:800}[i]||400,e.fonts){var a=e.fonts[t];if(!a){var o=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,A)+"(\\s|$)","i");for(var s in e.fonts)if(e.fonts[S](s)&&o.test(s)){a=e.fonts[s];break}}var l;if(a)for(var u=0,h=a.length;u<h&&(l=a[u],l.face["font-weight"]!=i||l.face["font-style"]!=n&&l.face["font-style"]||l.face["font-stretch"]!=r);u++);return l}},b.print=function(t,i,n,r,a,o,s,l){o=o||"middle",s=N(F(s||0,1),-1),l=N(F(l||1,3),1);var u,h=E(n)[O](A),c=0,d=0,p=A;if(e.is(r,"string")&&(r=this.getFont(r)),r){u=(a||16)/r.face["units-per-em"];for(var f=r.face.bbox[O](x),g=+f[0],m=f[3]-f[1],v=0,y=+f[1]+("baseline"==o?m+ +r.face.descent:m/2),_=0,b=h.length;_<b;_++){if("\n"==h[_])c=0,M=0,d=0,v+=m*l;else{var w=d&&r.glyphs[h[_-1]]||{},M=r.glyphs[h[_]];c+=d?(w.w||r.w)+(w.k&&w.k[h[_]]||0)+r.w*s:0,d=1}M&&M.d&&(p+=e.transformPath(M.d,["t",c*u,v*u,"s",u,u,g,y,"t",(t-g)/u,(i-y)/u]))}}return this.path(p).attr({fill:"#000",stroke:"none"})},b.add=function(t){if(e.is(t,"array"))for(var i,n=this.set(),r=0,a=t.length;r<a;r++)i=t[r]||{},w[S](i.type)&&n.push(this[i.type]().attr(i));return n},e.format=function(t,i){var n=e.is(i,G)?[0][C](i):arguments;return t&&e.is(t,$)&&n.length-1&&(t=t.replace(M,function(t,e){return null==n[++e]?A:n[e]})),t||A},e.fullfill=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(t,i,n){var r=n;return i.replace(e,function(t,e,i,n,a){e=e||n,r&&(e in r&&(r=r[e]),"function"==typeof r&&a&&(r=r()))}),r=(null==r||r==n?t:r)+""};return function(e,n){return String(e).replace(t,function(t,e){return i(t,e,n)})}}(),e.ninja=function(){if(D.was)k.win.Raphael=D.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(t){}}return e},e.st=he,t.on("raphael.DOMload",function(){_=!0}),function(t,i,n){function r(){/in/.test(t.readyState)?setTimeout(r,9):e.eve("raphael.DOMload")}null==t.readyState&&t.addEventListener&&(t.addEventListener(i,n=function(){t.removeEventListener(i,n,!1),t.readyState="complete"},!1),t.readyState="loading"),r()}(document,"DOMContentLoaded"),e}.apply(e,n),!(void 0!==r&&(t.exports=r))},function(t,e,i){var n,r;!function(i){var a,o,s="0.5.0",l="hasOwnProperty",u=/[\.\/]/,h=/\s*,\s*/,c="*",d=function(t,e){return t-e},p={n:{}},f=function(){for(var t=0,e=this.length;t<e;t++)if("undefined"!=typeof this[t])return this[t]},g=function(){for(var t=this.length;--t;)if("undefined"!=typeof this[t])return this[t]},m=Object.prototype.toString,v=String,y=Array.isArray||function(t){return t instanceof Array||"[object Array]"==m.call(t)};eve=function(t,e){var i,n=o,r=Array.prototype.slice.call(arguments,2),s=eve.listeners(t),l=0,u=[],h={},c=[],p=a;c.firstDefined=f,c.lastDefined=g,a=t,o=0;for(var m=0,v=s.length;m<v;m++)"zIndex"in s[m]&&(u.push(s[m].zIndex),s[m].zIndex<0&&(h[s[m].zIndex]=s[m]));for(u.sort(d);u[l]<0;)if(i=h[u[l++]],c.push(i.apply(e,r)),o)return o=n,c;for(m=0;m<v;m++)if(i=s[m],"zIndex"in i)if(i.zIndex==u[l]){if(c.push(i.apply(e,r)),o)break;do if(l++,i=h[u[l]],i&&c.push(i.apply(e,r)),o)break;while(i)}else h[i.zIndex]=i;else if(c.push(i.apply(e,r)),o)break;return o=n,a=p,c},eve._events=p,eve.listeners=function(t){var e,i,n,r,a,o,s,l,h=y(t)?t:t.split(u),d=p,f=[d],g=[];for(r=0,a=h.length;r<a;r++){for(l=[],o=0,s=f.length;o<s;o++)for(d=f[o].n,i=[d[h[r]],d[c]],n=2;n--;)e=i[n],e&&(l.push(e),g=g.concat(e.f||[]));f=l}return g},eve.separator=function(t){t?(t=v(t).replace(/(?=[\.\^\]\[\-])/g,"\\"),t="["+t+"]",u=new RegExp(t)):u=/[\.\/]/},eve.on=function(t,e){if("function"!=typeof e)return function(){};for(var i=y(t)?y(t[0])?t:[t]:v(t).split(h),n=0,r=i.length;n<r;n++)!function(t){for(var i,n=y(t)?t:v(t).split(u),r=p,a=0,o=n.length;a<o;a++)r=r.n,r=r.hasOwnProperty(n[a])&&r[n[a]]||(r[n[a]]={n:{}});for(r.f=r.f||[],a=0,o=r.f.length;a<o;a++)if(r.f[a]==e){i=!0;break}!i&&r.f.push(e)}(i[n]);return function(t){+t==+t&&(e.zIndex=+t)}},eve.f=function(t){var e=[].slice.call(arguments,1);return function(){eve.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},eve.stop=function(){o=1},eve.nt=function(t){var e=y(a)?a.join("."):a;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},eve.nts=function(){return y(a)?a:a.split(u)},eve.off=eve.unbind=function(t,e){if(!t)return void(eve._events=p={n:{}});var i=y(t)?y(t[0])?t:[t]:v(t).split(h);if(i.length>1)for(var n=0,r=i.length;n<r;n++)eve.off(i[n],e);else{i=y(t)?t:v(t).split(u);var a,o,s,n,r,d,f,g=[p];for(n=0,r=i.length;n<r;n++)for(d=0;d<g.length;d+=s.length-2){if(s=[d,1],a=g[d].n,i[n]!=c)a[i[n]]&&s.push(a[i[n]]);else for(o in a)a[l](o)&&s.push(a[o]);g.splice.apply(g,s)}for(n=0,r=g.length;n<r;n++)for(a=g[n];a.n;){if(e){if(a.f){for(d=0,f=a.f.length;d<f;d++)if(a.f[d]==e){a.f.splice(d,1);break}!a.f.length&&delete a.f}for(o in a.n)if(a.n[l](o)&&a.n[o].f){var m=a.n[o].f;for(d=0,f=m.length;d<f;d++)if(m[d]==e){m.splice(d,1);break}!m.length&&delete a.n[o].f}}else{delete a.f;for(o in a.n)a.n[l](o)&&a.n[o].f&&delete a.n[o].f}a=a.n}}},eve.once=function(t,e){var i=function(){return eve.off(t,i),e.apply(this,arguments)};return eve.on(t,i)},eve.version=s,eve.toString=function(){return"You are running Eve "+s},"undefined"!=typeof t&&t.exports?t.exports=eve:(n=[],r=function(){return eve}.apply(e,n),!(void 0!==r&&(t.exports=r)))}(this)},function(t,e,i){var n,r;n=[i(1)],r=function(t){if(!t||t.svg){var e="hasOwnProperty",i=String,n=parseFloat,r=parseInt,a=Math,o=a.max,s=a.abs,l=a.pow,u=/[, ]+/,h=t.eve,c="",d=" ",p="http://www.w3.org/1999/xlink",f={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},g={};t.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var m=function(n,r){if(r){"string"==typeof n&&(n=m(n));for(var a in r)r[e](a)&&("xlink:"==a.substring(0,6)?n.setAttributeNS(p,a.substring(6),i(r[a])):n.setAttribute(a,i(r[a])))}else n=t._g.doc.createElementNS("http://www.w3.org/2000/svg",n),n.style&&(n.style.webkitTapHighlightColor="rgba(0,0,0,0)");return n},v=function(e,r){var u="linear",h=e.id+r,d=.5,p=.5,f=e.node,g=e.paper,v=f.style,y=t._g.doc.getElementById(h);if(!y){if(r=i(r).replace(t._radial_gradient,function(t,e,i){if(u="radial",e&&i){d=n(e),p=n(i);var r=2*(p>.5)-1;l(d-.5,2)+l(p-.5,2)>.25&&(p=a.sqrt(.25-l(d-.5,2))*r+.5)&&.5!=p&&(p=p.toFixed(5)-1e-5*r)}return c}),r=r.split(/\s*\-\s*/),"linear"==u){var b=r.shift();if(b=-n(b),isNaN(b))return null;var x=[0,0,a.cos(t.rad(b)),a.sin(t.rad(b))],w=1/(o(s(x[2]),s(x[3]))||1);x[2]*=w,x[3]*=w,x[2]<0&&(x[0]=-x[2],x[2]=0),x[3]<0&&(x[1]=-x[3],x[3]=0)}var M=t._parseDots(r);if(!M)return null;if(h=h.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&h!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){y=m(u+"Gradient",{id:h}),e.gradient=y,m(y,"radial"==u?{fx:d,fy:p}:{x1:x[0],y1:x[1],x2:x[2],y2:x[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(y);for(var S=0,k=M.length;S<k;S++)y.appendChild(m("stop",{offset:M[S].offset?M[S].offset:S?"100%":"0%","stop-color":M[S].color||"#fff","stop-opacity":isFinite(M[S].opacity)?M[S].opacity:1}))}}return m(f,{fill:_(h),opacity:1,"fill-opacity":1}),v.fill=c,v.opacity=1,v.fillOpacity=1,1},y=function(){var t=document.documentMode;return t&&(9===t||10===t)},_=function(t){if(y())return"url('#"+t+"')";var e=document.location,i=e.protocol+"//"+e.host+e.pathname+e.search;return"url('"+i+"#"+t+"')"},b=function(t){var e=t.getBBox(1);m(t.pattern,{patternTransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},x=function(n,r,a){if("path"==n.type){for(var o,s,l,u,h,d=i(r).toLowerCase().split("-"),p=n.paper,v=a?"end":"start",y=n.node,_=n.attrs,b=_["stroke-width"],x=d.length,w="classic",M=3,S=3,k=5;x--;)switch(d[x]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":w=d[x];break;case"wide":S=5;break;case"narrow":S=2;break;case"long":M=5;break;case"short":M=2}if("open"==w?(M+=2,S+=2,k+=2,l=1,u=a?4:1,h={fill:"none",stroke:_.stroke}):(u=l=M/2,h={fill:_.stroke,stroke:"none"}),n._.arrows?a?(n._.arrows.endPath&&g[n._.arrows.endPath]--,n._.arrows.endMarker&&g[n._.arrows.endMarker]--):(n._.arrows.startPath&&g[n._.arrows.startPath]--,n._.arrows.startMarker&&g[n._.arrows.startMarker]--):n._.arrows={},"none"!=w){var D="raphael-marker-"+w,T="raphael-marker-"+v+w+M+S+"-obj"+n.id;t._g.doc.getElementById(D)?g[D]++:(p.defs.appendChild(m(m("path"),{"stroke-linecap":"round",d:f[w],id:D})),g[D]=1);var L,C=t._g.doc.getElementById(T);C?(g[T]++,L=C.getElementsByTagName("use")[0]):(C=m(m("marker"),{id:T,markerHeight:S,markerWidth:M,orient:"auto",refX:u,refY:S/2}),L=m(m("use"),{"xlink:href":"#"+D,transform:(a?"rotate(180 "+M/2+" "+S/2+") ":c)+"scale("+M/k+","+S/k+")","stroke-width":(1/((M/k+S/k)/2)).toFixed(4)}),C.appendChild(L),p.defs.appendChild(C),g[T]=1),m(L,h);var I=l*("diamond"!=w&&"oval"!=w);a?(o=n._.arrows.startdx*b||0,s=t.getTotalLength(_.path)-I*b):(o=I*b,s=t.getTotalLength(_.path)-(n._.arrows.enddx*b||0)),h={},h["marker-"+v]="url(#"+T+")",(s||o)&&(h.d=t.getSubpath(_.path,o,s)),m(y,h),n._.arrows[v+"Path"]=D,n._.arrows[v+"Marker"]=T,n._.arrows[v+"dx"]=I,n._.arrows[v+"Type"]=w,n._.arrows[v+"String"]=r}else a?(o=n._.arrows.startdx*b||0,s=t.getTotalLength(_.path)-o):(o=0,s=t.getTotalLength(_.path)-(n._.arrows.enddx*b||0)),n._.arrows[v+"Path"]&&m(y,{d:t.getSubpath(_.path,o,s)}),delete n._.arrows[v+"Path"],delete n._.arrows[v+"Marker"],delete n._.arrows[v+"dx"],delete n._.arrows[v+"Type"],delete n._.arrows[v+"String"];for(h in g)if(g[e](h)&&!g[h]){var A=t._g.doc.getElementById(h);A&&A.parentNode.removeChild(A)}}},w={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},M=function(t,e,n){if(e=w[i(e).toLowerCase()]){for(var r=t.attrs["stroke-width"]||"1",a={round:r,square:r,butt:0}[t.attrs["stroke-linecap"]||n["stroke-linecap"]]||0,o=[],s=e.length;s--;)o[s]=e[s]*r+(s%2?1:-1)*a;m(t.node,{"stroke-dasharray":o.join(",")})}else m(t.node,{"stroke-dasharray":"none"})},S=function(n,a){var l=n.node,h=n.attrs,d=l.style.visibility;l.style.visibility="hidden";for(var f in a)if(a[e](f)){if(!t._availableAttrs[e](f))continue;var g=a[f];switch(h[f]=g,f){case"blur":n.blur(g);break;case"title":var y=l.getElementsByTagName("title");if(y.length&&(y=y[0]))y.firstChild.nodeValue=g;else{y=m("title");var _=t._g.doc.createTextNode(g);y.appendChild(_),l.appendChild(y)}break;case"href":case"target":var w=l.parentNode;if("a"!=w.tagName.toLowerCase()){var S=m("a");w.insertBefore(S,l),S.appendChild(l),w=S}"target"==f?w.setAttributeNS(p,"show","blank"==g?"new":g):w.setAttributeNS(p,f,g);break;case"cursor":l.style.cursor=g;break;case"transform":n.transform(g);break;case"arrow-start":x(n,g);break;case"arrow-end":x(n,g,1);break;case"clip-rect":var k=i(g).split(u);if(4==k.length){n.clip&&n.clip.parentNode.parentNode.removeChild(n.clip.parentNode);var T=m("clipPath"),L=m("rect");T.id=t.createUUID(),m(L,{x:k[0],y:k[1],width:k[2],height:k[3]}),T.appendChild(L),n.paper.defs.appendChild(T),m(l,{"clip-path":"url(#"+T.id+")"}),n.clip=L}if(!g){var C=l.getAttribute("clip-path");if(C){var I=t._g.doc.getElementById(C.replace(/(^url\(#|\)$)/g,c));I&&I.parentNode.removeChild(I),m(l,{"clip-path":c}),delete n.clip}}break;case"path":"path"==n.type&&(m(l,{d:g?h.path=t._pathToAbsolute(g):"M0,0"}),n._.dirty=1,n._.arrows&&("startString"in n._.arrows&&x(n,n._.arrows.startString),"endString"in n._.arrows&&x(n,n._.arrows.endString,1)));break;case"width":if(l.setAttribute(f,g),n._.dirty=1,!h.fx)break;f="x",g=h.x;case"x":h.fx&&(g=-h.x-(h.width||0));case"rx":if("rx"==f&&"rect"==n.type)break;case"cx":l.setAttribute(f,g),n.pattern&&b(n),n._.dirty=1;break;case"height":if(l.setAttribute(f,g),n._.dirty=1,!h.fy)break;f="y",g=h.y;case"y":h.fy&&(g=-h.y-(h.height||0));case"ry":if("ry"==f&&"rect"==n.type)break;case"cy":l.setAttribute(f,g),n.pattern&&b(n),n._.dirty=1;break;case"r":"rect"==n.type?m(l,{rx:g,ry:g}):l.setAttribute(f,g),n._.dirty=1;break;case"src":"image"==n.type&&l.setAttributeNS(p,"href",g);break;case"stroke-width":1==n._.sx&&1==n._.sy||(g/=o(s(n._.sx),s(n._.sy))||1),l.setAttribute(f,g),h["stroke-dasharray"]&&M(n,h["stroke-dasharray"],a),n._.arrows&&("startString"in n._.arrows&&x(n,n._.arrows.startString),"endString"in n._.arrows&&x(n,n._.arrows.endString,1));break;case"stroke-dasharray":M(n,g,a);break;case"fill":var A=i(g).match(t._ISURL);if(A){T=m("pattern");var P=m("image");T.id=t.createUUID(),m(T,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),m(P,{x:0,y:0,"xlink:href":A[1]}),T.appendChild(P),function(e){t._preload(A[1],function(){var t=this.offsetWidth,i=this.offsetHeight;m(e,{width:t,height:i}),m(P,{width:t,height:i})})}(T),n.paper.defs.appendChild(T),m(l,{fill:"url(#"+T.id+")"}),n.pattern=T,n.pattern&&b(n);break}var E=t.getRGB(g);if(E.error){if(("circle"==n.type||"ellipse"==n.type||"r"!=i(g).charAt())&&v(n,g)){if("opacity"in h||"fill-opacity"in h){var O=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,c));if(O){var R=O.getElementsByTagName("stop");m(R[R.length-1],{"stop-opacity":("opacity"in h?h.opacity:1)*("fill-opacity"in h?h["fill-opacity"]:1)})}}h.gradient=g,h.fill="none";break}}else delete a.gradient,delete h.gradient,!t.is(h.opacity,"undefined")&&t.is(a.opacity,"undefined")&&m(l,{opacity:h.opacity}),!t.is(h["fill-opacity"],"undefined")&&t.is(a["fill-opacity"],"undefined")&&m(l,{"fill-opacity":h["fill-opacity"]});E[e]("opacity")&&m(l,{"fill-opacity":E.opacity>1?E.opacity/100:E.opacity});case"stroke":E=t.getRGB(g),l.setAttribute(f,E.hex),"stroke"==f&&E[e]("opacity")&&m(l,{"stroke-opacity":E.opacity>1?E.opacity/100:E.opacity}),"stroke"==f&&n._.arrows&&("startString"in n._.arrows&&x(n,n._.arrows.startString),"endString"in n._.arrows&&x(n,n._.arrows.endString,1));break;case"gradient":("circle"==n.type||"ellipse"==n.type||"r"!=i(g).charAt())&&v(n,g);break;case"opacity":h.gradient&&!h[e]("stroke-opacity")&&m(l,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(h.gradient){O=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,c)),O&&(R=O.getElementsByTagName("stop"),m(R[R.length-1],{"stop-opacity":g}));break}default:"font-size"==f&&(g=r(g,10)+"px");var H=f.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});l.style[H]=g,n._.dirty=1,l.setAttribute(f,g)}}D(n,a),l.style.visibility=d},k=1.2,D=function(n,a){if("text"==n.type&&(a[e]("text")||a[e]("font")||a[e]("font-size")||a[e]("x")||a[e]("y"))){var o=n.attrs,s=n.node,l=s.firstChild?r(t._g.doc.defaultView.getComputedStyle(s.firstChild,c).getPropertyValue("font-size"),10):10;if(a[e]("text")){for(o.text=a.text;s.firstChild;)s.removeChild(s.firstChild);for(var u,h=i(a.text).split("\n"),d=[],p=0,f=h.length;p<f;p++)u=m("tspan"),p&&m(u,{dy:l*k,x:o.x}),u.appendChild(t._g.doc.createTextNode(h[p])),s.appendChild(u),d[p]=u}else for(d=s.getElementsByTagName("tspan"),p=0,f=d.length;p<f;p++)p?m(d[p],{dy:l*k,x:o.x}):m(d[0],{dy:0});m(s,{x:o.x,y:o.y}),n._.dirty=1;var g=n._getBBox(),v=o.y-(g.y+g.height/2);v&&t.is(v,"finite")&&m(d[0],{dy:v})}},T=function(t){return t.parentNode&&"a"===t.parentNode.tagName.toLowerCase()?t.parentNode:t},L=function(e,i){function n(){return("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5)}this[0]=this.node=e,e.raphael=!0,this.id=n(),e.raphaelid=this.id,this.matrix=t.matrix(),this.realPath=null,this.paper=i,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!i.bottom&&(i.bottom=this),this.prev=i.top,i.top&&(i.top.next=this),i.top=this,this.next=null},C=t.el;L.prototype=C,C.constructor=L,t._engine.path=function(t,e){var i=m("path");e.canvas&&e.canvas.appendChild(i);var n=new L(i,e);return n.type="path",S(n,{fill:"none",stroke:"#000",path:t}),n},C.rotate=function(t,e,r){if(this.removed)return this;if(t=i(t).split(u),t.length-1&&(e=n(t[1]),r=n(t[2])),t=n(t[0]),null==r&&(e=r),null==e||null==r){var a=this.getBBox(1);e=a.x+a.width/2,r=a.y+a.height/2}return this.transform(this._.transform.concat([["r",t,e,r]])),this},C.scale=function(t,e,r,a){if(this.removed)return this;if(t=i(t).split(u),t.length-1&&(e=n(t[1]),r=n(t[2]),a=n(t[3])),t=n(t[0]),null==e&&(e=t),null==a&&(r=a),null==r||null==a)var o=this.getBBox(1);return r=null==r?o.x+o.width/2:r,a=null==a?o.y+o.height/2:a,this.transform(this._.transform.concat([["s",t,e,r,a]])),this},C.translate=function(t,e){return this.removed?this:(t=i(t).split(u),t.length-1&&(e=n(t[1])),t=n(t[0])||0,e=+e||0,this.transform(this._.transform.concat([["t",t,e]])),this)},C.transform=function(i){var n=this._;if(null==i)return n.transform;if(t._extractTransform(this,i),this.clip&&m(this.clip,{transform:this.matrix.invert()}),this.pattern&&b(this),this.node&&m(this.node,{transform:this.matrix}),1!=n.sx||1!=n.sy){var r=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":r})}return this},C.hide=function(){return this.removed||(this.node.style.display="none"),this},C.show=function(){return this.removed||(this.node.style.display=""),this},C.remove=function(){var e=T(this.node);if(!this.removed&&e.parentNode){var i=this.paper;i.__set__&&i.__set__.exclude(this),h.unbind("raphael.*.*."+this.id),this.gradient&&i.defs.removeChild(this.gradient),t._tear(this,i),e.parentNode.removeChild(e),this.removeData();for(var n in this)this[n]="function"==typeof this[n]?t._removedFactory(n):null;this.removed=!0}},C._getBBox=function(){if("none"==this.node.style.display){this.show();var t=!0}var e,i=!1;this.paper.canvas.parentElement?e=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(e=this.paper.canvas.parentNode.style),e&&"none"==e.display&&(i=!0,e.display="");var n={};try{n=this.node.getBBox()}catch(r){n={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{n=n||{},i&&(e.display="none")}return t&&this.hide(),n},C.attr=function(i,n){if(this.removed)return this;if(null==i){var r={};for(var a in this.attrs)this.attrs[e](a)&&(r[a]=this.attrs[a]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&t.is(i,"string")){if("fill"==i&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==i)return this._.transform;for(var o=i.split(u),s={},l=0,c=o.length;l<c;l++)i=o[l],i in this.attrs?s[i]=this.attrs[i]:t.is(this.paper.customAttributes[i],"function")?s[i]=this.paper.customAttributes[i].def:s[i]=t._availableAttrs[i];return c-1?s:s[o[0]]}if(null==n&&t.is(i,"array")){for(s={},l=0,c=i.length;l<c;l++)s[i[l]]=this.attr(i[l]);return s}if(null!=n){var d={};d[i]=n}else null!=i&&t.is(i,"object")&&(d=i);for(var p in d)h("raphael.attr."+p+"."+this.id,this,d[p]);for(p in this.paper.customAttributes)if(this.paper.customAttributes[e](p)&&d[e](p)&&t.is(this.paper.customAttributes[p],"function")){var f=this.paper.customAttributes[p].apply(this,[].concat(d[p]));this.attrs[p]=d[p];for(var g in f)f[e](g)&&(d[g]=f[g])}return S(this,d),this},C.toFront=function(){if(this.removed)return this;var e=T(this.node);e.parentNode.appendChild(e);var i=this.paper;return i.top!=this&&t._tofront(this,i),this},C.toBack=function(){if(this.removed)return this;var e=T(this.node),i=e.parentNode;i.insertBefore(e,i.firstChild),t._toback(this,this.paper);this.paper;return this},C.insertAfter=function(e){if(this.removed||!e)return this;var i=T(this.node),n=T(e.node||e[e.length-1].node);return n.nextSibling?n.parentNode.insertBefore(i,n.nextSibling):n.parentNode.appendChild(i),t._insertafter(this,e,this.paper),this},C.insertBefore=function(e){if(this.removed||!e)return this;var i=T(this.node),n=T(e.node||e[0].node);return n.parentNode.insertBefore(i,n),t._insertbefore(this,e,this.paper),this},C.blur=function(e){var i=this;if(0!==+e){var n=m("filter"),r=m("feGaussianBlur");i.attrs.blur=e,n.id=t.createUUID(),m(r,{stdDeviation:+e||1.5}),n.appendChild(r),i.paper.defs.appendChild(n),i._blur=n,m(i.node,{filter:"url(#"+n.id+")"})}else i._blur&&(i._blur.parentNode.removeChild(i._blur),delete i._blur,delete i.attrs.blur),i.node.removeAttribute("filter");return i},t._engine.circle=function(t,e,i,n){var r=m("circle");t.canvas&&t.canvas.appendChild(r);var a=new L(r,t);return a.attrs={cx:e,cy:i,r:n,fill:"none",stroke:"#000"},a.type="circle",m(r,a.attrs),a},t._engine.rect=function(t,e,i,n,r,a){var o=m("rect");t.canvas&&t.canvas.appendChild(o);var s=new L(o,t);return s.attrs={x:e,y:i,width:n,height:r,rx:a||0,ry:a||0,fill:"none",stroke:"#000"},s.type="rect",m(o,s.attrs),s},t._engine.ellipse=function(t,e,i,n,r){var a=m("ellipse");t.canvas&&t.canvas.appendChild(a);var o=new L(a,t);return o.attrs={cx:e,cy:i,rx:n,ry:r,fill:"none",stroke:"#000"},o.type="ellipse",m(a,o.attrs),o},t._engine.image=function(t,e,i,n,r,a){var o=m("image");m(o,{x:i,y:n,width:r,height:a,preserveAspectRatio:"none"}),o.setAttributeNS(p,"href",e),t.canvas&&t.canvas.appendChild(o);var s=new L(o,t);return s.attrs={x:i,y:n,width:r,height:a,src:e},s.type="image",s},t._engine.text=function(e,i,n,r){var a=m("text");e.canvas&&e.canvas.appendChild(a);var o=new L(a,e);return o.attrs={x:i,y:n,"text-anchor":"middle",text:r,"font-family":t._availableAttrs["font-family"],"font-size":t._availableAttrs["font-size"],stroke:"none",fill:"#000"},o.type="text",S(o,o.attrs),o},t._engine.setSize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e&&e.container,n=e.x,r=e.y,a=e.width,o=e.height;if(!i)throw new Error("SVG container not found.");var s,l=m("svg"),u="overflow:hidden;";return n=n||0,r=r||0,a=a||512,o=o||342,m(l,{height:o,version:1.1,width:a,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==i?(l.style.cssText=u+"position:absolute;left:"+n+"px;top:"+r+"px",t._g.doc.body.appendChild(l),s=1):(l.style.cssText=u+"position:relative",i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l)),i=new t._Paper,i.width=a,i.height=o,i.canvas=l,i.clear(),i._left=i._top=0,s&&(i.renderfix=function(){}),i.renderfix(),i},t._engine.setViewBox=function(t,e,i,n,r){h("raphael.setViewBox",this,this._viewBox,[t,e,i,n,r]);var a,s,l=this.getSize(),u=o(i/l.width,n/l.height),c=this.top,p=r?"xMidYMid meet":"xMinYMin";for(null==t?(this._vbSize&&(u=1),delete this._vbSize,a="0 0 "+this.width+d+this.height):(this._vbSize=u,a=t+d+e+d+i+d+n),m(this.canvas,{viewBox:a,preserveAspectRatio:p});u&&c;)s="stroke-width"in c.attrs?c.attrs["stroke-width"]:1,c.attr({"stroke-width":s}),c._.dirty=1,c._.dirtyT=1,c=c.prev;return this._viewBox=[t,e,i,n,!!r],this},t.prototype.renderfix=function(){var t,e=this.canvas,i=e.style;try{t=e.getScreenCTM()||e.createSVGMatrix()}catch(n){t=e.createSVGMatrix()}var r=-t.e%1,a=-t.f%1;(r||a)&&(r&&(this._left=(this._left+r)%1,i.left=this._left+"px"),a&&(this._top=(this._top+a)%1,i.top=this._top+"px"))},t.prototype.clear=function(){t.eve("raphael.clear",this);for(var e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,(this.desc=m("desc")).appendChild(t._g.doc.createTextNode("Created with Raphaël "+t.version)),e.appendChild(this.desc),e.appendChild(this.defs=m("defs"))},t.prototype.remove=function(){h("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null};var I=t.st;for(var A in C)C[e](A)&&!I[e](A)&&(I[A]=function(t){return function(){var e=arguments;return this.forEach(function(i){i[t].apply(i,e)})}}(A))}}.apply(e,n),!(void 0!==r&&(t.exports=r))},function(t,e,i){var n,r;n=[i(1)],r=function(t){if(!t||t.vml){var e="hasOwnProperty",i=String,n=parseFloat,r=Math,a=r.round,o=r.max,s=r.min,l=r.abs,u="fill",h=/[, ]+/,c=t.eve,d=" progid:DXImageTransform.Microsoft",p=" ",f="",g={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},m=/([clmz]),?([^clmz]*)/gi,v=/ progid:\S+Blur\([^\)]+\)/g,y=/-?[^,\s-]+/g,_="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",b=21600,x={path:1,rect:1,image:1},w={circle:1,ellipse:1},M=function(e){var n=/[ahqstv]/gi,r=t._pathToAbsolute;if(i(e).match(n)&&(r=t._path2curve),n=/[clmz]/g,r==t._pathToAbsolute&&!i(e).match(n)){var o=i(e).replace(m,function(t,e,i){var n=[],r="m"==e.toLowerCase(),o=g[e];return i.replace(y,function(t){r&&2==n.length&&(o+=n+g["m"==e?"l":"L"],n=[]),n.push(a(t*b))}),o+n});return o}var s,l,u=r(e);o=[];for(var h=0,c=u.length;h<c;h++){s=u[h],l=u[h][0].toLowerCase(),"z"==l&&(l="x");for(var d=1,v=s.length;d<v;d++)l+=a(s[d]*b)+(d!=v-1?",":f);o.push(l)}return o.join(p)},S=function(e,i,n){var r=t.matrix();return r.rotate(-e,.5,.5),{dx:r.x(i,n),dy:r.y(i,n)}},k=function(t,e,i,n,r,a){var o=t._,s=t.matrix,h=o.fillpos,c=t.node,d=c.style,f=1,g="",m=b/e,v=b/i;if(d.visibility="hidden",e&&i){if(c.coordsize=l(m)+p+l(v),d.rotation=a*(e*i<0?-1:1),a){var y=S(a,n,r);n=y.dx,r=y.dy}if(e<0&&(g+="x"),i<0&&(g+=" y")&&(f=-1),d.flip=g,c.coordorigin=n*-m+p+r*-v,h||o.fillsize){var _=c.getElementsByTagName(u);_=_&&_[0],c.removeChild(_),h&&(y=S(a,s.x(h[0],h[1]),s.y(h[0],h[1])),_.position=y.dx*f+p+y.dy*f),o.fillsize&&(_.size=o.fillsize[0]*l(e)+p+o.fillsize[1]*l(i)),c.appendChild(_)}d.visibility="visible"}};t.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var D=function(t,e,n){for(var r=i(e).toLowerCase().split("-"),a=n?"end":"start",o=r.length,s="classic",l="medium",u="medium";o--;)switch(r[o]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=r[o];break;case"wide":case"narrow":u=r[o];break;case"long":case"short":l=r[o]}var h=t.node.getElementsByTagName("stroke")[0];h[a+"arrow"]=s,h[a+"arrowlength"]=l,h[a+"arrowwidth"]=u},T=function(r,l){r.attrs=r.attrs||{};var c=r.node,d=r.attrs,g=c.style,m=x[r.type]&&(l.x!=d.x||l.y!=d.y||l.width!=d.width||l.height!=d.height||l.cx!=d.cx||l.cy!=d.cy||l.rx!=d.rx||l.ry!=d.ry||l.r!=d.r),v=w[r.type]&&(d.cx!=l.cx||d.cy!=l.cy||d.r!=l.r||d.rx!=l.rx||d.ry!=l.ry),y=r; for(var _ in l)l[e](_)&&(d[_]=l[_]);if(m&&(d.path=t._getPath[r.type](r),r._.dirty=1),l.href&&(c.href=l.href),l.title&&(c.title=l.title),l.target&&(c.target=l.target),l.cursor&&(g.cursor=l.cursor),"blur"in l&&r.blur(l.blur),(l.path&&"path"==r.type||m)&&(c.path=M(~i(d.path).toLowerCase().indexOf("r")?t._pathToAbsolute(d.path):d.path),r._.dirty=1,"image"==r.type&&(r._.fillpos=[d.x,d.y],r._.fillsize=[d.width,d.height],k(r,1,1,0,0,0))),"transform"in l&&r.transform(l.transform),v){var S=+d.cx,T=+d.cy,C=+d.rx||+d.r||0,I=+d.ry||+d.r||0;c.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",a((S-C)*b),a((T-I)*b),a((S+C)*b),a((T+I)*b),a(S*b)),r._.dirty=1}if("clip-rect"in l){var P=i(l["clip-rect"]).split(h);if(4==P.length){P[2]=+P[2]+ +P[0],P[3]=+P[3]+ +P[1];var E=c.clipRect||t._g.doc.createElement("div"),O=E.style;O.clip=t.format("rect({1}px {2}px {3}px {0}px)",P),c.clipRect||(O.position="absolute",O.top=0,O.left=0,O.width=r.paper.width+"px",O.height=r.paper.height+"px",c.parentNode.insertBefore(E,c),E.appendChild(c),c.clipRect=E)}l["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(r.textpath){var R=r.textpath.style;l.font&&(R.font=l.font),l["font-family"]&&(R.fontFamily='"'+l["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,f)+'"'),l["font-size"]&&(R.fontSize=l["font-size"]),l["font-weight"]&&(R.fontWeight=l["font-weight"]),l["font-style"]&&(R.fontStyle=l["font-style"])}if("arrow-start"in l&&D(y,l["arrow-start"]),"arrow-end"in l&&D(y,l["arrow-end"],1),null!=l.opacity||null!=l.fill||null!=l.src||null!=l.stroke||null!=l["stroke-width"]||null!=l["stroke-opacity"]||null!=l["fill-opacity"]||null!=l["stroke-dasharray"]||null!=l["stroke-miterlimit"]||null!=l["stroke-linejoin"]||null!=l["stroke-linecap"]){var H=c.getElementsByTagName(u),z=!1;if(H=H&&H[0],!H&&(z=H=A(u)),"image"==r.type&&l.src&&(H.src=l.src),l.fill&&(H.on=!0),null!=H.on&&"none"!=l.fill&&null!==l.fill||(H.on=!1),H.on&&l.fill){var Y=i(l.fill).match(t._ISURL);if(Y){H.parentNode==c&&c.removeChild(H),H.rotate=!0,H.src=Y[1],H.type="tile";var N=r.getBBox(1);H.position=N.x+p+N.y,r._.fillpos=[N.x,N.y],t._preload(Y[1],function(){r._.fillsize=[this.offsetWidth,this.offsetHeight]})}else H.color=t.getRGB(l.fill).hex,H.src=f,H.type="solid",t.getRGB(l.fill).error&&(y.type in{circle:1,ellipse:1}||"r"!=i(l.fill).charAt())&&L(y,l.fill,H)&&(d.fill="none",d.gradient=l.fill,H.rotate=!1)}if("fill-opacity"in l||"opacity"in l){var F=((+d["fill-opacity"]+1||2)-1)*((+d.opacity+1||2)-1)*((+t.getRGB(l.fill).o+1||2)-1);F=s(o(F,0),1),H.opacity=F,H.src&&(H.color="none")}c.appendChild(H);var W=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],B=!1;!W&&(B=W=A("stroke")),(l.stroke&&"none"!=l.stroke||l["stroke-width"]||null!=l["stroke-opacity"]||l["stroke-dasharray"]||l["stroke-miterlimit"]||l["stroke-linejoin"]||l["stroke-linecap"])&&(W.on=!0),("none"==l.stroke||null===l.stroke||null==W.on||0==l.stroke||0==l["stroke-width"])&&(W.on=!1);var j=t.getRGB(l.stroke);W.on&&l.stroke&&(W.color=j.hex),F=((+d["stroke-opacity"]+1||2)-1)*((+d.opacity+1||2)-1)*((+j.o+1||2)-1);var V=.75*(n(l["stroke-width"])||1);if(F=s(o(F,0),1),null==l["stroke-width"]&&(V=d["stroke-width"]),l["stroke-width"]&&(W.weight=V),V&&V<1&&(F*=V)&&(W.weight=1),W.opacity=F,l["stroke-linejoin"]&&(W.joinstyle=l["stroke-linejoin"]||"miter"),W.miterlimit=l["stroke-miterlimit"]||8,l["stroke-linecap"]&&(W.endcap="butt"==l["stroke-linecap"]?"flat":"square"==l["stroke-linecap"]?"square":"round"),"stroke-dasharray"in l){var $={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};W.dashstyle=$[e](l["stroke-dasharray"])?$[l["stroke-dasharray"]]:f}B&&c.appendChild(W)}if("text"==y.type){y.paper.canvas.style.display=f;var G=y.paper.span,U=100,q=d.font&&d.font.match(/\d+(?:\.\d*)?(?=px)/);g=G.style,d.font&&(g.font=d.font),d["font-family"]&&(g.fontFamily=d["font-family"]),d["font-weight"]&&(g.fontWeight=d["font-weight"]),d["font-style"]&&(g.fontStyle=d["font-style"]),q=n(d["font-size"]||q&&q[0])||10,g.fontSize=q*U+"px",y.textpath.string&&(G.innerHTML=i(y.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var X=G.getBoundingClientRect();y.W=d.w=(X.right-X.left)/U,y.H=d.h=(X.bottom-X.top)/U,y.X=d.x,y.Y=d.y+y.H/2,("x"in l||"y"in l)&&(y.path.v=t.format("m{0},{1}l{2},{1}",a(d.x*b),a(d.y*b),a(d.x*b)+1));for(var Z=["x","y","text","font","font-family","font-weight","font-style","font-size"],K=0,J=Z.length;K<J;K++)if(Z[K]in l){y._.dirty=1;break}switch(d["text-anchor"]){case"start":y.textpath.style["v-text-align"]="left",y.bbx=y.W/2;break;case"end":y.textpath.style["v-text-align"]="right",y.bbx=-y.W/2;break;default:y.textpath.style["v-text-align"]="center",y.bbx=0}y.textpath.style["v-text-kern"]=!0}},L=function(e,a,o){e.attrs=e.attrs||{};var s=(e.attrs,Math.pow),l="linear",u=".5 .5";if(e.attrs.gradient=a,a=i(a).replace(t._radial_gradient,function(t,e,i){return l="radial",e&&i&&(e=n(e),i=n(i),s(e-.5,2)+s(i-.5,2)>.25&&(i=r.sqrt(.25-s(e-.5,2))*(2*(i>.5)-1)+.5),u=e+p+i),f}),a=a.split(/\s*\-\s*/),"linear"==l){var h=a.shift();if(h=-n(h),isNaN(h))return null}var c=t._parseDots(a);if(!c)return null;if(e=e.shape||e.node,c.length){e.removeChild(o),o.on=!0,o.method="none",o.color=c[0].color,o.color2=c[c.length-1].color;for(var d=[],g=0,m=c.length;g<m;g++)c[g].offset&&d.push(c[g].offset+p+c[g].color);o.colors=d.length?d.join():"0% "+o.color,"radial"==l?(o.type="gradientTitle",o.focus="100%",o.focussize="0 0",o.focusposition=u,o.angle=0):(o.type="gradient",o.angle=(270-h)%360),e.appendChild(o)}return 1},C=function(e,i){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=i,this.matrix=t.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!i.bottom&&(i.bottom=this),this.prev=i.top,i.top&&(i.top.next=this),i.top=this,this.next=null},I=t.el;C.prototype=I,I.constructor=C,I.transform=function(e){if(null==e)return this._.transform;var n,r=this.paper._viewBoxShift,a=r?"s"+[r.scale,r.scale]+"-1-1t"+[r.dx,r.dy]:f;r&&(n=e=i(e).replace(/\.{3}|\u2026/g,this._.transform||f)),t._extractTransform(this,a+e);var o,s=this.matrix.clone(),l=this.skew,u=this.node,h=~i(this.attrs.fill).indexOf("-"),c=!i(this.attrs.fill).indexOf("url(");if(s.translate(1,1),c||h||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",o=s.split(),h&&o.noRotation||!o.isSimple){u.style.filter=s.toFilter();var d=this.getBBox(),g=this.getBBox(1),m=d.x-g.x,v=d.y-g.y;u.coordorigin=m*-b+p+v*-b,k(this,1,1,m,v,0)}else u.style.filter=f,k(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate);else u.style.filter=f,l.matrix=i(s),l.offset=s.offset();return null!==n&&(this._.transform=n,t._extractTransform(this,n)),this},I.rotate=function(t,e,r){if(this.removed)return this;if(null!=t){if(t=i(t).split(h),t.length-1&&(e=n(t[1]),r=n(t[2])),t=n(t[0]),null==r&&(e=r),null==e||null==r){var a=this.getBBox(1);e=a.x+a.width/2,r=a.y+a.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",t,e,r]])),this}},I.translate=function(t,e){return this.removed?this:(t=i(t).split(h),t.length-1&&(e=n(t[1])),t=n(t[0])||0,e=+e||0,this._.bbox&&(this._.bbox.x+=t,this._.bbox.y+=e),this.transform(this._.transform.concat([["t",t,e]])),this)},I.scale=function(t,e,r,a){if(this.removed)return this;if(t=i(t).split(h),t.length-1&&(e=n(t[1]),r=n(t[2]),a=n(t[3]),isNaN(r)&&(r=null),isNaN(a)&&(a=null)),t=n(t[0]),null==e&&(e=t),null==a&&(r=a),null==r||null==a)var o=this.getBBox(1);return r=null==r?o.x+o.width/2:r,a=null==a?o.y+o.height/2:a,this.transform(this._.transform.concat([["s",t,e,r,a]])),this._.dirtyT=1,this},I.hide=function(){return!this.removed&&(this.node.style.display="none"),this},I.show=function(){return!this.removed&&(this.node.style.display=f),this},I.auxGetBBox=t.el.getBBox,I.getBBox=function(){var t=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var e={},i=1/this.paper._viewBoxShift.scale;return e.x=t.x-this.paper._viewBoxShift.dx,e.x*=i,e.y=t.y-this.paper._viewBoxShift.dy,e.y*=i,e.width=t.width*i,e.height=t.height*i,e.x2=e.x+e.width,e.y2=e.y+e.height,e}return t},I._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},I.remove=function(){if(!this.removed&&this.node.parentNode){this.paper.__set__&&this.paper.__set__.exclude(this),t.eve.unbind("raphael.*.*."+this.id),t._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;this.removed=!0}},I.attr=function(i,n){if(this.removed)return this;if(null==i){var r={};for(var a in this.attrs)this.attrs[e](a)&&(r[a]=this.attrs[a]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&t.is(i,"string")){if(i==u&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var o=i.split(h),s={},l=0,d=o.length;l<d;l++)i=o[l],i in this.attrs?s[i]=this.attrs[i]:t.is(this.paper.customAttributes[i],"function")?s[i]=this.paper.customAttributes[i].def:s[i]=t._availableAttrs[i];return d-1?s:s[o[0]]}if(this.attrs&&null==n&&t.is(i,"array")){for(s={},l=0,d=i.length;l<d;l++)s[i[l]]=this.attr(i[l]);return s}var p;null!=n&&(p={},p[i]=n),null==n&&t.is(i,"object")&&(p=i);for(var f in p)c("raphael.attr."+f+"."+this.id,this,p[f]);if(p){for(f in this.paper.customAttributes)if(this.paper.customAttributes[e](f)&&p[e](f)&&t.is(this.paper.customAttributes[f],"function")){var g=this.paper.customAttributes[f].apply(this,[].concat(p[f]));this.attrs[f]=p[f];for(var m in g)g[e](m)&&(p[m]=g[m])}p.text&&"text"==this.type&&(this.textpath.string=p.text),T(this,p)}return this},I.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&t._tofront(this,this.paper),this},I.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),t._toback(this,this.paper)),this)},I.insertAfter=function(e){return this.removed?this:(e.constructor==t.st.constructor&&(e=e[e.length-1]),e.node.nextSibling?e.node.parentNode.insertBefore(this.node,e.node.nextSibling):e.node.parentNode.appendChild(this.node),t._insertafter(this,e,this.paper),this)},I.insertBefore=function(e){return this.removed?this:(e.constructor==t.st.constructor&&(e=e[0]),e.node.parentNode.insertBefore(this.node,e.node),t._insertbefore(this,e,this.paper),this)},I.blur=function(e){var i=this.node.runtimeStyle,n=i.filter;return n=n.replace(v,f),0!==+e?(this.attrs.blur=e,i.filter=n+p+d+".Blur(pixelradius="+(+e||1.5)+")",i.margin=t.format("-{0}px 0 0 -{0}px",a(+e||1.5))):(i.filter=n,i.margin=0,delete this.attrs.blur),this},t._engine.path=function(t,e){var i=A("shape");i.style.cssText=_,i.coordsize=b+p+b,i.coordorigin=e.coordorigin;var n=new C(i,e),r={fill:"none",stroke:"#000"};t&&(r.path=t),n.type="path",n.path=[],n.Path=f,T(n,r),e.canvas&&e.canvas.appendChild(i);var a=A("skew");return a.on=!0,i.appendChild(a),n.skew=a,n.transform(f),n},t._engine.rect=function(e,i,n,r,a,o){var s=t._rectPath(i,n,r,a,o),l=e.path(s),u=l.attrs;return l.X=u.x=i,l.Y=u.y=n,l.W=u.width=r,l.H=u.height=a,u.r=o,u.path=s,l.type="rect",l},t._engine.ellipse=function(t,e,i,n,r){var a=t.path();a.attrs;return a.X=e-n,a.Y=i-r,a.W=2*n,a.H=2*r,a.type="ellipse",T(a,{cx:e,cy:i,rx:n,ry:r}),a},t._engine.circle=function(t,e,i,n){var r=t.path();r.attrs;return r.X=e-n,r.Y=i-n,r.W=r.H=2*n,r.type="circle",T(r,{cx:e,cy:i,r:n}),r},t._engine.image=function(e,i,n,r,a,o){var s=t._rectPath(n,r,a,o),l=e.path(s).attr({stroke:"none"}),h=l.attrs,c=l.node,d=c.getElementsByTagName(u)[0];return h.src=i,l.X=h.x=n,l.Y=h.y=r,l.W=h.width=a,l.H=h.height=o,h.path=s,l.type="image",d.parentNode==c&&c.removeChild(d),d.rotate=!0,d.src=i,d.type="tile",l._.fillpos=[n,r],l._.fillsize=[a,o],c.appendChild(d),k(l,1,1,0,0,0),l},t._engine.text=function(e,n,r,o){var s=A("shape"),l=A("path"),u=A("textpath");n=n||0,r=r||0,o=o||"",l.v=t.format("m{0},{1}l{2},{1}",a(n*b),a(r*b),a(n*b)+1),l.textpathok=!0,u.string=i(o),u.on=!0,s.style.cssText=_,s.coordsize=b+p+b,s.coordorigin="0 0";var h=new C(s,e),c={fill:"#000",stroke:"none",font:t._availableAttrs.font,text:o};h.shape=s,h.path=l,h.textpath=u,h.type="text",h.attrs.text=i(o),h.attrs.x=n,h.attrs.y=r,h.attrs.w=1,h.attrs.h=1,T(h,c),s.appendChild(u),s.appendChild(l),e.canvas.appendChild(s);var d=A("skew");return d.on=!0,s.appendChild(d),h.skew=d,h.transform(f),h},t._engine.setSize=function(e,i){var n=this.canvas.style;return this.width=e,this.height=i,e==+e&&(e+="px"),i==+i&&(i+="px"),n.width=e,n.height=i,n.clip="rect(0 "+e+" "+i+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(e,i,n,r,a){t.eve("raphael.setViewBox",this,this._viewBox,[e,i,n,r,a]);var o,s,l=this.getSize(),u=l.width,h=l.height;return a&&(o=h/r,s=u/n,n*o<u&&(e-=(u-n*o)/2/o),r*s<h&&(i-=(h-r*s)/2/s)),this._viewBox=[e,i,n,r,!!a],this._viewBoxShift={dx:-e,dy:-i,scale:l},this.forEach(function(t){t.transform("...")}),this};var A;t._engine.initWin=function(t){var e=t.document;e.styleSheets.length<31?e.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):e.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),A=function(t){return e.createElement("<rvml:"+t+' class="rvml">')}}catch(i){A=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e.container,n=e.height,r=e.width,a=e.x,o=e.y;if(!i)throw new Error("VML container not found.");var s=new t._Paper,l=s.canvas=t._g.doc.createElement("div"),u=l.style;return a=a||0,o=o||0,r=r||512,n=n||342,s.width=r,s.height=n,r==+r&&(r+="px"),n==+n&&(n+="px"),s.coordsize=1e3*b+p+1e3*b,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),u.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,n),1==i?(t._g.doc.body.appendChild(l),u.left=a+"px",u.top=o+"px",u.position="absolute"):i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=f,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var P=t.st;for(var E in I)I[e](E)&&!P[e](E)&&(P[E]=function(t){return function(){var e=arguments;return this.forEach(function(i){i[t].apply(i,e)})}}(E))}}.apply(e,n),!(void 0!==r&&(t.exports=r))}])})},function(t,e,i){i(433),function(){"use strict";var t=$(".sparkline"),e={};t.each(function(){var t=$(this);e=getDataOptions(t);var i=t.data("values");t.sparkline(i,e)})}()},function(t,e,i){var n,r,a;!function(o,s,l){!function(o){r=[i(13)],n=o,a="function"==typeof n?n.apply(e,r):n,!(a!==l&&(t.exports=a))}(function(t){"use strict";var e,i,n,r,a,u,h,c,d,p,f,g,m,v,y,_,b,x,w,M,S,k,D,T,L,C,I,A,P,E,O,R,H={},z=0;e=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:l,normalRangeMax:l,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:l,chartRangeMax:l,chartRangeMinX:l,chartRangeMaxX:l,tooltipFormat:new n('<span style="color: {{color}}">●</span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:l,nullColor:l,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:l,chartRangeMin:l,chartRangeClip:!1,colorMap:l,tooltipFormat:new n('<span style="color: {{color}}">●</span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new n('<span style="color: {{color}}">●</span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:l,thresholdValue:0,chartRangeMax:l,chartRangeMin:l,chartRangeClip:!1,tooltipFormat:new n("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:l,tooltipFormat:new n("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new n('<span style="color: {{color}}">●</span> {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:l,targetColor:"#4a2",chartRangeMax:l,chartRangeMin:l,tooltipFormat:new n("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},C='.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;box-sizing: content-box;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}',i=function(){var e,i;return e=function(){this.init.apply(this,arguments)},arguments.length>1?(arguments[0]?(e.prototype=t.extend(new arguments[0],arguments[arguments.length-1]),e._super=arguments[0].prototype):e.prototype=arguments[arguments.length-1],arguments.length>2&&(i=Array.prototype.slice.call(arguments,1,-1),i.unshift(e.prototype),t.extend.apply(t,i))):e.prototype=arguments[0],e.prototype.cls=e,e},t.SPFormatClass=n=i({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(t,e){this.format=t,this.fclass=e},render:function(t,e,i){var n,r,a,o,s,u=this,h=t;return this.format.replace(this.fre,function(){var t;return r=arguments[1],a=arguments[3],n=u.precre.exec(r),n?(s=n[2],r=n[1]):s=!1,o=h[r],o===l?"":a&&e&&e[a]?(t=e[a],t.get?e[a].get(o)||o:e[a][o]||o):(d(o)&&(o=i.get("numberFormatter")?i.get("numberFormatter")(o):v(o,s,i.get("numberDigitGroupCount"),i.get("numberDigitGroupSep"),i.get("numberDecimalMark"))),o)})}}),t.spformat=function(t,e){return new n(t,e)},r=function(t,e,i){return t<e?e:t>i?i:t},a=function(t,e){var i;return 2===e?(i=s.floor(t.length/2),t.length%2?t[i]:(t[i-1]+t[i])/2):t.length%2?(i=(t.length*e+e)/4,i%1?(t[s.floor(i)]+t[s.floor(i)-1])/2:t[i-1]):(i=(t.length*e+2)/4,i%1?(t[s.floor(i)]+t[s.floor(i)-1])/2:t[i-1])},u=function(t){var e;switch(t){case"undefined":t=l;break;case"null":t=null;break;case"true":t=!0;break;case"false":t=!1;break;default:e=parseFloat(t),t==e&&(t=e)}return t},h=function(t){var e,i=[];for(e=t.length;e--;)i[e]=u(t[e]);return i},c=function(t,e){var i,n,r=[];for(i=0,n=t.length;i<n;i++)t[i]!==e&&r.push(t[i]);return r},d=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},v=function(e,i,n,r,a){var o,s;for(e=(i===!1?parseFloat(e).toString():e.toFixed(i)).split(""),o=(o=t.inArray(".",e))<0?e.length:o,o<e.length&&(e[o]=a),s=o-n;s>0;s-=n)e.splice(s,0,r);return e.join("")},p=function(t,e,i){var n;for(n=e.length;n--;)if((!i||null!==e[n])&&e[n]!==t)return!1;return!0},f=function(t){var e,i=0;for(e=t.length;e--;)i+="number"==typeof t[e]?t[e]:0;return i},m=function(e){return t.isArray(e)?e:[e]},g=function(t){var e,i;if(o.createStyleSheet)try{return void(o.createStyleSheet().cssText=t)}catch(n){i=!0}e=o.createElement("style"),e.type="text/css",o.getElementsByTagName("head")[0].appendChild(e),i?o.styleSheets[o.styleSheets.length-1].cssText=t:e["string"==typeof o.body.style.WebkitAppearance?"innerText":"innerHTML"]=t},t.fn.simpledraw=function(e,i,n,r){var a,s;if(n&&(a=this.data("_jqs_vcanvas")))return a;if(t.fn.sparkline.canvas===!1)return!1;if(t.fn.sparkline.canvas===l){var u=o.createElement("canvas");if(u.getContext&&u.getContext("2d"))t.fn.sparkline.canvas=function(t,e,i,n){return new E(t,e,i,n)};else{if(!o.namespaces||o.namespaces.v)return t.fn.sparkline.canvas=!1,!1;o.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),t.fn.sparkline.canvas=function(t,e,i,n){return new O(t,e,i)}}}return e===l&&(e=t(this).innerWidth()),i===l&&(i=t(this).innerHeight()),a=t.fn.sparkline.canvas(e,i,this,r),s=t(this).data("_jqs_mhandler"),s&&s.registerCanvas(a),a},t.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},t.RangeMapClass=y=i({init:function(t){var e,i,n=[];for(e in t)t.hasOwnProperty(e)&&"string"==typeof e&&e.indexOf(":")>-1&&(i=e.split(":"),i[0]=0===i[0].length?-(1/0):parseFloat(i[0]),i[1]=0===i[1].length?1/0:parseFloat(i[1]),i[2]=t[e],n.push(i));this.map=t,this.rangelist=n||!1},get:function(t){var e,i,n,r=this.rangelist;if((n=this.map[t])!==l)return n;if(r)for(e=r.length;e--;)if(i=r[e],i[0]<=t&&i[1]>=t)return i[2];return l}}),t.range_map=function(t){return new y(t)},_=i({init:function(e,i){var n=t(e);this.$el=n,this.options=i,this.currentPageX=0,this.currentPageY=0,this.el=e,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!i.get("disableTooltips"),this.highlightEnabled=!i.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(e){var i=t(e.canvas);this.canvas=e,this.$canvas=i,i.mouseenter(t.proxy(this.mouseenter,this)),i.mouseleave(t.proxy(this.mouseleave,this)),i.click(t.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=l)},mouseclick:function(e){var i=t.Event("sparklineClick");i.originalEvent=e,i.sparklines=this.splist,this.$el.trigger(i)},mouseenter:function(e){t(o.body).unbind("mousemove.jqs"),t(o.body).bind("mousemove.jqs",t.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=e.pageX,this.currentPageY=e.pageY,this.currentEl=e.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new b(this.options),this.tooltip.updatePosition(e.pageX,e.pageY)),this.updateDisplay()},mouseleave:function(){t(o.body).unbind("mousemove.jqs");var e,i,n=this.splist,r=n.length,a=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),i=0;i<r;i++)e=n[i],e.clearRegionHighlight()&&(a=!0);a&&this.canvas.render()},mousemove:function(t){this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,this.tooltip&&this.tooltip.updatePosition(t.pageX,t.pageY),this.updateDisplay()},updateDisplay:function(){var e,i,n,r,a,o=this.splist,s=o.length,l=!1,u=this.$canvas.offset(),h=this.currentPageX-u.left,c=this.currentPageY-u.top;if(this.over){for(n=0;n<s;n++)i=o[n],r=i.setRegionHighlight(this.currentEl,h,c),r&&(l=!0);if(l){if(a=t.Event("sparklineRegionChange"),a.sparklines=this.splist,this.$el.trigger(a),this.tooltip){for(e="",n=0;n<s;n++)i=o[n],e+=i.getCurrentRegionTooltip();this.tooltip.setContent(e)}this.disableHighlight||this.canvas.render()}null===r&&this.mouseleave()}}}),b=i({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(e){var i,n=e.get("tooltipClassname","jqstooltip"),r=this.sizeStyle;this.container=e.get("tooltipContainer")||o.body,this.tooltipOffsetX=e.get("tooltipOffsetX",10),this.tooltipOffsetY=e.get("tooltipOffsetY",12),t("#jqssizetip").remove(),t("#jqstooltip").remove(),this.sizetip=t("<div/>",{id:"jqssizetip",style:r,"class":n}),this.tooltip=t("<div/>",{id:"jqstooltip","class":n}).appendTo(this.container),i=this.tooltip.offset(),this.offsetLeft=i.left,this.offsetTop=i.top,this.hidden=!0,t(window).unbind("resize.jqs scroll.jqs"),t(window).bind("resize.jqs scroll.jqs",t.proxy(this.updateWindowDims,this)),this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=t(window).scrollTop(),this.scrollLeft=t(window).scrollLeft(),this.scrollRight=this.scrollLeft+t(window).width(),this.updatePosition()},getSize:function(t){this.sizetip.html(t).appendTo(this.container),this.width=this.sizetip.width()+1,this.height=this.sizetip.height(),this.sizetip.remove()},setContent:function(t){return t?(this.getSize(t),this.tooltip.html(t).css({width:this.width,height:this.height,visibility:"visible"}),void(this.hidden&&(this.hidden=!1,this.updatePosition()))):(this.tooltip.css("visibility","hidden"),void(this.hidden=!0))},updatePosition:function(t,e){if(t===l){if(this.mousex===l)return;t=this.mousex-this.offsetLeft,e=this.mousey-this.offsetTop}else this.mousex=t-=this.offsetLeft,this.mousey=e-=this.offsetTop;this.height&&this.width&&!this.hidden&&(e-=this.height+this.tooltipOffsetY,t+=this.tooltipOffsetX,e<this.scrollTop&&(e=this.scrollTop),t<this.scrollLeft?t=this.scrollLeft:t+this.width>this.scrollRight&&(t=this.scrollRight-this.width),this.tooltip.css({left:t,top:e}))},remove:function(){this.tooltip.remove(),this.sizetip.remove(),this.sizetip=this.tooltip=l,t(window).unbind("resize.jqs scroll.jqs")}}),I=function(){g(C)},t(I),R=[],t.fn.sparkline=function(e,i){return this.each(function(){var n,r,a=new t.fn.sparkline.options(this,i),s=t(this);if(n=function(){var i,n,r,u,h,c,d;return"html"===e||e===l?(d=this.getAttribute(a.get("tagValuesAttribute")),d!==l&&null!==d||(d=s.html()),i=d.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):i=e,n="auto"===a.get("width")?i.length*a.get("defaultPixelsPerValue"):a.get("width"),"auto"===a.get("height")?a.get("composite")&&t.data(this,"_jqs_vcanvas")||(u=o.createElement("span"),u.innerHTML="a",s.html(u),r=t(u).innerHeight()||t(u).height(),t(u).remove(),u=null):r=a.get("height"),a.get("disableInteraction")?h=!1:(h=t.data(this,"_jqs_mhandler"),h?a.get("composite")||h.reset():(h=new _(this,a),t.data(this,"_jqs_mhandler",h))),a.get("composite")&&!t.data(this,"_jqs_vcanvas")?void(t.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),t.data(this,"_jqs_errnotify",!0))):(c=new(t.fn.sparkline[a.get("type")])(this,i,a,n,r),c.render(),void(h&&h.registerSparkline(c)))},t(this).html()&&!a.get("disableHiddenCheck")&&t(this).is(":hidden")||!t(this).parents("body").length){if(!a.get("composite")&&t.data(this,"_jqs_pending"))for(r=R.length;r;r--)R[r-1][0]==this&&R.splice(r-1,1);R.push([this,n]),t.data(this,"_jqs_pending",!0)}else n.call(this)})},t.fn.sparkline.defaults=e(),t.sparkline_display_visible=function(){var e,i,n,r=[];for(i=0,n=R.length;i<n;i++)e=R[i][0],t(e).is(":visible")&&!t(e).parents().is(":hidden")?(R[i][1].call(e),t.data(R[i][0],"_jqs_pending",!1),r.push(i)):t(e).closest("html").length||t.data(e,"_jqs_pending")||(t.data(R[i][0],"_jqs_pending",!1),r.push(i));for(i=r.length;i;i--)R.splice(r[i-1],1)},t.fn.sparkline.options=i({init:function(e,i){var n,r,a,o;this.userOptions=i=i||{},this.tag=e,this.tagValCache={},r=t.fn.sparkline.defaults,a=r.common,this.tagOptionsPrefix=i.enableTagOptions&&(i.tagOptionsPrefix||a.tagOptionsPrefix),o=this.getTagSetting("type"),n=o===H?r[i.type||a.type]:r[o],this.mergedOptions=t.extend({},a,n,i)},getTagSetting:function(t){var e,i,n,r,a=this.tagOptionsPrefix;if(a===!1||a===l)return H;if(this.tagValCache.hasOwnProperty(t))e=this.tagValCache.key;else{if(e=this.tag.getAttribute(a+t),e===l||null===e)e=H;else if("["===e.substr(0,1))for(e=e.substr(1,e.length-2).split(","),i=e.length;i--;)e[i]=u(e[i].replace(/(^\s*)|(\s*$)/g,""));else if("{"===e.substr(0,1))for(n=e.substr(1,e.length-2).split(","),e={},i=n.length;i--;)r=n[i].split(":",2),e[r[0].replace(/(^\s*)|(\s*$)/g,"")]=u(r[1].replace(/(^\s*)|(\s*$)/g,""));else e=u(e);this.tagValCache.key=e}return e},get:function(t,e){var i,n=this.getTagSetting(t);return n!==H?n:(i=this.mergedOptions[t])===l?e:i}}),t.fn.sparkline._base=i({disabled:!1,init:function(e,i,n,r,a){this.el=e,this.$el=t(e),this.values=i,this.options=n,this.width=r,this.height=a,this.currentRegion=l},initTarget:function(){var t=!this.options.get("disableInteraction");(this.target=this.$el.simpledraw(this.width,this.height,this.options.get("composite"),t))?(this.canvasWidth=this.target.pixelWidth,this.canvasHeight=this.target.pixelHeight):this.disabled=!0},render:function(){return!this.disabled||(this.el.innerHTML="",!1)},getRegion:function(t,e){},setRegionHighlight:function(t,e,i){var n,r=this.currentRegion,a=!this.options.get("disableHighlight");return e>this.canvasWidth||i>this.canvasHeight||e<0||i<0?null:(n=this.getRegion(t,e,i),r!==n&&(r!==l&&a&&this.removeHighlight(),this.currentRegion=n,n!==l&&a&&this.renderHighlight(),!0))},clearRegionHighlight:function(){return this.currentRegion!==l&&(this.removeHighlight(),this.currentRegion=l,!0)},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(t){},getCurrentRegionTooltip:function(){var e,i,r,a,o,s,u,h,c,d,p,f,g,m,v=this.options,y="",_=[];if(this.currentRegion===l)return"";if(e=this.getCurrentRegionFields(),p=v.get("tooltipFormatter"))return p(this,v,e);if(v.get("tooltipChartTitle")&&(y+='<div class="jqs jqstitle">'+v.get("tooltipChartTitle")+"</div>\n"),i=this.options.get("tooltipFormat"),!i)return"";if(t.isArray(i)||(i=[i]),t.isArray(e)||(e=[e]),u=this.options.get("tooltipFormatFieldlist"),h=this.options.get("tooltipFormatFieldlistKey"),u&&h){for(c=[],s=e.length;s--;)d=e[s][h],(m=t.inArray(d,u))!=-1&&(c[m]=e[s]);e=c}for(r=i.length,g=e.length,s=0;s<r;s++)for(f=i[s],"string"==typeof f&&(f=new n(f)),a=f.fclass||"jqsfield",m=0;m<g;m++)e[m].isNull&&v.get("tooltipSkipNull")||(t.extend(e[m],{prefix:v.get("tooltipPrefix"),suffix:v.get("tooltipSuffix")}),o=f.render(e[m],v.get("tooltipValueLookups"),v),_.push('<div class="'+a+'">'+o+"</div>"));return _.length?y+_.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(t,e){var i,n,a,o,l=e.get("highlightColor"),u=e.get("highlightLighten");if(l)return l;if(u&&(i=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t))){for(a=[],n=4===t.length?16:1,o=0;o<3;o++)a[o]=r(s.round(parseInt(i[o+1],16)*n*u),0,255);return"rgb("+a.join(",")+")"}return t}}),x={changeHighlight:function(e){var i,n=this.currentRegion,r=this.target,a=this.regionShapes[n];a&&(i=this.renderRegion(n,e),t.isArray(i)||t.isArray(a)?(r.replaceWithShapes(a,i),this.regionShapes[n]=t.map(i,function(t){return t.id})):(r.replaceWithShape(a,i),this.regionShapes[n]=i.id))},render:function(){var e,i,n,r,a=this.values,o=this.target,s=this.regionShapes;if(this.cls._super.render.call(this)){for(n=a.length;n--;)if(e=this.renderRegion(n))if(t.isArray(e)){for(i=[],r=e.length;r--;)e[r].append(),i.push(e[r].id); s[n]=i}else e.append(),s[n]=e.id;else s[n]=null;o.render()}}},t.fn.sparkline.line=w=i(t.fn.sparkline._base,{type:"line",init:function(t,e,i,n,r){w._super.init.call(this,t,e,i,n,r),this.vertices=[],this.regionMap=[],this.xvalues=[],this.yvalues=[],this.yminmax=[],this.hightlightSpotId=null,this.lastShapeId=null,this.initTarget()},getRegion:function(t,e,i){var n,r=this.regionMap;for(n=r.length;n--;)if(null!==r[n]&&e>=r[n][0]&&e<=r[n][1])return r[n][2];return l},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:null===this.yvalues[t],x:this.xvalues[t],y:this.yvalues[t],color:this.options.get("lineColor"),fillColor:this.options.get("fillColor"),offset:t}},renderHighlight:function(){var t,e,i=this.currentRegion,n=this.target,r=this.vertices[i],a=this.options,o=a.get("spotRadius"),s=a.get("highlightSpotColor"),u=a.get("highlightLineColor");r&&(o&&s&&(t=n.drawCircle(r[0],r[1],o,l,s),this.highlightSpotId=t.id,n.insertAfterShape(this.lastShapeId,t)),u&&(e=n.drawLine(r[0],this.canvasTop,r[0],this.canvasTop+this.canvasHeight,u),this.highlightLineId=e.id,n.insertAfterShape(this.lastShapeId,e)))},removeHighlight:function(){var t=this.target;this.highlightSpotId&&(t.removeShapeId(this.highlightSpotId),this.highlightSpotId=null),this.highlightLineId&&(t.removeShapeId(this.highlightLineId),this.highlightLineId=null)},scanValues:function(){var t,e,i,n,r,a=this.values,o=a.length,l=this.xvalues,u=this.yvalues,h=this.yminmax;for(t=0;t<o;t++)e=a[t],i="string"==typeof a[t],n="object"==typeof a[t]&&a[t]instanceof Array,r=i&&a[t].split(":"),i&&2===r.length?(l.push(Number(r[0])),u.push(Number(r[1])),h.push(Number(r[1]))):n?(l.push(e[0]),u.push(e[1]),h.push(e[1])):(l.push(t),null===a[t]||"null"===a[t]?u.push(null):(u.push(Number(e)),h.push(Number(e))));this.options.get("xvalues")&&(l=this.options.get("xvalues")),this.maxy=this.maxyorg=s.max.apply(s,h),this.miny=this.minyorg=s.min.apply(s,h),this.maxx=s.max.apply(s,l),this.minx=s.min.apply(s,l),this.xvalues=l,this.yvalues=u,this.yminmax=h},processRangeOptions:function(){var t=this.options,e=t.get("normalRangeMin"),i=t.get("normalRangeMax");e!==l&&(e<this.miny&&(this.miny=e),i>this.maxy&&(this.maxy=i)),t.get("chartRangeMin")!==l&&(t.get("chartRangeClip")||t.get("chartRangeMin")<this.miny)&&(this.miny=t.get("chartRangeMin")),t.get("chartRangeMax")!==l&&(t.get("chartRangeClip")||t.get("chartRangeMax")>this.maxy)&&(this.maxy=t.get("chartRangeMax")),t.get("chartRangeMinX")!==l&&(t.get("chartRangeClipX")||t.get("chartRangeMinX")<this.minx)&&(this.minx=t.get("chartRangeMinX")),t.get("chartRangeMaxX")!==l&&(t.get("chartRangeClipX")||t.get("chartRangeMaxX")>this.maxx)&&(this.maxx=t.get("chartRangeMaxX"))},drawNormalRange:function(t,e,i,n,r){var a=this.options.get("normalRangeMin"),o=this.options.get("normalRangeMax"),u=e+s.round(i-i*((o-this.miny)/r)),h=s.round(i*(o-a)/r);this.target.drawRect(t,u,n,h,l,this.options.get("normalRangeColor")).append()},render:function(){var e,i,n,r,a,o,u,h,c,d,p,f,g,m,v,_,b,x,M,S,k,D,T,L,C,I=this.options,A=this.target,P=this.canvasWidth,E=this.canvasHeight,O=this.vertices,R=I.get("spotRadius"),H=this.regionMap;if(w._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),T=this.xvalues,L=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(r=a=0,e=this.maxx-this.minx===0?1:this.maxx-this.minx,i=this.maxy-this.miny===0?1:this.maxy-this.miny,n=this.yvalues.length-1,R&&(P<4*R||E<4*R)&&(R=0),R&&(k=I.get("highlightSpotColor")&&!I.get("disableInteraction"),(k||I.get("minSpotColor")||I.get("spotColor")&&L[n]===this.miny)&&(E-=s.ceil(R)),(k||I.get("maxSpotColor")||I.get("spotColor")&&L[n]===this.maxy)&&(E-=s.ceil(R),r+=s.ceil(R)),(k||(I.get("minSpotColor")||I.get("maxSpotColor"))&&(L[0]===this.miny||L[0]===this.maxy))&&(a+=s.ceil(R),P-=s.ceil(R)),(k||I.get("spotColor")||I.get("minSpotColor")||I.get("maxSpotColor")&&(L[n]===this.miny||L[n]===this.maxy))&&(P-=s.ceil(R))),E--,I.get("normalRangeMin")===l||I.get("drawNormalOnTop")||this.drawNormalRange(a,r,E,P,i),u=[],h=[u],m=v=null,_=L.length,C=0;C<_;C++)c=T[C],p=T[C+1],d=L[C],f=a+s.round((c-this.minx)*(P/e)),g=C<_-1?a+s.round((p-this.minx)*(P/e)):P,v=f+(g-f)/2,H[C]=[m||0,v,C],m=v,null===d?C&&(null!==L[C-1]&&(u=[],h.push(u)),O.push(null)):(d<this.miny&&(d=this.miny),d>this.maxy&&(d=this.maxy),u.length||u.push([f,r+E]),o=[f,r+s.round(E-E*((d-this.miny)/i))],u.push(o),O.push(o));for(b=[],x=[],M=h.length,C=0;C<M;C++)u=h[C],u.length&&(I.get("fillColor")&&(u.push([u[u.length-1][0],r+E]),x.push(u.slice(0)),u.pop()),u.length>2&&(u[0]=[u[0][0],u[1][1]]),b.push(u));for(M=x.length,C=0;C<M;C++)A.drawShape(x[C],I.get("fillColor"),I.get("fillColor")).append();for(I.get("normalRangeMin")!==l&&I.get("drawNormalOnTop")&&this.drawNormalRange(a,r,E,P,i),M=b.length,C=0;C<M;C++)A.drawShape(b[C],I.get("lineColor"),l,I.get("lineWidth")).append();if(R&&I.get("valueSpots"))for(S=I.get("valueSpots"),S.get===l&&(S=new y(S)),C=0;C<_;C++)D=S.get(L[C]),D&&A.drawCircle(a+s.round((T[C]-this.minx)*(P/e)),r+s.round(E-E*((L[C]-this.miny)/i)),R,l,D).append();R&&I.get("spotColor")&&null!==L[n]&&A.drawCircle(a+s.round((T[T.length-1]-this.minx)*(P/e)),r+s.round(E-E*((L[n]-this.miny)/i)),R,l,I.get("spotColor")).append(),this.maxy!==this.minyorg&&(R&&I.get("minSpotColor")&&(c=T[t.inArray(this.minyorg,L)],A.drawCircle(a+s.round((c-this.minx)*(P/e)),r+s.round(E-E*((this.minyorg-this.miny)/i)),R,l,I.get("minSpotColor")).append()),R&&I.get("maxSpotColor")&&(c=T[t.inArray(this.maxyorg,L)],A.drawCircle(a+s.round((c-this.minx)*(P/e)),r+s.round(E-E*((this.maxyorg-this.miny)/i)),R,l,I.get("maxSpotColor")).append())),this.lastShapeId=A.getLastShapeId(),this.canvasTop=r,A.render()}}}),t.fn.sparkline.bar=M=i(t.fn.sparkline._base,x,{type:"bar",init:function(e,i,n,a,o){var d,p,f,g,m,v,_,b,x,w,S,k,D,T,L,C,I,A,P,E,O,R,H=parseInt(n.get("barWidth"),10),z=parseInt(n.get("barSpacing"),10),Y=n.get("chartRangeMin"),N=n.get("chartRangeMax"),F=n.get("chartRangeClip"),W=1/0,B=-(1/0);for(M._super.init.call(this,e,i,n,a,o),v=0,_=i.length;v<_;v++)E=i[v],d="string"==typeof E&&E.indexOf(":")>-1,(d||t.isArray(E))&&(L=!0,d&&(E=i[v]=h(E.split(":"))),E=c(E,null),p=s.min.apply(s,E),f=s.max.apply(s,E),p<W&&(W=p),f>B&&(B=f));this.stacked=L,this.regionShapes={},this.barWidth=H,this.barSpacing=z,this.totalBarWidth=H+z,this.width=a=i.length*H+(i.length-1)*z,this.initTarget(),F&&(D=Y===l?-(1/0):Y,T=N===l?1/0:N),m=[],g=L?[]:m;var j=[],V=[];for(v=0,_=i.length;v<_;v++)if(L)for(C=i[v],i[v]=P=[],j[v]=0,g[v]=V[v]=0,I=0,A=C.length;I<A;I++)E=P[I]=F?r(C[I],D,T):C[I],null!==E&&(E>0&&(j[v]+=E),W<0&&B>0?E<0?V[v]+=s.abs(E):g[v]+=E:g[v]+=s.abs(E-(E<0?B:W)),m.push(E));else E=F?r(i[v],D,T):i[v],E=i[v]=u(E),null!==E&&m.push(E);this.max=k=s.max.apply(s,m),this.min=S=s.min.apply(s,m),this.stackMax=B=L?s.max.apply(s,j):k,this.stackMin=W=L?s.min.apply(s,m):S,n.get("chartRangeMin")!==l&&(n.get("chartRangeClip")||n.get("chartRangeMin")<S)&&(S=n.get("chartRangeMin")),n.get("chartRangeMax")!==l&&(n.get("chartRangeClip")||n.get("chartRangeMax")>k)&&(k=n.get("chartRangeMax")),this.zeroAxis=x=n.get("zeroAxis",!0),w=S<=0&&k>=0&&x?0:0==x?S:S>0?S:k,this.xaxisOffset=w,b=L?s.max.apply(s,g)+s.max.apply(s,V):k-S,this.canvasHeightEf=x&&S<0?this.canvasHeight-2:this.canvasHeight-1,S<w?(R=L&&k>=0?B:k,O=(R-w)/b*this.canvasHeight,O!==s.ceil(O)&&(this.canvasHeightEf-=2,O=s.ceil(O))):O=this.canvasHeight,this.yoffset=O,t.isArray(n.get("colorMap"))?(this.colorMapByIndex=n.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=n.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===l&&(this.colorMapByValue=new y(this.colorMapByValue))),this.range=b},getRegion:function(t,e,i){var n=s.floor(e/this.totalBarWidth);return n<0||n>=this.values.length?l:n},getCurrentRegionFields:function(){var t,e,i=this.currentRegion,n=m(this.values[i]),r=[];for(e=n.length;e--;)t=n[e],r.push({isNull:null===t,value:t,color:this.calcColor(e,t,i),offset:i});return r},calcColor:function(e,i,n){var r,a,o=this.colorMapByIndex,s=this.colorMapByValue,u=this.options;return r=this.stacked?u.get("stackedBarColor"):i<0?u.get("negBarColor"):u.get("barColor"),0===i&&u.get("zeroColor")!==l&&(r=u.get("zeroColor")),s&&(a=s.get(i))?r=a:o&&o.length>n&&(r=o[n]),t.isArray(r)?r[e%r.length]:r},renderRegion:function(e,i){var n,r,a,o,u,h,c,d,f,g,m=this.values[e],v=this.options,y=this.xaxisOffset,_=[],b=this.range,x=this.stacked,w=this.target,M=e*this.totalBarWidth,S=this.canvasHeightEf,k=this.yoffset;if(m=t.isArray(m)?m:[m],c=m.length,d=m[0],o=p(null,m),g=p(y,m,!0),o)return v.get("nullColor")?(a=i?v.get("nullColor"):this.calcHighlightColor(v.get("nullColor"),v),n=k>0?k-1:k,w.drawRect(M,n,this.barWidth-1,0,a,a)):l;for(u=k,h=0;h<c;h++){if(d=m[h],x&&d===y){if(!g||f)continue;f=!0}r=b>0?s.floor(S*(s.abs(d-y)/b))+1:1,d<y||d===y&&0===k?(n=u,u+=r):(n=k-r,k-=r),a=this.calcColor(h,d,e),i&&(a=this.calcHighlightColor(a,v)),_.push(w.drawRect(M,n,this.barWidth-1,r-1,a,a))}return 1===_.length?_[0]:_}}),t.fn.sparkline.tristate=S=i(t.fn.sparkline._base,x,{type:"tristate",init:function(e,i,n,r,a){var o=parseInt(n.get("barWidth"),10),s=parseInt(n.get("barSpacing"),10);S._super.init.call(this,e,i,n,r,a),this.regionShapes={},this.barWidth=o,this.barSpacing=s,this.totalBarWidth=o+s,this.values=t.map(i,Number),this.width=r=i.length*o+(i.length-1)*s,t.isArray(n.get("colorMap"))?(this.colorMapByIndex=n.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=n.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===l&&(this.colorMapByValue=new y(this.colorMapByValue))),this.initTarget()},getRegion:function(t,e,i){return s.floor(e/this.totalBarWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===l,value:this.values[t],color:this.calcColor(this.values[t],t),offset:t}},calcColor:function(t,e){var i,n,r=this.values,a=this.options,o=this.colorMapByIndex,s=this.colorMapByValue;return i=s&&(n=s.get(t))?n:o&&o.length>e?o[e]:r[e]<0?a.get("negBarColor"):r[e]>0?a.get("posBarColor"):a.get("zeroBarColor")},renderRegion:function(t,e){var i,n,r,a,o,l,u=this.values,h=this.options,c=this.target;if(i=c.pixelHeight,r=s.round(i/2),a=t*this.totalBarWidth,u[t]<0?(o=r,n=r-1):u[t]>0?(o=0,n=r-1):(o=r-1,n=2),l=this.calcColor(u[t],t),null!==l)return e&&(l=this.calcHighlightColor(l,h)),c.drawRect(a,o,this.barWidth-1,n-1,l,l)}}),t.fn.sparkline.discrete=k=i(t.fn.sparkline._base,x,{type:"discrete",init:function(e,i,n,r,a){k._super.init.call(this,e,i,n,r,a),this.regionShapes={},this.values=i=t.map(i,Number),this.min=s.min.apply(s,i),this.max=s.max.apply(s,i),this.range=this.max-this.min,this.width=r="auto"===n.get("width")?2*i.length:this.width,this.interval=s.floor(r/i.length),this.itemWidth=r/i.length,n.get("chartRangeMin")!==l&&(n.get("chartRangeClip")||n.get("chartRangeMin")<this.min)&&(this.min=n.get("chartRangeMin")),n.get("chartRangeMax")!==l&&(n.get("chartRangeClip")||n.get("chartRangeMax")>this.max)&&(this.max=n.get("chartRangeMax")),this.initTarget(),this.target&&(this.lineHeight="auto"===n.get("lineHeight")?s.round(.3*this.canvasHeight):n.get("lineHeight"))},getRegion:function(t,e,i){return s.floor(e/this.itemWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===l,value:this.values[t],offset:t}},renderRegion:function(t,e){var i,n,a,o,l=this.values,u=this.options,h=this.min,c=this.max,d=this.range,p=this.interval,f=this.target,g=this.canvasHeight,m=this.lineHeight,v=g-m;return n=r(l[t],h,c),o=t*p,i=s.round(v-v*((n-h)/d)),a=u.get("thresholdColor")&&n<u.get("thresholdValue")?u.get("thresholdColor"):u.get("lineColor"),e&&(a=this.calcHighlightColor(a,u)),f.drawLine(o,i,o,i+m,a)}}),t.fn.sparkline.bullet=D=i(t.fn.sparkline._base,{type:"bullet",init:function(t,e,i,n,r){var a,o,u;D._super.init.call(this,t,e,i,n,r),this.values=e=h(e),u=e.slice(),u[0]=null===u[0]?u[2]:u[0],u[1]=null===e[1]?u[2]:u[1],a=s.min.apply(s,e),o=s.max.apply(s,e),a=i.get("base")===l?a<0?a:0:i.get("base"),this.min=a,this.max=o,this.range=o-a,this.shapes={},this.valueShapes={},this.regiondata={},this.width=n="auto"===i.get("width")?"4.0em":n,this.target=this.$el.simpledraw(n,r,i.get("composite")),e.length||(this.disabled=!0),this.initTarget()},getRegion:function(t,e,i){var n=this.target.getShapeAt(t,e,i);return n!==l&&this.shapes[n]!==l?this.shapes[n]:l},getCurrentRegionFields:function(){var t=this.currentRegion;return{fieldkey:t.substr(0,1),value:this.values[t.substr(1)],region:t}},changeHighlight:function(t){var e,i=this.currentRegion,n=this.valueShapes[i];switch(delete this.shapes[n],i.substr(0,1)){case"r":e=this.renderRange(i.substr(1),t);break;case"p":e=this.renderPerformance(t);break;case"t":e=this.renderTarget(t)}this.valueShapes[i]=e.id,this.shapes[e.id]=i,this.target.replaceWithShape(n,e)},renderRange:function(t,e){var i=this.values[t],n=s.round(this.canvasWidth*((i-this.min)/this.range)),r=this.options.get("rangeColors")[t-2];return e&&(r=this.calcHighlightColor(r,this.options)),this.target.drawRect(0,0,n-1,this.canvasHeight-1,r,r)},renderPerformance:function(t){var e=this.values[1],i=s.round(this.canvasWidth*((e-this.min)/this.range)),n=this.options.get("performanceColor");return t&&(n=this.calcHighlightColor(n,this.options)),this.target.drawRect(0,s.round(.3*this.canvasHeight),i-1,s.round(.4*this.canvasHeight)-1,n,n)},renderTarget:function(t){var e=this.values[0],i=s.round(this.canvasWidth*((e-this.min)/this.range)-this.options.get("targetWidth")/2),n=s.round(.1*this.canvasHeight),r=this.canvasHeight-2*n,a=this.options.get("targetColor");return t&&(a=this.calcHighlightColor(a,this.options)),this.target.drawRect(i,n,this.options.get("targetWidth")-1,r-1,a,a)},render:function(){var t,e,i=this.values.length,n=this.target;if(D._super.render.call(this)){for(t=2;t<i;t++)e=this.renderRange(t).append(),this.shapes[e.id]="r"+t,this.valueShapes["r"+t]=e.id;null!==this.values[1]&&(e=this.renderPerformance().append(),this.shapes[e.id]="p1",this.valueShapes.p1=e.id),null!==this.values[0]&&(e=this.renderTarget().append(),this.shapes[e.id]="t0",this.valueShapes.t0=e.id),n.render()}}}),t.fn.sparkline.pie=T=i(t.fn.sparkline._base,{type:"pie",init:function(e,i,n,r,a){var o,l=0;if(T._super.init.call(this,e,i,n,r,a),this.shapes={},this.valueShapes={},this.values=i=t.map(i,Number),"auto"===n.get("width")&&(this.width=this.height),i.length>0)for(o=i.length;o--;)l+=i[o];this.total=l,this.initTarget(),this.radius=s.floor(s.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(t,e,i){var n=this.target.getShapeAt(t,e,i);return n!==l&&this.shapes[n]!==l?this.shapes[n]:l},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===l,value:this.values[t],percent:this.values[t]/this.total*100,color:this.options.get("sliceColors")[t%this.options.get("sliceColors").length],offset:t}},changeHighlight:function(t){var e=this.currentRegion,i=this.renderSlice(e,t),n=this.valueShapes[e];delete this.shapes[n],this.target.replaceWithShape(n,i),this.valueShapes[e]=i.id,this.shapes[i.id]=e},renderSlice:function(t,e){var i,n,r,a,o,u=this.target,h=this.options,c=this.radius,d=h.get("borderWidth"),p=h.get("offset"),f=2*s.PI,g=this.values,m=this.total,v=p?2*s.PI*(p/360):0;for(a=g.length,r=0;r<a;r++){if(i=v,n=v,m>0&&(n=v+f*(g[r]/m)),t===r)return o=h.get("sliceColors")[r%h.get("sliceColors").length],e&&(o=this.calcHighlightColor(o,h)),u.drawPieSlice(c,c,c-d,i,n,l,o);v=n}},render:function(){var t,e,i=this.target,n=this.values,r=this.options,a=this.radius,o=r.get("borderWidth"),u=r.get("donutWidth");if(T._super.render.call(this)){for(o&&i.drawCircle(a,a,s.floor(a-o/2),r.get("borderColor"),l,o).append(),e=n.length;e--;)n[e]&&(t=this.renderSlice(e).append(),this.valueShapes[e]=t.id,this.shapes[t.id]=e);u&&i.drawCircle(a,a,a-u,r.get("donutColor"),r.get("donutColor"),0).append(),i.render()}}}),t.fn.sparkline.box=L=i(t.fn.sparkline._base,{type:"box",init:function(e,i,n,r,a){L._super.init.call(this,e,i,n,r,a),this.values=t.map(i,Number),this.width="auto"===n.get("width")?"4.0em":r,this.initTarget(),this.values.length||(this.disabled=1)},getRegion:function(){return 1},getCurrentRegionFields:function(){var t=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];return this.loutlier!==l&&t.push({field:"lo",value:this.loutlier}),this.routlier!==l&&t.push({field:"ro",value:this.routlier}),this.lwhisker!==l&&t.push({field:"lw",value:this.lwhisker}),this.rwhisker!==l&&t.push({field:"rw",value:this.rwhisker}),t},render:function(){var t,e,i,n,r,o,u,h,c,d,p,f=this.target,g=this.values,m=g.length,v=this.options,y=this.canvasWidth,_=this.canvasHeight,b=v.get("chartRangeMin")===l?s.min.apply(s,g):v.get("chartRangeMin"),x=v.get("chartRangeMax")===l?s.max.apply(s,g):v.get("chartRangeMax"),w=0;if(L._super.render.call(this)){if(v.get("raw"))v.get("showOutliers")&&g.length>5?(e=g[0],t=g[1],n=g[2],r=g[3],o=g[4],u=g[5],h=g[6]):(t=g[0],n=g[1],r=g[2],o=g[3],u=g[4]);else if(g.sort(function(t,e){return t-e}),n=a(g,1),r=a(g,2),o=a(g,3),i=o-n,v.get("showOutliers")){for(t=u=l,c=0;c<m;c++)t===l&&g[c]>n-i*v.get("outlierIQR")&&(t=g[c]),g[c]<o+i*v.get("outlierIQR")&&(u=g[c]);e=g[0],h=g[m-1]}else t=g[0],u=g[m-1];this.quartiles=[n,r,o],this.lwhisker=t,this.rwhisker=u,this.loutlier=e,this.routlier=h,p=y/(x-b+1),v.get("showOutliers")&&(w=s.ceil(v.get("spotRadius")),y-=2*s.ceil(v.get("spotRadius")),p=y/(x-b+1),e<t&&f.drawCircle((e-b)*p+w,_/2,v.get("spotRadius"),v.get("outlierLineColor"),v.get("outlierFillColor")).append(),h>u&&f.drawCircle((h-b)*p+w,_/2,v.get("spotRadius"),v.get("outlierLineColor"),v.get("outlierFillColor")).append()),f.drawRect(s.round((n-b)*p+w),s.round(.1*_),s.round((o-n)*p),s.round(.8*_),v.get("boxLineColor"),v.get("boxFillColor")).append(),f.drawLine(s.round((t-b)*p+w),s.round(_/2),s.round((n-b)*p+w),s.round(_/2),v.get("lineColor")).append(),f.drawLine(s.round((t-b)*p+w),s.round(_/4),s.round((t-b)*p+w),s.round(_-_/4),v.get("whiskerColor")).append(),f.drawLine(s.round((u-b)*p+w),s.round(_/2),s.round((o-b)*p+w),s.round(_/2),v.get("lineColor")).append(),f.drawLine(s.round((u-b)*p+w),s.round(_/4),s.round((u-b)*p+w),s.round(_-_/4),v.get("whiskerColor")).append(),f.drawLine(s.round((r-b)*p+w),s.round(.1*_),s.round((r-b)*p+w),s.round(.9*_),v.get("medianColor")).append(),v.get("target")&&(d=s.ceil(v.get("spotRadius")),f.drawLine(s.round((v.get("target")-b)*p+w),s.round(_/2-d),s.round((v.get("target")-b)*p+w),s.round(_/2+d),v.get("targetColor")).append(),f.drawLine(s.round((v.get("target")-b)*p+w-d),s.round(_/2),s.round((v.get("target")-b)*p+w+d),s.round(_/2),v.get("targetColor")).append()),f.render()}}}),A=i({init:function(t,e,i,n){this.target=t,this.id=e,this.type=i,this.args=n},append:function(){return this.target.appendShape(this),this}}),P=i({_pxregex:/(\d+)(px)?\s*$/i,init:function(e,i,n){e&&(this.width=e,this.height=i,this.target=n,this.lastShapeId=null,n[0]&&(n=n[0]),t.data(n,"_jqs_vcanvas",this))},drawLine:function(t,e,i,n,r,a){return this.drawShape([[t,e],[i,n]],r,a)},drawShape:function(t,e,i,n){return this._genShape("Shape",[t,e,i,n])},drawCircle:function(t,e,i,n,r,a){return this._genShape("Circle",[t,e,i,n,r,a])},drawPieSlice:function(t,e,i,n,r,a,o){return this._genShape("PieSlice",[t,e,i,n,r,a,o])},drawRect:function(t,e,i,n,r,a){return this._genShape("Rect",[t,e,i,n,r,a])},getElement:function(){return this.canvas},getLastShapeId:function(){return this.lastShapeId},reset:function(){alert("reset not implemented")},_insert:function(e,i){t(i).html(e)},_calculatePixelDims:function(e,i,n){var r;r=this._pxregex.exec(i),r?this.pixelHeight=r[1]:this.pixelHeight=t(n).height(),r=this._pxregex.exec(e),r?this.pixelWidth=r[1]:this.pixelWidth=t(n).width()},_genShape:function(t,e){var i=z++;return e.unshift(i),new A(this,i,t,e)},appendShape:function(t){alert("appendShape not implemented")},replaceWithShape:function(t,e){alert("replaceWithShape not implemented")},insertAfterShape:function(t,e){alert("insertAfterShape not implemented")},removeShapeId:function(t){alert("removeShapeId not implemented")},getShapeAt:function(t,e,i){alert("getShapeAt not implemented")},render:function(){alert("render not implemented")}}),E=i(P,{init:function(e,i,n,r){E._super.init.call(this,e,i,n),this.canvas=o.createElement("canvas"),n[0]&&(n=n[0]),t.data(n,"_jqs_vcanvas",this),t(this.canvas).css({display:"inline-block",width:e,height:i,verticalAlign:"top"}),this._insert(this.canvas,n),this._calculatePixelDims(e,i,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.interact=r,this.shapes={},this.shapeseq=[],this.currentTargetShapeId=l,t(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(t,e,i){var n=this.canvas.getContext("2d");return t!==l&&(n.strokeStyle=t),n.lineWidth=i===l?1:i,e!==l&&(n.fillStyle=e),n},reset:function(){var t=this._getContext();t.clearRect(0,0,this.pixelWidth,this.pixelHeight),this.shapes={},this.shapeseq=[],this.currentTargetShapeId=l},_drawShape:function(t,e,i,n,r){var a,o,s=this._getContext(i,n,r);for(s.beginPath(),s.moveTo(e[0][0]+.5,e[0][1]+.5),a=1,o=e.length;a<o;a++)s.lineTo(e[a][0]+.5,e[a][1]+.5);i!==l&&s.stroke(),n!==l&&s.fill(),this.targetX!==l&&this.targetY!==l&&s.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawCircle:function(t,e,i,n,r,a,o){var u=this._getContext(r,a,o);u.beginPath(),u.arc(e,i,n,0,2*s.PI,!1),this.targetX!==l&&this.targetY!==l&&u.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t),r!==l&&u.stroke(),a!==l&&u.fill()},_drawPieSlice:function(t,e,i,n,r,a,o,s){var u=this._getContext(o,s);u.beginPath(),u.moveTo(e,i),u.arc(e,i,n,r,a,!1),u.lineTo(e,i),u.closePath(),o!==l&&u.stroke(),s&&u.fill(),this.targetX!==l&&this.targetY!==l&&u.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawRect:function(t,e,i,n,r,a,o){return this._drawShape(t,[[e,i],[e+n,i],[e+n,i+r],[e,i+r],[e,i]],a,o)},appendShape:function(t){return this.shapes[t.id]=t,this.shapeseq.push(t.id),this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i,n=this.shapeseq;for(this.shapes[e.id]=e,i=n.length;i--;)n[i]==t&&(n[i]=e.id);delete this.shapes[t]},replaceWithShapes:function(t,e){var i,n,r,a=this.shapeseq,o={};for(n=t.length;n--;)o[t[n]]=!0;for(n=a.length;n--;)i=a[n],o[i]&&(a.splice(n,1),delete this.shapes[i],r=n);for(n=e.length;n--;)a.splice(r,0,e[n].id),this.shapes[e[n].id]=e[n]},insertAfterShape:function(t,e){var i,n=this.shapeseq;for(i=n.length;i--;)if(n[i]===t)return n.splice(i+1,0,e.id),void(this.shapes[e.id]=e)},removeShapeId:function(t){var e,i=this.shapeseq;for(e=i.length;e--;)if(i[e]===t){i.splice(e,1);break}delete this.shapes[t]},getShapeAt:function(t,e,i){return this.targetX=e,this.targetY=i,this.render(),this.currentTargetShapeId},render:function(){var t,e,i,n=this.shapeseq,r=this.shapes,a=n.length,o=this._getContext();for(o.clearRect(0,0,this.pixelWidth,this.pixelHeight),i=0;i<a;i++)t=n[i],e=r[t],this["_draw"+e.type].apply(this,e.args);this.interact||(this.shapes={},this.shapeseq=[])}}),O=i(P,{init:function(e,i,n){var r;O._super.init.call(this,e,i,n),n[0]&&(n=n[0]),t.data(n,"_jqs_vcanvas",this),this.canvas=o.createElement("span"),t(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",width:e,height:i,margin:"0px",padding:"0px",verticalAlign:"top"}),this._insert(this.canvas,n),this._calculatePixelDims(e,i,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,r='<v:group coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" style="position:absolute;top:0;left:0;width:'+this.pixelWidth+"px;height="+this.pixelHeight+'px;"></v:group>',this.canvas.insertAdjacentHTML("beforeEnd",r),this.group=t(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(t,e,i,n,r){var a,o,s,u,h,c,d,p=[];for(d=0,c=e.length;d<c;d++)p[d]=""+e[d][0]+","+e[d][1];return a=p.splice(0,1),r=r===l?1:r,o=i===l?' stroked="false" ':' strokeWeight="'+r+'px" strokeColor="'+i+'" ',s=n===l?' filled="false"':' fillColor="'+n+'" filled="true" ',u=p[0]===p[p.length-1]?"x ":"",h='<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+t+'" '+o+s+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+a+" l "+p.join(", ")+" "+u+'e"> </v:shape>'},_drawCircle:function(t,e,i,n,r,a,o){var s,u,h;return e-=n,i-=n,s=r===l?' stroked="false" ':' strokeWeight="'+o+'px" strokeColor="'+r+'" ',u=a===l?' filled="false"':' fillColor="'+a+'" filled="true" ',h='<v:oval id="jqsshape'+t+'" '+s+u+' style="position:absolute;top:'+i+"px; left:"+e+"px; width:"+2*n+"px; height:"+2*n+'px"></v:oval>'},_drawPieSlice:function(t,e,i,n,r,a,o,u){var h,c,d,p,f,g,m,v;if(r===a)return"";if(a-r===2*s.PI&&(r=0,a=2*s.PI),c=e+s.round(s.cos(r)*n),d=i+s.round(s.sin(r)*n),p=e+s.round(s.cos(a)*n),f=i+s.round(s.sin(a)*n),c===p&&d===f){if(a-r<s.PI)return"";c=p=e+n,d=f=i}return c===p&&d===f&&a-r<s.PI?"":(h=[e-n,i-n,e+n,i+n,c,d,p,f],g=o===l?' stroked="false" ':' strokeWeight="1px" strokeColor="'+o+'" ',m=u===l?' filled="false"':' fillColor="'+u+'" filled="true" ',v='<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+t+'" '+g+m+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+e+","+i+" wa "+h.join(", ")+' x e"> </v:shape>')},_drawRect:function(t,e,i,n,r,a,o){return this._drawShape(t,[[e,i],[e,i+r],[e+n,i+r],[e+n,i],[e,i]],a,o)},reset:function(){this.group.innerHTML=""},appendShape:function(t){var e=this["_draw"+t.type].apply(this,t.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",e):this.prerender+=e,this.lastShapeId=t.id,t.id},replaceWithShape:function(e,i){var n=t("#jqsshape"+e),r=this["_draw"+i.type].apply(this,i.args);n[0].outerHTML=r},replaceWithShapes:function(e,i){var n,r=t("#jqsshape"+e[0]),a="",o=i.length;for(n=0;n<o;n++)a+=this["_draw"+i[n].type].apply(this,i[n].args);for(r[0].outerHTML=a,n=1;n<e.length;n++)t("#jqsshape"+e[n]).remove()},insertAfterShape:function(e,i){var n=t("#jqsshape"+e),r=this["_draw"+i.type].apply(this,i.args);n[0].insertAdjacentHTML("afterEnd",r)},removeShapeId:function(e){var i=t("#jqsshape"+e);this.group.removeChild(i[0])},getShapeAt:function(t,e,i){var n=t.id.substr(8);return n},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})})}(document,Math)},function(t,e,i){!function(){"use strict";function t(){var t={color:["#03a9f4","#34495E","#BDC3C7","#3498DB","#9B59B6","#8abb6f","#759c6a","#bfd3b7"],title:{itemGap:8,textStyle:{fontWeight:"normal",color:"#408829"}},dataRange:{color:["#1f610a","#97b58d"]},toolbox:{color:["#408829","#408829","#408829","#408829"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#408829",type:"dashed"},crossStyle:{color:"#408829"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(64,136,41,0.2)",handleColor:"#408829"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#408829"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#408829"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#408829"},controlStyle:{normal:{color:"#408829"},emphasis:{color:"#408829"}}},k:{itemStyle:{normal:{color:"#68a54a",color0:"#a9cba2",lineStyle:{width:1,color:"#408829",color0:"#86b379"}}}},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#c12e34"}}},emphasis:{areaStyle:{color:"#99d2dd"},label:{textStyle:{color:"#c12e34"}}}}},force:{itemStyle:{normal:{linkStyle:{strokeColor:"#408829"}}}},chord:{padding:4,itemStyle:{normal:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"},chordStyle:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"},chordStyle:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{startAngle:225,endAngle:-45,axisLine:{show:!0,lineStyle:{color:[[.2,"#86b379"],[.8,"#68a54a"],[1,"#408829"]],width:8}},axisTick:{splitNumber:10,length:12,lineStyle:{color:"auto"}},axisLabel:{textStyle:{color:"auto"}},splitLine:{length:18,lineStyle:{color:"auto"}},pointer:{length:"90%",color:"auto"},title:{textStyle:{color:"#333"}},detail:{textStyle:{color:"auto"}}},textStyle:{fontFamily:"Arial, Verdana, sans-serif"}};if($("#mainb").length){var i=e.init(document.getElementById("mainb"),t);i.setOption({title:{text:"Graph title",subtext:"Graph Sub-text"},tooltip:{trigger:"axis"},legend:{data:["sales","purchases"]},toolbox:{show:!1},calculable:!1,xAxis:[{type:"category",data:["1?","2?","3?","4?","5?","6?","7?","8?","9?","10?","11?","12?"]}],yAxis:[{type:"value"}],series:[{name:"sales",type:"bar",data:[2,4.9,20,25,25.6,76.7,150,170,32.6,20,6.4,3.3],markPoint:{data:[{type:"max",name:"???"},{type:"min",name:"???"}]},markLine:{data:[{type:"average",name:"???"}]}},{name:"purchases",type:"bar",data:[2.6,5.9,9,26.4,28.7,70.7,175.6,89,48.7,18.8,6,2.3],markPoint:{data:[{name:"sales",value:182.2,xAxis:7,yAxis:183},{name:"purchases",value:2.3,xAxis:11,yAxis:3}]},markLine:{data:[{type:"average",name:"???"}]}}]})}if($("#echart_sonar").length){var n=e.init(document.getElementById("echart_sonar"),t);n.setOption({title:{text:"Budget vs spending",subtext:"Subtitle"},tooltip:{trigger:"item"},legend:{orient:"vertical",x:"right",y:"bottom",data:["Allocated Budget","Actual Spending"]},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},polar:[{indicator:[{text:"Sales",max:6e3},{text:"Administration",max:16e3},{text:"Information Techology",max:3e4},{text:"Customer Support",max:38e3},{text:"Development",max:52e3},{text:"Marketing",max:25e3}]}],calculable:!0,series:[{name:"Budget vs spending",type:"radar",data:[{value:[4300,1e4,28e3,35e3,5e4,19e3],name:"Allocated Budget"},{value:[5e3,14e3,28e3,31e3,42e3,21e3],name:"Actual Spending"}]}]})}if($("#echart_pyramid").length){var r=e.init(document.getElementById("echart_pyramid"),t);r.setOption({title:{text:"Echart Pyramid Graph",subtext:"Subtitle"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c}%"},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},legend:{data:["Something #1","Something #2","Something #3","Something #4","Something #5"],orient:"vertical",x:"left",y:"bottom"},calculable:!0,series:[{name:"漏斗图",type:"funnel",width:"40%",data:[{value:60,name:"Something #1"},{value:40,name:"Something #2"},{value:20,name:"Something #3"},{value:80,name:"Something #4"},{value:100,name:"Something #5"}]}]})}if($("#echart_gauge").length){var a=e.init(document.getElementById("echart_gauge"),t);a.setOption({tooltip:{formatter:"{a} <br/>{b} : {c}%"},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"Performance",type:"gauge",center:["50%","50%"],startAngle:140,endAngle:-140,min:0,max:100,precision:0,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"lightgreen"],[.4,"orange"],[.8,"skyblue"],[1,"#ff4500"]],width:30}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,formatter:function(t){switch(t+""){case"10":return"a";case"30":return"b";case"60":return"c";case"90":return"d";default:return""}},textStyle:{color:"#333"}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},pointer:{length:"80%",width:8,color:"auto"},title:{show:!0,offsetCenter:["-65%",-10],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:["-60%",10],formatter:"{value}%",textStyle:{color:"auto",fontSize:30}},data:[{value:50,name:"Performance"}]}]})}if($("#echart_line").length){ var o=e.init(document.getElementById("echart_line"),t);o.setOption({title:{text:"Line Graph",subtext:"Subtitle"},tooltip:{trigger:"axis"},legend:{x:220,y:40,data:["Intent","Pre-order","Deal"]},toolbox:{show:!0,feature:{magicType:{show:!0,title:{line:"Line",bar:"Bar",stack:"Stack",tiled:"Tiled"},type:["line","bar","stack","tiled"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Deal",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[10,12,21,54,260,830,710]},{name:"Pre-order",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[30,182,434,791,390,30,10]},{name:"Intent",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[1320,1132,601,234,120,90,20]}]})}if($("#echart_scatter").length){var s=e.init(document.getElementById("echart_scatter"),t);s.setOption({title:{text:"Scatter Graph",subtext:"Heinz 2003"},tooltip:{trigger:"axis",showDelay:0,axisPointer:{type:"cross",lineStyle:{type:"dashed",width:1}}},legend:{data:["Data2","Data1"]},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:"Save Image"}}},xAxis:[{type:"value",scale:!0,axisLabel:{formatter:"{value} cm"}}],yAxis:[{type:"value",scale:!0,axisLabel:{formatter:"{value} kg"}}],series:[{name:"Data1",type:"scatter",tooltip:{trigger:"item",formatter:function(t){return t.value.length>1?t.seriesName+" :<br/>"+t.value[0]+"cm "+t.value[1]+"kg ":t.seriesName+" :<br/>"+t.name+" : "+t.value+"kg "}},data:[[161.2,51.6],[167.5,59],[159.5,49.2],[157,63],[155.8,53.6],[170,59],[159.1,47.6],[166,69.8],[176.2,66.8],[160.2,75.2],[172.5,55.2],[170.9,54.2],[172.9,62.5],[153.4,42],[160,50],[147.2,49.8],[168.2,49.2],[175,73.2],[157,47.8],[167.6,68.8],[159.5,50.6],[175,82.5],[166.8,57.2],[176.5,87.8],[170.2,72.8],[174,54.5],[173,59.8],[179.9,67.3],[170.5,67.8],[160,47],[154.4,46.2],[162,55],[176.5,83],[160,54.4],[152,45.8],[162.1,53.6],[170,73.2],[160.2,52.1],[161.3,67.9],[166.4,56.6],[168.9,62.3],[163.8,58.5],[167.6,54.5],[160,50.2],[161.3,60.3],[167.6,58.3],[165.1,56.2],[160,50.2],[170,72.9],[157.5,59.8],[167.6,61],[160.7,69.1],[163.2,55.9],[152.4,46.5],[157.5,54.3],[168.3,54.8],[180.3,60.7],[165.5,60],[165,62],[164.5,60.3],[156,52.7],[160,74.3],[163,62],[165.7,73.1],[161,80],[162,54.7],[166,53.2],[174,75.7],[172.7,61.1],[167.6,55.7],[151.1,48.7],[164.5,52.3],[163.5,50],[152,59.3],[169,62.5],[164,55.7],[161.2,54.8],[155,45.9],[170,70.6],[176.2,67.2],[170,69.4],[162.5,58.2],[170.3,64.8],[164.1,71.6],[169.5,52.8],[163.2,59.8],[154.5,49],[159.8,50],[173.2,69.2],[170,55.9],[161.4,63.4],[169,58.2],[166.2,58.6],[159.4,45.7],[162.5,52.2],[159,48.6],[162.8,57.8],[159,55.6],[179.8,66.8],[162.9,59.4],[161,53.6],[151.1,73.2],[168.2,53.4],[168.9,69],[173.2,58.4],[171.8,56.2],[178,70.6],[164.3,59.8],[163,72],[168.5,65.2],[166.8,56.6],[172.7,105.2],[163.5,51.8],[169.4,63.4],[167.8,59],[159.5,47.6],[167.6,63],[161.2,55.2],[160,45],[163.2,54],[162.2,50.2],[161.3,60.2],[149.5,44.8],[157.5,58.8],[163.2,56.4],[172.7,62],[155,49.2],[156.5,67.2],[164,53.8],[160.9,54.4],[162.8,58],[167,59.8],[160,54.8],[160,43.2],[168.9,60.5],[158.2,46.4],[156,64.4],[160,48.8],[167.1,62.2],[158,55.5],[167.6,57.8],[156,54.6],[162.1,59.2],[173.4,52.7],[159.8,53.2],[170.5,64.5],[159.2,51.8],[157.5,56],[161.3,63.6],[162.6,63.2],[160,59.5],[168.9,56.8],[165.1,64.1],[162.6,50],[165.1,72.3],[166.4,55],[160,55.9],[152.4,60.4],[170.2,69.1],[162.6,84.5],[170.2,55.9],[158.8,55.5],[172.7,69.5],[167.6,76.4],[162.6,61.4],[167.6,65.9],[156.2,58.6],[175.2,66.8],[172.1,56.6],[162.6,58.6],[160,55.9],[165.1,59.1],[182.9,81.8],[166.4,70.7],[165.1,56.8],[177.8,60],[165.1,58.2],[175.3,72.7],[154.9,54.1],[158.8,49.1],[172.7,75.9],[168.9,55],[161.3,57.3],[167.6,55],[165.1,65.5],[175.3,65.5],[157.5,48.6],[163.8,58.6],[167.6,63.6],[165.1,55.2],[165.1,62.7],[168.9,56.6],[162.6,53.9],[164.5,63.2],[176.5,73.6],[168.9,62],[175.3,63.6],[159.4,53.2],[160,53.4],[170.2,55],[162.6,70.5],[167.6,54.5],[162.6,54.5],[160.7,55.9],[160,59],[157.5,63.6],[162.6,54.5],[152.4,47.3],[170.2,67.7],[165.1,80.9],[172.7,70.5],[165.1,60.9],[170.2,63.6],[170.2,54.5],[170.2,59.1],[161.3,70.5],[167.6,52.7],[167.6,62.7],[165.1,86.3],[162.6,66.4],[152.4,67.3],[168.9,63],[170.2,73.6],[175.2,62.3],[175.2,57.7],[160,55.4],[165.1,104.1],[174,55.5],[170.2,77.3],[160,80.5],[167.6,64.5],[167.6,72.3],[167.6,61.4],[154.9,58.2],[162.6,81.8],[175.3,63.6],[171.4,53.4],[157.5,54.5],[165.1,53.6],[160,60],[174,73.6],[162.6,61.4],[174,55.5],[162.6,63.6],[161.3,60.9],[156.2,60],[149.9,46.8],[169.5,57.3],[160,64.1],[175.3,63.6],[169.5,67.3],[160,75.5],[172.7,68.2],[162.6,61.4],[157.5,76.8],[176.5,71.8],[164.4,55.5],[160.7,48.6],[174,66.4],[163.8,67.3]],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]},markLine:{data:[{type:"average",name:"Mean"}]}},{name:"Data2",type:"scatter",tooltip:{trigger:"item",formatter:function(t){return t.value.length>1?t.seriesName+" :<br/>"+t.value[0]+"cm "+t.value[1]+"kg ":t.seriesName+" :<br/>"+t.name+" : "+t.value+"kg "}},data:[[174,65.6],[175.3,71.8],[193.5,80.7],[186.5,72.6],[187.2,78.8],[181.5,74.8],[184,86.4],[184.5,78.4],[175,62],[184,81.6],[180,76.6],[177.8,83.6],[192,90],[176,74.6],[174,71],[184,79.6],[192.7,93.8],[171.5,70],[173,72.4],[176,85.9],[176,78.8],[180.5,77.8],[172.7,66.2],[176,86.4],[173.5,81.8],[178,89.6],[180.3,82.8],[180.3,76.4],[164.5,63.2],[173,60.9],[183.5,74.8],[175.5,70],[188,72.4],[189.2,84.1],[172.8,69.1],[170,59.5],[182,67.2],[170,61.3],[177.8,68.6],[184.2,80.1],[186.7,87.8],[171.4,84.7],[172.7,73.4],[175.3,72.1],[180.3,82.6],[182.9,88.7],[188,84.1],[177.2,94.1],[172.1,74.9],[167,59.1],[169.5,75.6],[174,86.2],[172.7,75.3],[182.2,87.1],[164.1,55.2],[163,57],[171.5,61.4],[184.2,76.8],[174,86.8],[174,72.2],[177,71.6],[186,84.8],[167,68.2],[171.8,66.1],[182,72],[167,64.6],[177.8,74.8],[164.5,70],[192,101.6],[175.5,63.2],[171.2,79.1],[181.6,78.9],[167.4,67.7],[181.1,66],[177,68.2],[174.5,63.9],[177.5,72],[170.5,56.8],[182.4,74.5],[197.1,90.9],[180.1,93],[175.5,80.9],[180.6,72.7],[184.4,68],[175.5,70.9],[180.6,72.5],[177,72.5],[177.1,83.4],[181.6,75.5],[176.5,73],[175,70.2],[174,73.4],[165.1,70.5],[177,68.9],[192,102.3],[176.5,68.4],[169.4,65.9],[182.1,75.7],[179.8,84.5],[175.3,87.7],[184.9,86.4],[177.3,73.2],[167.4,53.9],[178.1,72],[168.9,55.5],[157.2,58.4],[180.3,83.2],[170.2,72.7],[177.8,64.1],[172.7,72.3],[165.1,65],[186.7,86.4],[165.1,65],[174,88.6],[175.3,84.1],[185.4,66.8],[177.8,75.5],[180.3,93.2],[180.3,82.7],[177.8,58],[177.8,79.5],[177.8,78.6],[177.8,71.8],[177.8,116.4],[163.8,72.2],[188,83.6],[198.1,85.5],[175.3,90.9],[166.4,85.9],[190.5,89.1],[166.4,75],[177.8,77.7],[179.7,86.4],[172.7,90.9],[190.5,73.6],[185.4,76.4],[168.9,69.1],[167.6,84.5],[175.3,64.5],[170.2,69.1],[190.5,108.6],[177.8,86.4],[190.5,80.9],[177.8,87.7],[184.2,94.5],[176.5,80.2],[177.8,72],[180.3,71.4],[171.4,72.7],[172.7,84.1],[172.7,76.8],[177.8,63.6],[177.8,80.9],[182.9,80.9],[170.2,85.5],[167.6,68.6],[175.3,67.7],[165.1,66.4],[185.4,102.3],[181.6,70.5],[172.7,95.9],[190.5,84.1],[179.1,87.3],[175.3,71.8],[170.2,65.9],[193,95.9],[171.4,91.4],[177.8,81.8],[177.8,96.8],[167.6,69.1],[167.6,82.7],[180.3,75.5],[182.9,79.5],[176.5,73.6],[186.7,91.8],[188,84.1],[188,85.9],[177.8,81.8],[174,82.5],[177.8,80.5],[171.4,70],[185.4,81.8],[185.4,84.1],[188,90.5],[188,91.4],[182.9,89.1],[176.5,85],[175.3,69.1],[175.3,73.6],[188,80.5],[188,82.7],[175.3,86.4],[170.5,67.7],[179.1,92.7],[177.8,93.6],[175.3,70.9],[182.9,75],[170.8,93.2],[188,93.2],[180.3,77.7],[177.8,61.4],[185.4,94.1],[168.9,75],[185.4,83.6],[180.3,85.5],[174,73.9],[167.6,66.8],[182.9,87.3],[160,72.3],[180.3,88.6],[167.6,75.5],[186.7,101.4],[175.3,91.1],[175.3,67.3],[175.9,77.7],[175.3,81.8],[179.1,75.5],[181.6,84.5],[177.8,76.6],[182.9,85],[177.8,102.5],[184.2,77.3],[179.1,71.8],[176.5,87.9],[188,94.3],[174,70.9],[167.6,64.5],[170.2,77.3],[167.6,72.3],[188,87.3],[174,80],[176.5,82.3],[180.3,73.6],[167.6,74.1],[188,85.9],[180.3,73.2],[167.6,76.3],[183,65.9],[183,90.9],[179.1,89.1],[170.2,62.3],[177.8,82.7],[179.1,79.1],[190.5,98.2],[177.8,84.1],[180.3,83.2],[180.3,83.2]],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]},markLine:{data:[{type:"average",name:"Mean"}]}}]})}if($("#echart_bar_horizontal").length){var i=e.init(document.getElementById("echart_bar_horizontal"),t);i.setOption({title:{text:"Bar Graph",subtext:"Graph subtitle"},tooltip:{trigger:"axis"},legend:{x:100,data:["2015","2016"]},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,xAxis:[{type:"value",boundaryGap:[0,.01]}],yAxis:[{type:"category",data:["Jan","Feb","Mar","Apr","May","Jun"]}],series:[{name:"2015",type:"bar",data:[18203,23489,29034,104970,131744,630230]},{name:"2016",type:"bar",data:[19325,23438,31e3,121594,134141,681807]}]})}if($("#echart_pie2").length){var l=e.init(document.getElementById("echart_pie2"),t);l.setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{x:"center",y:"bottom",data:["rose1","rose2","rose3","rose4","rose5","rose6"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,series:[{name:"Area Mode",type:"pie",radius:[25,90],center:["50%",170],roseType:"area",x:"50%",max:40,sort:"ascending",data:[{value:10,name:"rose1"},{value:5,name:"rose2"},{value:15,name:"rose3"},{value:25,name:"rose4"},{value:20,name:"rose5"},{value:35,name:"rose6"}]}]})}if($("#echart_donut").length){var u=e.init(document.getElementById("echart_donut"),t);u.setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},calculable:!0,legend:{x:"center",y:"bottom",data:["Direct Access","E-mail Marketing","Union Ad","Video Ads","Search Engine"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"],option:{funnel:{x:"25%",width:"50%",funnelAlign:"center",max:1548}}},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"Access to the resource",type:"pie",radius:["35%","55%"],itemStyle:{normal:{label:{show:!0},labelLine:{show:!0}},emphasis:{label:{show:!0,position:"center",textStyle:{fontSize:"14",fontWeight:"normal"}}}},data:[{value:335,name:"Direct Access"},{value:310,name:"E-mail Marketing"},{value:234,name:"Union Ad"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engine"}]}]})}if($("#echart_pie").length){var h=e.init(document.getElementById("echart_pie"),t);h.setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{x:"center",y:"bottom",data:["Direct Access","E-mail Marketing","Union Ad","Video Ads","Search Engine"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"],option:{funnel:{x:"25%",width:"50%",funnelAlign:"left",max:1548}}},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,series:[{name:"访问来源",type:"pie",radius:"55%",center:["50%","48%"],data:[{value:335,name:"Direct Access"},{value:310,name:"E-mail Marketing"},{value:234,name:"Union Ad"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engine"}]}]});var c={normal:{label:{show:!1},labelLine:{show:!1}}},d={normal:{color:"rgba(0,0,0,0)",label:{show:!1},labelLine:{show:!1}},emphasis:{color:"rgba(0,0,0,0)"}}}if($("#echart_mini_pie").length){var p=e.init(document.getElementById("echart_mini_pie"),t);p.setOption({title:{text:"Chart #2",subtext:"From ExcelHome",sublink:"http://e.weibo.com/1341556070/AhQXtjbqh",x:"center",y:"center",itemGap:20,textStyle:{color:"rgba(30,144,255,0.8)",fontFamily:"微软雅黑",fontSize:35,fontWeight:"bolder"}},tooltip:{show:!0,formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",x:170,y:45,itemGap:12,data:["68%Something #1","29%Something #2","3%Something #3"]},toolbox:{show:!0,feature:{mark:{show:!0},dataView:{show:!0,title:"Text View",lang:["Text View","Close","Refresh"],readOnly:!1},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"1",type:"pie",clockWise:!1,radius:[105,130],itemStyle:c,data:[{value:68,name:"68%Something #1"},{value:32,name:"invisible",itemStyle:d}]},{name:"2",type:"pie",clockWise:!1,radius:[80,105],itemStyle:c,data:[{value:29,name:"29%Something #2"},{value:71,name:"invisible",itemStyle:d}]},{name:"3",type:"pie",clockWise:!1,radius:[25,80],itemStyle:c,data:[{value:3,name:"3%Something #3"},{value:97,name:"invisible",itemStyle:d}]}]})}if($("#echart_world_map").length){var f=e.init(document.getElementById("echart_world_map"),t);f.setOption({title:{text:"World Population (2010)",subtext:"from United Nations, Total population, both sexes combined, as of 1 July (thousands)",x:"center",y:"top"},tooltip:{trigger:"item",formatter:function(t){var e=(t.value+"").split(".");return e=e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+"."+e[1],t.seriesName+"<br/>"+t.name+" : "+e}},toolbox:{show:!0,orient:"vertical",x:"right",y:"center",feature:{mark:{show:!0},dataView:{show:!0,title:"Text View",lang:["Text View","Close","Refresh"],readOnly:!1},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},dataRange:{min:0,max:1e6,text:["High","Low"],realtime:!1,calculable:!0,color:["#087E65","#03a9f4","#CBEAE3"]},series:[{name:"World Population (2010)",type:"map",mapType:"world",roam:!1,mapLocation:{y:60},itemStyle:{emphasis:{label:{show:!0}}},data:[{name:"Afghanistan",value:28397.812},{name:"Angola",value:19549.124},{name:"Albania",value:3150.143},{name:"United Arab Emirates",value:8441.537},{name:"Argentina",value:40374.224},{name:"Armenia",value:2963.496},{name:"French Southern and Antarctic Lands",value:268.065},{name:"Australia",value:22404.488},{name:"Austria",value:8401.924},{name:"Azerbaijan",value:9094.718},{name:"Burundi",value:9232.753},{name:"Belgium",value:10941.288},{name:"Benin",value:9509.798},{name:"Burkina Faso",value:15540.284},{name:"Bangladesh",value:151125.475},{name:"Bulgaria",value:7389.175},{name:"The Bahamas",value:66402.316},{name:"Bosnia and Herzegovina",value:3845.929},{name:"Belarus",value:9491.07},{name:"Belize",value:308.595},{name:"Bermuda",value:64.951},{name:"Bolivia",value:716.939},{name:"Brazil",value:195210.154},{name:"Brunei",value:27.223},{name:"Bhutan",value:716.939},{name:"Botswana",value:1969.341},{name:"Central African Republic",value:4349.921},{name:"Canada",value:34126.24},{name:"Switzerland",value:7830.534},{name:"Chile",value:17150.76},{name:"China",value:1359821.465},{name:"Ivory Coast",value:60508.978},{name:"Cameroon",value:20624.343},{name:"Democratic Republic of the Congo",value:62191.161},{name:"Republic of the Congo",value:3573.024},{name:"Colombia",value:46444.798},{name:"Costa Rica",value:4669.685},{name:"Cuba",value:11281.768},{name:"Northern Cyprus",value:1.468},{name:"Cyprus",value:1103.685},{name:"Czech Republic",value:10553.701},{name:"Germany",value:83017.404},{name:"Djibouti",value:834.036},{name:"Denmark",value:5550.959},{name:"Dominican Republic",value:10016.797},{name:"Algeria",value:37062.82},{name:"Ecuador",value:15001.072},{name:"Egypt",value:78075.705},{name:"Eritrea",value:5741.159},{name:"Spain",value:46182.038},{name:"Estonia",value:1298.533},{name:"Ethiopia",value:87095.281},{name:"Finland",value:5367.693},{name:"Fiji",value:860.559},{name:"Falkland Islands",value:49.581},{name:"France",value:63230.866},{name:"Gabon",value:1556.222},{name:"United Kingdom",value:62066.35},{name:"Georgia",value:4388.674},{name:"Ghana",value:24262.901},{name:"Guinea",value:10876.033},{name:"Gambia",value:1680.64},{name:"Guinea Bissau",value:10876.033},{name:"Equatorial Guinea",value:696.167},{name:"Greece",value:11109.999},{name:"Greenland",value:56.546},{name:"Guatemala",value:14341.576},{name:"French Guiana",value:231.169},{name:"Guyana",value:786.126},{name:"Honduras",value:7621.204},{name:"Croatia",value:4338.027},{name:"Haiti",value:9896.4},{name:"Hungary",value:10014.633},{name:"Indonesia",value:240676.485},{name:"India",value:1205624.648},{name:"Ireland",value:4467.561},{name:"Iran",value:240676.485},{name:"Iraq",value:30962.38},{name:"Iceland",value:318.042},{name:"Israel",value:7420.368},{name:"Italy",value:60508.978},{name:"Jamaica",value:2741.485},{name:"Jordan",value:6454.554},{name:"Japan",value:127352.833},{name:"Kazakhstan",value:15921.127},{name:"Kenya",value:40909.194},{name:"Kyrgyzstan",value:5334.223},{name:"Cambodia",value:14364.931},{name:"South Korea",value:51452.352},{name:"Kosovo",value:97.743},{name:"Kuwait",value:2991.58},{name:"Laos",value:6395.713},{name:"Lebanon",value:4341.092},{name:"Liberia",value:3957.99},{name:"Libya",value:6040.612},{name:"Sri Lanka",value:20758.779},{name:"Lesotho",value:2008.921},{name:"Lithuania",value:3068.457},{name:"Luxembourg",value:507.885},{name:"Latvia",value:2090.519},{name:"Morocco",value:31642.36},{name:"Moldova",value:103.619},{name:"Madagascar",value:21079.532},{name:"Mexico",value:117886.404},{name:"Macedonia",value:507.885},{name:"Mali",value:13985.961},{name:"Myanmar",value:51931.231},{name:"Montenegro",value:620.078},{name:"Mongolia",value:2712.738},{name:"Mozambique",value:23967.265},{name:"Mauritania",value:3609.42},{name:"Malawi",value:15013.694},{name:"Malaysia",value:28275.835},{name:"Namibia",value:2178.967},{name:"New Caledonia",value:246.379},{name:"Niger",value:15893.746},{name:"Nigeria",value:159707.78},{name:"Nicaragua",value:5822.209},{name:"Netherlands",value:16615.243},{name:"Norway",value:4891.251},{name:"Nepal",value:26846.016},{name:"New Zealand",value:4368.136},{name:"Oman",value:2802.768},{name:"Pakistan",value:173149.306},{name:"Panama",value:3678.128},{name:"Peru",value:29262.83},{name:"Philippines",value:93444.322},{name:"Papua New Guinea",value:6858.945},{name:"Poland",value:38198.754},{name:"Puerto Rico",value:3709.671},{name:"North Korea",value:1.468},{name:"Portugal",value:10589.792},{name:"Paraguay",value:6459.721},{name:"Qatar",value:1749.713},{name:"Romania",value:21861.476},{name:"Russia",value:21861.476},{name:"Rwanda",value:10836.732},{name:"Western Sahara",value:514.648},{name:"Saudi Arabia",value:27258.387},{name:"Sudan",value:35652.002},{name:"South Sudan",value:9940.929},{name:"Senegal",value:12950.564},{name:"Solomon Islands",value:526.447},{name:"Sierra Leone",value:5751.976},{name:"El Salvador",value:6218.195},{name:"Somaliland",value:9636.173},{name:"Somalia",value:9636.173},{name:"Republic of Serbia",value:3573.024},{name:"Suriname",value:524.96},{name:"Slovakia",value:5433.437},{name:"Slovenia",value:2054.232},{name:"Sweden",value:9382.297},{name:"Swaziland",value:1193.148},{name:"Syria",value:7830.534},{name:"Chad",value:11720.781},{name:"Togo",value:6306.014},{name:"Thailand",value:66402.316},{name:"Tajikistan",value:7627.326},{name:"Turkmenistan",value:5041.995},{name:"East Timor",value:10016.797},{name:"Trinidad and Tobago",value:1328.095},{name:"Tunisia",value:10631.83},{name:"Turkey",value:72137.546},{name:"United Republic of Tanzania",value:44973.33},{name:"Uganda",value:33987.213},{name:"Ukraine",value:46050.22},{name:"Uruguay",value:3371.982},{name:"United States of America",value:312247.116},{name:"Uzbekistan",value:27769.27},{name:"Venezuela",value:236.299},{name:"Vietnam",value:89047.397},{name:"Vanuatu",value:236.299},{name:"West Bank",value:13.565},{name:"Yemen",value:22763.008},{name:"South Africa",value:51452.352},{name:"Zambia",value:13216.985},{name:"Zimbabwe",value:13076.978}]}]})}}const e=i(435);t()}()},function(t,e,i){var n=i(2);!function(){for(var t in n){if(null==n||!n.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=n[t]}}();var r=i(269);!function(){for(var t in r){if(null==r||!r.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=r[t]}}(),i(268),i(486),i(497),i(501),i(506),i(510),i(520),i(532),i(538),i(546),i(561),i(565),i(569),i(581),i(587),i(592),i(598),i(602),i(608),i(612),i(615),i(629),i(635),i(641),i(642),i(643),i(650),i(66),i(654),i(666),i(295),i(303),i(669),i(677),i(681),i(682),i(689),i(696),i(699),i(702),i(705),i(714),i(725),i(728)},function(t,e,i){function n(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which}}function r(){}function a(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,i))return!1;r.silent&&(n=!0),r=r.parent}return!n||h}return!1}var o=i(0),s=i(10),l=i(437),u=i(36),h="silent";r.prototype.dispose=function(){};var c=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=function(t,e,i,n){u.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new r,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,l.call(this),this.setHandlerProxy(i)};d.prototype={constructor:d,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(o.each(c,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=this._hovered,r=n.target;r&&!r.__zr&&(n=this.findHover(n.x,n.y),r=n.target);var a=this._hovered=this.findHover(e,i),o=a.target,s=this.proxy;s.setCursor&&s.setCursor(o?o.cursor:"default"),r&&o!==r&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(a,"mousemove",t),o&&o!==r&&this.dispatchToElement(a,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,i=t.toElement||t.relatedTarget;do i=i&&i.parentNode;while(i&&9!=i.nodeType&&!(e=i===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,i){t=t||{};var r=t.target;if(!r||!r.silent){for(var a="on"+e,o=n(e,t,i);r&&(r[a]&&(o.cancelBubble=r[a].call(r,o)),r.trigger(e,o),r=r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[a]&&t[a].call(t,o),t.trigger&&t.trigger(e,o)}))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),r={x:t,y:e},o=n.length-1;o>=0;o--){var s;if(n[o]!==i&&!n[o].ignore&&(s=a(n[o],t,e))&&(!r.topTarget&&(r.topTarget=n[o]),s!==h)){r.target=n[o];break}}return r}},o.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){d.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||s.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}),o.mixin(d,u),o.mixin(d,l);var p=d;t.exports=p},function(t,e){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function n(t,e){return{target:t,topTarget:e&&e.topTarget}}i.prototype={constructor:i,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(n(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,r=t.offsetY,a=i-this._x,o=r-this._y;this._x=i,this._y=r,e.drift(a,o,t),this.dispatchToElement(n(e,t),"drag",t.event);var s=this.findHover(i,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.dispatchToElement(n(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchToElement(n(s,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(n(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var r=i;t.exports=r},function(t,e,i){function n(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var r=i(0),a=i(15),o=i(73),s=i(93),l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,r=0,o=e.length;r<o;r++)this._updateAndAddDisplayable(e[r],null,t);i.length=this._displayListLen,a.canvasSupported&&s(i,n)},_updateAndAddDisplayable:function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n){e=e?e.slice():[];for(var r=n,a=t;r;)r.parent=a,r.updateTransform(),e.push(r),a=r,r=r.clipPath}if(t.isGroup){for(var o=t._children,s=0;s<o.length;s++){var l=o[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof o&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var i=this._roots[e];i instanceof o&&i.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var a=r.indexOf(this._roots,t);a>=0&&(this.delFromStorage(t),this._roots.splice(a,1),t instanceof o&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:n};var u=l;t.exports=u},function(t,e,i){var n=i(249),r=i(54),a=i(0),o=a.isString,s=a.isFunction,l=a.isObject,u=a.isArrayLike,h=a.indexOf,c=function(){this.animators=[]};c.prototype={constructor:c,animate:function(t,e){var i,a=!1,o=this,s=this.__zr;if(t){var l=t.split("."),u=o;a="shape"===l[0];for(var c=0,d=l.length;c<d;c++)u&&(u=u[l[c]]);u&&(i=u)}else i=o;if(!i)return void r('Property "'+t+'" is not existed in element '+o.id);var p=o.animators,f=new n(i,e);return f.during(function(t){o.dirty(a)}).done(function(){p.splice(h(p,f),1)}),p.push(f),s&&s.animation.addAnimator(f),f},stopAnimation:function(t){for(var e=this.animators,i=e.length,n=0;n<i;n++)e[n].stop(t);return e.length=0,this},animateTo:function(t,e,i,n,r,a){function l(){h--,h||r&&r()}o(i)?(r=n,n=i,i=0):s(n)?(r=n,n="linear",i=0):s(i)?(r=i,i=0):s(e)?(r=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i);var u=this.animators.slice(),h=u.length;h||r&&r();for(var c=0;c<u.length;c++)u[c].done(l).start(n,a)},_animateToShallow:function(t,e,i,n,r){var a={},o=0;for(var s in i)if(i.hasOwnProperty(s))if(null!=e[s])l(i[s])&&!u(i[s])?this._animateToShallow(t?t+"."+s:s,e[s],i[s],n,r):(a[s]=i[s],o++);else if(null!=i[s])if(t){var h={};h[t]={},h[t][s]=i[s],this.attr(h)}else this.attr(s,i[s]);return o>0&&this.animate(t,!1).when(null==n?500:n,a).delay(r||0),this}};var d=c;t.exports=d},function(t,e,i){function n(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}var r=i(441);n.prototype={constructor:n,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var i=(t-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var n=this.easing,a="string"==typeof n?r[n]:n,o="function"==typeof a?a(i):i;return this.fire("frame",o),1==i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var a=n;t.exports=a},function(t,e){var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}},n=i;t.exports=n},function(t,e,i){function n(t){return parseInt(t,10)}function r(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function a(t,e,i){return M.copy(t.getBoundingRect()),t.transform&&M.applyTransform(t.transform),S.width=e,S.height=i,!M.intersect(S)}function o(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0}function s(t,e){for(var i=0;i<t.length;i++){var n=t[i];n.setTransform(e),e.beginPath(),n.buildPath(e,n.shape),e.clip(),n.restoreTransform(e)}}function l(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}var u=i(74),h=u.devicePixelRatio,c=i(0),d=i(54),p=i(12),f=i(93),g=i(443),m=i(254),v=i(55),y=i(15),_=1e5,b=314159,x=.01,w=.001,M=new p(0,0,0,0),S=new p(0,0,0,0),k=function(t,e,i){this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=c.extend({},i||{}),this.dpr=i.devicePixelRatio||h,this._singleCanvas=n,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""), this.storage=e;var a=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,n){var s=t.width,u=t.height;null!=i.width&&(s=i.width),null!=i.height&&(u=i.height),this.dpr=i.devicePixelRatio||1,t.width=s*this.dpr,t.height=u*this.dpr,this._width=s,this._height=u;var d=new g(t,this,this.dpr);d.__builtin__=!0,d.initContext(),o[b]=d,d.zlevel=b,a.push(b),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=l(this._width,this._height);t.appendChild(p)}this._hoverlayer=null,this._hoverElements=[]};k.prototype={constructor:k,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var n=0;n<i.length;n++){var r=i[n],a=this._layers[r];if(!a.__builtin__&&a.refresh){var o=0===n?this._backgroundColor:null;a.refresh(o)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape});i.__from=t,t.__hoverMir=i,i.setStyle(e),this._hoverElements.push(i)}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=c.indexOf(i,e);n>=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i<e.length;i++){var n=e[i].__from;n&&(n.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){f(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(_));var n={};i.ctx.save();for(var r=0;r<e;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,i,!0,n))):(t.splice(r,1),o.__hoverMir=null,e--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(_)},_paintList:function(t,e,i){if(this._redrawId===i){e=e||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!n){var r=this;m(function(){r._paintList(t,e,i)})}}},_compositeManually:function(){var t=this.getLayer(b).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},_doPaintList:function(t,e){for(var i=[],n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n],a=this._layers[r];a.__builtin__&&a!==this._hoverlayer&&(a.__dirty||e)&&i.push(a)}for(var o=!0,s=0;s<i.length;s++){var a=i[s],l=a.ctx,u={};l.save();var h=e?a.__startIndex:a.__drawIndex,d=!e&&a.incremental&&Date.now,p=d&&Date.now(),f=a.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(a.__startIndex===a.__endIndex)a.clear(!1,f);else if(h===a.__startIndex){var g=t[h];g.incremental&&g.notClear&&!e||a.clear(!1,f)}h===-1&&(console.error("For some unknown reason. drawIndex is -1"),h=a.__startIndex);for(var m=h;m<a.__endIndex;m++){var v=t[m];if(this._doPaintEl(v,a,e,u),v.__dirty=!1,d){var _=Date.now()-p;if(_>15)break}}a.__drawIndex=m,a.__drawIndex<a.__endIndex&&(o=!1),u.prevElClipPaths&&l.restore(),l.restore()}return y.wxa&&c.each(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),o},_doPaintEl:function(t,e,i,n){var r=e.ctx,l=t.transform;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&(!l||l[0]||l[3])&&(!t.culling||!a(t,this._width,this._height))){var u=t.__clipPaths;n.prevElClipPaths&&!o(u,n.prevElClipPaths)||(n.prevElClipPaths&&(e.ctx.restore(),n.prevElClipPaths=null,n.prevEl=null),u&&(r.save(),s(u,r),n.prevElClipPaths=u)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=b);var i=this._layers[t];return i||(i=new g("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]&&c.merge(i,this._layerConfig[t],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},insertLayer:function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=null,s=-1,l=this._domRoot;if(i[t])return void d("ZLevel "+t+" has been used already");if(!r(e))return void d("Layer of zlevel "+t+" is not valid");if(a>0&&t>n[0]){for(s=0;s<a-1&&!(n[s]<t&&n[s+1]>t);s++);o=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r.length;n++)i=r[n],t.call(e,this._layers[i],i)},eachBuiltinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a.length;r++)n=a[r],i=this._layers[n],i.__builtin__&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a.length;r++)n=a[r],i=this._layers[n],i.__builtin__||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}for(var r=null,a=0,i=0;i<t.length;i++){var o,n=t[i],s=n.zlevel;n.incremental?(o=this.getLayer(s+w,this._needsManuallyCompositing),o.incremental=!0,a=1):o=this.getLayer(s+(a>0?x:0),this._needsManuallyCompositing),o.__builtin__||d("ZLevel "+s+" has been used by unkown layer "+o.id),o!==r&&(o.__used=!0,o.__startIndex!==i&&(o.__dirty=!0),o.__startIndex=i,o.incremental?o.__drawIndex=-1:o.__drawIndex=i,e(i),r=o),n.__dirty&&(o.__dirty=!0,o.incremental&&o.__drawIndex<0&&(o.__drawIndex=i))}e(i),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?c.merge(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===t||r===t+x){var a=this._layers[r];c.merge(a,i[t],!0)}}}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(c.indexOf(i,t),1))},resize:function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style.height=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);c.each(this._progressiveLayers,function(i){i.resize(t,e)}),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(b).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[b].dom;var e=new g("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,n=e.dom.height,r=e.ctx;this.eachLayer(function(t){t.__builtin__?r.drawImage(t.dom,0,0,i,n):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())})}else for(var a={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var l=o[s];this._doPaintEl(l,e,!0,a)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],r=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[r]||n(l[i])||n(s.style[i]))-(n(l[a])||0)-(n(l[o])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),r=t.getBoundingRect(),a=t.style,o=a.shadowBlur*e,s=a.shadowOffsetX*e,l=a.shadowOffsetY*e,u=a.hasStroke()?a.lineWidth:0,h=Math.max(u/2,-s+o),c=Math.max(u/2,s+o),d=Math.max(u/2,-l+o),p=Math.max(u/2,l+o),f=r.width+h+c,g=r.height+d+p;i.width=f*e,i.height=g*e,n.scale(e,e),n.clearRect(0,0,f,g),n.dpr=e;var m={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[h-r.x,d-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(n);var y=v,_=new y({style:{x:0,y:0,image:i}});return null!=m.position&&(_.position=t.position=m.position),null!=m.rotation&&(_.rotation=t.rotation=m.rotation),null!=m.scale&&(_.scale=t.scale=m.scale),_}};var D=k;t.exports=D},function(t,e,i){function n(){return!1}function r(t,e,i){var n=a.createCanvas(),r=e.getWidth(),o=e.getHeight(),s=n.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=r+"px",s.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}var a=i(0),o=i(74),s=o.devicePixelRatio,l=i(251),u=i(253),h=function(t,e,i){var o;i=i||s,"string"==typeof t?o=r(t,e,i):a.isObject(t)&&(o=t,t=o.id),this.id=t,this.dom=o;var l=o.style;l&&(o.onselectstart=n,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};h.prototype={constructor:h,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=r("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,a&&(a.width=t*i,a.height=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t,e){var i=this.dom,n=this.ctx,r=i.width,a=i.height,e=e||this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,h=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,r/h,a/h)),n.clearRect(0,0,r,a),e&&"transparent"!==e){var c;e.colorStops?(c=e.__canvasGradient||l.getGradient(n,e,{x:0,y:0,width:r,height:a}),e.__canvasGradient=c):e.image&&(c=u.prototype.getCanvasPattern.call(e,n)),n.save(),n.fillStyle=c||e,n.fillRect(0,0,r,a),n.restore()}if(o){var d=this.domBack;n.save(),n.globalAlpha=s,n.drawImage(d,0,0,r,a),n.restore()}}};var c=h;t.exports=c},function(t,e,i){var n=i(0),r=i(27),a=r.Dispatcher,o=i(254),s=i(249),l=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,a.call(this)};l.prototype={constructor:l,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i<e.length;i++)this.addClip(e[i])},removeClip:function(t){var e=n.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e.length;i++)this.removeClip(e[i]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,i=this._clips,n=i.length,r=[],a=[],o=0;o<n;o++){var s=i[o],l=s.step(t,e);l&&(r.push(l),a.push(s))}for(var o=0;o<n;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r.length;for(var o=0;o<n;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(o(t),!e._paused&&e._update())}var e=this;this._running=!0,o(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){e=e||{};var i=new s(t,e.loop,e.getter,e.setter);return this.addAnimator(i),i}},n.mixin(l,a);var u=l;t.exports=u},function(t,e,i){function n(t){return"mousewheel"===t&&g.browser.firefox?"DOMMouseScroll":t}function r(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t.handler.dispatchToElement({target:r.target},a,r.event)}}function a(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function o(t){var e=t.pointerType;return"pen"===e||"touch"===e}function s(t){function e(t,e){return function(){if(!e._touching)return t.apply(e,arguments)}}p.each(_,function(e){t._handlers[e]=p.bind(w[e],t)}),p.each(x,function(e){t._handlers[e]=p.bind(w[e],t)}),p.each(y,function(i){t._handlers[i]=e(w[i],t)})}function l(t){function e(e,i){p.each(e,function(e){h(t,n(e),i._handlers[e])},i)}f.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new m,this._handlers={},s(this),g.pointerEventsSupported?e(x,this):(g.touchEventsSupported&&e(_,this),e(y,this))}var u=i(27),h=u.addEventListener,c=u.removeEventListener,d=u.normalizeEvent,p=i(0),f=i(36),g=i(15),m=i(446),v=300,y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_=["touchstart","touchend","touchmove"],b={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},x=p.map(y,function(t){var e=t.replace("mouse","pointer");return b[e]?e:t}),w={mousemove:function(t){t=d(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=d(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=d(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,r(this,t,"start"),w.mousemove.call(this,t),w.mousedown.call(this,t),a(this)},touchmove:function(t){t=d(this.dom,t),t.zrByTouch=!0,r(this,t,"change"),w.mousemove.call(this,t),a(this)},touchend:function(t){t=d(this.dom,t),t.zrByTouch=!0,r(this,t,"end"),w.mouseup.call(this,t),+new Date-this._lastTouchMoment<v&&w.click.call(this,t),a(this)},pointerdown:function(t){w.mousedown.call(this,t)},pointermove:function(t){o(t)||w.mousemove.call(this,t)},pointerup:function(t){w.mouseup.call(this,t)},pointerout:function(t){o(t)||w.mouseout.call(this,t)}};p.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){w[t]=function(e){e=d(this.dom,e),this.trigger(t,e)}});var M=l.prototype;M.dispose=function(){for(var t=y.concat(_),e=0;e<t.length;e++){var i=t[e];c(this.dom,n(i),this._handlers[i])}},M.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},p.mixin(l,f);var S=l;t.exports=S},function(t,e,i){function n(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function r(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var a=i(27),o=function(){this._track=[]};o.prototype={constructor:o,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=a.clientToLocal(i,l,{});r.points.push([u.zrX,u.zrY]),r.touches.push(l)}this._track.push(r)}},_recognize:function(t){for(var e in s)if(s.hasOwnProperty(e)){var i=s[e](this._track,t);if(i)return i}}};var s={pinch:function(t,e){var i=t.length;if(i){var a=(t[i-1]||{}).points,o=(t[i-2]||{}).points||a;if(o&&o.length>1&&a&&a.length>1){var s=n(a)/n(o);!isFinite(s)&&(s=1),e.pinchScale=s;var l=r(a);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},l=o;t.exports=l},function(t,e,i){var n=i(46),r=n([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getLineStyle:function(t){var e=r(this,t),i=this.getLineDash(e.lineWidth);return i&&(e.lineDash=i),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}};t.exports=a},function(t,e,i){var n=i(46),r=n([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a={getAreaStyle:function(t,e){return r(this,t,e)}};t.exports=a},function(t,e,i){var n=i(25),r=i(3),a=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(a):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return n.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},function(t,e,i){function n(t,e,i,n,r,a,o,s,l,u,h){var c=l*(m/180),d=g(c)*(t-i)/2+f(c)*(e-n)/2,v=-1*f(c)*(t-i)/2+g(c)*(e-n)/2,b=d*d/(o*o)+v*v/(s*s);b>1&&(o*=p(b),s*=p(b));var x=(r===a?-1:1)*p((o*o*(s*s)-o*o*(v*v)-s*s*(d*d))/(o*o*(v*v)+s*s*(d*d)))||0,w=x*o*v/s,M=x*-s*d/o,S=(t+i)/2+g(c)*w-f(c)*M,k=(e+n)/2+f(c)*w+g(c)*M,D=_([1,0],[(d-w)/o,(v-M)/s]),T=[(d-w)/o,(v-M)/s],L=[(-1*d-w)/o,(-1*v-M)/s],C=_(T,L);y(T,L)<=-1&&(C=m),y(T,L)>=1&&(C=0),0===a&&C>0&&(C-=2*m),1===a&&C<0&&(C+=2*m),h.addData(u,S,k,o,s,D,C,c,a)}function r(t){if(!t)return[];var e,i=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e<d.length;e++)i=i.replace(new RegExp(d[e],"g"),"|"+d[e]);var r,a=i.split("|"),o=0,s=0,l=new h,u=h.CMD;for(e=1;e<a.length;e++){var c,p=a[e],f=p.charAt(0),g=0,m=p.slice(1).replace(/e,-/g,"e-").split(",");m.length>0&&""===m[0]&&m.shift();for(var v=0;v<m.length;v++)m[v]=parseFloat(m[v]);for(;g<m.length&&!isNaN(m[g])&&!isNaN(m[0]);){var y,_,b,x,w,M,S,k=o,D=s;switch(f){case"l":o+=m[g++],s+=m[g++],c=u.L,l.addData(c,o,s);break;case"L":o=m[g++],s=m[g++],c=u.L,l.addData(c,o,s);break;case"m":o+=m[g++],s+=m[g++],c=u.M,l.addData(c,o,s),f="l";break;case"M":o=m[g++],s=m[g++],c=u.M,l.addData(c,o,s),f="L";break;case"h":o+=m[g++],c=u.L,l.addData(c,o,s);break;case"H":o=m[g++],c=u.L,l.addData(c,o,s);break;case"v":s+=m[g++],c=u.L,l.addData(c,o,s);break;case"V":s=m[g++],c=u.L,l.addData(c,o,s);break;case"C":c=u.C,l.addData(c,m[g++],m[g++],m[g++],m[g++],m[g++],m[g++]),o=m[g-2],s=m[g-1];break;case"c":c=u.C,l.addData(c,m[g++]+o,m[g++]+s,m[g++]+o,m[g++]+s,m[g++]+o,m[g++]+s),o+=m[g-2],s+=m[g-1];break;case"S":y=o,_=s;var T=l.len(),L=l.data;r===u.C&&(y+=o-L[T-4],_+=s-L[T-3]),c=u.C,k=m[g++],D=m[g++],o=m[g++],s=m[g++],l.addData(c,y,_,k,D,o,s);break;case"s":y=o,_=s;var T=l.len(),L=l.data;r===u.C&&(y+=o-L[T-4],_+=s-L[T-3]),c=u.C,k=o+m[g++],D=s+m[g++],o+=m[g++],s+=m[g++],l.addData(c,y,_,k,D,o,s);break;case"Q":k=m[g++],D=m[g++],o=m[g++],s=m[g++],c=u.Q,l.addData(c,k,D,o,s);break;case"q":k=m[g++]+o,D=m[g++]+s,o+=m[g++],s+=m[g++],c=u.Q,l.addData(c,k,D,o,s);break;case"T":y=o,_=s;var T=l.len(),L=l.data;r===u.Q&&(y+=o-L[T-4],_+=s-L[T-3]),o=m[g++],s=m[g++],c=u.Q,l.addData(c,y,_,o,s);break;case"t":y=o,_=s;var T=l.len(),L=l.data;r===u.Q&&(y+=o-L[T-4],_+=s-L[T-3]),o+=m[g++],s+=m[g++],c=u.Q,l.addData(c,y,_,o,s);break;case"A":b=m[g++],x=m[g++],w=m[g++],M=m[g++],S=m[g++],k=o,D=s,o=m[g++],s=m[g++],c=u.A,n(k,D,o,s,M,S,b,x,w,c,l);break;case"a":b=m[g++],x=m[g++],w=m[g++],M=m[g++],S=m[g++],k=o,D=s,o+=m[g++],s+=m[g++],c=u.A,n(k,D,o,s,M,S,b,x,w,c,l)}}"z"!==f&&"Z"!==f||(c=u.Z,l.addData(c)),r=c}return l.toStatic(),l}function a(t,e){var i=r(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e)}else{var e=t;i.rebuildPath(e)}},e.applyTransform=function(t){c(i,t),this.dirty(!0)},e}function o(t,e){return new u(a(t,e))}function s(t,e){return u.extend(a(t,e))}function l(t,e){for(var i=[],n=t.length,r=0;r<n;r++){var a=t[r];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),i.push(a.path)}var o=new u(e);return o.createPathProxy(),o.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},o}var u=i(14),h=i(47),c=i(454),d=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],p=Math.sqrt,f=Math.sin,g=Math.cos,m=Math.PI,v=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},y=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))},_=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(y(t,e))};e.createFromString=o,e.extendFromString=s,e.mergePath=l},function(t,e,i){function n(t,e){return Math.abs(t-e)<w}function r(){var t=S[0];S[0]=S[1],S[1]=t}function a(t,e,i,n,a,o,s,l,u,h){if(h>e&&h>n&&h>o&&h>l||h<e&&h<n&&h<o&&h<l)return 0;var c=y.cubicRootAt(e,n,o,l,h,M);if(0===c)return 0;for(var d,p,f=0,g=-1,m=0;m<c;m++){var v=M[m],_=0===v||1===v?.5:1,b=y.cubicAt(t,i,a,s,v);b<u||(g<0&&(g=y.cubicExtrema(e,n,o,l,S),S[1]<S[0]&&g>1&&r(),d=y.cubicAt(e,n,o,l,S[0]),g>1&&(p=y.cubicAt(e,n,o,l,S[1]))),f+=2==g?v<S[0]?d<e?_:-_:v<S[1]?p<d?_:-_:l<p?_:-_:v<S[0]?d<e?_:-_:l<d?_:-_)}return f}function o(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=y.quadraticRootAt(e,n,a,s,M);if(0===l)return 0;var u=y.quadraticExtremum(e,n,a);if(u>=0&&u<=1){for(var h=0,c=y.quadraticAt(e,n,a,u),d=0;d<l;d++){var p=0===M[d]||1===M[d]?.5:1,f=y.quadraticAt(t,i,r,M[d]);f<o||(h+=M[d]<u?c<e?p:-p:a<c?p:-p)}return h}var p=0===M[0]||1===M[0]?.5:1,f=y.quadraticAt(t,i,r,M[0]);return f<o?0:a<e?p:-p}function s(t,e,i,n,r,a,o,s){if(s-=e,s>i||s<-i)return 0;var l=Math.sqrt(i*i-s*s);M[0]=-l,M[1]=l;var u=Math.abs(n-r);if(u<1e-4)return 0;if(u%x<1e-4){n=0,r=x;var h=a?1:-1;return o>=M[0]+t&&o<=M[1]+t?h:0}if(a){var l=n;n=v(r),r=v(l)}else n=v(n),r=v(r);n>r&&(r+=x);for(var c=0,d=0;d<2;d++){var p=M[d];if(p+t>o){var f=Math.atan2(s,p),h=a?1:-1;f<0&&(f=x+f),(f>=n&&f<=r||f+x>=n&&f+x<=r)&&(f>Math.PI/2&&f<1.5*Math.PI&&(h=-h),c+=h)}}return c}function l(t,e,i,r,l){for(var u=0,h=0,c=0,m=0,v=0,y=0;y<t.length;){var x=t[y++];switch(x===b.M&&y>1&&(i||(u+=_(h,c,m,v,r,l))),1==y&&(h=t[y],c=t[y+1],m=h,v=c),x){case b.M:m=t[y++],v=t[y++],h=m,c=v;break;case b.L:if(i){if(d.containStroke(h,c,t[y],t[y+1],e,r,l))return!0}else u+=_(h,c,t[y],t[y+1],r,l)||0;h=t[y++],c=t[y++];break;case b.C:if(i){if(p.containStroke(h,c,t[y++],t[y++],t[y++],t[y++],t[y],t[y+1],e,r,l))return!0}else u+=a(h,c,t[y++],t[y++],t[y++],t[y++],t[y],t[y+1],r,l)||0;h=t[y++],c=t[y++];break;case b.Q:if(i){if(f.containStroke(h,c,t[y++],t[y++],t[y],t[y+1],e,r,l))return!0}else u+=o(h,c,t[y++],t[y++],t[y],t[y+1],r,l)||0;h=t[y++],c=t[y++];break;case b.A:var w=t[y++],M=t[y++],S=t[y++],k=t[y++],D=t[y++],T=t[y++],L=(t[y++],1-t[y++]),C=Math.cos(D)*S+w,I=Math.sin(D)*k+M;y>1?u+=_(h,c,C,I,r,l):(m=C,v=I);var A=(r-w)*k/S+w;if(i){if(g.containStroke(w,M,k,D,D+T,L,e,A,l))return!0}else u+=s(w,M,k,D,D+T,L,A,l);h=Math.cos(D+T)*S+w,c=Math.sin(D+T)*k+M;break;case b.R:m=h=t[y++],v=c=t[y++];var P=t[y++],E=t[y++],C=m+P,I=v+E;if(i){if(d.containStroke(m,v,C,v,e,r,l)||d.containStroke(C,v,C,I,e,r,l)||d.containStroke(C,I,m,I,e,r,l)||d.containStroke(m,I,m,v,e,r,l))return!0}else u+=_(C,v,C,I,r,l),u+=_(m,I,m,v,r,l);break;case b.Z:if(i){if(d.containStroke(h,c,m,v,e,r,l))return!0}else u+=_(h,c,m,v,r,l);h=m,c=v}}return i||n(c,v)||(u+=_(h,c,m,v,r,l)||0),0!==u}function u(t,e,i){return l(t,0,!1,e,i)}function h(t,e,i,n){return l(t,e,!0,i,n)}var c=i(47),d=i(258),p=i(452),f=i(259),g=i(453),m=i(260),v=m.normalizeRadian,y=i(33),_=i(261),b=c.CMD,x=2*Math.PI,w=1e-4,M=[-1,-1,-1],S=[-1,-1];e.contain=u,e.containStroke=h},function(t,e,i){function n(t,e,i,n,a,o,s,l,u,h,c){if(0===u)return!1;var d=u;if(c>e+d&&c>n+d&&c>o+d&&c>l+d||c<e-d&&c<n-d&&c<o-d&&c<l-d||h>t+d&&h>i+d&&h>a+d&&h>s+d||h<t-d&&h<i-d&&h<a-d&&h<s-d)return!1;var p=r.cubicProjectPoint(t,e,i,n,a,o,s,l,h,c,null);return p<=d/2}var r=i(33);e.containStroke=n},function(t,e,i){function n(t,e,i,n,r,s,l,u,h){if(0===l)return!1;var c=l;u-=t,h-=e;var d=Math.sqrt(u*u+h*h);if(d-c>i||d+c<i)return!1;if(Math.abs(n-r)%o<1e-4)return!0;if(s){var p=n;n=a(r),r=a(p)}else n=a(n),r=a(r);n>r&&(r+=o);var f=Math.atan2(h,u);return f<0&&(f+=o),f>=n&&f<=r||f+o>=n&&f+o<=r}var r=i(260),a=r.normalizeRadian,o=2*Math.PI;e.containStroke=n},function(t,e,i){function n(t,e){var i,n,r,a,c,d,p=t.data,f=s.M,g=s.C,m=s.L,v=s.R,y=s.A,_=s.Q;for(r=0,a=0;r<p.length;){switch(i=p[r++],a=r,n=0,i){case f:n=1;break;case m:n=1;break;case g:n=3;break;case _:n=2;break;case y:var b=e[4],x=e[5],w=u(e[0]*e[0]+e[1]*e[1]),M=u(e[2]*e[2]+e[3]*e[3]),S=h(-e[1]/M,e[0]/w);p[r]*=w,p[r++]+=b,p[r]*=M,p[r++]+=x,p[r++]*=w,p[r++]*=M,p[r++]+=S,p[r++]+=S,r+=2,a=r;break;case v:d[0]=p[r++],d[1]=p[r++],o(d,d,e),p[a++]=d[0],p[a++]=d[1],d[0]+=p[r++],d[1]+=p[r++],o(d,d,e),p[a++]=d[0],p[a++]=d[1]}for(c=0;c<n;c++){var d=l[c];d[0]=p[r++],d[1]=p[r++],o(d,d,e),p[a++]=d[0],p[a++]=d[1]}}}var r=i(47),a=i(10),o=a.applyTransform,s=r.CMD,l=[[],[],[]],u=Math.sqrt,h=Math.atan2;t.exports=n},function(t,e,i){var n=i(14),r=n.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=r},function(t,e,i){var n=i(14),r=i(262),a=n.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:r(n.prototype.brush),buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(o),h=Math.sin(o);t.moveTo(u*r+i,h*r+n),t.lineTo(u*a+i,h*a+n),t.arc(i,n,a,o,s,!l),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,l),t.closePath()}});t.exports=a},function(t,e,i){var n=i(14),r=n.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}});t.exports=r},function(t,e,i){var n=i(14),r=i(263),a=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){r.buildPath(t,e,!0)}});t.exports=a},function(t,e,i){function n(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function r(t,e){for(var i=t.length,r=[],a=0,s=1;s<i;s++)a+=o(t[s-1],t[s]);var l=a/2;l=l<i?i:l;for(var s=0;s<l;s++){var u,h,c,d=s/(l-1)*(e?i:i-1),p=Math.floor(d),f=d-p,g=t[p%i];e?(u=t[(p-1+i)%i],h=t[(p+1)%i],c=t[(p+2)%i]):(u=t[0===p?p:p-1],h=t[p>i-2?i-1:p+1],c=t[p>i-3?i-1:p+2]);var m=f*f,v=f*m;r.push([n(u[0],g[0],h[0],c[0],f,m,v),n(u[1],g[1],h[1],c[1],f,m,v)])}return r}var a=i(10),o=a.distance;t.exports=r},function(t,e,i){function n(t,e,i,n){var r,d,p,f,g=[],m=[],v=[],y=[];if(n){p=[1/0,1/0],f=[-(1/0),-(1/0)];for(var _=0,b=t.length;_<b;_++)a(p,p,t[_]),o(f,f,t[_]);a(p,p,n[0]),o(f,f,n[1])}for(var _=0,b=t.length;_<b;_++){var x=t[_];if(i)r=t[_?_-1:b-1],d=t[(_+1)%b];else{if(0===_||_===b-1){g.push(h(t[_]));continue}r=t[_-1],d=t[_+1]}c(m,d,r),s(m,m,e);var w=l(x,r),M=l(x,d),S=w+M;0!==S&&(w/=S,M/=S),s(v,m,-w),s(y,m,M);var k=u([],x,v),D=u([],x,y);n&&(o(k,k,p),a(k,k,f),o(D,D,p),a(D,D,f)),g.push(k),g.push(D)}return i&&g.push(g.shift()),g}var r=i(10),a=r.min,o=r.max,s=r.scale,l=r.distance,u=r.add,h=r.clone,c=r.sub;t.exports=n},function(t,e,i){var n=i(14),r=i(263),a=n.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){r.buildPath(t,e,!1)}});t.exports=a},function(t,e,i){var n=i(14),r=i(256),a=n.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,a=e.width,o=e.height;e.r?r.buildPath(t,e):t.rect(i,n,a,o),t.closePath()}});t.exports=a},function(t,e,i){var n=i(14),r=n.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(i,n),o<1&&(r=i*(1-o)+r*o,a=n*(1-o)+a*o),t.lineTo(r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});t.exports=r},function(t,e,i){function n(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?d:h)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?d:h)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?c:u)(t.x1,t.cpx1,t.x2,e),(i?c:u)(t.y1,t.cpy1,t.y2,e)]}var r=i(14),a=i(10),o=i(33),s=o.quadraticSubdivide,l=o.cubicSubdivide,u=o.quadraticAt,h=o.cubicAt,c=o.quadraticDerivativeAt,d=o.cubicDerivativeAt,p=[],f=r.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.cpx1,u=e.cpy1,h=e.cpx2,c=e.cpy2,d=e.percent;0!==d&&(t.moveTo(i,n),null==h||null==c?(d<1&&(s(i,o,r,d,p),o=p[1],r=p[2],s(n,u,a,d,p),u=p[1],a=p[2]),t.quadraticCurveTo(o,u,r,a)):(d<1&&(l(i,o,h,r,d,p),o=p[1],h=p[2],r=p[3],l(n,u,c,a,d,p),u=p[1],c=p[2],a=p[3]),t.bezierCurveTo(o,u,h,c,r,a)))},pointAt:function(t){return n(this.shape,t,!1)},tangentAt:function(t){var e=n(this.shape,t,!0);return a.normalize(e,e)}});t.exports=f},function(t,e,i){var n=i(14),r=n.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,a,o,!s)}});t.exports=r},function(t,e,i){var n=i(14),r=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e.length;i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),n.prototype.getBoundingRect.call(this)}});t.exports=r},function(t,e,i){var n=i(0),r=i(76),a=function(t,e,i,n,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,this.type="radial",this.global=a||!1,r.call(this,n)};a.prototype={constructor:a},n.inherits(a,r);var o=a;t.exports=o},function(t,e,i){var n=i(46),r=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),a={getItemStyle:function(t,e){var i=r(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=a},function(t,e){var i={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};t.exports=i},function(t,e){var i="";"undefined"!=typeof navigator&&(i=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:i.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut", animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};t.exports=n},function(t,e,i){function n(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function r(t,e,i){var n,r,a=[],o=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;d(l,function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=s),d([r].concat(a).concat(u.map(o,function(t){return t.option})),function(t){d(e,function(e){e(t,i)})}),{baseOption:r,timelineOptions:a,mediaDefault:n,mediaList:o}}function a(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return u.each(t,function(t,e){var i=e.match(m);if(i&&i[1]&&i[2]){var a=i[1],s=i[2].toLowerCase();o(n[s],t,a)||(r=!1)}}),r}function o(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e}function s(t,e){return t.join(",")===e.join(",")}function l(t,e){e=e||{},d(e,function(e,i){if(null!=e){var n=t[i];if(c.hasClass(i)){e=h.normalizeToArray(e),n=h.normalizeToArray(n);var r=h.mappingToExists(n,e);t[i]=f(r,function(t){return t.option&&t.exist?g(t.exist,t.option,!0):t.exist||t.option})}else t[i]=g(n,e,!0)}})}var u=i(0),h=i(5),c=i(16),d=u.each,p=u.clone,f=u.map,g=u.merge,m=/^(min|max)?(.+)$/;n.prototype={constructor:n,setOption:function(t,e){t&&u.each(h.normalizeToArray(t.series),function(t){t&&t.data&&u.isTypedArray(t.data)&&u.setAsPrimitive(t.data)}),t=p(t,!0);var i=this._optionBackup,n=r.call(this,t,e,!i);this._newBaseOption=n.baseOption,i?(l(i.baseOption,n.baseOption),n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=f(e.timelineOptions,p),this._mediaList=f(e.mediaList,p),this._mediaDefault=p(e.mediaDefault),this._currentMediaIndices=[],p(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=p(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,r=this._mediaDefault,o=[],l=[];if(!n.length&&!r)return l;for(var u=0,h=n.length;u<h;u++)a(n[u].query,e,i)&&o.push(u);return!o.length&&r&&(o=[-1]),o.length&&!s(o,this._currentMediaIndices)&&(l=f(o,function(t){return p(t===-1?r.option:n[t].option)})),this._currentMediaIndices=o,l}};var v=n;t.exports=v},function(t,e,i){function n(t,e){e=e.split(",");for(var i=t,n=0;n<e.length&&(i=i&&i[e[n]],null!=i);n++);return i}function r(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e.length-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function a(t){l(f,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function o(t,e){c(t,e),t.series=p(t.series),l(t.series,function(t){if(h(t)){var e=t.type;if("pie"!==e&&"gauge"!==e||null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===e){var i=n(t,"pointer.color");null!=i&&r(t,"itemStyle.normal.color",i)}a(t)}}),t.dataRange&&(t.visualMap=t.dataRange),l(g,function(e){var i=t[e];i&&(u(i)||(i=[i]),l(i,function(t){a(t)}))})}var s=i(0),l=s.each,u=s.isArray,h=s.isObject,c=i(473),d=i(5),p=d.normalizeToArray,f=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],g=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];t.exports=o},function(t,e,i){function n(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=m.length;i<n;i++){var r=m[i],a=e.normal,o=e.emphasis;a&&a[r]&&(t[r]=t[r]||{},t[r].normal?d.merge(t[r].normal,a[r]):t[r].normal=a[r],a[r]=null),o&&o[r]&&(t[r]=t[r]||{},t[r].emphasis?d.merge(t[r].emphasis,o[r]):t[r].emphasis=o[r],o[r]=null)}}function r(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,d.defaults(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r)}}function a(t){r(t,"itemStyle"),r(t,"lineStyle"),r(t,"areaStyle"),r(t,"label"),r(t,"labelLine"),r(t,"upperLabel"),r(t,"edgeLabel")}function o(t,e){var i=g(t)&&t[e],n=g(i)&&i.textStyle;if(n)for(var r=0,a=p.TEXT_STYLE_OPTIONS.length;r<a;r++){var e=p.TEXT_STYLE_OPTIONS[r];n.hasOwnProperty(e)&&(i[e]=n[e])}}function s(t){t&&(a(t),o(t,"label"),t.emphasis&&o(t.emphasis,"label"))}function l(t){if(g(t)){n(t),a(t),o(t,"label"),o(t,"upperLabel"),o(t,"edgeLabel"),t.emphasis&&(o(t.emphasis,"label"),o(t.emphasis,"upperLabel"),o(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(n(e),s(e));var i=t.markLine;i&&(n(i),s(i));var l=t.markArea;l&&s(l);var u=t.data;if("graph"===t.type){u=u||t.nodes;var h=t.links||t.edges;if(h&&!d.isTypedArray(h))for(var c=0;c<h.length;c++)s(h[c]);d.each(t.categories,function(t){a(t)})}if(u&&!d.isTypedArray(u))for(var c=0;c<u.length;c++)s(u[c]);var e=t.markPoint;if(e&&e.data)for(var p=e.data,c=0;c<p.length;c++)s(p[c]);var i=t.markLine;if(i&&i.data)for(var f=i.data,c=0;c<f.length;c++)d.isArray(f[c])?(s(f[c][0]),s(f[c][1])):s(f[c]);"gauge"===t.type?(o(t,"axisLabel"),o(t,"title"),o(t,"detail")):"treemap"===t.type?(r(t.breadcrumb,"itemStyle"),d.each(t.levels,function(t){a(t)})):"tree"===t.type&&a(t.leaves)}}function u(t){return d.isArray(t)?t:t?[t]:[]}function h(t){return(d.isArray(t)?t[0]:t)||{}}function c(t,e){f(u(t.series),function(t){g(t)&&l(t)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),f(i,function(e){f(u(t[e]),function(t){t&&(o(t,"axisLabel"),o(t.axisPointer,"label"))})}),f(u(t.parallel),function(t){var e=t&&t.parallelAxisDefault;o(e,"axisLabel"),o(e&&e.axisPointer,"label")}),f(u(t.calendar),function(t){r(t,"itemStyle"),o(t,"dayLabel"),o(t,"monthLabel"),o(t,"yearLabel")}),f(u(t.radar),function(t){o(t,"name")}),f(u(t.geo),function(t){g(t)&&(s(t),f(u(t.regions),function(t){s(t)}))}),f(u(t.timeline),function(t){s(t),r(t,"label"),r(t,"itemStyle"),r(t,"controlStyle",!0);var e=t.data;d.isArray(e)&&d.each(e,function(t){d.isObject(t)&&(r(t,"label"),r(t,"itemStyle"))})}),f(u(t.toolbox),function(t){r(t,"iconStyle"),f(t.feature,function(t){r(t,"iconStyle")})}),o(h(t.axisPointer),"label"),o(h(t.tooltip).axisPointer,"label")}var d=i(0),p=i(5),f=d.each,g=d.isObject,m=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];t.exports=c},function(t,e,i){function n(t){var e=o();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(a)}}),e.each(r)}function r(t){s(t,function(e,i){var n=[],r=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(a,function(a,l,u){var h=o.get(e.stackedDimension,u);if(isNaN(h))return r;var c,d;s?d=o.getRawIndex(u):c=o.get(e.stackedByDimension,u);for(var p=NaN,f=i-1;f>=0;f--){var g=t[f];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(h>=0&&m>0||h<=0&&m<0){h+=m,p=m;break}}}return n[0]=h,n[1]=p,n});o.hostModel.setData(l),e.data=l})}var a=i(0),o=a.createHashMap,s=a.each;t.exports=n},function(t,e,i){var n=i(76),r={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),r=(t.visualColorAccessPath||"itemStyle.color").split("."),a=t.get(r)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(i.setVisual("color",a),!e.isSeriesFiltered(t)){"function"!=typeof a||a instanceof n||i.each(function(e){i.setItemVisual(e,"color",a(t.getDataParams(e)))});var o=function(t,e){var i=t.getItemModel(e),n=i.get(r,!0);null!=n&&t.setItemVisual(e,"color",n)};return{dataEach:i.hasItemOption?o:null}}}};t.exports=r},function(t,e,i){function n(t,e){function i(t,e){if("string"!=typeof t)return t;var i=t;return r.each(e,function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),i}function n(t){var e=u.get(t);if(null==e){for(var i=t.split("."),n=a.aria,r=0;r<i.length;++r)n=n[i[r]];return n}return e}function o(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}function l(t){return a.series.typeNames[t]||"自定义图"}var u=e.getModel("aria");if(u.get("show")){if(u.get("description"))return void t.setAttribute("aria-label",u.get("description"));var h=0;e.eachSeries(function(t,e){++h},this);var c,d=u.get("data.maxCount")||10,p=u.get("series.maxCount")||10,f=Math.min(h,p);if(!(h<1)){var g=o();c=g?i(n("general.withTitle"),{title:g}):n("general.withoutTitle");var m=[],v=h>1?"series.multiple.prefix":"series.single.prefix";c+=i(n(v),{seriesCount:h}),e.eachSeries(function(t,e){if(e<f){var r,a=t.get("name"),o="series."+(h>1?"multiple":"single")+".";r=n(a?o+"withName":o+"withoutName"),r=i(r,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var u=t.getData();window.data=u,r+=u.count()>d?i(n("data.partialData"),{displayCnt:d}):n("data.allData");for(var c=[],p=0;p<u.count();p++)if(p<d){var g=u.getName(p),v=s(u,p);c.push(i(n(g?"data.withName":"data.withoutName"),{name:g,value:v}))}r+=c.join(n("data.separator.middle"))+n("data.separator.end"),m.push(r)}}),c+=m.join(n("series.multiple.separator.middle"))+n("series.multiple.separator.end"),t.setAttribute("aria-label",c)}}}var r=i(0),a=i(39),o=i(37),s=o.retrieveRawValue;t.exports=n},function(t,e,i){function n(t,e){e=e||{},r.defaults(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var i=new a.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),n=new a.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),s=new a.Rect({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});n.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut");var l=new a.Group;return l.add(n),l.add(s),l.add(i),l.resize=function(){var e=t.getWidth()/2,r=t.getHeight()/2;n.setShape({cx:e,cy:r});var a=n.shape.r;s.setShape({x:e-a,y:r-a,width:2*a,height:2*a}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},l.resize(),l}var r=i(0),a=i(3),o=Math.PI;t.exports=n},function(t,e,i){function n(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;var i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=w()}function r(t,e,i,n,r){function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}r=r||{};var o;_(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,d=h.agentStubMap;d.each(function(t){a(r,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),E(h,n);var p=t.getPerformArgs(h,r.block);d.each(function(t){t.perform(p)}),o|=h.perform(p)}else u&&u.each(function(s,l){a(r,s)&&s.dirty();var u=t.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&i.isSeriesFiltered(s.context.model),E(s,n),o|=s.perform(u)})}}),t.unfinished|=o}function a(t,e,i,n,r){function a(i){var a=i.uid,s=o.get(a)||o.set(a,k({plan:c,reset:d,count:f}));s.context={model:i,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},g(t,i,s)}var o=i.seriesTaskMap||(i.seriesTaskMap=w()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(a):s?n.eachRawSeriesByType(s,a):l&&l(n,r).each(a);var u=t._pipelineMap;o.each(function(t,e){u.get(e)||(t.dispose(),o.removeKey(e))})}function o(t,e,i,n,r){function a(e){var i=e.uid,n=u.get(i);n||(n=u.set(i,k({reset:l,onDirty:h})),o.dirty()),n.context={model:e,overallProgress:p,modifyOutputEnd:f},n.agent=o,n.__block=p,g(t,e,n)}var o=i.overallTask=i.overallTask||k({reset:s});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:t};var u=o.agentStubMap=o.agentStubMap||w(),c=e.seriesType,d=e.getTargetSeries,p=!0,f=e.modifyOutputEnd;c?n.eachRawSeriesByType(c,a):d?d(n,r).each(a):(p=!1,_(n.getSeries(),a));var m=t._pipelineMap;u.each(function(t,e){m.get(e)||(t.dispose(),o.dirty(),u.removeKey(e))})}function s(t){t.overallReset(t.ecModel,t.api,t.payload)}function l(t,e){return t.overallProgress&&u}function u(){this.agent.dirty(),this.getDownstream().dirty()}function h(){this.agent&&this.agent.dirty()}function c(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function d(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=A(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?b(e,function(t,e){return p(e)}):O}function p(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a<e.end;a++)r.dataEach(n,a);else r&&r.progress&&r.progress(e,n)}}function f(t){return t.data.count()}function g(t,e,i){var n=e.uid,r=t._pipelineMap.get(n);!r.head&&(r.head=i),r.tail&&r.tail.pipe(i),r.tail=i,i.__idxInPipeline=r.count++,i.__pipeline=r}function m(t){R=null;try{t(H,z)}catch(e){}return R}function v(t,e){for(var i in e.prototype)t[i]=M}var y=i(0),_=y.each,b=y.map,x=(y.isArray,y.isFunction),w=y.createHashMap,M=y.noop,S=i(98),k=S.createTask,D=i(77),T=D.getUID,L=i(257),C=i(267),I=i(5),A=I.normalizeToArray,P=n.prototype;P.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},P.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,a=r?i.step:null,o=n&&n.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},P.getPipeline=function(t){return this._pipelineMap.get(t)},P.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),a=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=i.context={progressiveRender:a,modDataCount:s,large:o}},P.restorePipelines=function(t){var e=this,i=e._pipelineMap=w();t.eachSeries(function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),g(e,t,t.dataTask)})},P.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;_(this._allHandlers,function(n){var r=t.get(n.uid)||t.set(n.uid,[]);n.reset&&a(this,n,r,e,i),n.overallReset&&o(this,n,r,e,i)},this)},P.prepareView=function(t,e,i,n){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=i,a.api=n,r.__block=!t.incrementalPrepareRender,g(this,e,r)},P.performDataProcessorTasks=function(t,e){r(this,this._dataProcessorHandlers,t,e,{block:!0})},P.performVisualTasks=function(t,e,i){r(this,this._visualHandlers,t,e,i)},P.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},P.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var E=P.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},O=p(0);n.wrapStageHandler=function(t,e){return x(t)&&(t={overallReset:t,seriesType:m(t)}),t.uid=T("stageHandler"),e&&(t.visualType=e),t};var R,H={},z={};v(H,L),v(z,C),H.eachSeriesByType=H.eachRawSeriesByType=function(t){R=t},H.eachComponent=function(t){"series"===t.mainType&&t.subType&&(R=t.subType)};var Y=n;t.exports=Y},function(t,e){var i=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:i,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],i]};t.exports=n},function(t,e){var i="#eee",n=function(){return{axisLine:{lineStyle:{color:i}},axisTick:{lineStyle:{color:i}},axisLabel:{textStyle:{color:i}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:i}}}},r=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],a={color:r,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:i},crossStyle:{color:i}}},legend:{textStyle:{color:i}},textStyle:{color:i},title:{textStyle:{color:i}},toolbox:{iconStyle:{normal:{borderColor:i}}},dataZoom:{textStyle:{color:i}},visualMap:{textStyle:{color:i}},timeline:{lineStyle:{color:i},itemStyle:{normal:{color:r[1]}},label:{normal:{textStyle:{color:i}}},controlStyle:{normal:{color:i,borderColor:i}}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:r},gauge:{title:{textStyle:{color:i}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};a.categoryAxis.splitLine.show=!1;var o=a;t.exports=o},function(t,e,i){function n(t){return s(t.getSource(),t)}function r(t,e){var i=e;h.isInstance(e)||(i=new h(e),o.mixin(i,u));var n=l.createScaleByModel(i);return n.setExtent(t[0],t[1]),l.niceScaleExtent(n,i),n}function a(t){o.mixin(t,u)}var o=i(0),s=i(30),l=i(23),u=i(50),h=i(17),c=i(8);c.getLayoutRect;e.getLayoutRect=c.getLayoutRect;var d=i(31),p=d.enableDataStack,f=d.isDimensionStacked,g=d.getStackedDimension,m=i(270);e.completeDimensions=m;var v=i(49);e.createDimensions=v;var y=i(21);e.createSymbol=y.createSymbol;var _={isDimensionStacked:f,enableDataStack:p,getStackedDimension:g};e.createList=n,e.dataStack=_,e.createScale=r,e.mixinAxisModelCommonMethods=a},function(t,e,i){var n=i(0),r=i(80),a=i(271),o=r.prototype,s=r.extend({type:"ordinal",init:function(t,e){t&&!n.isArray(t)||(t=new a({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:n.noop,niceExtent:n.noop});s.create=function(){return new s};var l=s;t.exports=l},function(t,e,i){var n=i(0),r=i(4),a=i(11),o=i(272),s=i(81),l=s.prototype,u=Math.ceil,h=Math.floor,c=1e3,d=60*c,p=60*d,f=24*p,g=function(t,e,i,n){for(;i<n;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i},m=s.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return a.formatTime(e[0],i,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=f,e[1]+=f),e[1]===-(1/0)&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-f}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var n=this._interval;t.fixMin||(e[0]=r.round(h(e[0]/n)*n)),t.fixMax||(e[1]=r.round(u(e[1]/n)*n))},niceTicks:function(t,e,i){t=t||10;var n=this._extent,a=n[1]-n[0],s=a/t;null!=e&&s<e&&(s=e),null!=i&&s>i&&(s=i);var l=v.length,c=g(v,s,0,l),d=v[Math.min(c,l-1)],p=d[1];if("year"===d[0]){var f=a/p,m=r.nice(f/t,!0);p*=m}var y=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,_=[Math.round(u((n[0]-y)/p)*p+y),Math.round(h((n[1]-y)/p)*p+y)];o.fixExtent(_,n),this._stepLvl=d,this._interval=p,this._niceExtent=_},parse:function(t){return+r.parseDate(t)}});n.each(["contain","normalize"],function(t){m.prototype[t]=function(e){return l[t].call(this,this.parse(e))}});var v=[["hh:mm:ss",c],["hh:mm:ss",5*c],["hh:mm:ss",10*c],["hh:mm:ss",15*c],["hh:mm:ss",30*c],["hh:mm\nMM-dd",d],["hh:mm\nMM-dd",5*d],["hh:mm\nMM-dd",10*d],["hh:mm\nMM-dd",15*d],["hh:mm\nMM-dd",30*d],["hh:mm\nMM-dd",p],["hh:mm\nMM-dd",2*p],["hh:mm\nMM-dd",6*p],["hh:mm\nMM-dd",12*p],["MM-dd\nyyyy",f],["MM-dd\nyyyy",2*f],["MM-dd\nyyyy",3*f],["MM-dd\nyyyy",4*f],["MM-dd\nyyyy",5*f],["MM-dd\nyyyy",6*f],["week",7*f],["MM-dd\nyyyy",10*f],["week",14*f],["week",21*f],["month",31*f],["week",42*f],["month",62*f],["week",42*f],["quarter",380*f/4],["month",31*f*4],["month",31*f*5],["half-year",380*f/2],["month",31*f*8],["month",31*f*10],["year",380*f]];m.create=function(t){return new m({useUTC:t.ecModel.get("useUTC")})};var y=m;t.exports=y},function(t,e,i){function n(t,e){return c(t,h(e))}var r=i(0),a=i(80),o=i(4),s=i(81),l=a.prototype,u=s.prototype,h=o.getPrecisionSafe,c=o.round,d=Math.floor,p=Math.ceil,f=Math.pow,g=Math.log,m=a.extend({type:"log",base:10,$constructor:function(){a.apply(this,arguments),this._originalScale=new s},getTicks:function(){var t=this._originalScale,e=this._extent,i=t.getExtent();return r.map(u.getTicks.call(this),function(r){var a=o.round(f(this.base,r));return a=r===e[0]&&t.__fixMin?n(a,i[0]):a,a=r===e[1]&&t.__fixMax?n(a,i[1]):a},this)},getLabel:u.getLabel,scale:function(t){return t=l.scale.call(this,t),f(this.base,t)},setExtent:function(t,e){var i=this.base;t=g(t)/g(i),e=g(e)/g(i),u.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=l.getExtent.call(this);e[0]=f(t,e[0]),e[1]=f(t,e[1]);var i=this._originalScale,r=i.getExtent();return i.__fixMin&&(e[0]=n(e[0],r[0])),i.__fixMax&&(e[1]=n(e[1],r[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=g(t[0])/g(e),t[1]=g(t[1])/g(e),l.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=o.quantity(i),r=t/i*n;for(r<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var a=[o.round(p(e[0]/n)*n),o.round(d(e[1]/n)*n)];this._interval=n,this._niceExtent=a}},niceExtent:function(t){u.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});r.each(["contain","normalize"],function(t){m.prototype[t]=function(e){return e=g(e)/g(this.base),l[t].call(this,e)}}),m.create=function(){return new m};var v=m;t.exports=v},function(t,e,i){function n(t){return"category"===t.type?a(t):l(t)}function r(t,e){return"category"===t.type?s(t,e):{ticks:t.scale.getTicks()}}function a(t){var e=t.getLabelModel(),i=o(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function o(t,e){var i=u(t,"labels"),n=v(e),r=h(i,n);if(r)return r;var a,o;return y.isFunction(n)?a=m(t,n):(o="auto"===n?d(t):n,a=g(t,o)),c(i,n,{labels:a,labelCategoryInterval:o})}function s(t,e){var i=u(t,"ticks"),n=v(e),r=h(i,n);if(r)return r;var a,s;if(e.get("show")&&!t.scale.isBlank()||(a=[]),y.isFunction(n))a=m(t,n,!0);else if("auto"===n){var l=o(t,t.getLabelModel());s=l.labelCategoryInterval,a=y.map(l.labels,function(t){return t.tickValue})}else s=n,a=g(t,s,!0);return c(i,n,{ticks:a,tickCategoryInterval:s})}function l(t){var e=t.scale.getTicks(),i=M(t);return{labels:y.map(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function u(t,e){return S(t)[e]||(S(t)[e]=[])}function h(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function c(t,e,i){return t.push({key:e,value:i}),i}function d(t){var e=S(t).autoInterval;return null!=e?e:S(t).autoInterval=t.calculateCategoryInterval()}function p(t){var e=f(t),i=M(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,a=r.getExtent(),o=r.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,p=0;l<=a[1];l+=s){var g=0,m=0,v=_.getBoundingRect(i(l),e.font,"center","top");g=1.3*v.width,m=1.3*v.height,d=Math.max(d,g,7),p=Math.max(p,m,7)}var y=d/h,b=p/c;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(y,b))),w=S(t.model),k=w.lastAutoInterval,D=w.lastTickCount;return null!=k&&null!=D&&Math.abs(k-x)<=1&&Math.abs(D-o)<=1&&k>x?x=k:(w.lastTickCount=o,w.lastAutoInterval=x),x}function f(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function g(t,e,i){function n(t){l.push(i?t:{formattedLabel:r(t),rawLabel:a.getLabel(t),tickValue:t})}var r=M(t),a=t.scale,o=a.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=o[0],c=a.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var d={min:s.get("showMinLabel"),max:s.get("showMaxLabel")};d.min&&h!==o[0]&&n(o[0]);for(var p=h;p<=o[1];p+=u)n(p);return d.max&&p!==o[1]&&n(o[1]),l}function m(t,e,i){var n=t.scale,r=M(t),a=[];return y.each(n.getTicks(),function(t){var o=n.getLabel(t);e(t,o)&&a.push(i?t:{formattedLabel:r(t),rawLabel:o,tickValue:t})}),a}function v(t){var e=t.get("interval");return null==e?"auto":e}var y=i(0),_=i(25),b=i(5),x=b.makeInner,w=i(23),M=w.makeLabelFormatter,S=x();e.createAxisLabels=n,e.createAxisTicks=r,e.calculateCategoryInterval=p},function(t,e,i){var n=i(2);i(487),i(488);var r=i(41),a=i(62),o=i(490);i(63),n.registerVisual(r("line","circle","line")),n.registerLayout(a("line")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,o("line"))},function(t,e,i){var n=i(7),r=(n.__DEV__,i(30)),a=i(18),o=a.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return r(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});t.exports=o},function(t,e,i){function n(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function r(t){return"number"==typeof t?t:t?.5:0}function a(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function o(t,e,i){if(!i.valueDim)return[];for(var n=[],r=0,a=e.count();r<a;r++)n.push(C(i,t,e,r));return n}function s(t,e,i,n){var r=a(t.getAxis("x")),o=a(t.getAxis("y")),s=t.getBaseAxis().isHorizontal(),l=Math.min(r[0],r[1]),u=Math.min(o[0],o[1]),h=Math.max(r[0],r[1])-l,c=Math.max(o[0],o[1])-u;if(i)l-=.5,h+=.5,u-=.5,c+=.5;else{var d=n.get("lineStyle.width")||2,p=n.get("clipOverflow")?d/2:Math.max(h,c);s?(u-=p,c+=2*p):(l-=p,h+=2*p)}var f=new _.Rect({shape:{x:l,y:u,width:h,height:c}});return e&&(f.shape[s?"width":"height"]=0,_.initProps(f,{shape:{width:h,height:c}},n)),f}function l(t,e,i,n){var r=t.getAngleAxis(),a=t.getRadiusAxis(),o=a.getExtent().slice();o[0]>o[1]&&o.reverse();var s=r.getExtent(),l=Math.PI/180;i&&(o[0]-=.5,o[1]+=.5);var u=new _.Sector({shape:{cx:D(t.cx,1),cy:D(t.cy,1),r0:D(o[0],1),r:D(o[1],1),startAngle:-s[0]*l,endAngle:-s[1]*l,clockwise:r.inverse}});return e&&(u.shape.endAngle=-s[0]*l,_.initProps(u,{shape:{endAngle:-s[1]*l}},n)),u}function u(t,e,i,n){return"polar"===t.type?l(t,e,i,n):s(t,e,i,n)}function h(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,a=[],o=0;o<t.length-1;o++){var s=t[o+1],l=t[o];a.push(l);var u=[];switch(i){case"end":u[r]=s[r],u[1-r]=l[1-r],a.push(u);break;case"middle":var h=(l[r]+s[r])/2,c=[];u[r]=c[r]=h,u[1-r]=l[1-r],c[1-r]=s[1-r],a.push(u),a.push(c);break;default:u[r]=l[r],u[1-r]=s[1-r],a.push(u)}}return t[o]&&a.push(t[o]),a}function c(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,r,a=i.length-1;a>=0;a--){var o=i[a].dimension,s=t.dimensions[o],l=t.getDimensionInfo(s);if(n=l&&l.coordDim,"x"===n||"y"===n){r=i[a];break}}if(r){var u=e.getAxis(n),h=g.map(r.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),c=h.length,d=r.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),d.reverse());var p=10,f=h[0].coord-p,m=h[c-1].coord+p,v=m-f;if(v<.001)return"transparent";g.each(h,function(t){t.offset=(t.coord-f)/v}),h.push({offset:c?h[c-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:d[0]||"transparent"});var y=new _.LinearGradient(0,0,0,0,h,(!0));return y[n]=f,y[n+"2"]=m,y}}}function d(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var a=i.getAxesByScale("ordinal")[0];if(a&&(!r||!p(a,e))){var o=e.mapDimension(a.dim),s={};return g.each(a.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(o,t))}}}}function p(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),o=0;o<r;o+=a)if(1.5*v.getSymbolSize(e,o)[t.isHorizontal()?1:0]>n)return!1;return!0}var f=i(7),g=(f.__DEV__,i(0)),m=i(61),v=i(83),y=i(489),_=i(3),b=i(5),x=i(277),w=x.Polyline,M=x.Polygon,S=i(29),k=i(4),D=k.round,T=i(276),L=T.prepareDataCoordInfo,C=T.getStackedOnPoint,I=S.extend({type:"line",init:function(){var t=new _.Group,e=new m;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var a=t.coordinateSystem,s=this.group,l=t.getData(),p=t.getModel("lineStyle"),f=t.getModel("areaStyle"),m=l.mapArray(l.getItemLayout),v="polar"===a.type,y=this._coordSys,_=this._symbolDraw,b=this._polyline,x=this._polygon,w=this._lineGroup,M=t.get("animation"),S=!f.isEmpty(),k=f.get("origin"),D=L(a,l,k),T=o(a,l,D),C=t.get("showSymbol"),I=C&&!v&&d(t,l,a),A=this._data;A&&A.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),A.setItemGraphicEl(e,null))}),C||_.remove(),s.add(w);var P=!v&&t.get("step");b&&y.type===a.type&&P===this._step?(S&&!x?x=this._newPolygon(m,T,a,M):x&&!S&&(w.remove(x),x=this._polygon=null),w.setClipPath(u(a,!1,!1,t)),C&&_.updateData(l,{isIgnore:I,clipShape:u(a,!1,!0,t)}),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),n(this._stackedOnPoints,T)&&n(this._points,m)||(M?this._updateAnimation(l,T,a,i,P,k):(P&&(m=h(m,a,P),T=h(T,a,P)),b.setShape({points:m}),x&&x.setShape({points:m,stackedOnPoints:T})))):(C&&_.updateData(l,{isIgnore:I,clipShape:u(a,!1,!0,t)}),P&&(m=h(m,a,P),T=h(T,a,P)),b=this._newPolyline(m,a,M),S&&(x=this._newPolygon(m,T,a,M)),w.setClipPath(u(a,!0,!1,t)));var E=c(l,a)||l.getVisual("color");b.useStyle(g.defaults(p.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"}));var O=t.get("smooth");if(O=r(t.get("smooth")),b.setShape({smooth:O,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),x){var R=l.getCalculationInfo("stackedOnSeries"),H=0;x.useStyle(g.defaults(f.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel"})),R&&(H=r(R.get("smooth"))),x.setShape({smooth:O,stackedOnSmooth:H,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=m,this._step=P,this._valueOrigin=k},dispose:function(){},highlight:function(t,e,i,n){var r=t.getData(),a=b.queryDataIndex(r,n);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r.getItemGraphicEl(a);if(!o){var s=r.getItemLayout(a);if(!s)return;o=new v(r,a),o.position=s,o.setZ(t.get("zlevel"),t.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0), this.group.add(o)}o.highlight()}else S.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t.getData(),a=b.queryDataIndex(r,n);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else S.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new w({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new M({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,r,a){var o=this._polyline,s=this._polygon,l=t.hostModel,u=y(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,a),c=u.current,d=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;r&&(c=h(u.current,i,r),d=h(u.stackedOnCurrent,i,r),p=h(u.next,i,r),f=h(u.stackedOnNext,i,r)),o.shape.__points=u.current,o.shape.points=c,_.updateProps(o,{shape:{points:p}},l),s&&(s.setShape({points:c,stackedOnPoints:d}),_.updateProps(s,{shape:{points:p,stackedOnPoints:f}},l));for(var g=[],m=u.status,v=0;v<m.length;v++){var b=m[v].cmd;if("="===b){var x=t.getItemGraphicEl(m[v].idx1);x&&g.push({el:x,ptIdx:v})}}o.animators&&o.animators.length&&o.animators[0].during(function(){for(var t=0;t<g.length;t++){var e=g[t].el;e.attr("position",o.shape.__points[g[t].ptIdx])}})},remove:function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});t.exports=I},function(t,e,i){function n(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}function r(t,e,i,r,a,l,u,h){for(var c=n(t,e),d=[],p=[],f=[],g=[],m=[],v=[],y=[],_=o(a,e,u),b=o(l,t,h),x=0;x<c.length;x++){var w=c[x],M=!0;switch(w.cmd){case"=":var S=t.getItemLayout(w.idx),k=e.getItemLayout(w.idx1);(isNaN(S[0])||isNaN(S[1]))&&(S=k.slice()),d.push(S),p.push(k),f.push(i[w.idx]),g.push(r[w.idx1]),y.push(e.getRawIndex(w.idx1));break;case"+":var D=w.idx;d.push(a.dataToPoint([e.get(_.dataDimsForPoint[0],D),e.get(_.dataDimsForPoint[1],D)])),p.push(e.getItemLayout(D).slice()),f.push(s(_,a,e,D)),g.push(r[D]),y.push(e.getRawIndex(D));break;case"-":var D=w.idx,T=t.getRawIndex(D);T!==D?(d.push(t.getItemLayout(D)),p.push(l.dataToPoint([t.get(b.dataDimsForPoint[0],D),t.get(b.dataDimsForPoint[1],D)])),f.push(i[D]),g.push(s(b,l,t,D)),y.push(T)):M=!1}M&&(m.push(w),v.push(v.length))}v.sort(function(t,e){return y[t]-y[e]});for(var L=[],C=[],I=[],A=[],P=[],x=0;x<v.length;x++){var D=v[x];L[x]=d[D],C[x]=p[D],I[x]=f[D],A[x]=g[D],P[x]=m[D]}return{current:L,next:C,stackedOnCurrent:I,stackedOnNext:A,status:P}}var a=i(276),o=a.prepareDataCoordInfo,s=a.getStackedOnPoint;t.exports=r},function(t,e){function i(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,e,i){var a=t.getData(),o=t.get("sampling"),s=t.coordinateSystem;if("cartesian2d"===s.type&&o){var l=s.getBaseAxis(),u=s.getOtherAxis(l),h=l.getExtent(),c=h[1]-h[0],d=Math.round(a.count()/c);if(d>1){var p;"string"==typeof o?p=n[o]:"function"==typeof o&&(p=o),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/d,p,r))}}}}}var n={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-(1/0),i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},r=function(t,e){return Math.round(t.length/2)};t.exports=i},function(t,e,i){function n(t){a.call(this,t)}var r=i(0),a=i(492);n.prototype={constructor:n,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,i){var n=this.getAxis("x"),r=this.getAxis("y");return i=i||[],i[0]=n.toGlobalCoord(n.dataToCoord(t[0])),i[1]=r.toGlobalCoord(r.dataToCoord(t[1])),i},clampData:function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),a=n.getExtent(),o=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return e=e||[],e[0]=i.coordToData(i.toLocalCoord(t[0])),e[1]=n.coordToData(n.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},r.inherits(n,a);var o=n;t.exports=o},function(t,e,i){function n(t){return this._axes[t]}var r=i(0),a=function(t){this._axes={},this._dimList=[],this.name=t||""};a.prototype={constructor:a,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return r.map(this._dimList,n,this)},getAxesByScale:function(t){return t=t.toLowerCase(),r.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i.length;r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}};var o=a;t.exports=o},function(t,e,i){var n=i(0),r=i(34),a=function(t,e,i,n,a){r.call(this,t,e,i),this.type=n||"value",this.position=a||"bottom"};a.prototype={constructor:a,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},n.inherits(a,r);var o=a;t.exports=o},function(t,e,i){i(278);var n=i(16),r=n.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=r},function(t,e,i){i(278),i(496)},function(t,e,i){var n=i(0),r=i(3),a=i(42),o=i(43),s=i(280),l=["axisLine","axisTickLabel","axisName"],u=["splitArea","splitLine"],h=o.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,i,o){this.group.removeAll();var c=this._axisGroup;if(this._axisGroup=new r.Group,this.group.add(this._axisGroup),t.get("show")){var d=t.getCoordSysModel(),p=s.layout(d,t),f=new a(t,p);n.each(l,f.add,f),this._axisGroup.add(f.getGroup()),n.each(u,function(e){t.get(e+".show")&&this["_"+e](t,d)},this),r.groupTransition(c,this._axisGroup,t),h.superCall(this,"render",t,e,i,o)}},remove:function(){this._splitAreaColors=null},_splitLine:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=n.isArray(s)?s:[s];for(var l=e.coordinateSystem.getRect(),u=i.isHorizontal(),h=0,c=i.getTicksCoords({tickModel:a}),d=[],p=[],f=o.getLineStyle(),g=0;g<c.length;g++){var m=i.toGlobalCoord(c[g].coord);u?(d[0]=m,d[1]=l.y,p[0]=m,p[1]=l.y+l.height):(d[0]=l.x,d[1]=m,p[0]=l.x+l.width,p[1]=m);var v=h++%s.length,y=c[g].tickValue;this._axisGroup.add(new r.Line(r.subPixelOptimizeLine({anid:null!=y?"line_"+c[g].tickValue:null,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:n.defaults({stroke:s[v]},f),silent:!0})))}}},_splitArea:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=e.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var h=s.length,c=this._splitAreaColors,d=n.createHashMap(),p=0;if(c)for(var f=0;f<u.length;f++){var g=c.get(u[f].tickValue);if(null!=g){p=(g+(h-1)*f)%h;break}}var m=i.toGlobalCoord(u[0].coord),v=o.getAreaStyle();s=n.isArray(s)?s:[s];for(var f=1;f<u.length;f++){var y,_,b,x,w=i.toGlobalCoord(u[f].coord);i.isHorizontal()?(y=m,_=l.y,b=w-y,x=l.height,m=y+b):(y=l.x,_=m,b=l.width,x=w-_,m=_+x);var M=u[f-1].tickValue;null!=M&&d.set(M,p),this._axisGroup.add(new r.Rect({anid:null!=M?"area_"+M:null,shape:{x:y,y:_,width:b,height:x},style:n.defaults({fill:s[p]},v),silent:!0})),p=(p+1)%h}this._splitAreaColors=d}}}});h.extend({type:"xAxis"}),h.extend({type:"yAxis"})},function(t,e,i){var n=i(2),r=i(0),a=i(82),o=a.layout,s=a.largeLayout;i(100),i(498),i(499),i(63),n.registerLayout(r.curry(o,"bar")),n.registerLayout(s),n.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},function(t,e,i){var n=i(281),r=n.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t}});t.exports=r},function(t,e,i){function n(t,e,i){i.style.text=null,d.updateProps(i,{shape:{width:0}},e,t,function(){i.parent&&i.parent.remove(i)})}function r(t,e,i){i.style.text=null,d.updateProps(i,{shape:{r:i.shape.r0}},e,t,function(){i.parent&&i.parent.remove(i)})}function a(t,e,i,n,r,a,o,s){var l=e.getItemVisual(i,"color"),u=e.getItemVisual(i,"opacity"),h=n.getModel("itemStyle"),p=n.getModel("emphasis.itemStyle").getBarItemStyle();s||t.setShape("r",h.get("barBorderRadius")||0),t.useStyle(c.defaults({fill:l,opacity:u},h.getBarItemStyle()));var g=n.getShallow("cursor");g&&t.attr("cursor",g);var m=o?r.height>0?"bottom":"top":r.width>0?"left":"right";s||f(t.style,p,n,l,a,i,m),d.setHoverStyle(t,p)}function o(t,e){var i=t.get(y)||0;return Math.min(i,Math.abs(e.width),Math.abs(e.height))}function s(t,e,i){var n=t.getData(),r=[],a=n.getLayout("valueAxisHorizontal")?1:0;r[1-a]=n.getLayout("valueAxisStart");var o=new w({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:r,__valueIdx:a});e.add(o),l(o,t,n)}function l(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}var u=i(7),h=(u.__DEV__,i(2)),c=i(0),d=i(3),p=i(282),f=p.setLabel,g=i(17),m=i(500),v=i(14),y=["itemStyle","barBorderWidth"];c.extend(g.prototype,m);var _=h.extendChartView({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i)),this.group},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var o,s=this.group,l=t.getData(),u=this._data,h=t.coordinateSystem,c=h.getBaseAxis();"cartesian2d"===h.type?o=c.isHorizontal():"polar"===h.type&&(o="angle"===c.dim);var p=t.isAnimationEnabled()?t:null;l.diff(u).add(function(e){if(l.hasValue(e)){var i=l.getItemModel(e),n=x[h.type](l,e,i),r=b[h.type](l,e,i,n,o,p);l.setItemGraphicEl(e,r),s.add(r),a(r,l,e,i,n,t,o,"polar"===h.type)}}).update(function(e,i){var n=u.getItemGraphicEl(i);if(!l.hasValue(e))return void s.remove(n);var r=l.getItemModel(e),c=x[h.type](l,e,r);n?d.updateProps(n,{shape:c},p,e):n=b[h.type](l,e,r,c,o,p,!0),l.setItemGraphicEl(e,n),s.add(n),a(n,l,e,r,c,t,o,"polar"===h.type)}).remove(function(t){var e=u.getItemGraphicEl(t);"cartesian2d"===h.type?e&&n(t,p,e):e&&r(t,p,e)}).execute(),this._data=l},_renderLarge:function(t,e,i){this._clear(),s(t,this.group)},_incrementalRenderLarge:function(t,e){s(e,this.group,!0)},dispose:c.noop,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,i=this._data;t&&t.get("animation")&&i&&!this._isLargeDraw?i.eachItemGraphicEl(function(e){"sector"===e.type?r(e.dataIndex,t,e):n(e.dataIndex,t,e)}):e.removeAll(),this._data=null}}),b={cartesian2d:function(t,e,i,n,r,a,o){var s=new d.Rect({shape:c.extend({},n)});if(a){var l=s.shape,u=r?"height":"width",h={};l[u]=0,h[u]=n[u],d[o?"updateProps":"initProps"](s,{shape:h},a,e)}return s},polar:function(t,e,i,n,r,a,o){var s=n.startAngle<n.endAngle,l=new d.Sector({shape:c.defaults({clockwise:s},n)});if(a){var u=l.shape,h=r?"r":"endAngle",p={};u[h]=r?0:n.startAngle,p[h]=n[h],d[o?"updateProps":"initProps"](l,{shape:p},a,e)}return l}},x={cartesian2d:function(t,e,i){var n=t.getItemLayout(e),r=o(i,n),a=n.width>0?1:-1,s=n.height>0?1:-1;return{x:n.x+a*r/2,y:n.y+s*r/2,width:n.width-a*r,height:n.height-s*r}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}},w=v.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,r=this.__valueIdx,a=0;a<i.length;a+=2)n[this.__valueIdx]=i[a+r],t.moveTo(n[0],n[1]),t.lineTo(i[a],i[a+1])}});t.exports=_},function(t,e,i){var n=i(46),r=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getBarItemStyle:function(t){var e=r(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}};t.exports=a},function(t,e,i){var n=i(2),r=i(0);i(502),i(503);var a=i(283),o=i(86),s=i(504),l=i(64);a("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(o("pie")),n.registerLayout(r.curry(s,"pie")),n.registerProcessor(l("pie"))},function(t,e,i){var n=i(2),r=i(51),a=i(0),o=i(5),s=i(4),l=s.getPercentWithPrecision,u=i(101),h=i(37),c=h.retrieveRawAttr,d=n.extendSeriesModel({type:"series.pie",init:function(t){d.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){d.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,e){return r(this,["value"])},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,r=t.count();n<r;n++)i.push({name:t.getName(n),value:t.get(e,n),selected:c(t,n,"selected")});return i},getDataParams:function(t){var e=this.getData(),i=d.superCall(this,"getDataParams",t),n=[];return e.each(e.mapDimension("value"),function(t){n.push(t)}),i.percent=l(n,t,e.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(t){o.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{rotate:!1,show:!0,position:"outer"},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationEasing:"cubicOut"}});a.mixin(d,u);var p=d;t.exports=p},function(t,e,i){function n(t,e,i,n){var a=e.getData(),o=this.dataIndex,s=a.getName(o),l=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){r(a.getItemGraphicEl(t),a.getItemLayout(t),e.isSelected(a.getName(t)),l,i)})}function r(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,u=[o*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function a(t,e){function i(){a.ignore=a.hoverIgnore,o.ignore=o.hoverIgnore}function n(){a.ignore=a.normalIgnore,o.ignore=o.normalIgnore}s.Group.call(this);var r=new s.Sector({z2:2}),a=new s.Polyline,o=new s.Text;this.add(r),this.add(a),this.add(o),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}var o=i(0),s=i(3),l=i(29),u=a.prototype;u.updateData=function(t,e,i){function n(){l.stopAnimation(!0),l.animateTo({shape:{r:c.r+u.get("hoverOffset")}},300,"elasticOut")}function a(){l.stopAnimation(!0),l.animateTo({shape:{r:c.r}},300,"elasticOut")}var l=this.childAt(0),u=t.hostModel,h=t.getItemModel(e),c=t.getItemLayout(e),d=o.extend({},c);if(d.label=null,i){l.setShape(d);var p=u.getShallow("animationType");"scale"===p?(l.shape.r=c.r0,s.initProps(l,{shape:{r:c.r}},u,e)):(l.shape.endAngle=c.startAngle,s.updateProps(l,{shape:{endAngle:c.endAngle}},u,e))}else s.updateProps(l,{shape:d},u,e);var f=t.getItemVisual(e,"color");l.useStyle(o.defaults({lineJoin:"bevel",fill:f},h.getModel("itemStyle").getItemStyle())),l.hoverStyle=h.getModel("emphasis.itemStyle").getItemStyle();var g=h.getShallow("cursor");g&&l.attr("cursor",g),r(this,t.getItemLayout(e),u.isSelected(null,e),u.get("selectedOffset"),u.get("animation")),l.off("mouseover").off("mouseout").off("emphasis").off("normal"),h.get("hoverAnimation")&&u.isAnimationEnabled()&&l.on("mouseover",n).on("mouseout",a).on("emphasis",n).on("normal",a),this._updateLabel(t,e),s.setHoverStyle(this)},u._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),r=t.hostModel,a=t.getItemModel(e),o=t.getItemLayout(e),l=o.label,u=t.getItemVisual(e,"color");s.updateProps(i,{shape:{points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]}},r,e),s.updateProps(n,{style:{x:l.x,y:l.y}},r,e),n.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var h=a.getModel("label"),c=a.getModel("emphasis.label"),d=a.getModel("labelLine"),p=a.getModel("emphasis.labelLine"),u=t.getItemVisual(e,"color");s.setLabelStyle(n.style,n.hoverStyle={},h,c,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!c.get("show"),i.ignore=i.normalIgnore=!d.get("show"),i.hoverIgnore=!p.get("show"),i.setStyle({stroke:u,opacity:t.getItemVisual(e,"opacity")}),i.setStyle(d.getModel("lineStyle").getLineStyle()),i.hoverStyle=p.getModel("lineStyle").getLineStyle();var f=d.get("smooth");f&&f===!0&&(f=.4),i.setShape({smooth:f})},o.inherits(a,s.Group);var h=l.extend({type:"pie",init:function(){var t=new s.Group;this._sectorGroup=t},render:function(t,e,i,r){if(!r||r.from!==this.uid){var s=t.getData(),l=this._data,u=this.group,h=e.get("animation"),c=!l,d=t.get("animationType"),p=o.curry(n,this.uid,t,h,i),f=t.get("selectedMode");if(s.diff(l).add(function(t){var e=new a(s,t);c&&"scale"!==d&&e.eachChild(function(t){t.stopAnimation(!0)}),f&&e.on("click",p),s.setItemGraphicEl(t,e),u.add(e)}).update(function(t,e){var i=l.getItemGraphicEl(e);i.updateData(s,t),i.off("click"),f&&i.on("click",p),u.add(i),s.setItemGraphicEl(t,i)}).remove(function(t){var e=l.getItemGraphicEl(t);u.remove(e)}).execute(),h&&c&&s.count()>0&&"scale"!==d){var g=s.getItemLayout(0),m=Math.max(i.getWidth(),i.getHeight())/2,v=o.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(g.cx,g.cy,m,g.startAngle,g.clockwise,v,t))}this._data=s}},dispose:function(){},_createClipPath:function(t,e,i,n,r,a,o){var l=new s.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return s.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},o,a),l},containPoint:function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,a=t[1]-n.cy,o=Math.sqrt(r*r+a*a);return o<=n.r&&o>=n.r0}}}),c=h;t.exports=c},function(t,e,i){function n(t,e,i,n){e.eachSeriesByType(t,function(t){var e=t.getData(),n=e.mapDimension("value"),r=t.get("center"),c=t.get("radius");l.isArray(c)||(c=[0,c]),l.isArray(r)||(r=[r,r]);var d=i.getWidth(),p=i.getHeight(),f=Math.min(d,p),g=a(r[0],d),m=a(r[1],p),v=a(c[0],f/2),y=a(c[1],f/2),_=-t.get("startAngle")*h,b=t.get("minAngle")*h,x=0;e.each(n,function(t){!isNaN(t)&&x++});var w=e.getSum(n),M=Math.PI/(w||x)*2,S=t.get("clockwise"),k=t.get("roseType"),D=t.get("stillShowZeroSum"),T=e.getDataExtent(n);T[0]=0;var L=u,C=0,I=_,A=S?1:-1;if(e.each(n,function(t,i){var n;if(isNaN(t))return void e.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:g,cy:m,r0:v,r:k?NaN:y});n="area"!==k?0===w&&D?M:t*M:u/x,n<b?(n=b,L-=b):C+=t;var r=I+A*n;e.setItemLayout(i,{angle:n,startAngle:I,endAngle:r,clockwise:S,cx:g,cy:m,r0:v,r:k?o(t,T,[v,y]):y}),I=r}),L<u&&x)if(L<=.001){var P=u/x;e.each(n,function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i);n.angle=P,n.startAngle=_+A*i*P,n.endAngle=_+A*(i+1)*P}})}else M=L/C,I=_,e.each(n,function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i),r=n.angle===b?b:t*M;n.startAngle=I,n.endAngle=I+A*r,I+=A*r}});s(t,y,d,p)})}var r=i(4),a=r.parsePercent,o=r.linearMap,s=i(505),l=i(0),u=2*Math.PI,h=Math.PI/180;t.exports=n},function(t,e,i){function n(t,e,i,n,r,a,o){function s(e,i,n,r){for(var a=e;a<i;a++)if(t[a].y+=n,a>e&&a+1<i&&t[a+1].y>t[a].y+t[a].height)return void l(a,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function u(t,e,i,n,r,a){for(var o=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("center"!==t[s].position){var u=Math.abs(t[s].y-n),h=t[s].len,c=t[s].len2,d=u<r+h?Math.sqrt((r+h+c)*(r+h+c)-u*u):Math.abs(t[s].x-i);e&&d>=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=i+d*a,o=d}}t.sort(function(t,e){return t.y-e.y});for(var h,c=0,d=t.length,p=[],f=[],g=0;g<d;g++)h=t[g].y-c,h<0&&s(g,d,-h,r),c=t[g].y+t[g].height;o-c<0&&l(d-1,c-o);for(var g=0;g<d;g++)t[g].y>=i?f.push(t[g]):p.push(t[g]);u(p,!1,e,i,n,r),u(f,!0,e,i,n,r)}function r(t,e,i,r,a,o){for(var s=[],l=[],u=0;u<t.length;u++)t[u].x<e?s.push(t[u]):l.push(t[u]);n(l,e,i,r,1,a,o),n(s,e,i,r,-1,a,o);for(var u=0;u<t.length;u++){var h=t[u].linePoints;if(h){var c=h[1][0]-h[2][0];t[u].x<e?h[2][0]=t[u].x+3:h[2][0]=t[u].x-3,h[1][1]=h[2][1]=t[u].y,h[1][0]=h[2][0]+c}}}function a(t,e,i,n){var a,s,l=t.getData(),u=[],h=!1;l.each(function(i){var n,r,c,d,p=l.getItemLayout(i),f=l.getItemModel(i),g=f.getModel("label"),m=g.get("position")||f.get("emphasis.label.position"),v=f.getModel("labelLine"),y=v.get("length"),_=v.get("length2"),b=(p.startAngle+p.endAngle)/2,x=Math.cos(b),w=Math.sin(b);a=p.cx,s=p.cy;var M="inside"===m||"inner"===m;if("center"===m)n=p.cx,r=p.cy,d="center";else{var S=(M?(p.r+p.r0)/2*x:p.r*x)+a,k=(M?(p.r+p.r0)/2*w:p.r*w)+s;if(n=S+3*x,r=k+3*w,!M){var D=S+x*(y+e-p.r),T=k+w*(y+e-p.r),L=D+(x<0?-1:1)*_,C=T;n=L+(x<0?-5:5),r=C,c=[[S,k],[D,T],[L,C]]}d=M?"center":x>0?"left":"right"}var I=g.getFont(),A=g.get("rotate")?x<0?-b+Math.PI:-b:0,P=t.getFormattedLabel(i,"normal")||l.getName(i),E=o.getBoundingRect(P,I,d,"top");h=!!A,p.label={x:n,y:r,position:m,height:E.height,len:y,len2:_,linePoints:c,textAlign:d,verticalAlign:"middle",rotation:A,inside:M},M||u.push(p.label)}),!h&&t.get("avoidLabelOverlap")&&r(u,a,s,e,i,n)}var o=i(25);t.exports=a},function(t,e,i){var n=i(2);i(507),i(508);var r=i(41),a=i(62);i(63),n.registerVisual(r("scatter","circle")),n.registerLayout(a("scatter"))},function(t,e,i){var n=i(30),r=i(18),a=r.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return n(this.getSource(),this)},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8}}});t.exports=a},function(t,e,i){var n=i(2),r=i(61),a=i(509),o=i(62);n.extendChartView({type:"scatter",render:function(t,e,i){var n=t.getData(),r=this._updateSymbolDraw(n,t);r.updateData(n),this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData(),r=this._updateSymbolDraw(n,t);r.incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(t,e,i){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=o().reset(t);r.progress&&r.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateSymbolDraw:function(t,e){var i=this._symbolDraw,n=e.pipelineContext,o=n.large;return i&&o===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=o?new a:new r,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},function(t,e,i){function n(){this.group=new r.Group}var r=i(3),a=i(21),o=a.createSymbol,s=i(96),l=4,u=r.extendShape({shape:{points:null},symbolProxy:null,buildPath:function(t,e){var i=e.points,n=e.size,r=this.symbolProxy,a=r.shape,o=t.getContext?t.getContext():t,s=o&&n[0]<l;if(!s)for(var u=0;u<i.length;){var h=i[u++],c=i[u++];isNaN(h)||isNaN(c)||(a.x=h-n[0]/2,a.y=c-n[1]/2,a.width=n[0],a.height=n[1],r.buildPath(t,a,!0))}},afterBrush:function(t){var e=this.shape,i=e.points,n=e.size,r=n[0]<l;if(r){this.setTransform(t);for(var a=0;a<i.length;){var o=i[a++],s=i[a++];isNaN(o)||isNaN(s)||t.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.restoreTransform(t)}},findDataIndex:function(t,e){for(var i=this.shape,n=i.points,r=i.size,a=Math.max(r[0],4),o=Math.max(r[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,u=n[l]-a/2,h=n[l+1]-o/2;if(t>=u&&e>=h&&t<=u+a&&e<=h+o)return s}return-1}}),h=n.prototype;h.isPersistent=function(){return!this._incremental},h.updateData=function(t){this.group.removeAll();var e=new u({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},h.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild(function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e)})}},h.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new s({silent:!0})),this.group.add(this._incremental)):this._incremental=null},h.incrementalUpdate=function(t,e){var i;this._incremental?(i=new u,this._incremental.addDisplayable(i,!0)):(i=new u({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental)},h._setCommon=function(t,e,i){var n=e.hostModel,r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.symbolProxy=o(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<l;t.useStyle(n.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("color");s&&t.setColor(s),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>=0&&(t.dataIndex=i+(t.startIndex||0))}))},h.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},h._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var c=n;t.exports=c},function(t,e,i){var n=i(2);i(511),i(516),i(517);var r=i(86),a=i(41),o=i(518),s=i(64),l=i(519);n.registerVisual(r("radar")),n.registerVisual(a("radar","circle")),n.registerLayout(o),n.registerProcessor(s("radar")),n.registerPreprocessor(l)},function(t,e,i){i(512),i(514),i(515)},function(t,e,i){function n(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=r.map(t.getIndicatorModels(),function(t,e){var i="indicator_"+e,n=new a(i,new o);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n},this),this.resize(t,i),this.cx,this.cy,this.r,this.startAngle}var r=i(0),a=i(513),o=i(81),s=i(4),l=i(23),u=l.getScaleExtent,h=l.niceScaleExtent,c=i(22);n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},n.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e],n=i.angle,r=this.cx+t*Math.cos(n),a=this.cy-t*Math.sin(n);return[r,a]},n.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var r,a=Math.atan2(-i,e),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],h=Math.abs(a-u.angle);h<o&&(r=u,s=l,o=h)}return[s,+(r&&r.coodToData(n))]},n.prototype.resize=function(t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight(),o=Math.min(n,a)/2;this.cx=s.parsePercent(i[0],n),this.cy=s.parsePercent(i[1],a),this.startAngle=t.get("startAngle")*Math.PI/180,this.r=s.parsePercent(t.get("radius"),o),r.each(this._indicatorAxes,function(t,e){t.setExtent(0,this.r);var i=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),t.angle=i},this)},n.prototype.update=function(t,e){function i(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),i=t/e;return 2===i?i=5:i*=2,i*e}var n=this._indicatorAxes,a=this._model;r.each(n,function(t){t.scale.setExtent(1/0,-(1/0))}),t.eachSeriesByType("radar",function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===a){var o=e.getData();r.each(n,function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))})}},this);var o=a.get("splitNumber");r.each(n,function(t,e){var n=u(t.scale,t.model);h(t.scale,t.model);var r=t.model,a=t.scale,l=r.getMin(),c=r.getMax(),d=a.getInterval();if(null!=l&&null!=c)a.setExtent(+l,+c),a.setInterval((c-l)/o);else if(null!=l){var p;do p=l+d*o,a.setExtent(+l,p),a.setInterval(d),d=i(d);while(p<n[1]&&isFinite(p)&&isFinite(n[1]))}else if(null!=c){var f;do f=c-d*o,a.setExtent(f,+c),a.setInterval(d),d=i(d);while(f>n[0]&&isFinite(f)&&isFinite(n[0]))}else{var g=a.getTicks().length-1;g>o&&(d=i(d));var m=Math.round((n[0]+n[1])/2/d)*d,v=Math.round(o/2);a.setExtent(s.round(m-v*d),s.round(m+(o-v)*d)),a.setInterval(d)}})},n.dimensions=[],n.create=function(t,e){var i=[];return t.eachComponent("radar",function(r){var a=new n(r,t,e);i.push(a),r.coordinateSystem=a}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},c.register("radar",n);var d=n;t.exports=d},function(t,e,i){function n(t,e,i){a.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}var r=i(0),a=i(34);r.inherits(n,a);var o=n;t.exports=o},function(t,e,i){function n(t,e){return a.defaults({show:e},t)}var r=i(2),a=i(0),o=i(279),s=i(17),l=i(50),u=o.valueAxis,h=r.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),u=this.get("name"),h=this.get("name.show"),c=this.get("name.formatter"),d=this.get("nameGap"),p=this.get("triggerEvent"),f=a.map(this.get("indicator")||[],function(f){ null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0);var g=u;if(null!=f.color&&(g=a.defaults({color:f.color},u)),f=a.merge(a.clone(f),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:r,axisLabel:o,name:f.text,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:p},!1),h||(f.name=""),"string"==typeof c){var m=f.name;f.name=c.replace("{value}",null!=m?m:"")}else"function"==typeof c&&(f.name=c(f.name,f));var v=a.extend(new s(f,null,this.ecModel),l);return v.mainType="radar",v.componentIndex=this.componentIndex,v},this);this.getIndicatorModels=function(){return f}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:a.merge({lineStyle:{color:"#bbb"}},u.axisLine),axisLabel:n(u.axisLabel,!1),axisTick:n(u.axisTick,!1),splitLine:n(u.splitLine,!0),splitArea:n(u.splitArea,!0),indicator:[]}}),c=h;t.exports=c},function(t,e,i){var n=i(7),r=(n.__DEV__,i(2)),a=i(0),o=i(42),s=i(3),l=["axisLine","axisTickLabel","axisName"],u=r.extendComponentView({type:"radar",render:function(t,e,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=a.map(i,function(t){var i=new o(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i});a.each(n,function(t){a.each(l,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}var i=t.coordinateSystem,n=i.getIndicatorAxes();if(n.length){var r=t.get("shape"),o=t.getModel("splitLine"),l=t.getModel("splitArea"),u=o.getModel("lineStyle"),h=l.getModel("areaStyle"),c=o.get("show"),d=l.get("show"),p=u.get("color"),f=h.get("color");p=a.isArray(p)?p:[p],f=a.isArray(f)?f:[f];var g=[],m=[];if("circle"===r)for(var v=n[0].getTicksCoords(),y=i.cx,_=i.cy,b=0;b<v.length;b++){if(c){var x=e(g,p,b);g[x].push(new s.Circle({shape:{cx:y,cy:_,r:v[b].coord}}))}if(d&&b<v.length-1){var x=e(m,f,b);m[x].push(new s.Ring({shape:{cx:y,cy:_,r0:v[b].coord,r:v[b+1].coord}}))}}else for(var w,M=a.map(n,function(t,e){var n=t.getTicksCoords();return w=null==w?n.length-1:Math.min(n.length-1,w),a.map(n,function(t){return i.coordToPoint(t.coord,e)})}),S=[],b=0;b<=w;b++){for(var k=[],D=0;D<n.length;D++)k.push(M[D][b]);if(k[0]&&k.push(k[0].slice()),c){var x=e(g,p,b);g[x].push(new s.Polyline({shape:{points:k}}))}if(d&&S){var x=e(m,f,b-1);m[x].push(new s.Polygon({shape:{points:k.concat(S)}}))}S=k.slice().reverse()}var T=u.getLineStyle(),L=h.getAreaStyle();a.each(m,function(t,e){this.group.add(s.mergePath(t,{style:a.defaults({stroke:"none",fill:f[e%f.length]},L),silent:!0}))},this),a.each(g,function(t,e){this.group.add(s.mergePath(t,{style:a.defaults({fill:"none",stroke:p[e%p.length]},T),silent:!0}))},this)}}});t.exports=u},function(t,e,i){var n=i(18),r=i(51),a=i(0),o=i(11),s=o.encodeHTML,l=n.extend({type:"series.radar",dependencies:["radar"],init:function(t){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(t,e){return r(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t){var e=this.getData(),i=this.coordinateSystem,n=i.getIndicatorAxes(),r=this.getData().getName(t);return s(""===r?this.name:r)+"<br/>"+a.map(n,function(i,n){var r=e.get(e.mapDimension(i.dim),t);return s(i.name+" : "+r)}).join("<br />")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=l;t.exports=u},function(t,e,i){function n(t){return o.isArray(t)||(t=[+t,+t]),t}var r=i(2),a=i(3),o=i(0),s=i(21),l=r.extendChartView({type:"radar",render:function(t,e,i){function r(t,e){var i=t.getItemVisual(e,"symbol")||"circle",r=t.getItemVisual(e,"color");if("none"!==i){var a=n(t.getItemVisual(e,"symbolSize")),o=s.createSymbol(i,-1,-1,2,2,r);return o.attr({style:{strokeNoScale:!0},z2:100,scale:[a[0]/2,a[1]/2]}),o}}function l(e,i,n,o,s,l){n.removeAll();for(var u=0;u<i.length-1;u++){var h=r(o,s);h&&(h.__dimIdx=u,e[u]?(h.attr("position",e[u]),a[l?"initProps":"updateProps"](h,{position:i[u]},t,s)):h.attr("position",i[u]),n.add(h))}}function u(t){return o.map(t,function(t){return[h.cx,h.cy]})}var h=t.coordinateSystem,c=this.group,d=t.getData(),p=this._data;d.diff(p).add(function(e){var i=d.getItemLayout(e);if(i){var n=new a.Polygon,r=new a.Polyline,o={shape:{points:i}};n.shape.points=u(i),r.shape.points=u(i),a.initProps(n,o,t,e),a.initProps(r,o,t,e);var s=new a.Group,h=new a.Group;s.add(r),s.add(n),s.add(h),l(r.shape.points,i,h,d,e,!0),d.setItemGraphicEl(e,s)}}).update(function(e,i){var n=p.getItemGraphicEl(i),r=n.childAt(0),o=n.childAt(1),s=n.childAt(2),u={shape:{points:d.getItemLayout(e)}};u.shape.points&&(l(r.shape.points,u.shape.points,s,d,e,!1),a.updateProps(r,u,t),a.updateProps(o,u,t),d.setItemGraphicEl(e,n))}).remove(function(t){c.remove(p.getItemGraphicEl(t))}).execute(),d.eachItemGraphicEl(function(t,e){function i(){l.attr("ignore",m)}function n(){l.attr("ignore",g)}var r=d.getItemModel(e),s=t.childAt(0),l=t.childAt(1),u=t.childAt(2),h=d.getItemVisual(e,"color");c.add(t),s.useStyle(o.defaults(r.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:h})),s.hoverStyle=r.getModel("emphasis.lineStyle").getLineStyle();var p=r.getModel("areaStyle"),f=r.getModel("emphasis.areaStyle"),g=p.isEmpty()&&p.parentModel.isEmpty(),m=f.isEmpty()&&f.parentModel.isEmpty();m=m&&g,l.ignore=g,l.useStyle(o.defaults(p.getAreaStyle(),{fill:h,opacity:.7})),l.hoverStyle=f.getAreaStyle();var v=r.getModel("itemStyle").getItemStyle(["color"]),y=r.getModel("emphasis.itemStyle").getItemStyle(),_=r.getModel("label"),b=r.getModel("emphasis.label");u.eachChild(function(t){t.setStyle(v),t.hoverStyle=o.clone(y),a.setLabelStyle(t.style,t.hoverStyle,_,b,{labelFetcher:d.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:d.get(d.dimensions[t.__dimIdx],e),autoColor:h,isRectText:!0})}),t.off("mouseover").off("mouseout").off("normal").off("emphasis"),t.on("emphasis",i).on("mouseover",i).on("normal",n).on("mouseout",n),a.setHoverStyle(t)}),this._data=d},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=l},function(t,e){function i(t){t.eachSeriesByType("radar",function(t){function e(t,e){n[e]=n[e]||[],n[e][o]=r.dataToPoint(t,o)}var i=t.getData(),n=[],r=t.coordinateSystem;if(r){for(var a=r.getIndicatorAxes(),o=0;o<a.length;o++)i.each(i.mapDimension(a[o].dim),e);i.each(function(t){n[t][0]&&n[t].push(n[t][0].slice()),i.setItemLayout(t,n[t])})}})}t.exports=i},function(t,e,i){function n(t){var e=t.polar;if(e){r.isArray(e)||(e=[e]);var i=[];r.each(e,function(e,n){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],r.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):i.push(e)}),t.polar=i}r.each(t.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}var r=i(0);t.exports=n},function(t,e,i){var n=i(2);i(521),i(527),i(288),i(87);var r=i(528),a=i(529),o=i(530),s=i(531),l=i(283);n.registerLayout(r),n.registerVisual(a),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,o),n.registerPreprocessor(s),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},function(t,e,i){var n=i(0),r=i(51),a=i(18),o=i(11),s=o.encodeHTML,l=o.addCommas,u=i(101),h=i(37),c=h.retrieveRawAttr,d=i(87),p=a.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],init:function(t){p.superApply(this,"init",arguments),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t){return r(this,["value"])},mergeOption:function(t){p.superApply(this,"mergeOption",arguments),this.updateSelectedMap(this._createSelectableList())},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,r=t.count();n<r;n++)i.push({name:t.getName(n),value:t.get(e,n),selected:c(t,n,"selected")});return i=d.getFilledRegions(i,this.getMapType(),this.option.nameMap)},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},_fillOption:function(t,e){},getRawValue:function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t){for(var e=this.getData(),i=l(this.getRawValue(t)),n=e.getName(t),r=this.seriesGroup,a=[],o=0;o<r.length;o++){var u=r[o].originalData.indexOfName(n),h=e.mapDimension("value");isNaN(r[o].originalData.get(h,u))||a.push(s(r[o].name))}return a.join(", ")+"<br />"+s(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}});n.mixin(p,u);var f=p;t.exports=f},function(t,e,i){function n(t,e,i,n,r){l.call(this,t),this.map=e,this._nameCoordMap=a.createHashMap(),this.loadGeoJson(i,n,r)}function r(t,e,i,n){var r=i.geoModel,a=i.seriesModel,o=r?r.coordinateSystem:a?a.coordinateSystem||(a.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[t](n):null}var a=i(0),o=i(12),s=i(273),l=i(284),u=i(523),h=i(524),c=i(525),d=i(526),p=[u,h,c,d];n.prototype={constructor:n,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return!0;return!1},loadGeoJson:function(t,e,i){try{this.regions=t?s(t):[]}catch(n){throw"Invalid geoJson format\n"+n.message}e=e||{},i=i||{};for(var r=this.regions,o=a.createHashMap(),l=0;l<r.length;l++){var u=r[l].name;u=i.hasOwnProperty(u)?i[u]:u,r[l].name=u,o.set(u,r[l]),this.addGeoCoord(u,r[l].center);var h=e[u];h&&r[l].transformTo(h.left,h.top,h.width,h.height)}this._regionsMap=o,this._rect=null,a.each(p,function(t){t(this)},this)},transformTo:function(t,e,i,n){var r=this.getBoundingRect();r=r.clone(),r.y=-r.y-r.height;var a=this._rawTransformable;a.transform=r.calculateTransform(new o(t,e,i,n)),a.decomposeTransform();var s=a.scale;s[1]=-s[1],a.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return e[i]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){if(this._rect)return this._rect;for(var t,e=this.regions,i=0;i<e.length;i++){var n=e[i].getBoundingRect();t=t||n.clone(),t.union(n)}return this._rect=t||new o(0,0,0,0)},dataToPoint:function(t,e,i){if("string"==typeof t&&(t=this.getGeoCoord(t)),t)return l.prototype.dataToPoint.call(this,t,e,i)},convertToPixel:a.curry(r,"dataToPoint"),convertFromPixel:a.curry(r,"pointToData")},a.mixin(n,l);var f=n;t.exports=f},function(t,e,i){function n(t){"china"===t.map&&t.regions.push(new a("南海诸岛",r.map(s,function(t){return{type:"polygon",exterior:t}}),o))}for(var r=i(0),a=i(274),o=[126,25],s=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],l=0;l<s.length;l++)for(var u=0;u<s[l].length;u++)s[l][u][0]/=10.5,s[l][u][1]/=-14,s[l][u][0]+=o[0],s[l][u][1]+=o[1];t.exports=n},function(t,e,i){function n(t){r.each(t.regions,function(t){var e=a[t.name];if(e){var i=t.center;i[0]+=e[0]/10.5,i[1]+=-e[1]/14}})}var r=i(0),a={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};t.exports=n},function(t,e,i){function n(t){r.each(t.regions,function(t){var e=a[t.name];if(e){var i=t.center;i[0]=e[0],i[1]=e[1]}})}var r=i(0),a={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};t.exports=n},function(t,e){function i(t){if("china"===t.map)for(var e=0,i=t.regions.length;e<i;++e)"台湾"===t.regions[e].name&&t.regions[e].geometries.push({type:"polygon",exterior:n[0]})}var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];t.exports=i},function(t,e,i){var n=i(2),r=i(0),a=i(3),o=i(285),s=n.extendChartView({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id){var a=this._mapDraw;a&&r.add(a.group)}else if(t.needsDrawMap){var a=this._mapDraw||new o(i,(!0));r.add(a.group),a.draw(t,e,i,this,n),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,i){var n=t.originalData,o=this.group;n.each(n.mapDimension("value"),function(e,i){if(!isNaN(e)){var s=n.getItemLayout(i);if(s&&s.point){var l=s.point,u=s.offset,h=new a.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:l[0]+9*u,cy:l[1],r:3},silent:!0,z2:u?8:10});if(!u){var c=t.mainSeries.getData(),d=n.getName(i),p=c.indexOfName(d),f=n.getItemModel(i),g=f.getModel("label"),m=f.getModel("emphasis.label"),v=c.getItemGraphicEl(p),y=r.retrieve2(t.getFormattedLabel(i,"normal"),d),_=r.retrieve2(t.getFormattedLabel(i,"emphasis"),y),b=function(){var t=a.setTextStyle({},m,{text:m.get("show")?_:null},{isRectText:!0,useInsideStyle:!1},!0);h.style.extendFrom(t),h.__mapOriginalZ2=h.z2,h.z2+=1},x=function(){a.setTextStyle(h.style,g,{text:g.get("show")?y:null,textPosition:g.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),null!=h.__mapOriginalZ2&&(h.z2=h.__mapOriginalZ2,h.__mapOriginalZ2=null)};v.on("mouseover",b).on("mouseout",x).on("emphasis",b).on("normal",x),x()}o.add(h)}}})}});t.exports=s},function(t,e,i){function n(t){var e={};t.eachSeriesByType("map",function(i){var n=i.getMapType();if(!i.getHostGeoModel()&&!e[n]){var a={};r.each(i.seriesGroup,function(e){var i=e.coordinateSystem,n=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&n.each(n.mapDimension("value"),function(t,e){var r=n.getName(e),o=i.getRegion(r);if(o&&!isNaN(t)){var s=a[r]||0,l=i.dataToPoint(o.center);a[r]=s+1,n.setItemLayout(e,{point:l,offset:s})}})});var o=i.getData();o.each(function(t){var e=o.getName(t),i=o.getItemLayout(t)||{};i.showLabel=!a[e],o.setItemLayout(t,i)}),e[n]=!0}})}var r=i(0);t.exports=n},function(t,e){function i(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),i=t.getModel("itemStyle"),n=i.get("areaColor"),r=i.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:n,color:r})})}t.exports=i},function(t,e,i){function n(t,e){var i={};return a.each(t,function(t){t.each(t.mapDimension("value"),function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)})}),t[0].map(t[0].mapDimension("value"),function(n,r){for(var a="ec-"+t[0].getName(r),o=0,s=1/0,l=-(1/0),u=i[a].length,h=0;h<u;h++)s=Math.min(s,i[a][h]),l=Math.max(l,i[a][h]),o+=i[a][h];var c;return c="min"===e?s:"max"===e?l:"average"===e?o/u:o,0===u?NaN:c})}function r(t){var e={};t.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),a.each(e,function(t,e){for(var i=n(a.map(t,function(t){return t.getData()}),t[0].get("mapValueCalculation")),r=0;r<t.length;r++)t[r].originalData=t[r].getData();for(var r=0;r<t.length;r++)t[r].seriesGroup=t,t[r].needsDrawMap=0===r&&!t[r].getHostGeoModel(),t[r].setData(i.cloneShallow()),t[r].mainSeries=t[0]})}var a=i(0);t.exports=r},function(t,e,i){function n(t){var e=[];r.each(t.series,function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,r.defaults(t,t.mapLocation))})}var r=i(0);t.exports=n},function(t,e,i){var n=i(2);i(533),i(534),i(535);var r=i(41),a=i(536);n.registerVisual(r("tree","circle")),n.registerLayout(a)},function(t,e,i){var n=i(18),r=i(103),a=i(11),o=a.encodeHTML,s=n.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var e={name:t.name,children:t.data},i=t.leaves||{},n={};n.leaves=i;var a=r.createTree(e,this,n),o=0;a.eachNode("preorder",function(t){t.depth>o&&(o=t.depth)});var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return a.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l}),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),r=n.getValue(),a=n.name;n&&n!==i;)a=n.parentNode.name+"."+a,n=n.parentNode;return o(a+(isNaN(r)||null==r?"":" : "+r))},defaultOption:{zlevel:0,z:2,left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});t.exports=s},function(t,e,i){function n(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function r(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=e.getModel("lineStyle").getLineStyle(),i.labelModel=e.getModel("label"),i.hoverLabelModel=e.getModel("emphasis.label"),t.isExpand===!1&&0!==t.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function a(t,e,i,n,a,o){var c=!i,d=t.tree.getNodeByDataIndex(e),p=d.getModel(),o=r(d,p,o),f=t.tree.root,g=d.parentNode===f?d:d.parentNode||d,m=t.getItemGraphicEl(g.dataIndex),v=g.getLayout(),y=m?{x:m.position[0],y:m.position[1],rawX:m.__radialOldRawX,rawY:m.__radialOldRawY}:v,_=d.getLayout();c?(i=new h(t,e,o),i.attr("position",[y.x,y.y])):i.updateData(t,e,o),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=_.rawX,i.__radialRawY=_.rawY,n.add(i),t.setItemGraphicEl(e,i),u.updateProps(i,{position:[_.x,_.y]},a);var b=i.getSymbolPath();if("radial"===o.layout){var x,w,M=f.children[0],S=M.getLayout(),k=M.children.length;if(_.x===S.x&&d.isExpand===!0){var D={};D.x=(M.children[0].getLayout().x+M.children[k-1].getLayout().x)/2,D.y=(M.children[0].getLayout().y+M.children[k-1].getLayout().y)/2,x=Math.atan2(D.y-S.y,D.x-S.x),x<0&&(x=2*Math.PI+x),w=D.x<S.x,w&&(x-=Math.PI)}else x=Math.atan2(_.y-S.y,_.x-S.x),x<0&&(x=2*Math.PI+x),0===d.children.length||0!==d.children.length&&d.isExpand===!1?(w=_.x<S.x,w&&(x-=Math.PI)):(w=_.x>S.x,w||(x-=Math.PI));var T=w?"left":"right";b.setStyle({textPosition:T,textRotation:-x,textOrigin:"center",verticalAlign:"middle"})}if(d.parentNode&&d.parentNode!==f){var L=i.__edge;L||(L=i.__edge=new u.BezierCurve({shape:s(o,y,y),style:l.defaults({opacity:0},o.lineStyle)})),u.updateProps(L,{shape:s(o,v,_),style:{opacity:1}},a),n.add(L)}}function o(t,e,i,n,a,o){for(var l,h=t.tree.getNodeByDataIndex(e),c=t.tree.root,d=h.getModel(),o=r(h,d,o),p=h.parentNode===c?h:h.parentNode||h;l=p.getLayout(),null==l;)p=p.parentNode===c?p:p.parentNode||p;u.updateProps(i,{position:[l.x+1,l.y+1]},a,function(){n.remove(i),t.setItemGraphicEl(e,null)}),i.fadeOut(null,{keepLabel:!0});var f=i.__edge;f&&u.updateProps(f,{shape:s(o,l,l),style:{opacity:0}},a,function(){n.remove(f)})}function s(t,e,i){var n,r,a,o,s=t.orient;if("radial"===t.layout){var l=e.rawX,u=e.rawY,h=i.rawX,c=i.rawY,p=d(l,u),f=d(l,u+(c-u)*t.curvature),g=d(h,c+(u-c)*t.curvature),m=d(h,c);return{x1:p.x,y1:p.y,x2:m.x,y2:m.y,cpx1:f.x,cpy1:f.y,cpx2:g.x,cpy2:g.y}}var l=e.x,u=e.y,h=i.x,c=i.y;return"LR"!==s&&"RL"!==s||(n=l+(h-l)*t.curvature,r=u,a=h+(l-h)*t.curvature,o=c),"TB"!==s&&"BT"!==s||(n=l,r=u+(c-u)*t.curvature,a=h,o=c+(u-c)*t.curvature),{x1:l,y1:u,x2:h,y2:c,cpx1:n,cpy1:r,cpx2:a,cpy2:o}}var l=i(0),u=i(3),h=i(83),c=i(291),d=c.radialCoordinate,p=i(2),f=p.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new u.Group,this.group.add(this._mainGroup)},render:function(t,e,i,r){var s=t.getData(),l=t.layoutInfo,u=this._mainGroup,h=t.get("layout");"radial"===h?u.attr("position",[l.x+l.width/2,l.y+l.height/2]):u.attr("position",[l.x,l.y]);var c=this._data,d={expandAndCollapse:t.get("expandAndCollapse"),layout:h,orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};s.diff(c).add(function(e){n(s,e)&&a(s,e,null,u,t,d)}).update(function(e,i){var r=c.getItemGraphicEl(i);return n(s,e)?void a(s,e,r,u,t,d):void(r&&o(c,i,r,u,t,d))}).remove(function(e){var i=c.getItemGraphicEl(e);i&&o(c,e,i,u,t,d)}).execute(),d.expandAndCollapse===!0&&s.eachItemGraphicEl(function(e,n){e.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})})}),this._data=s},dispose:function(){},remove:function(){this._mainGroup.removeAll(),this._data=null}});t.exports=f},function(t,e,i){var n=i(2);n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=t.dataIndex,n=e.getData().tree,r=n.getNodeByDataIndex(i);r.isExpand=!r.isExpand})})},function(t,e,i){function n(t,e){t.eachSeriesByType("tree",function(t){r(t,e)})}function r(t,e){var i=f(t,e);t.layoutInfo=i;var n=t.get("layout"),r=0,a=0,l=null;"radial"===n?(r=2*Math.PI,a=Math.min(i.height,i.width)/2,l=d(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=i.width,a=i.height,l=d());var g=t.getData().tree.root,m=g.children[0];if(m){u(g),o(m,h,l),g.hierNode.modifier=-m.hierNode.prelim,s(m,c);var v=m,y=m,_=m;s(m,function(t){var e=t.getLayout().x;e<v.getLayout().x&&(v=t),e>y.getLayout().x&&(y=t),t.depth>_.depth&&(_=t)});var b=v===y?1:l(v,y)/2,x=b-v.getLayout().x,w=0,M=0,S=0,k=0;if("radial"===n)w=r/(y.getLayout().x+b+x),M=a/(_.depth-1||1),s(m,function(t){S=(t.getLayout().x+x)*w,k=(t.depth-1)*M;var e=p(S,k);t.setLayout({x:e.x,y:e.y,rawX:S,rawY:k},!0)});else{var D=t.getOrient();"RL"===D||"LR"===D?(M=a/(y.getLayout().x+b+x),w=r/(_.depth-1||1),s(m,function(t){k=(t.getLayout().x+x)*M,S="LR"===D?(t.depth-1)*w:r-(t.depth-1)*w,t.setLayout({x:S,y:k},!0)})):"TB"!==D&&"BT"!==D||(w=r/(y.getLayout().x+b+x),M=a/(_.depth-1||1),s(m,function(t){S=(t.getLayout().x+x)*w,k="TB"===D?(t.depth-1)*M:a-(t.depth-1)*M,t.setLayout({x:S,y:k},!0)}))}}}var a=i(537),o=a.eachAfter,s=a.eachBefore,l=i(291),u=l.init,h=l.firstWalk,c=l.secondWalk,d=l.separation,p=l.radialCoordinate,f=l.getViewRect;t.exports=n},function(t,e){function i(t,e,i){for(var n,r=[t],a=[];n=r.pop();)if(a.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;n=a.pop();)e(n,i)}function n(t,e){for(var i,n=[t];i=n.pop();)if(e(i),i.isExpand){var r=i.children;if(r.length)for(var a=r.length-1;a>=0;a--)n.push(r[a])}}e.eachAfter=i,e.eachBefore=n},function(t,e,i){var n=i(2);i(539),i(540),i(543);var r=i(544),a=i(545);n.registerVisual(r),n.registerLayout(a)},function(t,e,i){function n(t){var e=0;a.each(t.children,function(t){n(t);var i=t.value;a.isArray(i)&&(i=i[0]),e+=i});var i=t.value;a.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),a.isArray(t.value)?t.value[0]=i:t.value=i}function r(t,e){var i=e.get("color");if(i){t=t||[];var n;if(a.each(t,function(t){var e=new l(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(n=!0)}),!n){var r=t[0]||(t[0]={});r.color=i.slice()}return t}}var a=i(0),o=i(18),s=i(103),l=i(17),u=i(11),h=u.encodeHTML,c=u.addCommas,d=i(44),p=d.wrapTreePathInfo,f=o.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var i={name:t.name,children:t.data};n(i);var a=t.levels||[];a=t.levels=r(a,e);var o={};return o.levels=a,s.createTree(i,this,o).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=c(a.isArray(i)?i[0]:i),r=e.getName(t);return h(r+": "+n)},getDataParams:function(t){var e=o.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=p(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},a.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=a.createHashMap(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});t.exports=f},function(t,e,i){function n(){return{nodeGroup:[],background:[],content:[]}}function r(t,e,i,n,r,o,u,h,c,d){function p(e,i,n){i.dataIndex=u.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:A,height:P});var r=u.getVisual("borderColor",!0),a=W.get("borderColor");g(i,function(){var t=I(F);t.fill=r;var e=C(W);if(e.fill=a,n){var o=A-2*E;m(t,e,r,o,Y,{x:E,y:0,width:o,height:Y})}else t.text=e.text=null;i.setStyle(t),l.setHoverStyle(i,e)}),e.add(i)}function f(e,i){i.dataIndex=u.dataIndex,i.seriesIndex=t.seriesIndex;var n=Math.max(A-2*E,0),r=Math.max(P-2*E,0);i.culling=!0,i.setShape({x:E,y:E,width:n,height:r});var a=u.getVisual("color",!0);g(i,function(){var t=I(F);t.fill=a;var e=C(W);m(t,e,a,n,r),i.setStyle(t),l.setHoverStyle(i,e)}),e.add(i)}function g(t,e){O?!t.invisible&&o.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function m(e,i,n,r,a,o){var h=u.getModel(),c=s.retrieve(t.getFormattedLabel(u.dataIndex,"normal",null,null,o?"upperLabel":"label"),h.get("name"));if(!o&&D.isLeafRoot){var d=t.get("drillDownIcon",!0);c=d?d+" "+c:c}var p=h.getModel(o?S:w),f=h.getModel(o?k:M),g=p.getShallow("show");l.setLabelStyle(e,i,p,f,{defaultText:g?c:null,autoColor:n,isRectText:!0}),o&&(e.textRect=s.clone(o)),e.truncate=g&&p.get("ellipsis")?{outerWidth:r,outerHeight:a,minChar:2}:null}function v(t,n,o,s){var l=null!=H&&i[t][H],u=r[t];return l?(i[t][H]=null,b(u,l,t)):O||(l=new n({z:a(o,s)}),l.__tmDepth=o,l.__tmStorageName=t,x(u,l,t)),e[t][R]=l}function b(t,e,i){var n=t[R]={};n.old="nodeGroup"===i?e.position.slice():s.extend({},e.shape)}function x(t,e,i){var a=t[R]={},o=u.parentNode;if(o&&(!n||"drillDown"===n.direction)){var s=0,l=0,h=r.background[o.getRawIndex()];!n&&h&&h.old&&(s=h.old.width,l=h.old.height),a.old="nodeGroup"===i?[0,l]:{x:s,y:l,width:0,height:0}}a.fadein="nodeGroup"!==i}if(u){var D=u.getLayout();if(D&&D.isInView){var A=D.width,P=D.height,E=D.borderWidth,O=D.invisible,R=u.getRawIndex(),H=h&&h.getRawIndex(),z=u.viewChildren,Y=D.upperHeight,N=z&&z.length,F=u.getModel("itemStyle"),W=u.getModel("emphasis.itemStyle"),B=v("nodeGroup",y);if(B){if(c.add(B),B.attr("position",[D.x||0,D.y||0]),B.__tmNodeWidth=A,B.__tmNodeHeight=P,D.isAboveViewRoot)return B;var j=v("background",_,d,T);if(j&&p(B,j,N&&D.upperHeight),!N){var V=v("content",_,d,L);V&&f(B,V)}return B}}}}function a(t,e){var i=t*D+e;return(i-1)/i}var o=i(2),s=i(0),l=i(3),u=i(40),h=i(44),c=i(541),d=i(88),p=i(12),f=i(19),g=i(542),m=i(46),v=s.bind,y=l.Group,_=l.Rect,b=s.each,x=3,w=["label"],M=["emphasis","label"],S=["upperLabel"],k=["emphasis","upperLabel"],D=10,T=1,L=2,C=m([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),I=function(t){var e=C(t);return e.stroke=e.fill=e.lineWidth=null,e},A=o.extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage=n(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,i,n){var r=e.findComponents({mainType:"series",subType:"treemap",query:n});if(!(s.indexOf(r,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=e;var a=["treemapZoomToNode","treemapRootToNode"],o=h.retrieveTargetInfo(n,a,t),l=n&&n.type,u=t.layoutInfo,c=!this._oldTree,d=this._storage,p="treemapRootToNode"===l&&o&&d?{rootNodeGroup:d.nodeGroup[o.node.getRawIndex()],direction:n.direction}:null,f=this._giveContainerGroup(u),g=this._doRender(f,t,p);c||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?g.renderFinally():this._doAnimation(f,g,t,p),this._resetController(i),this._renderBreadcrumb(t,i,o)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new y,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,i){function a(t,e,i,n,r){function o(t){return t.getId()}function l(o,s){var l=null!=o?t[o]:null,u=null!=s?e[s]:null,h=m(l,u,i,r);h&&a(l&&l.viewChildren||[],u&&u.viewChildren||[],h,n,r+1)}n?(e=t,b(t,function(t,e){!t.isRemoved()&&l(e,e)})):new u(e,t,o,o).add(l).update(l).remove(s.curry(l,null)).execute()}function o(t){var e=n();return t&&b(t,function(t,i){var n=e[i];b(t,function(t){t&&(n.push(t),t.__tmWillDelete=1)})}),e}function l(){b(v,function(t){b(t,function(t){t.parent&&t.parent.remove(t)})}),b(g,function(t){t.invisible=!0,t.dirty()})}var h=e.getData().tree,c=this._oldTree,d=n(),p=n(),f=this._storage,g=[],m=s.curry(r,e,p,f,i,d,g);a(h.root?[h.root]:[],c&&c.root?[c.root]:[],t,h===c||!c,0);var v=o(f);return this._oldTree=h,this._storage=p, {lastsForAnimation:d,willDeleteEls:v,renderFinally:l}},_doAnimation:function(t,e,i,n){if(i.get("animation")){var r=i.get("animationDurationUpdate"),a=i.get("animationEasing"),o=g.createWrap();b(e.willDeleteEls,function(t,e){b(t,function(t,i){if(!t.invisible){var s,l=t.parent;if(n&&"drillDown"===n.direction)s=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,h=l.__tmNodeHeight/2),s="nodeGroup"===e?{position:[u,h],style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}s&&o.add(t,s,r,a)}})}),b(this._storage,function(t,i){b(t,function(t,n){var l=e.lastsForAnimation[i][n],u={};l&&("nodeGroup"===i?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=s.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),o.add(t,u,r,a))})},this),this._state="animating",o.done(v(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){var e=this._controller;e||(e=this._controller=new d(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",v(this._onPan,this)),e.on("zoom",v(this._onZoom,this)));var i=new p(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t,e){if("animating"!==this._state&&(Math.abs(t)>x||Math.abs(e)>x)){var i=this.seriesModel.getData().tree.root;if(!i)return;var n=i.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t,y:n.y+e,width:n.width,height:n.height}})}},_onZoom:function(t,e,i){if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var r=n.getLayout();if(!r)return;var a=new p(r.x,r.y,r.width,r.height),o=this.seriesModel.layoutInfo;e-=o.x,i-=o.y;var s=f.create();f.translate(s,s,[-e,-i]),f.scale(s,s,[t,t]),f.translate(s,s,[e,i]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},_initEvents:function(t){t.on("click",function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var r=n.hostTree.data.getItemModel(n.dataIndex),a=r.get("link",!0),o=r.get("target",!0)||"blank";a&&window.open(a,o)}}}}},this)},_renderBreadcrumb:function(t,e,i){function n(e){"animating"!==this._state&&(h.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new c(this.group))).render(t,e,i.node,v(n,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=n(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(n){var r=this._storage.background[n.getRawIndex()];if(r){var a=r.transformCoordToLocal(t,e),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;i={node:n,offsetX:a[0],offsetY:a[1]}}},this),i}});t.exports=A},function(t,e,i){function n(t){this.group=new o.Group,t.add(this.group)}function r(t,e,i,n,r,a){var o=[[r?t:t-p,e],[t+i,e],[t+i,e+n],[r?t:t-p,e+n]];return!a&&o.splice(2,0,[t+i+p,e+n/2]),!r&&o.push([t,e+n/2]),o}function a(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&h(i,e)}}var o=i(3),s=i(8),l=i(0),u=i(44),h=u.wrapTreePathInfo,c=8,d=8,p=5;n.prototype={constructor:n,render:function(t,e,i,n){var r=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),r.get("show")&&i){var o=r.getModel("itemStyle"),l=o.getModel("textStyle"),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,u,l),this._renderContent(t,u,o,l,n),s.positionElement(a,u.pos,u.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var r=n.getModel().get("name"),a=i.getTextRect(r),o=Math.max(a.width+2*c,e.emptyItemWidth);e.totalWidth+=o+d,e.renderList.push({node:n,text:r,width:o})}},_renderContent:function(t,e,i,n,u){for(var h=0,c=e.emptyItemWidth,p=t.get("breadcrumb.height"),f=s.getAvailableSize(e.pos,e.box),g=e.totalWidth,m=e.renderList,v=m.length-1;v>=0;v--){var y=m[v],_=y.node,b=y.width,x=y.text;g>f.width&&(g-=b-c,b=c,x=null);var w=new o.Polygon({shape:{points:r(h,0,b,p,v===m.length-1,0===v)},style:l.defaults(i.getItemStyle(),{lineJoin:"bevel",text:x,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:l.curry(u,_)});this.group.add(w),a(w,t,_),h+=b+d}},remove:function(){this.group.removeAll()}};var f=n;t.exports=f},function(t,e,i){function n(){var t,e=[],i={};return{add:function(t,n,a,o,s){return r.isString(o)&&(s=o,o=0),!i[t.id]&&(i[t.id]=1,e.push({el:t,target:n,time:a,delay:o,easing:s}),!0)},done:function(e){return t=e,this},start:function(){function n(){r--,r||(e.length=0,i={},t&&t())}for(var r=e.length,a=0,o=e.length;a<o;a++){var s=e[a];s.el.animateTo(s.target,s.time,s.delay,s.easing,n)}return this}}}var r=i(0);e.createWrap=n},function(t,e,i){for(var n=i(2),r=i(44),a=function(){},o=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<o.length;s++)n.registerAction({type:o[s],update:"updateView"},a);n.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,e){function i(e,i){var n=["treemapZoomToNode","treemapRootToNode"],a=r.retrieveTargetInfo(t,n,e);if(a){var o=e.getViewRoot();o&&(t.direction=r.aboveViewRoot(o,a.node)?"rollUp":"drillDown"),e.resetViewRoot(a.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},i)})},function(t,e,i){function n(t,e,i,s,u,c){var d=t.getModel(),f=t.getLayout();if(f&&!f.invisible&&f.isInView){var m,v=t.getModel(g),y=i[t.depth],_=r(v,e,y,s),b=v.get("borderColor"),x=v.get("borderColorSaturation");null!=x&&(m=a(_,t),b=o(x,m)),t.setVisual("borderColor",b);var w=t.viewChildren;if(w&&w.length){var M=l(t,d,f,v,_,w);p.each(w,function(t,e){if(t.depth>=u.length||t===u[t.depth]){var r=h(d,_,t,e,M,c);n(t,r,i,s,u,c)}})}else m=a(_,t),t.setVisual("color",m)}}function r(t,e,i,n){var r=p.extend({},e);return p.each(["color","colorAlpha","colorSaturation"],function(a){var o=t.get(a,!0);null==o&&i&&(o=i[a]),null==o&&(o=e[a]),null==o&&(o=n.get(a)),null!=o&&(r[a]=o)}),r}function a(t){var e=s(t,"color");if(e){var i=s(t,"colorAlpha"),n=s(t,"colorSaturation");return n&&(e=d.modifyHSL(e,null,null,n)),i&&(e=d.modifyAlpha(e,i)),e}}function o(t,e){return null!=e?d.modifyHSL(e,null,null,t):null}function s(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function l(t,e,i,n,r,a){if(a&&a.length){var o=u(e,"color")||null!=r.color&&"none"!==r.color&&(u(e,"colorAlpha")||u(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),h=i.dataExtent.slice();null!=s&&s<h[0]&&(h[0]=s),null!=l&&l>h[1]&&(h[1]=l);var d=e.get("colorMappingBy"),p={type:o.name,dataExtent:h,visual:o.range};"color"!==p.type||"index"!==d&&"id"!==d?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var f=new c(p);return f.__drColorMappingBy=d,f}}}function u(t,e){var i=t.get(e);return f(i)&&i.length?{name:e,range:i}:null}function h(t,e,i,n,r,a){var o=p.extend({},e);if(r){var s=r.type,l="color"===s&&r.__drColorMappingBy,u="index"===l?n:"id"===l?a.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));o[s]=r.mapValueToVisual(u)}return o}var c=i(45),d=i(26),p=i(0),f=p.isArray,g="itemStyle",m={seriesType:"treemap",reset:function(t,e,i,r){var a=t.getData().tree,o=a.root,s=t.getModel(g);if(!o.isRemoved()){var l=p.map(a.levelModels,function(t){return t?t.get(g):null});n(o,{},l,s,t.getViewRoot().getAncestors(),t)}}};t.exports=m},function(t,e,i){function n(t,e,i,a){var o,s;if(!t.isRemoved()){var h=t.getLayout();o=h.width,s=h.height;var c=t.getModel(),d=c.get(k),f=c.get(D)/2,g=p(c),m=Math.max(d,g),v=d-f,y=m-f,c=t.getModel();t.setLayout({borderWidth:d,upperHeight:m,upperLabelHeight:g},!0),o=x(o-2*v,0),s=x(s-v-y,0);var _=o*s,b=r(t,c,_,e,i,a);if(b.length){var M={x:v,y:y,width:o,height:s},S=w(o,s),T=1/0,L=[];L.area=0;for(var C=0,I=b.length;C<I;){var A=b[C];L.push(A),L.area+=A.getLayout().area;var P=l(L,S,e.squareRatio);P<=T?(C++,T=P):(L.area-=L.pop().getLayout().area,u(L,S,M,f,!1),S=w(M.width,M.height),L.length=L.area=0,T=1/0)}if(L.length&&u(L,S,M,f,!0),!i){var E=c.get("childrenVisibleMin");null!=E&&_<E&&(i=!0)}for(var C=0,I=b.length;C<I;C++)n(b[C],e,i,a+1)}}}function r(t,e,i,n,r,l){var u=t.children||[],h=n.sort;"asc"!==h&&"desc"!==h&&(h=null);var c=null!=n.leafDepth&&n.leafDepth<=l;if(r&&!c)return t.viewChildren=[];u=f.filter(u,function(t){return!t.isRemoved()}),o(u,h);var d=s(e,u,h);if(0===d.sum)return t.viewChildren=[];if(d.sum=a(e,i,d.sum,h,u),0===d.sum)return t.viewChildren=[];for(var p=0,g=u.length;p<g;p++){var m=u[p].getValue()/d.sum*i;u[p].setLayout({area:m})}return c&&(u.length&&t.setLayout({isLeafRoot:!0},!0),u.length=0),t.viewChildren=u,t.setLayout({dataExtent:d.dataExtent},!0),u}function a(t,e,i,n,r){if(!n)return i;for(var a=t.get("visibleMin"),o=r.length,s=o,l=o-1;l>=0;l--){var u=r["asc"===n?o-l-1:l].getValue();u/i*e<a&&(s=l,i-=u)}return"asc"===n?r.splice(0,o-s):r.splice(s,o-s),i}function o(t,e){return e&&t.sort(function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n}),t}function s(t,e,i){for(var n=0,r=0,a=e.length;r<a;r++)n+=e[r].getValue();var o,s=t.get("visualDimension");if(e&&e.length)if("value"===s&&i)o=[e[e.length-1].getValue(),e[0].getValue()],"asc"===i&&o.reverse();else{var o=[1/0,-(1/0)];S(e,function(t){var e=t.getValue(s);e<o[0]&&(o[0]=e),e>o[1]&&(o[1]=e)})}else o=[NaN,NaN];return{sum:n,dataExtent:o}}function l(t,e,i){for(var n,r=0,a=1/0,o=0,s=t.length;o<s;o++)n=t[o].getLayout().area,n&&(n<a&&(a=n),n>r&&(r=n));var l=t.area*t.area,u=e*e*i;return l?x(u*r/l,l/(u*a)):1/0}function u(t,e,i,n,r){var a=e===i.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=i[s[a]],h=e?t.area/e:0;(r||h>i[l[o]])&&(h=i[l[o]]);for(var c=0,d=t.length;c<d;c++){var p=t[c],f={},g=h?p.getLayout().area/h:0,m=f[l[o]]=x(h-2*n,0),v=i[s[a]]+i[l[a]]-u,y=c===d-1||v<g?v:g,_=f[l[a]]=x(y-2*n,0);f[s[o]]=i[s[o]]+w(n,m/2),f[s[a]]=u+w(n,_/2),u+=y,p.setLayout(f,!0)}i[s[o]]+=h,i[l[o]]-=h}function h(t,e,i,n,r){var a=(e||{}).node,o=[n,r];if(!a||a===i)return o;for(var s,l=n*r,u=l*t.option.zoomToNodeRatio;s=a.parentNode;){for(var h=0,c=s.children,d=0,f=c.length;d<f;d++)h+=c[d].getValue();var g=a.getValue();if(0===g)return o;u*=h/g;var m=s.getModel(),v=m.get(k),_=Math.max(v,p(m,v));u+=4*v*v+(3*v+_)*Math.pow(u,.5),u>y&&(u=y),a=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[n*b,r*b]}function c(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var r=i.node,a=r.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=r;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function d(t,e,i,n,r){var a=t.getLayout(),o=i[r],s=o&&o===t;if(!(o&&!s||r===i.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new g(e.x-a.x,e.y-a.y,e.width,e.height);S(t.viewChildren||[],function(t){d(t,l,i,n,r+1)})}}function p(t){return t.get(T)?t.get(L):0}var f=i(0),g=i(12),m=i(4),v=m.parsePercent,y=m.MAX_SAFE_INTEGER,_=i(8),b=i(44),x=Math.max,w=Math.min,M=f.retrieve,S=f.each,k=["itemStyle","borderWidth"],D=["itemStyle","gapWidth"],T=["upperLabel","show"],L=["upperLabel","height"],C={seriesType:"treemap",reset:function(t,e,i,r){var a=i.getWidth(),o=i.getHeight(),s=t.option,l=_.getLayoutRect(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),u=s.size||[],p=v(M(l.width,u[0]),a),m=v(M(l.height,u[1]),o),y=r&&r.type,x=["treemapZoomToNode","treemapRootToNode"],w=b.retrieveTargetInfo(r,x,t),k="treemapRender"===y||"treemapMove"===y?r.rootRect:null,D=t.getViewRoot(),T=b.getPathToRoot(D);if("treemapMove"!==y){var L="treemapZoomToNode"===y?h(t,w,D,p,m):k?[k.width,k.height]:[p,m],C=s.sort;C&&"asc"!==C&&"desc"!==C&&(C="desc");var I={squareRatio:s.squareRatio,sort:C,leafDepth:s.leafDepth};D.hostTree.clearLayouts();var A={x:0,y:0,width:L[0],height:L[1],area:L[0]*L[1]};D.setLayout(A),n(D,I,!1,0);var A=D.getLayout();S(T,function(t,e){var i=(T[e+1]||D).getValue();t.setLayout(f.extend({dataExtent:[i,i],borderWidth:0,upperHeight:0},A))})}var P=t.getData().tree.root;P.setLayout(c(l,k,w),!0),t.setLayoutInfo(l),d(P,new g((-l.x),(-l.y),a,o),T,D,0)}};t.exports=C},function(t,e,i){var n=i(2);i(547),i(549),i(552);var r=i(553),a=i(41),o=i(554),s=i(555),l=i(556),u=i(557),h=i(558),c=i(560);n.registerProcessor(r),n.registerVisual(a("graph","circle",null)),n.registerVisual(o),n.registerVisual(s),n.registerLayout(l),n.registerLayout(u),n.registerLayout(h),n.registerCoordinateSystem("graphView",{create:c})},function(t,e,i){var n=i(2),r=i(20),a=i(0),o=i(5),s=o.defaultEmphasis,l=i(17),u=i(11),h=u.encodeHTML,c=i(292),d=n.extendSeriesModel({type:"series.graph",init:function(t){d.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){d.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){d.superApply(this,"mergeDefaultAndTheme",arguments),s(t,["edgeLabel"],["show"])},getInitialData:function(t,e){function i(t,i){function n(t){return t=this.parsePath(t),t&&"label"===t[0]?o:t&&"emphasis"===t[0]&&"label"===t[1]?u:this.parentModel}t.wrapMethod("getItemModel",function(t){var e=a._categoriesModels,i=t.getShallow("category"),n=e[i];return n&&(n.parentModel=t.parentModel,t.parentModel=n),t});var r=a.getModel("edgeLabel"),o=new l({label:r.option},r.parentModel,e),s=a.getModel("emphasis.edgeLabel"),u=new l({emphasis:{label:s.option}},s.parentModel,e);i.wrapMethod("getItemModel",function(t){return t.customizeGetParent(n),t})}var n=t.edges||t.links||[],r=t.data||t.nodes||[],a=this;if(r&&n)return c(r,n,this,!0,i).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),r=this.getDataParams(t,i),a=n.graph.getEdgeByIndex(t),o=n.getName(a.node1.dataIndex),s=n.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=h(l.join(" > ")),r.value&&(l+=" : "+h(r.value)),l}return d.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=a.map(this.option.categories||[],function(t){return null!=t.value?t:a.extend({value:0},t)}),e=new r(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return d.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),p=d;t.exports=p},function(t,e,i){function n(t){return"_EC_"+t}function r(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function a(t,e,i){this.node1=t,this.node2=e,this.dataIndex=null==i?-1:i}var o=i(7),s=(o.__DEV__,i(0)),l=i(28),u=l.enableClassCheck,h=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=h.prototype;c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(t,e){t=t||""+e;var i=this._nodesMap;if(!i[n(t)]){var a=new r(t,e);return a.hostGraph=this,this.nodes.push(a),i[n(t)]=a,a}},c.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},c.getNodeById=function(t){return this._nodesMap[n(t)]},c.addEdge=function(t,e,i){var o=this._nodesMap,s=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),r.isInstance(t)||(t=o[n(t)]),r.isInstance(e)||(e=o[n(e)]),t&&e){var l=t.id+"-"+e.id;if(!s[l]){var u=new a(t,e,i);return u.hostGraph=this,this._directed&&(t.outEdges.push(u),e.inEdges.push(u)),t.edges.push(u),t!==e&&e.edges.push(u),this.edges.push(u),s[l]=u,u}}},c.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},c.getEdge=function(t,e){r.isInstance(t)&&(t=t.id),r.isInstance(e)&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},c.eachNode=function(t,e){for(var i=this.nodes,n=i.length,r=0;r<n;r++)i[r].dataIndex>=0&&t.call(e,i[r],r)},c.eachEdge=function(t,e){for(var i=this.edges,n=i.length,r=0;r<n;r++)i[r].dataIndex>=0&&i[r].node1.dataIndex>=0&&i[r].node2.dataIndex>=0&&t.call(e,i[r],r)},c.breadthFirstTraverse=function(t,e,i,a){if(r.isInstance(e)||(e=this._nodesMap[n(e)]),e){for(var o="out"===i?"outEdges":"in"===i?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!t.call(a,e,null))for(var l=[e];l.length;)for(var u=l.shift(),h=u[o],s=0;s<h.length;s++){var c=h[s],d=c.node1===u?c.node2:c.node1;if(!d.__visited){if(t.call(a,d,u))return;l.push(d),d.__visited=!0}}}},c.update=function(){for(var t=this.data,e=this.edgeData,i=this.nodes,n=this.edges,r=0,a=i.length;r<a;r++)i[r].dataIndex=-1;for(var r=0,a=t.count();r<a;r++)i[t.getRawIndex(r)].dataIndex=r;e.filterSelf(function(t){var i=n[e.getRawIndex(t)];return i.node1.dataIndex>=0&&i.node2.dataIndex>=0});for(var r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(var r=0,a=e.count();r<a;r++)n[e.getRawIndex(r)].dataIndex=r},c.clone=function(){for(var t=new h(this._directed),e=this.nodes,i=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(var n=0;n<i.length;n++){var r=i[n];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},r.prototype={constructor:r,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,i=e.data.getItemModel(this.dataIndex);return i.getModel(t)}}},a.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,i=e.edgeData.getItemModel(this.dataIndex);return i.getModel(t)}};var d=function(t,e){return{getValue:function(i){var n=this[t][e];return n.get(n.getDimension(i||"value"),this.dataIndex)},setVisual:function(i,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};s.mixin(r,d("hostGraph","data")),s.mixin(a,d("hostGraph","edgeData")),h.Node=r,h.Edge=a,u(r),u(a);var p=h;t.exports=p},function(t,e,i){function n(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function r(t,e,i){var r=t.getGraphicEl(),a=n(t,e);null!=i&&(null==a&&(a=1),a*=i),r.downplay&&r.downplay(),r.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",a)})}function a(t,e){var i=n(t,e),r=t.getGraphicEl();r.highlight&&r.highlight(),r.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",i)})}var o=i(2),s=i(0),l=i(61),u=i(104),h=i(88),c=i(287),d=i(102),p=d.onIrrelevantElement,f=i(3),g=i(551),m=["itemStyle","opacity"],v=["lineStyle","opacity"],y=o.extendChartView({type:"graph",init:function(t,e){var i=new l,n=new u,r=this.group;this._controller=new h(e.getZr()),this._controllerHost={target:r},r.add(i.group),r.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(t,e,i){var n=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var r=this._symbolDraw,a=this._lineDraw,o=this.group;if("view"===n.type){var s={position:n.position,scale:n.scale};this._firstRender?o.attr(s):f.updateProps(o,s,t)}g(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();r.updateData(l);var u=t.getEdgeData();a.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var h=t.forceLayout,c=t.get("force.layoutAnimation");h&&this._startForceLayoutIteration(h,c),l.eachItemGraphicEl(function(e,n){var r=l.getItemModel(n);e.off("drag").off("dragend");var a=l.getItemModel(n).get("draggable");a&&e.on("drag",function(){h&&(h.warmUp(),!this._layouting&&this._startForceLayoutIteration(h,c),h.setFixed(n),l.setItemLayout(n,e.position))},this).on("dragend",function(){h&&h.setUnfixed(n)},this),e.setDraggable(a&&h),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),r.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))},this),l.graph.eachEdge(function(e){var n=e.getGraphicEl();n.off("mouseover",n.__focusNodeAdjacency),n.off("mouseout",n.__unfocusNodeAdjacency),e.getModel().get("focusNodeAdjacency")&&(n.on("mouseover",n.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),n.on("mouseout",n.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))});var d="circular"===t.get("layout")&&t.get("circular.rotateLabel"),p=l.getLayout("cx"),m=l.getLayout("cy");l.eachItemGraphicEl(function(t,e){var i=t.getSymbolPath();if(d){var n=l.getItemLayout(e),r=Math.atan2(n[1]-m,n[0]-p);r<0&&(r=2*Math.PI+r);var a=n[0]<p;a&&(r-=Math.PI);var o=a?"left":"right";i.setStyle({textRotation:-r,textPosition:o,textOrigin:"center"}),i.hoverStyle&&(i.hoverStyle.textPosition=o)}else i.setStyle({textRotation:0})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},focusNodeAdjacency:function(t,e,i,n){var o=this._model.getData(),l=o.graph,u=n.dataIndex,h=n.edgeDataIndex,c=l.getNodeByIndex(u),d=l.getEdgeByIndex(h);(c||d)&&(l.eachNode(function(t){r(t,m,.1)}),l.eachEdge(function(t){r(t,v,.1)}),c&&(a(c,m),s.each(c.edges,function(t){t.dataIndex<0||(a(t,v),a(t.node1,m),a(t.node2,m))})),d&&(a(d,v),a(d.node1,m),a(d.node2,m)))},unfocusNodeAdjacency:function(t,e,i,n){var a=this._model.getData().graph;a.eachNode(function(t){r(t,m)}),a.eachEdge(function(t){r(t,v)})},_startForceLayoutIteration:function(t,e){var i=this;!function n(){t.step(function(t){i.updateLayout(i._model),(i._layouting=!t)&&(e?i._layoutTimeout=setTimeout(n,16):n())})}()},_updateController:function(t,e,i){var n=this._controller,r=this._controllerHost,a=this.group;return n.setPointerChecker(function(e,n,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(n,r)&&!p(e,i,t)}),"view"!==t.coordinateSystem.type?void n.disable():(n.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),void n.off("pan").off("zoom").on("pan",function(e,n){c.updateViewOnPan(r,e,n),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e,dy:n})}).on("zoom",function(e,n,a){c.updateViewOnZoom(r,e,n,a),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e,originX:n,originY:a}),this._updateNodeAndLinkScale(),g(t.getGraph(),this._getNodeGlobalScale(t)),this._lineDraw.updateLayout()},this))},_updateNodeAndLinkScale:function(){var t=this._model,e=t.getData(),i=this._getNodeGlobalScale(t),n=[i,i];e.eachItemGraphicEl(function(t,e){t.attr("scale",n)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=this._nodeScaleRatio,n=e.scale,r=n&&n[0]||1,a=e.getZoom(),o=(a-1)*i+1;return o/r},updateLayout:function(t){g(t.getGraph(),this._getNodeGlobalScale(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});t.exports=y},function(t,e,i){function n(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var r=i(3),a=i(10),o=r.Line.prototype,s=r.BezierCurve.prototype,l=r.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(n(e)?o:s).buildPath(t,e)},pointAt:function(t){return n(this.shape)?o.pointAt.call(this,t):s.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,i=n(e)?[e.x2-e.x1,e.y2-e.y1]:s.tangentAt.call(this,t);return a.normalize(i,i)}});t.exports=l},function(t,e,i){function n(t,e,i){for(var n,r=t[0],a=t[1],o=t[2],p=1/0,f=i*i,g=.1,m=.1;m<=.9;m+=.1){s[0]=h(r[0],a[0],o[0],m),s[1]=h(r[1],a[1],o[1],m);var v=d(c(s,e)-f);v<p&&(p=v,n=m)}for(var y=0;y<32;y++){var _=n+g;l[0]=h(r[0],a[0],o[0],n),l[1]=h(r[1],a[1],o[1],n),u[0]=h(r[0],a[0],o[0],_),u[1]=h(r[1],a[1],o[1],_);var v=c(l,e)-f;if(d(v)<.01)break;var b=c(u,e)-f;g/=2,v<0?b>=0?n+=g:n-=g:b>=0?n-=g:n+=g}return n}function r(t,e){function i(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}var r=[],s=a.quadraticSubdivide,l=[[],[],[]],u=[[],[]],h=[];e/=2,t.eachEdge(function(t,a){var c=t.getLayout(),d=t.getVisual("fromSymbol"),p=t.getVisual("toSymbol");c.__original||(c.__original=[o.clone(c[0]),o.clone(c[1])],c[2]&&c.__original.push(o.clone(c[2])));var f=c.__original;if(null!=c[2]){if(o.copy(l[0],f[0]),o.copy(l[1],f[2]),o.copy(l[2],f[1]),d&&"none"!=d){var g=i(t.node1),m=n(l,f[0],g*e);s(l[0][0],l[1][0],l[2][0],m,r),l[0][0]=r[3],l[1][0]=r[4],s(l[0][1],l[1][1],l[2][1],m,r),l[0][1]=r[3],l[1][1]=r[4]}if(p&&"none"!=p){var g=i(t.node2),m=n(l,f[1],g*e);s(l[0][0],l[1][0],l[2][0],m,r),l[1][0]=r[1],l[2][0]=r[2],s(l[0][1],l[1][1],l[2][1],m,r),l[1][1]=r[1],l[2][1]=r[2]}o.copy(c[0],l[0]),o.copy(c[1],l[2]),o.copy(c[2],l[1])}else{if(o.copy(u[0],f[0]),o.copy(u[1],f[1]),o.sub(h,u[1],u[0]),o.normalize(h,h),d&&"none"!=d){var g=i(t.node1);o.scaleAndAdd(u[0],u[0],h,g*e)}if(p&&"none"!=p){var g=i(t.node2);o.scaleAndAdd(u[1],u[1],h,-g*e)}o.copy(c[0],u[0]),o.copy(c[1],u[1])}})}var a=i(33),o=i(10),s=[],l=[],u=[],h=a.quadraticAt,c=o.distSquare,d=Math.abs;t.exports=r},function(t,e,i){var n=i(2),r=i(289),a=r.updateCenterAndZoom,o={type:"graphRoam",event:"graphRoam",update:"none"};n.registerAction(o,function(t,e){e.eachComponent({mainType:"series",query:t},function(e){var i=e.coordinateSystem,n=a(i,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)})}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series.graph:focusNodeAdjacency"},function(){}),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series.graph:unfocusNodeAdjacency"},function(){})},function(t,e){function i(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),n=t.getGraph(),r=n.data,a=i.mapArray(i.getName);r.filterSelf(function(t){var i=r.getItemModel(t),n=i.getShallow("category");if(null!=n){"number"==typeof n&&(n=a[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0})},this)}t.exports=i},function(t,e){function i(t){var e={};t.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),n=t.getData(),r={};i.each(function(n){var a=i.getName(n);r["ec-"+a]=n;var o=i.getItemModel(n),s=o.get("itemStyle.color")||t.getColorFromPalette(a,e);i.setItemVisual(n,"color",s)}),i.count()&&n.each(function(t){var e=n.getItemModel(t),a=e.getShallow("category");null!=a&&("string"==typeof a&&(a=r["ec-"+a]),n.getItemVisual(t,"color",!0)||n.setItemVisual(t,"color",i.getItemVisual(a,"color")))})})}t.exports=i},function(t,e){function i(t){return t instanceof Array||(t=[t,t]),t}function n(t){t.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),r=i(t.get("edgeSymbol")),a=i(t.get("edgeSymbolSize")),o="lineStyle.color".split("."),s="lineStyle.opacity".split(".");n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("color",t.get(o)),n.setVisual("opacity",t.get(s)),n.each(function(t){var r=n.getItemModel(t),a=e.getEdgeByIndex(t),l=i(r.getShallow("symbol",!0)),u=i(r.getShallow("symbolSize",!0)),h=r.get(o),c=r.get(s);switch(h){case"source":h=a.node1.getVisual("color");break;case"target":h=a.node2.getVisual("color")}l[0]&&a.setVisual("fromSymbol",l[0]),l[1]&&a.setVisual("toSymbol",l[1]),u[0]&&a.setVisual("fromSymbolSize",u[0]),u[1]&&a.setVisual("toSymbolSize",u[1]),a.setVisual("color",h),a.setVisual("opacity",c)})})}t.exports=n},function(t,e,i){function n(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),i=t.coordinateSystem;if(i&&"view"!==i.type){var n=t.getData(),r=[];a(i.dimensions,function(t){r=r.concat(n.mapDimension(t,!0))});for(var o=0;o<n.count();o++){for(var u=[],h=!1,c=0;c<r.length;c++){var d=n.get(r[c],o);isNaN(d)||(h=!0),u.push(d)}h?n.setItemLayout(o,i.dataToPoint(u)):n.setItemLayout(o,[NaN,NaN])}l(n.graph)}else e&&"none"!==e||s(t)})}var r=i(0),a=r.each,o=i(293),s=o.simpleLayout,l=o.simpleLayoutEdge;t.exports=n},function(t,e,i){function n(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&a(t)})}var r=i(294),a=r.circularLayout;t.exports=n},function(t,e,i){function n(t){t.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var i=t.preservedPoints||{},n=t.getGraph(),r=n.data,o=n.edgeData,l=t.getModel("force"),h=l.get("initLayout");t.preservedPoints?r.each(function(t){var e=r.getId(t);r.setItemLayout(t,i[e]||[NaN,NaN])}):h&&"none"!==h?"circular"===h&&u(t):s(t);var f=r.getDataExtent("value"),g=o.getDataExtent("value"),m=l.get("repulsion"),v=l.get("edgeLength");p.isArray(m)||(m=[m,m]),p.isArray(v)||(v=[v,v]),v=[v[1],v[0]];var y=r.mapArray("value",function(t,e){var i=r.getItemLayout(e),n=c(t,f,m);return isNaN(n)&&(n=(m[0]+m[1])/2),{w:n,rep:n,fixed:r.getItemModel(e).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}}),_=o.mapArray("value",function(t,e){var i=n.getEdgeByIndex(e),r=c(t,g,v);return isNaN(r)&&(r=(v[0]+v[1])/2),{n1:y[i.node1.dataIndex],n2:y[i.node2.dataIndex],d:r,curveness:i.getModel().get("lineStyle.curveness")||0}}),e=t.coordinateSystem,b=e.getBoundingRect(),x=a(y,_,{rect:b,gravity:l.get("gravity")}),w=x.step;x.step=function(t){for(var e=0,a=y.length;e<a;e++)y[e].fixed&&d.copy(y[e].p,n.getNodeByIndex(e).getLayout());w(function(e,a,o){ for(var s=0,l=e.length;s<l;s++)e[s].fixed||n.getNodeByIndex(s).setLayout(e[s].p),i[r.getId(s)]=e[s].p;for(var s=0,l=a.length;s<l;s++){var u=a[s],h=n.getEdgeByIndex(s),c=u.n1.p,p=u.n2.p,f=h.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],d.copy(f[0],c),d.copy(f[1],p),+u.curveness&&(f[2]=[(c[0]+p[0])/2-(c[1]-p[1])*u.curveness,(c[1]+p[1])/2-(p[0]-c[0])*u.curveness]),h.setLayout(f)}t&&t(o)})},t.forceLayout=x,t.preservedPoints=i,x.step()}else t.forceLayout=null})}var r=i(559),a=r.forceLayout,o=i(293),s=o.simpleLayout,l=i(294),u=l.circularLayout,h=i(4),c=h.linearMap,d=i(10),p=i(0);t.exports=n},function(t,e,i){function n(t,e,i){for(var n=i.rect,o=n.width,s=n.height,l=[n.x+o/2,n.y+s/2],u=null==i.gravity?.1:i.gravity,h=0;h<t.length;h++){var c=t[h];c.p||(c.p=r.create(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=r.clone(c.p),c.edges=null}var d=.6;return{warmUp:function(){d=.5},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(i){for(var n=[],o=t.length,s=0;s<e.length;s++){var h=e[s],c=h.n1,p=h.n2;r.sub(n,p.p,c.p);var f=r.len(n)-h.d,g=p.w/(c.w+p.w);isNaN(g)&&(g=0),r.normalize(n,n),!c.fixed&&a(c.p,c.p,n,g*f*d),!p.fixed&&a(p.p,p.p,n,-(1-g)*f*d)}for(var s=0;s<o;s++){var m=t[s];m.fixed||(r.sub(n,l,m.p),a(m.p,m.p,n,u*d))}for(var s=0;s<o;s++)for(var c=t[s],v=s+1;v<o;v++){var p=t[v];r.sub(n,p.p,c.p);var f=r.len(n);0===f&&(r.set(n,Math.random()-.5,Math.random()-.5),f=1);var y=(c.rep+p.rep)/f/f;!c.fixed&&a(c.pp,c.pp,n,y),!p.fixed&&a(p.pp,p.pp,n,-y)}for(var _=[],s=0;s<o;s++){var m=t[s];m.fixed||(r.sub(_,m.p,m.pp),a(m.p,m.p,_,d),r.copy(m.pp,m.p))}d=.992*d,i&&i(t,e,d<.01)}}}var r=i(10),a=r.scaleAndAdd;e.forceLayout=n},function(t,e,i){function n(t,e,i){var n=t.getBoxLayoutParams();return n.aspect=i,s(n,{width:e.getWidth(),height:e.getHeight()})}function r(t,e){var i=[];return t.eachSeriesByType("graph",function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var o=t.getData(),s=o.mapArray(function(t){var e=o.getItemModel(t);return[+e.get("x"),+e.get("y")]}),u=[],h=[];l.fromPoints(s,u,h),h[0]-u[0]===0&&(h[0]+=1,u[0]-=1),h[1]-u[1]===0&&(h[1]+=1,u[1]-=1);var c=(h[0]-u[0])/(h[1]-u[1]),d=n(t,e,c);isNaN(c)&&(u=[d.x,d.y],h=[d.x+d.width,d.y+d.height]);var p=h[0]-u[0],f=h[1]-u[1],g=d.width,m=d.height,v=t.coordinateSystem=new a;v.zoomLimit=t.get("scaleLimit"),v.setBoundingRect(u[0],u[1],p,f),v.setViewRect(d.x,d.y,g,m),v.setCenter(t.get("center")),v.setZoom(t.get("zoom")),i.push(v)}}),i}var a=i(284),o=i(8),s=o.getLayoutRect,l=i(95);t.exports=r},function(t,e,i){i(562),i(563)},function(t,e,i){var n=i(51),r=i(18),a=i(0),o=r.extend({type:"series.gauge",getInitialData:function(t,e){var i=t.data||[];return a.isArray(i)||(i=[i]),t.data=i,n(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),s=o;t.exports=s},function(t,e,i){function n(t,e){var i=t.get("center"),n=e.getWidth(),r=e.getHeight(),a=Math.min(n,r),o=u(i[0],e.getWidth()),s=u(i[1],e.getHeight()),l=u(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function r(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}var a=i(564),o=i(3),s=i(29),l=i(4),u=l.parsePercent,h=l.round,c=l.linearMap,d=2*Math.PI,p=s.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var r=t.get("axisLine.lineStyle.color"),a=n(t,i);this._renderMain(t,e,i,r,a)},dispose:function(){},_renderMain:function(t,e,i,n,r){for(var a=this.group,s=t.getModel("axisLine"),l=s.getModel("lineStyle"),u=t.get("clockwise"),h=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,p=(c-h)%d,f=h,g=l.get("width"),m=0;m<n.length;m++){var v=Math.min(Math.max(n[m][0],0),1),c=h+p*v,y=new o.Sector({shape:{startAngle:f,endAngle:c,cx:r.cx,cy:r.cy,clockwise:u,r0:r.r-g,r:r.r},silent:!0});y.setStyle({fill:n[m][1]}),y.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),a.add(y),f=c}var _=function(t){if(t<=0)return n[0][1];for(var e=0;e<n.length;e++)if(n[e][0]>=t&&(0===e?0:n[e-1][0])<t)return n[e][1];return n[e-1][1]};if(!u){var b=h;h=c,c=b}this._renderTicks(t,e,i,_,r,h,c,u),this._renderPointer(t,e,i,_,r,h,c,u),this._renderTitle(t,e,i,_,r),this._renderDetail(t,e,i,_,r)},_renderTicks:function(t,e,i,n,a,s,l,c){for(var d=this.group,p=a.cx,f=a.cy,g=a.r,m=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),_=t.getModel("axisTick"),b=t.getModel("axisLabel"),x=t.get("splitNumber"),w=_.get("splitNumber"),M=u(y.get("length"),g),S=u(_.get("length"),g),k=s,D=(l-s)/x,T=D/w,L=y.getModel("lineStyle").getLineStyle(),C=_.getModel("lineStyle").getLineStyle(),I=0;I<=x;I++){var A=Math.cos(k),P=Math.sin(k);if(y.get("show")){var E=new o.Line({shape:{x1:A*g+p,y1:P*g+f,x2:A*(g-M)+p,y2:P*(g-M)+f},style:L,silent:!0});"auto"===L.stroke&&E.setStyle({stroke:n(I/x)}),d.add(E)}if(b.get("show")){var O=r(h(I/x*(v-m)+m),b.get("formatter")),R=b.get("distance"),H=n(I/x);d.add(new o.Text({style:o.setTextStyle({},b,{text:O,x:A*(g-M-R)+p,y:P*(g-M-R)+f,textVerticalAlign:P<-.4?"top":P>.4?"bottom":"middle",textAlign:A<-.4?"left":A>.4?"right":"center"},{autoColor:H}),silent:!0}))}if(_.get("show")&&I!==x){for(var z=0;z<=w;z++){var A=Math.cos(k),P=Math.sin(k),Y=new o.Line({shape:{x1:A*g+p,y1:P*g+f,x2:A*(g-S)+p,y2:P*(g-S)+f},silent:!0,style:C});"auto"===C.stroke&&Y.setStyle({stroke:n((I+z/w)/x)}),d.add(Y),k+=T}k-=T}else k+=D}},_renderPointer:function(t,e,i,n,r,s,l,h){var d=this.group,p=this._data;if(!t.get("pointer.show"))return void(p&&p.eachItemGraphicEl(function(t){d.remove(t)}));var f=[+t.get("min"),+t.get("max")],g=[s,l],m=t.getData(),v=m.mapDimension("value");m.diff(p).add(function(e){var i=new a({shape:{angle:s}});o.initProps(i,{shape:{angle:c(m.get(v,e),f,g,!0)}},t),d.add(i),m.setItemGraphicEl(e,i)}).update(function(e,i){var n=p.getItemGraphicEl(i);o.updateProps(n,{shape:{angle:c(m.get(v,e),f,g,!0)}},t),d.add(n),m.setItemGraphicEl(e,n)}).remove(function(t){var e=p.getItemGraphicEl(t);d.remove(e)}).execute(),m.eachItemGraphicEl(function(t,e){var i=m.getItemModel(e),a=i.getModel("pointer");t.setShape({x:r.cx,y:r.cy,width:u(a.get("width"),r.r),r:u(a.get("length"),r.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(c(m.get(v,e),f,[0,1],!0))),o.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())}),this._data=m},_renderTitle:function(t,e,i,n,r){var a=t.getData(),s=a.mapDimension("value"),l=t.getModel("title");if(l.get("show")){var h=l.get("offsetCenter"),d=r.cx+u(h[0],r.r),p=r.cy+u(h[1],r.r),f=+t.get("min"),g=+t.get("max"),m=t.getData().get(s,0),v=n(c(m,[f,g],[0,1],!0));this.group.add(new o.Text({silent:!0,style:o.setTextStyle({},l,{x:d,y:p,text:a.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,a){var s=t.getModel("detail"),l=+t.get("min"),h=+t.get("max");if(s.get("show")){var d=s.get("offsetCenter"),p=a.cx+u(d[0],a.r),f=a.cy+u(d[1],a.r),g=u(s.get("width"),a.r),m=u(s.get("height"),a.r),v=t.getData(),y=v.get(v.mapDimension("value"),0),_=n(c(y,[l,h],[0,1],!0));this.group.add(new o.Text({silent:!0,style:o.setTextStyle({},s,{x:p,y:f,text:r(y,s.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),f=p;t.exports=f},function(t,e,i){var n=i(14),r=n.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var i=Math.cos,n=Math.sin,r=e.r,a=e.width,o=e.angle,s=e.x-i(o)*a*(a>=r/3?1:2),l=e.y-n(o)*a*(a>=r/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(o)*a,e.y+n(o)*a),t.lineTo(e.x+i(e.angle)*r,e.y+n(e.angle)*r),t.lineTo(e.x-i(o)*a,e.y-n(o)*a),t.lineTo(s,l)}});t.exports=r},function(t,e,i){var n=i(2);i(566),i(567);var r=i(86),a=i(568),o=i(64);n.registerVisual(r("funnel")),n.registerLayout(a),n.registerProcessor(o("funnel"))},function(t,e,i){var n=i(2),r=i(51),a=i(5),o=a.defaultEmphasis,s=n.extendSeriesModel({type:"series.funnel",init:function(t){s.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return r(this,["value"])},_defaultLabelLine:function(t){o(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),i=s.superCall(this,"getDataParams",t),n=e.mapDimension("value"),r=e.getSum(n);return i.percent=r?+(e.get(n,t)/r*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),l=s;t.exports=l},function(t,e,i){function n(t,e){function i(){o.ignore=o.hoverIgnore,s.ignore=s.hoverIgnore}function n(){o.ignore=o.normalIgnore,s.ignore=s.normalIgnore}r.Group.call(this);var a=new r.Polygon,o=new r.Polyline,s=new r.Text;this.add(a),this.add(o),this.add(s),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}var r=i(3),a=i(0),o=i(29),s=n.prototype,l=["itemStyle","opacity"];s.updateData=function(t,e,i){var n=this.childAt(0),o=t.hostModel,s=t.getItemModel(e),u=t.getItemLayout(e),h=t.getItemModel(e).get(l);h=null==h?1:h,n.useStyle({}),i?(n.setShape({points:u.points}),n.setStyle({opacity:0}),r.initProps(n,{style:{opacity:h}},o,e)):r.updateProps(n,{style:{opacity:h},shape:{points:u.points}},o,e);var c=s.getModel("itemStyle"),d=t.getItemVisual(e,"color");n.setStyle(a.defaults({lineJoin:"round",fill:d},c.getItemStyle(["opacity"]))),n.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),r.setHoverStyle(this)},s._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"color");r.updateProps(i,{shape:{points:l.linePoints||l.linePoints}},a,e),r.updateProps(n,{style:{x:l.x,y:l.y}},a,e),n.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var h=o.getModel("label"),c=o.getModel("emphasis.label"),d=o.getModel("labelLine"),p=o.getModel("emphasis.labelLine"),u=t.getItemVisual(e,"color");r.setLabelStyle(n.style,n.hoverStyle={},h,c,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!c.get("show"),i.ignore=i.normalIgnore=!d.get("show"),i.hoverIgnore=!p.get("show"),i.setStyle({stroke:u}),i.setStyle(d.getModel("lineStyle").getLineStyle()),i.hoverStyle=p.getModel("lineStyle").getLineStyle()},a.inherits(n,r.Group);var u=o.extend({type:"funnel",render:function(t,e,i){var r=t.getData(),a=this._data,o=this.group;r.diff(a).add(function(t){var e=new n(r,t);r.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var i=a.getItemGraphicEl(e);i.updateData(r,t),o.add(i),r.setItemGraphicEl(t,i)}).remove(function(t){var e=a.getItemGraphicEl(t);o.remove(e)}).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),h=u;t.exports=h},function(t,e,i){function n(t,e){return s.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function r(t,e){for(var i=t.mapDimension("value"),n=t.mapArray(i,function(t){return t}),r=[],a="ascending"===e,o=0,s=t.count();o<s;o++)r[o]=o;return"function"==typeof e?r.sort(e):"none"!==e&&r.sort(function(t,e){return a?n[t]-n[e]:n[e]-n[t]}),r}function a(t){t.each(function(e){var i,n,r,a,o=t.getItemModel(e),s=o.getModel("label"),l=s.get("position"),u=o.getModel("labelLine"),h=t.getItemLayout(e),c=h.points,d="inner"===l||"inside"===l||"center"===l;if(d)n=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,r=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,i="center",a=[[n,r],[n,r]];else{var p,f,g,m=u.get("length");"left"===l?(p=(c[3][0]+c[0][0])/2,f=(c[3][1]+c[0][1])/2,g=p-m,n=g-5,i="right"):(p=(c[1][0]+c[2][0])/2,f=(c[1][1]+c[2][1])/2,g=p+m,n=g+5,i="left");var v=f;a=[[p,f],[g,v]],r=v}h.label={linePoints:a,x:n,y:r,verticalAlign:"middle",textAlign:i,inside:d}})}function o(t,e,i){t.eachSeriesByType("funnel",function(t){var i=t.getData(),o=i.mapDimension("value"),s=t.get("sort"),l=n(t,e),c=r(i,s),d=[u(t.get("minSize"),l.width),u(t.get("maxSize"),l.width)],p=i.getDataExtent(o),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var m=t.get("funnelAlign"),v=t.get("gap"),y=(l.height-v*(i.count()-1))/i.count(),_=l.y,b=function(t,e){var n,r=i.get(o,t)||0,a=h(r,[f,g],d,!0);switch(m){case"left":n=l.x;break;case"center":n=l.x+(l.width-a)/2;break;case"right":n=l.x+l.width-a}return[[n,e],[n+a,e]]};"ascending"===s&&(y=-y,v=-v,_+=l.height,c=c.reverse());for(var x=0;x<c.length;x++){var w=c[x],M=c[x+1],S=i.getItemModel(w),k=S.get("itemStyle.height");null==k?k=y:(k=u(k,l.height),"ascending"===s&&(k=-k));var D=b(w,_),T=b(M,_+k);_+=k+v,i.setItemLayout(w,{points:D.concat(T.slice().reverse())})}a(i)})}var s=i(8),l=i(4),u=l.parsePercent,h=l.linearMap;t.exports=o},function(t,e,i){var n=i(2);i(295),i(578),i(579);var r=i(580);n.registerVisual(r)},function(t,e,i){function n(t){r(t),a(t)}function r(t){if(!t.parallel){var e=!1;o.each(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}function a(t){var e=s.normalizeToArray(t.parallelAxis);o.each(e,function(e){if(o.isObject(e)){var i=e.parallelIndex||0,n=s.normalizeToArray(t.parallel)[i];n&&n.parallelAxisDefault&&o.merge(e,n.parallelAxisDefault,!1)}})}var o=i(0),s=i(5);t.exports=n},function(t,e,i){function n(t,e,i){this._axesMap=s.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function r(t,e){return m(v(t,e[0]),e[1])}function a(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function o(t,e){var i,n,r=e.layoutLength,a=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t<l[0]?(i=t*s,n=s):t<=l[1]?(i=e.axisExpandWindow0Pos+t*a-e.axisExpandWindow[0],u=a,h=!0):(i=r-(o-1-t)*s,n=s),{position:i,axisNameAvailableWidth:u,axisLabelShow:h,nameTruncateMaxWidth:n}}var s=i(0),l=i(19),u=i(8),h=i(23),c=i(572),d=i(3),p=i(4),f=i(65),g=s.each,m=Math.min,v=Math.max,y=Math.floor,_=Math.ceil,b=p.round,x=Math.PI;n.prototype={type:"parallel",constructor:n,_init:function(t,e,i){var n=t.dimensions,r=t.parallelAxisIndex;g(n,function(t,i){var n=r[i],a=e.getComponent("parallelAxis",n),o=this._axesMap.set(t,new c(t,h.createScaleByModel(a),[0,0],a.get("type"),n)),s="category"===o.type;o.onBand=s&&a.get("boundaryGap"),o.inverse=a.get("inverse"),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this},this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,r=e.pixelDimIndex,a=t[1-r],o=t[r];return a>=i&&a<=i+e.axisLength&&o>=n&&o<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var n=i.getData();g(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),h.niceScaleExtent(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=u.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],a=["width","height"],o=e.get("layout"),s="horizontal"===o?0:1,l=i[a[s]],u=[0,l],h=this.dimensions.length,c=r(e.get("axisExpandWidth"),u),d=r(e.get("axisExpandCount")||0,[0,h]),p=e.get("axisExpandable")&&h>3&&h>d&&d>1&&c>0&&l>0,f=e.get("axisExpandWindow");if(f)t=r(f[1]-f[0],u),f[1]=f[0]+t;else{t=r(c*(d-1),u);var g=e.get("axisExpandCenter")||y(h/2);f=[c*g-t/2],f[1]=f[0]+t}var m=(l-t)/(h-d);m<3&&(m=0);var v=[y(b(f[0]/c,1))+1,_(b(f[1]/c,1))-1],x=m/c*f[0];return{layout:o,pixelDimIndex:s,layoutBase:i[n[s]],layoutLength:l,axisBase:i[n[1-s]],axisLength:i[a[1-s]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:f,axisCount:h,winInnerIndices:v,axisExpandWindow0Pos:x}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;e.each(function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])}),g(i,function(e,i){var s=(n.axisExpandable?o:a)(i,n),u={horizontal:{x:s.position,y:n.axisLength},vertical:{x:0,y:s.position}},h={horizontal:x/2,vertical:0},c=[u[r].x+t.x,u[r].y+t.y],d=h[r],p=l.create();l.rotate(p,p,d),l.translate(p,p,c),this._axesLayout[e]={position:c,rotation:d,transform:p,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,i,n){null==i&&(i=0),null==n&&(n=t.count());var r=this._axesMap,a=this.dimensions,o=[],l=[];s.each(a,function(e){o.push(t.mapDimension(e)),l.push(r.get(e).model)});for(var u=this.hasAxisBrushed(),h=i;h<n;h++){var c;if(u){c="active";for(var d=t.getValues(o,h),p=0,f=a.length;p<f;p++){var g=l[p].getActiveState(d[p]);if("inactive"===g){c="inactive";break}}}else c="normal";e(c,h)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,i=!1,n=0,r=t.length;n<r;n++)"normal"!==e.get(t[n]).model.getActiveState()&&(i=!0);return i},axisCoordToPoint:function(t,e){var i=this._axesLayout[e];return d.applyTransform([t,0],i.transform)},getAxisLayout:function(t){return s.clone(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,n=e.axisExpandWindow.slice(),r=n[1]-n[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var o,s=t[i]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),c=null!=h[0];if(u)c&&u&&s<r*h[0]?(l="jump",o=s-r*h[2]):c&&u&&s>r*(1-h[0])?(l="jump",o=s-r*(1-h[2])):(o=s-r*h[1])>=0&&(o=s-r*(1-h[1]))<=0&&(o=0),o*=e.axisExpandWidth/u,o?f(o,n,a,"all"):l="none";else{var r=n[1]-n[0],d=a[1]*s/r;n=[v(0,d-r/2)],n[1]=m(a[1],n[0]+r),n[0]=n[1]-r}return{axisExpandWindow:n,behavior:l}}};var w=n;t.exports=w},function(t,e,i){var n=i(0),r=i(34),a=function(t,e,i,n,a){r.call(this,t,e,i),this.type=n||"value",this.axisIndex=a};a.prototype={constructor:a,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},n.inherits(a,r);var o=a;t.exports=o},function(t,e,i){var n=i(0),r=i(16);i(574);var a=r.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&n.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var i=t.get("parallelIndex");return null!=i&&e.getComponent("parallel",i)===this},setAxisExpand:function(t){n.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],i=n.filter(this.dependentModels.parallelAxis,function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this);n.each(i,function(i){t.push("dim"+i.get("dim")),e.push(i.componentIndex)})}});t.exports=a},function(t,e,i){function n(t,e){return e.type||(e.data?"category":"value")}var r=i(0),a=i(16),o=i(46),s=i(84),l=i(4),u=i(50),h=a.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=r.clone(t);if(e)for(var i=e.length-1;i>=0;i--)l.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,r=e.length;n<r;n++)if(e[n][0]<=t&&t<=e[n][1])return"active";return"inactive"}}),c={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};r.merge(h.prototype,u),s("parallel",h,n,c);var d=h;t.exports=d},function(t,e,i){i(296),i(576),i(577)},function(t,e,i){var n=i(2),r={type:"axisAreaSelect",event:"axisAreaSelected"};n.registerAction(r,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),n.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(e){e.setAxisExpand(t)})})},function(t,e,i){function n(t,e,i){return i&&"axisAreaSelect"===i.type&&e.findComponents({mainType:"parallelAxis",query:i})[0]===t}function r(t){var e=t.axis;return s.map(t.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function a(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var o=i(2),s=i(0),l=i(42),u=i(106),h=i(297),c=i(3),d=["axisLine","axisTickLabel","axisName"],p=o.extendComponentView({type:"parallelAxis",init:function(t,e){p.superApply(this,"init",arguments),(this._brushController=new u(e.getZr())).on("brush",s.bind(this._onBrush,this))},render:function(t,e,i,r){if(!n(t,e,r)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new c.Group,this.group.add(this._axisGroup),t.get("show")){var u=a(t,e),h=u.coordinateSystem,p=t.getAreaSelectStyle(),f=p.width,g=t.axis.dim,m=h.getAxisLayout(g),v=s.extend({strokeContainThreshold:f},m),y=new l(t,v);s.each(d,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(v,p,t,u,f,i);var _=r&&r.animation===!1?null:t;c.groupTransition(o,this._axisGroup,_)}}},_refreshBrushController:function(t,e,i,n,a,o){var s=i.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,.1*Math.abs(l)),d=c.BoundingRect.create({x:s[0],y:-a/2,width:l,height:a});d.x-=u,d.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:h.makeRectPanelClipPath(d),isTargetByCursor:h.makeRectIsTargetByCursor(d,o,n),getLinearBrushOtherExtent:h.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(r(i))},_onBrush:function(t,e){var i=this.axisModel,n=i.axis,r=s.map(t,function(t){return[n.coordToData(t.range[0],!0),n.coordToData(t.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:r})},dispose:function(){this._brushController.dispose()}}),f=p;t.exports=f},function(t,e,i){function n(t,e){if(!t.encodeDefine){var i=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(i){var n=t.encodeDefine=s();o(i.dimensions,function(t){var e=r(t);n.set(t,e)})}}}function r(t){return+t.replace("dim","")}var a=i(0),o=a.each,s=a.createHashMap,l=i(18),u=i(30),h=l.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var i=this.getSource();return n(i,this),u(i,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,function(e,r){t===e&&n.push(i.getRawIndex(r))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});t.exports=h},function(t,e,i){function n(t,e,i){var n=t.model,r=t.getRect(),a=new u.Rect({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),o="horizontal"===n.get("layout")?"width":"height";return a.setShape(o,0),u.initProps(a,{shape:{width:r.width,height:r.height}},e,i),a}function r(t,e,i,n){for(var r=[],a=0;a<i.length;a++){var o=i[a],s=t.get(t.mapDimension(o),e);l(s,n.getAxis(o).type)||r.push(n.dataToPoint(s,o))}return r}function a(t,e,i,n,a){var o=r(t,i,n,a),s=new u.Polyline({shape:{points:o},silent:!0,z2:10});return e.add(s),t.setItemGraphicEl(i,s),s}function o(t){var e=t.get("smooth",!0);return e===!0&&(e=c),{lineStyle:t.getModel("lineStyle").getLineStyle(),smooth:null!=e?e:c}}function s(t,e,i,n){var r=n.lineStyle;if(e.hasItemOption){var a=e.getItemModel(i).getModel("lineStyle");r=a.getLineStyle()}t.useStyle(r);var o=t.style;o.fill=null,o.stroke=e.getItemVisual(i,"color"),o.opacity=e.getItemVisual(i,"opacity"),n.smooth&&(t.shape.smooth=n.smooth)}function l(t,e){return"category"===e?null==t:null==t||isNaN(t)}var u=i(3),h=(i(0),i(29)),c=.3,d=h.extend({type:"parallel",init:function(){this._dataGroup=new u.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,i,l){function h(t){var e=a(f,p,t,v,m);s(e,f,t,y)}function c(e,i){var n=g.getItemGraphicEl(i),a=r(f,e,v,m);f.setItemGraphicEl(e,n);var o=l&&l.animation===!1?null:t;u.updateProps(n,{shape:{points:a}},o,e),s(n,f,e,y)}function d(t){var e=g.getItemGraphicEl(t);p.remove(e)}var p=this._dataGroup,f=t.getData(),g=this._data,m=t.coordinateSystem,v=m.dimensions,y=o(t);if(f.diff(g).add(h).update(c).remove(d).execute(),!this._initialized){this._initialized=!0;var _=n(m,t,function(){setTimeout(function(){p.removeClipPath()})});p.setClipPath(_)}this._data=f},incrementalPrepareRender:function(t,e,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,i){for(var n=e.getData(),r=e.coordinateSystem,l=r.dimensions,u=o(e),h=t.start;h<t.end;h++){var c=a(n,this._dataGroup,h,l,r);c.incremental=!0,s(c,n,h,u)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}}),p=d;t.exports=p},function(t,e){var i=["lineStyle","normal","opacity"],n={seriesType:"parallel",reset:function(t,e,n){function r(t,e){d.eachActiveState(e,function(t,n){var r=f[t];if("normal"===t&&e.hasItemOption){var a=e.getItemModel(n).get(i,!0);null!=a&&(r=a)}e.setItemVisual(n,"opacity",r)},t.start,t.end)}var a=t.getModel("itemStyle"),o=t.getModel("lineStyle"),s=e.get("color"),l=o.get("color")||a.get("color")||s[t.seriesIndex%s.length],u=t.get("inactiveOpacity"),h=t.get("activeOpacity"),c=t.getModel("lineStyle").getLineStyle(),d=t.coordinateSystem,p=t.getData(),f={normal:c.opacity,active:h,inactive:u};return p.setVisual("color",l),{progress:r}}};t.exports=n},function(t,e,i){var n=i(2);i(582),i(583),i(584);var r=i(585),a=i(586);n.registerLayout(r),n.registerVisual(a)},function(t,e,i){var n=i(18),r=i(292),a=i(11),o=a.encodeHTML,s=n.extend({type:"series.sankey",layoutInfo:null,getInitialData:function(t){var e=t.edges||t.links,i=t.data||t.nodes;if(i&&e){var n=r(i,e,this,!0);return n.data}},setNodePosition:function(t,e){var i=this.option.data[t];i.localX=e[0],i.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getDataParams(t,i),r=n.data,a=r.source+" -- "+r.target;return n.value&&(a+=" : "+n.value),o(a)}return s.superCall(this,"formatTooltip",t,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}}),l=s;t.exports=l},function(t,e,i){function n(t,e,i){var n=new r.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return r.initProps(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}var r=i(3),a=i(2),o=r.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0},buildPath:function(t,e){var i=e.extent/2;t.moveTo(e.x1,e.y1-i),t.bezierCurveTo(e.cpx1,e.cpy1-i,e.cpx2,e.cpy2-i,e.x2,e.y2-i),t.lineTo(e.x2,e.y2+i),t.bezierCurveTo(e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i),t.closePath()}}),s=a.extendChartView({type:"sankey",_model:null,render:function(t,e,i){var a=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,h=l.height,c=t.getData(),d=t.getData("edge");this._model=t,s.removeAll(),s.attr("position",[l.x,l.y]),a.eachEdge(function(e){var i=new o;i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var n=e.getModel("lineStyle"),a=n.get("curveness"),l=e.node1.getLayout(),c=e.node1.getModel(),p=c.get("localX"),f=c.get("localY"),g=e.node2.getLayout(),m=e.node2.getModel(),v=m.get("localX"),y=m.get("localY"),_=e.getLayout();i.shape.extent=Math.max(1,_.dy);var b=(null!=p?p*u:l.x)+l.dx,x=(null!=f?f*h:l.y)+_.sy+_.dy/2,w=null!=v?v*u:g.x,M=(null!=y?y*h:g.y)+_.ty+_.dy/2,S=b*(1-a)+w*a,k=x,D=b*a+w*(1-a),T=M;switch(i.setShape({x1:b,y1:x,x2:w,y2:M,cpx1:S,cpy1:k,cpx2:D,cpy2:T}),i.setStyle(n.getItemStyle()),i.style.fill){case"source":i.style.fill=e.node1.getVisual("color");break;case"target":i.style.fill=e.node2.getVisual("color")}r.setHoverStyle(i,e.getModel("emphasis.lineStyle").getItemStyle()),s.add(i),d.setItemGraphicEl(e.dataIndex,i)}),a.eachNode(function(e){var i=e.getLayout(),n=e.getModel(),a=n.get("localX"),o=n.get("localY"),l=n.getModel("label"),d=n.getModel("emphasis.label"),p=new r.Rect({shape:{x:null!=a?a*u:i.x,y:null!=o?o*h:i.y,width:i.dx,height:i.dy},style:n.getModel("itemStyle").getItemStyle()}),f=e.getModel("emphasis.itemStyle").getItemStyle();r.setLabelStyle(p.style,f,l,d,{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),p.setStyle("fill",e.getVisual("color")),r.setHoverStyle(p,f),s.add(p),c.setItemGraphicEl(e.dataIndex,p),p.dataType="node"});var p=t.get("draggable");p&&c.eachItemGraphicEl(function(e,n){e.drift=function(e,r){this.shape.x+=e,this.shape.y+=r,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/u,localY:this.shape.y/h})},e.draggable=!0,e.cursor="move"}),!this._data&&t.get("animation")&&s.setClipPath(n(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},dispose:function(){}});t.exports=s},function(t,e,i){var n=i(2);n.registerAction({type:"dragNode",event:"dragNode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])})})},function(t,e,i){function n(t,e,i){t.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),s=r(t,e);t.layoutInfo=s;var l=s.width,u=s.height,h=t.getGraph(),c=h.nodes,d=h.edges; o(c);var p=T.filter(c,function(t){return 0===t.getLayout().value}),f=0!==p.length?0:t.get("layoutIterations");a(c,d,i,n,l,u,f)})}function r(t,e){return k.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function a(t,e,i,n,r,a,o){s(t,e,i,r),h(t,e,a,n,o),v(t)}function o(t){T.each(t,function(t){var e=b(t.outEdges,S),i=b(t.inEdges,S),n=Math.max(e,i);t.setLayout({value:n},!0)})}function s(t,e,i,n){for(var r=[],a=[],o=[],s=[],h=0,c=0,d=0;d<e.length;d++)r[d]=1;for(var d=0;d<t.length;d++)a[d]=t[d].inEdges.length,0===a[d]&&o.push(t[d]);for(;o.length;)T.each(o,function(n){n.setLayout({x:h},!0),n.setLayout({dx:i},!0),T.each(n.outEdges,function(i){var n=e.indexOf(i);r[n]=0;var o=i.node2,l=t.indexOf(o);0===--a[l]&&s.push(o)})}),++h,o=s,s=[];for(var d=0;d<r.length;d++);l(t,h),c=(n-i)/(h-1),u(t,c)}function l(t,e){T.each(t,function(t){t.outEdges.length||t.setLayout({x:e-1},!0)})}function u(t,e){T.each(t,function(t){var i=t.getLayout().x*e;t.setLayout({x:i},!0)})}function h(t,e,i,n,r){var a=D().key(function(t){return t.getLayout().x}).sortKeys(M).entries(t).map(function(t){return t.values});c(t,a,e,i,n),d(a,n,i);for(var o=1;r>0;r--)o*=.99,p(a,o),d(a,n,i),g(a,o),d(a,n,i)}function c(t,e,i,n,r){var a=[];T.each(e,function(t){var e=t.length,i=0;T.each(t,function(t){i+=t.getLayout().value});var o=(n-(e-1)*r)/i;a.push(o)}),a.sort(function(t,e){return t-e});var o=a[0];T.each(e,function(t){T.each(t,function(t,e){t.setLayout({y:e},!0);var i=t.getLayout().value*o;t.setLayout({dy:i},!0)})}),T.each(i,function(t){var e=+t.getValue()*o;t.setLayout({dy:e},!0)})}function d(t,e,i){T.each(t,function(t){var n,r,a,o=0,s=t.length;for(t.sort(w),a=0;a<s;a++){if(n=t[a],r=o-n.getLayout().y,r>0){var l=n.getLayout().y+r;n.setLayout({y:l},!0)}o=n.getLayout().y+n.getLayout().dy+e}if(r=o-e-i,r>0){var l=n.getLayout().y-r;for(n.setLayout({y:l},!0),o=n.getLayout().y,a=s-2;a>=0;--a)n=t[a],r=n.getLayout().y+n.getLayout().dy+e-o,r>0&&(l=n.getLayout().y-r,n.setLayout({y:l},!0)),o=n.getLayout().y}})}function p(t,e){T.each(t.slice().reverse(),function(t){T.each(t,function(t){if(t.outEdges.length){var i=b(t.outEdges,f)/b(t.outEdges,S),n=t.getLayout().y+(i-x(t))*e;t.setLayout({y:n},!0)}})})}function f(t){return x(t.node2)*t.getValue()}function g(t,e){T.each(t,function(t){T.each(t,function(t){if(t.inEdges.length){var i=b(t.inEdges,m)/b(t.inEdges,S),n=t.getLayout().y+(i-x(t))*e;t.setLayout({y:n},!0)}})})}function m(t){return x(t.node1)*t.getValue()}function v(t){T.each(t,function(t){t.outEdges.sort(y),t.inEdges.sort(_)}),T.each(t,function(t){var e=0,i=0;T.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),T.each(t.inEdges,function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy})})}function y(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}function _(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}function b(t,e){for(var i=0,n=t.length,r=-1;++r<n;){var a=+e.call(t,t[r],r);isNaN(a)||(i+=a)}return i}function x(t){return t.getLayout().y+t.getLayout().dy/2}function w(t,e){return t.getLayout().y-e.getLayout().y}function M(t,e){return t-e}function S(t){return t.getValue()}var k=i(8),D=i(298),T=i(0),L=i(7);L.__DEV__;t.exports=n},function(t,e,i){function n(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),i=e.nodes;if(i.length){var n=1/0,o=-(1/0);a.each(i,function(t){var e=t.getLayout().value;e<n&&(n=e),e>o&&(o=e)}),a.each(i,function(e){var i=new r({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:t.get("color")}),a=i.mapValueToVisual(e.getLayout().value);e.setVisual("color",a);var s=e.getModel(),l=s.get("itemStyle.color");null!=l&&e.setVisual("color",l)})}})}var r=i(45),a=i(0);t.exports=n},function(t,e,i){var n=i(2);i(588),i(589);var r=i(590),a=i(591);n.registerVisual(r),n.registerLayout(a)},function(t,e,i){var n=i(0),r=i(18),a=i(299),o=a.seriesModelMixin,s=r.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});n.mixin(s,o,!0);var l=s;t.exports=l},function(t,e,i){function n(t,e,i,n,o){var s=t.ends,l=new p({shape:{points:o?a(s,n,t):s}});return r(t,l,e,i,o),l}function r(t,e,i,n,r){var a=i.hostModel,o=l[r?"initProps":"updateProps"];o(e,{shape:{points:t.ends}},a,n);var s=i.getItemModel(n),u=s.getModel(h),d=i.getItemVisual(n,"color"),p=u.getItemStyle(["borderColor"]);p.stroke=d,p.strokeNoScale=!0,e.useStyle(p),e.z2=100;var f=s.getModel(c).getItemStyle();l.setHoverStyle(e,f)}function a(t,e,i){return o.map(t,function(t){return t=t.slice(),t[e]=i.initBaseline,t})}var o=i(0),s=i(29),l=i(3),u=i(14),h=["itemStyle"],c=["emphasis","itemStyle"],d=s.extend({type:"boxplot",render:function(t,e,i){var a=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l="horizontal"===t.get("layout")?1:0;a.diff(s).add(function(t){if(a.hasValue(t)){var e=a.getItemLayout(t),i=n(e,a,t,l,!0);a.setItemGraphicEl(t,i),o.add(i)}}).update(function(t,e){var i=s.getItemGraphicEl(e);if(!a.hasValue(t))return void o.remove(i);var u=a.getItemLayout(t);i?r(u,i,a,t):i=n(u,a,t,l),o.add(i),a.setItemGraphicEl(t,i)}).remove(function(t){var e=s.getItemGraphicEl(t);e&&o.remove(e)}).execute(),this._data=a},remove:function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:o.noop}),p=u.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n<i.length;n++)t.moveTo(i[n][0],i[n][1]),n++,t.lineTo(i[n][0],i[n][1])}}),f=d;t.exports=f},function(t,e){function i(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",function(e){var r=i[e.seriesIndex%i.length],a=e.getData();a.setVisual({legendSymbol:"roundRect",color:e.get(n)||r}),t.isSeriesFiltered(e)||a.each(function(t){var e=a.getItemModel(t);a.setItemVisual(t,{color:e.get(n,!0)})})})}var n=["itemStyle","borderColor"];t.exports=i},function(t,e,i){function n(t){var e=r(t);h(e,function(t){var e=t.seriesModels;e.length&&(a(t),h(e,function(e,i){o(e,t.boxOffsetList[i],t.boxWidthList[i])}))})}function r(t){var e=[],i=[];return t.eachSeriesByType("boxplot",function(t){var n=t.getBaseAxis(),r=s.indexOf(i,n);r<0&&(r=i.length,i[r]=n,e[r]={axis:n,seriesModels:[]}),e[r].seriesModels.push(t)}),e}function a(t){var e,i,n=t.axis,r=t.seriesModels,a=r.length,o=t.boxWidthList=[],l=t.boxOffsetList=[],c=[];if("category"===n.type)i=n.getBandWidth();else{var d=0;h(r,function(t){d=Math.max(d,t.getData().count())}),e=n.getExtent(),Math.abs(e[1]-e[0])/d}h(r,function(t){var e=t.get("boxWidth");s.isArray(e)||(e=[e,e]),c.push([u(e[0],i)||0,u(e[1],i)||0])});var p=.8*i-2,f=p/a*.3,g=(p-f*(a-1))/a,m=g/2-p/2;h(r,function(t,e){l.push(m),m+=f+g,o.push(Math.min(Math.max(g,c[e][0]),c[e][1]))})}function o(t,e,i){function n(t,i,n){var r=s.get(i,n),a=[];a[u]=t,a[h]=r;var l;return isNaN(t)||isNaN(r)?l=[NaN,NaN]:(l=o.dataToPoint(a),l[u]+=e),l}function r(t,e,i){var n=e.slice(),r=e.slice();n[u]+=l,r[u]-=l,i?t.push(n,r):t.push(r,n)}function a(t,e){var i=e.slice(),n=e.slice();i[u]-=l,n[u]+=l,t.push(i,n)}var o=t.coordinateSystem,s=t.getData(),l=i/2,u="horizontal"===t.get("layout")?0:1,h=1-u,c=["x","y"],d=s.mapDimension(c[u]),p=s.mapDimension(c[h],!0);if(!(null==d||p.length<5))for(var f=0;f<s.count();f++){var g=s.get(d,f),m=n(g,p[2],f),v=n(g,p[0],f),y=n(g,p[1],f),_=n(g,p[3],f),b=n(g,p[4],f),x=[];r(x,y,0),r(x,_,1),x.push(v,y,b,_),a(x,v),a(x,b),a(x,m),s.setItemLayout(f,{initBaseline:m[h],ends:x})}}var s=i(0),l=i(4),u=l.parsePercent,h=s.each;t.exports=n},function(t,e,i){var n=i(2);i(593),i(594);var r=i(595),a=i(596),o=i(597);n.registerPreprocessor(r),n.registerVisual(a),n.registerLayout(o)},function(t,e,i){var n=i(0),r=i(18),a=i(299),o=a.seriesModelMixin,s=r.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:5e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,i){var n=e.getItemLayout(t);return n&&i.rect(n.brushRect)}});n.mixin(s,o,!0);var l=s;t.exports=l},function(t,e,i){function n(t,e,i){var n=t.ends;return new m({shape:{points:i?a(n,t):n},z2:100})}function r(t,e,i,n){var r=e.getItemModel(i),a=r.getModel(d),o=e.getItemVisual(i,"color"),s=e.getItemVisual(i,"borderColor")||o,l=a.getItemStyle(f);t.useStyle(l),t.style.strokeNoScale=!0,t.style.fill=o,t.style.stroke=s,t.__simpleBox=n;var u=r.getModel(p).getItemStyle();h.setHoverStyle(t,u)}function a(t,e){return l.map(t,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}function o(t,e,i){var n=t.getData(),r=n.getLayout("largePoints"),a=new v({shape:{points:r},__sign:1});e.add(a);var o=new v({shape:{points:r},__sign:-1});e.add(o),s(1,a,t,n),s(-1,o,t,n),i&&(a.incremental=!0,o.incremental=!0)}function s(t,e,i,n){var r=t>0?"P":"N",a=n.getVisual("borderColor"+r)||n.getVisual("color"+r),o=i.getModel(d).getItemStyle(f);e.useStyle(o),e.style.fill=null,e.style.stroke=a}var l=i(0),u=i(29),h=i(3),c=i(14),d=["itemStyle"],p=["emphasis","itemStyle"],f=["color","color0","borderColor","borderColor0"],g=u.extend({type:"candlestick",render:function(t,e,i){this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e=t.getData(),i=this._data,a=this.group,o=e.getLayout("isSimpleBox");this._data||a.removeAll(),e.diff(i).add(function(i){if(e.hasValue(i)){var s,l=e.getItemLayout(i);s=n(l,i,!0),h.initProps(s,{shape:{points:l.ends}},t,i),r(s,e,i,o),a.add(s),e.setItemGraphicEl(i,s)}}).update(function(s,l){var u=i.getItemGraphicEl(l);if(!e.hasValue(s))return void a.remove(u);var c=e.getItemLayout(s);u?h.updateProps(u,{shape:{points:c.ends}},t,s):u=n(c,s),r(u,e,s,o),a.add(u),e.setItemGraphicEl(s,u)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&a.remove(e)}).execute(),this._data=e},_renderLarge:function(t){this._clear(),o(t,this.group)},_incrementalRenderNormal:function(t,e){for(var i,a=e.getData(),o=a.getLayout("isSimpleBox");null!=(i=t.next());){var s,l=a.getItemLayout(i);s=n(l,i),r(s,a,i,o),s.incremental=!0,this.group.add(s)}},_incrementalRenderLarge:function(t,e){o(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:l.noop}),m=c.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){var i=e.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))}}),v=c.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var i=e.points,n=0;n<i.length;)if(this.__sign===i[n++]){var r=i[n++];t.moveTo(r,i[n++]),t.lineTo(r,i[n++])}else n+=3}}),y=g;t.exports=y},function(t,e,i){function n(t){t&&r.isArray(t.series)&&r.each(t.series,function(t){r.isObject(t)&&"k"===t.type&&(t.type="candlestick")})}var r=i(0);t.exports=n},function(t,e,i){var n=i(48),r=["itemStyle","borderColor"],a=["itemStyle","borderColor0"],o=["itemStyle","color"],s=["itemStyle","color0"],l={seriesType:"candlestick",plan:n(),performRawSeries:!0,reset:function(t,e){function i(t,e){for(var i;null!=(i=t.next());){var r=e.getItemModel(i),a=e.getItemLayout(i).sign;e.setItemVisual(i,{color:n(a,r),borderColor:l(a,r)})}}function n(t,e){return e.get(t>0?o:s)}function l(t,e){return e.get(t>0?r:a)}var u=t.getData(),h=t.pipelineContext.large;if(u.setVisual({legendSymbol:"roundRect",colorP:n(1,t),colorN:n(-1,t),borderColorP:l(1,t),borderColorN:l(-1,t)}),!e.isSeriesFiltered(t))return!h&&{progress:i}}};t.exports=l},function(t,e,i){function n(t,e,i,n,r){var a;return a=i>n?-1:i<n?1:e>0?t.get(r,e-1)<=n?1:-1:1}function r(t,e){var i,n=t.getBaseAxis(),r="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),a=u(c(t.get("barMaxWidth"),r),r),o=u(c(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?u(s,r):Math.max(Math.min(r/2,a),o)}var a=i(3),o=a.subPixelOptimize,s=i(48),l=i(4),u=l.parsePercent,h=i(0),c=h.retrieve2,d="undefined"!=typeof Float32Array?Float32Array:Array,p={seriesType:"candlestick",plan:s(),reset:function(t){function e(t,e){function i(t,e){var i=[];return i[u]=e,i[h]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:a.dataToPoint(i)}function r(t,e,i){var n=e.slice(),r=e.slice();n[u]=o(n[u]+l/2,1,!1),r[u]=o(r[u]-l/2,1,!0),i?t.push(n,r):t.push(r,n)}function s(t,e,n){var r=i(t,n),a=i(e,n);return r[u]-=l/2,a[u]-=l/2,{x:r[0],y:r[1],width:h?l:a[0]-r[0],height:h?a[1]-r[1]:l}}function c(t){return t[u]=o(t[u],1),t}for(var d;null!=(d=t.next());){var f=e.get(p,d),_=e.get(g,d),b=e.get(m,d),x=e.get(v,d),w=e.get(y,d),M=Math.min(_,b),S=Math.max(_,b),k=i(M,f),D=i(S,f),T=i(x,f),L=i(w,f),C=[];r(C,D,0),r(C,k,1),C.push(c(L),c(D),c(T),c(k)),e.setItemLayout(d,{sign:n(e,d,_,b,m),initBaseline:_>b?D[h]:k[h],ends:C,brushRect:s(x,w,f)})}}function i(t,e){for(var i,r,o=new d(5*t.count),s=0,l=[],c=[];null!=(r=t.next());){var f=e.get(p,r),_=e.get(g,r),b=e.get(m,r),x=e.get(v,r),w=e.get(y,r);isNaN(f)||isNaN(x)||isNaN(w)?(o[s++]=NaN,s+=4):(o[s++]=n(e,r,_,b,m),l[u]=f,l[h]=x,i=a.dataToPoint(l,null,c),o[s++]=i?i[0]:NaN,o[s++]=i?i[1]:NaN,l[h]=w,i=a.dataToPoint(l,null,c),o[s++]=i?i[1]:NaN)}e.setLayout("largePoints",o)}var a=t.coordinateSystem,s=t.getData(),l=r(t,s),u=0,h=1,c=["x","y"],p=s.mapDimension(c[u]),f=s.mapDimension(c[h],!0),g=f[0],m=f[1],v=f[2],y=f[3];if(s.setLayout({candleWidth:l,isSimpleBox:l<=1.3}),!(null==p||f.length<4))return{progress:t.pipelineContext.large?i:e}}};t.exports=p},function(t,e,i){var n=i(2);i(599),i(600);var r=i(41),a=i(62);n.registerVisual(r("effectScatter","circle")),n.registerLayout(a("effectScatter"))},function(t,e,i){var n=i(30),r=i(18),a=r.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return n(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});t.exports=a},function(t,e,i){var n=i(2),r=i(61),a=i(601),o=i(19),s=i(62),l=n.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(a)},render:function(t,e,i){var n=t.getData(),r=this._symbolDraw;r.updateData(n),this.group.add(r.group)},updateTransform:function(t,e,i){var n=t.getData();this.group.dirty();var r=s().reset(t);r.progress&&r.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateGroupTransform:function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=o.clone(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}});t.exports=l},function(t,e,i){function n(t){return o.isArray(t)||(t=[+t,+t]),t}function r(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function a(t,e){h.call(this);var i=new p(t,e),n=new h;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var o=i(0),s=i(21),l=s.createSymbol,u=i(3),h=u.Group,c=i(4),d=c.parsePercent,p=i(83),f=3,g=a.prototype;g.stopEffectAnimation=function(){this.childAt(1).removeAll()},g.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),a=0;a<f;a++){var o=l(e,-1,-1,2,2,i);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-a/f*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(s).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),n.add(o)}r(n,t)},g.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],a=0;a<n.length;a++){var o=n[a];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}r(i,t)},g.highlight=function(){this.trigger("emphasis")},g.downplay=function(){this.trigger("normal")},g.updateData=function(t,e){var i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),a=t.getItemModel(e),o=t.getItemVisual(e,"symbol"),s=n(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"color");r.attr("scale",s),r.traverse(function(t){t.attr({fill:l})});var u=a.getShallow("symbolOffset");if(u){var h=r.position;h[0]=d(u[0],s[0]),h[1]=d(u[1],s[1])}r.rotation=(a.getShallow("symbolRotate")||0)*Math.PI/180||0;var c={};if(c.showEffectOn=i.get("showEffectOn"),c.rippleScale=a.get("rippleEffect.scale"),c.brushType=a.get("rippleEffect.brushType"),c.period=1e3*a.get("rippleEffect.period"),c.effectOffset=e/t.count(),c.z=a.getShallow("z")||0,c.zlevel=a.getShallow("zlevel")||0,c.symbolType=o,c.color=l,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===c.showEffectOn)this._effectCfg?this.updateEffectAnimation(c):this.startEffectAnimation(c),this._effectCfg=c;else{this._effectCfg=null,this.stopEffectAnimation();var p=this.childAt(0),f=function(){p.highlight(),"render"!==c.showEffectOn&&this.startEffectAnimation(c)},g=function(){p.downplay(),"render"!==c.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",f,this).on("mouseout",g,this).on("emphasis",f,this).on("normal",g,this)}this._effectCfg=c},g.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},o.inherits(a,h);var m=a;t.exports=m},function(t,e,i){var n=i(2);i(603),i(604);var r=i(302),a=i(607);n.registerLayout(r),n.registerVisual(a)},function(t,e,i){function n(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=h(e,function(t){var e=[t[0].coord,t[1].coord],i={coords:e};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),u([i,t[0],t[1]])}))}var r=i(7),a=(r.__DEV__,i(18)),o=i(20),s=i(0),l=s.concatArray,u=s.mergeAll,h=s.map,c=i(11),d=c.encodeHTML,p=(i(22),"undefined"==typeof Uint32Array?Array:Uint32Array),f="undefined"==typeof Float64Array?Array:Float64Array,g=a.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],n(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),g.superApply(this,"init",arguments)},mergeOption:function(t){if(t.data=t.data||[],n(t),t.data){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))}g.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=l(this._flatCoords,e.flatCoords),this._flatCoordsOffset=l(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t),i=e.option instanceof Array?e.option:e.getShallow("coords");return i},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],r=0;r<n;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[i+2*r],e[r][1]=this._flatCoords[i+2*r+1];return n}for(var a=this._getCoordsFromItemModel(t),r=0;r<a.length;r++)e[r]=e[r]||[],e[r][0]=a[r][0],e[r][1]=a[r][1];return a.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"==typeof t[0]){for(var i=t.length,n=new p(i),r=new f(i),a=0,o=0,s=0,l=0;l<i;){s++;var u=t[l++];n[o++]=a+e,n[o++]=u;for(var h=0;h<u;h++){var c=t[l++],d=t[l++];r[a++]=c,r[a++]=d}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,o),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){var i=new o(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(t,e,n,r){if(t instanceof Array)return NaN;i.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0}),i},formatTooltip:function(t){var e=this.getData(),i=e.getItemModel(t),n=i.get("name");if(n)return n;var r=i.get("fromName"),a=i.get("toName"),o=[];return null!=r&&o.push(r),null!=a&&o.push(a),d(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),m=g;t.exports=m},function(t,e,i){var n=i(7),r=(n.__DEV__,i(2)),a=i(104),o=i(300),s=i(105),l=i(301),u=i(605),h=i(606),c=i(302),d=r.extendChartView({type:"lines",init:function(){},render:function(t,e,i){var n=t.getData(),r=this._updateLineDraw(n,t),a=t.get("zlevel"),o=t.get("effect.trailLength"),s=i.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&o&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),r.updateData(n),this._lastZlevel=a,this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData(),r=this._updateLineDraw(n,t);r.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},incrementalRender:function(t,e,i){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var a=c.reset(t);a.progress&&a.progress({start:0,end:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(t,e){var i=this._lineDraw,n=this._showEffect(e),r=!!e.get("polyline"),c=e.pipelineContext,d=c.large;return i&&n===this._hasEffet&&r===this._isPolyline&&d===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=d?new h:new a(r?n?u:l:n?o:s),this._hasEffet=n,this._isPolyline=r,this._isLargeDraw=d,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr(),i="svg"===e.painter.getType();i||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});t.exports=d},function(t,e,i){function n(t,e,i){o.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}var r=i(301),a=i(0),o=i(300),s=i(10),l=n.prototype;l.createLine=function(t,e,i){return new r(t,e,i)},l.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,r=1;r<e.length;r++){var a=e[r-1],o=e[r];n+=s.dist(a,o),i.push(n)}if(0!==n){for(var r=0;r<i.length;r++)i[r]/=n;this._offsets=i,this._length=n}},l.getLineLength=function(t){return this._length},l.updateSymbolPosition=function(t){var e=t.__t,i=this._points,n=this._offsets,r=i.length;if(n){var a,o=this._lastFrame;if(e<this._lastFramePercent){var l=Math.min(o+1,r-1);for(a=l;a>=0&&!(n[a]<=e);a--);a=Math.min(a,r-2)}else{for(var a=o;a<r&&!(n[a]>e);a++);a=Math.min(a-1,r-2)}s.lerp(t.position,i[a],i[a+1],(e-n[a])/(n[a+1]-n[a]));var u=i[a+1][0]-i[a][0],h=i[a+1][1]-i[a][1];t.rotation=-Math.atan2(h,u)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},a.inherits(n,o);var u=n;t.exports=u},function(t,e,i){function n(){this.group=new r.Group}var r=i(3),a=i(96),o=i(258),s=i(259),l=r.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(var r=0;r<i.length;){var a=i[r++];if(a>0){t.moveTo(i[r++],i[r++]);for(var o=1;o<a;o++)t.lineTo(i[r++],i[r++])}}else for(var r=0;r<i.length;){var s=i[r++],l=i[r++],u=i[r++],h=i[r++];if(t.moveTo(s,l),n>0){var c=(s+u)/2-(l-h)*n,d=(l+h)/2-(u-s)*n;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var i=this.shape,n=i.segs,r=i.curveness;if(i.polyline)for(var a=0,l=0;l<n.length;){var u=n[l++];if(u>0)for(var h=n[l++],c=n[l++],d=1;d<u;d++){var p=n[l++],f=n[l++];if(o.containStroke(h,c,p,f))return a}a++}else for(var a=0,l=0;l<n.length;){var h=n[l++],c=n[l++],p=n[l++],f=n[l++];if(r>0){var g=(h+p)/2-(c-f)*r,m=(c+f)/2-(p-h)*r;if(s.containStroke(h,c,g,m,p,f))return a}else if(o.containStroke(h,c,p,f))return a;a++}return-1}}),u=n.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(t){this.group.removeAll();var e=new l({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},u.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(t,e){var i=new l;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)}))},u._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var h=n;t.exports=h},function(t,e){function i(t){return t instanceof Array||(t=[t,t]),t}var n="lineStyle.opacity".split("."),r={seriesType:"lines",reset:function(t,e,r){function a(t,e){var r=t.getItemModel(e),a=i(r.getShallow("symbol",!0)),o=i(r.getShallow("symbolSize",!0)),s=r.get(n);a[0]&&t.setItemVisual(e,"fromSymbol",a[0]),a[1]&&t.setItemVisual(e,"toSymbol",a[1]),o[0]&&t.setItemVisual(e,"fromSymbolSize",o[0]),o[1]&&t.setItemVisual(e,"toSymbolSize",o[1]),t.setItemVisual(e,"opacity",s)}var o=i(t.get("symbol")),s=i(t.get("symbolSize")),l=t.getData();return l.setVisual("fromSymbol",o&&o[0]),l.setVisual("toSymbol",o&&o[1]),l.setVisual("fromSymbolSize",s&&s[0]),l.setVisual("toSymbolSize",s&&s[1]),l.setVisual("opacity",t.get(n)),{dataEach:l.hasItemOption?a:null}}};t.exports=r},function(t,e,i){i(609),i(610)},function(t,e,i){var n=i(18),r=i(30),a=i(22),o=n.extend({type:"series.heatmap",getInitialData:function(t,e){return r(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=a.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});t.exports=o},function(t,e,i){function n(t,e,i){var n=t[1]-t[0];e=h.map(e,function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}});var r=e.length,a=0;return function(t){for(var n=a;n<r;n++){var o=e[n].interval;if(o[0]<=t&&t<=o[1]){a=n;break}}if(n===r)for(var n=a-1;n>=0;n--){var o=e[n].interval;if(o[0]<=t&&t<=o[1]){a=n;break}}return n>=0&&n<r&&i[n]}}function r(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}function a(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var o=i(7),s=(o.__DEV__,i(2)),l=i(3),u=i(611),h=i(0),c=s.extendChartView({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(i){i===t&&(n=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):a(r)&&this._renderOnGeo(r,t,n,i)},incrementalPrepareRender:function(t,e,i){this.group.removeAll()},incrementalRender:function(t,e,i,n){var r=e.coordinateSystem;r&&this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,i,n,r){var a,o,s=t.coordinateSystem;if("cartesian2d"===s.type){var u=s.getAxis("x"),c=s.getAxis("y");a=u.getBandWidth(),o=c.getBandWidth()}for(var d=this.group,p=t.getData(),f="itemStyle",g="emphasis.itemStyle",m="label",v="emphasis.label",y=t.getModel(f).getItemStyle(["color"]),_=t.getModel(g).getItemStyle(),b=t.getModel(m),x=t.getModel(v),w=s.type,M="cartesian2d"===w?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],S=i;S<n;S++){var k;if("cartesian2d"===w){if(isNaN(p.get(M[2],S)))continue;var D=s.dataToPoint([p.get(M[0],S),p.get(M[1],S)]);k=new l.Rect({shape:{x:D[0]-a/2,y:D[1]-o/2,width:a,height:o},style:{fill:p.getItemVisual(S,"color"),opacity:p.getItemVisual(S,"opacity")}})}else{if(isNaN(p.get(M[1],S)))continue;k=new l.Rect({z2:1,shape:s.dataToRect([p.get(M[0],S)]).contentShape,style:{fill:p.getItemVisual(S,"color"),opacity:p.getItemVisual(S,"opacity")}})}var T=p.getItemModel(S);p.hasItemOption&&(y=T.getModel(f).getItemStyle(["color"]),_=T.getModel(g).getItemStyle(),b=T.getModel(m),x=T.getModel(v));var L=t.getRawValue(S),C="-";L&&null!=L[2]&&(C=L[2]),l.setLabelStyle(y,_,b,x,{labelFetcher:t,labelDataIndex:S,defaultText:C,isRectText:!0}),k.setStyle(y),l.setHoverStyle(k,p.hasItemOption?_:h.extend({},_)),k.incremental=r,r&&(k.useHoverLayer=!0),d.add(k),p.setItemGraphicEl(S,k)}},_renderOnGeo:function(t,e,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,h=e.getData(),c=this._hmLayer||this._hmLayer||new u;c.blurSize=e.get("blurSize"),c.pointSize=e.get("pointSize"),c.minOpacity=e.get("minOpacity"),c.maxOpacity=e.get("maxOpacity");var d=t.getViewRect().clone(),p=t.getRoamTransform();d.applyTransform(p);var f=Math.max(d.x,0),g=Math.max(d.y,0),m=Math.min(d.width+d.x,a.getWidth()),v=Math.min(d.height+d.y,a.getHeight()),y=m-f,_=v-g,b=[h.mapDimension("lng"),h.mapDimension("lat"),h.mapDimension("value")],x=h.mapArray(b,function(e,i,n){ var r=t.dataToPoint([e,i]);return r[0]-=f,r[1]-=g,r.push(n),r}),w=i.getExtent(),M="visualMap.continuous"===i.type?r(w,i.option.range):n(w,i.getPieceList(),i.option.selected);c.update(x,y,_,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},M);var S=new l.Image({style:{width:y,height:_,x:f,y:g,image:c.canvas},silent:!0});this.group.add(S)},dispose:function(){}});t.exports=c},function(t,e,i){function n(){var t=r.createCanvas();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}var r=i(0),a=256;n.prototype={update:function(t,e,i,n,r,o){var s=this._getBrush(),l=this._getGradient(t,r,"inRange"),u=this._getGradient(t,r,"outOfRange"),h=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),p=t.length;c.width=e,c.height=i;for(var f=0;f<p;++f){var g=t[f],m=g[0],v=g[1],y=g[2],_=n(y);d.globalAlpha=_,d.drawImage(s,m-h,v-h)}if(!c.width||!c.height)return c;for(var b=d.getImageData(0,0,c.width,c.height),x=b.data,w=0,M=x.length,S=this.minOpacity,k=this.maxOpacity,D=k-S;w<M;){var _=x[w+3]/256,T=4*Math.floor(_*(a-1));if(_>0){var L=o(_)?l:u;_>0&&(_=_*D+S),x[w++]=L[T],x[w++]=L[T+1],x[w++]=L[T+2],x[w++]=L[T+3]*_*256}else w+=4}return d.putImageData(b,0,0),c},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=r.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,r=n[i]||(n[i]=new Uint8ClampedArray(1024)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[i](s/255,!0,a),r[o++]=a[0],r[o++]=a[1],r[o++]=a[2],r[o++]=a[3];return r}};var o=n;t.exports=o},function(t,e,i){var n=i(2),r=i(0);i(100),i(613),i(614);var a=i(82),o=a.layout,s=i(41);i(63),n.registerLayout(r.curry(o,"pictorialBar")),n.registerVisual(s("pictorialBar","roundRect"))},function(t,e,i){var n=i(281),r=n.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,r.superApply(this,"getInitialData",arguments)}}),a=r;t.exports=a},function(t,e,i){function n(t,e,i,n){var a=t.getItemLayout(e),u=i.get("symbolRepeat"),h=i.get("symbolClip"),c=i.get("symbolPosition")||"start",d=i.get("symbolRotate"),p=(d||0)*Math.PI/180||0,f=i.get("symbolPatternSize")||2,g=i.isAnimationEnabled(),m={dataIndex:e,layout:a,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:h,symbolRepeat:u,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:p,animationModel:g?i:null,hoverAnimation:g&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};r(i,u,a,n,m),o(t,e,a,u,h,m.boundingLength,m.pxSign,f,n,m),s(i,m.symbolScale,p,n,m);var v=m.symbolSize,y=i.get("symbolOffset");return T.isArray(y)&&(y=[P(y[0],v[0]),P(y[1],v[1])]),l(i,v,a,u,h,y,c,m.valueLineWidth,m.boundingLength,m.repeatCutLength,n,m),m}function r(t,e,i,n,r){var o,s=n.valueDim,l=t.get("symbolBoundingData"),u=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),h=u.toGlobalCoord(u.dataToCoord(0)),c=1-+(i[s.wh]<=0);if(T.isArray(l)){var d=[a(u,l[0])-h,a(u,l[1])-h];d[1]<d[0]&&d.reverse(),o=d[c]}else o=null!=l?a(u,l)-h:e?n.coordSysExtent[s.index][c]-h:i[s.wh];r.boundingLength=o,e&&(r.repeatCutLength=i[s.wh]),r.pxSign=o>0?1:o<0?-1:0}function a(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function o(t,e,i,n,r,a,o,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(i[c.wh]),p=t.getItemVisual(e,"symbolSize");T.isArray(p)?p=p.slice():(null==p&&(p="100%"),p=[p,p]),p[c.index]=P(p[c.index],d),p[h.index]=P(p[h.index],n?d:Math.abs(a)),u.symbolSize=p;var f=u.symbolScale=[p[0]/s,p[1]/s];f[h.index]*=(l.isHorizontal?-1:1)*o}function s(t,e,i,n,r){var a=t.get(H)||0;a&&(Y.attr({scale:e.slice(),rotation:i}),Y.updateTransform(),a/=Y.getLineScale(),a*=e[n.valueDim.index]),r.valueLineWidth=a}function l(t,e,i,n,r,a,o,s,l,u,h,c){var d=h.categoryDim,p=h.valueDim,f=c.pxSign,g=Math.max(e[p.index]+s,0),m=g;if(n){var v=Math.abs(l),y=T.retrieve(t.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1)),y=P(y,e[p.index]);var b=Math.max(g+2*y,0),x=_?0:2*y,w=E(n),M=w?n:k((v+x)/b),S=v-M*g;y=S/2/(_?M:M-1),b=g+2*y,x=_?0:2*y,w||"fixed"===n||(M=u?k((Math.abs(u)+x)/b):0),m=M*b-x,c.repeatTimes=M,c.symbolMargin=y}var D=f*(m/2),L=c.pathPosition=[];L[d.index]=i[d.wh]/2,L[p.index]="start"===o?D:"end"===o?l-D:l/2,a&&(L[0]+=a[0],L[1]+=a[1]);var C=c.bundlePosition=[];C[d.index]=i[d.xy],C[p.index]=i[p.xy];var I=c.barRectShape=T.extend({},i);I[p.wh]=f*Math.max(Math.abs(i[p.wh]),Math.abs(L[p.index]+D)),I[d.wh]=i[d.wh];var A=c.clipShape={};A[d.xy]=-i[d.xy],A[d.wh]=h.ecSize[d.wh],A[p.xy]=0,A[p.wh]=i[p.wh]}function u(t){var e=t.symbolPatternSize,i=I(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function h(t,e,i,n){function r(t){var e=c.slice(),n=i.pxSign,r=t;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(r=p-1-t),e[d.index]=g*(r-p/2+.5)+c[d.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}function a(){w(t,function(t){t.trigger("emphasis")})}function o(){w(t,function(t){t.trigger("normal")})}var s=t.__pictorialBundle,l=i.symbolSize,h=i.valueLineWidth,c=i.pathPosition,d=e.valueDim,p=i.repeatTimes||0,f=0,g=l[e.valueDim.index]+h+2*i.symbolMargin;for(w(t,function(t){t.__pictorialAnimationIndex=f,t.__pictorialRepeatTimes=p,f<p?M(t,null,r(f),i,n):M(t,null,{scale:[0,0]},i,n,function(){s.remove(t)}),v(t,i),f++});f<p;f++){var m=u(i);m.__pictorialAnimationIndex=f,m.__pictorialRepeatTimes=p,s.add(m);var y=r(f);M(m,{position:y.position,scale:[0,0]},{scale:y.scale,rotation:y.rotation},i,n),m.on("mouseover",a).on("mouseout",o),v(m,i)}}function c(t,e,i,n){function r(){this.trigger("emphasis")}function a(){this.trigger("normal")}var o=t.__pictorialBundle,s=t.__pictorialMainPath;s?M(s,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(s=t.__pictorialMainPath=u(i),o.add(s),M(s,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),s.on("mouseover",r).on("mouseout",a)),v(s,i)}function d(t,e,i){var n=T.extend({},e.barRectShape),r=t.__pictorialBarRect;r?M(r,null,{shape:n},e,i):(r=t.__pictorialBarRect=new L.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(r))}function p(t,e,i,n){if(i.symbolClip){var r=t.__pictorialClipPath,a=T.extend({},i.clipShape),o=e.valueDim,s=i.animationModel,l=i.dataIndex;if(r)L.updateProps(r,{shape:a},s,l);else{a[o.wh]=0,r=new L.Rect({shape:a}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[o.wh]=i.clipShape[o.wh],L[n?"updateProps":"initProps"](r,{shape:u},s,l)}}}function f(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=g,i.isAnimationEnabled=m,i}function g(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function m(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function v(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:i.slice()},400,"elasticOut")})}function y(t,e,i,n){var r=new L.Group,a=new L.Group;return r.add(a),r.__pictorialBundle=a,a.attr("position",i.bundlePosition.slice()),i.symbolRepeat?h(r,e,i):c(r,e,i),d(r,i,n),p(r,e,i,n),r.__pictorialShapeStr=x(t,i),r.__pictorialSymbolMeta=i,r}function _(t,e,i){var n=i.animationModel,r=i.dataIndex,a=t.__pictorialBundle;L.updateProps(a,{position:i.bundlePosition.slice()},n,r),i.symbolRepeat?h(t,e,i,!0):c(t,e,i,!0),d(t,i,!0),p(t,e,i,!0)}function b(t,e,i,n){var r=n.__pictorialBarRect;r&&(r.style.text=null);var a=[];w(n,function(t){a.push(t)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),T.each(a,function(t){L.updateProps(t,{scale:[0,0]},i,e,function(){n.parent&&n.parent.remove(n)})}),t.setItemGraphicEl(e,null)}function x(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function w(t,e,i){T.each(t.__pictorialBundle.children(),function(n){n!==t.__pictorialBarRect&&e.call(i,n)})}function M(t,e,i,n,r,a){e&&t.attr(e),n.symbolClip&&!r?i&&t.attr(i):i&&L[r?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,a)}function S(t,e,i){var n=i.color,r=i.dataIndex,a=i.itemModel,o=a.getModel("itemStyle").getItemStyle(["color"]),s=a.getModel("emphasis.itemStyle").getItemStyle(),l=a.getShallow("cursor");w(t,function(t){t.setColor(n),t.setStyle(T.defaults({fill:n,opacity:i.opacity},o)),L.setHoverStyle(t,s),l&&(t.cursor=l),t.z2=i.z2});var u={},h=e.valueDim.posDesc[+(i.boundingLength>0)],c=t.__pictorialBarRect;R(c.style,u,a,n,e.seriesModel,r,h),L.setHoverStyle(c,u)}function k(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var D=i(2),T=i(0),L=i(3),C=i(21),I=C.createSymbol,A=i(4),P=A.parsePercent,E=A.isNumeric,O=i(282),R=O.setLabel,H=["itemStyle","borderWidth"],z=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Y=new L.Circle,N=D.extendChartView({type:"pictorialBar",render:function(t,e,i){var r=this.group,a=t.getData(),o=this._data,s=t.coordinateSystem,l=s.getBaseAxis(),u=!!l.isHorizontal(),h=s.grid.getRect(),c={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:u,valueDim:z[+u],categoryDim:z[1-u]};return a.diff(o).add(function(t){if(a.hasValue(t)){var e=f(a,t),i=n(a,t,e,c),o=y(a,c,i);a.setItemGraphicEl(t,o),r.add(o),S(o,c,i)}}).update(function(t,e){var i=o.getItemGraphicEl(e);if(!a.hasValue(t))return void r.remove(i);var s=f(a,t),l=n(a,t,s,c),u=x(a,l);i&&u!==i.__pictorialShapeStr&&(r.remove(i),a.setItemGraphicEl(t,null),i=null),i?_(i,c,l):i=y(a,c,l,!0),a.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=l,r.add(i),S(i,c,l)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&b(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=a,this.group},dispose:T.noop,remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(e){b(n,e.dataIndex,t,e)}):i.removeAll()}}),F=N;t.exports=F},function(t,e,i){var n=i(2);i(303),i(625),i(626);var r=i(627),a=i(628),o=i(64);n.registerLayout(r),n.registerVisual(a),n.registerProcessor(o("themeRiver"))},function(t,e,i){function n(t,e){var i=[];return t.eachComponent("singleAxis",function(n,a){var o=new r(n,t,e);o.name="single_"+a,o.resize(n,e),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}}),i}var r=i(617),a=i(22);a.register("single",{create:n,dimensions:r.prototype.dimensions})},function(t,e,i){function n(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}var r=i(618),a=i(23),o=i(8),s=o.getLayoutRect,l=i(0),u=l.each;n.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:n,_init:function(t,e,i){var n=this.dimension,o=new r(n,a.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===o.type;o.onBand=s&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();u(e.mapDimension(this.dimension,!0),function(t){this._axis.scale.unionExtentFromData(e,t)},this),a.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=s({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(n[r],n[1-r]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis(),n=i.orient;return"horizontal"===n?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[r]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-r]=0===r?i.y+i.height/2:i.x+i.width/2,n}};var h=n;t.exports=h},function(t,e,i){var n=i(0),r=i(34),a=function(t,e,i,n,a){r.call(this,t,e,i),this.type=n||"value",this.position=a||"bottom",this.orient=null};a.prototype={constructor:a,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},n.inherits(a,r);var o=a;t.exports=o},function(t,e,i){var n=i(0),r=i(42),a=i(3),o=i(304),s=i(43),l=["axisLine","axisTickLabel","axisName"],u="splitLine",h=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,a){var s=this.group;s.removeAll();var c=o.layout(t),d=new r(t,c);n.each(l,d.add,d),s.add(d.getGroup()),t.get(u+".show")&&this["_"+u](t),h.superCall(this,"render",t,e,i,a)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),n=i.getModel("lineStyle"),r=n.get("width"),o=n.get("color");o=o instanceof Array?o:[o];for(var s=t.coordinateSystem.getRect(),l=e.isHorizontal(),u=[],h=0,c=e.getTicksCoords({tickModel:i}),d=[],p=[],f=0;f<c.length;++f){var g=e.toGlobalCoord(c[f].coord);l?(d[0]=g,d[1]=s.y,p[0]=g,p[1]=s.y+s.height):(d[0]=s.x,d[1]=g,p[0]=s.x+s.width,p[1]=g);var m=h++%o.length;u[m]=u[m]||[],u[m].push(new a.Line(a.subPixelOptimizeLine({shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:{lineWidth:r},silent:!0})))}for(var f=0;f<u.length;++f)this.group.add(a.mergePath(u[f],{style:{stroke:o[f%o.length],lineDash:n.getLineDash(r),lineWidth:r},silent:!0}))}}}),c=h;t.exports=c},function(t,e,i){function n(t,e){return e.type||(e.data?"category":"value")}var r=i(0),a=i(16),o=i(84),s=i(50),l=a.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),u={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};r.merge(l.prototype,s),o("single",l,n,u);var h=l;t.exports=h},function(t,e,i){function n(t,e,i){var n=t.currTrigger,a=[t.x,t.y],g=t,m=t.dispatchAction||f.bind(i.dispatchAction,i),v=e.getComponent("axisPointer").coordSysAxesInfo;if(v){p(a)&&(a=y({seriesIndex:g.seriesIndex,dataIndex:g.dataIndex},e).point);var x=p(a),w=g.axesInfo,M=v.axesInfo,S="leave"===n||p(a),k={},D={},T={list:[],map:{}},L={showPointer:b(o,D),showTooltip:b(s,T)};_(v.coordSysMap,function(t,e){var i=x||t.containPoint(a);_(v.coordSysAxesInfo[e],function(t,e){var n=t.axis,o=c(w,t);if(!S&&i&&(!w||o)){var s=o&&o.value;null!=s||x||(s=n.pointToData(a)),null!=s&&r(t,s,L,!1,k)}})});var C={};return _(M,function(t,e){var i=t.linkGroup;i&&!D[e]&&_(i.axesInfo,function(e,n){var r=D[n];if(e!==t&&r){var a=r.value;i.mapper&&(a=t.axis.scale.parse(i.mapper(a,d(e),d(t)))),C[t.key]=a}})}),_(C,function(t,e){r(M[e],t,L,!0,k)}),l(D,M,k),u(T,a,t,m),h(M,m,i),k}}function r(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var s=a(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==r.seriesIndex&&f.extend(r,l[0]),!n&&t.snap&&o.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,l,r),i.showTooltip(t,s,u)}}function a(t,e){var i=e.axis,n=i.dim,r=t,a=[],o=Number.MAX_VALUE,s=-1;return _(e.seriesModels,function(e,l){var u,h,c=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(c,t,i);h=d.dataIndices,u=d.nestestValue}else{if(h=e.getData().indicesOfNearest(c[0],t,"category"===i.type?.5:null),!h.length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=o&&((f<o||p>=0&&s<0)&&(o=f,s=p,r=u,a.length=0),_(h,function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:a,snapToValue:r}}function o(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function s(t,e,i,n){var r=i.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=v.makeKey(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function l(t,e,i){var n=i.axesInfo=[];_(e,function(e,i){var r=e.axisPointerModel.option,a=t[i];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function u(t,e,i,n){if(p(e)||!t.list.length)return void n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function h(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",a=x(n)[r]||{},o=x(n)[r]={};_(t,function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&_(i.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t})});var s=[],l=[];f.each(a,function(t,e){!o[e]&&l.push(t)}),f.each(o,function(t,e){!a[e]&&s.push(t)}),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}function c(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function d(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function p(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}var f=i(0),g=i(5),m=g.makeInner,v=i(85),y=i(305),_=f.each,b=f.curry,x=m();t.exports=n},function(t,e,i){var n=i(2),r=n.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),a=r;t.exports=a},function(t,e,i){var n=i(2),r=i(306),a=n.extendComponentView({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),a=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";r.register("axisPointer",i,function(t,e,i){"none"!==a&&("leave"===t||a.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){r.unregister(e.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(t,e){r.unregister("axisPointer",e),a.superApply(this._model,"dispose",arguments)}}),o=a;t.exports=o},function(t,e,i){function n(t){return t.isHorizontal()?0:1}function r(t,e){var i=t.getRect();return[i[h[e]],i[h[e]]+i[c[e]]]}var a=i(3),o=i(107),s=i(89),l=i(304),u=i(43),h=["x","y"],c=["width","height"],d=o.extend({makeElOption:function(t,e,i,a,o){var u=i.axis,h=u.coordinateSystem,c=r(h,1-n(u)),d=h.dataToPoint(e)[0],f=a.get("type");if(f&&"none"!==f){var g=s.buildElStyle(a),m=p[f](u,d,c,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=l.layout(i);s.buildCartesianSingleLabelElOption(e,t,v,i,a,o)},getHandleTransform:function(t,e,i){var n=l.layout(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:s.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,a){var o=i.axis,s=o.coordinateSystem,l=n(o),u=r(s,l),h=t.position;h[l]+=e[l],h[l]=Math.min(u[1],h[l]),h[l]=Math.max(u[0],h[l]);var c=r(s,1-l),d=(c[1]+c[0])/2,p=[d,d];return p[l]=h[l],{position:h,rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}}}),p={line:function(t,e,i,r){var o=s.makeLineShape([e,i[0]],[e,i[1]],n(t));return a.subPixelOptimizeLine({shape:o,style:r}),{type:"Line",shape:o}},shadow:function(t,e,i,r){var a=t.getBandWidth(),o=i[1]-i[0];return{type:"Rect",shape:s.makeRectShape([e-a/2,i[0]],[a,o],n(t))}}};u.registerAxisPointerClass("SingleAxisPointer",d);var f=d;t.exports=f},function(t,e,i){var n=i(18),r=i(49),a=i(60),o=a.getDimensionTypeByAxis,s=i(20),l=i(0),u=i(11),h=u.encodeHTML,c=i(298),d=2,p=n.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){p.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,i=c().key(function(t){return t[2]}).entries(t),n=l.map(i,function(t){return{name:t.key,dataList:t.values}}),r=n.length,a=-1,o=-1,s=0;s<r;++s){var u=n[s].dataList.length;u>a&&(a=u,o=s)}for(var h=0;h<r;++h)if(h!==o)for(var d=n[h].name,p=0;p<a;++p){for(var f=n[o].dataList[p][0],g=n[h].dataList.length,m=-1,v=0;v<g;++v){var y=n[h].dataList[v][0];if(y===f){m=v;break}}m===-1&&(t[e]=[],t[e][0]=f,t[e][1]=0,t[e][2]=d,e++)}return t},getInitialData:function(t,e){for(var i=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],n=i.get("type"),a=l.filter(t.data,function(t){return void 0!==t[2]}),u=this.fixData(a||[]),h=[],c=this.nameMap=l.createHashMap(),p=0,f=0;f<u.length;++f)h.push(u[f][d]),c.get(u[f][d])||(c.set(u[f][d],p),p++);var g=r(u,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:o(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),m=new s(g,this);return m.initData(u),m},getLayerSeries:function(){function t(t,i){return e.get(s,t)-e.get(s,i)}for(var e=this.getData(),i=e.count(),n=[],r=0;r<i;++r)n[r]=r;for(var a=c().key(function(t){return e.get("name",t)}).entries(n),o=l.map(a,function(t){return{name:t.key,indices:t.values}}),s=e.mapDimension("single"),u=0;u<o.length;++u)o[u].indices.sort(t);return o},getAxisTooltipData:function(t,e,i){l.isArray(t)||(t=t?[t]:[]);for(var n,r=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,u=0;u<s;++u){for(var h=Number.MAX_VALUE,c=-1,d=a[u].indices.length,p=0;p<d;++p){var f=r.get(t[0],a[u].indices[p]),g=Math.abs(f-e);g<=h&&(n=f,h=g,c=a[u].indices[p])}o.push(c)}return{dataIndices:o,nestestValue:n}},formatTooltip:function(t){var e=this.getData(),i=e.getName(t),n=e.get(e.mapDimension("value"),t);return(isNaN(n)||null==n)&&(n="-"),h(i+" : "+n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),f=p;t.exports=f},function(t,e,i){function n(t,e,i){var n=new s.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return s.initProps(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}var r=i(2),a=i(277),o=a.Polygon,s=i(3),l=i(0),u=l.bind,h=l.extend,c=i(40),d=r.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,i){function r(t){return t.name}function a(e,i,r){var a=this._layers;if("remove"===e)return void d.remove(a[i]);for(var u,c=[],f=[],g=p[i].indices,m=0;m<g.length;m++){var v=l.getItemLayout(g[m]),_=v.x,b=v.y0,x=v.y;c.push([_,b]),f.push([_,b+x]),u=l.getItemVisual(g[m],"color")}var w,M,S=l.getItemLayout(g[0]),k=l.getItemModel(g[m-1]),D=k.getModel("label"),T=D.get("margin");if("add"===e){var L=y[i]=new s.Group;w=new o({shape:{points:c,stackedOnPoints:f,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M=new s.Text({style:{x:S.x-T,y:S.y0+S.y/2}}),L.add(w),L.add(M),d.add(L),w.setClipPath(n(w.getBoundingRect(),t,function(){w.removeClipPath()}))}else{var L=a[r];w=L.childAt(0),M=L.childAt(1),d.add(L),y[i]=L,s.updateProps(w,{shape:{points:c,stackedOnPoints:f}},t),s.updateProps(M,{style:{x:S.x-T,y:S.y0+S.y/2}},t)}var C=k.getModel("emphasis.itemStyle"),I=k.getModel("itemStyle");s.setTextStyle(M.style,D,{text:D.get("show")?t.getFormattedLabel(g[m-1],"normal")||l.getName(g[m-1]):null,textVerticalAlign:"middle"}),w.setStyle(h({fill:u},I.getItemStyle(["color"]))),s.setHoverStyle(w,C.getItemStyle())}var l=t.getData(),d=this.group,p=t.getLayerSeries(),f=l.getLayout("layoutInfo"),g=f.rect,m=f.boundaryGap;d.attr("position",[0,g.y+m[0]]);var v=new c(this._layersSeries||[],p,r,r),y={};v.add(u(a,this,"add")).update(u(a,this,"update")).remove(u(a,this,"remove")).execute(),this._layersSeries=p,this._layers=y},dispose:function(){}});t.exports=d},function(t,e,i){function n(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),i=t.coordinateSystem,n={},a=i.getRect();n.rect=a;var o=t.get("boundaryGap"),l=i.getAxis();if(n.boundaryGap=o,"horizontal"===l.orient){o[0]=s.parsePercent(o[0],a.height),o[1]=s.parsePercent(o[1],a.height);var u=a.height-o[0]-o[1];r(e,t,u)}else{o[0]=s.parsePercent(o[0],a.width),o[1]=s.parsePercent(o[1],a.width);var h=a.width-o[0]-o[1];r(e,t,h)}e.setLayout("layoutInfo",n)})}function r(t,e,i){if(t.count())for(var n,r=e.coordinateSystem,s=e.getLayerSeries(),l=t.mapDimension("single"),u=t.mapDimension("value"),h=o.map(s,function(e){return o.map(e.indices,function(e){var i=r.dataToPoint(t.get(l,e));return i[1]=t.get(u,e),i})}),c=a(h),d=c.y0,p=i/c.max,f=s.length,g=s[0].indices.length,m=0;m<g;++m){n=d[m]*p,t.setItemLayout(s[0].indices[m],{layerIndex:0,x:h[0][m][0],y0:n,y:h[0][m][1]*p});for(var v=1;v<f;++v)n+=h[v-1][m][1]*p,t.setItemLayout(s[v].indices[m],{layerIndex:v,x:h[v][m][0],y0:n,y:h[v][m][1]*p})}}function a(t){for(var e,i=t.length,n=t[0].length,r=[],a=[],o=0,s={},l=0;l<n;++l){for(var u=0,e=0;u<i;++u)e+=t[u][l][1];e>o&&(o=e),r.push(e)}for(var h=0;h<n;++h)a[h]=(o-r[h])/2;o=0;for(var c=0;c<n;++c){var d=r[c]+a[c];d>o&&(o=d)}return s.y0=a,s.max=o,s}var o=i(0),s=i(4);t.exports=n},function(t,e,i){function n(t){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),i=t.getRawData(),n=t.get("color"),r=a();e.each(function(t){r.set(e.getRawIndex(t),t)}),i.each(function(a){var o=i.getName(a),s=n[(t.nameMap.get(o)-1)%n.length];i.setItemVisual(a,"color",s);var l=r.get(a);null!=l&&e.setItemVisual(l,"color",s)})})}var r=i(0),a=r.createHashMap;t.exports=n},function(t,e,i){var n=i(2),r=i(0);i(630),i(631),i(633);var a=i(86),o=i(634),s=i(64);n.registerVisual(r.curry(a,"sunburst")),n.registerLayout(r.curry(o,"sunburst")),n.registerProcessor(r.curry(s,"sunburst"))},function(t,e,i){function n(t){var e=0;r.each(t.children,function(t){n(t);var i=t.value;r.isArray(i)&&(i=i[0]),e+=i});var i=t.value;r.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),r.isArray(t.value)?t.value[0]=i:t.value=i}var r=i(0),a=i(18),o=i(103),s=i(44),l=s.wrapTreePathInfo,u=a.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var i={name:t.name,children:t.data};n(i);var r=t.levels||[],a={};return a.levels=r,o.createTree(i,this,a).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=l(i,this),e},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});t.exports=u},function(t,e,i){var n=i(0),r=i(29),a=i(632),o=i(40),s="sunburstRootToNode",l=r.extend({type:"sunburst",init:function(){},render:function(t,e,i,r){function s(t,e){function i(t){return t.getId()}function r(i,n){var r=null==i?null:t[i],a=null==n?null:e[n];l(r,a)}0===t.length&&0===e.length||new o(e,t,i,i).add(r).update(r).remove(n.curry(r,null)).execute()}function l(i,n){if(m||!i||i.getValue()||(i=null),i!==p&&n!==p)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",t,e),d.setItemGraphicEl(i.dataIndex,n.piece)):u(n);else if(i){var r=new a(i,t,e);g.add(r),d.setItemGraphicEl(i.dataIndex,r)}}function u(t){t&&t.piece&&(g.remove(t.piece),t.piece=null)}function h(i,n){if(n.depth>0){c.virtualPiece?c.virtualPiece.updateData(!1,i,"normal",t,e):(c.virtualPiece=new a(i,t,e),g.add(c.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var r=function(t){c._rootToNode(n.parentNode)};n.piece._onclickEvent=r,c.virtualPiece.on("click",r)}else c.virtualPiece&&(g.remove(c.virtualPiece),c.virtualPiece=null)}var c=this;this.seriesModel=t,this.api=i,this.ecModel=e;var d=t.getData(),p=d.tree.root,f=t.getViewRoot(),g=this.group,m=t.get("renderLabelForZeroData"),v=[];f.eachNode(function(t){v.push(t)});var y=this._oldChildren||[];if(s(v,y),h(p,f),r&&r.highlight&&r.highlight.piece){var _=t.getShallow("highlightPolicy");r.highlight.piece.onEmphasis(_)}else if(r&&r.unhighlight){var b=this.virtualPiece;!b&&p.children.length&&(b=p.children[0].piece),b&&b.onNormal()}this._initEvents(),this._oldChildren=v},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(n){if(!i&&n.piece&&n.piece.childAt(0)===e.target){var r=n.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(n);else if("link"===r){var a=n.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";window.open(o,s)}}i=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent), this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:s,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,a=t[1]-n.cy,o=Math.sqrt(r*r+a*a);return o<=n.r&&o>=n.r0}}}),u=l;t.exports=u},function(t,e,i){function n(t,e,i){function n(){o.ignore=o.hoverIgnore}function r(){o.ignore=o.normalIgnore}l.Group.call(this);var a=new l.Sector({z2:h});a.seriesIndex=e.seriesIndex;var o=new l.Text({z2:c,silent:t.getModel("label").get("silent")});this.add(a),this.add(o),this.updateData(!0,t,"normal",e,i),this.on("emphasis",n).on("normal",r).on("mouseover",n).on("mouseout",r)}function r(t,e,i){var n=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(n=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(n)return n;if(0===t.depth)return i.option.color[0];var s=i.option.color.length;return o=i.option.color[a(t)%s]}function a(t){for(var e=t;e.depth>1;)e=e.parentNode;var i=t.getAncestors()[0];return s.indexOf(i.children,e)}function o(t,e,i){return i!==u.NONE&&(i===u.SELF?t===e:i===u.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}var s=i(0),l=i(3),u={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},h=2,c=4,d=n.prototype;d.updateData=function(t,e,i,n,a){this.node=e,e.piece=this,n=n||this._seriesModel,a=a||this._ecModel;var o=this.childAt(0);o.dataIndex=e.dataIndex;var u=e.getModel(),h=e.getLayout();h||console.log(e.getLayout());var c=s.extend({},h);c.label=null;var d,p=r(e,n,a),f=u.getModel("itemStyle").getItemStyle();if("normal"===i)d=f;else{var g=u.getModel(i+".itemStyle").getItemStyle();d=s.merge(g,f)}d=s.defaults({lineJoin:"bevel",fill:d.fill||p},d),t?(o.setShape(c),o.shape.r=h.r0,l.updateProps(o,{shape:{r:h.r}},n,e.dataIndex),o.useStyle(d)):"object"==typeof d.fill&&d.fill.type||"object"==typeof o.style.fill&&o.style.fill.type?(l.updateProps(o,{shape:c},n),o.useStyle(d)):l.updateProps(o,{shape:c,style:d},n),this._updateLabel(n,p,i);var m=u.getShallow("cursor");if(m&&o.attr("cursor",m),t){var v=n.getShallow("highlightPolicy");this._initEvents(o,e,n,v)}this._seriesModel=n||this._seriesModel,this._ecModel=a||this._ecModel},d.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode(function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):o(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==u.NONE&&i.piece.childAt(0).trigger("downplay"))})},d.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,"normal")})},d.onHighlight=function(){this.updateData(!1,this.node,"highlight")},d.onDownplay=function(){this.updateData(!1,this.node,"downplay")},d._updateLabel=function(t,e,i){function n(t){var e=o.get(t);return null==e?a.get(t):e}var r=this.node.getModel(),a=r.getModel("label"),o="normal"===i||"emphasis"===i?a:r.getModel(i+".label"),u=r.getModel("emphasis.label"),h=s.retrieve(t.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);n("show")===!1&&(h="");var c=this.node.getLayout(),d=o.get("minAngle");null==d&&(d=a.get("minAngle")),d=d/180*Math.PI;var p=c.endAngle-c.startAngle;null!=d&&Math.abs(p)<d&&(h="");var f=this.childAt(1);l.setLabelStyle(f.style,f.hoverStyle||{},a,u,{defaultText:o.getShallow("show")?h:null,autoColor:e,useInsideStyle:!0});var g,m=(c.startAngle+c.endAngle)/2,v=Math.cos(m),y=Math.sin(m),_=n("position"),b=n("distance")||0,x=n("align");"outside"===_?(g=c.r+b,x=m>Math.PI/2?"right":"left"):x&&"center"!==x?"left"===x?(g=c.r0+b,m>Math.PI/2&&(x="right")):"right"===x&&(g=c.r-b,m>Math.PI/2&&(x="left")):(g=(c.r+c.r0)/2,x="center"),f.attr("style",{text:h,textAlign:x,textVerticalAlign:n("verticalAlign")||"middle",opacity:n("opacity")});var w=g*v+c.cx,M=g*y+c.cy;f.attr("position",[w,M]);var S=n("rotate"),k=0;"radial"===S?(k=-m,k<-Math.PI/2&&(k+=Math.PI)):"tangential"===S?(k=Math.PI/2-m,k>Math.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):"number"==typeof S&&(k=S*Math.PI/180),f.attr("rotation",k)},d._initEvents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,a=function(){r.onEmphasis(n)},o=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};i.isAnimationEnabled()&&t.on("mouseover",a).on("mouseout",o).on("emphasis",a).on("normal",o).on("downplay",s).on("highlight",l)},s.inherits(n,l.Group);var p=n;t.exports=p},function(t,e,i){var n=i(2),r=i(44),a="sunburstRootToNode";n.registerAction({type:a,update:"updateView"},function(t,e){function i(e,i){var n=r.retrieveTargetInfo(t,[a],e);if(n){var o=e.getViewRoot();o&&(t.direction=r.aboveViewRoot(o,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},i)});var o="sunburstHighlight";n.registerAction({type:o,update:"updateView"},function(t,e){function i(e,i){var n=r.retrieveTargetInfo(t,[o],e);n&&(t.highlight=n.node)}e.eachComponent({mainType:"series",subType:"sunburst",query:t},i)});var s="sunburstUnhighlight";n.registerAction({type:s,update:"updateView"},function(t,e){function i(e,i){t.unhighlight=!0}e.eachComponent({mainType:"series",subType:"sunburst",query:t},i)})},function(t,e,i){function n(t,e,i,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius");l.isArray(n)||(n=[0,n]),l.isArray(e)||(e=[e,e]);var a=i.getWidth(),o=i.getHeight(),c=Math.min(a,o),d=s(e[0],a),p=s(e[1],o),f=s(n[0],c/2),g=s(n[1],c/2),m=-t.get("startAngle")*h,v=t.get("minAngle")*h,y=t.getData().tree.root,_=t.getViewRoot(),b=_.depth,x=t.get("sort");null!=x&&r(_,x);var w=0;l.each(_.children,function(t){!isNaN(t.getValue())&&w++});var M=_.getValue(),S=Math.PI/(M||w)*2,k=_.depth>0,D=_.height-(k?-1:1),T=(g-f)/(D||1),L=t.get("clockwise"),C=t.get("stillShowZeroSum"),I=u,A=0,P=L?1:-1,E=function(t,e){if(t){var i=e;if(t!==y){var n=t.getValue(),r=0===M&&C?S:n*S;r<v?(r=v,I-=v):A+=n,i=e+P*r;var a=t.depth-b-(k?-1:1),o=f+T*a,u=f+T*(a+1),h=t.getModel();null!=h.get("r0")&&(o=s(h.get("r0"),c/2)),null!=h.get("r")&&(u=s(h.get("r"),c/2)),t.setLayout({angle:r,startAngle:e,endAngle:i,clockwise:L,cx:d,cy:p,r0:o,r:u})}if(t.children&&t.children.length){var g=0;l.each(t.children,function(t){g+=E(t,e+g)})}return i-e}};if(k){var O=f,R=f+T,H=2*Math.PI;y.setLayout({angle:H,startAngle:m,endAngle:m+H,clockwise:L,cx:d,cy:p,r0:O,r:R})}E(_,m)})}function r(t,e){var i=t.children||[];t.children=a(i,e),i.length&&l.each(t.children,function(t){r(t,e)})}function a(t,e){if("function"==typeof e)return t.sort(e);var i="asc"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}var o=i(4),s=o.parsePercent,l=i(0),u=2*Math.PI,h=Math.PI/180;t.exports=n},function(t,e,i){function n(t){var e,i=t.type;if("path"===i){var n=t.shape;e=v.makePath(n.pathData,null,{x:n.x||0,y:n.y||0,width:n.width||0,height:n.height||0},"center"),e.__customPathData=t.pathData}else if("image"===i)e=new v.Image({}),e.__customImagePath=t.style.image;else if("text"===i)e=new v.Text({}),e.__customText=t.style.text;else{var r=v[i.charAt(0).toUpperCase()+i.slice(1)];e=new r}return e.__customGraphicType=i,e.name=t.name,e}function r(t,e,i,n,r,o){var s={},l=i.style||{};if(i.shape&&(s.shape=m.clone(i.shape)),i.position&&(s.position=i.position.slice()),i.scale&&(s.scale=i.scale.slice()),i.origin&&(s.origin=i.origin.slice()),i.rotation&&(s.rotation=i.rotation),"image"===t.type&&i.style){var u=s.style={};m.each(["x","y","width","height"],function(e){a(e,u,l,t.style,o)})}if("text"===t.type&&i.style){var u=s.style={};m.each(["x","y"],function(e){a(e,u,l,t.style,o)}),!l.hasOwnProperty("textFill")&&l.fill&&(l.textFill=l.fill),!l.hasOwnProperty("textStroke")&&l.stroke&&(l.textStroke=l.stroke)}if("group"!==t.type&&(t.useStyle(l),o)){t.style.opacity=0;var h=l.opacity;null==h&&(h=1),v.initProps(t,{style:{opacity:h}},n,e)}o?t.attr(s):v.updateProps(t,s,n,e),t.attr({z2:i.z2||0,silent:i.silent}),i.styleEmphasis!==!1&&v.setHoverStyle(t,i.styleEmphasis)}function a(t,e,i,n,r){null==i[t]||r||(e[t]=i[t],i[t]=n[t])}function o(t,e,i,n){function r(t){null==t&&(t=y),T&&(b=e.getItemModel(t),x=b.getModel(A),M=b.getModel(P),S=e.getItemVisual(t,"color"),T=!1)}function a(t,i){return null==i&&(i=y),e.get(e.getDimension(t||0),i)}function o(i,n){null==n&&(n=y),r(n);var a=b.getModel(C).getItemStyle();null!=S&&(a.fill=S);var o=e.getItemVisual(n,"opacity");return null!=o&&(a.opacity=o),v.setTextStyle(a,x,null,{autoColor:S,isRectText:!0}),a.text=x.getShallow("show")?m.retrieve2(t.getFormattedLabel(n,"normal"),_(e,n)):null,i&&m.extend(a,i),a}function l(i,n){null==n&&(n=y),r(n);var a=b.getModel(I).getItemStyle();return v.setTextStyle(a,M,null,{isRectText:!0},!0),a.text=M.getShallow("show")?m.retrieve3(t.getFormattedLabel(n,"emphasis"),t.getFormattedLabel(n,"normal"),_(e,n)):null,i&&m.extend(a,i),a}function u(t,i){return null==i&&(i=y),e.getItemVisual(i,t)}function h(t){if(f.getBaseAxis){var e=f.getBaseAxis();return w(m.defaults({axis:e},t),n)}}function c(){return i.getCurrentSeriesIndices()}function d(t){return v.getFont(t,i)}var p=t.get("renderItem"),f=t.coordinateSystem,g={};f&&(g=f.prepareCustoms?f.prepareCustoms():O[f.type](f));var y,b,x,M,S,k=m.defaults({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:a,style:o,styleEmphasis:l,visual:u,barLayout:h,currentSeriesIndices:c,font:d},g.api||{}),D={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:g.coordSys,dataInsideLength:e.count(),encode:s(t.getData())},T=!0;return function(t){return y=t,T=!0,p&&p(m.defaults({dataIndexInside:t,dataIndex:e.getRawIndex(t)},D),k)||{}}}function s(t){var e={};return m.each(t.dimensions,function(i,n){var r=t.getDimensionInfo(i);if(!r.isExtraCoord){var a=r.coordDim,o=e[a]=e[a]||[];o[r.coordDimIndex]=n}}),e}function l(t,e,i,n,r,a){return t=u(t,e,i,n,r,a),t&&a.setItemGraphicEl(e,t),t}function u(t,e,i,a,o,s){var l=i.type;if(!t||l===t.__customGraphicType||"path"===l&&i.pathData===t.__customPathData||"image"===l&&i.style.image===t.__customImagePath||"text"===l&&i.style.text===t.__customText||(o.remove(t),t=null),null!=l){var c=!t;if(!t&&(t=n(i)),r(t,e,i,a,s,c),"group"===l){var d=t.children()||[],p=i.children||[];if(i.diffChildrenByName)h({oldChildren:d,newChildren:p,dataIndex:e,animatableModel:a,group:t,data:s});else{for(var f=0;f<p.length;f++)u(t.childAt(f),e,p[f],a,t,s);for(;f<d.length;f++)d[f]&&t.remove(d[f])}}return o.add(t),t}}function h(t){new M(t.oldChildren,t.newChildren,c,c,t).add(d).update(d).remove(p).execute()}function c(t,e){var i=t&&t.name;return null!=i?i:E+e}function d(t,e){var i=this.context,n=null!=t?i.newChildren[t]:null,r=null!=e?i.oldChildren[e]:null;u(r,i.dataIndex,n,i.animatableModel,i.group,i.data)}function p(t){var e=this.context,i=e.oldChildren[t];i&&e.group.remove(i)}var f=i(7),g=(f.__DEV__,i(2)),m=i(0),v=i(3),y=i(99),_=y.getDefaultLabel,b=i(30),x=i(82),w=x.getLayoutOnAxis,M=i(40),S=i(636),k=i(637),D=i(638),T=i(639),L=i(640),C=["itemStyle"],I=["emphasis","itemStyle"],A=["label"],P=["emphasis","label"],E="e\0\0",O={cartesian2d:S,geo:k,singleAxis:D,polar:T,calendar:L};g.extendSeriesModel({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0},getInitialData:function(t,e){return b(this.getSource(),this)}}),g.extendChartView({type:"custom",_data:null,render:function(t,e,i){var n=this._data,r=t.getData(),a=this.group,s=o(t,r,e,i);this.group.removeAll(),r.diff(n).add(function(e){l(null,e,s(e),t,a,r)}).update(function(e,i){var o=n.getItemGraphicEl(i);l(o,e,s(e),t,a,r)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&a.remove(e)}).execute(),this._data=r},incrementalPrepareRender:function(t,e,i){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,i,n){function r(t){t.isGroup||(t.incremental=!0,t.useHoverLayer=!0)}for(var a=e.getData(),s=o(e,a,i,n),u=t.start;u<t.end;u++){var h=l(null,u,s(u),e,this.group,a);h.traverse(r)}},dispose:m.noop})},function(t,e,i){function n(t,e){return e=e||[0,0],a.map(["x","y"],function(i,n){var r=this.getAxis(i),a=e[n],o=t[n]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))},this)}function r(t){var e=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:a.bind(n,t)}}}var a=i(0);t.exports=r},function(t,e,i){function n(t,e){return e=e||[0,0],a.map([0,1],function(i){var n=e[i],r=t[i]/2,a=[],o=[];return a[i]=n-r,o[i]=n+r,a[1-i]=o[1-i]=e[1-i],Math.abs(this.dataToPoint(a)[i]-this.dataToPoint(o)[i])},this)}function r(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:a.bind(n,t)}}}var a=i(0);t.exports=r},function(t,e,i){function n(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-r)-i.dataToCoord(n+r))}function r(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:a.bind(n,t)}}}var a=i(0);t.exports=r},function(t,e,i){function n(t,e){return a.map(["Radius","Angle"],function(i,n){var r=this["get"+i+"Axis"](),a=e[n],o=t[n]/2,s="dataTo"+i,l="category"===r.type?r.getBandWidth():Math.abs(r[s](a-o)-r[s](a+o));return"Angle"===i&&(l=l*Math.PI/180),l},this)}function r(t){var e=t.getRadiusAxis(),i=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:a.bind(function(n){var r=e.dataToRadius(n[0]),a=i.dataToAngle(n[1]),o=t.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o}),size:a.bind(n,t)}}}var a=i(0);t.exports=r},function(t,e){function i(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}}t.exports=i},function(t,e,i){function n(t,e,i,n){var r=i.type,a=f[r.charAt(0).toUpperCase()+r.slice(1)],o=new a(i);e.add(o),n.set(t,o),o.__ecGraphicId=t}function r(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse(function(t){r(t,e)}),e.removeKey(t.__ecGraphicId),i.remove(t))}function a(t){return t=d.extend({},t),d.each(["id","parentId","$action","hv","bounding"].concat(g.LOCATION_PARAMS),function(e){delete t[e]}),t}function o(t,e){var i;return d.each(e,function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)}),i}function s(t,e){var i=t.exist;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}function l(t,e,i){var n=d.extend({},i),r=t[e],a=i.$action||"merge";"merge"===a?r?(d.merge(r,n,!0),g.mergeLayoutParam(r,n,{ignoreSize:!0}),g.copyLayoutParams(i,r)):t[e]=n:"replace"===a?t[e]=n:"remove"===a&&r&&(t[e]=null)}function u(t,e){t&&(t.hv=e.hv=[o(e,["left","right"]),o(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}var h=i(7),c=(h.__DEV__,i(2)),d=i(0),p=i(5),f=i(3),g=i(8);c.registerPreprocessor(function(t){var e=t.graphic;d.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])});var m=c.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,m.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var i=this.option,n=(e?i:t).elements,r=i.elements=e?[]:i.elements,a=[];this._flatten(n,a);var o=p.mappingToExists(r,a);p.makeIdAndName(o);var h=this._elOptionsToUpdate=[];d.each(o,function(t,e){var i=t.option;i&&(h.push(i),s(t,i),l(r,e,i),u(r[e],i))},this);for(var c=r.length-1;c>=0;c--)null==r[c]?r.splice(c,1):delete r[c].$action},_flatten:function(t,e,i){d.each(t,function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});c.extendComponentView({type:"graphic",init:function(t,e){this._elMap=d.createHashMap(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t,i),this._relocate(t,i)},_updateElements:function(t,e){var i=t.useElOptionsToUpdate();if(i){var o=this._elMap,s=this.group;d.each(i,function(t){var e=t.$action,i=t.id,l=o.get(i),u=t.parentId,h=null!=u?o.get(u):s;if("text"===t.type){var c=t.style;t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=null),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke)}var d=a(t);e&&"merge"!==e?"replace"===e?(r(l,o),n(i,h,d,o)):"remove"===e&&r(l,o):l?l.attr(d):n(i,h,d,o);var p=o.get(i);p&&(p.__ecGraphicWidth=t.width,p.__ecGraphicHeight=t.height)})}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,r=this._elMap,a=i.length-1;a>=0;a--){var o=i[a],s=r.get(o.id);if(s){var l=s.parent,u=l===n?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};g.positionElement(s,o,u,null,{hv:o.hv,boundingMode:o.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){r(e,t)}),this._elMap=d.createHashMap()},dispose:function(){this._clear()}})},function(t,e,i){i(63),i(307),i(66)},function(t,e,i){i(644),i(647),i(648),i(649)},function(t,e,i){var n=i(2);i(308),i(645),i(309);var r=i(646),a=i(16);n.registerProcessor(r),a.registerSubTypeDefaulter("legend",function(){return"plain"})},function(t,e,i){function n(t,e,i){var n,r={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):(i[t](e.name),n=i.isSelected(e.name));var s=i.getData();a.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&n:r[e]=n}})}),{name:e.name,selected:r}}var r=i(2),a=i(0);r.registerAction("legendToggleSelect","legendselectchanged",a.curry(n,"toggleSelected")),r.registerAction("legendSelect","legendselected",a.curry(n,"select")),r.registerAction("legendUnSelect","legendunselected",a.curry(n,"unSelect"))},function(t,e){function i(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}t.exports=i},function(t,e,i){function n(t,e,i){var n=t.getOrient(),r=[1,1];r[n.index]=0,o(e,i,{type:"box",ignoreSize:r})}var r=i(308),a=i(8),o=a.mergeLayoutParam,s=a.getLayoutParams,l=r.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,i,r){var a=s(t);l.superCall(this,"init",t,e,i,r),n(this,t,a)},mergeOption:function(t,e){l.superCall(this,"mergeOption",t,e),n(this,this.option,t)},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}}}),u=l;t.exports=u},function(t,e,i){var n=i(0),r=i(3),a=i(8),o=i(309),s=r.Group,l=["width","height"],u=["x","y"],h=o.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){h.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){h.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,i,a){function o(t,i){var o=t+"DataIndex",h=r.createIcon(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:n.bind(s._pageGo,s,o,e,a)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});h.name=t,l.add(h)}var s=this;h.superCall(this,"renderInner",t,e,i,a);var l=this._controllerGroup,u=e.get("pageIconSize",!0);n.isArray(u)||(u=[u,u]),o("pagePrev",0);var c=e.getModel("pageTextStyle");l.add(new r.Text({name:"pageText",style:{textFill:c.getTextColor(),font:c.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),o("pageNext",1)},layoutInner:function(t,e,i){var o=this.getContentGroup(),s=this._containerGroup,h=this._controllerGroup,c=t.getOrient().index,d=l[c],p=l[1-c],f=u[1-c];a.box(t.get("orient"),o,t.get("itemGap"),c?i.width:null,c?null:i.height),a.box("horizontal",h,t.get("pageButtonItemGap",!0));var g=o.getBoundingRect(),m=h.getBoundingRect(),v=this._showController=g[d]>i[d],y=[-g.x,-g.y];y[c]=o.position[c];var _=[0,0],b=[-m.x,-m.y],x=n.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(v){var w=t.get("pageButtonPosition",!0);"end"===w?b[c]+=i[d]-m[d]:_[c]+=m[d]+x}b[1-c]+=g[p]/2-m[p]/2,o.attr("position",y),s.attr("position",_),h.attr("position",b);var M=this.group.getBoundingRect(),M={x:0,y:0};if(M[d]=v?i[d]:g[d],M[p]=Math.max(g[p],m[p]),M[f]=Math.min(0,m[f]+b[1-c]),s.__rectSize=i[d],v){var S={x:0,y:0};S[d]=Math.max(i[d]-m[d]-x,0),S[p]=M[p],s.setClipPath(new r.Rect({shape:S})),s.__rectSize=S[d]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var k=this._getPageInfo(t);return null!=k.pageIndex&&r.updateProps(o,{position:k.contentPosition},!!v&&t),this._updatePageInfoView(t,k),M},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;n.each(["pagePrev","pageNext"],function(n){var r=null!=e[n+"DataIndex"],a=i.childOfName(n);a&&(a.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")});var r=i.childOfName("pageText"),a=t.get("pageFormatter"),o=e.pageIndex,s=null!=o?o+1:0,l=e.pageCount;r&&a&&r.setStyle("text",n.isString(a)?a.replace("{current}",s).replace("{total}",l):a({current:s,total:l}))},_getPageInfo:function(t){function e(t){var e=t.getBoundingRect().clone();return e[g]+=t.position[d],e}var i,n,r,a,o=t.get("scrollDataIndex",!0),s=this.getContentGroup(),h=s.getBoundingRect(),c=this._containerGroup.__rectSize,d=t.getOrient().index,p=l[d],f=l[1-d],g=u[d],m=s.position.slice();this._showController?s.eachChild(function(t){t.__legendDataIndex===o&&(a=t)}):a=s.childAt(0);var v=c?Math.ceil(h[p]/c):0;if(a){var y=a.getBoundingRect(),_=a.position[d]+y[g];m[d]=-_-h[g],i=Math.floor(v*(_+y[g]+c/2)/h[p]),i=h[p]&&v?Math.max(0,Math.min(v-1,i)):-1;var b={x:0,y:0};b[p]=c,b[f]=h[f],b[g]=-m[d]-h[g];var x,w=s.children();if(s.eachChild(function(t,i){var n=e(t);n.intersect(b)&&(null==x&&(x=i),r=t.__legendDataIndex),i===w.length-1&&n[g]+n[p]<=b[g]+b[p]&&(r=null)}),null!=x){var M=w[x],S=e(M);if(b[g]=S[g]+S[p]-b[p],x<=0&&S[g]>=b[g])n=null;else{for(;x>0&&e(w[x-1]).intersect(b);)x--;n=w[x].__legendDataIndex}}}return{contentPosition:m,pageIndex:i,pageCount:v,pagePrevDataIndex:n,pageNextDataIndex:r}}}),c=h;t.exports=c},function(t,e,i){var n=i(2);n.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})})},function(t,e,i){var n=i(2);i(66),i(651),i(652),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},function(t,e,i){var n=i(2),r=n.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});t.exports=r},function(t,e,i){function n(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(_.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new _(i,e,e.ecModel))}return e}function r(t,e){return t.dispatchAction||c.bind(e.dispatchAction,e)}function a(t,e,i,n,r,a,o){var l=s(i),u=l.width,h=l.height;return null!=a&&(t+u+a>n?t-=u+a:t+=a),null!=o&&(e+h+o>r?e-=h+o:e+=o),[t,e]}function o(t,e,i,n,r){var a=s(i),o=a.width,l=a.height;return t=Math.min(t+o,n)-o,e=Math.min(e+l,r)-l,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function s(t){var e=t.clientWidth,i=t.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(t);n&&(e+=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),i+=parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:i}}function l(t,e,i){var n=i[0],r=i[1],a=5,o=0,s=0,l=e.width,u=e.height;switch(t){case"inside":o=e.x+l/2-n/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case"bottom":o=e.x+l/2-n/2,s=e.y+u+a;break;case"left":o=e.x-n-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}function u(t){return"center"===t||"middle"===t}var h=i(2),c=i(0),d=i(15),p=i(653),f=i(11),g=i(4),m=i(3),v=i(305),y=i(8),_=i(17),b=i(306),x=i(23),w=i(89),M=c.bind,S=c.each,k=g.parsePercent,D=new m.Rect({shape:{x:-1,y:-1,width:2,height:2}}),T=h.extendComponentView({type:"tooltip",init:function(t,e){if(!d.node){var i=new p(e.getDom(),e);this._tooltipContent=i}},render:function(t,e,i){if(!d.node&&!d.wxa){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");b.register("itemTooltip",this._api,M(function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})})}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!d.node){var a=r(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var s=D;s.position=[n.x,n.y],s.update(),s.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:s},a)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},a);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var l=v(n,e),u=l.point[0],h=l.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,position:n.position,target:l.el,event:{}},a)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},a))}},manuallyHideTip:function(t,e,i,n){var a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(r(n,i))},_manuallyAxisShowTip:function(t,e,i,r){var a=r.seriesIndex,o=r.dataIndex,s=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=o&&null!=s){var l=e.getSeriesByIndex(a);if(l){var u=l.getData(),t=n([u.getItemModel(o),l,(l.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:o,position:r.position}),!0}}},_tryShow:function(t,e){var i=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=c.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,r=this._tooltipModel,a=[e.offsetX,e.offsetY],o=[],s=[],l=n([e.tooltipOption,r]);S(t,function(t){S(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,r=[];if(e&&null!=n){var a=w.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);c.each(t.seriesDataIndices,function(o){var l=i.getSeriesByIndex(o.seriesIndex),u=o.dataIndexInside,h=l&&l.getDataParams(u);h.axisDim=t.axisDim,h.axisIndex=t.axisIndex,h.axisType=t.axisType,h.axisId=t.axisId,h.axisValue=x.getAxisRawValue(e.axis,n),h.axisValueLabel=a,h&&(s.push(h),r.push(l.formatTooltip(u,!0)))});var l=a;o.push((l?f.encodeHTML(l)+"<br />":"")+r.join("<br />"))}})},this),o.reverse(),o=o.join("<br /><br />");var u=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,u,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(l,o,s,Math.random(),a[0],a[1],u)})},_showSeriesItemTooltip:function(t,e,i){var r=this._ecModel,a=e.seriesIndex,o=r.getSeriesByIndex(a),s=e.dataModel||o,l=e.dataIndex,u=e.dataType,h=s.getData(),c=n([h.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),d=c.get("trigger");if(null==d||"item"===d){var p=s.getDataParams(l,u),f=s.formatTooltip(l,!1,u),g="item_"+s.name+"_"+l;this._showOrMove(c,function(){this._showTooltipContent(c,f,p,g,t.offsetX,t.offsetY,t.position,t.target)}),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var r=n;n={content:r,formatter:r}}var a=new _(n,this._tooltipModel,this._ecModel),o=a.get("content"),s=Math.random();this._showOrMove(a,function(){this._showTooltipContent(a,o,a.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,r,a,o,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,u=t.get("formatter");o=o||t.get("position");var h=e;if(u&&"string"==typeof u)h=f.formatTpl(u,i,!0);else if("function"==typeof u){var c=M(function(e,n){e===this._ticket&&(l.setContent(n),this._updatePosition(t,o,r,a,l,i,s))},this);this._ticket=n,h=u(i,n,c)}l.setContent(h),l.show(t),this._updatePosition(t,o,r,a,l,i,s)}},_updatePosition:function(t,e,i,n,r,s,h){var d=this._api.getWidth(),p=this._api.getHeight();e=e||t.get("position");var f=r.getSize(),g=t.get("align"),m=t.get("verticalAlign"),v=h&&h.getBoundingRect().clone();if(h&&v.applyTransform(h.transform),"function"==typeof e&&(e=e([i,n],s,r.el,v,{viewSize:[d,p],contentSize:f.slice()})),c.isArray(e))i=k(e[0],d),n=k(e[1],p);else if(c.isObject(e)){e.width=f[0],e.height=f[1];var _=y.getLayoutRect(e,{width:d,height:p});i=_.x,n=_.y,g=null,m=null}else if("string"==typeof e&&h){var b=l(e,v,f);i=b[0],n=b[1]}else{var b=a(i,n,r.el,d,p,g?null:20,m?null:20); i=b[0],n=b[1]}if(g&&(i-=u(g)?f[0]/2:"right"===g?f[0]:0),m&&(n-=u(m)?f[1]/2:"bottom"===m?f[1]:0),t.get("confine")){var b=o(i,n,r.el,d,p);i=b[0],n=b[1]}r.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&S(e,function(e,n){var r=e.dataByAxis||{},a=t[n]||{},o=a.dataByAxis||[];i&=r.length===o.length,i&&S(r,function(t,e){var n=o[e]||{},r=t.seriesDataIndices||[],a=n.seriesDataIndices||[];i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&r.length===a.length,i&&S(r,function(t,e){var n=a[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){d.node||d.wxa||(this._tooltipContent.hide(),b.unregister("itemTooltip",e))}});t.exports=T},function(t,e,i){function n(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return s.map(f,function(t){return t+"transition:"+i}).join(";")}function r(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),d(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function a(t){var e=[],i=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.getModel("textStyle"),s=t.get("padding");return i&&e.push(n(i)),a&&(h.canvasSupported?e.push("background-Color:"+a):(e.push("background-Color:#"+l.toHex(a)),e.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(i){var n="border-"+i,r=p(n),a=t.get(r);null!=a&&e.push(n+":"+a+("color"===i?"":"px"))}),e.push(r(o)),null!=s&&e.push("padding:"+c.normalizeCssArray(s).join("px ")+"px"),e.join(";")+";"}function o(t,e){if(h.wxa)return null;var i=document.createElement("div"),n=this._zr=e.getZr();this.el=i,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!r._enterable){var i=n.handler;u.normalizeEvent(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}var s=i(0),l=i(26),u=i(27),h=i(15),c=i(11),d=s.each,p=c.toCamelCase,f=["","-webkit-","-moz-","-o-"],g="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";o.prototype={constructor:o,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=g+a(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getViewportRootOffset())&&(t+=i.offsetLeft,e+=i.offsetTop);var r=this.el.style;r.left=t+"px",r.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}};var m=o;t.exports=m},function(t,e,i){var n=i(2),r=i(0),a=i(655);i(108),i(661),i(663),i(66),i(665),n.registerLayout(r.curry(a,"bar")),n.extendComponentView({type:"polar"})},function(t,e,i){function n(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function r(t){return t.dim}function a(t,e,i){var a=i.getWidth(),l=i.getHeight(),h={},d=o(s.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),s=n(t),p=d[r(o)][s],f=p.offset,g=p.width,m=i.getOtherAxis(o),v=t.get("center")||["50%","50%"],y=u(v[0],a),_=u(v[1],l),b=t.get("barMinHeight")||0,x=t.get("barMinAngle")||0;h[s]=h[s]||[];for(var w=e.mapDimension(m.dim),M=e.mapDimension(o.dim),S=c(e,w),k=m.getExtent()[0],D=0,T=e.count();D<T;D++){var L=e.get(w,D),C=e.get(M,D);if(!isNaN(L)){var I=L>=0?"p":"n",A=k;S&&(h[s][C]||(h[s][C]={p:k,n:k}),A=h[s][C][I]);var P,E,O,R;if("radius"===m.dim){var H=m.dataToRadius(L)-k,z=o.dataToAngle(C);Math.abs(H)<b&&(H=(H<0?-1:1)*b),P=A,E=A+H,O=z-f,R=O-g,S&&(h[s][C][I]=E)}else{var Y=m.dataToAngle(L,!0)-k,N=o.dataToRadius(C);Math.abs(Y)<x&&(Y=(Y<0?-1:1)*x),P=N+f,E=P+g,O=A,R=A+Y,S&&(h[s][C][I]=R)}e.setItemLayout(D,{cx:y,cy:_,r0:P,r:E,startAngle:-O*Math.PI/180,endAngle:-R*Math.PI/180})}}}},this)}function o(t,e){var i={};s.each(t,function(t,e){var a=t.getData(),o=t.coordinateSystem,s=o.getBaseAxis(),l=s.getExtent(),h="category"===s.type?s.getBandWidth():Math.abs(l[1]-l[0])/a.count(),c=i[r(s)]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=c.stacks;i[r(s)]=c;var p=n(t);d[p]||c.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var f=u(t.get("barWidth"),h),g=u(t.get("barMaxWidth"),h),m=t.get("barGap"),v=t.get("barCategoryGap");f&&!d[p].width&&(f=Math.min(c.remainedWidth,f),d[p].width=f,c.remainedWidth-=f),g&&(d[p].maxWidth=g),null!=m&&(c.gap=m),null!=v&&(c.categoryGap=v)});var a={};return s.each(i,function(t,e){a[e]={};var i=t.stacks,n=t.bandWidth,r=u(t.categoryGap,n),o=u(t.gap,1),l=t.remainedWidth,h=t.autoWidthCount,c=(l-r)/(h+(h-1)*o);c=Math.max(c,0),s.each(i,function(t,e){var i=t.maxWidth;i&&i<c&&(i=Math.min(i,l),t.width&&(i=Math.min(i,t.width)),l-=i,t.width=i,h--)}),c=(l-r)/(h+(h-1)*o),c=Math.max(c,0);var d,p=0;s.each(i,function(t,e){t.width||(t.width=c),d=t,p+=t.width*(1+o)}),d&&(p-=d.width*o);var f=-p/2;s.each(i,function(t,i){a[e][i]=a[e][i]||{offset:f,width:t.width},f+=t.width*(1+o)})}),a}var s=i(0),l=i(4),u=l.parsePercent,h=i(31),c=h.isDimensionStacked,d=a;t.exports=d},function(t,e,i){var n=i(657),r=i(658),a=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new n,this._angleAxis=new r,this._radiusAxis.polar=this._angleAxis.polar=this};a.prototype={type:"polar",axisPointerEnabled:!0,constructor:a,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),r=n.getExtent(),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);n.inverse?a=o-360:o=a+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,u=l<a?1:-1;l<a||l>o;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,r=-Math.sin(i)*e+this.cy;return[n,r]}};var o=a;t.exports=o},function(t,e,i){function n(t,e){a.call(this,"radius",t,e),this.type="category"}var r=i(0),a=i(34);n.prototype={constructor:n,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:a.prototype.dataToCoord,radiusToData:a.prototype.coordToData},r.inherits(n,a);var o=n;t.exports=o},function(t,e,i){function n(t,e){e=e||[0,360],a.call(this,"angle",t,e),this.type="category"}var r=i(0),a=i(34);n.prototype={constructor:n,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:a.prototype.dataToCoord,angleToData:a.prototype.coordToData},r.inherits(n,a);var o=n;t.exports=o},function(t,e,i){var n=i(2);i(660);var r=n.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,i=this.ecModel;return i.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});t.exports=r},function(t,e,i){function n(t,e){return e.type||(e.data?"category":"value")}var r=i(0),a=i(16),o=i(84),s=i(50),l=a.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});r.merge(l.prototype,s);var u={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};o("angle",l,n,u.angle),o("radius",l,n,u.radius)},function(t,e,i){i(108),i(662)},function(t,e,i){function n(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),r=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:r[0],y2:r[1]}}function r(t){var e=t.getRadiusAxis();return e.inverse?0:1}function a(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}var o=i(0),s=i(3),l=i(17),u=i(43),h=["axisLine","axisLabel","axisTick","splitLine","splitArea"],c=u.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,n=i.polar,r=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=o.map(i.getViewLabels(),function(t){var t=o.clone(t);return t.coord=i.dataToCoord(t.tickValue),t});a(l),a(s),o.each(h,function(e){!t.get(e+".show")||i.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,n,s,r,l)},this)}},_axisLine:function(t,e,i,n){var a=t.getModel("axisLine.lineStyle"),o=new s.Circle({shape:{cx:e.cx,cy:e.cy,r:n[r(e)]},style:a.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,i,a){var l=t.getModel("axisTick"),u=(l.get("inside")?-1:1)*l.get("length"),h=a[r(e)],c=o.map(i,function(t){return new s.Line({shape:n(e,[h,h+u],t.coord)})});this.group.add(s.mergePath(c,{style:o.defaults(l.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,i,n,a){var u=t.getCategories(!0),h=t.getModel("axisLabel"),c=h.get("margin");o.each(a,function(i,a){var o=h,d=i.tickValue,p=n[r(e)],f=e.coordToPoint([p+c,i.coord]),g=e.cx,m=e.cy,v=Math.abs(f[0]-g)/p<.3?"center":f[0]>g?"left":"right",y=Math.abs(f[1]-m)/p<.3?"middle":f[1]>m?"top":"bottom";u&&u[d]&&u[d].textStyle&&(o=new l(u[d].textStyle,h,h.ecModel));var _=new s.Text({silent:!0});this.group.add(_),s.setTextStyle(_.style,o,{x:f[0],y:f[1],textFill:o.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:v,textVerticalAlign:y})},this)},_splitLine:function(t,e,i,r){var a=t.getModel("splitLine"),l=a.getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var c=[],d=0;d<i.length;d++){var p=h++%u.length;c[p]=c[p]||[],c[p].push(new s.Line({shape:n(e,r,i[d].coord)}))}for(var d=0;d<c.length;d++)this.group.add(s.mergePath(c[d],{style:o.defaults({stroke:u[d%u.length]},l.getLineStyle()),silent:!0,z:t.get("z")}))},_splitArea:function(t,e,i,n){if(i.length){var r=t.getModel("splitArea"),a=r.getModel("areaStyle"),l=a.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=Math.PI/180,d=-i[0].coord*c,p=Math.min(n[0],n[1]),f=Math.max(n[0],n[1]),g=t.get("clockwise"),m=1;m<i.length;m++){var v=u++%l.length;h[v]=h[v]||[],h[v].push(new s.Sector({shape:{cx:e.cx,cy:e.cy,r0:p,r:f,startAngle:d,endAngle:-i[m].coord*c,clockwise:g},silent:!0})),d=-i[m].coord*c}for(var m=0;m<h.length;m++)this.group.add(s.mergePath(h[m],{style:o.defaults({fill:l[m%l.length]},a.getAreaStyle()),silent:!0}))}}});t.exports=c},function(t,e,i){i(108),i(664)},function(t,e,i){function n(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var r=i(0),a=i(3),o=i(42),s=i(43),l=["axisLine","axisTickLabel","axisName"],u=["splitLine","splitArea"],h=s.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,a=i.polar,s=a.getAngleAxis(),h=i.getTicksCoords(),c=s.getExtent()[0],d=i.getExtent(),p=n(a,t,c),f=new o(t,p);r.each(l,f.add,f),this.group.add(f.getGroup()),r.each(u,function(e){t.get(e+".show")&&!i.scale.isBlank()&&this["_"+e](t,a,c,d,h)},this)}},_splitLine:function(t,e,i,n,o){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var c=[],d=0;d<o.length;d++){var p=h++%u.length;c[p]=c[p]||[],c[p].push(new a.Circle({shape:{cx:e.cx,cy:e.cy,r:o[d].coord},silent:!0}))}for(var d=0;d<c.length;d++)this.group.add(a.mergePath(c[d],{style:r.defaults({stroke:u[d%u.length],fill:null},l.getLineStyle()),silent:!0}))},_splitArea:function(t,e,i,n,o){if(o.length){var s=t.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var c=[],d=o[0].coord,p=1;p<o.length;p++){var f=h++%u.length;c[f]=c[f]||[],c[f].push(new a.Sector({shape:{cx:e.cx,cy:e.cy,r0:d,r:o[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[p].coord}for(var p=0;p<c.length;p++)this.group.add(a.mergePath(c[p],{style:r.defaults({fill:u[p%u.length]},l.getAreaStyle()),silent:!0}))}}});t.exports=h},function(t,e,i){function n(t,e,i,n,r){var a=e.axis,s=a.dataToCoord(t),h=n.getAngleAxis().getExtent()[0];h=h/180*Math.PI;var c,d,p,f=n.getRadiusAxis().getExtent();if("radius"===a.dim){var g=l.create();l.rotate(g,g,h),l.translate(g,g,[n.cx,n.cy]),c=o.applyTransform([s,-r],g);var m=e.getModel("axisLabel").get("rotate")||0,v=u.innerTextLayout(h,m*Math.PI/180,-1);d=v.textAlign,p=v.textVerticalAlign}else{var y=f[1];c=n.coordToPoint([y+r,s]);var _=n.cx,b=n.cy;d=Math.abs(c[0]-_)/y<.3?"center":c[0]>_?"left":"right",p=Math.abs(c[1]-b)/y<.3?"middle":c[1]>b?"top":"bottom"}return{position:c,align:d,verticalAlign:p}}var r=i(11),a=i(107),o=i(3),s=i(89),l=i(19),u=i(42),h=i(43),c=a.extend({makeElOption:function(t,e,i,a,o){var l=i.axis;"angle"===l.dim&&(this.animationThreshold=Math.PI/18);var u,h=l.polar,c=h.getOtherAxis(l),p=c.getExtent();u=l["dataTo"+r.capitalFirst(l.dim)](e);var f=a.get("type");if(f&&"none"!==f){var g=s.buildElStyle(a),m=d[f](l,h,u,p,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=a.get("label.margin"),y=n(e,i,a,h,v);s.buildLabelElOption(t,i,a,o,y)}}),d={line:function(t,e,i,n,r){return"angle"===t.dim?{type:"Line",shape:s.makeLineShape(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,r){var a=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:s.makeSectorShape(e.cx,e.cy,n[0],n[1],(-i-a/2)*o,(-i+a/2)*o)}:{type:"Sector",shape:s.makeSectorShape(e.cx,e.cy,i-a/2,i+a/2,0,2*Math.PI)}}};h.registerAxisPointerClass("PolarAxisPointer",c);var p=c;t.exports=p},function(t,e,i){function n(t,e){e.update="updateView",r.registerAction(e,function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},function(i){i[t](e.name);var r=i.coordinateSystem;a.each(r.regions,function(t){n[t.name]=i.isSelected(t.name)||!1})}),{selected:n,name:e.name}})}var r=i(2),a=i(0);i(667),i(87),i(668),i(288),n("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),n("select",{type:"geoSelect",event:"geoselected"}),n("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(t,e,i){var n=i(0),r=i(5),a=i(16),o=i(17),s=i(101),l=i(87),u=a.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){a.prototype.init.apply(this,arguments),r.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=l.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=n.reduce(t.regions||[],function(t,i){return i.name&&t.set(i.name,new o(i,e)),t},n.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:.75,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new o(null,this,this.ecModel)},getFormattedLabel:function(t,e){var i=this.getRegionModel(t),n=i.get("label."+e+".formatter"),r={name:t};return"function"==typeof n?(r.status=e,n(r)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});n.mixin(u,s);var h=u;t.exports=h},function(t,e,i){var n=i(285),r=i(2),a=r.extendComponentView({type:"geo",init:function(t,e){var i=new n(e,(!0));this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});t.exports=a},function(t,e,i){var n=i(2),r=i(670);i(671),i(673),i(674),i(675),i(676),n.registerPreprocessor(r)},function(t,e,i){function n(t,e){var i=t&&t.brush;if(a.isArray(i)||(i=i?[i]:[]),i.length){var n=[];a.each(i,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))});var s=t&&t.toolbox;a.isArray(s)&&(s=s[0]),s||(s={feature:{}},t.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),h=u.type||(u.type=[]);h.push.apply(h,n),r(h),e&&!h.length&&h.push.apply(h,o)}}function r(t){var e={};a.each(t,function(t){e[t]=1}),t.length=0,a.each(e,function(e,i){t.push(i)})}var a=i(0),o=["rect","polygon","keep","clear"];t.exports=n},function(t,e,i){function n(t,e,i,n,a){if(a){var o=t.getZr();if(!o[_]){o[y]||(o[y]=r);var s=g.createOrUpdate(o,y,i,e);s(t,n)}}}function r(t,e){if(!t.isDisposed()){var i=t.getZr();i[_]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[_]=!1}}function a(t,e,i,n){for(var r=0,a=e.length;r<a;r++){var o=e[r];if(t[o.brushType](n,i,o.selectors,o))return!0}}function o(t){var e=t.brushSelector;if(c.isString(e)){var i=[];return c.each(f,function(t,n){i[n]=function(i,n,r,a){var o=n.getItemLayout(i);return t[e](o,r,a)}}),i}if(c.isFunction(e)){var n={};return c.each(f,function(t,i){n[i]=e}),n}return e}function s(t,e){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(c.isArray(i)?c.indexOf(i,e)<0:e!==i)}function l(t){var e=t.selectors={};return c.each(f[t.brushType],function(i,n){e[n]=function(n){return i(n,e,t)}}),t}function u(t){return new d(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var h=i(2),c=i(0),d=i(12),p=i(90),f=i(672),g=i(38),m=i(311),v=["inBrush","outOfBrush"],y="__ecBrushSelect",_="__ecInBrushSelectEvent",b=h.PRIORITY.VISUAL.BRUSH;h.registerLayout(b,function(t,e,i){t.eachComponent({mainType:"brush"},function(e){i&&"takeGlobalCursor"===i.type&&e.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1});var n=e.brushTargetManager=new m(e.option,t);n.setInputRanges(e.areas,t)})}),h.registerVisual(b,function(t,e,i){var r,u,h=[];t.eachComponent({mainType:"brush"},function(e,i){function n(t){return"all"===_||b[t]}function d(t){return!!t.length}function f(t,e){var i=t.coordinateSystem;S|=i.hasAxisBrushed(),n(e)&&i.eachActiveState(t.getData(),function(t,e){"active"===t&&(w[e]=1)})}function g(i,r,l){var u=o(i);if(u&&!s(e,r)&&(c.each(k,function(n){u[n.brushType]&&e.brushTargetManager.controlSeries(n,i,t)&&l.push(n),S|=d(l)}),n(r)&&d(l))){var h=i.getData();h.each(function(t){a(u,l,h,t)&&(w[t]=1)})}}var m={brushId:e.id,brushIndex:i,brushName:e.name,areas:c.clone(e.areas),selected:[]};h.push(m);var y=e.option,_=y.brushLink,b=[],w=[],M=[],S=0;i||(r=y.throttleType,u=y.throttleDelay);var k=c.map(e.areas,function(t){return l(c.defaults({boundingRect:x[t.brushType](t)},t))}),D=p.createVisualMappings(e.option,v,function(t){t.mappingMethod="fixed"});c.isArray(_)&&c.each(_,function(t){b[t]=1}),t.eachSeries(function(t,e){var i=M[e]=[];"parallel"===t.subType?f(t,e,i):g(t,e,i)}),t.eachSeries(function(t,e){var i={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};m.selected.push(i);var r=o(t),s=M[e],l=t.getData(),u=n(e)?function(t){return w[t]?(i.dataIndex.push(l.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return a(r,s,l,t)?(i.dataIndex.push(l.getRawIndex(t)),"inBrush"):"outOfBrush"};(n(e)?S:d(s))&&p.applyVisual(v,D,l,u)})}),n(e,r,u,h,i)});var x={lineX:c.noop,lineY:c.noop,rect:function(t){return u(t.range)},polygon:function(t){for(var e,i=t.range,n=0,r=i.length;n<r;n++){e=e||[[1/0,-(1/0)],[1/0,-(1/0)]];var a=i[n];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&u(e)}}},function(t,e,i){function n(t){var e=["x","y"],i=["width","height"];return{point:function(e,i,n){if(e){var a=n.range,o=e[t];return r(o,a)}},rect:function(n,a,o){if(n){var s=o.range,l=[n[e[t]],n[e[t]]+n[i[t]]];return l[1]<l[0]&&l.reverse(),r(l[0],s)||r(l[1],s)||r(s[0],l)||r(s[1],l)}}}}function r(t,e){return e[0]<=t&&t<=e[1]}function a(t,e,i,n,r){for(var a=0,s=r[r.length-1];a<r.length;a++){var l=r[a];if(o(t,e,i,n,l[0],l[1],s[0],s[1]))return!0;s=l}}function o(t,e,i,n,r,a,o,u){var h=l(i-t,r-o,n-e,a-u);if(s(h))return!1;var c=l(r-t,r-o,a-e,a-u)/h;if(c<0||c>1)return!1;var d=l(i-t,r-t,n-e,a-e)/h;return!(d<0||d>1)}function s(t){return t<=1e-6&&t>=-1e-6}function l(t,e,i,n){return t*n-e*i}var u=i(275),h=i(12),c={lineX:n(0),lineY:n(1),rect:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])},rect:function(t,e,i){return t&&i.boundingRect.intersect(t)}},polygon:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])&&u.contain(i.range,t[0],t[1])},rect:function(t,e,i){var n=i.range;if(!t||n.length<=1)return!1;var r=t.x,o=t.y,s=t.width,l=t.height,c=n[0];return!!(u.contain(n,r,o)||u.contain(n,r+s,o)||u.contain(n,r,o+l)||u.contain(n,r+s,o+l)||h.create(t).contain(c[0],c[1])||a(r,o,r+s,o,n)||a(r,o,r,o+l,n)||a(r+s,o,r+s,o+l,n)||a(r,o+l,r+s,o+l,n))||void 0}}},d=c;t.exports=d},function(t,e,i){function n(t,e){return o.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new l(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var r=i(7),a=(r.__DEV__,i(2)),o=i(0),s=i(90),l=i(17),u=["#ddd"],h=a.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&s.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:u},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(t){t&&(this.areas=o.map(t,function(t){return n(this.option,t)},this))},setBrushOption:function(t){this.brushOption=n(this.option,t),this.brushType=this.brushOption.brushType}}),c=h;t.exports=c},function(t,e,i){function n(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}var r=i(2),a=i(0),o=i(106),s=r.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new o(e.getZr())).on("brush",a.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,n.apply(this,arguments)},updateTransform:n,updateView:n,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:a.clone(t),$from:i})}});t.exports=s},function(t,e,i){var n=i(2);n.registerAction({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){})},function(t,e,i){function n(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}var r=i(0),a=i(35),o=i(39),s=o.toolbox.brush;n.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.clone(s.title)};var l=n.prototype;l.render=l.updateView=function(t,e,i){var n,a,o;e.eachComponent({mainType:"brush"},function(t){n=t.brushType,a=t.brushOption.brushMode||"single",o|=t.areas.length}),this._brushType=n,this._brushMode=a,r.each(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===a:"clear"===e?o:e===n)?"emphasis":"normal")})},l.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return r.each(t.get("type",!0),function(t){e[t]&&(i[t]=e[t])}),i},l.onclick=function(t,e,i){var n=this._brushType,r=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===r?"single":"multiple":r}})},a.register("brush",n);var u=n;t.exports=u},function(t,e,i){i(678),i(679),i(680)},function(t,e,i){function n(t,e,i){this._model=t}function r(t,e,i,n){var r=i.calendarModel,a=i.seriesModel,o=r?r.coordinateSystem:a?a.coordinateSystem:null;return o===this?o[t](n):null}var a=i(0),o=i(8),s=i(4),l=i(22),u=864e5;n.prototype={constructor:n,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){t=s.parseDate(t);var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var r=t.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:r,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return e=e||0,0===e?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],s=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),u="horizontal"===this._orient?[n,7]:[7,n];a.each([0,1],function(t){i(s,t)&&(l[r[t]]=s[t]*u[t])});var h={width:e.getWidth(),height:e.getHeight()},c=this._rect=o.getLayoutRect(l,h);a.each([0,1],function(t){i(s,t)||(s[t]=c[r[t]]/u[t])}),this._sw=s[0],this._sh=s[1]},dataToPoint:function(t,e){a.isArray(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,r=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.time<n.end.time+u))return[NaN,NaN];var o=i.day,s=this._getRangeInfo([n.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var i=this.dataToPoint(t,e);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,e-1,n):this._getDateByWeeksAndDay(e,i-1,n)},convertToPixel:a.curry(r,"dataToPoint"),convertFromPixel:a.curry(r,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(a.isArray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var i=this.getDateInfo(e),n=i.date;n.setMonth(n.getMonth()+1);var r=this.getNextNDay(n,-1);t=[i.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},_getRangeInfo:function(t){t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];var e;t[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/u)-Math.floor(t[0].time/u)+1,n=new Date(t[0].time),r=n.getDate(),a=t[1].date.getDate();if(n.setDate(r+i-1),n.getDate()!==a)for(var o=n.getTime()-t[1].time>0?1:-1;n.getDate()!==a&&(n.getTime()-t[1].time)*o>0;)i-=o,n.setDate(r+i-1);var s=Math.floor((i+t[0].day+6)/7),l=e?-s+1:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek)return!1;var r=7*(t-1)-n.fweek+e,a=new Date(n.start.time);return a.setDate(n.start.d+r), this.getDateInfo(a)}},n.dimensions=n.prototype.dimensions,n.getDimensionsInfo=n.prototype.getDimensionsInfo,n.create=function(t,e){var i=[];return t.eachComponent("calendar",function(r){var a=new n(r,t,e);i.push(a),r.coordinateSystem=a}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},l.register("calendar",n);var h=n;t.exports=h},function(t,e,i){function n(t,e){var i=t.cellSize;r.isArray(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var n=r.map([0,1],function(t){return l(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]});u(t,e,{type:"box",ignoreSize:n})}var r=i(0),a=i(16),o=i(8),s=o.getLayoutParams,l=o.sizeCalculable,u=o.mergeLayoutParam,h=a.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,i,r){var a=s(t);h.superApply(this,"init",arguments),n(t,a)},mergeOption:function(t,e){h.superApply(this,"mergeOption",arguments),n(this.option,t)}}),c=h;t.exports=c},function(t,e,i){var n=i(2),r=i(0),a=i(3),o=i(11),s=i(4),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},h=n.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var r=t.coordinateSystem,a=r.getRangeInfo(),o=r.getOrient();this._renderDayRect(t,a,n),this._renderLines(t,a,o,n),this._renderYearText(t,a,o,n),this._renderMonthText(t,o,n),this._renderWeekText(t,a,o,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),s=n.getCellHeight(),l=e.start.time;l<=e.end.time;l=n.getNextNDay(l,1).time){var u=n.dataToRect([l],!1).tl,h=new a.Rect({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:r});i.add(h)}},_renderLines:function(t,e,i,n){function r(e){a._firstDayOfMonth.push(o.getDateInfo(e)),a._firstDayPoints.push(o.dataToRect([e],!1).tl);var r=a._getLinePointsOfOneWeek(t,e,i);a._tlpoints.push(r[0]),a._blpoints.push(r[r.length-1]),l&&a._drawSplitline(r,s,n)}var a=this,o=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){r(h.formatedDate),0===c&&(h=o.getDateInfo(e.start.y+"-"+e.start.m));var d=h.date;d.setMonth(d.getMonth()+1),h=o.getDateInfo(d)}r(o.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,u,i),s,n),l&&this._drawSplitline(a._getEdgesPoints(a._blpoints,u,i),s,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===i?0:1;return n[0][r]=n[0][r]-e/2,n[1][r]=n[1][r]+e/2,n},_drawSplitline:function(t,e,i){var n=new a.Polyline({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var r=[],a=0;a<7;a++){var o=n.getNextNDay(e.time,a),s=n.dataToRect([o.time],!1);r[2*o.day]=s.tl,r[2*o.day+1]=s["horizontal"===i?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?o.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,r){e=e.slice();var a=["center","bottom"];"bottom"===n?(e[1]+=r,a=["center","top"]):"left"===n?e[0]-=r:"right"===n?(e[0]+=r,a=["center","top"]):e[1]-=r;var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(t,e,i,n){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),s=r.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,h=(l[0][1]+l[1][1])/2,c="horizontal"===i?0:1,d={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],h],right:[l[c][0],h]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var f=r.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:p},m=this._formatterLabel(f,g),v=new a.Text({z2:30});a.setTextStyle(v.style,r,{text:m}),v.attr(this._yearTextPositionControl(v,d[s],i,s,o)),n.add(v)}},_monthTextPositionControl:function(t,e,i,n,r){var a="left",o="top",s=t[0],l=t[1];return"horizontal"===i?(l+=r,e&&(a="center"),"start"===n&&(o="bottom")):(s+=r,e&&(o="middle"),"start"===n&&(a="right")),{x:s,y:l,textAlign:a,textVerticalAlign:o}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var o=n.get("nameMap"),s=n.get("margin"),u=n.get("position"),h=n.get("align"),c=[this._tlpoints,this._blpoints];r.isString(o)&&(o=l[o.toUpperCase()]||[]);var d="start"===u?0:1,p="horizontal"===e?0:1;s="start"===u?-s:s;for(var f="center"===h,g=0;g<c[d].length-1;g++){var m=c[d][g].slice(),v=this._firstDayOfMonth[g];if(f){var y=this._firstDayPoints[g];m[p]=(y[p]+c[0][g+1][p])/2}var _=n.get("formatter"),b=o[+v.m-1],x={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:b},w=this._formatterLabel(_,x),M=new a.Text({z2:30});r.extend(a.setTextStyle(M.style,n,{text:w}),this._monthTextPositionControl(m,f,e,u,s)),i.add(M)}}},_weekTextPositionControl:function(t,e,i,n,r){var a="center",o="middle",s=t[0],l=t[1],u="start"===i;return"horizontal"===e?(s=s+n+(u?1:-1)*r[0]/2,a=u?"right":"left"):(l=l+n+(u?1:-1)*r[1]/2,o=u?"bottom":"top"),{x:s,y:l,textAlign:a,textVerticalAlign:o}},_renderWeekText:function(t,e,i,n){var o=t.getModel("dayLabel");if(o.get("show")){var l=t.coordinateSystem,h=o.get("position"),c=o.get("nameMap"),d=o.get("margin"),p=l.getFirstDayOfWeek();r.isString(c)&&(c=u[c.toUpperCase()]||[]);var f=l.getNextNDay(e.end.time,7-e.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];d=s.parsePercent(d,g["horizontal"===i?0:1]),"start"===h&&(f=l.getNextNDay(e.start.time,-(7+e.fweek)).time,d=-d);for(var m=0;m<7;m++){var v=l.getNextNDay(f,m),y=l.dataToRect([v.time],!1).center,_=m;_=Math.abs((m+p)%7);var b=new a.Text({z2:30});r.extend(a.setTextStyle(b.style,o,{text:c[_]}),this._weekTextPositionControl(y,i,h,d,g)),n.add(b)}}}});t.exports=h},function(t,e,i){var n=i(2),r=i(3),a=i(8),o=a.getLayoutRect;n.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),n.extendComponentView({type:"title",render:function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=t.get("textBaseline"),h=new r.Text({style:r.setTextStyle({},a,{text:t.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),c=h.getBoundingRect(),d=t.get("subtext"),p=new r.Text({style:r.setTextStyle({},s,{text:d,textFill:s.getTextColor(),y:c.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),g=t.get("sublink");h.silent=!f,p.silent=!g,f&&h.on("click",function(){window.open(f,"_"+t.get("target"))}),g&&p.on("click",function(){window.open(g,"_"+t.get("subtarget"))}),n.add(h),d&&n.add(p);var m=n.getBoundingRect(),v=t.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=o(v,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),"middle"===l&&(l="center"),"right"===l?y.x+=y.width:"center"===l&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get("bottom"),"center"===u&&(u="middle"),"bottom"===u?y.y+=y.height:"middle"===u&&(y.y+=y.height/2),u=u||"top"),n.attr("position",[y.x,y.y]);var _={textAlign:l,textVerticalAlign:u};h.setStyle(_),p.setStyle(_),m=n.getBoundingRect();var b=y.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new r.Rect({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:t.get("borderRadius")},style:x,silent:!0});r.subPixelOptimizeRect(w),n.add(w)}}})},function(t,e,i){i(312),i(67),i(68),i(684),i(685),i(686),i(687),i(313),i(314)},function(t,e,i){function n(t,e,i){var n=[1/0,-(1/0)];return h(i,function(t){var i=t.getData();i&&h(i.mapDimension(e,!0),function(t){var e=i.getApproximateExtent(t);e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])})}),n[1]<n[0]&&(n=[NaN,NaN]),r(t,n),n}function r(t,e){var i=t.getAxisModel(),n=i.getMin(!0),r="category"===i.get("type"),a=r&&i.getCategories().length;null!=n&&"dataMin"!==n&&"function"!=typeof n?e[0]=n:r&&(e[0]=a>0?0:NaN);var o=i.getMax(!0);return null!=o&&"dataMax"!==o&&"function"!=typeof o?e[1]=o:r&&(e[1]=a>0?a-1:NaN),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function a(t,e){var i=t.getAxisModel(),n=t._percentWindow,r=t._valueWindow;if(n){var a=l.getPixelPrecision(r,[0,500]);a=Math.min(a,20);var o=e||0===n[0]&&100===n[1];i.setRange(o?null:+r[0].toFixed(a),o?null:+r[1].toFixed(a))}}function o(t){var e=t._minMaxSpan={},i=t._dataZoomModel;h(["min","max"],function(n){e[n+"Span"]=i.get(n+"Span");var r=i.get(n+"ValueSpan");if(null!=r&&(e[n+"ValueSpan"]=r,r=t.getAxisModel().axis.scale.parse(r),null!=r)){var a=t._dataExtent;e[n+"Span"]=l.linearMap(a[0]+r,a,[0,100],!0)}})}var s=i(0),l=i(4),u=i(109),h=s.each,c=l.asc,d=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};d.prototype={constructor:d,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(i){if(u.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,r=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(i)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this.ecModel,r=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle");var o;return n.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},getMinMaxSpan:function(){return s.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,i=this.getAxisModel(),n=i.axis.scale,r=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[t.start,t.end],s=[];return h(["startValue","endValue"],function(e){s.push(null!=t[e]?n.parse(t[e]):null)}),h([0,1],function(t){var i=s[t],u=o[t];"percent"===r[t]?(null==u&&(u=a[t]),i=n.parse(l.linearMap(u,a,e,!0))):u=l.linearMap(i,e,a,!0),s[t]=i,o[t]=u}),{valueWindow:c(s),percentWindow:c(o)}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=n(this,this._dimName,e);var i=this.calculateDataWindow(t.option);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,o(this),a(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,a(this,!0))},filterData:function(t,e){function i(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;"none"!==a&&h(r,function(t){var e=t.getData(),r=e.mapDimension(n,!0);"weakFilter"===a?e.filterSelf(function(t){for(var i,n,a,s=0;s<r.length;s++){var l=e.get(r[s],t),u=!isNaN(l),h=l<o[0],c=l>o[1];if(u&&!h&&!c)return!0;u&&(a=!0),h&&(i=!0),c&&(n=!0)}return a&&i&&n}):h(r,function(n){if("empty"===a)t.setData(e.map(n,function(t){return i(t)?t:NaN}));else{var r={};r[n]=o,e.selectRange(r)}}),h(r,function(t){e.setApproximateExtent(o,t)})})}}};var p=d;t.exports=p},function(t,e,i){var n=i(67),r=n.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),a=r;t.exports=a},function(t,e,i){function n(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function r(t){return"vertical"===t?"ns-resize":"ew-resize"}var a=i(0),o=i(27),s=i(3),l=i(38),u=i(68),h=i(4),c=i(8),d=i(65),p=s.Rect,f=h.linearMap,g=h.asc,m=a.bind,v=a.each,y=7,_=1,b=30,x="horizontal",w="vertical",M=5,S=["line","bar","candlestick","scatter"],k=u.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){return k.superApply(this,"render",arguments),l.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),this.dataZoomModel.get("show")===!1?void this.group.removeAll():(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),void this._updateView())},remove:function(){k.superApply(this,"remove",arguments),l.clear(this,"_dispatchZoomAction")},dispose:function(){k.superApply(this,"dispose",arguments),l.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new s.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,i=this._findCoordRect(),n={width:e.getWidth(),height:e.getHeight()},r=this._orient===x?{right:n.width-i.x-i.width,top:n.height-b-y,width:i.width,height:b}:{right:y,top:i.y,width:b,height:i.height},o=c.getLayoutParams(t.option);a.each(["right","top","width","height"],function(t){"ph"===o[t]&&(o[t]=r[t])});var s=c.getLayoutRect(o,n,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===w&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==x||r?i===x&&r?{scale:o?[-1,1]:[-1,-1]}:i!==w||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t.getBoundingRect([a]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.barGroup;i.add(new p({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),i.add(new p({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:a.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t.series,n=i.getRawData(),r=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=r){var o=n.getDataExtent(r),l=.3*(o[1]-o[0]);o=[o[0]-l,o[1]+l];var u,h=[0,e[1]],c=[0,e[0]],d=[[e[0],0],[0,0]],p=[],g=c[1]/(n.count()-1),m=0,v=Math.round(n.count()/e[0]);n.each([r],function(t,e){if(v>0&&e%v)return void(m+=g);var i=null==t||isNaN(t)||""===t,n=i?0:f(t,o,h,!0);i&&!u&&e?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!i&&u&&(d.push([m,0]),p.push([m,0])),d.push([m,n]),p.push([m,n]),m+=g,u=i});var y=this.dataZoomModel;this._displayables.barGroup.add(new s.Polygon({shape:{points:d},style:a.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new s.Polyline({shape:{points:p},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(e!==!1){var i,r=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o.name,s).getTargetSeriesModels();a.each(l,function(t){if(!(i||e!==!0&&a.indexOf(S,t.get("type"))<0)){var l,u=r.getComponent(o.axis,s).axis,h=n(o.name),c=t.coordinateSystem;null!=h&&c.getOtherAxis&&(l=c.getOtherAxis(u).inverse),h=t.getData().mapDimension(h),i={thisAxis:u,series:t,thisDim:o.name,otherDim:h,otherAxisInverse:l}}},this)},this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,a=this._size,l=this.dataZoomModel;n.add(t.filler=new p({draggable:!0,cursor:r(this._orient),drift:m(this._onDragMove,this,"all"),onmousemove:function(t){o.stop(t.event)},ondragstart:m(this._showDataInfo,this,!0),ondragend:m(this._onDragEnd,this),onmouseover:m(this._showDataInfo,this,!0),onmouseout:m(this._showDataInfo,this,!1),style:{fill:l.get("fillerColor"),textPosition:"inside"}})),n.add(new p(s.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:_,fill:"rgba(0,0,0,0)"}}))),v([0,1],function(t){var a=s.createIcon(l.get("handleIcon"),{cursor:r(this._orient),draggable:!0,drift:m(this._onDragMove,this,t),onmousemove:function(t){o.stop(t.event)},ondragend:m(this._onDragEnd,this),onmouseover:m(this._showDataInfo,this,!0),onmouseout:m(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),u=a.getBoundingRect();this._handleHeight=h.parsePercent(l.get("handleSize"),this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,a.setStyle(l.getModel("handleStyle").getItemStyle());var c=l.get("handleColor");null!=c&&(a.style.fill=c),n.add(e[t]=a);var d=l.textStyleModel;this.group.add(i[t]=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:d.getTextColor(),textFont:d.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[f(t[0],[0,100],e,!0),f(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),a=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];d(e,n,r,i.get("zoomLock")?"all":t,null!=a.minSpan?f(a.minSpan,o,r,!0):null,null!=a.maxSpan?f(a.maxSpan,o,r,!0):null);var s=this._range,l=this._range=g([f(n[0],r,o,!0),f(n[1],r,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=g(i.slice()),r=this._size;v([0,1],function(t){var n=e.handles[t],a=this._handleHeight;n.attr({scale:[a/2,a/2],position:[i[t],r[1]/2-a/2]})},this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=s.getTransform(n.handles[t].parent,this.group),i=s.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+M,u=s.applyTransform([d[t]+(0===t?-l:l),this._size[1]/2],e);r[t].setStyle({x:u[0],y:u[1],textVerticalAlign:a===x?"middle":i,textAlign:a===x?i:"center",text:o[t]})}var i=this.dataZoomModel,n=this._displayables,r=n.handleLabels,a=this._orient,o=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,h=this._range,c=t?l.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:l.getDataValueWindow();o=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var d=g(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),r=i.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return a.isFunction(n)?n(t,o):a.isString(n)?n.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._displayables.barGroup.getLocalTransform(),r=s.applyTransform([e,i],n,!0),a=this._updateInterval(t,r[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),a&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,a=this._updateInterval("all",i[0]-r);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(v(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}}),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}}),D=k;t.exports=D},function(t,e,i){var n=i(67),r=n.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}});t.exports=r},function(t,e,i){var n=i(0),r=i(68),a=i(65),o=i(688),s=n.bind,l=r.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,i,r){l.superApply(this,"render",arguments),this._range=t.getPercentRange(),n.each(this.getTargetCoordInfo(),function(e,r){var a=n.map(e,function(t){return o.generateCoordId(t.model)});n.each(e,function(e){var n=e.model,l=t.option;o.register(i,{coordId:o.generateCoordId(n),allCoordIds:a,containsPoint:function(t,e,i){return n.coordinateSystem.containPoint([e,i])},dataZoomId:t.id,throttleRate:t.get("throttle",!0),panGetRange:s(this._onPan,this,e,r),zoomGetRange:s(this._onZoom,this,e,r),zoomLock:l.zoomLock,disabled:l.disabled,roamControllerOpt:{zoomOnMouseWheel:l.zoomOnMouseWheel,moveOnMouseMove:l.moveOnMouseMove,preventDefaultMouseMove:l.preventDefaultMouseMove}})},this)},this)},dispose:function(){o.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null},_onPan:function(t,e,i,n,r,o,s,l,h){var c=this._range,d=c.slice(),p=t.axisModels[0];if(p){var f=u[e]([o,s],[l,h],p,i,t),g=f.signal*(d[1]-d[0])*f.pixel/f.pixelLength;return a(g,d,[0,100],"all"),this._range=d,c[0]!==d[0]||c[1]!==d[1]?d:void 0}},_onZoom:function(t,e,i,n,r,o){var s=this._range,l=s.slice(),h=t.axisModels[0];if(h){var c=u[e](null,[r,o],h,i,t),d=(c.signal>0?c.pixelStart+c.pixelLength-c.pixel:c.pixel-c.pixelStart)/c.pixelLength*(l[1]-l[0])+l[0];n=Math.max(1/n,0),l[0]=(l[0]-d)*n+d,l[1]=(l[1]-d)*n+d;var p=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return a(0,l,[0,100],0,p.minSpan,p.maxSpan),this._range=l,s[0]!==l[0]||s[1]!==l[1]?l:void 0}}}),u={grid:function(t,e,i,n,r){var a=i.axis,o={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,i,n,r){var a=i.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,i,n,r){var a=i.axis,o=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},h=l;t.exports=h},function(t,e,i){function n(t,e){var i=o(t),n=e.dataZoomId,r=e.coordId;f.each(i,function(t,i){var a=t.dataZoomInfos;a[n]&&f.indexOf(e.allCoordIds,r)<0&&(delete a[n],t.count--)}),l(i);var a=i[r];a||(a=i[r]={coordId:r,dataZoomInfos:{},count:0},a.controller=s(t,a),a.dispatchAction=f.curry(d,t)),!a.dataZoomInfos[n]&&a.count++,a.dataZoomInfos[n]=e;var u=p(a.dataZoomInfos);a.controller.enable(u.controlType,u.opt),a.controller.setPointerChecker(e.containsPoint),m.createOrUpdate(a,"dispatchAction",e.throttleRate,"fixRate")}function r(t,e){var i=o(t);f.each(i,function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)}),l(i)}function a(t){return t.type+"\0_"+t.id}function o(t){var e=t.getZr();return e[y]||(e[y]={})}function s(t,e){var i=new g(t.getZr());return i.on("pan",v(u,e)),i.on("zoom",v(h,e)),i}function l(t){f.each(t,function(e,i){e.count||(e.controller.dispose(),delete t[i])})}function u(t,e,i,n,r,a,o){c(t,function(s){return s.panGetRange(t.controller,e,i,n,r,a,o)})}function h(t,e,i,n){c(t,function(r){return r.zoomGetRange(t.controller,e,i,n)})}function c(t,e){var i=[];f.each(t.dataZoomInfos,function(t){var n=e(t);!t.disabled&&n&&i.push({dataZoomId:t.dataZoomId,start:n[0],end:n[1]})}),i.length&&t.dispatchAction(i)}function d(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function p(t){var e,i={},n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1};return f.each(t,function(t){var a=!t.disabled&&(!t.zoomLock||"move");r[n+a]>r[n+e]&&(e=a),f.extend(i,t.roamControllerOpt)}),{controlType:e,opt:i}}var f=i(0),g=i(88),m=i(38),v=f.curry,y="\0_ec_dataZoom_roams";e.register=n,e.unregister=r,e.generateCoordId=a},function(t,e,i){i(690),i(693)},function(t,e,i){var n=i(2),r=i(315);i(316),i(317),i(691),i(692),i(322),n.registerPreprocessor(r)},function(t,e,i){function n(t,e,i){if(i[0]===i[1])return i.slice();for(var n=200,r=(i[1]-i[0])/n,a=i[0],o=[],s=0;s<=n&&a<i[1];s++)o.push(a),a+=r;return o.push(i[1]),o}var r=i(0),a=i(318),o=i(4),s=[20,140],l=a.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){l.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){l.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=s[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=s[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):r.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){a.prototype.completeVisualOption.apply(this,arguments),r.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=o.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this.option.range,i=this.getExtent();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],r=i.getData();r.each(this.getDataDimension(r),function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getVisualMeta:function(t){function e(e,i){a.push({value:e,color:t(e,i)})}for(var i=n(this,"outOfRange",this.getExtent()),r=n(this,"inRange",this.option.range.slice()),a=[],o=0,s=0,l=r.length,u=i.length;s<u&&(!r.length||i[s]<=r[0]);s++)i[s]<r[o]&&e(i[s],"outOfRange");for(var h=1;o<l;o++,h=0)h&&a.length&&e(r[o],"outOfRange"),e(r[o],"inRange");for(var h=1;s<u;s++)(!r.length||r[r.length-1]<i[s])&&(h&&(a.length&&e(a[a.length-1].value,"outOfRange"),h=0),e(i[s],"outOfRange"));var c=a.length;return{stops:a,outerColors:[c?a[0].color:"transparent",c?a[c-1].color:"transparent"]}}}),u=l;t.exports=u},function(t,e,i){function n(t,e,i,n){return new p.Polygon({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){c.stop(t.event)},ondragend:n})}function r(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function a(t,e,i,n){return t?[[0,-b(e,x(i,0))],[M,0],[0,b(e,x(n-i,0))]]:[[0,0],[5,-5],[5,5]]}function o(t,e,i){var n=w/2,r=t.get("hoverLinkDataSize");return r&&(n=y(r,e,i,!0)/2),n}function s(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function l(t){return"vertical"===t?"ns-resize":"ew-resize"}var u=i(0),h=i(264),c=i(27),d=i(320),p=i(3),f=i(4),g=i(65),m=i(321),v=i(5),y=f.linearMap,_=u.each,b=Math.min,x=Math.max,w=12,M=6,S=d.extend({type:"visualMap.continuous",init:function(){S.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,i){if(e){var n=e[1-i];n=null!=n?n+"":"";var r=this.visualMapModel,a=r.get("textGap"),o=r.itemSize,s=this._shapes.barGroup,l=this._applyTransform([o[0]/2,0===i?-a:o[1]+a],s),u=this._applyTransform(0===i?"bottom":"top",s),h=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new p.Text({style:{x:l[0],y:l[1],textVerticalAlign:"horizontal"===h?"middle":u,textAlign:"horizontal"===h?u:"center",text:n,textFont:c.getFont(),textFill:c.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,i=this._shapes,r=e.itemSize,a=this._orient,o=this._useHandle,s=m.getItemAlign(e,this.api,r),h=i.barGroup=this._createBarGroup(s);h.add(i.outOfRange=n()),h.add(i.inRange=n(null,o?l(this._orient):null,u.bind(this._dragHandle,this,"all",!1),u.bind(this._dragHandle,this,"all",!0)));var c=e.textStyleModel.getTextRect("国"),d=x(c.width,c.height);o&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(h,0,r,d,a,s),this._createHandle(h,1,r,d,a,s)),this._createIndicator(h,r,d,a),t.add(h)},_createHandle:function(t,e,i,a,o){var s=u.bind(this._dragHandle,this,e,!1),h=u.bind(this._dragHandle,this,e,!0),d=n(r(e,a),l(this._orient),s,h);d.position[0]=i[0],t.add(d);var f=this.visualMapModel.textStyleModel,g=new p.Text({draggable:!0,drift:s,onmousemove:function(t){c.stop(t.event)},ondragend:h,style:{x:0,y:0,text:"",textFont:f.getFont(),textFill:f.getTextColor()}});this.group.add(g);var m=["horizontal"===o?a/2:1.5*a,"horizontal"===o?0===e?-(1.5*a):1.5*a:0===e?-a/2:a/2],v=this._shapes;v.handleThumbs[e]=d, v.handleLabelPoints[e]=m,v.handleLabels[e]=g},_createIndicator:function(t,e,i,r){var a=n([[0,0]],"move");a.position[0]=e[0],a.attr({invisible:!0,silent:!0}),t.add(a);var o=this.visualMapModel.textStyleModel,s=new p.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:o.getFont(),textFill:o.getTextColor()}});this.group.add(s);var l=["horizontal"===r?i/2:M+3,0],u=this._shapes;u.indicator=a,u.indicatorLabel=s,u.indicatorLabelPoint=l},_dragHandle:function(t,e,i,n){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([i,n],this._shapes.barGroup,!0);this._updateInterval(t,r[1]),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():s(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[y(e[0],i,n,!0),y(e[1],i,n,!0)]},_updateInterval:function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds,r=[0,i.itemSize[1]];g(e,n,r,t,0);var a=i.getExtent();this._dataInterval=[y(n[0],r,a,!0),y(n[1],r,a,!0)]},_updateView:function(t){var e=this.visualMapModel,i=e.getExtent(),n=this._shapes,r=[0,e.itemSize[1]],a=t?r:this._handleEnds,o=this._createBarVisual(this._dataInterval,i,a,"inRange"),s=this._createBarVisual(i,i,r,"outOfRange");n.inRange.setStyle({fill:o.barColor,opacity:o.opacity}).setShape("points",o.barPoints),n.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(a,o)},_createBarVisual:function(t,e,i,n){var r={forceState:n,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,r),o=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(i,o);return{barColor:new h(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},_makeColorGradient:function(t,e){var i=100,n=[],r=(t[1]-t[0])/i;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var a=1;a<i;a++){var o=t[0]+r*a;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:a/i})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new p.Group("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,r=i.handleThumbs,a=i.handleLabels;_([0,1],function(o){var s=r[o];s.setStyle("fill",e.handlesColor[o]),s.position[1]=t[o];var l=p.applyTransform(i.handleLabelPoints[o],p.getTransform(s,this.group));a[o].setStyle({x:l[0],y:l[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})},this)}},_showIndicator:function(t,e,i,n){var r=this.visualMapModel,o=r.getExtent(),s=r.itemSize,l=[0,s[1]],u=y(t,o,l,!0),h=this._shapes,c=h.indicator;if(c){c.position[1]=u,c.attr("invisible",!1),c.setShape("points",a(!!i,n,u,s[1]));var d={convertOpacityToAlpha:!0},f=this.getControllerVisual(t,"color",d);c.setStyle("fill",f);var g=p.applyTransform(h.indicatorLabelPoint,p.getTransform(c,this.group)),m=h.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",h.barGroup),_=this._orient;m.setStyle({text:(i?i:"")+r.formatValueText(e),textVerticalAlign:"horizontal"===_?v:"middle",textAlign:"horizontal"===_?"center":v,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=b(x(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var r=[0,n[1]],a=i.getExtent();t=b(x(r[0],t),r[1]);var l=o(i,a,r),u=[t-l,t+l],h=y(t,r,a,!0),c=[y(u[0],r,a,!0),y(u[1],r,a,!0)];u[0]<r[0]&&(c[0]=-(1/0)),u[1]>r[1]&&(c[1]=1/0),e&&(c[0]===-(1/0)?this._showIndicator(h,c[1],"< ",l):c[1]===1/0?this._showIndicator(h,c[0],"> ",l):this._showIndicator(h,h,"≈ ",l));var d=this._hoverLinkDataIndices,p=[];(e||s(i))&&(p=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var f=v.compressBatches(d,p);this._dispatchHighDown("downplay",m.convertDataIndex(f[0])),this._dispatchHighDown("highlight",m.convertDataIndex(f[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var r=n.getData(e.dataType),a=r.get(i.getDataDimension(r),e.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",m.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,n){var r=p.getTransform(e,n?null:this.group);return p[u.isArray(t)?"applyTransform":"transformDirection"](t,r,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}}),k=S;t.exports=k},function(t,e,i){var n=i(2),r=i(315);i(316),i(317),i(694),i(695),i(322),n.registerPreprocessor(r)},function(t,e,i){function n(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var r=i(7),a=(r.__DEV__,i(0)),o=i(318),s=i(45),l=i(319),u=i(4),h=u.reformIntervals,c=o.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){c.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();d[this._mode].call(this),this._resetSelected(t,e);var n=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=a.clone(n)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=a.map(this._pieceList,function(t){var t=a.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){function t(t,e,i){return t&&t[e]&&(a.isObject(t[e])?t[e].hasOwnProperty(i):t[e]===i)}var e=this.option,i={},n=s.listVisualTypes(),r=this.isCategory();a.each(e.pieces,function(t){a.each(n,function(e){t.hasOwnProperty(e)&&(i[e]=1)})}),a.each(i,function(i,n){var o=0;a.each(this.stateList,function(i){o|=t(e,i,n)||t(e.target,i,n)},this),!o&&a.each(this.stateList,function(t){(e[t]||(e[t]={}))[n]=l.get(n,"inRange"===t?"active":"inactive",r)})},this),o.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,r=(e?i:t).selected||{};if(i.selected=r,a.each(n,function(t,e){var i=this.getSelectedMapKey(t);r.hasOwnProperty(i)||(r[i]=!0)},this),"single"===i.selectedMode){var o=!1;a.each(n,function(t,e){var i=this.getSelectedMapKey(t);r[i]&&(o?r[i]=!1:o=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=a.clone(t)},getValueState:function(t){var e=s.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],r=i.getData();r.each(this.getDataDimension(r),function(e,i){var r=s.findPieceIndex(e,this._pieceList);r===t&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-(1/0)&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){function e(e,a){var o=r.getRepresentValue({interval:e});a||(a=r.getValueState(o));var s=t(o,a);e[0]===-(1/0)?n[0]=s:e[1]===1/0?n[1]=s:i.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var i=[],n=[],r=this,o=this._pieceList.slice();if(o.length){var s=o[0].interval[0];s!==-(1/0)&&o.unshift({interval:[-(1/0),s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}else o.push({interval:[-(1/0),1/0]});var l=-(1/0);return a.each(o,function(t){var i=t.interval;i&&(i[0]>l&&e([l,i[0]],"outOfRange"),e(i.slice()),l=i[1])},this),{stops:i,outerColors:n}}}}),d={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(n[1]-n[0])/r;+o.toFixed(i)!==o&&i<5;)i++;t.precision=i,o=+o.toFixed(i);var s=0;t.minOpen&&e.push({index:s++,interval:[-(1/0),n[0]],close:[0,0]});for(var l=n[0],u=s+r;s<u;l+=o){var c=s===r-1?n[1]:l+o;e.push({index:s++,interval:[l,c],close:[1,1]})}t.maxOpen&&e.push({index:s++,interval:[n[1],1/0],close:[0,0]}),h(e),a.each(e,function(t){t.text=this.formatValueText(t.interval)},this)},categories:function(){var t=this.option;a.each(t.categories,function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),n(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;a.each(t.pieces,function(t,i){a.isObject(t)||(t={value:t});var n={text:"",index:i};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){var r=n.value=t.value;n.interval=[r,r],n.close=[1,1]}else{for(var o=n.interval=[],l=n.close=[0,0],u=[1,0,1],h=[-(1/0),1/0],c=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],f=0;f<3&&null==o[d];f++)o[d]=t[p[f]],l[d]=u[f],c[d]=2===f;null==o[d]&&(o[d]=h[d])}c[0]&&o[1]===1/0&&(l[0]=0),c[1]&&o[0]===-(1/0)&&(l[1]=0),o[0]===o[1]&&l[0]&&l[1]&&(n.value=o[0])}n.visual=s.retrieveVisuals(t),e.push(n)},this),n(t,e),h(e),a.each(e,function(t){var e=t.close,i=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)},this)}},p=c;t.exports=p},function(t,e,i){var n=i(0),r=i(320),a=i(3),o=i(21),s=o.createSymbol,l=i(8),u=i(321),h=r.extend({type:"visualMap.piecewise",doRender:function(){function t(t){var o=t.piece,l=new a.Group;l.onclick=n.bind(this._onItemClick,this,o),this._enableHoverLink(l,t.indexInModelPieceList);var d=i.getRepresentValue(o);if(this._createItemSymbol(l,d,[0,0,c[0],c[1]]),f){var p=this.visualMapModel.getValueState(d);l.add(new a.Text({style:{x:"right"===h?-r:c[0]+r,y:c[1]/2,text:o.text,textVerticalAlign:"middle",textAlign:h,textFont:s,textFill:u,opacity:"outOfRange"===p?.5:1}}))}e.add(l)}var e=this.group;e.removeAll();var i=this.visualMapModel,r=i.get("textGap"),o=i.textStyleModel,s=o.getFont(),u=o.getTextColor(),h=this._getItemAlign(),c=i.itemSize,d=this._getViewData(),p=d.endsText,f=n.retrieve(i.get("showLabel",!0),!p);p&&this._renderEndsText(e,p[0],c,f,h),n.each(d.viewPieceList,t,this),p&&this._renderEndsText(e,p[1],c,f,h),l.box(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:u.convertDataIndex(i.findTargetDataIndices(e))})}t.on("mouseover",n.bind(i,this,"highlight")).on("mouseout",n.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return u.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,r){if(e){var o=new a.Group,s=this.visualMapModel.textStyleModel;o.add(new a.Text({style:{x:n?"right"===r?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?r:"center",text:e,textFont:s.getFont(),textFill:s.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=n.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get("text"),r=t.get("orient"),a=t.get("inverse");return("horizontal"===r?a:!a)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(s(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,r=n.clone(i.selected),a=e.getSelectedMapKey(t);"single"===i.selectedMode?(r[a]=!0,n.each(r,function(t,e){r[e]=e===a})):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),c=h;t.exports=c},function(t,e,i){var n=i(2);i(697),i(698),n.registerPreprocessor(function(t){t.markPoint=t.markPoint||{}})},function(t,e,i){var n=i(110),r=n.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});t.exports=r},function(t,e,i){function n(t,e,i){var n=e.coordinateSystem;t.each(function(r){var a,o=t.getItemModel(r),l=s.parsePercent(o.get("x"),i.getWidth()),u=s.parsePercent(o.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(n){var h=t.get(n.dimensions[0],r),c=t.get(n.dimensions[1],r);a=n.dataToPoint([h,c])}}else a=[l,u];isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u),t.setItemLayout(r,a)})}function r(t,e,i){var n;n=t?a.map(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return a.defaults({name:t},i)}):[{name:"value",type:"float"}];var r=new l(n,i),o=a.map(i.get("data"),a.curry(u.dataTransform,e));return t&&(o=a.filter(o,a.curry(u.dataFilter,t))),r.initData(o,null,t?u.dimValueGetter:function(t){return t.value}),r}var a=i(0),o=i(61),s=i(4),l=i(20),u=i(111),h=i(112),c=h.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markPointModel;e&&(n(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,e,i,a){var s=t.coordinateSystem,l=t.id,u=t.getData(),h=this.markerGroupMap,c=h.get(l)||h.set(l,new o),d=r(s,t,e);e.setData(d),n(e.getData(),t,a),d.each(function(t){var i=d.getItemModel(t),n=i.getShallow("symbolSize");"function"==typeof n&&(n=n(e.getRawValue(t),e.getDataParams(t))),d.setItemVisual(t,{symbolSize:n,color:i.get("itemStyle.color")||u.getVisual("color"),symbol:i.getShallow("symbol")})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),c.__keep=!0,c.group.silent=e.get("silent")||t.get("silent")}});t.exports=c},function(t,e,i){var n=i(2);i(700),i(701),n.registerPreprocessor(function(t){t.markLine=t.markLine||{}})},function(t,e,i){var n=i(110),r=n.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});t.exports=r},function(t,e,i){function n(t){return!isNaN(t)&&!isFinite(t)}function r(t,e,i,r){var a=1-t,o=r.dimensions[t];return n(e[a])&&n(i[a])&&e[t]===i[t]&&r.getAxis(o).containData(e[t])}function a(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(r(1,i,n,t)||r(0,i,n,t)))return!0}return c.dataFilter(t,e[0])&&c.dataFilter(t,e[1])}function o(t,e,i,r,a){var o,s=r.coordinateSystem,l=t.getItemModel(e),u=h.parsePercent(l.get("x"),a.getWidth()),c=h.parsePercent(l.get("y"),a.getHeight());if(isNaN(u)||isNaN(c)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,p=t.get(d[0],e),f=t.get(d[1],e);o=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y"),d=s.dimensions;n(t.get(d[0],e))?o[0]=g.toGlobalCoord(g.getExtent()[i?0:1]):n(t.get(d[1],e))&&(o[1]=m.toGlobalCoord(m.getExtent()[i?0:1]))}isNaN(u)||(o[0]=u),isNaN(c)||(o[1]=c)}else o=[u,c];t.setItemLayout(e,o)}function s(t,e,i){var n;n=t?l.map(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return l.defaults({name:t},i)}):[{name:"value",type:"float"}];var r=new u(n,i),o=new u(n,i),s=new u([],i),h=l.map(i.get("data"),l.curry(f,e,t,i));t&&(h=l.filter(h,l.curry(a,t)));var d=t?c.dimValueGetter:function(t){return t.value};return r.initData(l.map(h,function(t){return t[0]}),null,d),o.initData(l.map(h,function(t){return t[1]}),null,d),s.initData(l.map(h,function(t){return t[2]})),s.hasItemOption=!0,{from:r,to:o,line:s}}var l=i(0),u=i(20),h=i(4),c=i(111),d=i(104),p=i(112),f=function(t,e,i,n){var r=t.getData(),a=n.type;if(!l.isArray(n)&&("min"===a||"max"===a||"average"===a||"median"===a||null!=n.xAxis||null!=n.yAxis)){var o,s,u;if(null!=n.yAxis||null!=n.xAxis)s=null!=n.yAxis?"y":"x",o=e.getAxis(s),u=l.retrieve(n.yAxis,n.xAxis);else{var h=c.getAxisInfo(n,r,e,t);s=h.valueDataDim,o=h.valueAxis,u=c.numCalculate(r,s,a)}var d="x"===s?0:1,p=1-d,f=l.clone(n),g={};f.type=null,f.coord=[],g.coord=[],f.coord[p]=-(1/0),g.coord[p]=1/0;var m=i.get("precision");m>=0&&"number"==typeof u&&(u=+u.toFixed(Math.min(m,20))),f.coord[d]=g.coord[d]=u,n=[f,g,{type:a,valueIndex:n.valueIndex,value:u}]}return n=[c.dataTransform(t,n[0]),c.dataTransform(t,n[1]),l.extend({},n[2])],n[2].type=n[2].type||"",l.merge(n[2],n[0]),l.merge(n[2],n[1]),n},g=p.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markLineModel;if(e){var n=e.getData(),r=e.__from,a=e.__to;r.each(function(e){o(r,e,!0,t,i),o(a,e,!1,t,i)}),n.each(function(t){n.setItemLayout(t,[r.getItemLayout(t),a.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,i,n){function r(e,i,r){var a=e.getItemModel(i);o(e,i,r,t,n),e.setItemVisual(i,{symbolSize:a.get("symbolSize")||_[r?0:1],symbol:a.get("symbol",!0)||y[r?0:1],color:a.get("itemStyle.color")||h.getVisual("color")})}var a=t.coordinateSystem,u=t.id,h=t.getData(),c=this.markerGroupMap,p=c.get(u)||c.set(u,new d);this.group.add(p.group);var f=s(a,t,e),g=f.from,m=f.to,v=f.line;e.__from=g,e.__to=m,e.setData(v);var y=e.get("symbol"),_=e.get("symbolSize");l.isArray(y)||(y=[y,y]),"number"==typeof _&&(_=[_,_]),f.from.each(function(t){r(g,t,!0),r(m,t,!1)}),v.each(function(t){var e=v.getItemModel(t).get("lineStyle.color");v.setItemVisual(t,{color:e||g.getItemVisual(t,"color")}),v.setItemLayout(t,[g.getItemLayout(t),m.getItemLayout(t)]),v.setItemVisual(t,{fromSymbolSize:g.getItemVisual(t,"symbolSize"),fromSymbol:g.getItemVisual(t,"symbol"),toSymbolSize:m.getItemVisual(t,"symbolSize"),toSymbol:m.getItemVisual(t,"symbol")})}),p.updateData(v),f.line.eachItemGraphicEl(function(t,i){t.traverse(function(t){t.dataModel=e})}),p.__keep=!0,p.group.silent=e.get("silent")||t.get("silent")}});t.exports=g},function(t,e,i){var n=i(2);i(703),i(704),n.registerPreprocessor(function(t){t.markArea=t.markArea||{}})},function(t,e,i){var n=i(110),r=n.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});t.exports=r},function(t,e,i){function n(t){return!isNaN(t)&&!isFinite(t)}function r(t,e,i,r){var a=1-t;return n(e[a])&&n(i[a])}function a(t,e){var i=e.coord[0],n=e.coord[1];return!("cartesian2d"!==t.type||!i||!n||!r(1,i,n,t)&&!r(0,i,n,t))||(p.dataFilter(t,{coord:i,x:e.x0,y:e.y0})||p.dataFilter(t,{coord:n,x:e.x1,y:e.y1}))}function o(t,e,i,r,a){var o,s=r.coordinateSystem,l=t.getItemModel(e),u=c.parsePercent(l.get(i[0]),a.getWidth()),h=c.parsePercent(l.get(i[1]),a.getHeight());if(isNaN(u)||isNaN(h)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(i,e));else{var d=t.get(i[0],e),p=t.get(i[1],e),f=[d,p];s.clampData&&s.clampData(f,f),o=s.dataToPoint(f,!0)}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y"),d=t.get(i[0],e),p=t.get(i[1],e);n(d)?o[0]=g.toGlobalCoord(g.getExtent()["x0"===i[0]?0:1]):n(p)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===i[1]?0:1]))}isNaN(u)||(o[0]=u),isNaN(h)||(o[1]=h)}else o=[u,h];return o}function s(t,e,i){var n,r,o=["x0","y0","x1","y1"];t?(n=l.map(t&&t.dimensions,function(t){var i=e.getData(),n=i.getDimensionInfo(i.mapDimension(t))||{};return l.defaults({name:t},n)}),r=new h(l.map(o,function(t,e){return{name:t,type:n[e%2].type}}),i)):(n=[{name:"value",type:"float"}],r=new h(n,i));var s=l.map(i.get("data"),l.curry(g,e,t,i));t&&(s=l.filter(s,l.curry(a,t)));var u=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return r.initData(s,null,u),r.hasItemOption=!0,r}var l=i(0),u=i(26),h=i(20),c=i(4),d=i(3),p=i(111),f=i(112),g=function(t,e,i,n){var r=p.dataTransform(t,n[0]),a=p.dataTransform(t,n[1]),o=l.retrieve,s=r.coord,u=a.coord;s[0]=o(s[0],-(1/0)),s[1]=o(s[1],-(1/0)),u[0]=o(u[0],1/0),u[1]=o(u[1],1/0);var h=l.mergeAll([{},r,a]);return h.coord=[r.coord,a.coord],h.x0=r.x,h.y0=r.y,h.x1=a.x,h.y1=a.y,h},m=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];f.extend({type:"markArea",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var n=e.getData();n.each(function(e){var r=l.map(m,function(r){return o(n,e,r,t,i)});n.setItemLayout(e,r);var a=n.getItemGraphicEl(e);a.setShape("points",r)})}},this)},renderSeries:function(t,e,i,n){var r=t.coordinateSystem,a=t.id,h=t.getData(),c=this.markerGroupMap,p=c.get(a)||c.set(a,{group:new d.Group});this.group.add(p.group),p.__keep=!0;var f=s(r,t,e);e.setData(f),f.each(function(e){f.setItemLayout(e,l.map(m,function(i){return o(f,e,i,t,n)})),f.setItemVisual(e,{color:h.getVisual("color")})}),f.diff(p.__data).add(function(t){var e=new d.Polygon({shape:{points:f.getItemLayout(t)}});f.setItemGraphicEl(t,e),p.group.add(e)}).update(function(t,i){var n=p.__data.getItemGraphicEl(i);d.updateProps(n,{shape:{points:f.getItemLayout(t)}},e,t),p.group.add(n),f.setItemGraphicEl(t,n)}).remove(function(t){var e=p.__data.getItemGraphicEl(t);p.group.remove(e)}).execute(),f.eachItemGraphicEl(function(t,i){var n=f.getItemModel(i),r=n.getModel("label"),a=n.getModel("emphasis.label"),o=f.getItemVisual(i,"color");t.useStyle(l.defaults(n.getModel("itemStyle").getItemStyle(),{fill:u.modifyAlpha(o,.4),stroke:o})),t.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),d.setLabelStyle(t.style,t.hoverStyle,r,a,{labelFetcher:e,labelDataIndex:i,defaultText:f.getName(i)||"",isRectText:!0,autoColor:o}),d.setHoverStyle(t,{}),t.dataModel=e}),p.__data=f,p.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,i){var n=i(2),r=i(706);i(707),i(708),i(709),i(711),n.registerPreprocessor(r)},function(t,e,i){function n(t){var e=t&&t.timeline;s.isArray(e)||(e=e?[e]:[]),s.each(e,function(t){t&&r(t)})}function r(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),a(t),o(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});o(n,"position")||(n.position=t.controlPosition),"none"!==n.position||o(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}s.each(t.data||[],function(t){s.isObject(t)&&!s.isArray(t)&&(!o(t,"value")&&o(t,"name")&&(t.value=t.name),a(t))})}function a(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},r=n.normal||(n.normal={}),a={normal:1,emphasis:1};s.each(n,function(t,e){a[e]||o(r,e)||(r[e]=t)}),i.label&&!o(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function o(t,e){return t.hasOwnProperty(e)}var s=i(0);t.exports=n},function(t,e,i){var n=i(16);n.registerSubTypeDefaulter("timeline",function(){return"slider"})},function(t,e,i){var n=i(2),r=i(0);n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),r.defaults({currentIndex:i.option.currentIndex},t)}),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)})},function(t,e,i){var n=i(0),r=i(710),a=i(97),o=r.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});n.mixin(o,a);var s=o;t.exports=s},function(t,e,i){var n=i(0),r=i(16),a=i(20),o=i(5),s=r.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,r=this._names=[];if("category"===i){var s=[];n.each(e,function(t,e){var i,a=o.getDataItemValue(t);n.isObject(t)?(i=n.clone(t),i.value=e):i=e,s.push(i),n.isString(a)||null!=a&&!isNaN(a)||(a=""),r.push(a+"")}),e=s}var l={category:"ordinal",time:"time"}[i]||"number",u=this._data=new a([{name:"value",type:l}],this);u.initData(e,r)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;t.exports=l},function(t,e,i){function n(t,e){return c.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function r(t,e,i,n){var r=h.makePath(t.get(e).replace(/^path:\/\//,""),s.clone(n||{}),new l(i[0],i[1],i[2],i[3]),"center");return r}function a(t,e,i,n,r,a){var o=e.get("color");if(r)r.setColor(o),i.add(r),a&&a.onUpdate(r);else{var l=t.get("symbol");r=g(l,-1,-1,2,2,o),r.setStyle("strokeNoScale",!0),i.add(r),a&&a.onCreate(r)}var u=e.getItemStyle(["color","symbol","symbolSize"]);r.setStyle(u),n=s.merge({rectHover:!0,z2:100},n,!0);var h=t.get("symbolSize");h=h instanceof Array?h.slice():[+h,+h],h[0]/=2,h[1]/=2,n.scale=h;var c=t.get("symbolOffset");if(c){var d=n.position=n.position||[0,0];d[0]+=v.parsePercent(c[0],h[0]),d[1]+=v.parsePercent(c[1],h[1])}var p=t.get("symbolRotate");return n.rotation=(p||0)*Math.PI/180||0,r.attr(n),r.updateTransform(),r}function o(t,e,i,n,r){if(!t.dragging){var a=n.getModel("checkpointStyle"),o=i.dataToCoord(n.getData().get(["value"],e));r||!a.get("animation",!0)?t.attr({position:[o,0]}):(t.stopAnimation(!0),t.animateTo({position:[o,0]},a.get("animationDuration",!0),a.get("animationEasing",!0)))}}var s=i(0),l=i(12),u=i(19),h=i(3),c=i(8),d=i(712),p=i(713),f=i(21),g=f.createSymbol,m=i(23),v=i(4),y=i(11),_=y.encodeHTML,b=s.bind,x=s.each,w=Math.PI,M=d.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,i),a=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return _(s.scale.getLabel(t))},x(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](r,a,s,t)},this),this._renderAxisLabel(r,o,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.position"),r=t.get("orient"),a=n(t,e);null==i||"auto"===i?i="horizontal"===r?a.y+a.height/2<e.getHeight()/2?"-":"+":a.x+a.width/2<e.getWidth()/2?"+":"-":isNaN(i)&&(i={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]);var o={horizontal:"center",vertical:i>=0||"+"===i?"left":"right"},s={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},l={horizontal:0,vertical:w/2},u="vertical"===r?a.height:a.width,h=t.getModel("controlStyle"),c=h.get("show",!0),d=c?h.get("itemSize"):0,p=c?h.get("itemGap"):0,f=d+p,g=t.get("label.rotate")||0;g=g*w/180;var m,v,y,_,b=h.get("position",!0),x=c&&h.get("showPlayBtn",!0),M=c&&h.get("showPrevBtn",!0),S=c&&h.get("showNextBtn",!0),k=0,D=u; return"left"===b||"bottom"===b?(x&&(m=[0,0],k+=f),M&&(v=[k,0],k+=f),S&&(y=[D-d,0],D-=f)):(x&&(m=[D-d,0],D-=f),M&&(v=[0,0],k+=f),S&&(y=[D-d,0],D-=f)),_=[k,D],t.get("inverse")&&_.reverse(),{viewRect:a,mainLength:u,orient:r,rotation:l[r],labelRotation:g,labelPosOpt:i,labelAlign:t.get("label.align")||o[r],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||s[r],playPosition:m,prevBtnPosition:v,nextBtnPosition:y,axisExtent:_,controlSize:d,controlGap:p}},_position:function(t,e){function i(t){var e=t.position;t.origin=[d[0][0]-e[0],d[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function r(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}var a=this._mainGroup,o=this._labelGroup,s=t.viewRect;if("vertical"===t.orient){var l=u.create(),h=s.x,c=s.y+s.height;u.translate(l,l,[-h,-c]),u.rotate(l,l,-w/2),u.translate(l,l,[h,c]),s=s.clone(),s.applyTransform(l)}var d=n(s),p=n(a.getBoundingRect()),f=n(o.getBoundingRect()),g=a.position,m=o.position;m[0]=g[0]=d[0][0];var v=t.labelPosOpt;if(isNaN(v)){var y="+"===v?0:1;r(g,p,d,1,y),r(m,f,d,1,1-y)}else{var y=v>=0?0:1;r(g,p,d,1,y),m[1]=g[1]+v}a.attr("position",g),o.attr("position",m),a.rotation=o.rotation=t.rotation,i(a),i(o)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),r=m.createScaleByModel(e,n);r.getTicks=function(){return i.mapArray(["value"],function(t){return t})};var a=i.getDataExtent("value");r.setExtent(a[0],a[1]),r.niceTicks();var o=new p("value",r,t.axisExtent,n);return o.model=e,o},_createGroup:function(t){var e=this["_"+t]=new h.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var r=i.getExtent();n.get("lineStyle.show")&&e.add(new h.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:s.extend({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var r=n.getData(),o=i.scale.getTicks();x(o,function(t){var o=i.dataToCoord(t),s=r.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),c={position:[o,0],onclick:b(this._changeTimeline,this,t)},d=a(s,l,e,c);h.setHoverStyle(d,u.getItemStyle()),s.get("tooltip")?(d.dataIndex=t,d.dataModel=n):d.dataIndex=d.dataModel=null},this)},_renderAxisLabel:function(t,e,i,n){var r=i.getLabelModel();if(r.get("show")){var a=n.getData(),o=i.getViewLabels();x(o,function(n){var r=n.tickValue,o=a.getItemModel(r),s=o.getModel("label"),l=o.getModel("emphasis.label"),u=i.dataToCoord(n.tickValue),c=new h.Text({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:b(this._changeTimeline,this,r),silent:!1});h.setTextStyle(c.style,s,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(c),h.setHoverStyle(c,h.setTextStyle({},l))},this)}},_renderControl:function(t,e,i,n){function a(t,i,a,d){if(t){var p={position:t,origin:[o/2,0],rotation:d?-s:0,rectHover:!0,style:l,onclick:a},f=r(n,i,c,p);e.add(f),h.setHoverStyle(f,u)}}var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel("emphasis.controlStyle").getItemStyle(),c=[0,-o/2,o,o],d=n.getPlayState(),p=n.get("inverse",!0);a(t.nextBtnPosition,"controlStyle.nextIcon",b(this._changeTimeline,this,p?"-":"+")),a(t.prevBtnPosition,"controlStyle.prevIcon",b(this._changeTimeline,this,p?"+":"-")),a(t.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),b(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(t,e,i,n){var r=n.getData(),s=n.getCurrentIndex(),l=r.getItemModel(s).getModel("checkpointStyle"),u=this,h={onCreate:function(t){t.draggable=!0,t.drift=b(u._handlePointerDrag,u),t.ondragend=b(u._handlePointerDragend,u),o(t,s,i,n,!0)},onUpdate:function(t){o(t,s,i,n)}};this._currentPointer=a(l,l,this._mainGroup,{},this._currentPointer,h)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,r=v.asc(n.getExtent().slice());i>r[1]&&(i=r[1]),i<r[0]&&(i=r[0]),this._currentPointer.position[0]=i,this._currentPointer.dirty();var a=this._findNearestTick(i),o=this.model;(e||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},_doPlayStop:function(){function t(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(b(t,this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return h.applyTransform(t,e,!0)},_findNearestTick:function(t){var e,i=this.model.getData(),n=1/0,r=this._axis;return i.each(["value"],function(i,a){var o=r.dataToCoord(i),s=Math.abs(o-t);s<n&&(n=s,e=a)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}});t.exports=M},function(t,e,i){var n=i(79),r=n.extend({type:"timeline"});t.exports=r},function(t,e,i){var n=i(0),r=i(34),a=function(t,e,i,n){r.call(this,t,e,i),this.type=n||"value",this.model=null};a.prototype={constructor:a,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},n.inherits(a,r);var o=a;t.exports=o},function(t,e,i){i(715),i(716),i(717),i(718),i(719),i(720),i(724)},function(t,e,i){var n=i(2),r=i(0),a=i(35),o=n.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){o.superApply(this,"optionUpdated",arguments),r.each(this.option.feature,function(t,e){var i=a.get(e);i&&r.merge(t,i.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}}}),s=o;t.exports=s},function(t,e,i){function n(t){return 0===t.indexOf("my")}var r=i(2),a=i(0),o=i(25),s=i(35),l=i(3),u=i(17),h=i(40),c=i(310),d=r.extendComponentView({type:"toolbox",render:function(t,e,i,r){function d(a,o){var l,h=y[a],c=y[o],d=m[h],f=new u(d,t,t.ecModel);if(h&&!c){if(n(h))l={model:f,onclick:f.option.onclick,featureName:h};else{var g=s.get(h);if(!g)return;l=new g(f,e,i)}v[h]=l}else{if(l=v[c],!l)return;l.model=f,l.ecModel=e,l.api=i}return!h&&c?void(l.dispose&&l.dispose(e,i)):!f.get("show")||l.unusable?void(l.remove&&l.remove(e,i)):(p(f,l,h),f.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},void(l.render&&l.render(f,e,i,r)))}function p(n,r,o){var s=n.getModel("iconStyle"),u=n.getModel("emphasis.iconStyle"),h=r.getIcons?r.getIcons():n.get("icon"),c=n.get("title")||{};if("string"==typeof h){var d=h,p=c;h={},c={},h[o]=d,c[o]=p}var m=n.iconPaths={};a.each(h,function(o,h){var d=l.createIcon(o,{},{x:-g/2,y:-g/2,width:g,height:g});d.setStyle(s.getItemStyle()),d.hoverStyle=u.getItemStyle(),l.setHoverStyle(d),t.get("showTitle")&&(d.__title=c[h],d.on("mouseover",function(){var t=u.getItemStyle();d.setStyle({text:c[h],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})}).on("mouseout",function(){d.setStyle({textFill:null})})),d.trigger(n.get("iconStatus."+h)||"normal"),f.add(d),d.on("click",a.bind(r.onclick,r,e,i,h)),m[h]=d})}var f=this.group;if(f.removeAll(),t.get("show")){var g=+t.get("itemSize"),m=t.get("feature")||{},v=this._features||(this._features={}),y=[];a.each(m,function(t,e){y.push(e)}),new h(this._featureNames||[],y).add(d).update(d).remove(a.curry(d,null)).execute(),this._featureNames=y,c.layout(f,t,i),f.add(c.makeBackground(f.getBoundingRect(),t)),f.eachChild(function(t){var e=t.__title,n=t.hoverStyle;if(n&&e){var r=o.getBoundingRect(e,o.makeFont(n)),a=t.position[0]+f.position[0],s=t.position[1]+f.position[1]+g,l=!1;s+r.height>i.getHeight()&&(n.textPosition="top",l=!0);var u=l?-5-r.height:g+8;a+r.width/2>i.getWidth()?(n.textPosition=["100%",u],n.textAlign="right"):a-r.width/2<0&&(n.textPosition=[0,u],n.textAlign="left")}})}},updateView:function(t,e,i,n){a.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,i,n)})},remove:function(t,e){a.each(this._features,function(i){i.remove&&i.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){a.each(this._features,function(i){i.dispose&&i.dispose(t,e)})}});t.exports=d},function(t,e,i){function n(t){this.model=t}var r=i(15),a=i(39),o=i(35),s=a.toolbox.saveAsImage;n.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:s.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:s.lang.slice()},n.prototype.unusable=!r.canvasSupported;var l=n.prototype;l.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",a=document.createElement("a"),o=i.get("type",!0)||"png";a.download=n+"."+o,a.target="_blank";var s=e.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(a.href=s,"function"!=typeof MouseEvent||r.browser.ie||r.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var l=atob(s.split(",")[1]),u=l.length,h=new Uint8Array(u);u--;)h[u]=l.charCodeAt(u);var c=new Blob([h]);window.navigator.msSaveOrOpenBlob(c,n+"."+o)}else{var d=i.get("lang"),p='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(d&&d[0]||"")+'" /></body>',f=window.open();f.document.write(p)}else{var g=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});a.dispatchEvent(g)}},o.register("saveAsImage",n);var u=n;t.exports=u},function(t,e,i){function n(t){this.model=t}var r=i(2),a=i(0),o=i(39),s=i(35),l=o.toolbox.magicType;n.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:a.clone(l.title),option:{},seriesIndex:{}};var u=n.prototype;u.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return a.each(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var h={line:function(t,e,i,n){if("bar"===t)return a.merge({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(t,e,i,n){if("line"===t)return a.merge({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(t,e,i,n){if("line"===t||"bar"===t)return a.merge({id:e,stack:"__ec_magicType_stack__"},n.get("option.stack")||{},!0)},tiled:function(t,e,i,n){if("line"===t||"bar"===t)return a.merge({id:e,stack:""},n.get("option.tiled")||{},!0)}},c=[["line","bar"],["stack","tiled"]];u.onclick=function(t,e,i){var n=this.model,r=n.get("seriesIndex."+i);if(h[i]){var o={series:[]},s=function(e){var r=e.subType,s=e.id,l=h[i](r,s,e,n);l&&(a.defaults(l,e.option),o.series.push(l));var u=e.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===i||"bar"===i)){var c=u.getAxesByScale("ordinal")[0];if(c){var d=c.dim,p=d+"Axis",f=t.queryComponents({mainType:p,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],g=f.componentIndex;o[p]=o[p]||[];for(var m=0;m<=g;m++)o[p][g]=o[p][g]||{};o[p][g].boundaryGap="bar"===i}}};a.each(c,function(t){a.indexOf(t,i)>=0&&a.each(t,function(t){n.setIconStatus(t,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:o})}},r.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),s.register("magicType",n);var d=n;t.exports=d},function(t,e,i){function n(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(t);else{var a=r.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),e[o].series.push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function r(t){var e=[];return g.each(t,function(t,i){var n=t.categoryAxis,r=t.valueAxis,a=r.dim,o=[" "].concat(g.map(t.series,function(t){return t.name})),s=[n.model.getCategories()];g.each(t.series,function(t){s.push(t.getRawData().mapArray(a,function(t){return t}))});for(var l=[o.join(x)],u=0;u<s[0].length;u++){for(var h=[],c=0;c<s.length;c++)h.push(s[c][u]);l.push(h.join(x))}e.push(l.join("\n"))}),e.join("\n\n"+b+"\n\n")}function a(t){return g.map(t,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],a=e.getName(r),o=0;o<t-1;o++)n[o]=arguments[o];i.push((a?a+x:"")+n.join(x))}),i.join("\n")}).join("\n\n"+b+"\n\n")}function o(t){var e=n(t);return{value:g.filter([r(e.seriesGroupByCategoryAxis),a(e.other)],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+b+"\n\n"),meta:e.meta}}function s(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(x)>=0)return!0}function u(t){for(var e=t.split(/\n+/g),i=s(e.shift()).split(w),n=[],r=g.map(i,function(t){return{name:t,data:[]}}),a=0;a<e.length;a++){var o=s(e[a]).split(w);n.push(o.shift());for(var l=0;l<o.length;l++)r[l]&&(r[l].data[a]=o[l])}return{series:r,categories:n}}function h(t){for(var e=t.split(/\n+/g),i=s(e.shift()),n=[],r=0;r<e.length;r++){var a,o=s(e[r]).split(w),l="",u=!1;isNaN(o[0])?(u=!0,l=o[0],o=o.slice(1),n[r]={name:l,value:[]},a=n[r].value):a=n[r]=[];for(var h=0;h<o.length;h++)a.push(+o[h]);1===a.length&&(u?n[r].value=a[0]:n[r]=a[0])}return{name:i,data:n}}function c(t,e){var i=t.split(new RegExp("\n*"+b+"\n*","g")),n={series:[]};return g.each(i,function(t,i){if(l(t)){var r=u(t),a=e[i],o=a.axisDim+"Axis";a&&(n[o]=n[o]||[],n[o][a.axisIndex]={data:r.categories},n.series=n.series.concat(r.series))}else{var r=h(t);n.series.push(r)}}),n}function d(t){this._dom=null,this.model=t}function p(t,e){return g.map(t,function(t,i){var n=e&&e[i];return g.isObject(n)&&!g.isArray(n)?(g.isObject(t)&&!g.isArray(t)&&(t=t.value),g.defaults({value:t},n)):t})}var f=i(2),g=i(0),m=i(27),v=i(39),y=i(35),_=v.toolbox.dataView,b=new Array(60).join("-"),x="\t",w=new RegExp("["+x+"]+","g");d.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:g.clone(_.title),lang:g.clone(_.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},d.prototype.onclick=function(t,e){function i(){n.removeChild(a),S._dom=null}var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",a.style.backgroundColor=r.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=r.get("lang")||[];s.innerHTML=l[0]||r.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=r.get("textColor");var u=document.createElement("div"),h=document.createElement("textarea");u.style.cssText="display:block;width:100%;overflow:auto;";var d=r.get("optionToContent"),p=r.get("contentToOption"),f=o(t);if("function"==typeof d){var v=d(e.getOption());"string"==typeof v?u.innerHTML=v:g.isDom(v)&&u.appendChild(v)}else u.appendChild(h),h.readOnly=r.get("readOnly"),h.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",h.style.color=r.get("textColor"),h.style.borderColor=r.get("textareaBorderColor"),h.style.backgroundColor=r.get("textareaColor"),h.value=f.value;var y=f.meta,_=document.createElement("div");_.style.cssText="position:absolute;bottom:0;left:0;right:0;";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),M=document.createElement("div");b+=";background-color:"+r.get("buttonColor"),b+=";color:"+r.get("buttonTextColor");var S=this;m.addEventListener(w,"click",i),m.addEventListener(M,"click",function(){var t;try{t="function"==typeof p?p(u,e.getOption()):c(h.value,y)}catch(n){throw i(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),i()}),w.innerHTML=l[1],M.innerHTML=l[2],M.style.cssText=b,w.style.cssText=b,!r.get("readOnly")&&_.appendChild(M),_.appendChild(w),m.addEventListener(h,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+x+e.substring(n),this.selectionStart=this.selectionEnd=i+1,m.stop(t)}}),a.appendChild(s),a.appendChild(u),a.appendChild(_),u.style.height=n.clientHeight-80+"px",n.appendChild(a),this._dom=a},d.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},d.prototype.dispose=function(t,e){this.remove(t,e)},y.register("dataView",d),f.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];g.each(t.newOption.series,function(t){var n=e.getSeriesByName(t.name)[0];if(n){var r=n.get("data");i.push({name:t.name,data:p(t.data,r)})}else i.push(g.extend({type:"scatter"},t))}),e.mergeOption(g.defaults({series:i},t.newOption))});var M=d;t.exports=M},function(t,e,i){function n(t,e,i){(this._brushController=new u(i.getZr())).on("brush",l.bind(this._onBrush,this)).mount(),this._isZoomActive}function r(t){var e={};return l.each(["xAxisIndex","yAxisIndex"],function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(e[i]===!1||"none"===e[i])&&(e[i]=[])}),e}function a(t,e){t.setIconStatus("back",c.count(e)>1?"emphasis":"normal")}function o(t,e,i,n,a){var o=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var s=new h(r(t.option),e,{include:["grid"]});i._brushController.setPanels(s.makePanelOpts(a,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(!!o&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}var s=i(2),l=i(0),u=i(106),h=i(311),c=i(323),d=i(65),p=i(39),f=i(35);i(721);var g=p.toolbox.dataZoom,m=l.each,v="\0_ec_\0toolbox-dataZoom_";n.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:l.clone(g.title)};var y=n.prototype;y.render=function(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,o(t,e,this,n,i),a(t,e)},y.onclick=function(t,e,i){_[i].call(this)},y.remove=function(t,e){this._brushController.unmount()},y.dispose=function(t,e){this._brushController.dispose()};var _={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(c.pop(this.ecModel))}};y._onBrush=function(t,e){function i(t,e,i){var r=e.getAxis(t),s=r.model,l=n(t,s,o),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=d(0,i.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(a[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function n(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},function(i){var r=i.getAxisModel(t,e.componentIndex);r&&(n=i)}),n}if(e.isEnd&&t.length){var a={},o=this.ecModel;this._brushController.updateCovers([]);var s=new h(r(this.model.option),o,{include:["grid"]});s.matchOutputRanges(t,o,function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[r],n,e)}}),c.push(o,a),this._dispatchZoomAction(a)}},y._dispatchZoomAction=function(t){var e=[];m(t,function(t,i){e.push(l.clone(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},f.register("dataZoom",n),s.registerPreprocessor(function(t){function e(t,e){if(e){var r=t+"Index",a=e[r];null==a||"all"==a||l.isArray(a)||(a=a===!1||"none"===a?[]:[a]),i(t,function(e,i){if(null==a||"all"==a||l.indexOf(a,i)!==-1){var o={type:"select",$fromToolbox:!0,id:v+t+i};o[r]=i,n.push(o)}})}}function i(e,i){var n=t[e];l.isArray(n)||(n=n?[n]:[]),m(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);l.isArray(n)||(t.dataZoom=n=[n]);var r=t.toolbox;if(r&&(l.isArray(r)&&(r=r[0]),r&&r.feature)){var a=r.feature.dataZoom;e("xAxis",a),e("yAxis",a)}}});var b=n;t.exports=b},function(t,e,i){i(312),i(67),i(68),i(722),i(723),i(313),i(314)},function(t,e,i){var n=i(67),r=n.extend({type:"dataZoom.select"});t.exports=r},function(t,e,i){var n=i(68),r=n.extend({type:"dataZoom.select"});t.exports=r},function(t,e,i){function n(t){this.model=t}var r=i(2),a=i(323),o=i(39),s=i(35),l=o.toolbox.restore;n.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:l.title};var u=n.prototype;u.onclick=function(t,e,i){a.clear(t),e.dispatchAction({type:"restore",from:this.uid})},s.register("restore",n),r.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var h=n;t.exports=h},function(t,e,i){i(726);var n=i(72),r=n.registerPainter,a=i(727);r("vml",a)},function(t,e,i){var n=i(15),r=i(10),a=r.applyTransform,o=i(12),s=i(26),l=i(25),u=i(75),h=i(255),c=i(56),d=i(55),p=i(57),f=i(14),g=i(47),m=i(76),v=i(324),y=g.CMD,_=Math.round,b=Math.sqrt,x=Math.abs,w=Math.cos,M=Math.sin,S=Math.max;if(!n.canvasSupported){var k=",",D="progid:DXImageTransform.Microsoft",T=21600,L=T/2,C=1e5,I=1e3,A=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=T+","+T,t.coordorigin="0,0"},P=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},E=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},O=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},R=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},H=function(t,e,i){return(parseFloat(t)||0)*C+(parseFloat(e)||0)*I+i},z=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},Y=function(t,e,i){var n=s.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=E(n[0],n[1],n[2]),t.opacity=i*n[3])},N=function(t){var e=s.parse(t);return[E(e[0],e[1],e[2]),e[3]]},F=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof m){var r,o=0,s=[0,0],l=0,u=1,h=i.getBoundingRect(),c=h.width,d=h.height;if("linear"===n.type){r="gradient";var p=i.transform,f=[n.x*c,n.y*d],g=[n.x2*c,n.y2*d];p&&(a(f,f,p),a(g,g,p));var v=g[0]-f[0],y=g[1]-f[1];o=180*Math.atan2(v,y)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{r="gradientradial";var f=[n.x*c,n.y*d],p=i.transform,_=i.scale,b=c,x=d;s=[(f[0]-h.x)/b,(f[1]-h.y)/x],p&&a(f,f,p),b/=_[0]*T,x/=_[1]*T;var w=S(b,x);l=0/w,u=2*n.r/w-l}var M=n.colorStops.slice();M.sort(function(t,e){return t.offset-e.offset});for(var k=M.length,D=[],L=[],C=0;C<k;C++){var I=M[C],A=N(I.color);L.push(I.offset*u+l+" "+A[0]),0!==C&&C!==k-1||D.push(A)}if(k>=2){var P=D[0][0],E=D[1][0],O=D[0][1]*e.opacity,R=D[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=P,t.color2=E,t.colors=L.join(","),t.opacity=R,t.opacity2=O}"radial"===r&&(t.focusposition=s.join(","))}else Y(t,n,e.opacity)},W=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof m||Y(t,e.stroke,e.opacity)},B=function(t,e,i,n){var r="fill"==e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i.lineWidth)?(t[r?"filled":"stroked"]="true",i[e]instanceof m&&R(t,a),a||(a=v.createNode(e)),r?F(a,i,n):W(a,i),O(t,a)):(t[r?"filled":"stroked"]="false",R(t,a))},j=[[],[],[]],V=function(t,e){var i,n,r,o,s,l,u=y.M,h=y.C,c=y.L,d=y.A,p=y.Q,f=[],g=t.data,m=t.len();for(o=0;o<m;){switch(r=g[o++],n="",i=0,r){case u:n=" m ",i=1,s=g[o++],l=g[o++],j[0][0]=s,j[0][1]=l;break;case c:n=" l ",i=1,s=g[o++],l=g[o++],j[0][0]=s,j[0][1]=l;break;case p:case h:n=" c ",i=3;var v,x,S=g[o++],D=g[o++],C=g[o++],I=g[o++];r===p?(v=C,x=I,C=(C+2*S)/3,I=(I+2*D)/3,S=(s+2*S)/3,D=(l+2*D)/3):(v=g[o++],x=g[o++]),j[0][0]=S,j[0][1]=D,j[1][0]=C,j[1][1]=I,j[2][0]=v,j[2][1]=x,s=v,l=x;break;case d:var A=0,P=0,E=1,O=1,R=0;e&&(A=e[4],P=e[5],E=b(e[0]*e[0]+e[1]*e[1]),O=b(e[2]*e[2]+e[3]*e[3]),R=Math.atan2(-e[1]/O,e[0]/E));var H=g[o++],z=g[o++],Y=g[o++],N=g[o++],F=g[o++]+R,W=g[o++]+F+R;o++;var B=g[o++],V=H+w(F)*Y,$=z+M(F)*N,S=H+w(W)*Y,D=z+M(W)*N,G=B?" wa ":" at ";Math.abs(V-S)<1e-4&&(Math.abs(W-F)>.01?B&&(V+=270/T):Math.abs($-z)<1e-4?B&&V<H||!B&&V>H?D-=270/T:D+=270/T:B&&$<z||!B&&$>z?S+=270/T:S-=270/T),f.push(G,_(((H-Y)*E+A)*T-L),k,_(((z-N)*O+P)*T-L),k,_(((H+Y)*E+A)*T-L),k,_(((z+N)*O+P)*T-L),k,_((V*E+A)*T-L),k,_(($*O+P)*T-L),k,_((S*E+A)*T-L),k,_((D*O+P)*T-L)),s=S,l=D;break;case y.R:var U=j[0],q=j[1];U[0]=g[o++],U[1]=g[o++],q[0]=U[0]+g[o++],q[1]=U[1]+g[o++],e&&(a(U,U,e),a(q,q,e)),U[0]=_(U[0]*T-L),q[0]=_(q[0]*T-L),U[1]=_(U[1]*T-L),q[1]=_(q[1]*T-L),f.push(" m ",U[0],k,U[1]," l ",q[0],k,U[1]," l ",q[0],k,q[1]," l ",U[0],k,q[1]);break;case y.Z:f.push(" x ")}if(i>0){f.push(n);for(var X=0;X<i;X++){var Z=j[X];e&&a(Z,Z,e),f.push(_(Z[0]*T-L),k,_(Z[1]*T-L),X<i-1?k:"")}}}return f.join("")};f.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=v.createNode("shape"),A(i),this._vmlEl=i),B(i,"fill",e,this),B(i,"stroke",e,this);var n=this.transform,r=null!=n,a=i.getElementsByTagName("stroke")[0];if(a){var o=e.lineWidth;if(r&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];o*=b(x(s))}a.weight=o+"px"}var l=this.path||(this.path=new g);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=V(l,this.transform),i.style.zIndex=H(this.zlevel,this.z,this.z2),O(t,i),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},f.prototype.onRemove=function(t){R(t,this._vmlEl),this.removeRectText(t)},f.prototype.onAdd=function(t){O(t,this._vmlEl),this.appendRectText(t)};var $=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};d.prototype.brushVML=function(t){var e,i,n=this.style,r=n.image;if($(r)){var o=r.src;if(o===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var s=r.runtimeStyle,l=s.width,u=s.height;s.width="auto",s.height="auto",e=r.width,i=r.height,s.width=l,s.height=u,this._imageSrc=o,this._imageWidth=e,this._imageHeight=i}r=o}else r===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(r){var h=n.x||0,c=n.y||0,d=n.width,p=n.height,f=n.sWidth,g=n.sHeight,m=n.sx||0,y=n.sy||0,x=f&&g,w=this._vmlEl;w||(w=v.doc.createElement("div"),A(w),this._vmlEl=w);var M,T=w.style,L=!1,C=1,I=1;if(this.transform&&(M=this.transform,C=b(M[0]*M[0]+M[1]*M[1]),I=b(M[2]*M[2]+M[3]*M[3]),L=M[1]||M[2]),L){var P=[h,c],E=[h+d,c],R=[h,c+p],z=[h+d,c+p];a(P,P,M),a(E,E,M),a(R,R,M),a(z,z,M);var Y=S(P[0],E[0],R[0],z[0]),N=S(P[1],E[1],R[1],z[1]),F=[];F.push("M11=",M[0]/C,k,"M12=",M[2]/I,k,"M21=",M[1]/C,k,"M22=",M[3]/I,k,"Dx=",_(h*C+M[4]),k,"Dy=",_(c*I+M[5])),T.padding="0 "+_(Y)+"px "+_(N)+"px 0",T.filter=D+".Matrix("+F.join("")+", SizingMethod=clip)"}else M&&(h=h*C+M[4],c=c*I+M[5]),T.filter="",T.left=_(h)+"px",T.top=_(c)+"px";var W=this._imageEl,B=this._cropEl;W||(W=v.doc.createElement("div"),this._imageEl=W);var j=W.style;if(x){if(e&&i)j.width=_(C*e*d/f)+"px",j.height=_(I*i*p/g)+"px";else{var V=new Image,G=this;V.onload=function(){V.onload=null,e=V.width,i=V.height,j.width=_(C*e*d/f)+"px",j.height=_(I*i*p/g)+"px",G._imageWidth=e,G._imageHeight=i,G._imageSrc=r},V.src=r}B||(B=v.doc.createElement("div"),B.style.overflow="hidden",this._cropEl=B);var U=B.style;U.width=_((d+m*d/f)*C),U.height=_((p+y*p/g)*I),U.filter=D+".Matrix(Dx="+-m*d/f*C+",Dy="+-y*p/g*I+")",B.parentNode||w.appendChild(B),W.parentNode!=B&&B.appendChild(W)}else j.width=_(C*d)+"px",j.height=_(I*p)+"px",w.appendChild(W),B&&B.parentNode&&(w.removeChild(B),this._cropEl=null);var q="",X=n.opacity;X<1&&(q+=".Alpha(opacity="+_(100*X)+") "),q+=D+".AlphaImageLoader(src="+r+", SizingMethod=scale)",j.filter=q,w.style.zIndex=H(this.zlevel,this.z,this.z2),O(t,w),null!=n.text&&this.drawRectText(t,this.getBoundingRect())}},d.prototype.onRemove=function(t){R(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},d.prototype.onAdd=function(t){O(t,this._vmlEl),this.appendRectText(t)};var G,U="normal",q={},X=0,Z=100,K=document.createElement("div"),J=function(t){var e=q[t];if(!e){X>Z&&(X=0,q={});var i,n=K.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||U,variant:n.fontVariant||U,weight:n.fontWeight||U,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},q[t]=e,X++}return e};l.$override("measureText",function(t,e){var i=v.doc;G||(G=i.createElement("div"),G.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(G));try{G.style.font=e}catch(n){}return G.innerHTML="",G.appendChild(i.createTextNode(t)),{width:G.offsetWidth}});for(var Q=new o,tt=function(t,e,i,n){var r=this.style;this.__dirty&&u.normalizeTextStyle(r,!0);var o=r.text;if(null!=o&&(o+=""),o){if(r.rich){var s=l.parseRichText(o,r);o=[];for(var h=0;h<s.lines.length;h++){for(var c=s.lines[h].tokens,d=[],p=0;p<c.length;p++)d.push(c[p].text);o.push(d.join(""))}o=o.join("\n")}var f,g,m=r.textAlign,y=r.textVerticalAlign,b=J(r.font),x=b.style+" "+b.variant+" "+b.weight+" "+b.size+'px "'+b.family+'"';i=i||l.getBoundingRect(o,x,m,y);var w=this.transform;if(w&&!n&&(Q.copy(e),Q.applyTransform(w),e=Q),n)f=e.x,g=e.y;else{var M=r.textPosition,S=r.textDistance;if(M instanceof Array)f=e.x+z(M[0],e.width),g=e.y+z(M[1],e.height),m=m||"left";else{var D=l.adjustTextPositionOnRect(M,e,S);f=D.x,g=D.y,m=m||D.textAlign,y=y||D.textVerticalAlign}}f=l.adjustTextX(f,i.width,m),g=l.adjustTextY(g,i.height,y),g+=i.height/2;var T,L,C,I=v.createNode,E=this._textVmlEl;E?(C=E.firstChild,T=C.nextSibling,L=T.nextSibling):(E=I("line"),T=I("path"),L=I("textpath"),C=I("skew"),L.style["v-text-align"]="left",A(E),T.textpathok=!0,L.on=!0,E.from="0 0",E.to="1000 0.05",O(E,C),O(E,T),O(E,L),this._textVmlEl=E);var R=[f,g],Y=E.style;w&&n?(a(R,R,w),C.on=!0,C.matrix=w[0].toFixed(3)+k+w[2].toFixed(3)+k+w[1].toFixed(3)+k+w[3].toFixed(3)+",0,0",C.offset=(_(R[0])||0)+","+(_(R[1])||0),C.origin="0 0",Y.left="0px",Y.top="0px"):(C.on=!1,Y.left=_(f)+"px",Y.top=_(g)+"px"),L.string=P(o);try{L.style.font=x}catch(N){}B(E,"fill",{fill:r.textFill,opacity:r.opacity},this),B(E,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),E.style.zIndex=H(this.zlevel,this.z,this.z2),O(t,E)}},et=function(t){R(t,this._textVmlEl),this._textVmlEl=null},it=function(t){O(t,this._textVmlEl)},nt=[h,c,d,f,p],rt=0;rt<nt.length;rt++){var at=nt[rt].prototype;at.drawRectText=tt,at.removeRectText=et,at.appendRectText=it}p.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0, width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},p.prototype.onRemove=function(t){this.removeRectText(t)},p.prototype.onAdd=function(t){this.appendRectText(t)}}},function(t,e,i){function n(t){return parseInt(t,10)}function r(t,e){s.initVML(),this.root=t,this.storage=e;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var r=e.delFromStorage,a=e.addToStorage;e.delFromStorage=function(t){r.call(e,t),t&&t.onRemove&&t.onRemove(n)},e.addToStorage=function(t){t.onAdd&&t.onAdd(n),a.call(e,t)},this._firstPaint=!0}function a(t){return function(){o('In IE8.0 VML mode painter not support method "'+t+'"')}}var o=i(54),s=i(324),l=i(0),u=l.each;r.prototype={constructor:r,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t.length;i++){var n=t[i];n.invisible||n.ignore?(n.__alreadyNotVisible||n.onRemove(e),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(e),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,e),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){var t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!=t||this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i.height=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||n(e.width))-n(e.paddingLeft)-n(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||n(e.height))-n(e.paddingTop)-n(e.paddingBottom)|0}},u(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){r.prototype[t]=a(t)});var h=r;t.exports=h},function(t,e,i){i(113);var n=i(72),r=n.registerPainter,a=i(729);r("svg",a)},function(t,e,i){function n(t){return parseInt(t,10)}function r(t){return t instanceof v?k:t instanceof y?D:t instanceof _?T:k}function a(t,e){return e&&t&&e.parentNode!==t}function o(t,e,i){if(a(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function s(t,e){if(a(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function l(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function u(t){return t.__textSvgEl}function h(t){return t.__svgEl}function c(t){return function(){m('In SVG mode painter not support method "'+t+'"')}}var d=i(114),p=d.createElement,f=i(0),g=f.each,m=i(54),v=i(14),y=i(55),_=i(57),b=i(730),x=i(731),w=i(732),M=i(733),S=i(113),k=S.path,D=S.image,T=S.text,L=function(t,e,i,n){this.root=t,this.storage=e,this._opts=i=f.extend({},i||{});var r=p("svg");r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new x(n,r),this.clipPathManager=new w(n,r),this.shadowManager=new M(n,r);var a=document.createElement("div");a.style.cssText="overflow:hidden;position:relative",this._svgRoot=r,this._viewport=a,t.appendChild(a),a.appendChild(r),this.resize(i.width,i.height),this._visibleList=[]};L.prototype={constructor:L,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i=this._svgRoot,n=this._visibleList,a=t.length,c=[];for(e=0;e<a;e++){var d=t[e],p=r(d),f=h(d)||u(d);d.invisible||(d.__dirty&&(p&&p.brush(d),this.clipPathManager.update(d),d.style&&(this.gradientManager.update(d.style.fill),this.gradientManager.update(d.style.stroke),this.shadowManager.update(f,d)),d.__dirty=!1),c.push(d))}var g,m=b(n,c);for(e=0;e<m.length;e++){var v=m[e];if(v.removed)for(var y=0;y<v.count;y++){var d=n[v.indices[y]],f=h(d),_=u(d);l(i,f),l(i,_)}}for(e=0;e<m.length;e++){var v=m[e];if(v.added)for(var y=0;y<v.count;y++){var d=c[v.indices[y]],f=h(d),_=u(d);g?o(i,f,g):s(i,f),f?o(i,_,f):g?o(i,_,g):s(i,_),o(i,_,f),g=_||f||g,this.gradientManager.addWithoutUpdate(f,d),this.shadowManager.addWithoutUpdate(g,d),this.clipPathManager.markUsed(d)}else if(!v.removed)for(var y=0;y<v.count;y++){var d=c[v.indices[y]];g=f=u(d)||h(d)||g,this.gradientManager.markUsed(d),this.gradientManager.addWithoutUpdate(f,d),this.shadowManager.markUsed(d),this.shadowManager.addWithoutUpdate(f,d),this.clipPathManager.markUsed(d)}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=c},_getDefs:function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");if(0===i.length){if(t){var i=e.insertBefore(p("defs"),e.firstChild);return i.contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=i.style;r.width=t+"px",r.height=e+"px";var a=this._svgRoot;a.setAttribute("width",t),a.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],r=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[r]||n(l[i])||n(s.style[i]))-(n(l[a])||0)-(n(l[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){this.refresh();var t=this._svgRoot.outerHTML;return"data:image/svg+xml;charset=UTF-8,"+t}},g(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){L.prototype[t]=c(t)});var C=L;t.exports=C},function(t,e){function i(){}function n(t,e,i,n){for(var r=0,a=e.length,o=0,s=0;r<a;r++){var l=e[r];if(l.removed){for(var u=[],h=s;h<s+l.count;h++)u.push(h);l.indices=u,s+=l.count}else{for(var u=[],h=o;h<o+l.count;h++)u.push(h);l.indices=u,o+=l.count,l.added||(s+=l.count)}}return e}function r(t){return{newPos:t.newPos,components:t.components.slice(0)}}function a(t,e,i){return o.diff(t,e,i)}i.prototype={diff:function(t,e,i){function a(){for(var i=-1*u;i<=u;i+=2){var a,h=c[i-1],d=c[i+1],p=(d?d.newPos:0)-i;h&&(c[i-1]=void 0);var f=h&&h.newPos+1<s,g=d&&0<=p&&p<l;if(f||g){if(!f||g&&h.newPos<d.newPos?(a=r(d),o.pushComponent(a.components,void 0,!0)):(a=h,a.newPos++,o.pushComponent(a.components,!0,void 0)),p=o.extractCommon(a,e,t,i),a.newPos+1>=s&&p+1>=l)return n(o,a.components,e,t);c[i]=a}else c[i]=void 0}u++}i||(i=function(t,e){return t===e}),this.equals=i;var o=this;t=t.slice(),e=e.slice();var s=e.length,l=t.length,u=1,h=s+l,c=[{newPos:-1,components:[]}],d=this.extractCommon(c[0],e,t,0);if(c[0].newPos+1>=s&&d+1>=l){for(var p=[],f=0;f<e.length;f++)p.push(f);return[{indices:p,count:e.length}]}for(;u<=h;){var g=a();if(g)return g}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){for(var r=e.length,a=i.length,o=t.newPos,s=o-n,l=0;o+1<r&&s+1<a&&this.equals(e[o+1],i[s+1]);)o++,s++,l++;return l&&t.components.push({count:l}),t.newPos=o,s},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var o=new i;t.exports=a},function(t,e,i){function n(t,e){r.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}var r=i(115),a=i(0),o=i(54);a.inherits(n,r),n.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;a.each(["fill","stroke"],function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var r,a=e.style[n],o=i.getDefs(!0);a._dom?(r=a._dom,o.contains(a._dom)||i.addDom(r)):r=i.add(a),i.markUsed(e);var s=r.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}})}},n.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return o("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},n.prototype.update=function(t){var e=this;r.prototype.update.call(this,t,function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},n.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void o("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,r=i.length;n<r;++n){var a=this.createElement("stop");a.setAttribute("offset",100*i[n].offset+"%"),a.setAttribute("stop-color",i[n].color),e.appendChild(a)}t._dom=e},n.prototype.markUsed=function(t){if(t.style){var e=t.style.fill;e&&e._dom&&r.prototype.markUsed.call(this,e._dom),e=t.style.stroke,e&&e._dom&&r.prototype.markUsed.call(this,e._dom)}};var s=n;t.exports=s},function(t,e,i){function n(t,e){r.call(this,t,e,"clipPath","__clippath_in_use__")}var r=i(115),a=i(0),o=i(19);a.inherits(n,r),n.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var i=this.getTextSvgElement(t);i&&this.updateDom(i,t.__clipPaths,!0),this.markUsed(t)},n.prototype.updateDom=function(t,e,i){if(e&&e.length>0){var n,r,a=this.getDefs(!0),s=e[0],l=i?"_textDom":"_dom";s[l]?(r=s[l].getAttribute("id"),n=s[l],a.contains(n)||a.appendChild(n)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",r),a.appendChild(n),s[l]=n);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var h=Array.prototype.slice.call(s.transform);o.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=h}else u.brush(s);var c=this.getSvgElement(s);n.innerHTML="",n.appendChild(c.cloneNode()),t.setAttribute("clip-path","url(#"+r+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},n.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&a.each(t.__clipPaths,function(t){t._dom&&r.prototype.markUsed.call(e,t._dom),t._textDom&&r.prototype.markUsed.call(e,t._textDom)})};var s=n;t.exports=s},function(t,e,i){function n(t,e){a.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function r(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}var a=i(115),o=i(0);o.inherits(n,a),n.prototype.addWithoutUpdate=function(t,e){if(e&&r(e.style)){var i,n=e.style;if(n._shadowDom){i=n._shadowDom;var a=this.getDefs(!0);a.contains(n._shadowDom)||this.addDom(i)}else i=this.add(e);this.markUsed(e);var o=i.getAttribute("id");t.style.filter="url(#"+o+")"}},n.prototype.add=function(t){var e=this.createElement("filter"),i=t.style;return i._shadowDomId=i._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(t,e),this.addDom(e),e},n.prototype.update=function(t,e){var i=e.style;if(r(i)){var n=this;a.prototype.update.call(this,e,function(t){n.updateDom(e,t._shadowDom)})}else this.remove(t,i)},n.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},n.prototype.updateDom=function(t,e){var i=e.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,r,a,o,s=t.style,l=t.scale?t.scale[0]||1:1,u=t.scale?t.scale[1]||1:1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,r=s.shadowOffsetY||0,a=s.shadowBlur,o=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,a=s.textShadowBlur,o=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",r/u),i.setAttribute("flood-color",o);var h=a/2/l,c=a/2/u,d=h+" "+c;i.setAttribute("stdDeviation",d),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(a/2*200)+"%"),e.setAttribute("height",Math.ceil(a/2*200)+"%"),e.appendChild(i),s._shadowDom=e},n.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&a.prototype.markUsed.call(this,e._shadowDom)};var s=n;t.exports=s},function(t,e,i){i(735),function(){"use strict";var t=$(".easy-pie-chart");t.each(function(){var t=$(this),e=getDataOptions(t);t.easyPieChart(e)})}()},function(t,e,i){var n,r;!function(a,o){n=[i(13)],r=function(t){return o(t)}.apply(e,n),!(void 0!==r&&(t.exports=r))}(this,function(t){var e=function(t,e){var i,n=document.createElement("canvas");t.appendChild(n),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(n);var r=n.getContext("2d");n.width=n.height=e.size;var a=1;window.devicePixelRatio>1&&(a=window.devicePixelRatio,n.style.width=n.style.height=[e.size,"px"].join(""),n.width=n.height=e.size*a,r.scale(a,a)),r.translate(e.size/2,e.size/2),r.rotate((-.5+e.rotate/180)*Math.PI);var o=(e.size-e.lineWidth)/2;e.scaleColor&&e.scaleLength&&(o-=e.scaleLength+2),Date.now=Date.now||function(){return+new Date};var s=function(t,e,i){i=Math.min(Math.max(-1,i||0),1);var n=i<=0;r.beginPath(),r.arc(0,0,o,0,2*Math.PI*i,n),r.strokeStyle=t,r.lineWidth=e,r.stroke()},l=function(){var t,i;r.lineWidth=1,r.fillStyle=e.scaleColor,r.save();for(var n=24;n>0;--n)n%6===0?(i=e.scaleLength,t=0):(i=.6*e.scaleLength,t=e.scaleLength-i),r.fillRect(-e.size/2+t,0,i,1),r.rotate(Math.PI/12);r.restore()},u=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}(),h=function(){e.scaleColor&&l(),e.trackColor&&s(e.trackColor,e.trackWidth||e.lineWidth,1)};this.getCanvas=function(){return n},this.getCtx=function(){return r},this.clear=function(){r.clearRect(e.size/-2,e.size/-2,e.size,e.size)},this.draw=function(t){e.scaleColor||e.trackColor?r.getImageData&&r.putImageData?i?r.putImageData(i,0,0):(h(),i=r.getImageData(0,0,e.size*a,e.size*a)):(this.clear(),h()):this.clear(),r.lineCap=e.lineCap;var n;n="function"==typeof e.barColor?e.barColor(t):e.barColor,s(n,e.lineWidth,t/100)}.bind(this),this.animate=function(t,i){var n=Date.now();e.onStart(t,i);var r=function(){var a=Math.min(Date.now()-n,e.animate.duration),o=e.easing(this,a,t,i-t,e.animate.duration);this.draw(o),e.onStep(t,i,o),a>=e.animate.duration?e.onStop(t,i):u(r)}.bind(this);u(r)}.bind(this)},i=function(t,i){var n={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(t,e,i,n,r){return e/=r/2,e<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},onStart:function(t,e){},onStep:function(t,e,i){},onStop:function(t,e){}};if("undefined"!=typeof e)n.renderer=e;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");n.renderer=SVGRenderer}var r={},a=0,o=function(){this.el=t,this.options=r;for(var e in n)n.hasOwnProperty(e)&&(r[e]=i&&"undefined"!=typeof i[e]?i[e]:n[e],"function"==typeof r[e]&&(r[e]=r[e].bind(this)));"string"==typeof r.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[r.easing])?r.easing=jQuery.easing[r.easing]:r.easing=n.easing,"number"==typeof r.animate&&(r.animate={duration:r.animate,enabled:!0}),"boolean"!=typeof r.animate||r.animate||(r.animate={duration:1e3,enabled:r.animate}),this.renderer=new r.renderer(t,r),this.renderer.draw(a),t.dataset&&t.dataset.percent?this.update(parseFloat(t.dataset.percent)):t.getAttribute&&t.getAttribute("data-percent")&&this.update(parseFloat(t.getAttribute("data-percent")))}.bind(this);this.update=function(t){return t=parseFloat(t),r.animate.enabled?this.renderer.animate(a,t):this.renderer.draw(t),a=t,this}.bind(this),this.disableAnimation=function(){return r.animate.enabled=!1,this},this.enableAnimation=function(){return r.animate.enabled=!0,this},o()};t.fn.easyPieChart=function(e){return this.each(function(){var n;t.data(this,"easyPieChart")||(n=t.extend({},e,t(this).data()),t.data(this,"easyPieChart",new i(this,n)))})}})},function(t,e,i){i(737),i(738),i(739),function(){"use strict";i(740);var t=function(){var t=$(".jvmap");t.each(function(){var t=$(this),e=getDataOptions(t);t.vectorMap(e)})};t(),$('a[data-toggle="tab"], a[data-toggle="pill"]').on("shown.bs.tab",function(e){t()})}()},function(t,e){var i=function(t,e,i){if(this.mode=window.SVGAngle?"svg":"vml",this.params=i,"svg"===this.mode)this.createSvgNode=function(t){return document.createElementNS(this.svgns,t)};else{try{document.namespaces.rvml||document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),this.createVmlNode=function(t){return document.createElement("<rvml:"+t+' class="rvml">')}}catch(n){this.createVmlNode=function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)")}"svg"===this.mode?this.canvas=this.createSvgNode("svg"):(this.canvas=this.createVmlNode("group"),this.canvas.style.position="absolute"),this.setSize(t,e)};i.prototype={svgns:"http://www.w3.org/2000/svg",mode:"svg",width:0,height:0,canvas:null};var n=function(t,e,i,n){t&&this.setColors(t),e&&this.setNormalizeFunction(e),i&&this.setMin(i),i&&this.setMax(n)};n.prototype={colors:[]};var r=function(t){t=t||{};var e,a=this,o=r.maps[t.map];if(!o)throw new Error('Invalid "'+t.map+'" map parameter. Please make sure you have loaded this map file in your HTML.');this.selectedRegions=[],this.multiSelectRegion=t.multiSelectRegion,this.container=t.container,this.defaultWidth=o.width,this.defaultHeight=o.height,this.color=t.color,this.selectedColor=t.selectedColor,this.hoverColor=t.hoverColor,this.hoverColors=t.hoverColors,this.hoverOpacity=t.hoverOpacity,this.setBackgroundColor(t.backgroundColor),this.width=t.container.width(),this.height=t.container.height(),this.resize(),jQuery(window).resize(function(){var i=t.container.width(),n=t.container.height();if(i&&n){a.width=i,a.height=n,a.resize(),a.canvas.setSize(a.width,a.height),a.applyTransform();var r=jQuery.Event("resize.jqvmap");jQuery(t.container).trigger(r,[i,n]),e&&(jQuery(".jqvmap-pin").remove(),a.pinHandlers=!1,a.placePins(e.pins,e.mode))}}),this.canvas=new i(this.width,this.height,t),t.container.append(this.canvas.canvas),this.makeDraggable(),this.rootGroup=this.canvas.createGroup(!0),this.index=r.mapIndex,this.label=jQuery("<div/>").addClass("jqvmap-label").appendTo(jQuery("body")).hide(),t.enableZoom&&(jQuery("<div/>").addClass("jqvmap-zoomin").text("+").appendTo(t.container),jQuery("<div/>").addClass("jqvmap-zoomout").html("−").appendTo(t.container)),a.countries=[];for(var s in o.paths){var l=this.canvas.createPath({path:o.paths[s].path});l.setFill(this.color),l.id=a.getCountryId(s),a.countries[s]=l,"svg"===this.canvas.mode?l.setAttribute("class","jqvmap-region"):jQuery(l).addClass("jqvmap-region"),jQuery(this.rootGroup).append(l)}if(jQuery(t.container).delegate("svg"===this.canvas.mode?"path":"shape","mouseover mouseout",function(e){var i=e.target,n=e.target.id.split("_").pop(),r=jQuery.Event("labelShow.jqvmap"),s=jQuery.Event("regionMouseOver.jqvmap");n=n.toLowerCase(),"mouseover"===e.type?(jQuery(t.container).trigger(s,[n,o.paths[n].name]),s.isDefaultPrevented()||a.highlight(n,i),t.showTooltip&&(a.label.text(o.paths[n].name),jQuery(t.container).trigger(r,[a.label,n]),r.isDefaultPrevented()||(a.label.show(),a.labelWidth=a.label.width(),a.labelHeight=a.label.height()))):(a.unhighlight(n,i),a.label.hide(),jQuery(t.container).trigger("regionMouseOut.jqvmap",[n,o.paths[n].name]))}),jQuery(t.container).delegate("svg"===this.canvas.mode?"path":"shape","click",function(e){var i=e.target,n=e.target.id.split("_").pop(),r=jQuery.Event("regionClick.jqvmap");if(n=n.toLowerCase(),jQuery(t.container).trigger(r,[n,o.paths[n].name]),!t.multiSelectRegion&&!r.isDefaultPrevented())for(var s in o.paths)a.countries[s].currentFillColor=a.countries[s].getOriginalFill(),a.countries[s].setFill(a.countries[s].getOriginalFill());r.isDefaultPrevented()||(a.isSelected(n)?a.deselect(n,i):a.select(n,i))}),t.showTooltip&&t.container.mousemove(function(t){if(a.label.is(":visible")){var e=t.pageX-15-a.labelWidth,i=t.pageY-15-a.labelHeight;0>e&&(e=t.pageX+15),0>i&&(i=t.pageY+15),a.label.css({left:e,top:i})}}),this.setColors(t.colors),this.canvas.canvas.appendChild(this.rootGroup),this.applyTransform(),this.colorScale=new n(t.scaleColors,t.normalizeFunction,t.valueMin,t.valueMax),t.values&&(this.values=t.values,this.setValues(t.values)),t.selectedRegions)if(t.selectedRegions instanceof Array)for(var u in t.selectedRegions)this.select(t.selectedRegions[u].toLowerCase());else this.select(t.selectedRegions.toLowerCase());if(this.bindZoomButtons(),t.pins&&(e={pins:t.pins,mode:t.pinMode},this.pinHandlers=!1,this.placePins(t.pins,t.pinMode)),t.showLabels){this.pinHandlers=!1;var h={};for(s in a.countries)"function"!=typeof a.countries[s]&&(t.pins&&t.pins[s]||(h[s]=s.toUpperCase()));e={pins:h,mode:"content"},this.placePins(h,"content")}r.mapIndex++};r.prototype={transX:0,transY:0,scale:1,baseTransX:0,baseTransY:0,baseScale:1,width:0,height:0,countries:{},countriesColors:{},countriesData:{},zoomStep:1.4,zoomMaxStep:4,zoomCurStep:1},r.xlink="http://www.w3.org/1999/xlink",r.mapIndex=1,r.maps={},function(){var t={colors:1,values:1,backgroundColor:1,scaleColors:1,normalizeFunction:1,enableZoom:1,showTooltip:1,borderColor:1,borderWidth:1,borderOpacity:1,selectedRegions:1,multiSelectRegion:1},e={onLabelShow:"labelShow",onLoad:"load",onRegionOver:"regionMouseOver",onRegionOut:"regionMouseOut",onRegionClick:"regionClick",onRegionSelect:"regionSelect",onRegionDeselect:"regionDeselect",onResize:"resize"};jQuery.fn.vectorMap=function(i){var n={map:"world_en",backgroundColor:"#a5bfdd",color:"#f4f3f0",hoverColor:"#c9dfaf",hoverColors:{},selectedColor:"#c9dfaf",scaleColors:["#b6d6ff","#005ace"],normalizeFunction:"linear",enableZoom:!0,showTooltip:!0,borderColor:"#818181",borderWidth:1,borderOpacity:.25,selectedRegions:null,multiSelectRegion:!1},a=this.data("mapObject");if("addMap"===i)r.maps[arguments[1]]=arguments[2];else{if("set"!==i||!t[arguments[1]]){if("string"==typeof i&&"function"==typeof a[i])return a[i].apply(a,Array.prototype.slice.call(arguments,1));jQuery.extend(n,i),n.container=this,this.css({position:"relative",overflow:"hidden"}),a=new r(n),this.data("mapObject",a),this.unbind(".jqvmap");for(var o in e)n[o]&&this.bind(e[o]+".jqvmap",n[o]);var s=jQuery.Event("load.jqvmap");return jQuery(n.container).trigger(s,a),a}a["set"+arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1)].apply(a,Array.prototype.slice.call(arguments,2))}}}(jQuery),n.arrayToRgb=function(t){for(var e,i="#",n=0;n<t.length;n++)e=t[n].toString(16),i+=1===e.length?"0"+e:e;return i},n.prototype.getColor=function(t){"function"==typeof this.normalize&&(t=this.normalize(t));for(var e,i=[],n=0,r=0;r<this.colors.length-1;r++)e=this.vectorLength(this.vectorSubtract(this.colors[r+1],this.colors[r])),i.push(e),n+=e;var a=(this.maxValue-this.minValue)/n;for(r=0;r<i.length;r++)i[r]*=a;for(r=0,t-=this.minValue;t-i[r]>=0;)t-=i[r],r++;var o;for(o=r===this.colors.length-1?this.vectorToNum(this.colors[r]).toString(16):this.vectorToNum(this.vectorAdd(this.colors[r],this.vectorMult(this.vectorSubtract(this.colors[r+1],this.colors[r]),t/i[r]))).toString(16);o.length<6;)o="0"+o;return"#"+o},n.rgbToArray=function(t){return t=t.substr(1),[parseInt(t.substr(0,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(4,2),16)]},n.prototype.setColors=function(t){for(var e=0;e<t.length;e++)t[e]=n.rgbToArray(t[e]);this.colors=t},n.prototype.setMax=function(t){this.clearMaxValue=t,"function"==typeof this.normalize?this.maxValue=this.normalize(t):this.maxValue=t},n.prototype.setMin=function(t){this.clearMinValue=t,"function"==typeof this.normalize?this.minValue=this.normalize(t):this.minValue=t},n.prototype.setNormalizeFunction=function(t){"polynomial"===t?this.normalize=function(t){return Math.pow(t,.2)}:"linear"===t?delete this.normalize:this.normalize=t,this.setMin(this.clearMinValue),this.setMax(this.clearMaxValue)},n.prototype.vectorAdd=function(t,e){for(var i=[],n=0;n<t.length;n++)i[n]=t[n]+e[n];return i},n.prototype.vectorLength=function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]*t[i];return Math.sqrt(e)},n.prototype.vectorMult=function(t,e){for(var i=[],n=0;n<t.length;n++)i[n]=t[n]*e;return i},n.prototype.vectorSubtract=function(t,e){for(var i=[],n=0;n<t.length;n++)i[n]=t[n]-e[n];return i},n.prototype.vectorToNum=function(t){for(var e=0,i=0;i<t.length;i++)e+=Math.round(t[i])*Math.pow(256,t.length-i-1);return e},r.prototype.applyTransform=function(){var t,e,i,n;this.defaultWidth*this.scale<=this.width?(t=(this.width-this.defaultWidth*this.scale)/(2*this.scale),i=(this.width-this.defaultWidth*this.scale)/(2*this.scale)):(t=0,i=(this.width-this.defaultWidth*this.scale)/this.scale),this.defaultHeight*this.scale<=this.height?(e=(this.height-this.defaultHeight*this.scale)/(2*this.scale),n=(this.height-this.defaultHeight*this.scale)/(2*this.scale)):(e=0,n=(this.height-this.defaultHeight*this.scale)/this.scale),this.transY>e?this.transY=e:this.transY<n&&(this.transY=n),this.transX>t?this.transX=t:this.transX<i&&(this.transX=i),this.canvas.applyTransformParams(this.scale,this.transX,this.transY)},r.prototype.bindZoomButtons=function(){var t=this;this.container.find(".jqvmap-zoomin").click(function(){t.zoomIn()}),this.container.find(".jqvmap-zoomout").click(function(){t.zoomOut()})},r.prototype.deselect=function(t,e){if(t=t.toLowerCase(),e=e||jQuery("#"+this.getCountryId(t))[0],this.isSelected(t))this.selectedRegions.splice(this.selectIndex(t),1),jQuery(this.container).trigger("regionDeselect.jqvmap",[t]),e.currentFillColor=e.getOriginalFill(),e.setFill(e.getOriginalFill());else for(var i in this.countries)this.selectedRegions.splice(this.selectedRegions.indexOf(i),1),this.countries[i].currentFillColor=this.color,this.countries[i].setFill(this.color)},r.prototype.getCountryId=function(t){return"jqvmap"+this.index+"_"+t},r.prototype.getPin=function(t){var e=jQuery("#"+this.getPinId(t));return e.html()},r.prototype.getPinId=function(t){return this.getCountryId(t)+"_pin"},r.prototype.getPins=function(){var t=this.container.find(".jqvmap-pin"),e={};return jQuery.each(t,function(t,i){i=jQuery(i);var n=i.attr("for").toLowerCase(),r=i.html();e[n]=r}),JSON.stringify(e)},r.prototype.highlight=function(t,e){e=e||jQuery("#"+this.getCountryId(t))[0],this.hoverOpacity?e.setOpacity(this.hoverOpacity):this.hoverColors&&t in this.hoverColors?(e.currentFillColor=e.getFill()+"",e.setFill(this.hoverColors[t])):this.hoverColor&&(e.currentFillColor=e.getFill()+"",e.setFill(this.hoverColor))},r.prototype.isSelected=function(t){return this.selectIndex(t)>=0},r.prototype.makeDraggable=function(){var t,e,i=!1,n=this;n.isMoving=!1,n.isMovingTimeout=!1;var r,a,o,s,l,u,h;this.container.mousemove(function(r){return i&&(n.transX-=(t-r.pageX)/n.scale,n.transY-=(e-r.pageY)/n.scale,n.applyTransform(),t=r.pageX,e=r.pageY,n.isMoving=!0,n.isMovingTimeout&&clearTimeout(n.isMovingTimeout),n.container.trigger("drag")),!1}).mousedown(function(n){return i=!0,t=n.pageX,e=n.pageY,!1}).mouseup(function(){return i=!1,clearTimeout(n.isMovingTimeout),n.isMovingTimeout=setTimeout(function(){n.isMoving=!1},100),!1}).mouseout(function(){return i&&n.isMoving?(clearTimeout(n.isMovingTimeout),n.isMovingTimeout=setTimeout(function(){i=!1,n.isMoving=!1},100),!1):void 0}),jQuery(this.container).bind("touchmove",function(t){var e,i,c,d,p=t.originalEvent.touches;if(1===p.length){if(1===r){if(u===p[0].pageX&&h===p[0].pageY)return;c=n.transX,d=n.transY,n.transX-=(u-p[0].pageX)/n.scale,n.transY-=(h-p[0].pageY)/n.scale,n.applyTransform(),(c!==n.transX||d!==n.transY)&&t.preventDefault(),n.isMoving=!0,n.isMovingTimeout&&clearTimeout(n.isMovingTimeout)}u=p[0].pageX,h=p[0].pageY}else 2===p.length&&(2===r?(i=Math.sqrt(Math.pow(p[0].pageX-p[1].pageX,2)+Math.pow(p[0].pageY-p[1].pageY,2))/s,n.setScale(l*i,a,o),t.preventDefault()):(e=jQuery(n.container).offset(),a=p[0].pageX>p[1].pageX?p[1].pageX+(p[0].pageX-p[1].pageX)/2:p[0].pageX+(p[1].pageX-p[0].pageX)/2,o=p[0].pageY>p[1].pageY?p[1].pageY+(p[0].pageY-p[1].pageY)/2:p[0].pageY+(p[1].pageY-p[0].pageY)/2,a-=e.left,o-=e.top,l=n.scale,s=Math.sqrt(Math.pow(p[0].pageX-p[1].pageX,2)+Math.pow(p[0].pageY-p[1].pageY,2))));r=p.length}),jQuery(this.container).bind("touchstart",function(){r=0}),jQuery(this.container).bind("touchend",function(){r=0})},r.prototype.placePins=function(t,e){var i=this;if((!e||"content"!==e&&"id"!==e)&&(e="content"),"content"===e?jQuery.each(t,function(t,e){if(0!==jQuery("#"+i.getCountryId(t)).length){var n=i.getPinId(t),r=jQuery("#"+n);r.length>0&&r.remove(),i.container.append('<div id="'+n+'" for="'+t+'" class="jqvmap-pin" style="position:absolute">'+e+"</div>")}}):jQuery.each(t,function(t,e){if(0!==jQuery("#"+i.getCountryId(t)).length){var n=i.getPinId(t),r=jQuery("#"+n);r.length>0&&r.remove(),i.container.append('<div id="'+n+'" for="'+t+'" class="jqvmap-pin" style="position:absolute"></div>'),r.append(jQuery("#"+e))}}),this.positionPins(),!this.pinHandlers){this.pinHandlers=!0;var n=function(){i.positionPins()};this.container.bind("zoomIn",n).bind("zoomOut",n).bind("drag",n)}},r.prototype.positionPins=function(){var t=this,e=this.container.find(".jqvmap-pin");jQuery.each(e,function(e,i){i=jQuery(i);var n=t.getCountryId(i.attr("for").toLowerCase()),r=jQuery("#"+n),a=document.getElementById(n).getBBox(),o=r.position(),s=t.scale,l=o.left+a.width/2*s-i.width()/2,u=o.top+a.height/2*s-i.height()/2;i.css("left",l).css("top",u)})},r.prototype.removePin=function(t){t=t.toLowerCase(),jQuery("#"+this.getPinId(t)).remove()},r.prototype.removePins=function(){this.container.find(".jqvmap-pin").remove()},r.prototype.reset=function(){for(var t in this.countries)this.countries[t].setFill(this.color);this.scale=this.baseScale,this.transX=this.baseTransX,this.transY=this.baseTransY,this.applyTransform()},r.prototype.resize=function(){var t=this.baseScale;this.width/this.height>this.defaultWidth/this.defaultHeight?(this.baseScale=this.height/this.defaultHeight,this.baseTransX=Math.abs(this.width-this.defaultWidth*this.baseScale)/(2*this.baseScale)):(this.baseScale=this.width/this.defaultWidth,this.baseTransY=Math.abs(this.height-this.defaultHeight*this.baseScale)/(2*this.baseScale)), this.scale*=this.baseScale/t,this.transX*=this.baseScale/t,this.transY*=this.baseScale/t},r.prototype.select=function(t,e){t=t.toLowerCase(),e=e||jQuery("#"+this.getCountryId(t))[0],this.isSelected(t)||(this.multiSelectRegion?this.selectedRegions.push(t):this.selectedRegions=[t],jQuery(this.container).trigger("regionSelect.jqvmap",[t]),this.selectedColor&&e&&(e.currentFillColor=this.selectedColor,e.setFill(this.selectedColor)))},r.prototype.selectIndex=function(t){t=t.toLowerCase();for(var e=0;e<this.selectedRegions.length;e++)if(t===this.selectedRegions[e])return e;return-1},r.prototype.setBackgroundColor=function(t){this.container.css("background-color",t)},r.prototype.setColors=function(t,e){if("string"==typeof t)this.countries[t].setFill(e),this.countries[t].setAttribute("original",e);else{var i=t;for(var n in i)this.countries[n]&&(this.countries[n].setFill(i[n]),this.countries[n].setAttribute("original",i[n]))}},r.prototype.setNormalizeFunction=function(t){this.colorScale.setNormalizeFunction(t),this.values&&this.setValues(this.values)},r.prototype.setScale=function(t){this.scale=t,this.applyTransform()},r.prototype.setScaleColors=function(t){this.colorScale.setColors(t),this.values&&this.setValues(this.values)},r.prototype.setValues=function(t){var e,i=0,n=Number.MAX_VALUE;for(var r in t)r=r.toLowerCase(),e=parseFloat(t[r]),isNaN(e)||(e>i&&(i=t[r]),n>e&&(n=e));n===i&&i++,this.colorScale.setMin(n),this.colorScale.setMax(i);var a={};for(r in t)r=r.toLowerCase(),e=parseFloat(t[r]),a[r]=isNaN(e)?this.color:this.colorScale.getColor(e);this.setColors(a),this.values=t},r.prototype.unhighlight=function(t,e){t=t.toLowerCase(),e=e||jQuery("#"+this.getCountryId(t))[0],e.setOpacity(1),e.currentFillColor&&e.setFill(e.currentFillColor)},r.prototype.zoomIn=function(){var t=this,e=(jQuery("#zoom").innerHeight()-12-30-6-7-6)/(this.zoomMaxStep-this.zoomCurStep);if(t.zoomCurStep<t.zoomMaxStep){t.transX-=(t.width/t.scale-t.width/(t.scale*t.zoomStep))/2,t.transY-=(t.height/t.scale-t.height/(t.scale*t.zoomStep))/2,t.setScale(t.scale*t.zoomStep),t.zoomCurStep++;var i=jQuery("#zoomSlider");i.css("top",parseInt(i.css("top"),10)-e),t.container.trigger("zoomIn")}},r.prototype.zoomOut=function(){var t=this,e=(jQuery("#zoom").innerHeight()-12-30-6-7-6)/(this.zoomMaxStep-this.zoomCurStep);if(t.zoomCurStep>1){t.transX+=(t.width/(t.scale/t.zoomStep)-t.width/t.scale)/2,t.transY+=(t.height/(t.scale/t.zoomStep)-t.height/t.scale)/2,t.setScale(t.scale/t.zoomStep),t.zoomCurStep--;var i=jQuery("#zoomSlider");i.css("top",parseInt(i.css("top"),10)+e),t.container.trigger("zoomOut")}},i.prototype.applyTransformParams=function(t,e,i){"svg"===this.mode?this.rootGroup.setAttribute("transform","scale("+t+") translate("+e+", "+i+")"):(this.rootGroup.coordorigin=this.width-e+","+(this.height-i),this.rootGroup.coordsize=this.width/t+","+this.height/t)},i.prototype.createGroup=function(t){var e;return"svg"===this.mode?e=this.createSvgNode("g"):(e=this.createVmlNode("group"),e.style.width=this.width+"px",e.style.height=this.height+"px",e.style.left="0px",e.style.top="0px",e.coordorigin="0 0",e.coordsize=this.width+" "+this.height),t&&(this.rootGroup=e),e},i.prototype.createPath=function(t){var e;if("svg"===this.mode)e=this.createSvgNode("path"),e.setAttribute("d",t.path),null!==this.params.borderColor&&e.setAttribute("stroke",this.params.borderColor),this.params.borderWidth>0&&(e.setAttribute("stroke-width",this.params.borderWidth),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round")),this.params.borderOpacity>0&&e.setAttribute("stroke-opacity",this.params.borderOpacity),e.setFill=function(t){this.setAttribute("fill",t),null===this.getAttribute("original")&&this.setAttribute("original",t)},e.getFill=function(){return this.getAttribute("fill")},e.getOriginalFill=function(){return this.getAttribute("original")},e.setOpacity=function(t){this.setAttribute("fill-opacity",t)};else{e=this.createVmlNode("shape"),e.coordorigin="0 0",e.coordsize=this.width+" "+this.height,e.style.width=this.width+"px",e.style.height=this.height+"px",e.fillcolor=r.defaultFillColor,e.stroked=!1,e.path=i.pathSvgToVml(t.path);var n=this.createVmlNode("skew");n.on=!0,n.matrix="0.01,0,0,0.01,0,0",n.offset="0,0",e.appendChild(n);var a=this.createVmlNode("fill");e.appendChild(a),e.setFill=function(t){this.getElementsByTagName("fill")[0].color=t,null===this.getAttribute("original")&&this.setAttribute("original",t)},e.getFill=function(){return this.getElementsByTagName("fill")[0].color},e.getOriginalFill=function(){return this.getAttribute("original")},e.setOpacity=function(t){this.getElementsByTagName("fill")[0].opacity=parseInt(100*t,10)+"%"}}return e},i.prototype.pathSvgToVml=function(t){var e,i,n="",r=0,a=0;return t.replace(/([MmLlHhVvCcSs])((?:-?(?:\d+)?(?:\.\d+)?,?\s?)+)/g,function(t,o,s){s=s.replace(/(\d)-/g,"$1,-").replace(/\s+/g,",").split(","),s[0]||s.shift();for(var l=0,u=s.length;u>l;l++)s[l]=Math.round(100*s[l]);switch(o){case"m":r+=s[0],a+=s[1],n="t"+s.join(",");break;case"M":r=s[0],a=s[1],n="m"+s.join(",");break;case"l":r+=s[0],a+=s[1],n="r"+s.join(",");break;case"L":r=s[0],a=s[1],n="l"+s.join(",");break;case"h":r+=s[0],n="r"+s[0]+",0";break;case"H":r=s[0],n="l"+r+","+a;break;case"v":a+=s[0],n="r0,"+s[0];break;case"V":a=s[0],n="l"+r+","+a;break;case"c":e=r+s[s.length-4],i=a+s[s.length-3],r+=s[s.length-2],a+=s[s.length-1],n="v"+s.join(",");break;case"C":e=s[s.length-4],i=s[s.length-3],r=s[s.length-2],a=s[s.length-1],n="c"+s.join(",");break;case"s":s.unshift(a-i),s.unshift(r-e),e=r+s[s.length-4],i=a+s[s.length-3],r+=s[s.length-2],a+=s[s.length-1],n="v"+s.join(",");break;case"S":s.unshift(a+a-i),s.unshift(r+r-e),e=s[s.length-4],i=s[s.length-3],r=s[s.length-2],a=s[s.length-1],n="c"+s.join(",")}return n}).replace(/z/g,"")},i.prototype.setSize=function(t,e){if("svg"===this.mode)this.canvas.setAttribute("width",t),this.canvas.setAttribute("height",e);else if(this.canvas.style.width=t+"px",this.canvas.style.height=e+"px",this.canvas.coordsize=t+" "+e,this.canvas.coordorigin="0 0",this.rootGroup){for(var i=this.rootGroup.getElementsByTagName("shape"),n=0,r=i.length;r>n;n++)i[n].coordsize=t+" "+e,i[n].style.width=t+"px",i[n].style.height=e+"px";this.rootGroup.coordsize=t+" "+e,this.rootGroup.style.width=t+"px",this.rootGroup.style.height=e+"px"}this.width=t,this.height=e}},function(t,e){jQuery.fn.vectorMap("addMap","world_en",{width:950,height:550,paths:{id:{path:"M781.68,324.4l-2.31,8.68l-12.53,4.23l-3.75-4.4l-1.82,0.5l3.4,13.12l5.09,0.57l6.79,2.57v2.57l3.11-0.57l4.53-6.27v-5.13l2.55-5.13l2.83,0.57l-3.4-7.13l-0.52-4.59L781.68,324.4L781.68,324.4M722.48,317.57l-0.28,2.28l6.79,11.41h1.98l14.15,23.67l5.66,0.57l2.83-8.27l-4.53-2.85l-0.85-4.56L722.48,317.57L722.48,317.57M789.53,349.11l2.26,2.77l-1.47,4.16v0.79h3.34l1.18-10.4l1.08,0.3l1.96,9.5l1.87,0.5l1.77-4.06l-1.77-6.14l-1.47-2.67l4.62-3.37l-1.08-1.49l-4.42,2.87h-1.18l-2.16-3.17l0.69-1.39l3.64-1.78l5.5,1.68l1.67-0.1l4.13-3.86l-1.67-1.68l-3.83,2.97h-2.46l-3.73-1.78l-2.65,0.1l-2.95,4.75l-1.87,8.22L789.53,349.11L789.53,349.11M814.19,330.5l-1.87,4.55l2.95,3.86h0.98l1.28-2.57l0.69-0.89l-1.28-1.39l-1.87-0.69L814.19,330.5L814.19,330.5M819.99,345.45l-4.03,0.89l-1.18,1.29l0.98,1.68l2.65-0.99l1.67-0.99l2.46,1.98l1.08-0.89l-1.96-2.38L819.99,345.45L819.99,345.45M753.17,358.32l-2.75,1.88l0.59,1.58l8.75,1.98l4.42,0.79l1.87,1.98l5.01,0.4l2.36,1.98l2.16-0.5l1.97-1.78l-3.64-1.68l-3.14-2.67l-8.16-1.98L753.17,358.32L753.17,358.32M781.77,366.93l-2.16,1.19l1.28,1.39l3.14-1.19L781.77,366.93L781.77,366.93M785.5,366.04l0.39,1.88l2.26,0.59l0.88-1.09l-0.98-1.49L785.5,366.04L785.5,366.04M790.91,370.99l-2.75,0.4l2.46,2.08h1.96L790.91,370.99L790.91,370.99M791.69,367.72l-0.59,1.19l4.42,0.69l3.44-1.98l-1.96-0.59l-3.14,0.89l-1.18-0.99L791.69,367.72L791.69,367.72M831.93,339.34l-4.17,0.47l-2.68,1.96l1.11,2.24l4.54,0.84v0.84l-2.87,2.33l1.39,4.85l1.39,0.09l1.2-4.76h2.22l0.93,4.66l10.83,8.96l0.28,7l3.7,4.01l1.67-0.09l0.37-24.72l-6.29-4.38l-5.93,4.01l-2.13,1.31l-3.52-2.24l-0.09-7.09L831.93,339.34L831.93,339.34z",name:"Indonesia"},pg:{path:"M852.76,348.29l-0.37,24.44l3.52-0.19l4.63-5.41l3.89,0.19l2.5,2.24l0.83,6.9l7.96,4.2l2.04-0.75v-2.52l-6.39-5.32l-3.15-7.28l2.5-1.21l-1.85-4.01l-3.7-0.09l-0.93-4.29l-9.81-6.62L852.76,348.29L852.76,348.29M880.48,349l-0.88,1.25l4.81,4.26l0.66,2.5l1.31-0.15l0.15-2.57l-1.46-1.32L880.48,349L880.48,349M882.89,355.03l-0.95,0.22l-0.58,2.57l-1.82,1.18l-5.47,0.96l0.22,2.06l5.76-0.29l3.65-2.28l-0.22-3.97L882.89,355.03L882.89,355.03M889.38,359.51l1.24,3.45l2.19,2.13l0.66-0.59l-0.22-2.28l-2.48-3.01L889.38,359.51L889.38,359.51z",name:"Papua New Guinea"},mx:{path:"M137.49,225.43l4.83,15.21l-2.25,1.26l0.25,3.02l4.25,3.27v6.05l5.25,5.04l-2.25-14.86l-3-9.83l0.75-6.8l2.5,0.25l1,2.27l-1,5.79l13,25.44v9.07l10.5,12.34l11.5,5.29l4.75-2.77l6.75,5.54l4-4.03l-1.75-4.54l5.75-1.76l1.75,1.01l1.75-1.76h2.75l5-8.82l-2.5-2.27l-9.75,2.27l-2.25,6.55l-5.75,1.01l-6.75-2.77l-3-9.57l2.27-12.07l-4.64-2.89l-2.21-11.59l-1.85-0.79l-3.38,3.43l-3.88-2.07l-1.52-7.73l-15.37-1.61l-7.94-5.97L137.49,225.43L137.49,225.43z",name:"Mexico"},ee:{path:"M517.77,143.66l-5.6-0.2l-3.55,2.17l-0.05,1.61l2.3,2.17l7.15,1.21L517.77,143.66L517.77,143.66M506.76,147.64l-1.55-0.05l-0.9,0.91l0.65,0.96l1.55,0.1l0.8-1.16L506.76,147.64L506.76,147.64z",name:"Estonia"},dz:{path:"M473.88,227.49l-4.08-1.37l-16.98,3.19l-3.7,2.81l2.26,11.67l-6.75,0.27l-4.06,6.53l-9.67,2.32l0.03,4.75l31.85,24.35l5.43,0.46l18.11-14.15l-1.81-2.28l-3.4-0.46l-2.04-3.42v-14.15l-1.36-1.37l0.23-3.65l-3.62-3.65l-0.45-3.88l1.58-1.14l-0.68-4.11L473.88,227.49L473.88,227.49z",name:"Algeria"},ma:{path:"M448.29,232.28h-11.55l-2.26,5.02l-5.21,2.51l-4.3,11.64l-8.38,5.02l-11.77,19.39l11.55-0.23l0.45-5.7h2.94v-7.76h10.19l0.23-10.04l9.74-2.28l4.08-6.62l6.34-0.23L448.29,232.28L448.29,232.28z",name:"Morocco"},mr:{path:"M404.9,276.66l2.18,2.85l-0.45,12.32l3.17-2.28l2.26-0.46l3.17,1.14l3.62,5.02l3.4-2.28l16.53-0.23l-4.08-27.61l4.38-0.02l-8.16-6.25l0.01,4.06l-10.33,0.01l-0.05,7.75l-2.97-0.01l-0.38,5.72L404.9,276.66L404.9,276.66z",name:"Mauritania"},sn:{path:"M412.03,289.84L410.12,290.31L406.18,293.18L405.28,294.78L405,296.37L406.43,297.40L411.28,297.34L414.40,296.5L414.75,298.03L414.46,300.06L414.53,300.09L406.78,300.21L408.03,303.21L408.71,301.37L418,302.15L418.06,302.21L419.03,302.25L422,302.37L422.12,300.62L418.53,296.31L414.53,290.87L412.03,289.84z",name:"Senegal"},gm:{path:"M406.89,298.34l-0.13,1.11l6.92-0.1l0.35-1.03l-0.15-1.04l-1.99,0.81L406.89,298.34L406.89,298.34z",name:"Gambia"},gw:{path:"M408.6,304.53l1.4,2.77l3.93-3.38l0.04-1.04l-4.63-0.67L408.6,304.53L408.6,304.53z",name:"Guinea-Bissau"},gn:{path:"M410.42,307.94l3.04,4.68l3.96-3.44l4.06-0.18l3.38,4.49l2.87,1.89l1.08-2.1l0.96-0.54l-0.07-4.62l-1.91-5.48l-5.86,0.65l-7.25-0.58l-0.04,1.86L410.42,307.94L410.42,307.94z",name:"Guinea"},sl:{path:"M413.93,313.13l5.65,5.46l4.03-4.89l-2.52-3.95l-3.47,0.35L413.93,313.13L413.93,313.13z",name:"Sierra Leone"},lr:{path:"M420.17,319.19l10.98,7.34l-0.26-5.56l-3.32-3.91l-3.24-2.87L420.17,319.19L420.17,319.19z",name:"Liberia"},ci:{path:"M432.07,326.75l4.28-3.03l5.32-0.93l5.43,1.17l-2.77-4.19l-0.81-2.56l0.81-7.57l-4.85,0.23l-2.2-2.1l-4.62,0.12l-2.2,0.35l0.23,5.12l-1.16,0.47l-1.39,2.56l3.58,4.19L432.07,326.75L432.07,326.75z",name:"Cote d'Ivoire"},ml:{path:"M419.46,295.84l3.08-2.11l17.12-0.1l-3.96-27.54l4.52-0.13l21.87,16.69l2.94,0.42l-1.11,9.28l-13.75,1.25l-10.61,7.92l-1.93,5.42l-7.37,0.31l-1.88-5.41l-5.65,0.4l0.22-1.77L419.46,295.84L419.46,295.84z",name:"Mali"},bf:{path:"M450.59,294.28l3.64-0.29l5.97,8.44l-5.54,4.18l-4.01-1.03l-5.39,0.07l-0.87,3.16l-4.52,0.22l-1.24-1.69l1.6-5.14L450.59,294.28L450.59,294.28z",name:"Burkina Faso"},ne:{path:"M460.89,302l2.55-0.06l2.3-3.45l3.86-0.69l4.11,2.51l8.77,0.25l6.78-2.76l2.55-2.19l0.19-2.88l4.73-4.77l1.25-10.53l-3.11-6.52l-7.96-1.94l-18.42,14.36l-2.61-0.25l-1.12,9.97l-9.4,0.94L460.89,302L460.89,302z",name:"Niger"},gh:{path:"M444.34,317.05l1.12,2.63l2.92,4.58l1.62-0.06l4.42-2.51l-0.31-14.29l-3.42-1l-4.79,0.13L444.34,317.05L444.34,317.05z",name:"Ghana"},tg:{path:"M455.22,321.25l2.68-1.57l-0.06-10.35l-1.74-2.82l-1.12,0.94L455.22,321.25L455.22,321.25z",name:"Togo"},bj:{path:"M458.71,319.49h2.12l0.12-6.02l2.68-3.89l-0.12-6.77l-2.43-0.06l-4.17,3.26l1.74,3.32L458.71,319.49L458.71,319.49z",name:"Benin"},ng:{path:"M461.57,319.37l3.92,0.19l4.73,5.27l2.3,0.63l1.8-0.88l2.74-0.38l0.93-3.82l3.73-2.45l4.04-0.19l7.4-13.61l-0.12-3.07l-3.42-2.63l-6.84,3.01l-9.15-0.13l-4.36-2.76l-3.11,0.69l-1.62,2.82l-0.12,7.96l-2.61,3.7L461.57,319.37L461.57,319.37z",name:"Nigeria"},tn:{path:"M474.91,227.33l5.53-2.23l1.82,1.18l0.07,1.44l-0.85,1.11l0.13,1.97l0.85,0.46v3.54l-0.98,1.64l0.13,1.05l3.71,1.31l-2.99,4.65l-1.17-0.07l-0.2,3.74l-1.3,0.2l-1.11-0.98l0.26-3.8l-3.64-3.54l-0.46-3.08l1.76-1.38L474.91,227.33L474.91,227.33z",name:"Tunisia"},ly:{path:"M480.05,248.03l1.56-0.26l0.46-3.6h0.78l3.19-5.24l7.87,2.29l2.15,3.34l7.74,3.54l4.03-1.7l-0.39-1.7l-1.76-1.7l0.2-1.18l2.86-2.42h5.66l2.15,2.88l4.55,0.66l0.59,36.89l-3.38-0.13l-20.42-10.62l-2.21,1.25l-8.39-2.1l-2.28-3.01l-3.32-0.46l-1.69-3.01L480.05,248.03L480.05,248.03z",name:"Libya"},eg:{path:"M521.93,243.06l2.67,0.07l5.2,1.44l2.47,0.07l3.06-2.56h1.43l2.6,1.44h3.29l0.59-0.04l2.08,5.98l0.59,1.93l0.55,2.89l-0.98,0.72l-1.69-0.85l-1.95-6.36l-1.76-0.13l-0.13,2.16l1.17,3.74l9.37,11.6l0.2,4.98l-2.73,3.15L522.32,273L521.93,243.06L521.93,243.06z",name:"Egypt"},td:{path:"M492.79,296l0.13-2.95l4.74-4.61l1.27-11.32l-3.16-6.04l2.21-1.13l21.4,11.15l-0.13,10.94l-3.77,3.21v5.64l2.47,4.78h-4.36l-7.22,7.14l-0.19,2.16l-5.33-0.07l-0.07,0.98l-3.04-0.4l-2.08-3.93l-1.56-0.77l0.2-1.2l1.96-1.5v-7.02l-2.71-0.42l-3.27-2.43L492.79,296L492.79,296L492.79,296z",name:"Chad"},sd:{path:"M520.15,292.43l0.18-11.83l2.46,0.07l-0.28-6.57l25.8,0.23l3.69-3.72l7.96,12.73l-4.36,5.14v7.85l-6.86,14.75l-2.36,1.04l0.75,4.11h2.94l3.99,5.79l-3.2,0.41l-0.82,1.49l-0.08,2.15l-9.6-0.17l-0.98-1.49l-6.71-0.38l-12.32-12.68l1.23-0.74l0.33-2.98l-2.95-1.74l-2.69-5.31l0.15-4.94L520.15,292.43L520.15,292.43z",name:"Sudan"},cm:{path:"M477.82,324.28l3.22,2.96l-0.23,4.58l17.66-0.41l1.44-1.62l-5.06-5.45l-0.75-1.97l3.22-6.03l-2.19-4l-1.84-0.99v-2.03l2.13-1.39l0.12-6.32l-1.69-0.19l-0.03,3.32l-7.42,13.85l-4.54,0.23l-3.11,2.14L477.82,324.28L477.82,324.28z",name:"Cameroon"},er:{path:"M556.71,294.7l-0.25-5.89l3.96-4.62l1.07,0.82l1.95,6.52l9.36,6.97l-1.7,2.09l-6.85-5.89H556.71L556.71,294.7z",name:"Eritrea"},dj:{path:"M571.48,301.54l-0.57,3.36l3.96-0.06l0.06-4.94l-1.45-0.89L571.48,301.54L571.48,301.54z",name:"Djibouti"},et:{path:"M549.49,311.76l7.28-16.2l7.23,0.04l6.41,5.57l-0.45,4.59h4.97l0.51,2.76l8.04,4.81l4.96,0.25l-9.43,10.13l-12.95,3.99h-3.21l-5.72-4.88l-2.26-0.95l-4.38-6.45l-2.89,0.04l-0.34-2.96L549.49,311.76L549.49,311.76z",name:"Ethiopia"},so:{path:"M575.74,305.04l4.08,2.78l1.21-0.06l10.13-3.48l1.15,3.71l-0.81,3.13l-2.19,1.74l-5.47-0.35l-7.83-4.81L575.74,305.04L575.74,305.04M591.97,304.05l4.37-1.68l1.55,0.93l-0.17,3.88l-4.03,11.48l-21.81,23.36l-2.53-1.74l-0.17-9.86l3.28-3.77l6.96-2.15l10.21-10.78l2.67-2.38l0.75-3.48L591.97,304.05L591.97,304.05z",name:"Somalia"},ye:{path:"M599.62,299.65l2.13,2.38l2.88-1.74l1.04-0.35l-1.32-1.28l-2.53,0.75L599.62,299.65L599.62,299.65M571.99,289.23l1.44,4.28v4.18l3.46,3.14l24.38-9.93l0.23-2.73l-3.91-7.02l-9.81,3.13l-5.63,5.54l-6.53-3.86L571.99,289.23L571.99,289.23z",name:"Yemen"},cf:{path:"M495.66,324.05l4.66,5.04l1.84-2.38l2.93,0.12l0.63-2.32l2.88-1.8l5.98,4.12l3.45-3.42l13.39,0.59L519,311.18l1.67-1.04l0.23-2.26l-2.82-1.33h-4.14l-6.67,6.61l-0.23,2.72l-5.29-0.17l-0.17,1.16l-3.45-0.35l-3.11,5.91L495.66,324.05L495.66,324.05z",name:"Central African Republic"},st:{path:"M470.74,337.15l1.15-0.58l0.86,0.7l-0.86,1.33l-1.04-0.41L470.74,337.15L470.74,337.15M473.05,333.5l1.73-0.29l0.58,1.1l-0.86,0.93l-0.86-0.12L473.05,333.5L473.05,333.5z",name:"Sao Tome and Principe"},gq:{path:"M476.84,327.41l-0.46,1.97l1.38,0.75l1.32-0.99l-0.46-2.03L476.84,327.41L476.84,327.41M480.99,332.69l-0.06,1.39l4.54,0.23l-0.06-1.57L480.99,332.69L480.99,332.69z",name:"Equatorial Guinea"},ga:{path:"M486.39,332.63l-0.12,2.49l-5.64-0.12l-3.45,6.67l8.11,8.87l2.01-1.68l-0.06-1.74l-1.38-0.64v-1.22l3.11-1.97l2.76,2.09l3.05,0.06l-0.06-10.49l-4.83-0.23l-0.06-2.2L486.39,332.63L486.39,332.63z",name:"Gabon"},cg:{path:"M491,332.52l-0.06,1.45l4.78,0.12l0.17,12.41l-4.37-0.12l-2.53-1.97l-1.96,1.1l-0.09,0.55l1.01,0.49l0.29,2.55l-2.7,2.32l0.58,1.22l2.99-2.32h1.44l0.46,1.39l1.9,0.81l6.1-5.16l-0.12-3.77l1.27-3.07l3.91-2.9l1.05-9.81l-2.78,0.01l-3.22,4.41L491,332.52L491,332.52z",name:"Congo"},ao:{path:"M486.55,353.23l1.74,2.26l2.25-2.13l-0.66-2.21l-0.56-0.04L486.55,353.23L486.55,353.23M488.62,356.71l3.41,12.73l-0.08,4.02l-4.99,5.36l-0.75,8.71l19.2,0.17l6.24,2.26l5.15-0.67l-3-3.76l0.01-10.74l5.9-0.25v-4.19l-4.79-0.2l-0.96-9.92l-2.02,0.03l-1.09-0.98l-1.19,0.06l-1.58,3.06H502l-1.41-1.42l0.42-2.01l-1.66-2.43L488.62,356.71L488.62,356.71z",name:"Angola"},cd:{path:"M489.38,355.71l10.31-0.18l2.09,2.97l-0.08,2.19l0.77,0.7h5.12l1.47-2.89h2.09l0.85,0.86l2.87-0.08l0.85,10.08l4.96,0.16v0.78l13.33,6.01l0.62,1.17h2.79l-0.31-4.22l-5.04-2.42l0.31-3.2l2.17-5.08l4.96-0.16l-4.26-14.14l0.08-6.01l6.74-10.54l0.08-1.48l-1.01-0.55l0.04-2.86l-1.23-0.11l-1.24-1.58l-20.35-0.92l-3.73,3.63l-6.11-4.02l-2.15,1.32l-1.56,13.13l-3.86,2.98l-1.16,2.64l0.21,3.91l-6.96,5.69l-1.85-0.84l0.25,1.09L489.38,355.71L489.38,355.71z",name:"Congo"},rw:{path:"M537.82,339.9l2.81,2.59l-0.12,2.77l-4.36,0.09v-3.06L537.82,339.9L537.82,339.9z",name:"Rwanda"},bi:{path:"M536.21,346.21l4.27-0.09l-1.11,3.74l-1.08,0.94h-1.32l-0.94-2.53L536.21,346.21L536.21,346.21z",name:"Burundi"},ug:{path:"M538.3,339.09l3.03,2.84l1.9-1.21l5.14-0.84l0.88,0.09l0.33-1.95l2.9-6.1l-2.44-5.08l-7.91,0.05l-0.05,2.09l1.06,1.02l-0.16,2.09L538.3,339.09L538.3,339.09z",name:"Uganda"},ke:{path:"M550.83,326.52l2.66,5.19l-3.19,6.69l-0.42,2.03l15.93,9.85l4.94-7.76l-2.5-2.03l-0.05-10.22l3.13-3.42l-4.99,1.66l-3.77,0.05l-5.9-4.98l-1.86-0.8l-3.45,0.32l-0.61,1.02L550.83,326.52L550.83,326.52z",name:"Kenya"},tz:{path:"M550.57,371.42l17.47-2.14l-3.93-7.6l-0.21-7.28l1.27-3.48l-16.62-10.44l-5.21,0.86l-1.81,1.34l-0.16,3.05l-1.17,4.23l-1.22,1.45l-1.75,0.16l3.35,11.61l5.47,2.57l3.77,0.11L550.57,371.42L550.57,371.42z",name:"Tanzania"},zm:{path:"M514.55,384.7l3.17,4.4l4.91,0.3l1.74,0.96l5.14,0.06l4.43-6.21l12.38-5.54l1.08-4.88l-1.44-6.99l-6.46-3.68l-4.31,0.3l-2.15,4.76l0.06,2.17l5.08,2.47l0.3,5.37l-4.37,0.24l-1.08-1.81l-12.14-5.18l-0.36,3.98l-5.74,0.18L514.55,384.7L514.55,384.7z",name:"Zambia"},mw:{path:"M547.16,379.4l3.11,3.25l-0.06,4.16l0.6,1.75l4.13-4.46l-0.48-5.67l-2.21-1.69l-1.97-9.95l-3.41-0.12l1.55,7.17L547.16,379.4L547.16,379.4z",name:"Malawi"},mz:{path:"M541.17,413.28l2.69,2.23l6.34-3.86l1.02-5.73v-9.46l10.17-8.32l1.74,0.06l6.16-5.91l-0.96-12.18L552,372.17l0.48,3.68l2.81,2.17l0.66,6.63l-5.5,5.37l-1.32-3.01l0.24-3.98l-3.17-3.44l-7.78,3.62l7.24,3.68l0.24,10.73l-4.79,7.11L541.17,413.28L541.17,413.28z",name:"Mozambique"},zw:{path:"M524.66,392.3l8.97,10.13l6.88,1.75l4.61-7.23l-0.36-9.58l-7.48-3.86l-2.81,1.27l-4.19,6.39l-5.8-0.06L524.66,392.3L524.66,392.3z",name:"Zimbabwe"},na:{path:"M496.55,421.96l3.35,0.24l1.97,1.99l4.67,0.06l1.14-13.26v-8.68l2.99-0.6l1.14-9.1l7.6-0.24l2.69-2.23l-4.55-0.18l-6.16,0.84l-6.64-2.41h-18.66l0.48,5.3l6.22,9.16l-1.08,4.7l0.06,2.47L496.55,421.96L496.55,421.96z",name:"Namibia"},bw:{path:"M508.51,411.23l2.15,0.66l-0.3,6.15l2.21,0.3l5.08-4.58l6.1,0.66l1.62-4.1l7.72-7.05l-9.27-10.67l-0.12-1.75l-1.02-0.3l-2.81,2.59l-7.3,0.18l-1.02,9.1l-2.87,0.66L508.51,411.23L508.51,411.23z",name:"Botswana"},sz:{path:"M540.87,414l-2.51,0.42l-1.08,2.95l1.92,1.75h2.33l1.97-2.83L540.87,414L540.87,414z",name:"Swaziland"},ls:{path:"M527.41,425.39l3.05-2.35l1.44,0.06l1.74,2.17l-0.18,2.17l-2.93,1.08v0.84l-3.23-0.18l-0.78-2.35L527.41,425.39L527.41,425.39z",name:"Lesotho"},za:{path:"M534.16,403.63l-7.9,7.3l-1.88,4.51l-6.26-0.78l-5.21,4.63l-3.46-0.34l0.28-6.4l-1.23-0.43l-0.86,13.09l-6.14-0.06l-1.85-2.18l-2.71-0.03l2.47,7.09l4.41,4.17l-3.15,3.67l2.04,4.6l4.72,1.8l3.76-3.2l10.77,0.06l0.77-0.96l4.78-0.84l16.17-16.1l-0.06-5.07l-1.73,2.24h-2.59l-3.15-2.64l1.6-3.98l2.75-0.56l-0.25-8.18L534.16,403.63L534.16,403.63z M530.37,422.13l1.51-0.06l2.45,2.66l-0.07,3.08l-2.87,1.45l-0.18,1.02l-4.38,0.05l-1.37-3.3l1.25-2.42L530.37,422.13L530.37,422.13z",name:"South Africa"},gl:{path:"M321.13,50.07l-1.36,2.17l2.45,2.45l-1.09,2.45l3.54,4.62l4.35-1.36l5.71-0.54l6.53,7.07l4.35,11.69l-3.53,7.34l4.89-0.82l2.72,1.63l0.27,3.54l-5.98,0.27l3.26,3.26l4.08,0.82l-8.97,11.96l-1.09,7.34l1.9,5.98l-1.36,3.54l2.45,7.61l4.62,5.17l1.36-0.27l2.99-0.82l0.27,4.35l1.9,2.72l3.53-0.27l2.72-10.06l8.16-10.06l12.24-4.89l7.61-9.52l3.53,1.63h7.34l5.98-5.98l7.34-2.99l0.82-4.62l-4.62-4.08l-4.08-1.36l-2.18-5.71l5.17-2.99l8.16,4.35l2.72-2.99l-4.35-2.45l9.25-12.51l-1.63-5.44l-4.35-0.27l1.63-4.89l5.44-2.45l11.15-9.79l-3.26-3.53l-12.51,1.09l-6.53,6.53l3.81-8.43l-4.35-1.09l-2.45,4.35l-3.53-2.99l-9.79,1.09l2.72-4.35l16.04-0.54l-4.08-5.44l-17.4-3.26l-7.07,1.09l0.27,3.54l-7.34-2.45l0.27-2.45l-5.17,1.09l-1.09,2.72l5.44,1.9l-5.71,4.08l-4.08-4.62l-5.71-1.63l-0.82,4.35h-5.71l-2.18-4.62l-8.97-1.36l-4.89,2.45l-0.27,3.26l-6.25-0.82l-3.81,1.63l0.27,3.81v1.9l-7.07,1.36l-3.26-2.17l-2.18,3.53l3.26,3.54l6.8-0.82l0.54,2.18l-5.17,2.45L321.13,50.07L321.13,50.07M342.89,92.49l1.63,2.45l-0.82,2.99h-1.63l-2.18-2.45l0.54-1.9L342.89,92.49L342.89,92.49M410.87,85.69l4.62,1.36l-0.27,3.81l-4.89-2.45l-1.09-1.36L410.87,85.69L410.87,85.69z",name:"Greenland"},au:{path:"M761.17,427.98l-0.35,25.38l-3.9,2.86l-0.35,2.5l5.32,3.57l13.13-2.5h6.74l2.48-3.58l14.9-2.86l10.64,3.22l-0.71,4.29l1.42,4.29l8.16-1.43l0.35,2.14l-5.32,3.93l1.77,1.43l3.9-1.43l-1.06,11.8l7.45,5.72l4.26-1.43l2.13,2.14l12.42-1.79l11.71-18.95l4.26-1.07l8.51-15.73l2.13-13.58l-5.32-6.79l2.13-1.43l-4.26-13.23l-4.61-3.22l0.71-17.87l-4.26-3.22l-1.06-10.01h-2.13l-7.1,23.59l-3.9,0.36l-8.87-8.94l4.97-13.23l-9.22-1.79l-10.29,2.86l-2.84,8.22l-4.61,1.07l-0.35-5.72l-18.8,11.44l0.35,4.29l-2.84,3.93h-7.1l-15.26,6.43L761.17,427.98L761.17,427.98M825.74,496.26l-1.77,7.15l0.35,5l5.32-0.36l6.03-9.29L825.74,496.26L825.74,496.26z",name:"Australia"},nz:{path:"M913.02,481.96l1.06,11.8l-1.42,5.36l-5.32,3.93l0.35,4.65v5l1.42,1.79l14.55-12.51v-2.86h-3.55l-4.97-16.8L913.02,481.96L913.02,481.96M902.38,507.7l2.84,5.36l-7.81,7.51l-0.71,3.93l-5.32,0.71l-8.87,8.22l-8.16-3.93l-0.71-2.86l14.9-6.43L902.38,507.7L902.38,507.7z",name:"New Zealand"},nc:{path:"M906.64,420.47l-0.35,1.79l4.61,6.43l2.48,1.07l0.35-2.5L906.64,420.47L906.64,420.47z",name:"New Caledonia"},my:{path:"M764.14,332.92l3.02,3.49l11.58-4.01l2.29-8.84l5.16-0.37l4.72-3.42l-6.12-4.46l-1.4-2.45l-3.02,5.57l1.11,3.2l-1.84,2.67l-3.47-0.89l-8.41,6.17l0.22,3.57L764.14,332.92L764.14,332.92M732.71,315.45l2.01,4.51l0.45,5.86l2.69,4.17l6.49,3.94l2.46,0.23l-0.45-4.06l-2.13-5.18l-3.12-6.63l-0.26,1.16l-3.76-0.17l-2.7-3.88L732.71,315.45L732.71,315.45z",name:"Malaysia"},bn:{path:"M779.77,319.25l-2.88,3.49l2.36,0.74l1.33-1.86L779.77,319.25L779.77,319.25z",name:"Brunei Darussalam"},tl:{path:"M806.14,368.42l-5.11,4.26l0.49,1.09l2.16-0.4l2.55-2.38l5.01-0.69l-0.98-1.68L806.14,368.42L806.14,368.42z",name:"Timor-Leste"},sb:{path:"M895.43,364.65l0.15,2.28l1.39,1.32l1.31-0.81l-1.17-2.43L895.43,364.65L895.43,364.65M897.18,370.31l-1.17,1.25l1.24,2.28l1.46,0.44l-0.07-1.54L897.18,370.31L897.18,370.31M900.03,368.99l1.02,2.5l1.97,2.35l1.09-1.76l-1.46-2.5L900.03,368.99L900.03,368.99M905.14,372.74l0.58,3.09l1.39,1.91l1.17-2.42L905.14,372.74L905.14,372.74M906.74,379.65l-0.51,0.88l1.68,2.21l1.17,0.07l-0.73-2.87L906.74,379.65L906.74,379.65M903.02,384.05l-1.75,0.81l1.53,2.13l1.31-0.74L903.02,384.05L903.02,384.05z",name:"Solomon Islands"},vu:{path:"M920.87,397.22l-1.24,1.66l0.52,1.87l0.62,0.42l1.13-1.46L920.87,397.22L920.87,397.22M921.49,402.31l0.1,1.35l1.34,0.42l0.93-0.52l-0.93-1.46L921.49,402.31L921.49,402.31M923.45,414.37l-0.62,0.94l0.93,1.04l1.55-0.52L923.45,414.37L923.45,414.37z",name:"Vanuatu"},fj:{path:"M948.62,412.29l-1.24,1.66l-0.1,1.87l1.44,1.46L948.62,412.29L948.62,412.29z",name:"Fiji"},ph:{path:"M789.37,297.53l-0.86,1.64l-0.48,2.02l-4.78,6.07l0.29,1.25l2.01-0.29l6.21-6.94L789.37,297.53L789.37,297.53M797.11,295.22l-0.1,5.01l1.82,1.83l0.67,3.56l1.82,0.39l0.86-2.22l-1.43-1.06l-0.38-6.26L797.11,295.22L797.11,295.22M802.28,297.15l-0.1,4.43l1.05,1.73l1.82-2.12l-0.48-3.85L802.28,297.15L802.28,297.15M803.42,293.29l1.82,2.41l0.86,2.31h1.63l-0.29-3.95l-1.82-1.25L803.42,293.29L803.42,293.29M806.96,302.35l0.38,2.89l-3.35,2.7l-2.77,0.29l-2.96,3.18l0.1,1.45l2.77-0.87l1.91-1.25l1.63,4.14l2.87,2.02l1.15-0.39l1.05-1.25l-2.29-2.31l1.34-1.06l1.53,1.25l1.05-1.73l-1.05-2.12l-0.19-4.72L806.96,302.35L806.96,302.35M791.38,272.97l-2.58,1.83l-0.29,5.78l4.02,7.8l1.34,1.06l1.72-1.16l2.96,0.48l0.57,2.6l2.2,0.19l1.05-1.44l-1.34-1.83l-1.63-1.54l-3.44-0.38l-1.82-2.99l2.1-3.18l0.19-2.79l-1.43-3.56L791.38,272.97L791.38,272.97M792.72,290.21l0.76,2.7l1.34,0.87l0.96-1.25l-1.53-2.12L792.72,290.21L792.72,290.21z",name:"Philippines"},cn:{path:"M759.83,270.17l-2.39,0.67l-1.72,2.12l1.43,2.79l2.1,0.19l2.39-2.12l0.57-2.79L759.83,270.17L759.83,270.17M670.4,170.07l-3.46,8.7l-4.77-0.25l-5.03,11.01l4.27,5.44l-8.8,12.15l-4.52-0.76l-3.02,3.8l0.75,2.28l3.52,0.25l1.76,4.05l3.52,0.76l10.81,13.93v7.09l5.28,3.29l5.78-1.01l7.29,4.3l8.8,2.53l4.27-0.51l4.78-0.51l10.05-6.58l3.27,0.51l1.25,2.97l2.77,0.83l3.77,5.57l-2.51,5.57l1.51,3.8l4.27,1.52l0.75,4.56l5.03,0.51l0.75-2.28l7.29-3.8l4.52,0.25l5.28,5.82l3.52-1.52l2.26,0.25l1.01,2.79l1.76,0.25l2.51-3.54l10.05-3.8l9.05-10.89l3.02-10.38l-0.25-6.84l-3.77-0.76l2.26-2.53l-0.5-4.05l-9.55-9.62v-4.81l2.76-3.54l2.76-1.27l0.25-2.79h-7.04l-1.26,3.8l-3.27-0.76l-4.02-4.3l2.51-6.58l3.52-3.8l3.27,0.25l-0.5,5.82l1.76,1.52l4.27-4.3l1.51-0.25l-0.5-3.29l4.02-4.81l3.02,0.25l1.76-5.57l2.06-1.09l0.21-3.47l-2-2.1l-0.17-5.48l3.85-0.25l-0.25-14.13l-2.7,1.62l-1.01,3.62l-4.51-0.01l-13.07-7.35l-9.44-11.38l-9.58-0.1l-2.44,2.12l3.1,7.1l-1.08,6.66l-3.86,1.6l-2.17-0.17l-0.16,6.59l2.26,0.51l4.02-1.77l5.28,2.53v2.53l-3.77,0.25l-3.02,6.58l-2.76,0.25l-9.8,12.91l-10.3,4.56l-7.04,0.51l-4.77-3.29l-6.79,3.55l-7.29-2.28l-1.76-4.81l-12.31-0.76l-6.53-10.63h-2.76l-2.22-4.93L670.4,170.07z",name:"China"},tw:{path:"M787.46,248.31l-3.54,2.7l-0.19,5.2l3.06,3.56l0.76-0.67L787.46,248.31L787.46,248.31z",name:"Taiwan"},jp:{path:"M803.23,216.42l-1.63,1.64l0.67,2.31l1.43,0.1l0.96,5.01l1.15,1.25l2.01-1.83l0.86-3.28l-2.49-3.56L803.23,216.42L803.23,216.42M812.03,213.15l-2.77,2.6l-0.1,2.99l0.67,0.87l3.73-3.18l-0.29-3.18L812.03,213.15L812.03,213.15M808.2,206.98l-4.88,5.59l0.86,1.35l2.39,0.29l4.49-3.47l3.16-0.58l2.87,3.37l2.2-0.77l0.86-3.28l4.11-0.1l4.02-4.82l-2.1-8l-0.96-4.24l2.1-1.73l-4.78-7.22l-1.24,0.1l-2.58,2.89v2.41l1.15,1.35l0.38,6.36l-2.96,3.66l-1.72-1.06l-1.34,2.99l-0.29,2.79l1.05,1.64l-0.67,1.25l-2.2-1.83h-1.53l-1.34,0.77L808.2,206.98L808.2,206.98M816.43,163.44l-1.53,1.35l0.77,2.89l1.34,1.35l-0.1,4.43l-1.72,0.67l-1.34,2.99l3.92,5.39l2.58-0.87l0.48-1.35l-2.77-2.5l1.72-2.22l1.82,0.29l1.43,1.54l0.1-3.18l3.92-3.18l2.2-0.58l-1.82-3.08l-0.86-1.35l-1.43,0.96l-1.24,1.54l-2.68-0.58l-2.77-1.83L816.43,163.44L816.43,163.44z",name:"Japan"},ru:{path:"M506.61,151.72l-1.5-0.15l-2.7,3.23v1.51l0.9,0.35l1.75,0.05l2.9-2.37l0.4-0.81L506.61,151.72L506.61,151.72M830.86,160.45l-2.68,3.76l0.19,1.83l1.34-0.58l3.15-3.95L830.86,160.45L830.86,160.45M834.4,154.96l-0.96,2.6l0.1,1.73l1.63-1.06l1.53-3.08V154L834.4,154.96L834.4,154.96M840.04,132.03l-1.24,1.54l0.1,2.41l1.15-0.1l1.91-3.37L840.04,132.03L840.04,132.03M837.75,137.91v4.24l1.34,0.48l0.96-1.54v-3.27L837.75,137.91L837.75,137.91M798.64,122.59l-0.09,6.17l7.74,11.95l2.77,10.4l4.88,9.25l1.91,0.67l1.63-1.35l0.76-2.22l-6.98-7.61l0.19-3.95l1.53-0.67l0.38-2.31l-13.67-19.36L798.64,122.59L798.64,122.59M852.57,103.42l-1.91,0.19l1.15,1.64l2.39,1.64l0.67-0.77L852.57,103.42L852.57,103.42M856.29,104.58l0.29,1.64l2.96,0.87l0.29-1.16L856.29,104.58L856.29,104.58M547.82,38.79l1.72,0.69l-1.21,2.08v2.95l-2.58,1.56H543l-1.55-1.91l0.17-2.08l1.21-1.56h2.41L547.82,38.79L547.82,38.79M554.36,36.88v2.08l1.72,1.39l2.41-0.17l2.07-1.91v-1.39h-1.89l-1.55,0.52l-1.21-1.39L554.36,36.88L554.36,36.88M564.18,37.06l1.21,2.6l2.41,0.17l1.72-0.69l-0.86-2.43l-2.24-0.52L564.18,37.06L564.18,37.06M573.99,33.59l-1.89-0.35l-1.72,1.74l0.86,1.56l0.52,2.43l2.24-1.73l0.52-1.91L573.99,33.59L573.99,33.59M584.49,51.98l-0.52,2.43l-3.96,3.47l-8.44,1.91l-6.89,11.45l-1.21,3.3l6.89,1.74l1.03-4.16l2.07-6.42l5.34-2.78l4.48-3.47l3.27-1.39h1.72v-4.68L584.49,51.98L584.49,51.98M562.28,77.31l4.65,0.52l1.55,5.38l3.96,4.16l-1.38,2.78h-2.41l-2.24-2.6l-4.99-0.17l-2.07-2.78v-1.91l3.1-0.87L562.28,77.31L562.28,77.31M634.95,18.15l-2.24-1.39h-2.58l-0.52,1.56l-2.75,1.56l-2.07,0.69l-0.34,2.08l4.82,0.35L634.95,18.15L634.95,18.15M640.28,18.67l-1.21,2.6l-2.41-0.17l-3.79,2.78l-1.03,3.47h2.41l1.38-2.26l3.27,2.43l3.1-1.39l2.24-1.91l-0.86-2.95l-1.21-2.08L640.28,18.67L640.28,18.67M645.28,20.58l1.21,4.86l1.89,4.51l2.07-3.64l3.96-0.87v-2.6l-2.58-1.91L645.28,20.58L645.28,20.58M739.76,12.8l2.69,2.26l1.91-0.79l0.56-3.17L741,8.39l-2.58,1.7l-6.28,0.57v2.83l-6.62,0.11v4.63l7.74,5.76l2.02-1.47l-0.45-4.07l4.94-1.24l-1.01-1.92l-1.79-1.81L739.76,12.8L739.76,12.8M746.94,10.09l1.79,3.39l6.96-0.79l1.91-2.49l-0.45-2.15l-1.91-0.79l-1.79,1.36l-5.16,1.13L746.94,10.09L746.94,10.09M746.49,23.31l-3.48-0.9L741,24.56l-0.9,2.94l4.71-0.45l3.59-1.81L746.49,23.31L746.49,23.31M836.68,3.76l-2.92-0.9L830.4,4.1l-1.68,2.49l2.13,2.83l5.61-2.49l1.12-1.24L836.68,3.76L836.68,3.76M817.97,72.93l1.76,6.08l3.52,1.01l3.52-5.57l-2.01-3.8l0.75-3.29h5.28l-1.26,2.53l0.5,9.12l-7.54,18.74l0.75,4.05l-0.25,6.84l14.07,20.51l2.76,0.76l0.25-16.71l2.76-2.53l-3.02-6.58l2.51-2.79l-5.53-7.34l-3.02,0.25l-1-12.15l7.79-2.03l0.5-3.55l4.02-1.01l2.26,2.03l2.76-11.14l4.77-8.1l3.77-2.03l3.27,0.25v-3.8l-5.28-1.01l-7.29-6.08l3.52-4.05l-3.02-6.84l2.51-2.53l3.02,4.05l7.54,2.79l8.29,0.76l1.01-3.54l-4.27-4.3l4.77-6.58l-10.81-3.8l-2.76,5.57l-3.52-4.56l-19.85-6.84l-18.85,3.29l-2.76,1.52v1.52l4.02,2.03l-0.5,4.81l-7.29-3.04l-16.08,6.33l-2.76-5.82h-11.06l-5.03,5.32l-17.84-4.05l-16.33,3.29l-2.01,5.06l2.51,0.76l-0.25,3.8l-15.83,1.77l1.01,5.06l-14.58-2.53l3.52-6.58l-14.83-0.76l1.26,6.84l-4.77,2.28l-4.02-3.8l-16.33,2.79l-6.28,5.82l-0.25,3.54l-4.02,0.25l-0.5-4.05l12.82-11.14v-7.6l-8.29-2.28l-10.81,3.54l-4.52-4.56h-2.01l-2.51,5.06l2.01,2.28l-14.33,7.85l-12.31,9.37l-7.54,10.38v4.3l8.04,3.29l-4.02,3.04l-8.54-3.04l-3.52,3.04l-5.28-6.08l-1.01,2.28l5.78,18.23l1.51,0.51l4.02-2.03l2.01,1.52v3.29l-3.77-1.52l-2.26,1.77l1.51,3.29l-1.26,8.61l-7.79,0.76l-0.5-2.79l4.52-2.79l1.01-7.6l-5.03-6.58l-1.76-11.39l-8.04-1.27l-0.75,4.05l1.51,2.03l-3.27,2.79l1.26,7.6l4.77,2.03l1.01,5.57l-4.78-3.04l-12.31-2.28l-1.51,4.05l-9.8,3.54l-1.51-2.53l-12.82,7.09l-0.25,4.81l-5.03,0.76l1.51-3.54v-3.54l-5.03-1.77l-3.27,1.27l2.76,5.32l2.01,3.54v2.79l-3.77-0.76l-0.75-0.76l-3.77,4.05l2.01,3.54l-8.54-0.25l2.76,3.55l-0.75,1.52h-4.52l-3.27-2.28l-0.75-6.33l-5.28-2.03v-2.53l11.06,2.28l6.03,0.51l2.51-3.8l-2.26-4.05l-16.08-6.33l-5.55,1.38l-1.9,1.63l0.59,3.75l2.36,0.41l-0.55,5.9l7.28,17.1l-5.26,8.34l-0.36,1.88l2.67,1.88l-2.41,1.59l-1.6,0.03l0.3,7.35l2.21,3.13l0.03,3.04l2.83,0.26l4.33,1.65l4.58,6.3l0.05,1.66l-1.49,2.55l3.42-0.19l3.33,0.96l4.5,6.37l11.08,1.01l-0.48,7.58l-3.82,3.27l0.79,1.28l-3.77,4.05l-1,3.8l2.26,3.29l7.29,2.53l3.02-1.77l19.35,7.34l0.75-2.03l-4.02-3.8v-4.81l-2.51-0.76l0.5-4.05l4.02-4.81l-7.21-5.4l0.5-7.51l7.71-5.07l9.05,0.51l1.51,2.79l9.3,0.51l6.79-3.8l-3.52-3.8l0.75-7.09l17.59-8.61l13.53,6.1l4.52-4.05l13.32,12.66l10.05-1.01l3.52,3.54l9.55,1.01l6.28-8.61l8.04,3.55l4.27,0.76l4.27-3.8l-3.77-2.53l3.27-5.06l9.3,3.04l2.01,4.05l4.02,0.25l2.51-1.77l6.79-0.25l0.75,1.77l7.79,0.51l5.28-5.57l10.81,1.27l3.27-1.27l1-6.08l-3.27-7.34l3.27-2.79h10.3l9.8,11.65l12.56,7.09h3.77l0.5-3.04l4.52-2.79l0.5,16.46l-4.02,0.25v4.05l2.26,2.79l-0.42,3.62l1.67,0.69l1.01-2.53l1.51,0.51l1,1.01l4.52-1.01l4.52-13.17l0.5-16.46l-5.78-13.17l-7.29-8.86l-3.52,0.51v2.79l-8.54-3.29l3.27-7.09l2.76-18.74l11.56-3.54l5.53-3.54h6.03L805.86,96l1.51,2.53l5.28-5.57l3.02,0.25l-0.5-3.29l-4.78-1.01l3.27-11.9L817.97,72.93L817.97,72.93z",name:"Russian Federation"},us:{path:"M69.17,53.35l3.46,6.47l2.22-0.5v-2.24L69.17,53.35L69.17,53.35M49.66,110.26l-0.17,3.01l2.16-0.5v-1.34L49.66,110.26L49.66,110.26M46.34,111.6l-4.32,2.18l0.67,2.34l1.66-1.34l3.32-1.51L46.34,111.6L46.34,111.6M28.39,114.44l-2.99-0.67l-0.5,1.34l0.33,2.51L28.39,114.44L28.39,114.44M22.07,114.28l-2.83-1.17l-1,1.84l1.83,1.84L22.07,114.28L22.07,114.28M12.27,111.6l-1.33-1.84l-1.33,0.5v2.51l1.5,1L12.27,111.6L12.27,111.6M1.47,99.71l1.66,1.17l-0.5,1.34H1.47V99.71L1.47,99.71M10,248.7l-0.14,2.33l2.04,1.37l1.22-1.09L10,248.7L10,248.7M15.29,252.13l-1.9,1.37l1.63,2.05l1.9-1.64L15.29,252.13L15.29,252.13M19.1,255.41l-1.63,2.19l0.54,1.37l2.31-1.09L19.1,255.41L19.1,255.41M21.81,259.65l-0.95,5.47l0.95,2.05l3.12-0.96l1.63-2.74l-3.4-3.15L21.81,259.65L21.81,259.65M271.05,281.06l-2.64-0.89l-2.12,1.33l1.06,1.24l3.61,0.53L271.05,281.06L271.05,281.06M93.11,44.89l-8.39,1.99l1.73,9.45l9.13,2.49l0.49,1.99L82.5,65.04l-7.65,12.68l2.71,13.43L82,94.13l3.46-3.23l0.99,1.99l-4.2,4.97l-16.29,7.46l-10.37,2.49l-0.25,3.73l23.94-6.96l9.87-2.74l9.13-11.19l10.12-6.71l-5.18,8.7l5.68,0.75l9.63-4.23l1.73,6.96l6.66,1.49l6.91,6.71l0.49,4.97l-0.99,1.24l1.23,4.72h1.73l0.25-7.96h1.97l0.49,19.64l4.94-4.23l-3.46-20.39h-5.18l-5.68-7.21l27.89-47.25l-27.64-21.63l-30.85,5.97l-1.23,9.45l6.66,3.98l-2.47,6.47L93.11,44.89L93.11,44.89M148.76,158.34l-1,4.02l-3.49-2.26h-1.74l-1,4.27l-12.21,27.36l3.24,23.84l3.99,2.01l0.75,6.53h8.22l7.97,6.02l15.69,1.51l1.74,8.03l2.49,1.76l3.49-3.51l2.74,1.25l2.49,11.54l4.23,2.76l3.49-6.53l10.71-7.78l6.97,3.26l5.98,0.5l0.25-3.76l12.45,0.25l2.49,2.76l0.5,6.27l-1.49,3.51l1.74,6.02h3.74l3.74-5.77l-1.49-2.76l-1.49-6.02l2.24-6.78l10.21-8.78l7.72-2.26l-1-7.28l10.71-11.55l10.71-1.76L272.8,199l10.46-6.02v-8.03l-1-0.5l-3.74,1.25l-0.5,4.92l-12.43,0.15l-9.74,6.47l-15.29,5l-2.44-2.99l6.94-10.5l-3.43-3.27l-2.33-4.44l-4.83-3.88l-5.25-0.44l-9.92-6.77L148.76,158.34L148.76,158.34z", name:"United States of America"},mu:{path:"M613.01,398.99l-1.52,1.99l0.3,2.15l3.2-2.61L613.01,398.99L613.01,398.99z",name:"Mauritius"},re:{path:"M607.38,402.37l-2.28,0.15l-0.15,1.99l1.52,0.31l2.28-1.07L607.38,402.37L607.38,402.37z",name:"Reunion"},mg:{path:"M592.3,372.92l-2.13,5.06l-3.65,6.44l-6.39,0.46l-2.74,3.22l0.46,9.82l-3.96,4.6l0.46,7.82l3.35,3.83l3.96-0.46l3.96-2.92l-0.91-4.6l9.13-15.8l-1.83-1.99l1.83-3.83l1.98,0.61l0.61-1.53l-1.83-7.82l-1.07-3.22L592.3,372.92L592.3,372.92z",name:"Madagascar"},km:{path:"M577.69,371.23l0.46,1.53l1.98,0.31l0.76-1.99L577.69,371.23L577.69,371.23M580.58,374.3l0.76,1.69h1.22l0.61-2.15L580.58,374.3L580.58,374.3z",name:"Comoros"},sc:{path:"M602.35,358.34l-0.61,1.23l1.67,1.38l1.22-1.38L602.35,358.34L602.35,358.34M610.88,349.14l-1.83,1.23l1.37,2.15h1.83L610.88,349.14L610.88,349.14M611.64,354.51l-1.22,1.38l0.91,1.38l1.67,0.31l0.15-2.92L611.64,354.51L611.64,354.51z",name:"Seychelles"},mv:{path:"M656.4,320.76l0.3,2.61l1.67,0.61l0.3-2.3L656.4,320.76L656.4,320.76M658.53,326.28l-0.15,3.22l1.22,0.61l1.07-2.15L658.53,326.28L658.53,326.28M658.84,332.57l-1.07,1.07l1.22,1.07l1.52-1.07L658.84,332.57L658.84,332.57z",name:"Maldives"},pt:{path:"M372.64,217.02l-1.36,1.37l2.44,1.37l0.27-1.91L372.64,217.02L372.64,217.02M379.97,216.2l-1.63,1.09l1.36,1.09l2.17-0.55L379.97,216.2L379.97,216.2M381.05,220.03l-0.81,2.19l1.08,1.37l1.36-1.09L381.05,220.03L381.05,220.03M387.56,224.4l-0.54,1.37l0.81,0.82l2.17-1.37L387.56,224.4L387.56,224.4M408.18,236.42l-1.08,1.37l1.08,1.37l1.63-0.82L408.18,236.42L408.18,236.42M430.93,211.24l-0.62,8.65l-1.77,1.6l0.18,0.98l1.24,2.05l-0.8,2.5l1.33,0.45l3.1-0.36l-0.18-2.5l2.03-11.59l-0.44-1.6L430.93,211.24L430.93,211.24z",name:"Portugal"},es:{path:"M415.62,253.73l-1.75,1.01l0.81,0.82L415.62,253.73L415.62,253.73M409.54,253.92l-2.17,0.55l1.08,1.64h1.63L409.54,253.92L409.54,253.92M404.38,252.28l-1.36,1.37l1.9,1.64l1.08-2.46L404.38,252.28L404.38,252.28M448.36,205h-12.74l-2.57-1.16l-1.24,0.09l-1.5,3.12l0.53,3.21l4.87,0.45l0.62,2.05l-2.12,11.95l0.09,2.14l3.45,1.87l3.98,0.27l7.96-1.96l3.89-4.9l0.09-4.99l6.9-6.24l0.35-2.76l-6.28-0.09L448.36,205L448.36,205M461.1,217.21l-1.59,0.54l0.35,1.43h2.3l0.97-1.07L461.1,217.21L461.1,217.21z",name:"Spain"},cv:{path:"M387.56,290.54l-1.9,1.09l1.36,1.09l1.63-0.82L387.56,290.54L387.56,290.54M392.23,292.74l-1.24,1.1l0.88,1.63l2.12-0.95L392.23,292.74L392.23,292.74M389.52,295.83l-1.59,0.95l1.71,2.29l1.35-0.71L389.52,295.83L389.52,295.83z",name:"Cape Verde"},pf:{path:"M27.25,402.68l-1.9-0.14l-0.14,1.78l1.49,0.96l1.77-1.09L27.25,402.68L27.25,402.68M33.77,404.6l-2.72,1.78l2.04,2.46l1.77-0.41l0.95-1.23L33.77,404.6L33.77,404.6z",name:"French Polynesia"},kn:{path:"M276.6,283.37l-1.5,0.62l0.53,1.33l1.76-1.15l-0.35-0.36L276.6,283.37L276.6,283.37z",name:"Saint Kitts and Nevis"},ag:{path:"M279.07,284.88l-0.88,1.87l1.06,1.42l1.32-1.15L279.07,284.88L279.07,284.88z",name:"Antigua and Barbuda"},dm:{path:"M282.07,290.03l-1.06,0.98l0.79,1.6l1.5-0.44L282.07,290.03L282.07,290.03z",name:"Dominica"},lc:{path:"M281.98,294.03l-0.71,1.51l1.15,1.24l1.5-0.8L281.98,294.03L281.98,294.03z",name:"Saint Lucia"},bb:{path:"M282.07,297.85l-1.23,0.89l0.97,1.78l1.59-0.89L282.07,297.85L282.07,297.85z",name:"Barbados"},gd:{path:"M280.57,301.31l-1.15,1.15l0.44,0.71h1.41l0.44-1.16L280.57,301.31L280.57,301.31z",name:"Grenada"},tt:{path:"M282.24,304.78l-1.06,0.98l-1.15,0.18v1.42l2.12,1.95l0.88-1.42l0.53-1.6l-0.18-1.33L282.24,304.78L282.24,304.78z",name:"Trinidad and Tobago"},"do":{path:"M263.11,280.44l-5.29-3.46l-2.5-0.85l-0.84,6l0.88,1.69l1.15-1.33l3.35-0.89l2.91,0.62L263.11,280.44L263.11,280.44z",name:"Dominican Republic"},ht:{path:"M250.86,275.38l3.44,0.36l-0.41,4.22l-0.34,2.22l-4.01-0.22l-0.71,1.07l-1.23-0.09l-0.44-2.31l4.23-0.35l-0.26-2.4l-1.94-0.8L250.86,275.38L250.86,275.38z",name:"Haiti"},fk:{path:"M307.95,508.18l-2.63-0.29l-2.62,1.76l1.9,2.06L307.95,508.18L307.95,508.18M310.57,506.86l-0.87,2.79l-2.48,2.2l0.15,0.73l4.23-1.62l1.75-2.2L310.57,506.86L310.57,506.86z",name:"Falkland Islands"},is:{path:"M406.36,117.31l-1.96-1.11l-2.64,1.67l-2.27,2.1l0.06,1.17l2.94,0.37l-0.18,2.1l-1.04,1.05l0.25,0.68l2.94,0.19v3.4l4.23,0.74l2.51,1.42l2.82,0.12l4.84-2.41l3.74-4.94l0.06-3.34l-2.27-1.92l-1.9-1.61l-0.86,0.62l-1.29,1.67l-1.47-0.19l-1.47-1.61l-1.9,0.18l-2.76,2.29l-1.66,1.79l-0.92-0.8l-0.06-1.98l0.92-0.62L406.36,117.31L406.36,117.31z",name:"Iceland"},no:{path:"M488.26,53.96l-1.65-1.66l-3.66,1.78h-6.72L475.17,58l3.77,3.33l1.65-0.24l2.36-4.04l2,1.43l-1.42,2.85l-0.71,4.16l1.65,2.61l3.54-5.94l4.6-5.59l-1.77-1.54L488.26,53.96L488.26,53.96M490.26,46.83l-2.95,2.73l1.77,2.73h3.18l1.3,1.78l3.89,2.02l4.48-2.61l3.07-2.61l-1.06-2.14l-3.07-1.78l-2.24,2.02l-1.53-1.9l-1.18,0.12l-1.53,3.33l-2.24-2.26l-0.24-1.54L490.26,46.83L490.26,46.83M496.98,59.07l-2.36,2.14l-2,1.54l0.94,1.66l1.89,0.59l3.07-1.43l1.42-1.78l-1.3-2.14L496.98,59.07L496.98,59.07M515.46,102.14l2.02-1.48L517.3,99l-1.28-0.74l0.18-2.03h1.1v-1.11l-4.77-1.29l-7.15,0.74l-0.73,3.14L503,97.16l-1.1-1.85l-3.49,0.18L498.04,99l-1.65,0.74l-0.92-1.85l-7.34,5.91l1.47,1.66l-2.75,1.29l-6.24,12.38l-2.2,1.48l0.18,1.11l2.2,1.11l-0.55,2.4l-3.67-0.19l-1.1-1.29l-2.38,2.77l-1.47,1.11l-0.37,2.59l-1.28,0.74l-3.3,0.74l-1.65,5.18l1.1,8.5l1.28,3.88l1.47,1.48l3.3-0.18l4.77-4.62l1.83-3.14l0.55,4.62l3.12-5.54l0.18-15.53l2.54-1.6l0.76-8.57l7.7-11.09l3.67-1.29l1.65-2.03l5.5,1.29l2.75,1.66l0.92-4.62l4.59-2.77L515.46,102.14L515.46,102.14z",name:"Norway"},lk:{path:"M680.54,308.05l0.25,2.72l0.25,1.98l-1.47,0.25l0.74,4.45l2.21,1.24l3.43-1.98l-0.98-4.69l0.25-1.73l-3.19-2.96L680.54,308.05L680.54,308.05z",name:"Sri Lanka"},cu:{path:"M220.85,266.92v1.27l5.32,0.1l2.51-1.46l0.39,1.07l5.22,1.27l4.64,4.19l-1.06,1.46l0.19,1.66l3.87,0.97l3.87-1.75l1.74-1.75l-2.51-1.27l-12.95-7.6l-4.54-0.49L220.85,266.92L220.85,266.92z",name:"Cuba"},bs:{path:"M239.61,259.13l-1.26-0.39l-0.1,2.43l1.55,1.56l1.06-1.56L239.61,259.13L239.61,259.13M242.12,262.93l-1.74,0.97l1.64,2.34l0.87-1.17L242.12,262.93L242.12,262.93M247.73,264.68l-1.84-0.1l0.19,1.17l1.35,1.95l1.16-1.27L247.73,264.68L247.73,264.68M246.86,262.35l-3-1.27l-0.58-3.02l1.16-0.49l1.16,2.34l1.16,0.88L246.86,262.35L246.86,262.35M243.96,256.21l-1.55-0.39l-0.29-1.95l-1.64-0.58l1.06-1.07l1.93,0.68l1.45,0.88L243.96,256.21L243.96,256.21z",name:"Bahamas"},jm:{path:"M238.93,279.59l-3.48,0.88v0.97l2.03,1.17h2.13l1.35-1.56L238.93,279.59L238.93,279.59z",name:"Jamaica"},ec:{path:"M230.2,335.85l-4.73,2.94l-0.34,4.36l-0.95,1.43l2.98,2.86l-1.29,1.41l0.3,3.6l5.33,1.27l8.07-9.55l-0.02-3.33l-3.87-0.25L230.2,335.85L230.2,335.85z",name:"Ecuador"},ca:{path:"M203.73,35.89l0.22,4.02l-7.98,8.27l2,6.7l5.76-1.56l3.33-4.92l8.42-3.13l6.87-0.45l-5.32-5.81l-2.66,2.01l-2-0.67l-1.11-2.46l-2.44-2.46L203.73,35.89L203.73,35.89M214.15,24.05l-1.77,3.13l8.65,3.13l3.1-4.69l1.33,3.13h2.22l4.21-4.69l-5.1-1.34l-2-1.56l-2.66,2.68L214.15,24.05L214.15,24.05M229.23,30.31l-6.87,2.9v2.23l8.87,3.35l-2,2.23l1.33,2.9l5.54-2.46h4.66l2.22,3.57l3.77-3.8l-0.89-3.58l-3.1,1.12l-0.44-4.47l1.55-2.68h-1.55l-2.44,1.56l-1.11,0.89l0.67,3.13l-1.77,1.34l-2.66-0.22l-0.67-4.02L229.23,30.31L229.23,30.31M238.32,23.38l-0.67,2.23l4.21,2.01l3.1-1.79l-0.22-1.34L238.32,23.38L238.32,23.38M241.64,19.58l-3.1,1.12l0.22,1.56l6.87-0.45l-0.22-1.56L241.64,19.58L241.64,19.58M256.5,23.38l-0.44,1.56l-1.11,1.56v2.23l4.21-0.67l4.43,3.8h1.55v-3.8l-4.43-4.92L256.5,23.38L256.5,23.38M267.81,27.85l1.77,2.01l-1.55,2.68l1.11,2.9l4.88-2.68v-2.01l-2.88-3.35L267.81,27.85L267.81,27.85M274.24,22.71l0.22,3.57h5.99l1.55,1.34l-0.22,1.56l-5.32,0.67l3.77,5.14l5.1,0.89l7.09-3.13l-10.2-15.42l-3.1,2.01l0.22,2.68l-3.55-1.34L274.24,22.71L274.24,22.71M222.58,47.96l-8.42,2.23l-4.88,4.25l0.44,4.69l8.87,2.68l-2,4.47l-6.43-4.02l-1.77,3.35l4.21,2.9l-0.22,4.69l6.43,1.79l7.76-0.45l1.33-2.46l5.76,6.48l3.99-1.34l0.67-4.47l2.88,2.01l0.44-4.47l-3.55-2.23l0.22-14.07l-3.1-2.46L231.89,56L222.58,47.96L222.58,47.96M249.63,57.79l-2.88-1.34l-1.55,2.01l3.1,4.92l0.22,4.69l6.65-4.02v-5.81l2.44-2.46l-2.44-1.79h-3.99L249.63,57.79L249.63,57.79M263.82,55.78l-4.66,3.8l1.11,4.69h2.88l1.33-2.46l2,2.01l2-0.22l5.32-4.47L263.82,55.78L263.82,55.78M263.37,48.4l-1.11,2.23l4.88,1.79l1.33-2.01L263.37,48.4L263.37,48.4M260.49,39.91l-4.88,0.67l-2.88,2.68l5.32,0.22l-1.55,4.02l1.11,1.79l1.55-0.22l3.77-6.03L260.49,39.91L260.49,39.91M268.92,38.35l-2.66,0.89l0.44,3.57l4.43,2.9l0.22,2.23l-1.33,1.34l0.67,4.47l17.07,5.58l4.66,1.56l4.66-4.02l-5.54-4.47l-5.1,1.34l-7.09-0.67l-2.66-2.68l-0.67-7.37l-4.43-2.23L268.92,38.35L268.92,38.35M282.88,61.59L278,61.14l-5.76,2.23l-3.1,4.24l0.89,11.62l9.53,0.45l9.09,4.47l6.43,7.37l4.88-0.22l-1.33,6.92l-4.43,7.37l-4.88,2.23l-3.55-0.67l-1.77-1.56l-2.66,3.57l1.11,3.57l3.77,0.22l4.66-2.23l3.99,10.28l9.98,6.48l6.87-8.71l-5.76-9.38l3.33-3.8l4.66,7.82l8.42-7.37l-1.55-3.35l-5.76,1.79l-3.99-10.95l3.77-6.25l-7.54-8.04l-4.21,2.9l-3.99-8.71l-8.42,1.12l-2.22-10.5l-6.87,4.69l-0.67,5.81h-3.77l0.44-5.14L282.88,61.59L282.88,61.59M292.86,65.61l-1.77,1.79l1.55,2.46l7.32,0.89l-4.66-4.92L292.86,65.61L292.86,65.61M285.77,40.36v2.01l-4.88,1.12l1.33,2.23l5.54,2.23l6.21,0.67l4.43,3.13l4.43-2.46l-3.1-3.13h3.99l2.44-2.68l5.99-0.89v-1.34l-3.33-2.23l0.44-2.46l9.31,1.56l13.75-5.36l-5.1-1.56l1.33-1.79h10.64l1.77-1.79l-21.51-7.6l-5.1-1.79l-5.54,4.02l-6.21-5.14l-3.33-0.22l-0.67,4.25l-4.21-3.8l-4.88,1.56l0.89,2.46l7.32,1.56l-0.44,3.57l3.99,2.46l9.76-2.46l0.22,3.35l-7.98,3.8l-4.88-3.8l-4.43,0.45l4.43,6.26l-2.22,1.12l-3.33-2.9l-2.44,1.56l2.22,4.24h3.77l-0.89,4.02l-3.1-0.45l-3.99-4.25L285.77,40.36L285.77,40.36M266.01,101.85l-4.23,5.32l-0.26,5.86l3.7-2.13h4.49l3.17,2.93l2.91-2.4L266.01,101.85L266.01,101.85M317.52,171.05l-10.57,10.12l1.06,2.4l12.94,4.79l1.85-3.19l-1.06-5.32l-4.23,0.53l-2.38-2.66l3.96-3.99L317.52,171.05L317.52,171.05M158.22,48.66l1.99,3.01l1,4.02l4.98,1.25l3.49-3.76l2.99,1.51l8.47,0.75l5.98-2.51l1,8.28h3.49V57.7l3.49,0.25l8.72,10.29l5.73,3.51l-2.99,4.77l1.25,1.25L219,80.03l0.25,5.02l2.99,0.5l0.75-7.53l4.73-1.25l3.49,5.27l7.47,3.51l3.74,0.75l2.49-3.01l0.25-4.77l4.48-2.76l1.49,4.02l-3.99,7.03l0.5,3.51l2.24-3.51l4.48-4.02l0.25-5.27l-2.49-4.02l0.75-3.26l5.98-3.01l2.74,2.01l0.5,17.57l4.23-3.76l2.49,1.51l-3.49,6.02l4.48,1l6.48-10.04l5.48,5.77l-2.24,10.29l-5.48,3.01l-5.23-2.51l-9.46,2.01l1,3.26l-2.49,4.02l-7.72,1.76l-8.72,6.78l-7.72,10.29l-1,3.26l5.23,2.01l1.99,5.02l7.22,7.28l11.46,5.02l-2.49,11.54l-0.25,3.26l2.99,2.01l3.99-5.27l0.5-10.04l6.23-0.25l2.99-5.77l0.5-8.78l7.97-15.56l9.96,3.51l5.23,7.28l-2.24,7.28l3.99,2.26l9.71-6.53l2.74,17.82l8.97,10.79l0.25,5.52l-9.96,2.51l-4.73,5.02l-9.96-2.26l-4.98-0.25l-8.72,6.78l5.23-1.25l6.48-1.25l1.25,1.51l-1.74,5.52l0.25,5.02l2.99,2.01l2.99-0.75l1.5-2.26h1.99l-3.24,6.02l-6.23,0.25l-2.74,4.02h-3.49l-1-3.01l4.98-5.02l-5.98,2.01l-0.27-8.53l-1.72-1l-5.23,2.26l-0.5,4.27h-11.96l-10.21,7.03l-13.7,4.52l-1.49-2.01l6.9-10.3l-3.92-3.77l-2.49-4.78l-5.07-3.87l-5.44-0.45l-9.75-6.83l-70.71-11.62l-1.17-4.79l-6.48-6.02v-5.02l1-4.52l-0.5-2.51l-2.49-2.51l-0.5-4.02l6.48-4.52l-3.99-21.58l-5.48-0.25l-4.98-6.53L158.22,48.66L158.22,48.66M133.83,128.41l-1.7,3.26l0.59,2.31l1.11,0.69l-0.26,0.94l-1.19,0.34l0.34,3.43l1.28,1.29l1.02-1.11l-1.28-3.34l0.76-2.66l1.87-2.49l-1.36-2.31L133.83,128.41L133.83,128.41M139.45,147.95l-1.53,0.6l2.81,3.26l0.68,3.86l2.81,3l2.38-0.43v-3.94l-2.89-1.8L139.45,147.95L139.45,147.95z",name:"Canada"},gt:{path:"M194.88,291.52l5.93,4.34l5.98-7.43l-1.02-1.54l-2.04-0.07v-4.35l-1.53-0.93l-4.63,1.38l1.77,4.08L194.88,291.52L194.88,291.52z",name:"Guatemala"},hn:{path:"M207.55,288.78l9.24-0.35l2.74,3.26l-1.71-0.39l-3.29,0.14l-4.3,4.04l-1.84,4.09l-1.21-0.64l-0.01-4.48l-2.66-1.78L207.55,288.78L207.55,288.78z",name:"Honduras"},sv:{path:"M201.65,296.27l4.7,2.34l-0.07-3.71l-2.41-1.47L201.65,296.27L201.65,296.27z",name:"El Salvador"},ni:{path:"M217.74,292.11l2.19,0.44l0.07,4.49l-2.55,7.28l-6.87-0.68l-1.53-3.51l2.04-4.26l3.87-3.6L217.74,292.11L217.74,292.11z",name:"Nicaragua"},cr:{path:"M217.38,304.98l1.39,2.72l1.13,1.5l-1.52,4.51l-2.9-2.04l-4.74-4.34v-2.87L217.38,304.98L217.38,304.98z",name:"Costa Rica"},pa:{path:"M220.59,309.61l-1.46,4.56l4.82,1.25l2.99,0.59l0.51-3.53l3.21-1.62l2.85,1.47l1.12,1.79l1.36-0.16l1.07-3.25l-3.56-1.47l-2.7-1.47l-2.7,1.84l-3.21,1.62l-3.28-1.32L220.59,309.61L220.59,309.61z",name:"Panama"},co:{path:"M253.73,299.78l-2.06-0.21l-13.62,11.23l-1.44,3.95l-1.86,0.21l0.83,8.73l-4.75,11.65l5.16,4.37l6.61,0.42l4.54,6.66l6.6,0.21l-0.21,4.99H256l2.68-9.15l-2.48-3.12l0.62-5.82l5.16-0.42l-0.62-13.52l-11.56-3.74l-2.68-7.28L253.73,299.78L253.73,299.78z",name:"Colombia"},ve:{path:"M250.46,305.92l0.44,2.59l3.25,1.03l0.74-4.77l3.43-3.55l3.43,4.02l7.89,2.15l6.68-1.4l4.55,5.61l3.43,2.15l-3.76,5.73l1.26,4.34l-2.15,2.66l-2.23,1.87l-4.83-2.43l-1.11,1.12v3.46l3.53,1.68l-2.6,2.81l-2.6,2.81l-3.43-0.28l-3.45-3.79l-0.73-14.26l-11.78-4.02l-2.14-6.27L250.46,305.92L250.46,305.92z",name:"Venezuela"},gy:{path:"M285.05,314.13l7.22,6.54l-2.87,3.32l-0.23,1.97l3.77,3.89l-0.09,3.74l-6.56,2.5l-3.93-5.31l0.84-6.38l-1.68-4.75L285.05,314.13L285.05,314.13z",name:"Guyana"},sr:{path:"M293.13,321.14l2.04,1.87l3.16-1.96l2.88,0.09l-0.37,1.12l-1.21,2.52l-0.19,6.27l-5.75,2.34l0.28-4.02l-3.71-3.46l0.19-1.78L293.13,321.14L293.13,321.14z",name:"Suriname"},gf:{path:"M302.13,321.8l5.85,3.65l-3.06,6.08l-1.11,1.4l-3.25-1.87l0.09-6.55L302.13,321.8L302.13,321.8z",name:"French Guiana"},pe:{path:"M225.03,349.52l-1.94,1.96l0.13,3.13l16.94,30.88l17.59,11.34l2.72-4.56l0.65-10.03l-1.42-6.25l-4.79-8.08l-2.85,0.91l-1.29,1.43l-5.69-6.52l1.42-7.69l6.6-4.3l-0.52-4.04l-6.72-0.26l-3.49-5.86l-1.94-0.65l0.13,3.52l-8.66,10.29l-6.47-1.56L225.03,349.52L225.03,349.52z",name:"Peru"},bo:{path:"M258.71,372.79l8.23-3.59l2.72,0.26l1.81,7.56l12.54,4.17l2.07,6.39l5.17,0.65l2.2,5.47l-1.55,4.95l-8.41,0.65l-3.1,7.95l-6.6-0.13l-2.07-0.39l-3.81,3.7l-1.88-0.18l-6.47-14.99l1.79-2.68l0.63-10.6l-1.6-6.31L258.71,372.79L258.71,372.79z",name:"Bolivia"},py:{path:"M291.76,399.51l2.2,2.4l-0.26,5.08l6.34-0.39l4.79,6.13l-0.39,5.47l-3.1,4.69l-6.34,0.26l-0.26-2.61l1.81-4.3l-6.21-3.91h-5.17l-3.88-4.17l2.82-8.06L291.76,399.51L291.76,399.51z",name:"Paraguay"},uy:{path:"M300.36,431.93l-2.05,2.19l0.85,11.78l6.44,1.87l8.19-8.21L300.36,431.93L300.36,431.93z",name:"Uruguay"},ar:{path:"M305.47,418.2l1.94,1.82l-7.37,10.95l-2.59,2.87l0.9,12.51l5.69,6.91l-4.78,8.34l-3.62,1.56h-4.14l1.16,6.51l-6.47,2.22l1.55,5.47l-3.88,12.38l4.79,3.91l-2.59,6.38l-4.4,6.91l2.33,4.82l-5.69,0.91l-4.66-5.73l-0.78-17.85l-7.24-30.32l2.19-10.6l-4.66-13.55l3.1-17.59l2.85-3.39l-0.7-2.57l3.66-3.34l8.16,0.56l4.56,4.87l5.27,0.09l5.4,3.3l-1.59,3.72l0.38,3.76l7.65-0.36L305.47,418.2L305.47,418.2M288.92,518.79l0.26,5.73l4.4-0.39l3.75-2.48l-6.34-1.3L288.92,518.79L288.92,518.79z",name:"Argentina"},cl:{path:"M285.04,514.1l-4.27,9.38l7.37,0.78l0.13-6.25L285.04,514.1L285.04,514.1M283.59,512.63l-3.21,3.55l-0.39,4.17l-6.21-3.52l-6.6-9.51l-1.94-3.39l2.72-3.52l-0.26-4.43l-3.1-1.3l-2.46-1.82l0.52-2.48l3.23-0.91l0.65-14.33l-5.04-2.87l-3.29-74.59l0.85-1.48l6.44,14.85l2.06,0.04l0.67,2.37l-2.74,3.32l-3.15,17.87l4.48,13.76l-2.07,10.42l7.3,30.64l0.77,17.92l5.23,6.05L283.59,512.63L283.59,512.63M262.28,475.14l-1.29,1.95l0.65,3.39l1.29,0.13l0.65-4.3L262.28,475.14L262.28,475.14z",name:"Chile"},br:{path:"M314.24,438.85l6.25-12.02l0.23-10.1l11.66-7.52h6.53l5.13-8.69l0.93-16.68l-2.1-4.46l12.36-11.28l0.47-12.45l-16.79-8.22l-20.28-6.34l-9.56-0.94l2.57-5.4l-0.7-8.22l-2.09-0.69l-3.09,6.14l-1.62,2.03l-4.16-1.84l-13.99,4.93l-4.66-5.87l0.75-6.13l-4.4,4.48l-4.86-2.62l-0.49,0.69l0.01,2.13l4.19,2.25l-6.29,6.63l-3.97-0.04l-4.02-4.09l-4.55,0.14l-0.56,4.86l2.61,3.17l-3.08,9.87l-3.6,0.28l-5.73,3.62l-1.4,7.11l4.97,5.32l0.91-1.03l3.49-0.94l2.98,5.02l8.53-3.66l3.31,0.19l2.28,8.07l12.17,3.86l2.1,6.44l5.18,0.62l2.47,6.15l-1.67,5.47l2.18,2.86l-0.32,4.26l5.84-0.55l5.35,6.76l-0.42,4.75l3.17,2.68l-7.6,11.51L314.24,438.85L314.24,438.85z",name:"Brazil"},bz:{path:"M204.56,282.4l-0.05,3.65h0.84l2.86-5.34h-1.94L204.56,282.4L204.56,282.4z",name:"Belize"},mn:{path:"M673.8,170.17l5.82-7.72l6.99,3.23l4.75,1.27l5.82-5.34l-3.95-2.91l2.6-3.67l7.76,2.74l2.69,4.41l4.86,0.13l2.54-1.89l5.23-0.21l1.14,1.94l8.69,0.44l5.5-5.61l7.61,0.8l-0.44,7.64l3.33,0.76l4.09-1.86l4.33,2.14l-0.1,1.08l-3.14,0.09l-3.27,6.86l-2.54,0.25l-9.88,12.91l-10.09,4.45l-6.31,0.49l-5.24-3.38l-6.7,3.58l-6.6-2.05l-1.87-4.79l-12.5-0.88l-6.4-10.85l-3.11-0.2L673.8,170.17L673.8,170.17z",name:"Mongolia"},kp:{path:"M778.28,194.27l1.84,0.77l0.56,6.44l3.65,0.21l3.44-4.03l-1.19-1.06l0.14-4.32l3.16-3.82l-1.61-2.9l1.05-1.2l0.58-3l-1.83-0.83l-1.56,0.79l-1.93,5.86l-3.12-0.27l-3.61,4.26L778.28,194.27L778.28,194.27z",name:"North Korea"},kr:{path:"M788.34,198.2l6.18,5.04l1.05,4.88l-0.21,2.62l-3.02,3.4l-2.6,0.14l-2.95-6.37l-1.12-3.04l1.19-0.92l-0.28-1.27l-1.47-0.66L788.34,198.2L788.34,198.2z",name:"South Korea"},kz:{path:"M576.69,188.62l4.1-1.75l4.58-0.16l0.32,7h-2.68l-2.05,3.34l2.68,4.45l3.95,2.23l0.36,2.55l1.45-0.48l1.34-1.59l2.21,0.48l1.11,2.23h2.84v-2.86l-1.74-5.09l-0.79-4.13l5.05-2.23l6.79,1.11l4.26,4.29l9.63-0.95l5.37,7.63l6.31,0.32l1.74-2.86l2.21-0.48l0.32-3.18l3.31-0.16l1.74,2.07l1.74-4.13l14.99,2.07l2.52-3.34l-4.26-5.25l5.68-12.4l4.58,0.32l3.16-7.63l-6.31-0.64l-3.63-3.5l-10,1.16l-12.88-12.45l-4.54,4.03l-13.77-6.25l-16.89,8.27l-0.47,5.88l3.95,4.61l-7.7,4.35l-9.99-0.22l-2.09-3.07l-7.83-0.43l-7.42,4.77l-0.16,6.52L576.69,188.62L576.69,188.62z",name:"Kazakhstan"},tm:{path:"M593.85,207.59l-0.62,2.63h-4.15v3.56l4.46,2.94l-1.38,4.03v1.86l1.85,0.31l2.46-3.25l5.54-1.24l11.84,4.49l0.15,3.25l6.61,0.62l7.38-7.75l-0.92-2.48l-4.92-1.08l-13.84-8.99l-0.62-3.25h-5.23l-2.31,4.34h-2.31L593.85,207.59L593.85,207.59z",name:"Turkmenistan"},uz:{path:"M628.92,219.06l3.08,0.16v-5.27l-2.92-1.7l4.92-6.2h2l2,2.33l5.23-2.01l-7.23-2.48l-0.28-1.5l-1.72,0.42l-1.69,2.94l-7.29-0.24l-5.35-7.57l-9.4,0.93l-4.48-4.44l-6.2-1.05l-4.5,1.83l2.61,8.68l0.03,2.92l1.9,0.04l2.33-4.44l6.2,0.08l0.92,3.41l13.29,8.82l5.14,1.18L628.92,219.06L628.92,219.06z",name:"Uzbekistan"},tj:{path:"M630.19,211.84l4.11-5.1h1.55l0.54,1.14l-1.9,1.38v1.14l1.25,0.9l6.01,0.36l1.96-0.84l0.89,0.18l0.6,1.92l3.57,0.36l1.79,3.78l-0.54,1.14l-0.71,0.06l-0.71-1.44l-1.55-0.12l-2.68,0.36l-0.18,2.52l-2.68-0.18l0.12-3.18l-1.96-1.92l-2.98,2.46l0.06,1.62l-2.62,0.9h-1.55l0.12-5.58L630.19,211.84L630.19,211.84z",name:"Tajikistan"},kg:{path:"M636.81,199.21l-0.31,2.53l0.25,1.56l8.7,2.92l-7.64,3.08l-0.87-0.72l-1.65,1.06l0.08,0.58l0.88,0.4l5.36,0.14l2.72-0.82l3.49-4.4l4.37,0.76l5.27-7.3l-14.1-1.92l-1.95,4.73l-2.46-2.64L636.81,199.21L636.81,199.21z",name:"Kyrgyz Republic"},af:{path:"M614.12,227.05l1.59,12.46l3.96,0.87l0.37,2.24l-2.84,2.37l5.29,4.27l10.28-3.7l0.82-4.38l6.47-4.04l2.48-9.36l1.85-1.99l-1.92-3.34l6.26-3.87l-0.8-1.12l-2.89,0.18l-0.26,2.66l-3.88-0.04l-0.07-3.55l-1.25-1.49l-2.1,1.91l0.06,1.75l-3.17,1.2l-5.85-0.37l-7.6,7.96L614.12,227.05L614.12,227.05z",name:"Afghanistan"},pk:{path:"M623.13,249.84l2.6,3.86l-0.25,1.99l-3.46,1.37l-0.25,3.24h3.96l1.36-1.12h7.54l6.8,5.98l0.87-2.87h5.07l0.12-3.61l-5.19-4.98l1.11-2.74l5.32-0.37l7.17-14.95l-3.96-3.11l-1.48-5.23l9.64-0.87l-5.69-8.1l-3.03-0.82l-1.24,1.5l-0.93,0.07l-5.69,3.61l1.86,3.12l-2.1,2.24l-2.6,9.59l-6.43,4.11l-0.87,4.49L623.13,249.84L623.13,249.84z",name:"Pakistan"},"in":{path:"M670.98,313.01l4.58-2.24l2.72-9.84l-0.12-12.08l15.58-16.82v-3.99l3.21-1.25l-0.12-4.61l-3.46-6.73l1.98-3.61l4.33,3.99l5.56,0.25v2.24l-1.73,1.87l0.37,1l2.97,0.12l0.62,3.36h0.87l2.23-3.99l1.11-10.46l3.71-2.62l0.12-3.61l-1.48-2.87l-2.35-0.12l-9.2,6.08l0.58,3.91l-6.46-0.02l-2.28-2.79l-1.24,0.16l0.42,3.88l-13.97-1l-8.66-3.86l-0.46-4.75l-5.77-3.58l-0.07-7.37l-3.96-4.53l-9.1,0.87l0.99,3.96l4.46,3.61l-7.71,15.78l-5.16,0.39l-0.85,1.9l5.08,4.7l-0.25,4.75l-5.19-0.08l-0.56,2.36l4.31-0.19l0.12,1.87l-3.09,1.62l1.98,3.74l3.83,1.25l2.35-1.74l1.11-3.11l1.36-0.62l1.61,1.62l-0.49,3.99l-1.11,1.87l0.25,3.24L670.98,313.01L670.98,313.01z",name:"India"},np:{path:"M671.19,242.56l0.46,4.27l8.08,3.66l12.95,0.96l-0.49-3.13l-8.65-2.38l-7.34-4.37L671.19,242.56L671.19,242.56z",name:"Nepal"},bt:{path:"M695.4,248.08l1.55,2.12l5.24,0.04l-0.53-2.9L695.4,248.08L695.4,248.08z",name:"Bhutan"},bd:{path:"M695.57,253.11l-1.31,2.37l3.4,6.46l0.1,5.04l0.62,1.35l3.99,0.07l2.26-2.17l1.64,0.99l0.33,3.07l1.31-0.82l0.08-3.92l-1.1-0.13l-0.69-3.33l-2.78-0.1l-0.69-1.85l1.7-2.27l0.03-1.12h-4.94L695.57,253.11L695.57,253.11z",name:"Bangladesh"},mm:{path:"M729.44,303.65l-2.77-4.44l2.01-2.82l-1.9-3.49l-1.79-0.34l-0.34-5.86l-2.68-5.19l-0.78,1.24l-1.79,3.04l-2.24,0.34l-1.12-1.47l-0.56-3.95l-1.68-3.16l-6.84-6.45l1.68-1.11l0.31-4.67l2.5-4.2l1.08-10.45l3.62-2.47l0.12-3.81l2.17,0.72l3.42,4.95l-2.54,5.44l1.71,4.27l4.23,1.66l0.77,4.65l5.68,0.88l-1.57,2.71l-7.16,2.82l-0.78,4.62l5.26,6.76l0.22,3.61l-1.23,1.24l0.11,1.13l3.92,5.75l0.11,5.97L729.44,303.65L729.44,303.65z",name:"Myanmar"},th:{path:"M730.03,270.47l3.24,4.17v5.07l1.12,0.56l5.15-2.48l1.01,0.34l6.15,7.1l-0.22,4.85l-2.01-0.34l-1.79-1.13l-1.34,0.11l-2.35,3.94l0.45,2.14l1.9,1.01l-0.11,2.37l-1.34,0.68l-4.59-3.16v-2.82l-1.9-0.11l-0.78,1.24l-0.4,12.62l2.97,5.42l5.26,5.07l-0.22,1.47l-2.8-0.11l-2.57-3.83h-2.69l-3.36-2.71l-1.01-2.82l1.45-2.37l0.5-2.14l1.58-2.8l-0.07-6.44l-3.86-5.58l-0.16-0.68l1.25-1.26l-0.29-4.43l-5.14-6.51l0.6-3.75L730.03,270.47L730.03,270.47z",name:"Thailand"},kh:{path:"M740.48,299.47l4.09,4.37l7.61-5.64l0.67-8.9l-3.93,2.71l-2.04-1.14l-2.77-0.37l-1.55-1.09l-0.75,0.04l-2.03,3.33l0.33,1.54l2.06,1.15l-0.25,3.13L740.48,299.47L740.48,299.47z",name:"Cambodia"},la:{path:"M735.47,262.93l-2.42,1.23l-2.01,5.86l3.36,4.28l-0.56,4.73l0.56,0.23l5.59-2.71l7.5,8.38l-0.18,5.28l1.63,0.88l4.03-3.27l-0.33-2.59l-11.63-11.05l0.11-1.69l1.45-1.01l-1.01-2.82l-4.81-0.79L735.47,262.93L735.47,262.93z",name:"Lao People's Democratic Republic"},vn:{path:"M745.06,304.45l1.19,1.87l0.22,2.14l3.13,0.34l3.8-5.07l3.58-1.01l1.9-5.18l-0.89-8.34l-3.69-5.07l-3.89-3.11l-4.95-8.5l3.55-5.94l-5.08-5.83l-4.07-0.18l-3.66,1.97l1.09,4.71l4.88,0.86l1.31,3.63l-1.72,1.12l0.11,0.9l11.45,11.2l0.45,3.29l-0.69,10.4L745.06,304.45L745.06,304.45z",name:"Vietnam"},ge:{path:"M555.46,204.16l3.27,4.27l4.08,1.88l2.51-0.01l4.31-1.17l1.08-1.69l-12.75-4.77L555.46,204.16L555.46,204.16z",name:"Georgia"},am:{path:"M569.72,209.89l4.8,6.26l-1.41,1.65l-3.4-0.59l-4.22-3.78l0.23-2.48L569.72,209.89L569.72,209.89z",name:"Armenia"},az:{path:"M571.41,207.72l-1.01,1.72l4.71,6.18l1.64-0.53l2.7,2.83l1.17-4.96l2.93,0.47l-0.12-1.42l-4.82-4.22l-0.92,2.48L571.41,207.72L571.41,207.72z",name:"Azerbaijan"},ir:{path:"M569.65,217.95l-1.22,1.27l0.12,2.01l1.52,2.13l5.39,5.9l-0.82,2.36h-0.94l-0.47,2.36l3.05,3.9l2.81,0.24l5.63,7.79l3.16,0.24l2.46,1.77l0.12,3.54l9.73,5.67h3.63l2.23-1.89l2.81-0.12l1.64,3.78l10.51,1.46l0.31-3.86l3.48-1.26l0.16-1.38l-2.77-3.78l-6.17-4.96l3.24-2.95l-0.23-1.3l-4.06-0.63l-1.72-13.7l-0.2-3.15l-11.01-4.21l-4.88,1.1l-2.73,3.35l-2.42-0.16l-0.7,0.59l-5.39-0.35l-6.8-4.96l-2.53-2.77l-1.16,0.28l-2.09,2.39L569.65,217.95L569.65,217.95z",name:"Iran"},tr:{path:"M558.7,209.19l-2.23,2.36l-8.2-0.24l-4.92-2.95l-4.8-0.12l-5.51,3.9l-5.16,0.24l-0.47,2.95h-5.86l-2.34,2.13v1.18l1.41,1.18v1.3l-0.59,1.54l0.59,1.3l1.88-0.94l1.88,2.01l-0.47,1.42l-0.7,0.95l1.05,1.18l5.16,1.06l3.63-1.54v-2.24l1.76,0.35l4.22,2.48l4.57-0.71l1.99-1.89l1.29,0.47v2.13h1.76l1.52-2.95l13.36-1.42l5.83-0.71l-1.54-2.02l-0.03-2.73l1.17-1.4l-4.26-3.42l0.23-2.95h-2.34L558.7,209.19L558.7,209.19M523.02,209.7l-0.16,3.55l3.1-0.95l1.42-0.95l-0.42-1.54l-1.47-1.17L523.02,209.7L523.02,209.7z",name:"Turkey"},om:{path:"M598.38,280.84l7.39-4.26l1.31-6.25l-1.62-0.93l0.67-6.7l1.41-0.82l1.51,2.37l8.99,4.7v2.61l-10.89,16.03l-5.01,0.17L598.38,280.84L598.38,280.84z",name:"Oman"},ae:{path:"M594.01,264.94l0.87,3.48l9.86,0.87l0.69-7.14l1.9-1.04l0.52-2.61l-3.11,0.87l-3.46,5.23L594.01,264.94L594.01,264.94z",name:"United Arab Emirates"},qa:{path:"M592.63,259.02l-0.52,4.01l1.54,1.17l1.4-0.13l0.52-5.05l-1.21-0.87L592.63,259.02L592.63,259.02z",name:"Qatar"},kw:{path:"M583.29,247.17l-2.25-1.22l-1.56,1.57l0.17,3.14l3.63,1.39L583.29,247.17L583.29,247.17z",name:"Kuwait"},sa:{path:"M584,253.24l7.01,9.77l2.26,1.8l1.01,4.38l10.79,0.85l1.22,0.64l-1.21,5.4l-7.09,4.18l-10.37,3.14l-5.53,5.4l-6.57-3.83l-3.98,3.48L566,279.4l-3.8-1.74l-1.38-2.09v-4.53l-13.83-16.72l-0.52-2.96h3.98l4.84-4.18l0.17-2.09l-1.38-1.39l2.77-2.26l5.88,0.35l10.03,8.36l5.92-0.27l0.38,1.46L584,253.24L584,253.24z",name:"Saudi Arabia"},sy:{path:"M546.67,229.13l-0.35,2.54l2.82,1.18l-0.12,7.04l2.82-0.06l2.82-2.13l1.06-0.18l6.4-5.09l1.29-7.39l-12.79,1.3l-1.35,2.96L546.67,229.13L546.67,229.13z",name:"Syrian Arab Republic"},iq:{path:"M564.31,225.03l-1.56,7.71l-6.46,5.38l0.41,2.54l6.31,0.43l10.05,8.18l5.62-0.16l0.15-1.89l2.06-2.21l2.88,1.63l0.38-0.36l-5.57-7.41l-2.64-0.16l-3.51-4.51l0.7-3.32l1.07-0.14l0.37-1.47l-4.78-5.03L564.31,225.03L564.31,225.03z",name:"Iraq"},jo:{path:"M548.9,240.78l-2.46,8.58l-0.11,1.31h3.87l4.33-3.82l0.11-1.45l-1.77-1.81l3.17-2.63l-0.46-2.44l-0.87,0.2l-2.64,1.89L548.9,240.78L548.9,240.78z",name:"Jordan"},lb:{path:"M546.2,232.44l0.06,1.95l-0.82,2.96l2.82,0.24l0.18-4.2L546.2,232.44L546.2,232.44z",name:"Lebanon"},il:{path:"M545.32,238.06l-1.58,5.03l2.05,6.03l2.35-8.81v-1.89L545.32,238.06L545.32,238.06z",name:"Israel"},cy:{path:"M543.21,229.84l1.23,0.89l-3.81,3.61l-1.82-0.06l-1.35-0.95l0.18-1.77l2.76-0.18L543.21,229.84L543.21,229.84z",name:"Cyprus"},gb:{path:"M446.12,149.08l-1.83,2.77l0.73,1.11h4.22v1.85l-1.1,1.48l0.73,3.88l2.38,4.62l1.83,4.25l2.93,1.11l1.28,2.22l-0.18,2.03l-1.83,1.11l-0.18,0.92l1.28,0.74l-1.1,1.48l-2.57,1.11l-4.95-0.55l-7.71,3.51l-2.57-1.29l7.34-4.25l-0.92-0.55l-3.85-0.37l2.38-3.51l0.37-2.96l3.12-0.37l-0.55-5.73l-3.67-0.18l-1.1-1.29l0.18-4.25l-2.2,0.18l2.2-7.39l4.04-2.96L446.12,149.08L446.12,149.08M438.42,161.47l-3.3,0.37l-0.18,2.96l2.2,1.48l2.38-0.55l0.92-1.66L438.42,161.47L438.42,161.47z",name:"United Kingdom"},ie:{path:"M439.51,166.55l-0.91,6l-8.07,2.96h-2.57l-1.83-1.29v-1.11l4.04-2.59l-1.1-2.22l0.18-3.14l3.49,0.18l1.6-3.76l-0.21,3.34l2.71,2.15L439.51,166.55L439.51,166.55z",name:"Ireland"},se:{path:"M497.72,104.58l1.96,1.81h3.67l2.02,3.88l0.55,6.65l-4.95,3.51v3.51l-3.49,4.81l-2.02,0.18l-2.75,4.62l0.18,4.44l4.77,3.51l-0.37,2.03l-1.83,2.77l-2.75,2.4l0.18,7.95l-4.22,1.48l-1.47,3.14h-2.02l-1.1-5.54l-4.59-7.04l3.77-6.31l0.26-15.59l2.6-1.43l0.63-8.92l7.41-10.61L497.72,104.58L497.72,104.58M498.49,150.17l-2.11,1.67l1.06,2.45l1.87-1.82L498.49,150.17L498.49,150.17z",name:"Sweden"},fi:{path:"M506.79,116.94l2.07,0.91l1.28,2.4l-1.28,1.66l-6.42,7.02l-1.1,3.7l1.47,5.36l4.95,3.7l6.6-3.14l5.32-0.74l4.95-7.95l-3.67-8.69l-3.49-8.32l0.55-5.36l-2.2-0.37l-0.57-3.91l-2.96-4.83l-3.28,2.27l-1.29,5.27l-3.48-2.09l-4.84-1.18l-1.08,1.26l1.86,1.68l3.39-0.06l2.73,4.41L506.79,116.94L506.79,116.94z",name:"Finland"},lv:{path:"M518.07,151.37l-6.85-1.11l0.15,3.83l6.35,3.88l2.6-0.76l-0.15-2.92L518.07,151.37L518.07,151.37z",name:"Latvia"},lt:{path:"M510.81,154.7l-2.15-0.05l-2.95,2.82h-2.5l0.15,3.53l-1.5,2.77l5.4,0.05l1.55-0.2l1.55,1.87l3.55-0.15l3.4-4.33l-0.2-2.57L510.81,154.7L510.81,154.7z",name:"Lithuania"},by:{path:"M510.66,166.29l1.5,2.47l-0.6,1.97l0.1,1.56l0.55,1.87l3.1-1.76l3.85,0.1l2.7,1.11h6.85l2-4.79l1.2-1.81v-1.21l-4.3-6.05l-3.8-1.51l-3.1-0.35l-2.7,0.86l0.1,2.72l-3.75,4.74L510.66,166.29L510.66,166.29z",name:"Belarus"},pl:{path:"M511.46,174.76l0.85,1.56l0.2,1.66l-0.7,1.61l-1.6,3.08l-1.35,0.61l-1.75-0.76l-1.05,0.05l-2.55,0.96l-2.9-0.86l-4.7-3.33l-4.6-2.47l-1.85-2.82l-0.35-6.65l3.6-3.13l4.7-1.56l1.75-0.2l-0.7,1.41l0.45,0.55l7.91,0.15l1.7-0.05l2.8,4.29l-0.7,1.76l0.3,2.07L511.46,174.76L511.46,174.76z",name:"Poland"},it:{path:"M477.56,213.38l-2.65,1.34l0.35,5.17l2.12,0.36l1.59-1.52v-4.9L477.56,213.38L477.56,213.38M472.27,196.98l-0.62,1.57l0.17,1.71l2.39,2.79l3.76-0.13l8.3,9.64l5.18,1.5l3.06,2.89l0.73,6.59l1.64-0.96l1.42-3.59l-0.35-2.58l2.43-0.22l0.35-1.46l-6.85-3.28l-6.5-6.39l-2.59-3.82l-0.63-3.63l3.31-0.79l-0.85-2.39l-2.03-1.71l-1.75-0.08l-2.44,0.67l-2.3,3.22l-1.39,0.92l-2.15-1.32L472.27,196.98L472.27,196.98M492.44,223.02l-1.45-0.78l-4.95,0.78l0.17,1.34l4.45,2.24l0.67,0.73l1.17,0.17L492.44,223.02L492.44,223.02z",name:"Italy"},fr:{path:"M477.83,206.96l-1.95,1.96l-0.18,1.78l1.59,0.98l0.62-0.09l0.35-2.59L477.83,206.96L477.83,206.96M460.4,178.7l-2.21,0.54l-4.42,4.81l-1.33,0.09l-1.77-1.25l-1.15,0.27l-0.88,2.76l-6.46,0.18l0.18,1.43l4.42,2.94l5.13,4.1l-0.09,4.9l-2.74,4.81l5.93,2.85l6.02,0.18l1.86-2.14l3.8,0.09l1.06,0.98l3.8-0.27l1.95-2.5l-2.48-2.94l-0.18-1.87l0.53-2.05l-1.24-1.78l-2.12,0.62l-0.27-1.6l4.69-5.17v-3.12l-3.1-1.78l-1.59-0.27L460.4,178.7L460.4,178.7z",name:"France"},nl:{path:"M470.09,168.27l-4.53,2.23l0.96,0.87l0.1,2.23l-0.96-0.19l-1.06-1.65l-2.53,4.01l3.89,0.81l1.45,1.53l0.77,0.02l0.51-3.46l2.45-1.03L470.09,168.27L470.09,168.27z",name:"Netherlands"},be:{path:"M461.61,176.52l-0.64,1.6l6.88,4.54l1.98,0.47l0.07-2.15l-1.73-1.94h-1.06l-1.45-1.65L461.61,176.52L461.61,176.52z",name:"Belgium"},de:{path:"M471.14,167.88l3.57-0.58v-2.52l2.99-0.49l1.64,1.65l1.73,0.19l2.7-1.17l2.41,0.68l2.12,1.84l0.29,6.89l2.12,2.82l-2.79,0.39l-4.63,2.91l0.39,0.97l4.14,3.88l-0.29,1.94l-3.85,1.94l-3.57,0.1l-0.87,1.84h-1.83l-0.87-1.94l-3.18-0.78l-0.1-3.2l-2.7-1.84l0.29-2.33l-1.83-2.52l0.48-3.3l2.5-1.17L471.14,167.88L471.14,167.88z",name:"Germany"},dk:{path:"M476.77,151.5l-4.15,4.59l-0.15,2.99l1.89,4.93l2.96-0.56l-0.37-4.03l2.04-2.28l-0.04-1.79l-1.44-3.73L476.77,151.5L476.77,151.5M481.44,159.64l-0.93-0.04l-1.22,1.12l0.15,1.75l2.89,0.08l0.15-1.98L481.44,159.64L481.44,159.64z",name:"Denmark"},ch:{path:"M472.91,189.38l-4.36,4.64l0.09,0.47l1.79-0.56l1.61,2.24l2.72-0.96l1.88,1.46l0.77-0.44l2.32-3.64l-0.59-0.56l-2.29-0.06l-1.11-2.27L472.91,189.38L472.91,189.38z",name:"Switzerland"},cz:{path:"M488.43,184.87h2.97h1.46l2.37,1.69l4.39-3.65l-4.26-3.04l-4.22-2.04l-2.89,0.52l-3.92,2.52L488.43,184.87L488.43,184.87z",name:"Czech Republic"},sk:{path:"M495.84,187.13l0.69,0.61l0.09,1.04l7.63-0.17l5.64-2.43l-0.09-2.47l-1.08,0.48l-1.55-0.83l-0.95-0.04l-2.5,1l-3.4-0.82L495.84,187.13L495.84,187.13z",name:"Slovakia"},at:{path:"M480.63,190.12l-0.65,1.35l0.56,0.96l2.33-0.48h1.98l2.15,1.82l4.57-0.83l3.36-2l0.86-1.35l-0.13-1.74l-3.02-2.26l-4.05,0.04l-0.34,2.3l-4.26,2.08L480.63,190.12L480.63,190.12z",name:"Austria"},hu:{path:"M496.74,189.6l-1.16,1.82l0.09,2.78l1.85,0.95l5.69,0.17l7.93-6.68l0.04-1.48l-0.86-0.43l-5.73,2.6L496.74,189.6L496.74,189.6z",name:"Hungary"},si:{path:"M494.8,191.99l-2.54,1.52l-4.74,1.04l0.95,2.74l3.32,0.04l3.06-2.56L494.8,191.99L494.8,191.99z",name:"Slovenia"},hr:{path:"M495.62,195.16l-3.53,2.91h-3.58l-0.43,2.52l1.64,0.43l0.82-1.22l1.29,1.13l1.03,3.6l7.07,3.3l0.7-0.8l-7.17-7.4l0.73-1.35l6.81-0.26l0.69-2.17l-4.44,0.13L495.62,195.16L495.62,195.16z",name:"Croatia"},ba:{path:"M494.8,198.94l-0.37,0.61l6.71,6.92l2.46-3.62l-0.09-1.43l-2.15-2.61L494.8,198.94L494.8,198.94z",name:"Bosnia and Herzegovina"},mt:{path:"M492.61,230.47l-1.67,0.34l0.06,1.85l1.5,0.5l0.67-0.56L492.61,230.47L492.61,230.47z",name:"Malta"},ua:{path:"M515.57,173.15l-2.9,1.63l0.72,3.08l-2.68,5.65l0.02,2.49l1.26,0.8l8.08,0.4l2.26-1.87l2.42,0.81l3.47,4.63l-2.54,4.56l3.02,0.88l3.95-4.55l2.26,0.41l2.1,1.46l-1.85,2.44l2.5,3.9h2.66l1.37-2.6l2.82-0.57l0.08-2.11l-5.24-0.81l0.16-2.27h5.08l5.48-4.39l2.42-2.11l0.4-6.66l-10.8-0.97l-4.43-6.25l-3.06-1.05l-3.71,0.16l-1.67,4.13l-7.6,0.1l-2.47-1.14L515.57,173.15L515.57,173.15z",name:"Ukraine"},md:{path:"M520.75,187.71l3.1,4.77l-0.26,2.7l1.11,0.05l2.63-4.45l-3.16-3.92l-1.79-0.74L520.75,187.71L520.75,187.71z",name:"Moldova"},ro:{path:"M512.18,187.6l-0.26,1.48l-5.79,4.82l4.84,7.1l3.1,2.17h5.58l1.84-1.54l2.47-0.32l1.84,1.11l3.26-3.71l-0.63-1.86l-3.31-0.85l-2.26-0.11l0.11-3.18l-3-4.72L512.18,187.6L512.18,187.6z",name:"Romania"},rs:{path:"M505.55,194.54l-2.05,1.54h-1l-0.68,2.12l2.42,2.81l0.16,2.23l-3,4.24l0.42,1.27l1.74,0.32l1.37-1.86l0.74-0.05l1.26,1.22l3.84-1.17l-0.32-5.46L505.55,194.54L505.55,194.54z",name:"Serbia"},bg:{path:"M511.44,202.39l0.16,4.98l1.68,3.5l6.31,0.11l2.84-2.01l2.79-1.11l-0.68-3.18l0.63-1.7l-1.42-0.74l-1.95,0.16l-1.53,1.54l-6.42,0.05L511.44,202.39L511.44,202.39z",name:"Bulgaria"},al:{path:"M504.02,209.76v4.61l1.32,2.49l0.95-0.11l1.63-2.97l-0.95-1.33l-0.37-3.29l-1.26-1.17L504.02,209.76L504.02,209.76z",name:"Albania"},mk:{path:"M510.92,208.01l-3.37,1.11l0.16,2.86l0.79,1.01l4-1.86L510.92,208.01L510.92,208.01z",name:"Macedonia"},gr:{path:"M506.71,217.6l-0.11,1.33l4.63,2.33l2.21,0.85l-1.16,1.22l-2.58,0.26l-0.37,1.17l0.89,2.01l2.89,1.54l1.26,0.11l0.16-3.45l1.89-2.28l-5.16-6.1l0.68-2.07l1.21-0.05l1.84,1.48l1.16-0.58l0.37-2.07l5.42,0.05l0.21-3.18l-2.26,1.59l-6.63-0.16l-4.31,2.23L506.71,217.6L506.71,217.6M516.76,230.59l1.63,0.05l0.68,1.01h2.37l1.58-0.58l0.53,0.64l-1.05,1.38l-4.63,0.16l-0.84-1.11l-0.89-0.53L516.76,230.59L516.76,230.59z", name:"Greece"}}})},function(t,e){jQuery.fn.vectorMap("addMap","usa_en",{width:959,height:593,paths:{hi:{path:"m244.66,512.25c-2.48,3.8 2.23,4.04 4.74,5.38 3.06,0.16 3.51,-4.28 2.66,-6.56 -2.72,-0.77 -5.01,-0.19 -7.41,1.19z m-9.31,3.97c-4.02,5.11 3.64,0.48 0.63,-0.09l-0.5,0.07 -0.14,0.02z m39.69,7.97c-0.62,2.09 1.91,6.73 4.39,6.2 2.41,-1.46 3.73,1.73 6.48,0.56 1.23,-1.48 -3.77,-3.2 -3.7,-6.08 -0.95,-3.8 -3.28,-3.2 -5.96,-1.28 -0.41,0.2 -0.81,0.4 -1.22,0.6z m19.94,10.03c3.58,0.95 7.91,2.99 11.25,0.47 -1.05,-1.63 -5.06,-0.59 -7.1,-0.86 -1.44,0.01 -3.54,-1.63 -4.15,0.39z m12.13,4.38c2.33,2.45 3.64,6.83 7.24,7.4 2.36,-0.69 6.84,-0.66 7.32,-3.43 -2.09,-2.51 -5.77,-3.35 -8.88,-4.29 -2.53,-1.2 -4.11,-3.25 -5.68,0.33z m-7.06,1c-0.29,3.69 5.55,3.98 3.67,0.55 -0.27,-1.25 -3.83,-1.74 -3.67,-0.55z m23.66,14.69c0.27,2.45 3.18,3.93 0.47,6.15 -0.65,2.42 -5.54,2.87 -2.52,5.53 2.36,1.46 2.01,4.85 2.92,7.14 -0.72,2.69 -1.43,6.78 1.72,8.06 2.8,2.95 4.5,-1.93 6.19,-3.68 1.27,-1.69 3.85,-4.1 5.94,-2.59 3.04,-0.81 6.3,-2.42 7.78,-5.22 -2.79,-1.31 -4.88,-3.19 -5.57,-6.29 -2.4,-5.33 -8.95,-6.26 -13.58,-8.98 -1.29,-0.52 -2.26,-1.62 -3.34,-0.11z",name:"Hawaii"},ak:{path:"m107.84,436.56c-2.27,0.55 -4.87,0.32 -6.84,-0.34 -2.41,1.22 -5.63,4.03 -8.25,1.88 -3.1,0.93 -3.51,3.84 -5.22,5.97 -1.82,2.52 -4.21,3.65 -7.31,3.14 -2.5,-0.94 -5.49,-1.15 -7.5,0.98 2.03,4.34 6.39,8.13 5.82,13.23 -1.85,2.94 6.31,2.99 2.68,5.02 0.15,2.8 3.07,5.68 2.91,7.88 -2.35,2.21 -5.24,-0.38 -7.71,-1.06 -3.24,-0.64 -2.73,-3.35 -0.82,-5.22 -1.57,-1.51 -7.35,-1.81 -6.51,1.12 -2.01,0.04 -3.81,-1.66 -6.27,-0.77 -3.72,-0.44 -5.97,0.65 -2.94,4.05 3.68,1.45 1.06,4.72 1.17,7.57 0.76,2.63 3.66,4.89 6.67,4.17 3.2,-0.06 5.87,3.59 9.21,1.65 2.16,-1.3 5.33,-0.99 4.79,1.89 -2.53,2.07 -1.36,6.13 -2.78,8.75 -1.96,1.88 -4.53,1.59 -6.59,0.16 -1.52,1.37 -4.7,3.68 -6.28,2.22 0.72,-3.71 -4.77,-3.63 -5.51,-0.61 -1.21,3.97 -6.27,4.46 -8.31,7.63 -0.7,2.42 -1.55,6.7 1.74,6.3 1.26,1.11 -1.2,4.8 -2.77,5.52 1.62,2.19 2.65,4.59 2.72,7.34 1.71,1.55 6.35,1.98 7.5,-0.16 2.45,-0.95 1.79,4.1 2.08,5.97 2.47,2.95 -4.02,1.28 -1.61,4.56 -0.85,2.93 -1.76,5.02 2,2.72 2.76,-0.47 5.11,-0.69 5.66,2.09 2.59,-3.91 2.26,2.78 3.25,4.66 0.59,-0.75 1.3,-5.69 3.94,-3.06 -0.17,4.52 5.33,-0.45 5.78,-0.04 0.54,2.92 -1.63,4.24 -2.86,6.41 -1.51,2.24 -2.07,5.63 -4.21,7.17 -3.87,-0.42 -3.37,4.1 -5.5,5.02 -2.65,-0.72 -5.73,0.71 -8.44,1.41 -1.35,2.41 -3.61,4.2 -5.78,1.81 -2.56,0.05 -5.63,0.68 -7.63,2.33 -2.48,2.43 -6.32,3.11 -9.66,2.29 -2.78,-1.91 -7.11,3.41 -3.11,2.31 2.5,-1.91 4.66,0.64 7.25,0.63 2.21,-1.15 4.17,-2.75 6.84,-2.06 2.32,-3.35 5.1,-0.32 7.92,-1.16 2.31,-0.39 7.01,-3.91 5.26,0.66 0.09,-2.91 3.42,-2.73 5.54,-2.04 4.21,0.96 0.29,-3.16 2.08,-3.43 3.47,-2.05 7.52,-2.41 11.2,-3.72 5.48,-3.19 11.62,-5.7 16.21,-10.1 4.27,-2.97 -2.78,-3.48 -1.21,-6.32 1.68,-2.43 4.58,-3.81 7.47,-4.5 1.5,-3.07 3.53,-6.11 5.88,-8.52 2.49,-1.32 4.83,-3.39 7.83,-2.32 2.67,0.71 3.74,5.32 -0.52,3.66 -1.27,-1.88 -5.56,-0.09 -5.25,2.41 -0.21,2.44 -2.56,4.22 -3.06,6.66 4.79,0.85 0.24,3.54 -1.38,3.8 1.67,1.91 5.66,0.6 7.57,-1.14 1.25,-1.85 3.43,-3.8 5.41,-4.22 1.81,2.8 5.1,-1.16 5.74,2.72 0.71,2.78 6.02,-4.86 3.34,-3.1 -3.03,3.11 -3.78,2.86 -1.94,-1.24 1.43,-4.85 -1.76,6.17 -1.45,0.81 -0.81,-3.19 -0.93,-6.03 3.05,-6.4 2.7,-0.86 5.37,-0.87 5.79,2.52 0.42,3.48 3.8,2.84 5.95,4.76 2.41,2.2 4.76,1.95 7.8,1.78 4.34,-0.47 8.01,4.04 12.28,3.17 2.49,-0.42 5.1,-5.2 4.29,-0.23 -2.26,2.83 -0.02,4.12 2.5,5.41 3.13,1.35 5.87,3.14 7.94,5.85 1.31,3.02 6.05,0.28 6.18,2.43 -3.83,1.25 -1.23,3.54 0.21,5.47 1.81,1.95 0.33,5.72 3.64,5.82 1.14,1.28 3.49,7.44 4.01,5.38 -0.35,-2.32 -0.7,-7.86 1.61,-3.76 0.37,1.42 1.04,8.7 2.07,4.74 1.07,-4.88 3.18,0.18 2.22,2.93 3.33,1.69 -1.23,3.33 0.69,4.88 0.69,-3.24 1.31,-0.36 2.16,1.56 1.05,1 1.54,3.94 3.13,3.72 -1.68,-1.72 -2.94,-6.23 0.4,-3 2.42,2.79 4.05,2.12 2.74,-1.66 -2.65,-2.66 0.28,-4.96 2.58,-2.29 3.12,-0.05 2.84,5.21 5.28,4.53 3.31,-3.17 1.5,-7.87 0.69,-11.7 -3.3,-1.55 -7.04,-2.54 -10.22,-4.06 -1.5,-5.33 -6.29,-8.69 -8.4,-13.77 -0.44,-3.33 -4.71,-2.62 -5.75,-5.23 -2.32,-1.72 -2.7,-4.4 -4.56,-6.35 -1.65,-1.53 -5.22,0.95 -5.51,2.94 0.59,3.09 -3.23,3.04 -5.06,4.72 0.05,-4.27 -4.3,-6.15 -6.7,-9.1 -1.33,-1.99 -1.32,-5.36 -4.45,-2.34 -2.37,0.24 -6.38,-0.31 -5.34,-3.62 0.1,-27.7 0.2,-55.4 0.31,-83.09 -2.75,-1.88 -5.88,-4.17 -9.15,-4.4 -2.52,1.72 -5.07,1.09 -7.39,-0.62 -2.72,0.23 -5.12,-0.65 -7.7,-2.89 -3.08,-2.74 -8.58,0.17 -10.98,-3.65 1.13,-3.56 -3.22,-4.83 -5,-2.09 -2.09,0.26 -0.65,-4.31 -3.64,-4.93 -2.57,-2.85 -4.01,-1.28 -5.86,1.21z M36.38,480.63c-0.67,3.11 4.27,1.31 4.72,4.66 0.24,3.82 5.37,3.9 2.34,-0.08 -0.1,-3.22 -3.92,-1.83 -5.06,-4.43 -0.76,-2.02 -0.9,-1.86 -2,-0.16z m-17.16,23.16c2.57,4.06 1.45,1.37 0.13,-1.28 -0.36,0.01 0,1 -0.13,1.28z m21.84,14.81c1.27,1.79 4.99,5.58 6.22,2.03 2.26,-3.3 -3.27,-2.89 -5.23,-3.68 -1.83,-0.9 -0.88,0.54 -0.99,1.65z m91.72,18.78c0.06,3.21 2.81,-1.98 0,0z m-31.47,14.69c-3.2,2.91 -7.24,4.67 -10.56,7.38 0.22,2.75 0.99,7.64 4.67,5.15 2.5,-1.44 4.98,-2.9 7.45,-4.37 -1.84,-3.31 -0.81,-3.15 -4.55,-3.48 -4.15,0.09 1.06,-3.73 2.64,-1.62 3.74,-1.04 3.95,-2.36 1.5,-3.66 0.7,-1.08 -1,0.61 -1.16,0.59z M55.75,570.75c1.42,2.83 3.53,-1.99 0,0z m-35.78,0.34c0.53,2.46 -4.04,4.84 1.05,3.59 4.2,0.47 3.46,-4.35 0.01,-3.84 -0.35,0.08 -0.7,0.16 -1.06,0.24z m62.19,0.69c1.57,2.91 1.31,-2.03 0,0z M58.63,573.13c3.23,0.49 0.99,-3.05 0,0z m-49,0.09c-4.84,2.56 -0.44,1.81 2.29,0.58 2.89,0.16 5.05,-0.48 0.84,-1.46 -1.04,0.29 -2.08,0.58 -3.13,0.88z m7.25,1.38c1.28,0.21 -2.23,-0.59 0,0z",name:"Alaska"},fl:{path:"m748.38,439.94c1.69,2.92 1.5,6.12 1.16,9.34 -4.12,0.54 -2.15,-4.69 -5.56,-3.99 -6.18,-0.07 -12.34,1.13 -18.54,1.19 -10.09,0.29 -20.37,2.14 -30.33,0.64 -2.57,-1.57 -2.84,-6.15 -6.5,-5.33 -9.12,-0.12 -18.18,1.79 -27.26,2.55 -5.82,0.63 -11.62,1.37 -17.43,2.12 -1.42,3.25 2.6,4.37 4.06,6.34 0.8,2.28 -1.56,8.42 2.19,7.1 4.11,-1.2 8.08,-2.93 12.48,-2.72 3.34,-0.82 6.63,-0.73 9.89,0.45 4.09,0.8 7.77,3.09 11.41,4.98 1.77,1.94 5.5,1.87 5.97,5 -0.14,3.27 4.32,-0.94 6.5,0.53 3.19,-0.8 5.24,-3.68 7.69,-5.5 4.86,1.69 0.62,-2.9 3.27,-3.97 3.13,-0.83 6.62,-1.39 9.35,0.79 3.04,0.57 5.43,2 6.57,4.99 3.68,0.02 2.88,4.13 5.48,5.3 2.96,0.49 2.98,4.52 6.3,4.3 2.91,0.36 5.45,1.15 5.84,4.45 2.05,2.11 3.92,4.26 3.09,7.41 0.18,3.68 0.12,7.33 -1.44,10.75 0.39,3.68 1.37,7.94 3.28,10.78 2.25,-3.46 0.17,-3.87 -1.74,-6.03 2.19,-1.76 4.86,-0.22 7.3,0.16 0.82,3.15 -2.16,5.6 -3.48,8.19 -3.3,2.21 1.65,4.09 2.73,6.3 3.11,3.34 4.35,7.94 7.53,11.26 0.78,2.29 2.51,7.47 4.63,3.09 2.54,-0.24 3.88,3.44 5.28,5.41 -0.02,2.26 1.93,7.04 3.59,6.44 2.88,-0.8 6.04,0.65 8.28,2.59 2.56,3.3 4.58,6.98 4.56,11.27 1.37,2.73 4.55,0.44 5.81,-1.14 3.74,0.45 7.26,-1.25 9.22,-4.47 -1.01,-2.36 -0.57,-4.83 -0.32,-7.17 -0.04,-2.18 4.33,-3.19 2.25,-6.51 -0.98,-6.33 -0.19,-12.96 -1.87,-19.25 -2.46,-6.93 -7.54,-12.74 -10.4,-19.56 -1.51,-2.41 -4.24,-3.92 -4.62,-7.04 -0.94,-2.28 -2.67,-4.95 -0.07,-6.71 -0.39,-3.56 -4.86,-5.42 -6.84,-8.41 -5.38,-5.57 -8.29,-12.94 -12.35,-19.44 -2.15,-5.53 -4.29,-11.07 -5.91,-16.78 -3.43,0.07 -7.3,-1.03 -10.46,-0.35l-0.34,0.37 -0.26,0.29z m52.91,109.22c-1.9,4.58 0.72,0.38 0.66,-1.91 -0.22,0.64 -0.44,1.27 -0.66,1.91z m-4.69,9.91c2.56,-1.97 3.68,-6.84 1.04,-1.68 -0.35,0.56 -0.69,1.12 -1.04,1.68z m-2.25,2.22c1.46,-1.22 2.04,-2.07 0.18,-0.18l-0.18,0.18z m-5.72,4.16c-5.23,3.69 4.03,-2.14 0.33,-0.19l-0.33,0.19z m-10.72,3.22c-3.41,3.16 5.71,-0.32 4.1,-0.81 -1.8,-0.56 -2.56,-0.71 -4.1,0.81z m-4.59,3.16c0.08,0.16 0.4,-0.3 0,0z",name:"Florida"},nh:{path:"m862.56,94c-1.4,-0.41 -3.87,-0.72 -3.05,3 0.22,3.63 -0.73,7.84 2.23,10.59 0.33,2.78 0.08,5.36 -2.17,7.29 -0.19,2.83 -5.98,2.58 -3.35,5.32 1.16,7.35 -0.56,15.03 -0.62,22.51 1.2,1.95 0.98,4.39 0.76,6.75 -1.07,3.79 4.84,-0.05 6.89,0.06 3.93,-1.29 8.46,-1.74 12.04,-3.54 0.77,-3.1 4.37,-2.75 5.94,-4.96 2.59,-3.52 -3.01,-2.73 -2,-6.59 -3.83,0.01 -4.27,-2.46 -4.66,-5.62 -3.84,-11.98 -7.32,-24.45 -11.49,-36.1 -0.18,0.43 -0.35,0.85 -0.53,1.28z",name:"New Hampshire"},mi:{path:"M697.86,177.24L694.63,168.99L692.36,159.94L689.94,156.71L687.35,154.93L685.74,156.06L681.86,157.84L679.92,162.85L677.17,166.57L676.04,167.21L674.58,166.57C674.58,166.57 671.99,165.11 672.16,164.47C672.32,163.82 672.64,159.45 672.64,159.45L676.04,158.16L676.84,154.77L677.49,152.18L679.92,150.56L679.59,140.54L677.98,138.28L676.68,137.47L675.87,135.37L676.68,134.56L678.3,134.88L678.46,133.27L676.04,131L674.74,128.42L672.16,128.42L667.63,126.96L662.13,123.57L659.38,123.57L658.74,124.21L657.77,123.73L654.7,121.46L651.79,123.24L648.88,125.51L649.2,129.06L650.17,129.39L652.27,129.87L652.76,130.68L650.17,131.49L647.58,131.81L646.13,133.59L645.81,135.69L646.13,137.31L646.45,142.8L642.9,144.9L642.25,144.74L642.25,140.54L643.54,138.12L644.19,135.69L643.38,134.88L641.44,135.69L640.47,139.89L637.72,141.02L635.94,142.96L635.78,143.93L636.43,144.74L635.78,147.33L633.52,147.81L633.52,148.95L634.33,151.37L633.2,157.51L631.58,161.56L632.23,166.24L632.71,167.38L631.9,169.8L631.58,170.61L631.26,173.36L634.81,179.34L637.72,185.8L639.18,190.65L638.37,195.34L637.4,201.32L634.97,206.5L634.65,209.25L631.39,212.33L635.8,212.17L657.22,209.91L664.5,208.92L664.59,210.58L671.45,209.37L681.74,207.87L685.6,207.41L685.74,206.82L685.9,205.37L688,201.65L690,199.91L689.78,194.86L691.37,193.26L692.46,192.92L692.69,189.36L694.22,186.33L695.27,186.94L695.44,187.58L696.24,187.74L698.18,186.77L697.86,177.24z M581.62,82.06L583.45,80L585.62,79.2L590.99,75.31L593.28,74.74L593.74,75.2L588.59,80.34L585.28,82.29L583.22,83.2L581.62,82.06z M667.79,114.19L668.44,116.69L671.67,116.85L672.97,115.64C672.97,115.64 672.89,114.19 672.56,114.03C672.24,113.86 670.95,112.17 670.95,112.17L668.76,112.41L667.15,112.57L666.82,113.7L667.79,114.19z M567.49,111.21L568.21,110.63L570.96,109.82L574.51,107.56L574.51,106.59L575.16,105.94L581.14,104.97L583.57,103.03L587.93,100.93L588.09,99.64L590.03,96.73L591.81,95.92L593.1,94.14L595.37,91.88L599.73,89.46L604.42,88.97L605.55,90.1L605.23,91.07L601.51,92.04L600.06,95.11L597.79,95.92L597.31,98.35L594.88,101.58L594.56,104.17L595.37,104.65L596.34,103.52L599.89,100.61L601.19,101.9L603.45,101.9L606.68,102.87L608.14,104L609.59,107.08L612.34,109.82L616.22,109.66L617.68,108.69L619.29,109.99L620.91,110.47L622.2,109.66L623.33,109.66L624.95,108.69L628.99,105.14L632.39,104L639.02,103.68L643.54,101.74L646.13,100.45L647.58,100.61L647.58,106.27L648.07,106.59L650.98,107.4L652.92,106.91L659.06,105.3L660.19,104.17L661.65,104.65L661.65,111.6L664.88,114.67L666.17,115.32L667.47,116.29L666.17,116.61L665.37,116.29L661.65,115.81L659.55,116.45L657.28,116.29L654.05,117.75L652.27,117.75L646.45,116.45L641.28,116.61L639.34,119.2L632.39,119.85L629.96,120.66L628.83,123.73L627.54,124.86L627.05,124.7L625.6,123.08L621.07,125.51L620.42,125.51L619.29,123.89L618.48,124.05L616.54,128.42L615.57,132.46L612.39,139.46L611.22,138.42L609.85,137.39L607.9,127.1L604.36,125.73L602.31,123.45L590.19,120.7L587.33,119.67L579.1,117.5L571.21,116.36L567.49,111.21z",name:"Michigan"},vt:{path:"m833.16,106.59c0.19,6 4.65,11.21 3.72,17.28 -2.48,4.23 4.52,7.29 2.22,11.58 0.9,1.59 4.66,1.96 4.06,5.25 1.08,4.21 2.86,8.34 1.84,12.76 3.35,-0.51 7.06,-1.17 10.13,-1.97 -0.21,-2.13 1.51,-5.75 -0.53,-7.81 0.2,-7.64 1.01,-15.26 1.13,-22.91 -3.25,-2.41 0.32,-3.79 2.12,-5.18 1.96,-2.28 3.9,-5.07 2.6,-8.1 -2.62,-1.63 -1.02,-5.94 -2.39,-7.22 -8.3,2.1 -16.59,4.21 -24.89,6.31z",name:"Vermont"},me:{path:"m889.88,40.22c-2.16,1.31 -3.69,2.74 -4.84,4.69 -2.29,0.6 -4.99,-1.37 -4.88,-3.94 -2.97,-0.82 -3.33,3.68 -4.37,5.71 -1.09,4.29 -3.27,8.39 -3.97,12.69 -0.06,3.04 1,6.63 -1.35,9.09 0.08,2.92 -0.75,6.18 2,8.16 -1.37,5.7 -6.23,10.36 -5.41,16.56 -4.27,-2.21 -1.74,2.47 -1.09,4.73 3.51,11.08 7.19,22.16 10.25,33.35 0.21,3.01 5.81,1.35 4.53,5.7 2.9,2 2.06,-3.92 2.66,-5.87 -1.01,-3.29 2.7,-4.63 0.66,-7.62 0.94,-1.05 2.92,-5.9 4.61,-3.46 2.03,1.03 5.28,-1.89 6.74,-3.19 -0.98,-4.02 4.21,-1.75 4.73,-5.32 -1.11,-2.61 0.74,-5.45 -0.57,-7.44 -2.42,-1.59 3.53,-4.63 3.31,-0.78 2.27,0.48 2.15,2.8 3.66,3.93 1.94,-2.82 -2.15,-3.81 0.35,-6.03 2.43,-0.81 3.1,-3.96 6,-3.31 -0.17,1.46 1.03,3.34 2.26,1.38 2.94,-2.9 5.24,-7.08 9.37,-8.34 1.17,-2.61 3.34,-5.74 0.71,-8.24 -0.55,-1.64 -3.68,-4.84 -4.15,-2.58 -0.75,2.6 -4.66,-0.65 -4.92,-2.22 0.1,-2.8 0.29,-7.17 -3.8,-5.81 -3.96,1.36 -3.64,-3.04 -4.69,-5.61C905.22,58.3 902.75,50.15 900.28,42c-2.86,-1.25 -5.71,-2.92 -8.81,-3.38 -0.53,0.53 -1.06,1.06 -1.59,1.59z m20.47,61c-2.81,1.7 1.87,5.16 1.13,1.22 1.48,-0.9 0.13,-2.4 -1.13,-1.22z m-7.81,7.81c3.16,6.67 2.63,-3.59 0,0z",name:"Maine"},ri:{path:"m871,164.28c1.15,4.66 2.29,9.31 3.44,13.97 2.56,-0.49 4.66,-2.29 5.84,-4.56 4.17,0.76 4,-2.64 1.51,-4.97 -1.79,-1.94 -3.16,-5.31 -5.74,-5.92 -1.68,0.49 -3.37,0.99 -5.05,1.48z",name:"Rhode Island"},ny:{path:"m825.56,108.66c-2.7,1.12 -5.45,1.68 -8.33,1.43 -5.07,0.72 -10.17,2.73 -12.92,7.31 -2.84,3.43 -4.89,7.49 -7.18,11.2 -1.65,2.36 -5.82,3.73 -5.55,6.84 -0.17,3.56 5.77,0.73 4.43,4.38 -2.69,2.3 0.8,4.23 0.56,6.59 0.5,3.47 -4.26,1.99 -5.36,4 -1.62,2.71 -3.35,6.62 -7.22,6.05 -3.04,-0.43 -5.35,2.05 -7.98,2.63 -2.5,-0.75 -4.7,-2.05 -7.59,-1.31 -5.31,0.21 -10.62,1.98 -15.23,4.53 -0.29,1.77 0.61,6.25 3.17,6.14 1.55,2.48 2.09,4.96 -0.63,6.72 -1.51,1.76 -1.8,4.25 -4.16,5.3 -1.93,1.14 -2.68,3.51 -4.8,4.54 0.33,3.07 -0.22,7.29 4.08,5.12 22.14,-4.26 44.26,-8.68 66.23,-13.74 0.98,3.85 5.67,1.32 6.44,4 0.64,2.93 1.36,7.4 5.33,6.88 3.14,1.9 6.9,3.68 10.69,4.22 2.71,0.47 7.18,1.43 6.44,5.06 -0.33,1.97 -1.62,7.56 1.97,5.93 5.3,-1.65 10.96,-2.84 15.06,-6.85 3.23,-2.49 6.76,-4.64 9.35,-7.86 -2.99,-2.44 -4.65,0.46 -6.81,2.42 -2.91,1.56 -6.01,3.51 -9.16,4.32 -2.6,-0.63 -4.83,-0.86 -6.18,2.07 -1.03,2.04 -4.86,2.98 -3.98,-0.15 4.26,-1.87 -2.17,-3.97 -0.33,-6.21 1.19,-3.13 0.56,-6.87 0.42,-10.21 -1.43,-7.38 -3.69,-14.76 -2.54,-22.36 -0.08,-4.46 1.55,-8.97 -0.51,-13.21 -1.22,-2.56 -0.47,-6.83 -4.05,-7.34 -2.99,-0.66 0.75,-4.31 -1.57,-6.2 -1.7,-2.43 -3.17,-4.91 -1.54,-7.81 0.38,-5.77 -3.83,-10.57 -3.55,-16.35 -2.32,0.65 -4.65,1.29 -6.97,1.94z",name:"New York"},pa:{path:"m798.88,181.63c-17.5,3.38 -34.87,7.42 -52.47,10.28 -0.61,-2 0.48,-8.42 -2.41,-4.31 -2.18,2.73 -5.48,3.74 -8.09,5.97 1.52,9.75 2.63,19.57 5.44,29.05 1.14,6.09 2.27,12.17 3.41,18.26 8.85,-1.42 17.79,-2.25 26.51,-4.41 16.39,-3.45 33.03,-6.46 49.33,-9.87 2.48,-3.07 8.03,-1.69 8.97,-6.19 0.64,-2.36 4.86,-3.99 4.33,-5.9 -2.3,-1.89 -5.94,-2.77 -6.39,-6.13 -3.14,1.09 -4.42,-3.94 -3.12,-5.32 3.86,-1.1 -0.49,-3.68 0.55,-5.96 2.52,-1.88 1.12,-5.15 2.81,-7.07 3.87,-2.7 -2.98,-1.1 -3.72,-3.99 -1.35,-2.18 -0.28,-7.24 -4.16,-5.92 -2.34,-1.13 -3.87,-3.75 -7.09,-1.7 -4.64,1.07 -9.28,2.15 -13.92,3.22z",name:"Pennsylvania"},nj:{path:"m827.84,191.34c1.03,2.99 -1.82,4.8 -2.06,7.47 2.86,1.63 0.49,4.87 -0.92,5.73 -0.41,3.86 4.01,1.68 4.16,5.14 1.37,2.19 4.72,3.02 6.26,4.94 -0.15,2.61 -3.85,3.5 -4.69,6.06 -0.26,3.07 -4.09,3.19 -4.18,5.96 -0.99,2.38 -0.74,5.09 1.7,6.47 2.85,2.76 6.86,3.99 10.73,4.38 0.48,1.55 -1.84,7.18 1.1,3.59 1.5,-2.42 0.59,-5.95 3.11,-8.01 2.5,-4.08 5.03,-8.84 4.88,-13.61 -1.35,-4.07 0.8,-9.01 -1.81,-12.82 -1.1,1.32 -6.17,1.23 -4.13,-0.8 2.39,-1.39 3.37,-3.62 2.39,-6.31 0.21,-2.31 1.58,-5.42 -1.69,-6.19 -4.35,-1.15 -8.82,-2.13 -12.88,-4.26 -0.66,0.75 -1.31,1.5 -1.97,2.25z",name:"New Jersey"},de:{path:"m824.88,225.34c-3.72,0.25 -3.47,3.52 -1.91,6.13 3.35,6.89 3.86,14.58 6.03,21.81 3.45,0.11 6.81,-0.49 10.16,-1.25 -1.2,-2.17 -0.68,-6.38 -3.32,-6.38 -2.9,-1.2 -4.17,-3.69 -4.9,-6.58 -0.91,-3.11 -3.62,-4.96 -5.48,-7.35 -1.85,-1.82 0.94,-5.5 -0.26,-6.47l-0.33,0.09z",name:"Delaware"},md:{path:"m813.59,229.19c-17.31,3.18 -34.53,6.83 -51.78,10.28 0.74,3.02 1.31,6.08 1.78,9.16 2.14,-1.9 3.29,-5.35 6.59,-5.34 2.14,-1.85 2.67,-5.25 5.77,-3.55 3.46,0.18 5.43,-5.35 9.01,-3.85 2.63,1.63 5.66,2.79 7.34,5.59 4.19,0.11 3.68,3.73 5.74,4.96 2.73,1.11 5.02,1.18 6.38,-0.53 4.29,1.38 2.24,3.74 1.44,6.9 0.09,2.97 -3.7,4.92 -1.66,7.97 3.1,1.31 6.4,1.2 9.63,1.4 2.17,1.58 6.83,1.03 3.79,-2.1 0.41,-2.74 -3.08,-3.35 -3.32,-6.04 -1.7,-2.67 -1.42,-5.47 -0.36,-8.32 1.68,-2.42 -2.83,-3.82 -0.4,-5.41 1.25,-1.53 0.43,-4.16 2.98,-4.7 1.62,-3.02 5.1,-1.45 2.35,1.02 -2.54,2.98 -0.81,4.5 0.57,6.3 1.41,3.55 -0.68,5.07 -1.53,7.31 -0.22,-0.81 3.62,-1.01 3.22,1.79 -3.15,1.64 -1.45,6.12 1.09,7.31 2.98,0.99 5.58,-1.8 6.98,2.14 1.5,3.75 4.92,0.81 7.41,-0.02 2.74,-1.21 3.47,-4.93 2.78,-7.7 -1.13,-1.58 -4.82,0.92 -7.13,0.4 -3.86,1.26 -4.9,-1.25 -5.28,-4.64 -1.68,-5.97 -2.14,-12.33 -5.16,-17.9 -0.04,-4.32 -2.71,-4.2 -6.07,-2.91 -0.73,0.16 -1.45,0.31 -2.18,0.47z m10.94,32.59c1.32,0.99 0.59,4.97 2.06,4.63 -0.48,-1.31 -0.36,-4.99 -2.06,-4.63z",name:"Maryland"},va:{path:"m792.88,242.88c-0.16,1.46 0.24,5.89 -2.4,4.29 -2.58,-0.67 -6.42,-3.2 -8.23,-2.73 0.7,3.72 -1.46,6.77 -2.99,9.94 -3.05,1.14 -2.29,5.83 -5.84,5.58 -1.62,1.74 -1.47,5.31 -2.45,7.73 -3.09,1.14 -5.37,-0.48 -7.28,-1.75 0.11,6.5 -3.72,11.95 -5.91,17.84 -1.69,1.73 1.19,3.8 -0.74,5.77 -1.35,3.56 -3.79,2.72 -6.19,4.19 -2.72,1.1 -4.9,0.5 -5.4,4.61 -2.07,1.14 -4.83,2.63 -6.91,0.47 -2.38,1.51 -5.02,3.21 -7.81,1.6 -2.69,-0.01 -3.9,-6.55 -6.07,-2.94 -3.27,4.09 -7.89,7.48 -10.21,12.09 0.43,3.25 -4.46,3.32 -6.42,5.15 -4.27,1.95 3.62,-0.11 5.16,-0.07 5.56,-0.79 11.14,-1.37 16.76,-1.36 1.95,-2.65 4.98,-1.81 7.77,-1.65 7.86,-0.32 15.65,-2.12 23.48,-2.99 12.85,-1.4 25.44,-4.27 38.04,-7.05 11.65,-2.52 23.3,-5.03 34.96,-7.55 -1.64,-2.66 -2.75,-6.67 -6.42,-4.14 -1.99,2.03 -6.61,-1.82 -2.7,-2.48 2.65,-1.62 -1.75,-4.07 -1.8,-5.97 -2.73,-0.62 -2.88,-5.12 0.54,-3.6 -0.17,-1.37 -1.24,-3.62 -1.62,-5.68 1.47,-3.51 -0.84,-4.97 -3.72,-5.16 0.31,-3.42 -2.9,-2.93 -5.22,-3.97 -3.33,0.21 -7.06,-0.25 -9.91,-1.66 -1.22,-2.41 -0.91,-5.12 1.25,-6.88 1.39,-2.83 -0.28,-5.7 -3.3,-6.27 -2.65,-0.83 -6.97,-0.29 -5.73,-4.3 -0.83,-0.3 -2.05,-1.06 -2.69,-1.06z m39.16,21.59c0.44,4.71 -3.15,8.7 -2.62,13.48 -0.34,4.11 2.64,5.72 3.48,0.92 1.71,-3.04 -0.23,-6.47 0.8,-9.73 0.4,-2.53 3.66,-3.88 3.52,-6.73 -1.73,0.69 -3.46,1.38 -5.19,2.06z",name:"Virginia"},wv:{path:"m739.75,223.25c-1.6,2.23 1.3,5.02 0.25,7.75 -0.18,4.04 -0.63,8.11 -0.84,12.13 -1.94,3.58 -4.43,7.35 -8.16,9.13 -3.15,-1.33 -3.92,3.25 -5.76,4.98 -1.56,2.28 2.64,4.93 -0.3,6.69 -2.57,3.58 -2.6,-4.8 -4.46,-0.71 -1.32,2.59 0.02,6.02 -1.35,8.33 -1.82,1.54 -0.53,5.19 -4.16,4.81 -2.23,0.13 -1.45,6.19 1,6.81 2.24,1.47 2.49,4.74 5.5,5.92 1.92,1.96 2.28,5.18 5.39,6.05 1.64,2.19 3.07,4.96 6.25,4.88 2.63,0.5 4.77,-3.86 7.22,-1.35 1.49,0.81 3.93,-0.57 4.58,-1.83 0.43,-4.57 3.42,-2.71 6.03,-4.39 2.39,-0.94 4.82,-0.98 5.62,-4.44 -1.26,-2.59 0.3,-5 1.56,-7.64 2.23,-4.81 4.72,-9.61 4.67,-15.05 2.65,-2.31 3.72,3.56 7.05,1.41 1.64,-1.77 1.12,-5.67 2.6,-7.59 3.47,0.39 2.97,-3.96 5.76,-5.21 2.29,-3.11 3.52,-6.8 3.06,-10.7 1.06,-1.29 5.1,1.62 7.23,2.15 3.3,3.35 4.34,-1.98 2.85,-4.05 -2,-2.28 -5.12,-3.7 -7.62,-4.75 -3.31,0.98 -5.44,5.47 -9.38,3.97 -1.86,-0.23 -2.38,3.98 -4.86,3.88 -2.89,0.71 -3.79,4.38 -6.03,6.22 -1.1,-0.06 -0.99,-4.82 -1.62,-6.64 -0.01,-3.93 -1.77,-5.3 -5.48,-3.82 -4.21,0.6 -8.41,1.23 -12.61,1.91 -1.17,-6.45 -2.29,-12.92 -3.44,-19.38l-0.35,0.35 -0.18,0.18z",name:"West Virginia"},oh:{path:"m729.5,197.78c-4.85,2.06 -7.38,6.9 -11.47,9.97 -4.08,0.86 -8.09,1.75 -11.72,3.88 -3.41,1.61 -4.39,-4.09 -7.67,-2.63 -3.13,1.35 -5.49,-1.1 -8.11,-2.41 -8.6,1.15 -17.15,2.64 -25.66,4.38 1.45,17.83 4.12,35.53 5.87,53.33 -0.69,3.82 4.06,2.26 6.23,1.48 2.74,0.41 4.83,2.16 5.48,4.94 1.26,2.48 5.82,-0.87 6.96,2.54 2.19,1.53 4.46,-2.33 7.03,-0.58 2.52,0.04 5.62,1.51 6.84,-1.56 1.49,-0.55 5.37,-3.85 5.41,-0.71 0.38,2.53 3.82,3.57 5.77,4.7 3.53,0.63 2.32,-3.91 4.21,-5.51 -0.11,-2.74 0.21,-5.73 1.39,-8.13 2.53,-2.81 3.8,4.53 4.98,0.39 -2.02,-2.27 -0.99,-5.41 0.93,-7.41 1.07,-4.06 4.05,-2.41 6.5,-4.39 2.93,-3.16 6.59,-6.57 5.97,-11.27 0.44,-4.71 1.18,-9.75 -0.53,-14.23 1.47,-2.48 2.58,-4.29 0.96,-7.33 -2.04,-7.53 -2.56,-15.37 -3.93,-23.04 -1.81,1.2 -3.63,2.4 -5.44,3.59z",name:"Ohio"},"in":{path:"m658.66,210.31c-9.12,0.93 -18.35,1.98 -27.41,2.68 -2.6,0.39 -4.21,5.08 -6.89,2.98 -3.83,-2.84 -2.64,1.83 -2.41,4.45 1.1,14.81 2.73,29.61 3.44,44.42 -0.76,3.69 -1.39,7.89 1.36,10.91 0.1,2.99 1.4,6.28 -1.14,8.65 -1.83,2.73 -2.55,6.09 -5.02,8.42 0.09,2.08 -2.02,8.2 1.63,5.16 3.49,-0.6 7.25,-1.53 10.69,-1.34 2.36,4.08 2.67,-0.62 5.26,-1.29 2.03,-2.62 4.78,2.05 5.34,1.04 -1.26,-3.41 3.05,-3.77 5.1,-5.22 1.09,0.63 6.05,3.38 5.3,-0.64 -0.46,-2.47 2.02,-4.71 3.65,-6.34 3.11,-1.39 4.33,-3.9 4.16,-7.23 1.83,-1 4.93,-1.01 6.97,-2.47 4.23,-1.03 0.26,-3.48 1.22,-5.92 -0.83,-12.56 -2.8,-25.13 -4.08,-37.69 -0.85,-6.99 -1.44,-14.01 -2.14,-21.02 -1.68,0.16 -3.35,0.31 -5.03,0.47z",name:"Indiana"},il:{path:"m569.75,200.44c-0.29,2.58 4.2,1.83 3.73,5.07 2.07,2.09 5.71,4.21 4.38,7.77 -0.31,3.04 -2.61,5.44 -3.08,8.4 -2.38,2.71 -6.06,2.98 -9.31,3.94 -1.61,2.47 -1.05,4.91 1.28,6.47 0.63,3.25 -1.08,5.07 -2.74,7.38 1.41,3.63 -2.39,2.86 -3.56,5.02 1.08,3.12 -2.11,3.8 -2.53,6.64 0.19,3.95 1.33,8.21 3.28,11.58 3.68,3.96 7.38,7.9 12.21,10.47 -0.61,2.88 -0.64,6.7 3.43,5.71 2.05,0 6.18,0.38 6.26,2.68 -0.19,4.39 -3.6,8.24 -3.28,12.53 1.6,3.83 5.33,6.26 8.59,8.42 3.37,-0.29 5.36,1.27 5.9,4.6 1.01,2.64 3.84,4.73 1.73,7.67 0.55,1.74 2.58,7.7 4.31,4.05 1.21,-2.98 5.41,-4.78 8.07,-2.46 3.1,2.46 5.94,0.47 3.13,-2.8 -0.98,-3.39 2.61,-4.96 5.37,-5.33 1.01,-1.55 -1.6,-4.46 1.4,-5.97 1.8,-3.97 -0.56,-9.39 3.32,-12.49 1.43,-2.97 3.23,-5.97 4.4,-8.97 0.13,-3 -0.7,-5.7 -2.34,-8.16 -0.45,-4.59 1.31,-9.09 0.02,-13.65 -1.16,-15 -2.22,-30.05 -3.67,-45.01 -1.02,-3.1 -1.61,-6.46 -4.04,-8.77 -2.27,-1.83 -0.51,-5.93 -1.97,-7.32 -14.76,0.83 -29.52,1.67 -44.28,2.5z",name:"Illinois"},ct:{path:"m865.78,165.41c-6.91,1.54 -13.81,3.08 -20.72,4.63 2.17,6.2 2.74,12.83 2.44,19.34 -2.62,4.3 2.61,2.38 3.97,-0.21 2.09,-1.89 4.19,-3.71 5.99,-5.88 2.06,1.35 4.78,-1.86 7.44,-1.46 2.98,-0.68 5.69,-2.24 8.56,-3.26 -1.15,-4.67 -2.29,-9.33 -3.44,-14 -1.42,0.28 -2.83,0.56 -4.25,0.84z",name:"Connecticut"},wi:{path:"m559.53,104.97c-4.06,2.75 -8.71,4.92 -13.53,5.84 -2.88,-1.08 -5.54,-1.12 -5.57,2.68 -0.48,3.34 0.51,7.03 -0.47,10.17 -2.02,3.26 -6.91,4.03 -7.36,8.38 -2.63,2.78 2.21,3.06 2.23,5.53 1.79,2.9 -2.13,4.74 -1.33,7.65 0.29,2.93 -0.4,6.49 1.14,8.93 1.33,3.48 5.88,0.21 6.64,3.93 1.56,2.26 5.47,1.03 6.19,4.78 2.15,5.1 9.7,4.85 11.21,10.39 0.68,3.38 0.35,7.34 1.94,10.32 3.26,1.05 1.94,4.34 0.25,6.21 -0.79,3.96 2.53,8.34 6.75,8.25 2.28,1.6 4.86,1.65 7.83,1.19 13.03,-0.77 26.07,-1.53 39.1,-2.3 -0.02,-4.45 -1.98,-8.61 -1.86,-13.13 -1.7,-2.04 -0.86,-4.17 -0.04,-6.39 0.32,-2.84 3.07,-4.93 1.51,-7.87 -1.05,-2.94 -0.88,-6.21 1.73,-8.27 -0.2,-2.83 -0.5,-5.03 -0.16,-7.93 -1.14,-4.2 2.64,-7.5 3.69,-11.36 0.92,-1.13 3.15,-8.34 0.73,-4.93 -2.65,3.81 -4.99,8.01 -8.18,11.29 -0.86,2.06 -3.21,4.55 -5.21,4.5 -2.57,-1.26 0.28,-4.49 0.9,-6.41 0.47,-2.94 3.2,-4.25 4.09,-6.85 -3.31,-1.29 -2.77,-5.03 -3.54,-7.92 0.02,-3.09 -1.23,-5.08 -4.29,-5.57 -2.14,-3.67 -7.04,-2.78 -10.59,-4.12 -7.13,-1.87 -14.21,-4.39 -21.67,-4.99 -2.48,-0.54 -2.84,-5.51 -5.51,-4.73 -1.71,-1.54 -3.85,-0.7 -5.82,0.13 -2.8,-1.32 0.68,-4.59 1.5,-6.38 2.18,-1.34 -1.53,-2.14 -2.31,-1z",name:"Wisconsin"},nc:{path:"m830.06,295.97c-18.3,3.8 -36.53,8 -54.86,11.65 -12.74,1.51 -25.38,4.07 -38.18,4.94 -3.32,-0.82 -1.17,3.72 -2.5,5.53 -2.62,1.34 -3.49,4.59 -5.03,6.38 -3.24,-1.36 -5.07,1.46 -6.34,3.97 -1.09,-0.57 -2.96,0.03 -3.41,-1.41 -2.02,1.96 -4.37,3.73 -4.31,6.81 -3.66,1.1 -6.31,3.82 -9.28,5.96 -2.64,0.94 -5.76,2.16 -7.4,4.35 0.73,4.06 -2.98,3.3 -5.1,5.29 -1.98,4.69 2.74,2.66 5.58,2.5 6.41,-1.19 13.32,-0.49 19.18,-3.73 5.04,-1.9 9.41,-5.9 15.06,-5.67 6.5,-0.64 13.15,-0.6 19.62,-0.69 2.99,0.53 3.36,4.79 5.58,5.01 5.37,-0.81 10.87,-1.67 16.25,-1.79 5.38,1.36 9.61,5.45 14.52,7.93 3.59,2.64 6.93,5.66 10.43,8.44 3.15,-0.86 6.32,-1.58 9.59,-1.72 1.06,-4.55 2.04,-9.29 5.39,-12.78 4.2,-4.27 9.23,-8.29 15.33,-9.29 2.91,1.95 3.69,-2.9 5.27,-4.53 2.72,-5 -2.44,3.91 -2.46,-1.22 -3.87,0.7 -5.43,-0.26 -3.29,-4 2.77,-4.25 -2.73,-2.51 -2.12,-6.02 -1.42,-3.76 2.84,2.19 5.06,0.81 2.81,0.12 5.1,-1.87 5.59,-4.6 0.45,-2.9 4.59,-2.7 3.28,-6.48 -4.02,-2.43 4.25,-0.66 0.4,-3.93 -3.52,-3.44 -5.24,-8.33 -7.23,-12.76 -1.54,0.35 -3.08,0.71 -4.63,1.06z m17.13,23.72c1.55,2.61 -4.64,4.26 -0.52,2.69 1.38,-1.92 0.21,-5.22 0.24,-7.62 -0.74,-2.05 0.37,4.57 0.28,4.94z",name:"North Carolina"},dc:{path:"m803.44,248.16c2.67,3.43 3.85,-1.02 0.55,-0.75l-0.29,0.4 -0.25,0.35z",name:"District of Columbia"},ma:{path:"m877.59,144.41c-1.04,3.1 -4.01,3.5 -6.79,4.13 -8.62,2.32 -17.17,4.6 -25.96,6.12 -0.11,4.77 -1.17,9.59 -0.03,14.31 10.66,-2.6 21.54,-4.29 32,-7.44 3.57,2.81 6.01,6.73 8.28,10.59 2.13,-0.78 0.01,-5.15 3.77,-5.38 2.93,-3.28 1.83,4.78 3.17,2.62 2.13,-3.09 6.1,-3.9 9.41,-5.21 -0.11,-3.41 -2.21,-8.55 -6.38,-7.53 1.64,-0.1 4.89,0.87 4.91,3.82 0.85,2.24 -2.55,3.71 -4.35,4.24 -3.37,0.51 -4.99,-1.76 -6.32,-4.47 -1.38,-2.05 -3.58,-6.56 -6.3,-3.6 -1.89,-1.72 -3.13,-4.04 -1.33,-6.3 2.3,-2.34 1.23,-6.2 -1.28,-7.16 -0.93,0.41 -1.86,0.82 -2.79,1.24z M902.25,172.69c-1.6,2.76 3.05,-2.44 0.08,-0.32l-0.08,0.32z m-11.28,1.28c1.59,0.78 6.09,-2.26 1.78,-2.03 -0.59,0.68 -1.19,1.35 -1.78,2.03z",name:"Massachusetts"},tn:{path:"m730.41,314.34c-8.87,-0.11 -17.76,1.5 -26.57,2.73c-10.24,2.86 -20.99,2.66 -31.48,4.02c-16.34,1.45 -32.65,3.29 -48.96,4.95c-4.57,-1.71 -0.43,5.74 -5.06,4.14c-6.97,0.06 -13.87,1.23 -20.84,0.71c-0.95,4.26 -1.37,9.04 -3.6,12.76c1.03276,2.6246 -1.94104,7.30425 -2.59092,9.90471c-2.52529,1.78965 -2.61104,1.92035 -0.46104,4.90035c3.07759,1.94598 -1.38459,5.12506 1.90081,3.86506c33.91,-3.26 65.53115,-6.30012 99.44115,-9.56012c-0.23,-2.54 0.72,-5.31 3.53,-5.69c3.11,-0.4 0.99,-5.41 4.88,-5.81c2.77,-2.02 6.49,-2.19 8.62,-5.18c1.76,-2.26 6.31,-1.64 5.78,-5.38c1.19,-1.77 3.1,-3.84 5.03,-4.85c1.04,-0.39 0.28,1.78 1.72,1.19c2.38,0.56 2.2,-4.36 5.22,-3.86c3.3,1.27 2.68,-2.92 4.96,-4.18c2.05,-0.94 3.81,-6.68 0.92,-6.59c-0.81,0.64 -1.63,1.27 -2.44,1.91l0,0.02z",name:"Tennessee"},ar:{path:"m509.47,335.31c1.73,4.9 1.5,10.02 1.53,15.12c2.15,12.21 1.13,24.64 1.47,36.97c0.02,3.71 0.04,7.42 0.06,11.13c2.06,3.2 5.05,-1.45 7.69,1.47c1.53,1.76 -0.88,7.54 2.97,6.49c17.61,-0.36 35.23,-0.72 52.84,-1.08c1.97,-2.6 0.41,-5.9 -1.28,-8.22c3.3,-1.61 -1.59,-3.96 0.84,-6.53c0.75,-2.77 0.62,-6.34 3.78,-7.69c-1.88,-3.07 2.08,-5.24 3.19,-7.88c3.77,-0.38 1.58,-3.3 2.64,-5.42c1.12,-2.67 2.56,-5.28 4.85,-6.58c1.2,-4.12 0.21,-2.67 -1.53,-5.61c-2.76,-3.32 1.95,-3.50023 2.36,-6.84c0.17988,-0.90552 3.08012,-6.46012 1.22,-6.75c-2.65,0.85 -5.34,-0.18 -8.02,-0.33c-0.09,-3.38 4.4,-3.88 4.22,-7.3c0.58,-3.87 -3.58,-3.68 -6.34,-3.26c-24.17,0.77 -48.34,1.54 -72.5,2.31l0.01,0z",name:"Arkansas"},mo:{path:"m490.44,245.63c-2.39,-0.46 -0.19,4.05 0.07,5.6 2.45,3.32 4.51,7.86 8.55,9.22 2.81,-0.24 3.61,2.67 2.79,4.84 -3.22,1.64 -1.72,5.03 0.19,7.07 0.9,2.55 4.61,3.05 4.89,5.61 2.1,12.97 1.12,26.14 1.51,39.22 0,5.72 0.08,11.44 0.72,17.13 24.99,-0.94 49.98,-1.8 74.97,-2.51 3.02,-1.12 4.35,1.72 5.31,3.98 0.52,3.48 -2.86,4.46 -4.14,6.86 2.37,0.64 5.57,0.65 8.21,-0.08 1.46,-3.59 1.87,-7.45 2.38,-11.22 0.84,-2.83 5.27,-2.89 4.61,-6.03 1.37,-2.94 0.14,-4.6 -2.22,-4.28 -2.15,-1.81 -2.84,-5.03 -2.86,-7.6 1.45,-2.84 -2.08,-5.07 -2.44,-7.89 -0.66,-3.24 -5.34,-0.87 -6.89,-3.66 -2.64,-2.34 -6.24,-3.94 -6.91,-7.76 -0.94,-3.21 1.52,-6.47 2.17,-9.64 2.2,-3.53 -1.34,-4.7 -4.33,-4.5 -2.66,0.39 -5.34,-1.15 -4.81,-4.1 0.86,-4.07 -4.71,-4.05 -6.43,-6.93 -2.7,-3.4 -6.72,-6.05 -7.25,-10.67 -1.1,-3.16 -2.12,-6.86 -0.62,-10.06 -2.3,-1.34 -2.28,-5.77 -5.37,-4.89 -20.69,0.77 -41.38,1.53 -62.06,2.3z",name:"Missouri"},ga:{path:"m672.78,356c-0.74,7.06 4.28,12.69 5.29,19.4 1.36,6.57 3.44,12.96 5.03,19.44 0.94,4.88 2.17,9.95 5.53,13.75 -0.85,3.5 3.37,3.17 2.59,6.44 -1.89,4.45 -3.57,9.65 -0.84,14.13 0.05,2.63 0.94,5.4 -0.38,7.88 2.95,0.94 1.45,4.01 3.07,6.01 1.35,2.67 3.68,4.75 6.83,4 12.35,-0.01 24.69,-1.31 37.03,-1.92 3.32,-0.58 6.67,-0.74 10.04,-0.59 -0.78,4.24 3.04,4.15 2.09,-0.09 -0.9,-2.14 -2.94,-6.23 0.59,-6.62 3.2,0.5 6.42,0.91 9.66,1.02 -0.84,-3.8 -0.8,-7.57 0.5,-11.27 0.2,-3.54 2.62,-6.73 2.21,-10.21 -0.72,-2.93 3.26,-5.26 2.85,-8.05 -2.19,1.37 -5.29,-0.71 -5.34,-3.19 -0.56,-3.12 -2.71,-5.83 -6.03,-6.06 -1.33,-3.9 -2.62,-8.17 -4.99,-11.43 -3.12,-1.07 -6.13,-2.99 -7.17,-6.29 -2.06,-2.33 -5.23,-3.21 -6.66,-6.16 -2.08,-2.2 -5.24,-2.83 -7.66,-4.19 -0.76,-2.53 -3.21,-4.09 -3.94,-6.67 -1.36,-2.63 -2.97,-4.65 -6.15,-3.77 -2.33,-1.57 -7.15,-3.38 -5.31,-6.97 2.02,-2.01 3.76,-4.11 -0.8,-3.11 -12.68,1.51 -25.37,3.01 -38.05,4.52z",name:"Georgia"},sc:{path:"m737.03,343.19c-4.26,0.4 -8.64,0.43 -12.24,3.07 -3.2,1.75 -6.48,3.19 -9.88,4.49 2.21,3.31 -4.28,2.74 -2.34,6.44 2.27,2.24 5.2,4.13 8.5,3.28 2.53,3.15 3.83,6.94 6.53,9.88 0.91,2.76 5.13,2.06 6.85,4.46 2.18,1.38 2.96,4.25 5.62,5.01 2.99,1.95 3.36,6.38 7.26,7.24 3.61,0.62 3.77,4.77 5.34,7.38 0.38,3.35 2.02,4.84 4.79,5.96 3.36,1.79 1.76,7.23 5.67,8.16 3.63,-1.38 5.8,-4.63 8.38,-7.34 -2.35,-3.93 0.29,-3.32 3.01,-4.44 1.95,-2.4 5.02,-3.3 6.25,-6.28 2.17,-2 3.86,-4.52 5.4,-6.9 2.81,-0.17 3.42,-3.58 4.92,-5.03 -0.28,-4.13 1.3,-7.89 3.12,-11.47 1.03,-2.11 7.03,-4.5 3.47,-6.34 -5.97,-5.35 -12.78,-9.5 -19.71,-13.47 -4.45,-2.68 -9.74,-0.07 -14.57,-0.06 -2.57,-0.23 -6.63,2.48 -7.32,-1.28 -1.66,-4.5 -6.93,-2.82 -10.63,-2.96 -2.8,0.07 -5.61,0.14 -8.41,0.21z",name:"South Carolina"},ky:{path:"m675,267.5c-2.76,-0.77 -6,1.11 -3.38,3.78 1.52,3.15 -3.12,4.12 -5.19,5.27 -2.94,0.53 -4.71,1.29 -4.3,4.82 -1.15,2.66 -5.3,3.24 -6.32,6.32 -2.16,1.4 0.74,6.22 -2.84,5.92 -3.06,0.61 -4.36,-2.79 -7.09,0.11 -2.26,0.51 -1.1,6.98 -3.85,3.1 -2.27,-2.54 -5.57,0.14 -6.16,2.81 -1.91,1.07 -3.4,-3.73 -6.02,-1.91 -3.32,0.61 -7.48,0.47 -9.92,2.91 0.08,2.65 -3.39,3.78 -1.7,6.05 2.34,2.66 -2.23,2.68 -3.86,3.3 -3.57,1.35 -0.68,4.35 -0.76,6.72 0.33,3.45 -3.76,1.44 -5.49,0.72 -2.5,-2.29 -6.26,-0.38 -7.13,2.53 2.86,2.28 -0.04,4.76 0.41,7.66 -3.47,2.04 -3.19,2.73 0.94,2.35 5.84,0.01 11.64,-0.95 17.5,-0.76 -0.7,-3.74 0.98,-4.99 4.56,-4.19 24.33,-3.01 48.82,-4.7 73.16,-7.43 4.3,-0.7 8.2,-2.38 11.75,-4.88 3.3,-0.8 4.04,-2.71 5.12,-5.35 3.46,-4.09 7.13,-8.06 10.79,-12 -3.27,-1.24 -3.03,-5.51 -6.21,-6.95 -2.6,-1.25 -2.07,-4.66 -5.16,-5.36 -2.38,-2.64 0.8,-7.28 -3.02,-8.87 -3.02,-0.01 -2.37,-4.65 -4.57,-3.51 -2.95,0.61 -3.67,4.78 -7.02,3.29 -2.69,-0.23 -5.51,-1.19 -7.82,0.71 -3,0.83 -3.99,-3.61 -7.44,-2.06 -3.51,0.82 -2.17,-5.19 -5.65,-5.26C677.17,266.43 676.21,267.17 675,267.5z",name:"Kentucky"},al:{path:"m628.53,359.63c-0.2,14.37 0.12,28.75 -0.54,43.12 -0.04,9.01 -0.88,18.1 -0.07,27.07 1.55,10 2.94,20.01 3.85,30.09 3.07,1.09 3.69,-1.92 4.4,-4.18 -0.3,-3.89 4.27,-3.02 4.89,-0.04 0.72,2.06 4.08,5.27 0.77,6.65 -0.15,0.92 6.17,-0.9 5.88,-2.89 -0.44,-3.01 0.64,-6.86 -2.87,-8.19 -2.29,-0.88 -3.03,-5.59 -0.32,-5.67 14.08,-1.86 28.21,-3.59 42.35,-4.8 2.7,1.07 6.76,-0.25 2.97,-2.5 -1.8,-2 0.95,-5.03 -0.27,-7.65 -0.31,-3.1 -2.63,-5.9 -1.31,-9.15 0.01,-2.92 2.49,-5.36 1.93,-8.3 -3.52,-0.45 -1.34,-5.11 -4.26,-6.7 -3.48,-5.82 -3.36,-13.04 -5.96,-19.21 -2.02,-8.09 -3.34,-16.41 -7.25,-23.88 -0.51,-2.39 -1.08,-4.85 -0.72,-7.31 -14.49,1.18 -28.98,2.35 -43.47,3.53z",name:"Alabama"},la:{path:"m521.09,407.28c0.1,7.53 -0.24,15.32 1.67,22.61 2.08,2.49 2.82,5.51 3.15,8.67 1.87,2.78 5.27,4.95 4.59,8.72 1.61,2.18 -0.21,5.69 0.08,8.38 0.42,2.64 -4.36,4.89 -2.01,7.12 1.07,2.26 -0.92,5.31 -0.53,7.95 0.38,3.22 -2.37,5.7 -1.55,8.93 5.18,-2.4 10.98,-0.86 16.47,-1.09 5.72,1.7 11.56,4.87 17.56,4.26 2.93,-2.25 5.94,0.36 8.98,0.93 1.08,-3.4 -4.22,-0.81 -5.8,-2.2 -1.91,-0.36 -2.89,-2.3 -1.17,-3.4 2.08,-1.1 4.08,-1.09 5.66,0.04 2.15,-1.39 5.6,-0.24 6.26,2.38 -0.33,3.62 3.42,1.7 5.28,3.15 3.83,1.5 -1.41,4.07 0.83,5.37 2.88,0.97 5.73,2.94 8.62,3.29 3.51,-0.05 2.81,-4.53 6.47,-4.17 1.83,-2.9 4.44,-0.25 4.39,2.31 1.53,1.64 4,-3.68 1.98,-3.66 0.22,-3.37 2.17,-3.21 4.31,-5.41 1.59,0.95 0.91,2.82 1.41,4.16 3.33,0.39 7.44,1.09 9.34,4.06 2.79,0.08 5.17,1.1 5.56,-2.56 -2.68,-0.27 -4.15,-3.88 -7.35,-3.19 -2.31,0.06 -6.3,-1.62 -6.15,-3.77 1.62,-3.62 2.23,-1.74 2.03,-4.38 2.88,1.09 5.69,-2.27 3.22,-4.47 0.46,-4.62 -3.73,-0.15 -3.34,2.19 -1.36,1.21 -6.35,-0.96 -4.6,-3.27 1.71,-1.84 4.2,-4.5 2.19,-6.95 -0.13,-3.26 -2.69,-5.21 -4.47,-7.38 0.52,-2.7 2.26,-7.35 -2.36,-5.46 -10.43,1.28 -20.97,0.69 -31.45,1.12 -1.61,-3.72 -0.02,-7.76 0.16,-11.59 2.66,-4.86 5.46,-9.65 8.25,-14.44 -2.04,-2.82 3.52,-4.45 -0.74,-6.48 -0.53,-2.15 -1.29,-4.65 -2.32,-6.83 -0.08,-3.1 0.9,-7.3 -3.62,-5.79 -17,0.28 -34,0.57 -51,0.85z",name:"Louisiana" },ms:{path:"m591.03,363.5c-1.45,1.74 -4.03,3.15 -4.63,6.03 -1.4,2.22 1.43,5.74 -2.69,6.07 -1.48,1.97 -4.77,4.42 -3.4,7.17 -1.36,1.83 -3.59,3.95 -3.48,7.01 -2.16,2.66 1.55,5.28 -0.27,7.12 -0.45,1.84 2.25,4.42 1.35,7.03 -1.92,2.71 -1.63,6.55 -0.61,9.53 1.6,2.4 0.78,5.54 3.73,6.94 -0.95,2.53 -1.41,3.75 -1.87,6.31 -2.55,4.96 -6.07,9.62 -7.89,14.84 0.01,2.98 -1.44,6.14 -0.14,8.97 11.4,-0.36 22.87,0.25 34.19,-1.5 2.75,2.21 -2.19,6.39 1.33,8.15 2.82,1.62 2.28,5.18 3.89,7.63 2.07,-1.86 2.51,-6.19 5.82,-4.07 3.21,-0.67 6.85,-3.02 9.89,-0.64 3.62,0.73 6.01,-0.27 4.42,-4.26 -0.81,-10.1 -2.99,-20.07 -3.84,-30.15 0.14,-21.99 1.48,-43.98 0.64,-65.97 -12.15,1.26 -24.29,2.52 -36.44,3.78z",name:"Mississippi"},ia:{path:"m476.25,181.16c-3.42,-0.05 -2.16,5.68 0.72,6.29 0.54,2.07 -0.75,5.06 -1.41,7.35 -2.13,2.82 -0.93,5.45 1.04,7.92 1.22,4.34 2.24,8.85 4.05,13.06 0.6,3.22 1.29,6.38 3.41,9 0.02,3.49 1.27,6.69 2.3,9.91 -0.04,3.54 0.03,7.05 2.08,10.09 22.2,-1.02 44.44,-1.75 66.66,-2.63 0.77,1.43 3.25,7.11 4.37,4.25 -0.96,-2.5 1.19,-4.52 3.57,-4.72 -0.88,-2.62 1.19,-4.59 2.5,-6.28 1.27,-2.92 -1.39,-4.02 -2.41,-6.31 0.69,-2.9 1.79,-5.3 5.13,-5.46 2.88,-0.83 6.57,-1.81 6.65,-5.41 1.76,-3.04 3.73,-8.01 -0.26,-10.18 -2.74,-1.06 -1.75,-5.27 -5.21,-5.14 -0.64,-1.97 -0.85,-4.76 -4.19,-4.21 -2.75,-0.8 -4.55,-3.47 -5.37,-6 -1.36,-2.89 2.01,-4.72 1.65,-7.28 -3.82,-0.4 -1.19,-6.5 -5.03,-5.47 -26.75,0.41 -53.5,0.81 -80.25,1.22z",name:"Iowa"},mn:{path:"m497.03,53.84c-0.69,2.52 0.93,7.42 -1.31,8.34 -9.65,-0.01 -19.29,-0.02 -28.94,-0.03 1.16,2.87 2.18,5.76 0.97,8.81 0.05,5.74 -0.79,11.86 2.51,16.95 2.04,3.78 0.64,8.47 1.5,12.6 0.82,6.84 1.76,13.67 3.55,20.32 0.05,3.83 0.88,7.8 0.03,11.53 -1.57,1.74 -4.91,3.29 -2.22,5.78 1.89,1.83 5.05,2.94 4.58,6.1 0.28,11.9 0.25,23.83 0.42,35.75 26.72,-0.38 53.44,-0.75 80.16,-1.13 -0.15,-3.62 -0.46,-7.93 -4.36,-9.47 -3.02,-1.66 -6.24,-3.1 -7.63,-6.5 -0.72,-3.61 -5.32,-1.16 -6.05,-4.61 -1.56,-2.09 -5.29,-0.37 -6.57,-3.78 -1.66,-2.1 -0.52,-5.5 -1.1,-8.1 -1.34,-2.93 1.65,-4.99 1.47,-7.54 -0.2,-3.22 -5.36,-3.85 -2.24,-7.43 0.41,-4.47 5.39,-5.33 7.61,-8.59 0.24,-3.87 -0.73,-8.14 0.52,-11.77 1.76,-3.14 5.17,-5.1 8.28,-6.26 1.92,-2.08 3.66,-4.57 6.13,-5.81 2.54,-4.97 6.04,-9.99 11.81,-11.4 4.55,-1.98 9.12,-3.92 13.6,-6.04 0.73,-3.15 -3.7,-0.18 -5.06,0.03 -0.82,-3.87 -4.2,-3.09 -7.28,-2.87 -2.25,-0.87 -5.34,2.83 -6,-0.66 -1.13,-3.5 -4.51,0.72 -5.88,2.13 -2.33,1.63 -6.22,1.16 -8.06,-0.56 0.94,-3.05 -4.61,-0.39 -4.53,-3.96 -0.16,-2.3 -3.48,1.3 -5.77,-1.2 -3.04,-0.91 -5.5,-3.22 -8.29,-4.38 -2.49,0.4 -5.86,-2.38 -6.7,1.5 -1.17,0.79 -7.15,1.83 -5.93,-1.54 -2.99,0.03 -6.03,-0.05 -7.53,-1.75 -2.6,0.59 -5.72,-0.41 -5.9,-3.43 -0.88,-3.28 -1.44,-6.61 -1.88,-9.98 -1.23,-0.6 -2.54,-1.02 -3.91,-1.06z",name:"Minnesota"},ok:{path:"m363.31,330.03c17.51,1.12 35.04,1.73 52.56,2.47 -1.37,13.62 -2.89,27.23 -2.83,40.93 -0.92,3.93 3.48,5.78 6.14,7.66 0.56,-5.56 2.96,1.46 4.25,-1.31 0.93,-1.5 5.57,1.68 3.39,4.42 1.59,0.66 4.76,0.51 6.73,1.82 2.79,-0.99 5.16,3.32 7.03,1.26 1.82,-1.93 5.59,-0.31 6.5,2.02 2.44,0.79 1.71,5.84 4.76,3.05 1.39,-1.65 6.25,-1.17 6.69,1.21 1.28,1.5 5.69,3.72 7.39,1.92 0.33,-2.75 3.38,-5.95 4.59,-1.83 3.59,0.38 6.96,2 10.46,3 2.28,-1.86 2.44,-4.68 6.53,-3.41 2.53,1.92 3.8,-1.41 6.31,-1.16 0.85,2.42 5.2,2.41 6.19,-0.5 3.2,-0.2 3.66,3.71 6.55,4.35 1.86,0.4 6.31,3.63 5.36,0.18 -0.32,-12.27 0.1,-24.59 -0.7,-36.82 -1.15,-6.03 -1.01,-12.18 -1.43,-18.25 -1.32,-5.29 -2.05,-10.73 -2.07,-16.18 -20.01,0.66 -40.04,-0.04 -60.06,-0.22 -27.85,-1.32 -55.73,-2.3 -83.53,-4.56 -0.27,3.31 -0.54,6.63 -0.81,9.94z",name:"Oklahoma"},tx:{path:"m359.47,330.97c2.34,-0.11 -0.86,-1.81 0,0z m0.72,18.31c-1.64,20.84 -2.52,41.75 -4.68,62.55 -0.51,4.33 -0.99,8.66 -1.51,12.98 -17.84,-0.87 -35.67,-1.93 -53.42,-3.89 -4.16,-0.41 -8.32,-0.76 -12.48,-1.11 -0.67,3.74 2.27,3.68 4.04,6.12 2.26,1.83 1.13,6.03 4.65,6.5 3.52,0.48 2.9,4.6 5.45,6.34 3.38,3.15 5.5,7.91 10.27,9.06 1.91,1.27 4,3.22 4.53,5.46 0.69,3.96 4.53,7.02 3.47,11.33 -0.88,5.15 2.22,9.63 5.93,12.88 2.18,2.95 5.14,4.76 8.63,5.78 1.88,1.95 3.01,3.88 5.72,4.88 2.59,0.18 5.38,4.34 7.35,1.18 2.59,-3.14 5.48,-6.41 6.05,-10.55 1.26,-2.82 3.58,-4.32 6.5,-5.06 2.72,-1.59 5.32,-2.13 7.47,0.62 4.91,0.57 10.2,0.53 14.79,2.22 2.83,1.43 2.56,4.53 5.17,6.33 1.73,2.05 4.83,3.37 5.81,5.82 1.37,2.07 2.66,4.26 2.69,7.03 1.62,4.34 4.17,8.51 5.31,12.94 -0.24,2.77 4.65,2.49 4.95,5.51 2.24,4.08 4.37,9.17 9.21,10.49 3.28,2 0.03,5.04 0.91,7.5 3.28,0.87 -0.01,4.68 0.94,6.67 2.53,1.36 4.37,3.2 4.22,6.44 0.39,3.34 2.13,6.83 5.69,7.54 3.01,1.93 6.69,2.13 9.87,3.4 2.28,1.79 5.15,4.09 8.16,2.83 3.46,0.46 6.77,1.29 9.37,3.75 1.43,2.54 6.51,-0.91 4.31,-2.89 -2.04,-3.39 -1.3,-7.79 -2.83,-11.46 -0.63,-3.07 -2.39,-5.95 -0.99,-9.1 1.17,-4.9 2.87,-9.76 4.04,-14.71 -3.37,-1.01 -2.07,-5.47 1.21,-4.71 3.99,0.42 3.65,-6.43 7.81,-6.05 5.25,-1.56 9.07,-6 14.16,-8.05 6.91,-2.81 13.62,-6.46 18.72,-12.05 2.58,-2.98 7.09,-3.95 8.69,-7.75 5,-2.22 9.8,-4.93 15.22,-6 -0.97,-2.64 0.52,-4.86 1.32,-7.22 0.39,-2.99 0.19,-6.07 1.18,-8.94 -3.15,-2.27 0.38,-4.91 1.38,-7.41 -0.2,-2.8 1.42,-6.25 0.09,-8.66 0.3,-2.93 -1.49,-5.14 -3.35,-7.29 -2.46,-2.64 -1.11,-6.91 -3.87,-9.52 -2.53,-4.57 -1.59,-10.19 -2.25,-15.22 0.02,-5 0.19,-10 -0.5,-14.97 -2.63,-2.31 -5.52,2.33 -7.52,-1.37 -3.1,-2.07 -7.66,-2.1 -9.73,-5.68 -2.31,-2.48 -3.82,2.84 -7.18,0.96 -1.91,-2.73 -3.59,0.03 -5.98,0.18 -2.27,-1.15 -6.07,-1.48 -6.09,1.76 -2.76,2.37 -5.95,-0.93 -8.94,-1.28 -3,1.38 -5.23,-3.83 -6.3,-1.87 -0.15,2.66 -2.52,5.1 -5.13,3.34 -3.23,-0.15 -4.91,-2.49 -6.57,-3.89 -2.95,-1.74 -4.3,2.32 -6.94,0.88 -1.48,-1.39 -1.87,-3.6 -3.92,-5.65 -3.06,-2.83 -5.03,3.17 -7.13,0.23 -2.05,-2.11 -5.57,-0.83 -7.94,-2.69 -3.56,0.59 -5.54,-0.24 -4.13,-4.11 -1.89,-1.85 -2.28,1.21 -4.77,-0.14 -0.59,-0.41 -3.45,1.78 -5,-1.11 -1.9,-1.9 -5.13,-3.22 -4.18,-6.45 0.03,-10.58 0.25,-21.15 1.66,-31.65 0.3,-2.99 0.6,-5.98 0.89,-8.98 -17.65,-0.63 -35.3,-1.27 -52.94,-2.22 -0.52,6.07 -1.04,12.15 -1.56,18.22z M466.53,518.63c-5.2,7.17 2.93,-3.27 0,0z",name:"Texas"},nm:{path:"m242.72,428.78c4.82,0.63 9.65,1.25 14.47,1.88 0.43,-3.33 0.85,-6.67 1.28,-10 9.7,0.89 19.4,1.86 29.09,2.78 -0.9,-3.14 -1.39,-5.98 2.84,-4.5 18.29,1.28 36.48,3.79 54.81,4.49 2.45,-0.6 7.66,2.13 7.99,-1.01 3.06,-22.93 3.75,-46.09 5.59,-69.14 0.54,-7.79 1.39,-15.56 2.02,-23.34 3.21,0.65 1.17,-4.81 2.07,-6.86 1.79,-4.38 -2.87,-3.37 -5.73,-3.85 -32.35,-3.3 -64.71,-6.59 -97.06,-9.89 -5.79,39.81 -11.58,79.63 -17.38,119.44z",name:"New Mexico"},ks:{path:"m380.53,320.34c25.06,1.17 50.11,2.71 75.19,3.35 17.22,0.07 34.44,0.63 51.66,0.18 -0.25,-12.69 0.23,-25.42 -0.47,-38.08 -0.61,-2.83 -0.17,-6.27 -1.38,-8.74 -3.04,-2.03 -6.02,-5.19 -6.68,-8.77 -0.43,-2.51 4.3,-4.59 1.29,-6.64 -3.02,0.54 -4.05,-3.34 -7.17,-2.43 -36.21,-0.82 -72.43,-1.33 -108.63,-2.5 -1.27,21.21 -2.54,42.42 -3.81,63.63z",name:"Kansas"},ne:{path:"m353.38,230.59c10.76,0.96 21.27,2.72 32.03,3.66 -0.37,7.11 -0.71,14.23 -1.06,21.34 36.49,1.29 73,1.84 109.5,2.56 -0.31,-1.17 -3.13,-4.05 -4.03,-6.15 -1.99,-2.11 -0.36,-5.13 -2.45,-7.34 -2.42,-3.19 -1.66,-7.14 -2.2,-10.79 -1.66,-2.86 -1.45,-6.25 -2.29,-9.26 -2.94,-2.85 -2.34,-7.01 -3.95,-10.49 -1.13,-3.1 -2.18,-6.19 -2.62,-9.47 -3.51,1.32 -2.89,-3.07 -4.85,-4.29 -2.4,-1.68 -5.57,-1.85 -7.72,-3.93 -3.79,0.07 -7.65,1.04 -11.13,1.94 -2.52,-2.2 -6.03,-3.13 -7.91,-6.06 -13.61,0.96 -27.23,-0.49 -40.83,-1.11 -15.5,-1.05 -31.02,-1.79 -46.51,-2.86 -1.67,14.08 -2.83,28.17 -4,42.25z",name:"Nebraska"},sd:{path:"m357.44,187.41c25.68,1.58 51.37,3.15 77.06,4.26 3.58,-0.01 7.34,-0.51 10.81,-0.23 1.8,2.9 5.24,3.85 7.69,6 3.55,-1.45 7.52,-1.89 11.25,-1.91 2.45,2.67 7.26,2.29 9.15,5.33 1.32,4.76 3.27,1.86 0.18,-1.15 -1.53,-2.17 1.46,-4.6 1.56,-6.99 1.2,-2.87 1.38,-5.28 -1.58,-6.75 -0.5,-2.04 -0.73,-6.65 2.41,-5.84 2.62,-0.28 0.39,-5.28 1.06,-7.5 -0.32,-9.7 0.19,-19.47 -0.64,-29.13 -0.24,-3.58 -6.26,-4.19 -5.42,-8.4 1.09,-1.22 5.81,-4.38 2.75,-5.4 -27.23,-0.89 -54.5,-1.01 -81.67,-3.15 -9.79,-0.62 -19.57,-1.24 -29.36,-1.86 -1.75,20.91 -3.5,41.81 -5.25,62.72z",name:"South Dakota"},nd:{path:"m362.88,123.72c26.46,1.49 52.89,3.7 79.4,3.91 10.84,0.26 21.67,0.52 32.51,0.78 0.01,-5.53 -1.38,-10.82 -2.5,-16.17 -1.27,-7.42 -2.05,-14.89 -2.13,-22.42 -2.61,-4.16 -4.11,-9 -3.48,-13.94 -0.44,-3.25 0.67,-6.57 0.3,-9.7 -0.15,-4.01 -2.83,-4.61 -6.31,-4.12 -25.15,-0.47 -50.33,-1.05 -75.41,-3.06 -5.17,-0.49 -10.33,-0.98 -15.5,-1.47 -2.29,22.06 -4.58,44.13 -6.88,66.19z",name:"North Dakota"},wy:{path:"m240.16,217.84c37.4,4.49 74.29,8.23 111.69,12.72 2.5,-29.2 5.5,-57.65 8,-86.84 -35.26,-4.45 -70.52,-8.9 -105.78,-13.34 -4.64,29.16 -9.27,58.31 -13.91,87.47z",name:"Wyoming"},mt:{path:"m192.59,52.19c0.84,2.76 3.25,5.4 3.2,8.23 -1.5,2.79 -1,5.49 0.52,8.15 3.4,0.39 4.18,3.44 5.26,6.16 1.43,3.34 2.55,6.88 5.37,9.34 0.88,2.21 5.27,1.18 4.34,4.72 -2.23,6.21 -5.45,12.23 -7.06,18.56 0.02,3.34 3.4,5.25 5.73,2.22 1.61,-2.43 5.63,-3.04 4.69,0.97 -0.5,5.3 1.81,10.35 2.59,15.53 1.9,2 5.27,3.44 5.68,6.31 -0.71,1.91 -0.39,8.78 2.32,5.14 1.85,-1.89 4.93,-0.29 6.85,0.86 3.28,-1.63 7.26,-1.21 10.34,0.69 3.69,0.41 1.52,-5 5.95,-4.08 2.71,-0.42 2.01,6.69 3.21,4.1 0.56,-3.26 1.09,-6.54 1.68,-9.8 35.57,4.49 71.15,8.96 106.72,13.44 2.9,-28.44 5.79,-56.88 8.69,-85.31 -28.84,-2.29 -57.55,-5.91 -86.19,-9.99 -26.71,-4.12 -53.36,-8.71 -79.73,-14.68 -3.05,-0.61 -6.99,-2.59 -6.53,2.19 -1.21,5.75 -2.42,11.51 -3.62,17.26z",name:"Montana"},co:{path:"m260.17,308.53c39.89,4.09 79.51,8.26 119.39,11.91 1.61,-28.46 3.23,-56.92 4.84,-85.38 -37.47,-4.17 -74.94,-8.33 -112.41,-12.5 -4.03,28.98 -7.8,56.99 -11.83,85.97z",name:"Colorado"},id:{path:"m169.84,91.72c0.52,3.07 2.27,5.25 4.94,6.78 0.4,3.02 -0.61,5.46 -3.03,7.31 -2.3,2.7 -4.38,5.97 -6.09,8.83 0.39,2.93 -2.57,3.54 -4.23,4.8 -1.77,2.31 -4.28,4.3 -3.93,7.5 -0.64,2.43 4.69,0.57 4.09,4.34 -5.19,11.17 -6.78,23.51 -10.13,35.32 -0.79,3.16 -1.22,4.91 -2.01,8.08 56.92,12.84 62.26,13.45 93.58,19.41 2.75,-17.6 5.5,-35.21 8.25,-52.81 -2.66,-0.84 -0.58,-6.52 -4.23,-4.97 -1.24,1.7 -1.62,4.95 -5.17,3.47 -3.11,-1.99 -6.81,-1.34 -10.13,-0.56 -2.53,-1.76 -5.91,-2.01 -7.69,0.88 -1.75,-0.05 -3.29,-3.39 -2.79,-5.36 1.91,-3.98 -2.85,-5.89 -5.05,-8.27 -0.98,-5.88 -3.48,-11.64 -2.5,-17.69 -1.86,-0.01 -4.25,2.69 -6.47,3.63 -2.21,0.18 -4.52,-3.09 -4.1,-5.31 1.19,-5.37 4.07,-10.37 5.88,-15.6 1.95,-2.64 1.12,-5.57 -2.41,-5.62 -1.55,-3.37 -4.92,-5.66 -5.61,-9.53 -1.31,-2.63 -1.42,-6.47 -5.06,-6.76 -0.99,-1.85 -3.18,-4.47 -1.91,-6.73 2.09,-2.98 -0.34,-5.7 -1.53,-8.5 -2.13,-3.05 0.55,-6.68 0.67,-10.01 0.9,-4.35 1.8,-8.69 2.69,-13.04 -4.18,-0.78 -8.35,-1.56 -12.53,-2.34 -4.5,20.92 -9,41.83 -13.5,62.75z",name:"Idaho"},ut:{path:"m176.34,297.78c27.57,3.92 55.15,7.83 82.72,11.75 4.04,-29.08 8.08,-58.17 12.13,-87.25 -10.83,-1.14 -21.65,-2.33 -32.47,-3.59 1.43,-7.93 2.82,-15.85 3.84,-23.84 -15.27,-2.85 -30.54,-5.71 -45.81,-8.56 -6.8,37.17 -13.6,74.33 -20.41,111.5z",name:"Utah"},az:{path:"m173.19,314.66c-2.49,-0.06 -3.05,4.43 -6.38,2.94 -0.74,-2.87 -3.59,-2.82 -5.59,-4.22 -3.74,0.74 -2.37,4.58 -2.68,7.41 -0.52,5.04 -0.42,10.21 -0.89,15.22 -2.19,2.33 -2.44,5.78 -0.24,8.19 2.32,2.62 0.58,7.52 4.09,9.09 0.98,3.59 -2.89,4.83 -5.41,6.09 -3.29,2.46 -3.28,6.86 -3.88,10.47 -1.25,2.44 -4.81,2.39 -4.92,4.97 0.47,2.18 6.18,0.38 3.42,4.54 -0.65,2.75 -3.14,3.45 -5.62,3.78 -3.6,1.45 -2.69,4.7 0.77,5.44 14.69,7.84 28.52,17.13 43.01,25.32 5.79,3.19 11.27,7.21 17.27,9.88 11.71,2.83 23.75,3.45 35.68,4.87 5.71,-39.38 11.42,-78.75 17.13,-118.13 -27.58,-3.93 -55.17,-7.85 -82.75,-11.78 -1,5.31 -2,10.63 -3,15.94z",name:"Arizona"},nv:{path:"m84.84,232.41c22.96,34.61 45.92,69.23 68.88,103.84 3.66,2.65 3.19,-3.47 3.27,-5.71 0.37,-5.43 0.36,-11.24 1.08,-16.44 2.05,-2.03 4.26,-2 6.08,-0.39 2.62,-0.16 3.86,5.9 6.03,1.27 2.74,-0.82 2.66,-3.64 3.13,-6.41 7.5,-40.87 15,-81.75 22.51,-122.62 -30.72,-6.81 -61.44,-13.63 -92.16,-20.44 -6.27,22.3 -12.54,44.6 -18.81,66.91z",name:"Nevada"},or:{path:"M67.16,62.81C64.24,70.42 62.73,78.57 58.5,85.63c-2.86,8.53 -5.96,16.93 -10.17,24.89 -3.06,6.61 -8,12.31 -11.32,18.7 -1.03,6.5 -0.64,13.05 -0.36,19.6 37.23,8.7 74.46,16.69 111.69,25.39 3.45,-13.15 6.51,-25.75 10.19,-38.81 1.2,-2.48 3.15,-6.06 -1.1,-5.42 -2.58,-1.78 -0.23,-4.45 -0.38,-6.91 2.3,-2.82 4.36,-5.82 7.47,-7.75 1.75,-5.08 5.43,-9.19 9.03,-13.06 1.66,-3.48 -2.46,-3.92 -3.39,-6.47 -0.25,-3.79 -3.56,-4.26 -6.62,-4.99 -7.63,-2.2 -15.38,-4.2 -23.21,-5.54 -4.9,0.03 -9.79,0.06 -14.69,0.09 -0.95,-2.84 -4.67,1.86 -7.11,0.5 -2.61,0.82 -4.42,-2.63 -6.57,-1.28 -2.61,-0.06 -5.23,0.11 -7.15,-1.87 -3.09,-1.53 -6.33,-1.81 -9.5,-3.1 -1.87,3.03 -5.69,1.22 -8.53,1.31 -1.65,-1.64 -5.79,-3.02 -6.03,-4.81 1.1,-2.44 0.78,-5.93 0.53,-8.59 -0.42,-3.92 -4.72,-2.63 -6.25,-4.49C74.59,58.67 69.45,62.45 67.16,62.81z",name:"Oregon"},wa:{path:"m101.38,8.72c0.05,2.75 2.93,5.39 3.25,8.16 -1.92,2.33 -1.78,5.19 -1.32,7.71 -1.81,2.64 1.63,4.82 0.67,7.42 -3.6,1.52 -2.43,-3.7 -4.86,-4.99 -3.34,-2.24 1.47,-3.87 1.17,-5.42 -2.5,-1.11 -2.24,3.88 -3.69,4.17C92.33,26.39 88.86,23.04 84.76,22.57 79.82,20.66 75.28,17.69 72.25,13.25c-3.13,-0.98 -1.96,4.97 -3.25,6.95 -0.63,2.8 2.59,5.06 1.41,8.21 0.52,3.86 -1.29,7.55 0.18,11.29 -1.06,2.88 4.75,5.54 2.94,6.39 -3.45,-1.05 -6.2,3.2 -2.25,4.34 1.57,0.97 -0.61,6.32 -3.3,5.43 -1.83,2.15 1.28,6.86 4.14,4.17 3.77,-1.55 2.75,3.51 5.83,3.13 2.81,-0.24 4.26,3.31 4.54,5.61 0.04,2.48 -0.15,6.02 -0.26,7.78 2.63,1.76 5.01,4.26 8.46,3.62 3.2,0.66 4.7,-3.26 7.97,-0.5 3.01,0.48 6.37,1.55 8.79,3.66 3.03,0.92 6.02,-1.78 8.19,1.05 3.44,1.3 6.67,0.03 9.84,-1.4 0.99,1.78 4.42,1.32 7,1.3 5.35,-0.19 10.68,-0.16 15.82,1.55 6.99,1.44 13.78,3.45 20.65,5.4 4.47,-20.85 8.94,-41.71 13.41,-62.56 -19.81,-3.93 -39.37,-9.21 -58.73,-14.66 -7.27,-1.53 -14.4,-3.52 -21.46,-5.87L101.75,8.45 101.38,8.72z M95.5,15.16C94.05,13.72 92.15,14.26 94.72,17.63 94.39,13.84 99.19,18.11 98.98,14.18 98.24,12.75 96.05,14.08 95.5,15.16z m2.31,1.91c-3.13,3.04 1.36,2.18 0.16,-0.25l-0.16,0.25z",name:"Washington"},ca:{path:"m35.06,153.94c-0.1,4.04 0.4,8.21 -1.99,11.75 -1.86,3.68 -2.55,8.24 -6.48,10.38 -1.19,2.11 -3.49,3.38 -3.59,6.45 -1.94,3.49 2.49,5.65 2.91,8.98 1.54,3.39 2.34,6.94 1.63,10.65 0,2.92 -2.79,5.01 -2.24,8.14 0.05,2.97 -2.24,5.87 0.04,8.54 2.58,5 6.38,9.93 6.71,15.69 -0.54,2.77 -0.99,5.37 1.81,7.17 1.6,1.95 4.49,3.66 2.79,6.46 -1.73,3.87 -1.14,8.04 -1.09,12.16 1.68,2.67 2.83,6.76 6.66,6.53 1.48,2.33 0.97,4.84 -0.22,7.13 -2.5,1.53 -4.36,2.73 -3.66,6.08 0.27,3.49 4.27,5.34 4.36,9.01 1.46,6.2 4.13,11.92 7.59,17.25 0.71,2.57 2.16,4.34 2.9,6.41 -0.24,3.33 -1.93,6.49 -2.41,9.87 -1.66,2.61 1.19,5.52 3.99,5.12 4.03,0.15 7.27,3.31 11.01,4.04 3,-0.55 4.74,2.9 6.07,5.11 1.54,2.71 2.37,6 5.76,6.88 2.51,1.14 6.19,0.05 7.17,3.45 2.41,2.72 -2.39,5.05 1.41,5.17 2.73,1.87 5.56,-1.74 7.56,-0.74 2.13,2.06 4.05,4.2 4.93,7.05 4.3,4.9 1.44,11.77 2.79,17.52 14.73,1.94 29.44,4.72 44.27,5.38 2.78,1.19 6.19,-4.43 2.84,-4.65 -3.13,0.64 -2.83,-4.02 -1.36,-4.66 3.15,-0.88 4.92,-3.83 4.65,-7.04 0.47,-3.98 3.27,-7.43 7.22,-8.4 3.43,-2.04 -0.33,-3.58 -0.79,-5.79 -0.23,-3.65 -1.95,-6.81 -3.62,-9.89 2.02,-3.66 -2.22,-3.32 -3.16,-6.24 -22.6,-34.1 -45.2,-68.19 -67.81,-102.29 6.27,-22.44 12.54,-44.88 18.81,-67.31 -22.04,-5.16 -44.08,-10.31 -66.13,-15.47 -0.45,1.38 -0.9,2.75 -1.34,4.13z m24.13,184.72c-0.27,3.05 7.99,3.06 4.7,2.07 -1.63,-0.35 -3.17,-2.46 -4.7,-2.07z m-5.16,0.38c0.33,3.71 5.81,0.51 1.31,-0.04 -0.44,0.01 -0.88,0.02 -1.31,0.04z M79.69,357.5c-0.2,1.58 4.42,6 3.16,2.37C82.22,358.91 80.8,357.6 79.69,357.5z M77.75,369.13c-0.14,1.55 3.2,3.89 1.32,1.26C78.6,369.72 77.39,366.55 77.75,369.13z",name:"California"}}})},function(t,e){},function(t,e){$(document).ready(function(){"use strict";$("#checkedAll").change(function(){this.checked?$(".checkSingle").each(function(){this.checked=!0}):$(".checkSingle").each(function(){this.checked=!1})}),$(".checkSingle").on("click",function(){if($(this).is(":checked")){var t=0;$(".checkSingle").each(function(){this.checked||(t=1)}),0==t&&$("#checkedAll").prop("checked",!0)}else $("#checkedAll").prop("checked",!1)}),$("input[type=checkbox]").on("click",function(t){$(this);$("someSwitchOptionDefault").prop("checked",!0)})})},function(t,e,i){i(743),function(){"use strict";var t=$(".color-picker");t.each(function(){var t=$(this),e=getDataOptions(t);t.colorpicker(e)})}()},function(t,e,i){var n,r;!function(a,o){n=[i(13)],r=function(t){return o(t)}.apply(e,n),!(void 0!==r&&(t.exports=r))}(this,function(t){"use strict";var e=function(i,n,r,a,o){this.fallbackValue=r?r&&"undefined"!=typeof r.h?r:this.value={h:0,s:0,b:0,a:1}:null,this.fallbackFormat=a?a:"rgba",this.hexNumberSignPrefix=o===!0,this.value=this.fallbackValue,this.origFormat=null,this.predefinedColors=n?n:{},this.colors=t.extend({},e.webColors,this.predefinedColors),i&&("undefined"!=typeof i.h?this.value=i:this.setColor(String(i))),this.value||(this.value={h:0,s:0,b:0,a:1})};e.webColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32",transparent:"transparent"},e.prototype={constructor:e,colors:{},predefinedColors:{},getValue:function(){return this.value},setValue:function(t){this.value=t},_sanitizeNumber:function(t){return"number"==typeof t?t:isNaN(t)||null===t||""===t||void 0===t?1:""===t?0:"undefined"!=typeof t.toLowerCase?(t.match(/^\./)&&(t="0"+t),Math.ceil(100*parseFloat(t))/100):1},isTransparent:function(t){return!(!t||!("string"==typeof t||t instanceof String))&&(t=t.toLowerCase().trim(),"transparent"===t||t.match(/#?00000000/)||t.match(/(rgba|hsla)\(0,0,0,0?\.?0\)/))},rgbaIsTransparent:function(t){return 0===t.r&&0===t.g&&0===t.b&&0===t.a},setColor:function(t){if(t=t.toLowerCase().trim()){if(this.isTransparent(t))return this.value={h:0,s:0,b:0,a:0},!0;var e=this.parse(t);e?(this.value=this.value={h:e.h,s:e.s,b:e.b,a:e.a},this.origFormat||(this.origFormat=e.format)):this.fallbackValue&&(this.value=this.fallbackValue)}return!1},setHue:function(t){this.value.h=1-t},setSaturation:function(t){this.value.s=t},setBrightness:function(t){this.value.b=1-t},setAlpha:function(t){this.value.a=Math.round(parseInt(100*(1-t),10)/100*100)/100},toRGB:function(t,e,i,n){0===arguments.length&&(t=this.value.h,e=this.value.s,i=this.value.b,n=this.value.a),t*=360;var r,a,o,s,l;return t=t%360/60,l=i*e,s=l*(1-Math.abs(t%2-1)),r=a=o=i-l,t=~~t,r+=[l,s,0,0,s,l][t],a+=[s,l,l,s,0,0][t],o+=[0,0,s,l,l,s][t],{r:Math.round(255*r),g:Math.round(255*a),b:Math.round(255*o),a:n}},toHex:function(t,e,i,n,r){arguments.length<=1&&(e=this.value.h,i=this.value.s,n=this.value.b,r=this.value.a);var a="#",o=this.toRGB(e,i,n,r);if(this.rgbaIsTransparent(o))return"transparent";t||(a=this.hexNumberSignPrefix?"#":"");var s=a+((1<<24)+(parseInt(o.r)<<16)+(parseInt(o.g)<<8)+parseInt(o.b)).toString(16).slice(1);return s},toHSL:function(t,e,i,n){0===arguments.length&&(t=this.value.h,e=this.value.s,i=this.value.b,n=this.value.a);var r=t,a=(2-e)*i,o=e*i;return o/=a>0&&a<=1?a:2-a,a/=2,o>1&&(o=1),{h:isNaN(r)?0:r,s:isNaN(o)?0:o,l:isNaN(a)?0:a,a:isNaN(n)?0:n}},toAlias:function(t,e,i,n){var r,a=0===arguments.length?this.toHex(!0):this.toHex(!0,t,e,i,n),o="alias"===this.origFormat?a:this.toString(!1,this.origFormat);for(var s in this.colors)if(r=this.colors[s].toLowerCase().trim(),r===a||r===o)return s;return!1},RGBtoHSB:function(t,e,i,n){t/=255,e/=255,i/=255;var r,a,o,s;return o=Math.max(t,e,i),s=o-Math.min(t,e,i),r=0===s?null:o===t?(e-i)/s:o===e?(i-t)/s+2:(t-e)/s+4,r=(r+360)%6*60/360,a=0===s?0:s/o,{h:this._sanitizeNumber(r),s:a,b:o,a:this._sanitizeNumber(n)}},HueToRGB:function(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t},HSLtoRGB:function(t,e,i,n){e<0&&(e=0);var r;r=i<=.5?i*(1+e):i+e-i*e;var a=2*i-r,o=t+1/3,s=t,l=t-1/3,u=Math.round(255*this.HueToRGB(a,r,o)),h=Math.round(255*this.HueToRGB(a,r,s)),c=Math.round(255*this.HueToRGB(a,r,l));return[u,h,c,this._sanitizeNumber(n)]},parse:function(e){if(0===arguments.length)return!1;var i,n,r=this,a=!1,o="undefined"!=typeof this.colors[e];return o&&(e=this.colors[e].toLowerCase().trim()),t.each(this.stringParsers,function(t,s){var l=s.re.exec(e);return i=l&&s.parse.apply(r,[l]),!i||(a={},n=o?"alias":s.format?s.format:r.getValidFallbackFormat(),a=n.match(/hsla?/)?r.RGBtoHSB.apply(r,r.HSLtoRGB.apply(r,i)):r.RGBtoHSB.apply(r,i),a instanceof Object&&(a.format=n),!1)}),a},getValidFallbackFormat:function(){var t=["rgba","rgb","hex","hsla","hsl"];return this.origFormat&&t.indexOf(this.origFormat)!==-1?this.origFormat:this.fallbackFormat&&t.indexOf(this.fallbackFormat)!==-1?this.fallbackFormat:"rgba"},toString:function(t,i,n){i=i||this.origFormat||this.fallbackFormat,n=n||!1;var r=!1;switch(i){case"rgb":return r=this.toRGB(),this.rgbaIsTransparent(r)?"transparent":"rgb("+r.r+","+r.g+","+r.b+")";case"rgba":return r=this.toRGB(),"rgba("+r.r+","+r.g+","+r.b+","+r.a+")";case"hsl":return r=this.toHSL(),"hsl("+Math.round(360*r.h)+","+Math.round(100*r.s)+"%,"+Math.round(100*r.l)+"%)";case"hsla":return r=this.toHSL(),"hsla("+Math.round(360*r.h)+","+Math.round(100*r.s)+"%,"+Math.round(100*r.l)+"%,"+r.a+")";case"hex":return this.toHex(t);case"alias":return r=this.toAlias(),r===!1?this.toString(t,this.getValidFallbackFormat()):n&&!(r in e.webColors)&&r in this.predefinedColors?this.predefinedColors[r]:r;default:return r}},stringParsers:[{re:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*?\)/,format:"rgb",parse:function(t){return[t[1],t[2],t[3],1]}},{re:/rgb\(\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*?\)/,format:"rgb",parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],1]}},{re:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba\(\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/hsl\(\s*(\d*(?:\.\d+)?)\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*?\)/,format:"hsl",parse:function(t){return[t[1]/360,t[2]/100,t[3]/100,t[4]]}},{re:/hsla\(\s*(\d*(?:\.\d+)?)\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"hsla",parse:function(t){return[t[1]/360,t[2]/100,t[3]/100,t[4]]}},{re:/#?([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,format:"hex",parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1]}},{re:/#?([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,format:"hex",parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1]}}],colorNameToHex:function(t){return"undefined"!=typeof this.colors[t.toLowerCase()]&&this.colors[t.toLowerCase()]}};var i={horizontal:!1,inline:!1,color:!1,format:!1,input:"input",container:!1,component:".add-on, .input-group-addon",fallbackColor:!1,fallbackFormat:"hex",hexNumberSignPrefix:!0,sliders:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setHue"},alpha:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setAlpha"}},slidersHorz:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:100,maxTop:0,callLeft:"setHue",callTop:!1},alpha:{maxLeft:100,maxTop:0,callLeft:"setAlpha",callTop:!1}},template:'<div class="colorpicker dropdown-menu"><div class="colorpicker-saturation"><i><b></b></i></div><div class="colorpicker-hue"><i></i></div><div class="colorpicker-alpha"><i></i></div><div class="colorpicker-color"><div /></div><div class="colorpicker-selectors"></div></div>',align:"right",customClass:null,colorSelectors:null},n=function(e,n){this.element=t(e).addClass("colorpicker-element"),this.options=t.extend(!0,{},i,this.element.data(),n),this.component=this.options.component,this.component=this.component!==!1&&this.element.find(this.component),this.component&&0===this.component.length&&(this.component=!1),this.container=this.options.container===!0?this.element:this.options.container,this.container=this.container!==!1&&t(this.container),this.input=this.element.is("input")?this.element:!!this.options.input&&this.element.find(this.options.input),this.input&&0===this.input.length&&(this.input=!1),this.color=this.createColor(this.options.color!==!1?this.options.color:this.getValue()),this.format=this.options.format!==!1?this.options.format:this.color.origFormat,this.options.color!==!1&&(this.updateInput(this.color),this.updateData(this.color)),this.disabled=!1;var r=this.picker=t(this.options.template);if(this.options.customClass&&r.addClass(this.options.customClass),this.options.inline?r.addClass("colorpicker-inline colorpicker-visible"):r.addClass("colorpicker-hidden"),this.options.horizontal&&r.addClass("colorpicker-horizontal"),["rgba","hsla","alias"].indexOf(this.format)===-1&&this.options.format!==!1&&"transparent"!==this.getValue()||r.addClass("colorpicker-with-alpha"),"right"===this.options.align&&r.addClass("colorpicker-right"),this.options.inline===!0&&r.addClass("colorpicker-no-arrow"),this.options.colorSelectors){var a=this,o=a.picker.find(".colorpicker-selectors");o.length>0&&(t.each(this.options.colorSelectors,function(e,i){var n=t("<i />").addClass("colorpicker-selectors-color").css("background-color",i).data("class",e).data("alias",e);n.on("mousedown.colorpicker touchstart.colorpicker",function(e){e.preventDefault(),a.setValue("alias"===a.format?t(this).data("alias"):t(this).css("background-color"))}),o.append(n)}),o.show().addClass("colorpicker-visible"))}r.on("mousedown.colorpicker touchstart.colorpicker",t.proxy(function(t){t.target===t.currentTarget&&t.preventDefault()},this)),r.find(".colorpicker-saturation, .colorpicker-hue, .colorpicker-alpha").on("mousedown.colorpicker touchstart.colorpicker",t.proxy(this.mousedown,this)),r.appendTo(this.container?this.container:t("body")),this.input!==!1&&(this.input.on({"keyup.colorpicker":t.proxy(this.keyup,this)}),this.input.on({"change.colorpicker":t.proxy(this.change,this)}),this.component===!1&&this.element.on({"focus.colorpicker":t.proxy(this.show,this)}),this.options.inline===!1&&this.element.on({"focusout.colorpicker":t.proxy(this.hide,this)})),this.component!==!1&&this.component.on({"click.colorpicker":t.proxy(this.show,this)}),this.input===!1&&this.component===!1&&this.element.on({"click.colorpicker":t.proxy(this.show,this)}),this.input!==!1&&this.component!==!1&&"color"===this.input.attr("type")&&this.input.on({"click.colorpicker":t.proxy(this.show,this),"focus.colorpicker":t.proxy(this.show,this)}),this.update(),t(t.proxy(function(){this.element.trigger("create")},this))};n.Color=e,n.prototype={constructor:n,destroy:function(){this.picker.remove(),this.element.removeData("colorpicker","color").off(".colorpicker"),this.input!==!1&&this.input.off(".colorpicker"),this.component!==!1&&this.component.off(".colorpicker"),this.element.removeClass("colorpicker-element"),this.element.trigger({type:"destroy"})},reposition:function(){if(this.options.inline!==!1||this.options.container)return!1;var t=this.container&&this.container[0]!==window.document.body?"position":"offset",e=this.component||this.element,i=e[t]();"right"===this.options.align&&(i.left-=this.picker.outerWidth()-e.outerWidth()),this.picker.css({top:i.top+e.outerHeight(),left:i.left})},show:function(e){this.isDisabled()||(this.picker.addClass("colorpicker-visible").removeClass("colorpicker-hidden"),this.reposition(),t(window).on("resize.colorpicker",t.proxy(this.reposition,this)),!e||this.hasInput()&&"color"!==this.input.attr("type")||e.stopPropagation&&e.preventDefault&&(e.stopPropagation(),e.preventDefault()),!this.component&&this.input||this.options.inline!==!1||t(window.document).on({"mousedown.colorpicker":t.proxy(this.hide,this)}),this.element.trigger({type:"showPicker",color:this.color}))},hide:function(e){return("undefined"==typeof e||!e.target||!(t(e.currentTarget).parents(".colorpicker").length>0||t(e.target).parents(".colorpicker").length>0))&&(this.picker.addClass("colorpicker-hidden").removeClass("colorpicker-visible"),t(window).off("resize.colorpicker",this.reposition),t(window.document).off({"mousedown.colorpicker":this.hide}),this.update(),void this.element.trigger({type:"hidePicker",color:this.color}))},updateData:function(t){return t=t||this.color.toString(!1,this.format),this.element.data("color",t),t},updateInput:function(t){return t=t||this.color.toString(!1,this.format),this.input!==!1&&(this.input.prop("value",t),this.input.trigger("change")),t},updatePicker:function(t){"undefined"!=typeof t&&(this.color=this.createColor(t));var e=this.options.horizontal===!1?this.options.sliders:this.options.slidersHorz,i=this.picker.find("i");if(0!==i.length)return this.options.horizontal===!1?(e=this.options.sliders,i.eq(1).css("top",e.hue.maxTop*(1-this.color.value.h)).end().eq(2).css("top",e.alpha.maxTop*(1-this.color.value.a))):(e=this.options.slidersHorz,i.eq(1).css("left",e.hue.maxLeft*(1-this.color.value.h)).end().eq(2).css("left",e.alpha.maxLeft*(1-this.color.value.a))),i.eq(0).css({top:e.saturation.maxTop-this.color.value.b*e.saturation.maxTop,left:this.color.value.s*e.saturation.maxLeft}),this.picker.find(".colorpicker-saturation").css("backgroundColor",this.color.toHex(!0,this.color.value.h,1,1,1)),this.picker.find(".colorpicker-alpha").css("backgroundColor",this.color.toHex(!0)),this.picker.find(".colorpicker-color, .colorpicker-color div").css("backgroundColor",this.color.toString(!0,this.format)),t},updateComponent:function(t){var e;if(e="undefined"!=typeof t?this.createColor(t):this.color,this.component!==!1){var i=this.component.find("i").eq(0);i.length>0?i.css({backgroundColor:e.toString(!0,this.format)}):this.component.css({ backgroundColor:e.toString(!0,this.format)})}return e.toString(!1,this.format)},update:function(t){var e;return this.getValue(!1)===!1&&t!==!0||(e=this.updateComponent(),this.updateInput(e),this.updateData(e),this.updatePicker()),e},setValue:function(t){this.color=this.createColor(t),this.update(!0),this.element.trigger({type:"changeColor",color:this.color,value:t})},createColor:function(t){return new e(t?t:null,this.options.colorSelectors,this.options.fallbackColor?this.options.fallbackColor:this.color,this.options.fallbackFormat,this.options.hexNumberSignPrefix)},getValue:function(t){t="undefined"==typeof t?this.options.fallbackColor:t;var e;return e=this.hasInput()?this.input.val():this.element.data("color"),void 0!==e&&""!==e&&null!==e||(e=t),e},hasInput:function(){return this.input!==!1},isDisabled:function(){return this.disabled},disable:function(){return this.hasInput()&&this.input.prop("disabled",!0),this.disabled=!0,this.element.trigger({type:"disable",color:this.color,value:this.getValue()}),!0},enable:function(){return this.hasInput()&&this.input.prop("disabled",!1),this.disabled=!1,this.element.trigger({type:"enable",color:this.color,value:this.getValue()}),!0},currentSlider:null,mousePointer:{left:0,top:0},mousedown:function(e){!e.pageX&&!e.pageY&&e.originalEvent&&e.originalEvent.touches&&(e.pageX=e.originalEvent.touches[0].pageX,e.pageY=e.originalEvent.touches[0].pageY),e.stopPropagation(),e.preventDefault();var i=t(e.target),n=i.closest("div"),r=this.options.horizontal?this.options.slidersHorz:this.options.sliders;if(!n.is(".colorpicker")){if(n.is(".colorpicker-saturation"))this.currentSlider=t.extend({},r.saturation);else if(n.is(".colorpicker-hue"))this.currentSlider=t.extend({},r.hue);else{if(!n.is(".colorpicker-alpha"))return!1;this.currentSlider=t.extend({},r.alpha)}var a=n.offset();this.currentSlider.guide=n.find("i")[0].style,this.currentSlider.left=e.pageX-a.left,this.currentSlider.top=e.pageY-a.top,this.mousePointer={left:e.pageX,top:e.pageY},t(window.document).on({"mousemove.colorpicker":t.proxy(this.mousemove,this),"touchmove.colorpicker":t.proxy(this.mousemove,this),"mouseup.colorpicker":t.proxy(this.mouseup,this),"touchend.colorpicker":t.proxy(this.mouseup,this)}).trigger("mousemove")}return!1},mousemove:function(t){!t.pageX&&!t.pageY&&t.originalEvent&&t.originalEvent.touches&&(t.pageX=t.originalEvent.touches[0].pageX,t.pageY=t.originalEvent.touches[0].pageY),t.stopPropagation(),t.preventDefault();var e=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((t.pageX||this.mousePointer.left)-this.mousePointer.left))),i=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((t.pageY||this.mousePointer.top)-this.mousePointer.top)));return this.currentSlider.guide.left=e+"px",this.currentSlider.guide.top=i+"px",this.currentSlider.callLeft&&this.color[this.currentSlider.callLeft].call(this.color,e/this.currentSlider.maxLeft),this.currentSlider.callTop&&this.color[this.currentSlider.callTop].call(this.color,i/this.currentSlider.maxTop),this.options.format!==!1||"setAlpha"!==this.currentSlider.callTop&&"setAlpha"!==this.currentSlider.callLeft||(1!==this.color.value.a?(this.format="rgba",this.color.origFormat="rgba"):(this.format="hex",this.color.origFormat="hex")),this.update(!0),this.element.trigger({type:"changeColor",color:this.color}),!1},mouseup:function(e){return e.stopPropagation(),e.preventDefault(),t(window.document).off({"mousemove.colorpicker":this.mousemove,"touchmove.colorpicker":this.mousemove,"mouseup.colorpicker":this.mouseup,"touchend.colorpicker":this.mouseup}),!1},change:function(t){this.keyup(t)},keyup:function(t){38===t.keyCode?(this.color.value.a<1&&(this.color.value.a=Math.round(100*(this.color.value.a+.01))/100),this.update(!0)):40===t.keyCode?(this.color.value.a>0&&(this.color.value.a=Math.round(100*(this.color.value.a-.01))/100),this.update(!0)):(this.color=this.createColor(this.input.val()),this.color.origFormat&&this.options.format===!1&&(this.format=this.color.origFormat),this.getValue(!1)!==!1&&(this.updateData(),this.updateComponent(),this.updatePicker())),this.element.trigger({type:"changeColor",color:this.color,value:this.input.val()})}},t.colorpicker=n,t.fn.colorpicker=function(e){var i=Array.prototype.slice.call(arguments,1),r=1===this.length,a=null,o=this.each(function(){var r=t(this),o=r.data("colorpicker"),s="object"==typeof e?e:{};o||(o=new n(this,s),r.data("colorpicker",o)),"string"==typeof e?t.isFunction(o[e])?a=o[e].apply(o,i):(i.length&&(o[e]=i[0]),a=o[e]):a=r});return r?a:o},t.fn.colorpicker.constructor=n})},function(t,e,i){!function(){"use strict";function t(t){if(t){var i=t.data("type"),n=t.data("message"),r=t.data("title")||"",a=t.data("show-duration"),o=t.data("hide-duration"),s=t.data("time-out"),l=t.data("extended-time-out"),u=t.data("show-easing"),h=t.data("hide-easing"),c=t.data("show-duration"),d=t.data("hide-method"),p=t.data("position-class");a&&(e.options.showDuration=a),o&&(e.options.hideDuration=o),s&&(e.options.timeOut=addClear?0:s),l&&(e.options.extendedTimeOut=addClear?0:l),u&&(e.options.showEasing=u),h&&(e.options.hideEasing=h),c&&(e.options.showMethod=c),d&&(e.options.hideMethod=d),p&&(e.options.positionClass=p);e[i](n,r)}}var e=i(745),n=$(".toast");$(".toast-action").on("click",function(){var e=$(this);t(e)}),n.each(function(){var e=$(this);t(e)})}()},function(t,e,i){var n,r;!function(a){n=[i(13)],r=function(t){return function(){function e(t,e,i){return f({type:x.error,iconClass:g().iconClasses.error,message:t,optionsOverride:i,title:e})}function i(e,i){return e||(e=g()),v=t("#"+e.containerId),v.length?v:(i&&(v=c(e)),v)}function n(t,e,i){return f({type:x.info,iconClass:g().iconClasses.info,message:t,optionsOverride:i,title:e})}function r(t){y=t}function a(t,e,i){return f({type:x.success,iconClass:g().iconClasses.success,message:t,optionsOverride:i,title:e})}function o(t,e,i){return f({type:x.warning,iconClass:g().iconClasses.warning,message:t,optionsOverride:i,title:e})}function s(t,e){var n=g();v||i(n),h(t,n,e)||u(n)}function l(e){var n=g();return v||i(n),e&&0===t(":focus",e).length?void m(e):void(v.children().length&&v.remove())}function u(e){for(var i=v.children(),n=i.length-1;n>=0;n--)h(t(i[n]),e)}function h(e,i,n){var r=!(!n||!n.force)&&n.force;return!(!e||!r&&0!==t(":focus",e).length)&&(e[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){m(e)}}),!0)}function c(e){return v=t("<div/>").attr("id",e.containerId).addClass(e.positionClass),v.appendTo(t(e.target)),v}function d(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function p(t){y&&y(t)}function f(e){function n(t){return null==t&&(t=""),t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function r(){l(),h(),c(),d(),f(),y(),u(),a()}function a(){var t="";switch(e.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}C.attr("aria-live",t)}function o(){D.closeOnHover&&C.hover(S,M),!D.onclick&&D.tapToDismiss&&C.click(w),D.closeButton&&E&&E.click(function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&t.cancelBubble!==!0&&(t.cancelBubble=!0),D.onCloseClick&&D.onCloseClick(t),w(!0)}),D.onclick&&C.click(function(t){D.onclick(t),w()})}function s(){C.hide(),C[D.showMethod]({duration:D.showDuration,easing:D.showEasing,complete:D.onShown}),D.timeOut>0&&(L=setTimeout(w,D.timeOut),O.maxHideTime=parseFloat(D.timeOut),O.hideEta=(new Date).getTime()+O.maxHideTime,D.progressBar&&(O.intervalId=setInterval(k,10)))}function l(){e.iconClass&&C.addClass(D.toastClass).addClass(T)}function u(){D.newestOnTop?v.prepend(C):v.append(C)}function h(){if(e.title){var t=e.title;D.escapeHtml&&(t=n(e.title)),I.append(t).addClass(D.titleClass),C.append(I)}}function c(){if(e.message){var t=e.message;D.escapeHtml&&(t=n(e.message)),A.append(t).addClass(D.messageClass),C.append(A)}}function d(){D.closeButton&&(E.addClass(D.closeClass).attr("role","button"),C.prepend(E))}function f(){D.progressBar&&(P.addClass(D.progressClass),C.prepend(P))}function y(){D.rtl&&C.addClass("rtl")}function x(t,e){if(t.preventDuplicates){if(e.message===_)return!0;_=e.message}return!1}function w(e){var i=e&&D.closeMethod!==!1?D.closeMethod:D.hideMethod,n=e&&D.closeDuration!==!1?D.closeDuration:D.hideDuration,r=e&&D.closeEasing!==!1?D.closeEasing:D.hideEasing;if(!t(":focus",C).length||e)return clearTimeout(O.intervalId),C[i]({duration:n,easing:r,complete:function(){m(C),clearTimeout(L),D.onHidden&&"hidden"!==R.state&&D.onHidden(),R.state="hidden",R.endTime=new Date,p(R)}})}function M(){(D.timeOut>0||D.extendedTimeOut>0)&&(L=setTimeout(w,D.extendedTimeOut),O.maxHideTime=parseFloat(D.extendedTimeOut),O.hideEta=(new Date).getTime()+O.maxHideTime)}function S(){clearTimeout(L),O.hideEta=0,C.stop(!0,!0)[D.showMethod]({duration:D.showDuration,easing:D.showEasing})}function k(){var t=(O.hideEta-(new Date).getTime())/O.maxHideTime*100;P.width(t+"%")}var D=g(),T=e.iconClass||D.iconClass;if("undefined"!=typeof e.optionsOverride&&(D=t.extend(D,e.optionsOverride),T=e.optionsOverride.iconClass||T),!x(D,e)){b++,v=i(D,!0);var L=null,C=t("<div/>"),I=t("<div/>"),A=t("<div/>"),P=t("<div/>"),E=t(D.closeHtml),O={intervalId:null,hideEta:null,maxHideTime:null},R={toastId:b,state:"visible",startTime:new Date,options:D,map:e};return r(),s(),o(),p(R),D.debug&&console&&console.log(R),C}}function g(){return t.extend({},d(),w.options)}function m(t){v||(v=i()),t.is(":visible")||(t.remove(),t=null,0===v.children().length&&(v.remove(),_=void 0))}var v,y,_,b=0,x={error:"error",info:"info",success:"success",warning:"warning"},w={clear:s,remove:l,error:e,getContainer:i,info:n,options:{},subscribe:r,success:a,version:"2.1.4",warning:o};return w}()}.apply(e,n),!(void 0!==r&&(t.exports=r))}(i(746))},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e,i){i(748),function(){"use strict";var t=$(".stepper");t.each(function(){var t=$(this),e=getDataOptions(t);t.smartWizard(e)})}()},function(t,e){!function(t,e,i,n){"use strict";function r(e,i){this.options=t.extend(!0,{},a,i),this.main=t(e),this.nav=this.main.children("ul"),this.steps=t("li > a",this.nav),this.container=this.main.children("div"),this.pages=this.container.children("div"),this.current_index=null,this.options.toolbarSettings.toolbarButtonPosition="right"===this.options.toolbarSettings.toolbarButtonPosition?"end":this.options.toolbarSettings.toolbarButtonPosition,this.options.toolbarSettings.toolbarButtonPosition="left"===this.options.toolbarSettings.toolbarButtonPosition?"start":this.options.toolbarSettings.toolbarButtonPosition,this.options.theme=null===this.options.theme||""===this.options.theme?"default":this.options.theme,this.init()}var a={selected:0,keyNavigation:!0,autoAdjustHeight:!0,cycleSteps:!1,backButtonSupport:!0,useURLhash:!0,showStepURLhash:!0,lang:{next:"Next",previous:"Previous"},toolbarSettings:{toolbarPosition:"bottom",toolbarButtonPosition:"end",showNextButton:!0,showPreviousButton:!0,toolbarExtraButtons:[]},anchorSettings:{anchorClickable:!0,enableAllAnchors:!1,markDoneStep:!0,markAllPreviousStepsAsDone:!0,removeDoneStepOnNavigateBack:!1,enableAnchorOnDoneStep:!0},contentURL:null,contentCache:!0,ajaxSettings:{},disabledSteps:[],errorSteps:[],hiddenSteps:[],theme:"default",transitionEffect:"none",transitionSpeed:"400"};t.extend(r.prototype,{init:function(){this._setElements(),this._setToolbar(),this._setEvents();var i=this.options.selected;if(this.options.useURLhash){var n=e.location.hash;if(n&&n.length>0){var r=t("a[href*='"+n+"']",this.nav);if(r.length>0){var a=this.steps.index(r);i=a>=0?a:i}}}i>0&&this.options.anchorSettings.markDoneStep&&this.options.anchorSettings.markAllPreviousStepsAsDone&&this.steps.eq(i).parent("li").prevAll().addClass("done"),this._showStep(i)},_setElements:function(){this.main.addClass("sw-main sw-theme-"+this.options.theme),this.nav.addClass("nav nav-tabs step-anchor").children("li").addClass("nav-item").children("a").addClass("nav-link"),this.options.anchorSettings.enableAllAnchors!==!1&&this.options.anchorSettings.anchorClickable!==!1&&this.steps.parent("li").addClass("clickable"),this.container.addClass("sw-container tab-content"),this.pages.addClass("tab-pane step-content");var e=this;return this.options.disabledSteps&&this.options.disabledSteps.length>0&&t.each(this.options.disabledSteps,function(t,i){e.steps.eq(i).parent("li").addClass("disabled")}),this.options.errorSteps&&this.options.errorSteps.length>0&&t.each(this.options.errorSteps,function(t,i){e.steps.eq(i).parent("li").addClass("danger")}),this.options.hiddenSteps&&this.options.hiddenSteps.length>0&&t.each(this.options.hiddenSteps,function(t,i){e.steps.eq(i).parent("li").addClass("hidden")}),!0},_setToolbar:function(){if("none"===this.options.toolbarSettings.toolbarPosition)return!0;var e=this.options.toolbarSettings.showNextButton!==!1?t("<button></button>").text(this.options.lang.next).addClass("btn btn-secondary sw-btn-next").attr("type","button"):null,i=this.options.toolbarSettings.showPreviousButton!==!1?t("<button></button>").text(this.options.lang.previous).addClass("btn btn-secondary sw-btn-prev").attr("type","button"):null,n=t("<div></div>").addClass("btn-group mr-2 sw-btn-group").attr("role","group").append(i,e),r=null;this.options.toolbarSettings.toolbarExtraButtons&&this.options.toolbarSettings.toolbarExtraButtons.length>0&&(r=t("<div></div>").addClass("btn-group mr-2 sw-btn-group-extra").attr("role","group"),t.each(this.options.toolbarSettings.toolbarExtraButtons,function(t,e){r.append(e.clone(!0))}));var a,o;switch(this.options.toolbarSettings.toolbarPosition){case"top":a=t("<div></div>").addClass("btn-toolbar sw-toolbar sw-toolbar-top justify-content-"+this.options.toolbarSettings.toolbarButtonPosition),a.append(n),"start"===this.options.toolbarSettings.toolbarButtonPosition?a.prepend(r):a.append(r),this.container.before(a);break;case"bottom":o=t("<div></div>").addClass("btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-"+this.options.toolbarSettings.toolbarButtonPosition),o.append(n),"start"===this.options.toolbarSettings.toolbarButtonPosition?o.prepend(r):o.append(r),this.container.after(o);break;case"both":a=t("<div></div>").addClass("btn-toolbar sw-toolbar sw-toolbar-top justify-content-"+this.options.toolbarSettings.toolbarButtonPosition),a.append(n),"start"===this.options.toolbarSettings.toolbarButtonPosition?a.prepend(r):a.append(r),this.container.before(a),o=t("<div></div>").addClass("btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-"+this.options.toolbarSettings.toolbarButtonPosition),o.append(n.clone(!0)),null!==r&&("start"===this.options.toolbarSettings.toolbarButtonPosition?o.prepend(r.clone(!0)):o.append(r.clone(!0))),this.container.after(o);break;default:o=t("<div></div>").addClass("btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-"+this.options.toolbarSettings.toolbarButtonPosition),o.append(n),"start"===this.options.toolbarSettings.toolbarButtonPosition?o.append(r):o.append(r),this.container.after(o)}return!0},_setEvents:function(){var n=this;return t(this.steps).on("click",function(t){if(t.preventDefault(),n.options.anchorSettings.anchorClickable===!1)return!0;var e=n.steps.index(this);return!(n.options.anchorSettings.enableAnchorOnDoneStep!==!1||!n.steps.eq(e).parent("li").hasClass("done"))||void(e!==n.current_index&&(n.options.anchorSettings.enableAllAnchors!==!1&&n.options.anchorSettings.anchorClickable!==!1?n._showStep(e):n.steps.eq(e).parent("li").hasClass("done")&&n._showStep(e)))}),t(".sw-btn-next",this.main).on("click",function(t){t.preventDefault(),n._showNext()}),t(".sw-btn-prev",this.main).on("click",function(t){t.preventDefault(),n._showPrevious()}),this.options.keyNavigation&&t(i).keyup(function(t){n._keyNav(t)}),this.options.backButtonSupport&&t(e).on("hashchange",function(i){if(!n.options.useURLhash)return!0;if(e.location.hash){var r=t("a[href*='"+e.location.hash+"']",n.nav);r&&r.length>0&&(i.preventDefault(),n._showStep(n.steps.index(r)))}}),!0},_showNext:function(){for(var t=this.current_index+1,e=t;e<this.steps.length;e++)if(!this.steps.eq(e).parent("li").hasClass("disabled")&&!this.steps.eq(e).parent("li").hasClass("hidden")){t=e;break}if(this.steps.length<=t){if(!this.options.cycleSteps)return!1;t=0}return this._showStep(t),!0},_showPrevious:function(){for(var t=this.current_index-1,e=t;e>=0;e--)if(!this.steps.eq(e).parent("li").hasClass("disabled")&&!this.steps.eq(e).parent("li").hasClass("hidden")){t=e;break}if(0>t){if(!this.options.cycleSteps)return!1;t=this.steps.length-1}return this._showStep(t),!0},_showStep:function(t){return!!this.steps.eq(t)&&(t!=this.current_index&&(!this.steps.eq(t).parent("li").hasClass("disabled")&&!this.steps.eq(t).parent("li").hasClass("hidden")&&(this._loadStepContent(t),!0)))},_loadStepContent:function(e){var i=this,n=this.steps.eq(this.current_index),r="",a=this.steps.eq(e),o=a.data("content-url")&&a.data("content-url").length>0?a.data("content-url"):this.options.contentURL;if(null!==this.current_index&&this.current_index!==e&&(r=this.current_index<e?"forward":"backward"),null!==this.current_index&&this._triggerEvent("leaveStep",[n,this.current_index,r])===!1)return!1;if(!(o&&o.length>0)||a.data("has-content")&&this.options.contentCache)this._transitPage(e);else{var s=a.length>0?t(a.attr("href"),this.main):null,l=t.extend(!0,{},{url:o,type:"POST",data:{step_number:e},dataType:"text",beforeSend:function(){i._loader("show")},error:function(e,n,r){i._loader("hide"),t.error(r)},success:function(t){t&&t.length>0&&(a.data("has-content",!0),s.html(t)),i._loader("hide"),i._transitPage(e)}},this.options.ajaxSettings);t.ajax(l)}return!0},_transitPage:function(e){var i=this,n=this.steps.eq(this.current_index),r=n.length>0?t(n.attr("href"),this.main):null,a=this.steps.eq(e),o=a.length>0?t(a.attr("href"),this.main):null,s="";null!==this.current_index&&this.current_index!==e&&(s=this.current_index<e?"forward":"backward");var l="middle";return 0===e?l="first":e===this.steps.length-1&&(l="final"),this.options.transitionEffect=this.options.transitionEffect.toLowerCase(),this.pages.finish(),"slide"===this.options.transitionEffect?r&&r.length>0?r.slideUp("fast",this.options.transitionEasing,function(){o.slideDown(i.options.transitionSpeed,i.options.transitionEasing)}):o.slideDown(this.options.transitionSpeed,this.options.transitionEasing):"fade"===this.options.transitionEffect?r&&r.length>0?r.fadeOut("fast",this.options.transitionEasing,function(){o.fadeIn("fast",i.options.transitionEasing,function(){t(this).show()})}):o.fadeIn(this.options.transitionSpeed,this.options.transitionEasing,function(){t(this).show()}):(r&&r.length>0&&r.hide(),o.show()),this._setURLHash(a.attr("href")),this._setAnchor(e),this._setButtons(e),this._fixHeight(e),this.current_index=e,this._triggerEvent("showStep",[a,this.current_index,s,l]),!0},_setAnchor:function(t){return this.steps.eq(this.current_index).parent("li").removeClass("active"),this.options.anchorSettings.markDoneStep!==!1&&null!==this.current_index&&(this.steps.eq(this.current_index).parent("li").addClass("done"),this.options.anchorSettings.removeDoneStepOnNavigateBack!==!1&&this.steps.eq(t).parent("li").nextAll().removeClass("done")),this.steps.eq(t).parent("li").removeClass("done").addClass("active"),!0},_setButtons:function(e){return this.options.cycleSteps||(0>=e?t(".sw-btn-prev",this.main).addClass("disabled"):t(".sw-btn-prev",this.main).removeClass("disabled"),this.steps.length-1<=e?t(".sw-btn-next",this.main).addClass("disabled"):t(".sw-btn-next",this.main).removeClass("disabled")),!0},_keyNav:function(t){var e=this;switch(t.which){case 37:e._showPrevious(),t.preventDefault();break;case 39:e._showNext(),t.preventDefault();break;default:return}},_fixHeight:function(e){if(this.options.autoAdjustHeight){var i=this.steps.eq(e).length>0?t(this.steps.eq(e).attr("href"),this.main):null;this.container.finish().animate({minHeight:i.outerHeight()},this.options.transitionSpeed,function(){})}return!0},_triggerEvent:function(e,i){var n=t.Event(e);return this.main.trigger(n,i),!n.isDefaultPrevented()&&n.result},_setURLHash:function(t){this.options.showStepURLhash&&e.location.hash!==t&&(e.location.hash=t)},_loader:function(t){switch(t){case"show":this.main.addClass("sw-loading");break;case"hide":this.main.removeClass("sw-loading");break;default:this.main.toggleClass("sw-loading")}},theme:function(t){return this.options.theme!==t&&(this.main.removeClass("sw-theme-"+this.options.theme),this.options.theme=t,this.main.addClass("sw-theme-"+this.options.theme),void this._triggerEvent("themeChanged",[this.options.theme]))},next:function(){this._showNext()},prev:function(){this._showPrevious()},reset:function(){return this._triggerEvent("beginReset")!==!1&&(this.container.stop(!0),this.pages.stop(!0),this.pages.hide(),this.current_index=null,this._setURLHash(this.steps.eq(this.options.selected).attr("href")),t(".sw-toolbar",this.main).remove(),this.steps.removeClass(),this.steps.parents("li").removeClass(),this.steps.data("has-content",!1),this.init(),void this._triggerEvent("endReset"))},stepState:function(e,i){e=t.isArray(e)?e:[e];var n=t.grep(this.steps,function(i,n){return t.inArray(n,e)!==-1});if(n&&n.length>0)switch(i){case"disable":t(n).parents("li").addClass("disabled");break;case"enable":t(n).parents("li").removeClass("disabled");break;case"hide":t(n).parents("li").addClass("hidden");break;case"show":t(n).parents("li").removeClass("hidden");break;case"error-on":t(n).parents("li").addClass("danger");break;case"error-off":t(n).parents("li").removeClass("danger")}}}),t.fn.smartWizard=function(e){var i,a=arguments;return e===n||"object"==typeof e?this.each(function(){t.data(this,"smartWizard")||t.data(this,"smartWizard",new r(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?(i=t.data(this[0],"smartWizard"),"destroy"===e&&t.data(this,"smartWizard",null),i instanceof r&&"function"==typeof i[e]?i[e].apply(i,Array.prototype.slice.call(a,1)):this):void 0}}(jQuery,window,document)},function(t,e,i){i(750),function(){"use strict";var t=$(".data-tables");t.each(function(){var t=$(this),e=getDataOptions(t);e?t.DataTable(e):t.DataTable()})}()},function(t,e,i){var n,r;!function(a){n=[i(13),i(751)],r=function(t){return a(t,window,document)}.apply(e,n),!(void 0!==r&&(t.exports=r))}(function(t,e,i,n){"use strict";var r=t.fn.dataTable;return t.extend(!0,r.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),t.extend(r.ext.classes,{sWrapper:"dataTables_wrapper container-fluid dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),r.ext.renderer.pageButton.bootstrap=function(e,a,o,s,l,u){var h,c,d,p=new r.Api(e),f=e.oClasses,g=e.oLanguage.oPaginate,m=e.oLanguage.oAria.paginate||{},v=0,y=function(i,n){var r,a,s,d,_=function(e){e.preventDefault(),t(e.currentTarget).hasClass("disabled")||p.page()==e.data.action||p.page(e.data.action).draw("page")};for(r=0,a=n.length;r<a;r++)if(d=n[r],t.isArray(d))y(i,d);else{switch(h="",c="",d){case"ellipsis":h="…",c="disabled";break;case"first":h=g.sFirst,c=d+(l>0?"":" disabled");break;case"previous":h=g.sPrevious,c=d+(l>0?"":" disabled");break;case"next":h=g.sNext,c=d+(l<u-1?"":" disabled");break;case"last":h=g.sLast,c=d+(l<u-1?"":" disabled");break;default:h=d+1,c=l===d?"active":""}h&&(s=t("<li>",{"class":f.sPageButton+" "+c,id:0===o&&"string"==typeof d?e.sTableId+"_"+d:null}).append(t("<a>",{href:"#","aria-controls":e.sTableId,"aria-label":m[d],"data-dt-idx":v,tabindex:e.iTabIndex,"class":"page-link"}).html(h)).appendTo(i),e.oApi._fnBindAction(s,{action:d},_),v++)}};try{d=t(a).find(i.activeElement).data("dt-idx")}catch(_){}y(t(a).empty().html('<ul class="pagination"/>').children("ul"),s),d!==n&&t(a).find("[data-dt-idx="+d+"]").focus()},r})},function(t,e,i){var n,r;!function(a){"use strict";n=[i(13)],r=function(t){return a(t,window,document)}.apply(e,n),!(void 0!==r&&(t.exports=r))}(function(t,e,i,n){"use strict";function r(e){var i,n,a="a aa ai ao as b fn i m o s ",o={};t.each(e,function(t,s){i=t.match(/^([^A-Z]+?)([A-Z])/),i&&a.indexOf(i[1]+" ")!==-1&&(n=t.replace(i[0],i[2].toLowerCase()),o[n]=t,"o"===i[1]&&r(e[t]))}),e._hungarianMap=o}function a(e,i,o){e._hungarianMap||r(e);var s;t.each(i,function(r,l){s=e._hungarianMap[r],s===n||!o&&i[s]!==n||("o"===s.charAt(0)?(i[s]||(i[s]={}),t.extend(!0,i[s],i[r]),a(e[s],i[s],o)):i[s]=i[r])})}function o(t){var e=qt.defaults.oLanguage,i=e.sDecimal;if(i&&Bt(i),t){var n=t.sZeroRecords;!t.sEmptyTable&&n&&"No data available in table"===e.sEmptyTable&&Et(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&n&&"Loading..."===e.sLoadingRecords&&Et(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var r=t.sDecimal;r&&i!==r&&Bt(r)}}function s(t){fe(t,"ordering","bSort"),fe(t,"orderMulti","bSortMulti"),fe(t,"orderClasses","bSortClasses"),fe(t,"orderCellsTop","bSortCellsTop"),fe(t,"order","aaSorting"),fe(t,"orderFixed","aaSortingFixed"),fe(t,"paging","bPaginate"),fe(t,"pagingType","sPaginationType"),fe(t,"pageLength","iDisplayLength"),fe(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var i=0,n=e.length;i<n;i++)e[i]&&a(qt.models.oSearch,e[i])}function l(e){fe(e,"orderable","bSortable"),fe(e,"orderData","aDataSort"),fe(e,"orderSequence","asSorting"),fe(e,"orderDataType","sortDataType");var i=e.aDataSort;"number"!=typeof i||t.isArray(i)||(e.aDataSort=[i])}function u(i){if(!qt.__browser){var n={};qt.__browser=n;var r=t("<div/>").css({position:"fixed",top:0,left:t(e).scrollLeft()*-1,height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),a=r.children(),o=a.children();n.barWidth=a[0].offsetWidth-a[0].clientWidth,n.bScrollOversize=100===o[0].offsetWidth&&100!==a[0].clientWidth,n.bScrollbarLeft=1!==Math.round(o.offset().left),n.bBounding=!!r[0].getBoundingClientRect().width,r.remove()}t.extend(i.oBrowser,qt.__browser),i.oScroll.iBarWidth=qt.__browser.barWidth}function h(t,e,i,r,a,o){var s,l=r,u=!1;for(i!==n&&(s=i,u=!0);l!==a;)t.hasOwnProperty(l)&&(s=u?e(s,t[l],l,t):t[l],u=!0,l+=o);return s}function c(e,n){var r=qt.defaults.column,a=e.aoColumns.length,o=t.extend({},qt.models.oColumn,r,{nTh:n?n:i.createElement("th"),sTitle:r.sTitle?r.sTitle:n?n.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[a],mData:r.mData?r.mData:a,idx:a});e.aoColumns.push(o);var s=e.aoPreSearchCols;s[a]=t.extend({},qt.models.oSearch,s[a]),d(e,a,t(n).data())}function d(e,i,r){var o=e.aoColumns[i],s=e.oClasses,u=t(o.nTh);if(!o.sWidthOrig){o.sWidthOrig=u.attr("width")||null;var h=(u.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);h&&(o.sWidthOrig=h[1])}r!==n&&null!==r&&(l(r),a(qt.defaults.column,r),r.mDataProp===n||r.mData||(r.mData=r.mDataProp),r.sType&&(o._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),r.sClass&&u.addClass(r.sClass),t.extend(o,r),Et(o,r,"sWidth","sWidthOrig"),r.iDataSort!==n&&(o.aDataSort=[r.iDataSort]),Et(o,r,"aDataSort"));var c=o.mData,d=T(c),p=o.mRender?T(o.mRender):null,f=function(t){return"string"==typeof t&&t.indexOf("@")!==-1};o._bAttrSrc=t.isPlainObject(c)&&(f(c.sort)||f(c.type)||f(c.filter)),o._setter=null,o.fnGetData=function(t,e,i){var r=d(t,e,n,i);return p&&e?p(r,e,t,i):r},o.fnSetData=function(t,e,i){return L(c)(t,e,i)},"number"!=typeof c&&(e._rowReadObject=!0),e.oFeatures.bSort||(o.bSortable=!1,u.addClass(s.sSortableNone));var g=t.inArray("asc",o.asSorting)!==-1,m=t.inArray("desc",o.asSorting)!==-1;o.bSortable&&(g||m)?g&&!m?(o.sSortingClass=s.sSortableAsc,o.sSortingClassJUI=s.sSortJUIAscAllowed):!g&&m?(o.sSortingClass=s.sSortableDesc,o.sSortingClassJUI=s.sSortJUIDescAllowed):(o.sSortingClass=s.sSortable,o.sSortingClassJUI=s.sSortJUI):(o.sSortingClass=s.sSortableNone,o.sSortingClassJUI="")}function p(t){if(t.oFeatures.bAutoWidth!==!1){var e=t.aoColumns;vt(t);for(var i=0,n=e.length;i<n;i++)e[i].nTh.style.width=e[i].sWidth}var r=t.oScroll;""===r.sY&&""===r.sX||gt(t),zt(t,null,"column-sizing",[t])}function f(t,e){var i=v(t,"bVisible");return"number"==typeof i[e]?i[e]:null}function g(e,i){var n=v(e,"bVisible"),r=t.inArray(i,n);return r!==-1?r:null}function m(e){var i=0;return t.each(e.aoColumns,function(e,n){n.bVisible&&"none"!==t(n.nTh).css("display")&&i++}),i}function v(e,i){var n=[];return t.map(e.aoColumns,function(t,e){t[i]&&n.push(e)}),n}function y(t){var e,i,r,a,o,s,l,u,h,c=t.aoColumns,d=t.aoData,p=qt.ext.type.detect;for(e=0,i=c.length;e<i;e++)if(l=c[e],h=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(r=0,a=p.length;r<a;r++){for(o=0,s=d.length;o<s&&(h[o]===n&&(h[o]=S(t,o,e,"type")),u=p[r](h[o],t),u||r===p.length-1)&&"html"!==u;o++);if(u){l.sType=u;break}}l.sType||(l.sType="string")}}function _(e,i,r,a){var o,s,l,u,h,d,p,f=e.aoColumns;if(i)for(o=i.length-1;o>=0;o--){p=i[o];var g=p.targets!==n?p.targets:p.aTargets;for(t.isArray(g)||(g=[g]),l=0,u=g.length;l<u;l++)if("number"==typeof g[l]&&g[l]>=0){for(;f.length<=g[l];)c(e);a(g[l],p)}else if("number"==typeof g[l]&&g[l]<0)a(f.length+g[l],p);else if("string"==typeof g[l])for(h=0,d=f.length;h<d;h++)("_all"==g[l]||t(f[h].nTh).hasClass(g[l]))&&a(h,p)}if(r)for(o=0,s=r.length;o<s;o++)a(o,r[o])}function b(e,i,r,a){var o=e.aoData.length,s=t.extend(!0,{},qt.models.oRow,{src:r?"dom":"data",idx:o});s._aData=i,e.aoData.push(s);for(var l=e.aoColumns,u=0,h=l.length;u<h;u++)l[u].sType=null;e.aiDisplayMaster.push(o);var c=e.rowIdFn(i);return c!==n&&(e.aIds[c]=s),!r&&e.oFeatures.bDeferRender||O(e,o,r,a),o}function x(e,i){var n;return i instanceof t||(i=t(i)),i.map(function(t,i){return n=E(e,i),b(e,n.data,i,n.cells)})}function w(t,e){return e._DT_RowIndex!==n?e._DT_RowIndex:null}function M(e,i,n){return t.inArray(n,e.aoData[i].anCells)}function S(t,e,i,r){var a=t.iDraw,o=t.aoColumns[i],s=t.aoData[e]._aData,l=o.sDefaultContent,u=o.fnGetData(s,r,{settings:t,row:e,col:i});if(u===n)return t.iDrawError!=a&&null===l&&(Pt(t,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+e+", column "+i,4),t.iDrawError=a),l;if(u!==s&&null!==u||null===l||r===n){if("function"==typeof u)return u.call(s)}else u=l;return null===u&&"display"==r?"":u}function k(t,e,i,n){var r=t.aoColumns[i],a=t.aoData[e]._aData;r.fnSetData(a,n,{settings:t,row:e,col:i})}function D(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],function(t){return t.replace(/\\\./g,".")})}function T(e){if(t.isPlainObject(e)){var i={};return t.each(e,function(t,e){e&&(i[t]=T(e))}),function(t,e,r,a){var o=i[e]||i._;return o!==n?o(t,e,r,a):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,i,n,r){return e(t,i,n,r)};if("string"!=typeof e||e.indexOf(".")===-1&&e.indexOf("[")===-1&&e.indexOf("(")===-1)return function(t,i){return t[e]};var r=function(e,i,a){var o,s,l,u;if(""!==a)for(var h=D(a),c=0,d=h.length;c<d;c++){if(o=h[c].match(ge),s=h[c].match(me),o){if(h[c]=h[c].replace(ge,""), ""!==h[c]&&(e=e[h[c]]),l=[],h.splice(0,c+1),u=h.join("."),t.isArray(e))for(var p=0,f=e.length;p<f;p++)l.push(r(e[p],i,u));var g=o[0].substring(1,o[0].length-1);e=""===g?l:l.join(g);break}if(s)h[c]=h[c].replace(me,""),e=e[h[c]]();else{if(null===e||e[h[c]]===n)return n;e=e[h[c]]}}return e};return function(t,i){return r(t,i,e)}}function L(e){if(t.isPlainObject(e))return L(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,i,n){e(t,"set",i,n)};if("string"!=typeof e||e.indexOf(".")===-1&&e.indexOf("[")===-1&&e.indexOf("(")===-1)return function(t,i){t[e]=i};var i=function(e,r,a){for(var o,s,l,u,h,c=D(a),d=c[c.length-1],p=0,f=c.length-1;p<f;p++){if(s=c[p].match(ge),l=c[p].match(me),s){if(c[p]=c[p].replace(ge,""),e[c[p]]=[],o=c.slice(),o.splice(0,p+1),h=o.join("."),t.isArray(r))for(var g=0,m=r.length;g<m;g++)u={},i(u,r[g],h),e[c[p]].push(u);else e[c[p]]=r;return}l&&(c[p]=c[p].replace(me,""),e=e[c[p]](r)),null!==e[c[p]]&&e[c[p]]!==n||(e[c[p]]={}),e=e[c[p]]}d.match(me)?e=e[d.replace(me,"")](r):e[d.replace(ge,"")]=r};return function(t,n){return i(t,n,e)}}function C(t){return se(t.aoData,"_aData")}function I(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function A(t,e,i){for(var r=-1,a=0,o=t.length;a<o;a++)t[a]==e?r=a:t[a]>e&&t[a]--;r!=-1&&i===n&&t.splice(r,1)}function P(t,e,i,r){var a,o,s=t.aoData[e],l=function(i,n){for(;i.childNodes.length;)i.removeChild(i.firstChild);i.innerHTML=S(t,e,n,"display")};if("dom"!==i&&(i&&"auto"!==i||"dom"!==s.src)){var u=s.anCells;if(u)if(r!==n)l(u[r],r);else for(a=0,o=u.length;a<o;a++)l(u[a],a)}else s._aData=E(t,s,r,r===n?n:s._aData).data;s._aSortData=null,s._aFilterData=null;var h=t.aoColumns;if(r!==n)h[r].sType=null;else{for(a=0,o=h.length;a<o;a++)h[a].sType=null;R(t,s)}}function E(e,i,r,a){var o,s,l,u=[],h=i.firstChild,c=0,d=e.aoColumns,p=e._rowReadObject;a=a!==n?a:p?{}:[];var f=function(t,e){if("string"==typeof t){var i=t.indexOf("@");if(i!==-1){var n=t.substring(i+1),r=L(t);r(a,e.getAttribute(n))}}},g=function(e){if(r===n||r===c)if(s=d[c],l=t.trim(e.innerHTML),s&&s._bAttrSrc){var i=L(s.mData._);i(a,l),f(s.mData.sort,e),f(s.mData.type,e),f(s.mData.filter,e)}else p?(s._setter||(s._setter=L(s.mData)),s._setter(a,l)):a[c]=l;c++};if(h)for(;h;)o=h.nodeName.toUpperCase(),"TD"!=o&&"TH"!=o||(g(h),u.push(h)),h=h.nextSibling;else{u=i.anCells;for(var m=0,v=u.length;m<v;m++)g(u[m])}var y=i.firstChild?i:i.nTr;if(y){var _=y.getAttribute("id");_&&L(e.rowId)(a,_)}return{data:a,cells:u}}function O(e,n,r,a){var o,s,l,u,h,c=e.aoData[n],d=c._aData,p=[];if(null===c.nTr){for(o=r||i.createElement("tr"),c.nTr=o,c.anCells=p,o._DT_RowIndex=n,R(e,c),u=0,h=e.aoColumns.length;u<h;u++)l=e.aoColumns[u],s=r?a[u]:i.createElement(l.sCellType),s._DT_CellIndex={row:n,column:u},p.push(s),r&&!l.mRender&&l.mData===u||t.isPlainObject(l.mData)&&l.mData._===u+".display"||(s.innerHTML=S(e,n,u,"display")),l.sClass&&(s.className+=" "+l.sClass),l.bVisible&&!r?o.appendChild(s):!l.bVisible&&r&&s.parentNode.removeChild(s),l.fnCreatedCell&&l.fnCreatedCell.call(e.oInstance,s,S(e,n,u),d,n,u);zt(e,"aoRowCreatedCallback",null,[o,d,n,p])}c.nTr.setAttribute("role","row")}function R(e,i){var n=i.nTr,r=i._aData;if(n){var a=e.rowIdFn(r);if(a&&(n.id=a),r.DT_RowClass){var o=r.DT_RowClass.split(" ");i.__rowc=i.__rowc?pe(i.__rowc.concat(o)):o,t(n).removeClass(i.__rowc.join(" ")).addClass(r.DT_RowClass)}r.DT_RowAttr&&t(n).attr(r.DT_RowAttr),r.DT_RowData&&t(n).data(r.DT_RowData)}}function H(e){var i,n,r,a,o,s=e.nTHead,l=e.nTFoot,u=0===t("th, td",s).length,h=e.oClasses,c=e.aoColumns;for(u&&(a=t("<tr/>").appendTo(s)),i=0,n=c.length;i<n;i++)o=c[i],r=t(o.nTh).addClass(o.sClass),u&&r.appendTo(a),e.oFeatures.bSort&&(r.addClass(o.sSortingClass),o.bSortable!==!1&&(r.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),Dt(e,o.nTh,i))),o.sTitle!=r[0].innerHTML&&r.html(o.sTitle),Nt(e,"header")(e,r,o,h);if(u&&W(e.aoHeader,s),t(s).find(">tr").attr("role","row"),t(s).find(">tr>th, >tr>td").addClass(h.sHeaderTH),t(l).find(">tr>th, >tr>td").addClass(h.sFooterTH),null!==l){var d=e.aoFooter[0];for(i=0,n=d.length;i<n;i++)o=c[i],o.nTf=d[i].cell,o.sClass&&t(o.nTf).addClass(o.sClass)}}function z(e,i,r){var a,o,s,l,u,h,c,d,p,f=[],g=[],m=e.aoColumns.length;if(i){for(r===n&&(r=!1),a=0,o=i.length;a<o;a++){for(f[a]=i[a].slice(),f[a].nTr=i[a].nTr,s=m-1;s>=0;s--)e.aoColumns[s].bVisible||r||f[a].splice(s,1);g.push([])}for(a=0,o=f.length;a<o;a++){if(c=f[a].nTr)for(;h=c.firstChild;)c.removeChild(h);for(s=0,l=f[a].length;s<l;s++)if(d=1,p=1,g[a][s]===n){for(c.appendChild(f[a][s].cell),g[a][s]=1;f[a+d]!==n&&f[a][s].cell==f[a+d][s].cell;)g[a+d][s]=1,d++;for(;f[a][s+p]!==n&&f[a][s].cell==f[a][s+p].cell;){for(u=0;u<d;u++)g[a+u][s+p]=1;p++}t(f[a][s].cell).attr("rowspan",d).attr("colspan",p)}}}}function Y(e){var i=zt(e,"aoPreDrawCallback","preDraw",[e]);if(t.inArray(!1,i)!==-1)return void pt(e,!1);var r=[],a=0,o=e.asStripeClasses,s=o.length,l=(e.aoOpenRows.length,e.oLanguage),u=e.iInitDisplayStart,h="ssp"==Ft(e),c=e.aiDisplay;e.bDrawing=!0,u!==n&&u!==-1&&(e._iDisplayStart=h?u:u>=e.fnRecordsDisplay()?0:u,e.iInitDisplayStart=-1);var d=e._iDisplayStart,p=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,pt(e,!1);else if(h){if(!e.bDestroying&&!V(e))return}else e.iDraw++;if(0!==c.length)for(var f=h?0:d,g=h?e.aoData.length:p,v=f;v<g;v++){var y=c[v],_=e.aoData[y];null===_.nTr&&O(e,y);var b=_.nTr;if(0!==s){var x=o[a%s];_._sRowStripe!=x&&(t(b).removeClass(_._sRowStripe).addClass(x),_._sRowStripe=x)}zt(e,"aoRowCallback",null,[b,_._aData,a,v,y]),r.push(b),a++}else{var w=l.sZeroRecords;1==e.iDraw&&"ajax"==Ft(e)?w=l.sLoadingRecords:l.sEmptyTable&&0===e.fnRecordsTotal()&&(w=l.sEmptyTable),r[0]=t("<tr/>",{"class":s?o[0]:""}).append(t("<td />",{valign:"top",colSpan:m(e),"class":e.oClasses.sRowEmpty}).html(w))[0]}zt(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],C(e),d,p,c]),zt(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],C(e),d,p,c]);var M=t(e.nTBody);M.children().detach(),M.append(t(r)),zt(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}function N(t,e){var i=t.oFeatures,n=i.bSort,r=i.bFilter;n&&Mt(t),r?X(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),e!==!0&&(t._iDisplayStart=0),t._drawHold=e,Y(t),t._drawHold=!1}function F(e){var i=e.oClasses,n=t(e.nTable),r=t("<div/>").insertBefore(n),a=e.oFeatures,o=t("<div/>",{id:e.sTableId+"_wrapper","class":i.sWrapper+(e.nTFoot?"":" "+i.sNoFooter)});e.nHolding=r[0],e.nTableWrapper=o[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var s,l,u,h,c,d,p=e.sDom.split(""),f=0;f<p.length;f++){if(s=null,l=p[f],"<"==l){if(u=t("<div/>")[0],h=p[f+1],"'"==h||'"'==h){for(c="",d=2;p[f+d]!=h;)c+=p[f+d],d++;if("H"==c?c=i.sJUIHeader:"F"==c&&(c=i.sJUIFooter),c.indexOf(".")!=-1){var g=c.split(".");u.id=g[0].substr(1,g[0].length-1),u.className=g[1]}else"#"==c.charAt(0)?u.id=c.substr(1,c.length-1):u.className=c;f+=d}o.append(u),o=t(u)}else if(">"==l)o=o.parent();else if("l"==l&&a.bPaginate&&a.bLengthChange)s=ut(e);else if("f"==l&&a.bFilter)s=q(e);else if("r"==l&&a.bProcessing)s=dt(e);else if("t"==l)s=ft(e);else if("i"==l&&a.bInfo)s=nt(e);else if("p"==l&&a.bPaginate)s=ht(e);else if(0!==qt.ext.feature.length)for(var m=qt.ext.feature,v=0,y=m.length;v<y;v++)if(l==m[v].cFeature){s=m[v].fnInit(e);break}if(s){var _=e.aanFeatures;_[l]||(_[l]=[]),_[l].push(s),o.append(s)}}r.replaceWith(o),e.nHolding=null}function W(e,i){var n,r,a,o,s,l,u,h,c,d,p,f=t(i).children("tr"),g=function(t,e,i){for(var n=t[e];n[i];)i++;return i};for(e.splice(0,e.length),a=0,l=f.length;a<l;a++)e.push([]);for(a=0,l=f.length;a<l;a++)for(n=f[a],h=0,r=n.firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase())for(c=1*r.getAttribute("colspan"),d=1*r.getAttribute("rowspan"),c=c&&0!==c&&1!==c?c:1,d=d&&0!==d&&1!==d?d:1,u=g(e,a,h),p=1===c,s=0;s<c;s++)for(o=0;o<d;o++)e[a+o][u+s]={cell:r,unique:p},e[a+o].nTr=n;r=r.nextSibling}}function B(t,e,i){var n=[];i||(i=t.aoHeader,e&&(i=[],W(i,e)));for(var r=0,a=i.length;r<a;r++)for(var o=0,s=i[r].length;o<s;o++)!i[r][o].unique||n[o]&&t.bSortCellsTop||(n[o]=i[r][o].cell);return n}function j(e,i,n){if(zt(e,"aoServerParams","serverParams",[i]),i&&t.isArray(i)){var r={},a=/(.*?)\[\]$/;t.each(i,function(t,e){var i=e.name.match(a);if(i){var n=i[0];r[n]||(r[n]=[]),r[n].push(e.value)}else r[e.name]=e.value}),i=r}var o,s=e.ajax,l=e.oInstance,u=function(t){zt(e,null,"xhr",[e,t,e.jqXHR]),n(t)};if(t.isPlainObject(s)&&s.data){o=s.data;var h="function"==typeof o?o(i,e):o;i="function"==typeof o&&h?h:t.extend(!0,i,h),delete s.data}var c={data:i,success:function(t){var i=t.error||t.sError;i&&Pt(e,0,i),e.json=t,u(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(i,n,r){var a=zt(e,null,"xhr",[e,null,e.jqXHR]);t.inArray(!0,a)===-1&&("parsererror"==n?Pt(e,0,"Invalid JSON response",1):4===i.readyState&&Pt(e,0,"Ajax error",7)),pt(e,!1)}};e.oAjaxData=i,zt(e,null,"preXhr",[e,i]),e.fnServerData?e.fnServerData.call(l,e.sAjaxSource,t.map(i,function(t,e){return{name:e,value:t}}),u,e):e.sAjaxSource||"string"==typeof s?e.jqXHR=t.ajax(t.extend(c,{url:s||e.sAjaxSource})):"function"==typeof s?e.jqXHR=s.call(l,i,u,e):(e.jqXHR=t.ajax(t.extend(c,s)),s.data=o)}function V(t){return!t.bAjaxDataGet||(t.iDraw++,pt(t,!0),j(t,$(t),function(e){G(t,e)}),!1)}function $(e){var i,n,r,a,o=e.aoColumns,s=o.length,l=e.oFeatures,u=e.oPreviousSearch,h=e.aoPreSearchCols,c=[],d=wt(e),p=e._iDisplayStart,f=l.bPaginate!==!1?e._iDisplayLength:-1,g=function(t,e){c.push({name:t,value:e})};g("sEcho",e.iDraw),g("iColumns",s),g("sColumns",se(o,"sName").join(",")),g("iDisplayStart",p),g("iDisplayLength",f);var m={draw:e.iDraw,columns:[],order:[],start:p,length:f,search:{value:u.sSearch,regex:u.bRegex}};for(i=0;i<s;i++)r=o[i],a=h[i],n="function"==typeof r.mData?"function":r.mData,m.columns.push({data:n,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:a.sSearch,regex:a.bRegex}}),g("mDataProp_"+i,n),l.bFilter&&(g("sSearch_"+i,a.sSearch),g("bRegex_"+i,a.bRegex),g("bSearchable_"+i,r.bSearchable)),l.bSort&&g("bSortable_"+i,r.bSortable);l.bFilter&&(g("sSearch",u.sSearch),g("bRegex",u.bRegex)),l.bSort&&(t.each(d,function(t,e){m.order.push({column:e.col,dir:e.dir}),g("iSortCol_"+t,e.col),g("sSortDir_"+t,e.dir)}),g("iSortingCols",d.length));var v=qt.ext.legacy.ajax;return null===v?e.sAjaxSource?c:m:v?c:m}function G(t,e){var i=function(t,i){return e[t]!==n?e[t]:e[i]},r=U(t,e),a=i("sEcho","draw"),o=i("iTotalRecords","recordsTotal"),s=i("iTotalDisplayRecords","recordsFiltered");if(a){if(1*a<t.iDraw)return;t.iDraw=1*a}I(t),t._iRecordsTotal=parseInt(o,10),t._iRecordsDisplay=parseInt(s,10);for(var l=0,u=r.length;l<u;l++)b(t,r[l]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,Y(t),t._bInitComplete||st(t,e),t.bAjaxDataGet=!0,pt(t,!1)}function U(e,i){var r=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==n?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===r?i.aaData||i[r]:""!==r?T(r)(i):i}function q(e){var n=e.oClasses,r=e.sTableId,a=e.oLanguage,o=e.oPreviousSearch,s=e.aanFeatures,l='<input type="search" class="'+n.sFilterInput+'"/>',u=a.sSearch;u=u.match(/_INPUT_/)?u.replace("_INPUT_",l):u+l;var h=t("<div/>",{id:s.f?null:r+"_filter","class":n.sFilter}).append(t("<label/>").append(u)),c=function(){var t=(s.f,this.value?this.value:"");t!=o.sSearch&&(X(e,{sSearch:t,bRegex:o.bRegex,bSmart:o.bSmart,bCaseInsensitive:o.bCaseInsensitive}),e._iDisplayStart=0,Y(e))},d=null!==e.searchDelay?e.searchDelay:"ssp"===Ft(e)?400:0,p=t("input",h).val(o.sSearch).attr("placeholder",a.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",d?xe(c,d):c).on("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",r);return t(e.nTable).on("search.dt.DT",function(t,n){if(e===n)try{p[0]!==i.activeElement&&p.val(o.sSearch)}catch(r){}}),h[0]}function X(t,e,i){var r=t.oPreviousSearch,a=t.aoPreSearchCols,o=function(t){r.sSearch=t.sSearch,r.bRegex=t.bRegex,r.bSmart=t.bSmart,r.bCaseInsensitive=t.bCaseInsensitive},s=function(t){return t.bEscapeRegex!==n?!t.bEscapeRegex:t.bRegex};if(y(t),"ssp"!=Ft(t)){J(t,e.sSearch,i,s(e),e.bSmart,e.bCaseInsensitive),o(e);for(var l=0;l<a.length;l++)K(t,a[l].sSearch,l,s(a[l]),a[l].bSmart,a[l].bCaseInsensitive);Z(t)}else o(e);t.bFiltered=!0,zt(t,null,"search",[t])}function Z(e){for(var i,n,r=qt.ext.search,a=e.aiDisplay,o=0,s=r.length;o<s;o++){for(var l=[],u=0,h=a.length;u<h;u++)n=a[u],i=e.aoData[n],r[o](e,i._aFilterData,n,i._aData,u)&&l.push(n);a.length=0,t.merge(a,l)}}function K(t,e,i,n,r,a){if(""!==e){for(var o,s=[],l=t.aiDisplay,u=Q(e,n,r,a),h=0;h<l.length;h++)o=t.aoData[l[h]]._aFilterData[i],u.test(o)&&s.push(l[h]);t.aiDisplay=s}}function J(t,e,i,n,r,a){var o,s,l,u=Q(e,n,r,a),h=t.oPreviousSearch.sSearch,c=t.aiDisplayMaster,d=[];if(0!==qt.ext.search.length&&(i=!0),s=tt(t),e.length<=0)t.aiDisplay=c.slice();else{for((s||i||h.length>e.length||0!==e.indexOf(h)||t.bSorted)&&(t.aiDisplay=c.slice()),o=t.aiDisplay,l=0;l<o.length;l++)u.test(t.aoData[o[l]]._sFilterRow)&&d.push(o[l]);t.aiDisplay=d}}function Q(e,i,n,r){if(e=i?e:ve(e),n){var a=t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")});e="^(?=.*?"+a.join(")(?=.*?")+").*$"}return new RegExp(e,r?"i":"")}function tt(t){var e,i,n,r,a,o,s,l,u=t.aoColumns,h=qt.ext.type.search,c=!1;for(i=0,r=t.aoData.length;i<r;i++)if(l=t.aoData[i],!l._aFilterData){for(o=[],n=0,a=u.length;n<a;n++)e=u[n],e.bSearchable?(s=S(t,i,n,"filter"),h[e.sType]&&(s=h[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&s.indexOf("&")!==-1&&(ye.innerHTML=s,s=_e?ye.textContent:ye.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),o.push(s);l._aFilterData=o,l._sFilterRow=o.join(" "),c=!0}return c}function et(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function it(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function nt(e){var i=e.sTableId,n=e.aanFeatures.i,r=t("<div/>",{"class":e.oClasses.sInfo,id:n?null:i+"_info"});return n||(e.aoDrawCallback.push({fn:rt,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",i+"_info")),r[0]}function rt(e){var i=e.aanFeatures.i;if(0!==i.length){var n=e.oLanguage,r=e._iDisplayStart+1,a=e.fnDisplayEnd(),o=e.fnRecordsTotal(),s=e.fnRecordsDisplay(),l=s?n.sInfo:n.sInfoEmpty;s!==o&&(l+=" "+n.sInfoFiltered),l+=n.sInfoPostFix,l=at(e,l);var u=n.fnInfoCallback;null!==u&&(l=u.call(e.oInstance,e,r,a,o,s,l)),t(i).html(l)}}function at(t,e){var i=t.fnFormatNumber,n=t._iDisplayStart+1,r=t._iDisplayLength,a=t.fnRecordsDisplay(),o=r===-1;return e.replace(/_START_/g,i.call(t,n)).replace(/_END_/g,i.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,i.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,i.call(t,a)).replace(/_PAGE_/g,i.call(t,o?1:Math.ceil(n/r))).replace(/_PAGES_/g,i.call(t,o?1:Math.ceil(a/r)))}function ot(t){var e,i,n,r=t.iInitDisplayStart,a=t.aoColumns,o=t.oFeatures,s=t.bDeferLoading;if(!t.bInitialised)return void setTimeout(function(){ot(t)},200);for(F(t),H(t),z(t,t.aoHeader),z(t,t.aoFooter),pt(t,!0),o.bAutoWidth&&vt(t),e=0,i=a.length;e<i;e++)n=a[e],n.sWidth&&(n.nTh.style.width=xt(n.sWidth));zt(t,null,"preInit",[t]),N(t);var l=Ft(t);("ssp"!=l||s)&&("ajax"==l?j(t,[],function(i){var n=U(t,i);for(e=0;e<n.length;e++)b(t,n[e]);t.iInitDisplayStart=r,N(t),pt(t,!1),st(t,i)},t):(pt(t,!1),st(t)))}function st(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&p(t),zt(t,null,"plugin-init",[t,e]),zt(t,"aoInitComplete","init",[t,e])}function lt(t,e){var i=parseInt(e,10);t._iDisplayLength=i,Yt(t),zt(t,null,"length",[t,i])}function ut(e){for(var i=e.oClasses,n=e.sTableId,r=e.aLengthMenu,a=t.isArray(r[0]),o=a?r[0]:r,s=a?r[1]:r,l=t("<select/>",{name:n+"_length","aria-controls":n,"class":i.sLengthSelect}),u=0,h=o.length;u<h;u++)l[0][u]=new Option("number"==typeof s[u]?e.fnFormatNumber(s[u]):s[u],o[u]);var c=t("<div><label/></div>").addClass(i.sLength);return e.aanFeatures.l||(c[0].id=n+"_length"),c.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),t("select",c).val(e._iDisplayLength).on("change.DT",function(i){lt(e,t(this).val()),Y(e)}),t(e.nTable).on("length.dt.DT",function(i,n,r){e===n&&t("select",c).val(r)}),c[0]}function ht(e){var i=e.sPaginationType,n=qt.ext.pager[i],r="function"==typeof n,a=function(t){Y(t)},o=t("<div/>").addClass(e.oClasses.sPaging+i)[0],s=e.aanFeatures;return r||n.fnInit(e,o,a),s.p||(o.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(r){var e,i,o=t._iDisplayStart,l=t._iDisplayLength,u=t.fnRecordsDisplay(),h=l===-1,c=h?0:Math.ceil(o/l),d=h?1:Math.ceil(u/l),p=n(c,d);for(e=0,i=s.p.length;e<i;e++)Nt(t,"pageButton")(t,s.p[e],e,p,c,d)}else n.fnUpdate(t,a)},sName:"pagination"})),o}function ct(t,e,i){var n=t._iDisplayStart,r=t._iDisplayLength,a=t.fnRecordsDisplay();0===a||r===-1?n=0:"number"==typeof e?(n=e*r,n>a&&(n=0)):"first"==e?n=0:"previous"==e?(n=r>=0?n-r:0,n<0&&(n=0)):"next"==e?n+r<a&&(n+=r):"last"==e?n=Math.floor((a-1)/r)*r:Pt(t,0,"Unknown paging action: "+e,5);var o=t._iDisplayStart!==n;return t._iDisplayStart=n,o&&(zt(t,null,"page",[t]),i&&Y(t)),o}function dt(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing","class":e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function pt(e,i){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",i?"block":"none"),zt(e,null,"processing",[e,i])}function ft(e){var i=t(e.nTable);i.attr("role","grid");var n=e.oScroll;if(""===n.sX&&""===n.sY)return e.nTable;var r=n.sX,a=n.sY,o=e.oClasses,s=i.children("caption"),l=s.length?s[0]._captionSide:null,u=t(i[0].cloneNode(!1)),h=t(i[0].cloneNode(!1)),c=i.children("tfoot"),d="<div/>",p=function(t){return t?xt(t):null};c.length||(c=null);var f=t(d,{"class":o.sScrollWrapper}).append(t(d,{"class":o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?p(r):"100%"}).append(t(d,{"class":o.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===l?s:null).append(i.children("thead"))))).append(t(d,{"class":o.sScrollBody}).css({position:"relative",overflow:"auto",width:p(r)}).append(i));c&&f.append(t(d,{"class":o.sScrollFoot}).css({overflow:"hidden",border:0,width:r?p(r):"100%"}).append(t(d,{"class":o.sScrollFootInner}).append(h.removeAttr("id").css("margin-left",0).append("bottom"===l?s:null).append(i.children("tfoot")))));var g=f.children(),m=g[0],v=g[1],y=c?g[2]:null;return r&&t(v).on("scroll.DT",function(t){var e=this.scrollLeft;m.scrollLeft=e,c&&(y.scrollLeft=e)}),t(v).css(a&&n.bCollapse?"max-height":"height",a),e.nScrollHead=m,e.nScrollBody=v,e.nScrollFoot=y,e.aoDrawCallback.push({fn:gt,sName:"scrolling"}),f[0]}function gt(e){var i,r,a,o,s,l,u,h,c,d=e.oScroll,g=d.sX,m=d.sXInner,v=d.sY,y=d.iBarWidth,_=t(e.nScrollHead),b=_[0].style,x=_.children("div"),w=x[0].style,M=x.children("table"),S=e.nScrollBody,k=t(S),D=S.style,T=t(e.nScrollFoot),L=T.children("div"),C=L.children("table"),I=t(e.nTHead),A=t(e.nTable),P=A[0],E=P.style,O=e.nTFoot?t(e.nTFoot):null,R=e.oBrowser,H=R.bScrollOversize,z=se(e.aoColumns,"nTh"),Y=[],N=[],F=[],W=[],j=function(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0},V=S.scrollHeight>S.clientHeight;if(e.scrollBarVis!==V&&e.scrollBarVis!==n)return e.scrollBarVis=V,void p(e);e.scrollBarVis=V,A.children("thead, tfoot").remove(),O&&(l=O.clone().prependTo(A),r=O.find("tr"),o=l.find("tr")),s=I.clone().prependTo(A),i=I.find("tr"),a=s.find("tr"),s.find("th, td").removeAttr("tabindex"),g||(D.width="100%",_[0].style.width="100%"),t.each(B(e,s),function(t,i){u=f(e,t),i.style.width=e.aoColumns[u].sWidth}),O&&mt(function(t){t.style.width=""},o),c=A.outerWidth(),""===g?(E.width="100%",H&&(A.find("tbody").height()>S.offsetHeight||"scroll"==k.css("overflow-y"))&&(E.width=xt(A.outerWidth()-y)),c=A.outerWidth()):""!==m&&(E.width=xt(m),c=A.outerWidth()),mt(j,a),mt(function(e){F.push(e.innerHTML),Y.push(xt(t(e).css("width")))},a),mt(function(e,i){t.inArray(e,z)!==-1&&(e.style.width=Y[i])},i),t(a).height(0),O&&(mt(j,o),mt(function(e){W.push(e.innerHTML),N.push(xt(t(e).css("width")))},o),mt(function(t,e){t.style.width=N[e]},r),t(o).height(0)),mt(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+F[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=Y[e]},a),O&&mt(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+W[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=N[e]},o),A.outerWidth()<c?(h=S.scrollHeight>S.offsetHeight||"scroll"==k.css("overflow-y")?c+y:c,H&&(S.scrollHeight>S.offsetHeight||"scroll"==k.css("overflow-y"))&&(E.width=xt(h-y)),""!==g&&""===m||Pt(e,1,"Possible column misalignment",6)):h="100%",D.width=xt(h),b.width=xt(h),O&&(e.nScrollFoot.style.width=xt(h)),v||H&&(D.height=xt(P.offsetHeight+y));var $=A.outerWidth();M[0].style.width=xt($),w.width=xt($);var G=A.height()>S.clientHeight||"scroll"==k.css("overflow-y"),U="padding"+(R.bScrollbarLeft?"Left":"Right");w[U]=G?y+"px":"0px",O&&(C[0].style.width=xt($),L[0].style.width=xt($),L[0].style[U]=G?y+"px":"0px"),A.children("colgroup").insertBefore(A.children("thead")),k.scroll(),!e.bSorted&&!e.bFiltered||e._drawHold||(S.scrollTop=0)}function mt(t,e,i){for(var n,r,a=0,o=0,s=e.length;o<s;){for(n=e[o].firstChild,r=i?i[o].firstChild:null;n;)1===n.nodeType&&(i?t(n,r,a):t(n,a),a++),n=n.nextSibling,r=i?r.nextSibling:null;o++}}function vt(i){var n,r,a,o=i.nTable,s=i.aoColumns,l=i.oScroll,u=l.sY,h=l.sX,c=l.sXInner,d=s.length,g=v(i,"bVisible"),y=t("th",i.nTHead),_=o.getAttribute("width"),b=o.parentNode,x=!1,w=i.oBrowser,M=w.bScrollOversize,S=o.style.width;for(S&&S.indexOf("%")!==-1&&(_=S),n=0;n<g.length;n++)r=s[g[n]],null!==r.sWidth&&(r.sWidth=yt(r.sWidthOrig,b),x=!0);if(M||!x&&!h&&!u&&d==m(i)&&d==y.length)for(n=0;n<d;n++){var k=f(i,n);null!==k&&(s[k].sWidth=xt(y.eq(n).width()))}else{var D=t(o).clone().css("visibility","hidden").removeAttr("id");D.find("tbody tr").remove();var T=t("<tr/>").appendTo(D.find("tbody"));for(D.find("thead, tfoot").remove(),D.append(t(i.nTHead).clone()).append(t(i.nTFoot).clone()),D.find("tfoot th, tfoot td").css("width",""),y=B(i,D.find("thead")[0]),n=0;n<g.length;n++)r=s[g[n]],y[n].style.width=null!==r.sWidthOrig&&""!==r.sWidthOrig?xt(r.sWidthOrig):"",r.sWidthOrig&&h&&t(y[n]).append(t("<div/>").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(i.aoData.length)for(n=0;n<g.length;n++)a=g[n],r=s[a],t(_t(i,a)).clone(!1).append(r.sContentPadding).appendTo(T);t("[name]",D).removeAttr("name");var L=t("<div/>").css(h||u?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(D).appendTo(b);h&&c?D.width(c):h?(D.css("width","auto"),D.removeAttr("width"),D.width()<b.clientWidth&&_&&D.width(b.clientWidth)):u?D.width(b.clientWidth):_&&D.width(_);var C=0;for(n=0;n<g.length;n++){var I=t(y[n]),A=I.outerWidth()-I.width(),P=w.bBounding?Math.ceil(y[n].getBoundingClientRect().width):I.outerWidth();C+=P,s[g[n]].sWidth=xt(P-A)}o.style.width=xt(C),L.remove()}if(_&&(o.style.width=xt(_)),(_||h)&&!i._reszEvt){var E=function(){t(e).on("resize.DT-"+i.sInstance,xe(function(){p(i)}))};M?setTimeout(E,1e3):E(),i._reszEvt=!0}}function yt(e,n){if(!e)return 0;var r=t("<div/>").css("width",xt(e)).appendTo(n||i.body),a=r[0].offsetWidth;return r.remove(),a}function _t(e,i){var n=bt(e,i);if(n<0)return null;var r=e.aoData[n];return r.nTr?r.anCells[i]:t("<td/>").html(S(e,n,i,"display"))[0]}function bt(t,e){for(var i,n=-1,r=-1,a=0,o=t.aoData.length;a<o;a++)i=S(t,a,e,"display")+"",i=i.replace(be,""),i=i.replace(/ /g," "),i.length>n&&(n=i.length,r=a);return r}function xt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function wt(e){var i,r,a,o,s,l,u,h=[],c=e.aoColumns,d=e.aaSortingFixed,p=t.isPlainObject(d),f=[],g=function(e){e.length&&!t.isArray(e[0])?f.push(e):t.merge(f,e)};for(t.isArray(d)&&g(d),p&&d.pre&&g(d.pre),g(e.aaSorting),p&&d.post&&g(d.post),i=0;i<f.length;i++)for(u=f[i][0],o=c[u].aDataSort,r=0,a=o.length;r<a;r++)s=o[r],l=c[s].sType||"string",f[i]._idx===n&&(f[i]._idx=t.inArray(f[i][1],c[s].asSorting)),h.push({src:u,col:s,dir:f[i][1],index:f[i]._idx,type:l,formatter:qt.ext.type.order[l+"-pre"]});return h}function Mt(t){var e,i,n,r,a,o=[],s=qt.ext.type.order,l=t.aoData,u=(t.aoColumns,0),h=t.aiDisplayMaster;for(y(t),a=wt(t),e=0,i=a.length;e<i;e++)r=a[e],r.formatter&&u++,Lt(t,r.col);if("ssp"!=Ft(t)&&0!==a.length){for(e=0,n=h.length;e<n;e++)o[h[e]]=e;u===a.length?h.sort(function(t,e){var i,n,r,s,u,h=a.length,c=l[t]._aSortData,d=l[e]._aSortData;for(r=0;r<h;r++)if(u=a[r],i=c[u.col],n=d[u.col],s=i<n?-1:i>n?1:0,0!==s)return"asc"===u.dir?s:-s;return i=o[t],n=o[e],i<n?-1:i>n?1:0}):h.sort(function(t,e){var i,n,r,u,h,c,d=a.length,p=l[t]._aSortData,f=l[e]._aSortData;for(r=0;r<d;r++)if(h=a[r],i=p[h.col],n=f[h.col],c=s[h.type+"-"+h.dir]||s["string-"+h.dir],u=c(i,n),0!==u)return u;return i=o[t],n=o[e],i<n?-1:i>n?1:0})}t.bSorted=!0}function St(t){for(var e,i,n=t.aoColumns,r=wt(t),a=t.oLanguage.oAria,o=0,s=n.length;o<s;o++){var l=n[o],u=l.asSorting,h=l.sTitle.replace(/<.*?>/g,""),c=l.nTh;c.removeAttribute("aria-sort"),l.bSortable?(r.length>0&&r[0].col==o?(c.setAttribute("aria-sort","asc"==r[0].dir?"ascending":"descending"),i=u[r[0].index+1]||u[0]):i=u[0],e=h+("asc"===i?a.sSortAscending:a.sSortDescending)):e=h,c.setAttribute("aria-label",e)}}function kt(e,i,r,a){var o,s=e.aoColumns[i],l=e.aaSorting,u=s.asSorting,h=function(e,i){var r=e._idx;return r===n&&(r=t.inArray(e[1],u)),r+1<u.length?r+1:i?null:0};if("number"==typeof l[0]&&(l=e.aaSorting=[l]),r&&e.oFeatures.bSortMulti){var c=t.inArray(i,se(l,"0"));c!==-1?(o=h(l[c],!0),null===o&&1===l.length&&(o=0),null===o?l.splice(c,1):(l[c][1]=u[o],l[c]._idx=o)):(l.push([i,u[0],0]),l[l.length-1]._idx=0)}else l.length&&l[0][0]==i?(o=h(l[0]),l.length=1,l[0][1]=u[o],l[0]._idx=o):(l.length=0,l.push([i,u[0]]),l[0]._idx=0);N(e),"function"==typeof a&&a(e)}function Dt(t,e,i,n){var r=t.aoColumns[i];Rt(e,{},function(e){r.bSortable!==!1&&(t.oFeatures.bProcessing?(pt(t,!0),setTimeout(function(){kt(t,i,e.shiftKey,n),"ssp"!==Ft(t)&&pt(t,!1)},0)):kt(t,i,e.shiftKey,n))})}function Tt(e){var i,n,r,a=e.aLastSort,o=e.oClasses.sSortColumn,s=wt(e),l=e.oFeatures;if(l.bSort&&l.bSortClasses){for(i=0,n=a.length;i<n;i++)r=a[i].src,t(se(e.aoData,"anCells",r)).removeClass(o+(i<2?i+1:3));for(i=0,n=s.length;i<n;i++)r=s[i].src,t(se(e.aoData,"anCells",r)).addClass(o+(i<2?i+1:3))}e.aLastSort=s}function Lt(t,e){var i,n=t.aoColumns[e],r=qt.ext.order[n.sSortDataType];r&&(i=r.call(t.oInstance,t,e,g(t,e)));for(var a,o,s=qt.ext.type.order[n.sType+"-pre"],l=0,u=t.aoData.length;l<u;l++)a=t.aoData[l],a._aSortData||(a._aSortData=[]),a._aSortData[e]&&!r||(o=r?i[l]:S(t,l,e,"sort"),a._aSortData[e]=s?s(o):o)}function Ct(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var i={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:et(e.oPreviousSearch),columns:t.map(e.aoColumns,function(t,i){return{visible:t.bVisible,search:et(e.aoPreSearchCols[i])}})};zt(e,"aoStateSaveParams","stateSaveParams",[e,i]),e.oSavedState=i,e.fnStateSaveCallback.call(e.oInstance,e,i)}}function It(e,i,r){var a,o,s=e.aoColumns,l=function(i){if(!i||!i.time)return void r();var l=zt(e,"aoStateLoadParams","stateLoadParams",[e,i]);if(t.inArray(!1,l)!==-1)return void r();var u=e.iStateDuration;if(u>0&&i.time<+new Date-1e3*u)return void r();if(i.columns&&s.length!==i.columns.length)return void r();if(e.oLoadedState=t.extend(!0,{},i),i.start!==n&&(e._iDisplayStart=i.start,e.iInitDisplayStart=i.start),i.length!==n&&(e._iDisplayLength=i.length),i.order!==n&&(e.aaSorting=[],t.each(i.order,function(t,i){e.aaSorting.push(i[0]>=s.length?[0,i[1]]:i)})),i.search!==n&&t.extend(e.oPreviousSearch,it(i.search)),i.columns)for(a=0,o=i.columns.length;a<o;a++){var h=i.columns[a];h.visible!==n&&(s[a].bVisible=h.visible),h.search!==n&&t.extend(e.aoPreSearchCols[a],it(h.search))}zt(e,"aoStateLoaded","stateLoaded",[e,i]),r()};if(!e.oFeatures.bStateSave)return void r();var u=e.fnStateLoadCallback.call(e.oInstance,e,l);u!==n&&l(u)}function At(e){var i=qt.settings,n=t.inArray(e,se(i,"nTable"));return n!==-1?i[n]:null}function Pt(t,i,n,r){if(n="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+n,r&&(n+=". For more information about this error, please see http://datatables.net/tn/"+r),i)e.console&&console.log&&console.log(n);else{var a=qt.ext,o=a.sErrMode||a.errMode;if(t&&zt(t,null,"error",[t,r,n]),"alert"==o)alert(n);else{if("throw"==o)throw new Error(n);"function"==typeof o&&o(t,r,n)}}}function Et(e,i,r,a){return t.isArray(r)?void t.each(r,function(n,r){t.isArray(r)?Et(e,i,r[0],r[1]):Et(e,i,r)}):(a===n&&(a=r),void(i[r]!==n&&(e[a]=i[r])))}function Ot(e,i,n){var r;for(var a in i)i.hasOwnProperty(a)&&(r=i[a],t.isPlainObject(r)?(t.isPlainObject(e[a])||(e[a]={}),t.extend(!0,e[a],r)):n&&"data"!==a&&"aaData"!==a&&t.isArray(r)?e[a]=r.slice():e[a]=r);return e}function Rt(e,i,n){t(e).on("click.DT",i,function(i){t(e).blur(),n(i)}).on("keypress.DT",i,function(t){13===t.which&&(t.preventDefault(),n(t))}).on("selectstart.DT",function(){return!1})}function Ht(t,e,i,n){i&&t[e].push({fn:i,sName:n})}function zt(e,i,n,r){var a=[];if(i&&(a=t.map(e[i].slice().reverse(),function(t,i){return t.fn.apply(e.oInstance,r)})),null!==n){var o=t.Event(n+".dt");t(e.nTable).trigger(o,r),a.push(o.result)}return a}function Yt(t){var e=t._iDisplayStart,i=t.fnDisplayEnd(),n=t._iDisplayLength;e>=i&&(e=i-n),e-=e%n,(n===-1||e<0)&&(e=0),t._iDisplayStart=e}function Nt(e,i){var n=e.renderer,r=qt.ext.renderer[i];return t.isPlainObject(n)&&n[i]?r[n[i]]||r._:"string"==typeof n?r[n]||r._:r._}function Ft(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Wt(t,e){var i=[],n=Ve.numbers_length,r=Math.floor(n/2);return e<=n?i=ue(0,e):t<=r?(i=ue(0,n-2),i.push("ellipsis"),i.push(e-1)):t>=e-1-r?(i=ue(e-(n-2),e),i.splice(0,0,"ellipsis"),i.splice(0,0,0)):(i=ue(t-r+2,t+r-1),i.push("ellipsis"),i.push(e-1),i.splice(0,0,"ellipsis"),i.splice(0,0,0)),i.DT_el="span",i}function Bt(e){t.each({num:function(t){return $e(t,e)},"num-fmt":function(t){return $e(t,e,te)},"html-num":function(t){return $e(t,e,Kt)},"html-num-fmt":function(t){return $e(t,e,Kt,te)}},function(t,i){Vt.type.order[t+e+"-pre"]=i,t.match(/^html\-/)&&(Vt.type.search[t+e]=Vt.type.search.html)})}function jt(t){return function(){var e=[At(this[qt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return qt.ext.internal[t].apply(this,e)}}var Vt,$t,Gt,Ut,qt=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new $t(t?At(this[Vt.iApiIndex]):this)},this.fnAddData=function(e,i){var r=this.api(!0),a=t.isArray(e)&&(t.isArray(e[0])||t.isPlainObject(e[0]))?r.rows.add(e):r.row.add(e);return(i===n||i)&&r.draw(),a.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),i=e.settings()[0],r=i.oScroll;t===n||t?e.draw(!1):""===r.sX&&""===r.sY||gt(i)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===n||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,i){var r=this.api(!0),a=r.rows(t),o=a.settings()[0],s=o.aoData[a[0][0]];return a.remove(),e&&e.call(this,o,s),(i===n||i)&&r.draw(),s},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,i,r,a,o){var s=this.api(!0);null===e||e===n?s.search(t,i,r,o):s.column(e).search(t,i,r,o),s.draw()},this.fnGetData=function(t,e){var i=this.api(!0);if(t!==n){var r=t.nodeName?t.nodeName.toLowerCase():"";return e!==n||"td"==r||"th"==r?i.cell(t,e).data():i.row(t).data()||null}return i.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==n?e.row(t).node():e.rows().nodes().flatten().toArray(); },this.fnGetPosition=function(t){var e=this.api(!0),i=t.nodeName.toUpperCase();if("TR"==i)return e.row(t).index();if("TD"==i||"TH"==i){var n=e.cell(t).index();return[n.row,n.columnVisible,n.column]}return null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,i){return this.api(!0).row(t).child(e,i).show().child()[0]},this.fnPageChange=function(t,e){var i=this.api(!0).page(t);(e===n||e)&&i.draw(!1)},this.fnSetColumnVis=function(t,e,i){var r=this.api(!0).column(t).visible(e);(i===n||i)&&r.columns.adjust().draw()},this.fnSettings=function(){return At(this[Vt.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,i){this.api(!0).order.listener(t,e,i)},this.fnUpdate=function(t,e,i,r,a){var o=this.api(!0);return i===n||null===i?o.row(e).data(t):o.cell(e,i).data(t),(a===n||a)&&o.columns.adjust(),(r===n||r)&&o.draw(),0},this.fnVersionCheck=Vt.fnVersionCheck;var i=this,r=e===n,h=this.length;r&&(e={}),this.oApi=this.internal=Vt.internal;for(var p in qt.ext.internal)p&&(this[p]=jt(p));return this.each(function(){var p,f={},g=h>1?Ot(f,e,!0):e,m=0,v=this.getAttribute("id"),y=!1,w=qt.defaults,M=t(this);if("table"!=this.nodeName.toLowerCase())return void Pt(null,0,"Non-table node initialisation ("+this.nodeName+")",2);s(w),l(w.column),a(w,w,!0),a(w.column,w.column,!0),a(w,t.extend(g,M.data()));var S=qt.settings;for(m=0,p=S.length;m<p;m++){var k=S[m];if(k.nTable==this||k.nTHead&&k.nTHead.parentNode==this||k.nTFoot&&k.nTFoot.parentNode==this){var D=g.bRetrieve!==n?g.bRetrieve:w.bRetrieve,L=g.bDestroy!==n?g.bDestroy:w.bDestroy;if(r||D)return k.oInstance;if(L){k.oInstance.fnDestroy();break}return void Pt(k,0,"Cannot reinitialise DataTable",3)}if(k.sTableId==this.id){S.splice(m,1);break}}null!==v&&""!==v||(v="DataTables_Table_"+qt.ext._unique++,this.id=v);var C=t.extend(!0,{},qt.models.oSettings,{sDestroyWidth:M[0].style.width,sInstance:v,sTableId:v});C.nTable=this,C.oApi=i.internal,C.oInit=g,S.push(C),C.oInstance=1===i.length?i:M.dataTable(),s(g),o(g.oLanguage),g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=t.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]),g=Ot(t.extend(!0,{},w),g),Et(C.oFeatures,g,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Et(C,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Et(C.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Et(C.oLanguage,g,"fnInfoCallback"),Ht(C,"aoDrawCallback",g.fnDrawCallback,"user"),Ht(C,"aoServerParams",g.fnServerParams,"user"),Ht(C,"aoStateSaveParams",g.fnStateSaveParams,"user"),Ht(C,"aoStateLoadParams",g.fnStateLoadParams,"user"),Ht(C,"aoStateLoaded",g.fnStateLoaded,"user"),Ht(C,"aoRowCallback",g.fnRowCallback,"user"),Ht(C,"aoRowCreatedCallback",g.fnCreatedRow,"user"),Ht(C,"aoHeaderCallback",g.fnHeaderCallback,"user"),Ht(C,"aoFooterCallback",g.fnFooterCallback,"user"),Ht(C,"aoInitComplete",g.fnInitComplete,"user"),Ht(C,"aoPreDrawCallback",g.fnPreDrawCallback,"user"),C.rowIdFn=T(g.rowId),u(C);var I=C.oClasses;if(t.extend(I,qt.ext.classes,g.oClasses),M.addClass(I.sTable),C.iInitDisplayStart===n&&(C.iInitDisplayStart=g.iDisplayStart,C._iDisplayStart=g.iDisplayStart),null!==g.iDeferLoading){C.bDeferLoading=!0;var A=t.isArray(g.iDeferLoading);C._iRecordsDisplay=A?g.iDeferLoading[0]:g.iDeferLoading,C._iRecordsTotal=A?g.iDeferLoading[1]:g.iDeferLoading}var P=C.oLanguage;t.extend(!0,P,g.oLanguage),P.sUrl&&(t.ajax({dataType:"json",url:P.sUrl,success:function(e){o(e),a(w.oLanguage,e),t.extend(!0,P,e),ot(C)},error:function(){ot(C)}}),y=!0),null===g.asStripeClasses&&(C.asStripeClasses=[I.sStripeOdd,I.sStripeEven]);var E=C.asStripeClasses,O=M.children("tbody").find("tr").eq(0);t.inArray(!0,t.map(E,function(t,e){return O.hasClass(t)}))!==-1&&(t("tbody tr",this).removeClass(E.join(" ")),C.asDestroyStripes=E.slice());var R,H=[],z=this.getElementsByTagName("thead");if(0!==z.length&&(W(C.aoHeader,z[0]),H=B(C)),null===g.aoColumns)for(R=[],m=0,p=H.length;m<p;m++)R.push(null);else R=g.aoColumns;for(m=0,p=R.length;m<p;m++)c(C,H?H[m]:null);if(_(C,g.aoColumnDefs,R,function(t,e){d(C,t,e)}),O.length){var Y=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(O[0]).children("th, td").each(function(t,e){var i=C.aoColumns[t];if(i.mData===t){var r=Y(e,"sort")||Y(e,"order"),a=Y(e,"filter")||Y(e,"search");null===r&&null===a||(i.mData={_:t+".display",sort:null!==r?t+".@data-"+r:n,type:null!==r?t+".@data-"+r:n,filter:null!==a?t+".@data-"+a:n},d(C,t))}})}var N=C.oFeatures,F=function(){if(g.aaSorting===n){var e=C.aaSorting;for(m=0,p=e.length;m<p;m++)e[m][1]=C.aoColumns[m].asSorting[0]}Tt(C),N.bSort&&Ht(C,"aoDrawCallback",function(){if(C.bSorted){var e=wt(C),i={};t.each(e,function(t,e){i[e.src]=e.dir}),zt(C,null,"order",[C,e,i]),St(C)}}),Ht(C,"aoDrawCallback",function(){(C.bSorted||"ssp"===Ft(C)||N.bDeferRender)&&Tt(C)},"sc");var i=M.children("caption").each(function(){this._captionSide=t(this).css("caption-side")}),r=M.children("thead");0===r.length&&(r=t("<thead/>").appendTo(M)),C.nTHead=r[0];var a=M.children("tbody");0===a.length&&(a=t("<tbody/>").appendTo(M)),C.nTBody=a[0];var o=M.children("tfoot");if(0===o.length&&i.length>0&&(""!==C.oScroll.sX||""!==C.oScroll.sY)&&(o=t("<tfoot/>").appendTo(M)),0===o.length||0===o.children().length?M.addClass(I.sNoFooter):o.length>0&&(C.nTFoot=o[0],W(C.aoFooter,C.nTFoot)),g.aaData)for(m=0;m<g.aaData.length;m++)b(C,g.aaData[m]);else(C.bDeferLoading||"dom"==Ft(C))&&x(C,t(C.nTBody).children("tr"));C.aiDisplay=C.aiDisplayMaster.slice(),C.bInitialised=!0,y===!1&&ot(C)};g.bStateSave?(N.bStateSave=!0,Ht(C,"aoDrawCallback",Ct,"state_save"),It(C,g,F)):F()}),i=null,this},Xt={},Zt=/[\r\n]/g,Kt=/<.*?>/g,Jt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Qt=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),te=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,ee=function(t){return!t||t===!0||"-"===t},ie=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},ne=function(t,e){return Xt[e]||(Xt[e]=new RegExp(ve(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Xt[e],"."):t},re=function(t,e,i){var n="string"==typeof t;return!!ee(t)||(e&&n&&(t=ne(t,e)),i&&n&&(t=t.replace(te,"")),!isNaN(parseFloat(t))&&isFinite(t))},ae=function(t){return ee(t)||"string"==typeof t},oe=function(t,e,i){if(ee(t))return!0;var n=ae(t);return n?!!re(ce(t),e,i)||null:null},se=function(t,e,i){var r=[],a=0,o=t.length;if(i!==n)for(;a<o;a++)t[a]&&t[a][e]&&r.push(t[a][e][i]);else for(;a<o;a++)t[a]&&r.push(t[a][e]);return r},le=function(t,e,i,r){var a=[],o=0,s=e.length;if(r!==n)for(;o<s;o++)t[e[o]][i]&&a.push(t[e[o]][i][r]);else for(;o<s;o++)a.push(t[e[o]][i]);return a},ue=function(t,e){var i,r=[];e===n?(e=0,i=t):(i=e,e=t);for(var a=e;a<i;a++)r.push(a);return r},he=function(t){for(var e=[],i=0,n=t.length;i<n;i++)t[i]&&e.push(t[i]);return e},ce=function(t){return t.replace(Kt,"")},de=function(t){if(t.length<2)return!0;for(var e=t.slice().sort(),i=e[0],n=1,r=e.length;n<r;n++){if(e[n]===i)return!1;i=e[n]}return!0},pe=function(t){if(de(t))return t.slice();var e,i,n,r=[],a=t.length,o=0;t:for(i=0;i<a;i++){for(e=t[i],n=0;n<o;n++)if(r[n]===e)continue t;r.push(e),o++}return r};qt.util={throttle:function(t,e){var i,r,a=e!==n?e:200;return function(){var e=this,o=+new Date,s=arguments;i&&o<i+a?(clearTimeout(r),r=setTimeout(function(){i=n,t.apply(e,s)},a)):(i=o,t.apply(e,s))}},escapeRegex:function(t){return t.replace(Qt,"\\$1")}};var fe=function(t,e,i){t[e]!==n&&(t[i]=t[e])},ge=/\[.*?\]$/,me=/\(\)$/,ve=qt.util.escapeRegex,ye=t("<div>")[0],_e=ye.textContent!==n,be=/<.*?>/g,xe=qt.util.throttle,we=[],Me=Array.prototype,Se=function(e){var i,n,r=qt.settings,a=t.map(r,function(t,e){return t.nTable});return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?(i=t.inArray(e,a),i!==-1?[r[i]]:null):e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=t(e):e instanceof t&&(n=e),n?n.map(function(e){return i=t.inArray(this,a),i!==-1?r[i]:null}).toArray():void 0):[]};$t=function(e,i){if(!(this instanceof $t))return new $t(e,i);var n=[],r=function(t){var e=Se(t);e&&(n=n.concat(e))};if(t.isArray(e))for(var a=0,o=e.length;a<o;a++)r(e[a]);else r(e);this.context=pe(n),i&&t.merge(this,i),this.selector={rows:null,cols:null,opts:null},$t.extend(this,this,we)},qt.Api=$t,t.extend($t.prototype,{any:function(){return 0!==this.count()},concat:Me.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,i=this.length;e<i;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new $t(e[t],this[t]):null},filter:function(t){var e=[];if(Me.filter)e=Me.filter.call(this,t,this);else for(var i=0,n=this.length;i<n;i++)t.call(this,this[i],i,this)&&e.push(this[i]);return new $t(this.context,e)},flatten:function(){var t=[];return new $t(this.context,t.concat.apply(t,this.toArray()))},join:Me.join,indexOf:Me.indexOf||function(t,e){for(var i=e||0,n=this.length;i<n;i++)if(this[i]===t)return i;return-1},iterator:function(t,e,i,r){var a,o,s,l,u,h,c,d,p=[],f=this.context,g=this.selector;for("string"==typeof t&&(r=i,i=e,e=t,t=!1),o=0,s=f.length;o<s;o++){var m=new $t(f[o]);if("table"===e)a=i.call(m,f[o],o),a!==n&&p.push(a);else if("columns"===e||"rows"===e)a=i.call(m,f[o],this[o],o),a!==n&&p.push(a);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(c=this[o],"column-rows"===e&&(h=Ie(f[o],g.opts)),l=0,u=c.length;l<u;l++)d=c[l],a="cell"===e?i.call(m,f[o],d.row,d.column,o,l):i.call(m,f[o],d,o,l,h),a!==n&&p.push(a)}if(p.length||r){var v=new $t(f,t?p.concat.apply([],p):p),y=v.selector;return y.rows=g.rows,y.cols=g.cols,y.opts=g.opts,v}return this},lastIndexOf:Me.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(Me.map)e=Me.map.call(this,t,this);else for(var i=0,n=this.length;i<n;i++)e.push(t.call(this,this[i],i));return new $t(this.context,e)},pluck:function(t){return this.map(function(e){return e[t]})},pop:Me.pop,push:Me.push,reduce:Me.reduce||function(t,e){return h(this,t,e,0,this.length,1)},reduceRight:Me.reduceRight||function(t,e){return h(this,t,e,this.length-1,-1,-1)},reverse:Me.reverse,selector:null,shift:Me.shift,slice:function(){return new $t(this.context,this)},sort:Me.sort,splice:Me.splice,toArray:function(){return Me.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new $t(this.context,pe(this))},unshift:Me.unshift}),$t.extend=function(e,i,n){if(n.length&&i&&(i instanceof $t||i.__dt_wrapper)){var r,a,o,s=function(t,e,i){return function(){var n=e.apply(t,arguments);return $t.extend(n,n,i.methodExt),n}};for(r=0,a=n.length;r<a;r++)o=n[r],i[o.name]="function"==typeof o.val?s(e,o.val,o):t.isPlainObject(o.val)?{}:o.val,i[o.name].__dt_wrapper=!0,$t.extend(e,i[o.name],o.propExt)}},$t.register=Gt=function(e,i){if(t.isArray(e))for(var n=0,r=e.length;n<r;n++)$t.register(e[n],i);else{var a,o,s,l,u=e.split("."),h=we,c=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i].name===e)return t[i];return null};for(a=0,o=u.length;a<o;a++){l=u[a].indexOf("()")!==-1,s=l?u[a].replace("()",""):u[a];var d=c(h,s);d||(d={name:s,val:{},methodExt:[],propExt:[]},h.push(d)),a===o-1?d.val=i:h=l?d.methodExt:d.propExt}}},$t.registerPlural=Ut=function(e,i,r){$t.register(e,r),$t.register(i,function(){var e=r.apply(this,arguments);return e===this?this:e instanceof $t?e.length?t.isArray(e[0])?new $t(e.context,e[0]):e[0]:n:e})};var ke=function(e,i){if("number"==typeof e)return[i[e]];var n=t.map(i,function(t,e){return t.nTable});return t(n).filter(e).map(function(e){var r=t.inArray(this,n);return i[r]}).toArray()};Gt("tables()",function(t){return t?new $t(ke(t,this.context)):this}),Gt("table()",function(t){var e=this.tables(t),i=e.context;return i.length?new $t(i[0]):e}),Ut("tables().nodes()","table().node()",function(){return this.iterator("table",function(t){return t.nTable},1)}),Ut("tables().body()","table().body()",function(){return this.iterator("table",function(t){return t.nTBody},1)}),Ut("tables().header()","table().header()",function(){return this.iterator("table",function(t){return t.nTHead},1)}),Ut("tables().footer()","table().footer()",function(){return this.iterator("table",function(t){return t.nTFoot},1)}),Ut("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),Gt("draw()",function(t){return this.iterator("table",function(e){"page"===t?Y(e):("string"==typeof t&&(t="full-hold"!==t),N(e,t===!1))})}),Gt("page()",function(t){return t===n?this.page.info().page:this.iterator("table",function(e){ct(e,t)})}),Gt("page.info()",function(t){if(0===this.context.length)return n;var e=this.context[0],i=e._iDisplayStart,r=e.oFeatures.bPaginate?e._iDisplayLength:-1,a=e.fnRecordsDisplay(),o=r===-1;return{page:o?0:Math.floor(i/r),pages:o?1:Math.ceil(a/r),start:i,end:e.fnDisplayEnd(),length:r,recordsTotal:e.fnRecordsTotal(),recordsDisplay:a,serverSide:"ssp"===Ft(e)}}),Gt("page.len()",function(t){return t===n?0!==this.context.length?this.context[0]._iDisplayLength:n:this.iterator("table",function(e){lt(e,t)})});var De=function(t,e,i){if(i){var n=new $t(t);n.one("draw",function(){i(n.ajax.json())})}if("ssp"==Ft(t))N(t,e);else{pt(t,!0);var r=t.jqXHR;r&&4!==r.readyState&&r.abort(),j(t,[],function(i){I(t);for(var n=U(t,i),r=0,a=n.length;r<a;r++)b(t,n[r]);N(t,e),pt(t,!1)})}};Gt("ajax.json()",function(){var t=this.context;if(t.length>0)return t[0].json}),Gt("ajax.params()",function(){var t=this.context;if(t.length>0)return t[0].oAjaxData}),Gt("ajax.reload()",function(t,e){return this.iterator("table",function(i){De(i,e===!1,t)})}),Gt("ajax.url()",function(e){var i=this.context;return e===n?0===i.length?n:(i=i[0],i.ajax?t.isPlainObject(i.ajax)?i.ajax.url:i.ajax:i.sAjaxSource):this.iterator("table",function(i){t.isPlainObject(i.ajax)?i.ajax.url=e:i.ajax=e})}),Gt("ajax.url().load()",function(t,e){return this.iterator("table",function(i){De(i,e===!1,t)})});var Te=function(e,i,r,a,o){var s,l,u,h,c,d,p=[],f=typeof i;for(i&&"string"!==f&&"function"!==f&&i.length!==n||(i=[i]),u=0,h=i.length;u<h;u++)for(l=i[u]&&i[u].split&&!i[u].match(/[\[\(:]/)?i[u].split(","):[i[u]],c=0,d=l.length;c<d;c++)s=r("string"==typeof l[c]?t.trim(l[c]):l[c]),s&&s.length&&(p=p.concat(s));var g=Vt.selector[e];if(g.length)for(u=0,h=g.length;u<h;u++)p=g[u](a,o,p);return pe(p)},Le=function(e){return e||(e={}),e.filter&&e.search===n&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},Ce=function(t){for(var e=0,i=t.length;e<i;e++)if(t[e].length>0)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},Ie=function(e,i){var n,r,a,o=[],s=e.aiDisplay,l=e.aiDisplayMaster,u=i.search,h=i.order,c=i.page;if("ssp"==Ft(e))return"removed"===u?[]:ue(0,l.length);if("current"==c)for(n=e._iDisplayStart,r=e.fnDisplayEnd();n<r;n++)o.push(s[n]);else if("current"==h||"applied"==h){if("none"==u)o=l.slice();else if("applied"==u)o=s.slice();else if("removed"==u){for(var d={},n=0,r=s.length;n<r;n++)d[s[n]]=null;o=t.map(l,function(t){return d.hasOwnProperty(t)?null:t})}}else if("index"==h||"original"==h)for(n=0,r=e.aoData.length;n<r;n++)"none"==u?o.push(n):(a=t.inArray(n,s),(a===-1&&"removed"==u||a>=0&&"applied"==u)&&o.push(n));return o},Ae=function(e,i,r){var a,o=function(i){var o=ie(i),s=e.aoData;if(null!==o&&!r)return[o];if(a||(a=Ie(e,r)),null!==o&&t.inArray(o,a)!==-1)return[o];if(null===i||i===n||""===i)return a;if("function"==typeof i)return t.map(a,function(t){var e=s[t];return i(t,e._aData,e.nTr)?t:null});if(i.nodeName){var l=i._DT_RowIndex,u=i._DT_CellIndex;if(l!==n)return s[l]&&s[l].nTr===i?[l]:[];if(u)return s[u.row]&&s[u.row].nTr===i?[u.row]:[];var h=t(i).closest("*[data-dt-row]");return h.length?[h.data("dt-row")]:[]}if("string"==typeof i&&"#"===i.charAt(0)){var c=e.aIds[i.replace(/^#/,"")];if(c!==n)return[c.idx]}var d=he(le(e.aoData,a,"nTr"));return t(d).filter(i).map(function(){return this._DT_RowIndex}).toArray()};return Te("row",i,o,e,r)};Gt("rows()",function(e,i){e===n?e="":t.isPlainObject(e)&&(i=e,e=""),i=Le(i);var r=this.iterator("table",function(t){return Ae(t,e,i)},1);return r.selector.rows=e,r.selector.opts=i,r}),Gt("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||n},1)}),Gt("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return le(t.aoData,e,"_aData")},1)}),Ut("rows().cache()","row().cache()",function(t){return this.iterator("row",function(e,i){var n=e.aoData[i];return"search"===t?n._aFilterData:n._aSortData},1)}),Ut("rows().invalidate()","row().invalidate()",function(t){return this.iterator("row",function(e,i){P(e,i,t)})}),Ut("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),Ut("rows().ids()","row().id()",function(t){for(var e=[],i=this.context,n=0,r=i.length;n<r;n++)for(var a=0,o=this[n].length;a<o;a++){var s=i[n].rowIdFn(i[n].aoData[this[n][a]]._aData);e.push((t===!0?"#":"")+s)}return new $t(i,e)}),Ut("rows().remove()","row().remove()",function(){var t=this;return this.iterator("row",function(e,i,r){var a,o,s,l,u,h,c=e.aoData,d=c[i];for(c.splice(i,1),a=0,o=c.length;a<o;a++)if(u=c[a],h=u.anCells,null!==u.nTr&&(u.nTr._DT_RowIndex=a),null!==h)for(s=0,l=h.length;s<l;s++)h[s]._DT_CellIndex.row=a;A(e.aiDisplayMaster,i),A(e.aiDisplay,i),A(t[r],i,!1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,Yt(e);var p=e.rowIdFn(d._aData);p!==n&&delete e.aIds[p]}),this.iterator("table",function(t){for(var e=0,i=t.aoData.length;e<i;e++)t.aoData[e].idx=e}),this}),Gt("rows.add()",function(e){var i=this.iterator("table",function(t){var i,n,r,a=[];for(n=0,r=e.length;n<r;n++)i=e[n],i.nodeName&&"TR"===i.nodeName.toUpperCase()?a.push(x(t,i)[0]):a.push(b(t,i));return a},1),n=this.rows(-1);return n.pop(),t.merge(n,i),n}),Gt("row()",function(t,e){return Ce(this.rows(t,e))}),Gt("row().data()",function(e){var i=this.context;if(e===n)return i.length&&this.length?i[0].aoData[this[0]]._aData:n;var r=i[0].aoData[this[0]];return r._aData=e,t.isArray(e)&&r.nTr.id&&L(i[0].rowId)(e,r.nTr.id),P(i[0],this[0],"data"),this}),Gt("row().node()",function(){var t=this.context;return t.length&&this.length?t[0].aoData[this[0]].nTr||null:null}),Gt("row.add()",function(e){e instanceof t&&e.length&&(e=e[0]);var i=this.iterator("table",function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?x(t,e)[0]:b(t,e)});return this.row(i[0])});var Pe=function(e,i,n,r){var a=[],o=function(i,n){if(t.isArray(i)||i instanceof t)for(var r=0,s=i.length;r<s;r++)o(i[r],n);else if(i.nodeName&&"tr"===i.nodeName.toLowerCase())a.push(i);else{var l=t("<tr><td/></tr>").addClass(n);t("td",l).addClass(n).html(i)[0].colSpan=m(e),a.push(l[0])}};o(n,r),i._details&&i._details.detach(),i._details=t(a),i._detailsShow&&i._details.insertAfter(i.nTr)},Ee=function(t,e){var i=t.context;if(i.length){var r=i[0].aoData[e!==n?e:t[0]];r&&r._details&&(r._details.remove(),r._detailsShow=n,r._details=n)}},Oe=function(t,e){var i=t.context;if(i.length&&t.length){var n=i[0].aoData[t[0]];n._details&&(n._detailsShow=e,e?n._details.insertAfter(n.nTr):n._details.detach(),Re(i[0]))}},Re=function(t){var e=new $t(t),i=".dt.DT_details",n="draw"+i,r="column-visibility"+i,a="destroy"+i,o=t.aoData;e.off(n+" "+r+" "+a),se(o,"_details").length>0&&(e.on(n,function(i,n){t===n&&e.rows({page:"current"}).eq(0).each(function(t){var e=o[t];e._detailsShow&&e._details.insertAfter(e.nTr)})}),e.on(r,function(e,i,n,r){if(t===i)for(var a,s=m(i),l=0,u=o.length;l<u;l++)a=o[l],a._details&&a._details.children("td[colspan]").attr("colspan",s)}),e.on(a,function(i,n){if(t===n)for(var r=0,a=o.length;r<a;r++)o[r]._details&&Ee(e,r)}))},He="",ze=He+"row().child",Ye=ze+"()";Gt(Ye,function(t,e){var i=this.context;return t===n?i.length&&this.length?i[0].aoData[this[0]]._details:n:(t===!0?this.child.show():t===!1?Ee(this):i.length&&this.length&&Pe(i[0],i[0].aoData[this[0]],t,e),this)}),Gt([ze+".show()",Ye+".show()"],function(t){return Oe(this,!0),this}),Gt([ze+".hide()",Ye+".hide()"],function(){return Oe(this,!1),this}),Gt([ze+".remove()",Ye+".remove()"],function(){return Ee(this),this}),Gt(ze+".isShown()",function(){var t=this.context;return!(!t.length||!this.length)&&(t[0].aoData[this[0]]._detailsShow||!1)});var Ne=/^([^:]+):(name|visIdx|visible)$/,Fe=function(t,e,i,n,r){for(var a=[],o=0,s=r.length;o<s;o++)a.push(S(t,r[o],e));return a},We=function(e,i,n){var r=e.aoColumns,a=se(r,"sName"),o=se(r,"nTh"),s=function(i){var s=ie(i);if(""===i)return ue(r.length);if(null!==s)return[s>=0?s:r.length+s];if("function"==typeof i){var l=Ie(e,n);return t.map(r,function(t,n){return i(n,Fe(e,n,0,0,l),o[n])?n:null})}var u="string"==typeof i?i.match(Ne):"";if(u)switch(u[2]){case"visIdx":case"visible":var h=parseInt(u[1],10);if(h<0){var c=t.map(r,function(t,e){return t.bVisible?e:null});return[c[c.length+h]]}return[f(e,h)];case"name":return t.map(a,function(t,e){return t===u[1]?e:null});default:return[]}if(i.nodeName&&i._DT_CellIndex)return[i._DT_CellIndex.column];var d=t(o).filter(i).map(function(){return t.inArray(this,o)}).toArray();if(d.length||!i.nodeName)return d;var p=t(i).closest("*[data-dt-column]");return p.length?[p.data("dt-column")]:[]};return Te("column",i,s,e,n)},Be=function(e,i,r){var a,o,s,l,u=e.aoColumns,h=u[i],c=e.aoData;if(r===n)return h.bVisible;if(h.bVisible!==r){if(r){var d=t.inArray(!0,se(u,"bVisible"),i+1);for(o=0,s=c.length;o<s;o++)l=c[o].nTr,a=c[o].anCells,l&&l.insertBefore(a[i],a[d]||null)}else t(se(e.aoData,"anCells",i)).detach();h.bVisible=r,z(e,e.aoHeader),z(e,e.aoFooter),e.aiDisplay.length||t(e.nTBody).find("td[colspan]").attr("colspan",m(e)),Ct(e)}};Gt("columns()",function(e,i){e===n?e="":t.isPlainObject(e)&&(i=e,e=""),i=Le(i);var r=this.iterator("table",function(t){return We(t,e,i)},1);return r.selector.cols=e,r.selector.opts=i,r}),Ut("columns().header()","column().header()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTh},1)}),Ut("columns().footer()","column().footer()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTf},1)}),Ut("columns().data()","column().data()",function(){return this.iterator("column-rows",Fe,1)}),Ut("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),Ut("columns().cache()","column().cache()",function(t){return this.iterator("column-rows",function(e,i,n,r,a){return le(e.aoData,a,"search"===t?"_aFilterData":"_aSortData",i)},1)}),Ut("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,i,n,r){return le(t.aoData,r,"anCells",e)},1)}),Ut("columns().visible()","column().visible()",function(t,e){var i=this.iterator("column",function(e,i){return t===n?e.aoColumns[i].bVisible:void Be(e,i,t)});return t!==n&&(this.iterator("column",function(i,n){zt(i,null,"column-visibility",[i,n,t,e])}),(e===n||e)&&this.columns.adjust()),i}),Ut("columns().indexes()","column().index()",function(t){return this.iterator("column",function(e,i){return"visible"===t?g(e,i):i},1)}),Gt("columns.adjust()",function(){return this.iterator("table",function(t){p(t)},1)}),Gt("column.index()",function(t,e){if(0!==this.context.length){var i=this.context[0];if("fromVisible"===t||"toData"===t)return f(i,e);if("fromData"===t||"toVisible"===t)return g(i,e)}}),Gt("column()",function(t,e){return Ce(this.columns(t,e))});var je=function(e,i,r){var a,o,s,l,u,h,c,d=e.aoData,p=Ie(e,r),f=he(le(d,p,"anCells")),g=t([].concat.apply([],f)),m=e.aoColumns.length,v=function(i){var r="function"==typeof i;if(null===i||i===n||r){for(o=[],s=0,l=p.length;s<l;s++)for(a=p[s],u=0;u<m;u++)h={row:a,column:u},r?(c=d[a],i(h,S(e,a,u),c.anCells?c.anCells[u]:null)&&o.push(h)):o.push(h);return o}if(t.isPlainObject(i))return i.column!==n&&i.row!==n&&t.inArray(i.row,p)!==-1?[i]:[];var f=g.filter(i).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray();return f.length||!i.nodeName?f:(c=t(i).closest("*[data-dt-row]"),c.length?[{row:c.data("dt-row"),column:c.data("dt-column")}]:[])};return Te("cell",i,v,e,r)};Gt("cells()",function(e,i,r){if(t.isPlainObject(e)&&(e.row===n?(r=e,e=null):(r=i,i=null)),t.isPlainObject(i)&&(r=i,i=null),null===i||i===n)return this.iterator("table",function(t){return je(t,e,Le(r))});var a,o,s,l,u,h=this.columns(i),c=this.rows(e);this.iterator("table",function(t,e){for(a=[],o=0,s=c[e].length;o<s;o++)for(l=0,u=h[e].length;l<u;l++)a.push({row:c[e][o],column:h[e][l]})},1);var d=this.cells(a,r);return t.extend(d.selector,{cols:i,rows:e,opts:r}),d}),Ut("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,i){var r=t.aoData[e];return r&&r.anCells?r.anCells[i]:n},1)}),Gt("cells().data()",function(){return this.iterator("cell",function(t,e,i){return S(t,e,i)},1)}),Ut("cells().cache()","cell().cache()",function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",function(e,i,n){return e.aoData[i][t][n]},1)}),Ut("cells().render()","cell().render()",function(t){return this.iterator("cell",function(e,i,n){return S(e,i,n,t)},1)}),Ut("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,i){return{row:e,column:i,columnVisible:g(t,i)}},1)}),Ut("cells().invalidate()","cell().invalidate()",function(t){return this.iterator("cell",function(e,i,n){P(e,i,t,n)})}),Gt("cell()",function(t,e,i){return Ce(this.cells(t,e,i))}),Gt("cell().data()",function(t){var e=this.context,i=this[0];return t===n?e.length&&i.length?S(e[0],i[0].row,i[0].column):n:(k(e[0],i[0].row,i[0].column,t),P(e[0],i[0].row,"data",i[0].column),this)}),Gt("order()",function(e,i){var r=this.context;return e===n?0!==r.length?r[0].aaSorting:n:("number"==typeof e?e=[[e,i]]:e.length&&!t.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",function(t){t.aaSorting=e.slice()}))}),Gt("order.listener()",function(t,e,i){return this.iterator("table",function(n){Dt(n,t,e,i)})}),Gt("order.fixed()",function(e){if(!e){var i=this.context,r=i.length?i[0].aaSortingFixed:n;return t.isArray(r)?{pre:r}:r}return this.iterator("table",function(i){i.aaSortingFixed=t.extend(!0,{},e)})}),Gt(["columns().order()","column().order()"],function(e){var i=this;return this.iterator("table",function(n,r){var a=[];t.each(i[r],function(t,i){a.push([i,e])}),n.aaSorting=a})}),Gt("search()",function(e,i,r,a){var o=this.context;return e===n?0!==o.length?o[0].oPreviousSearch.sSearch:n:this.iterator("table",function(n){n.oFeatures.bFilter&&X(n,t.extend({},n.oPreviousSearch,{sSearch:e+"",bRegex:null!==i&&i,bSmart:null===r||r,bCaseInsensitive:null===a||a}),1)})}),Ut("columns().search()","column().search()",function(e,i,r,a){return this.iterator("column",function(o,s){var l=o.aoPreSearchCols;return e===n?l[s].sSearch:void(o.oFeatures.bFilter&&(t.extend(l[s],{sSearch:e+"",bRegex:null!==i&&i,bSmart:null===r||r,bCaseInsensitive:null===a||a}),X(o,o.oPreviousSearch,1)))})}),Gt("state()",function(){return this.context.length?this.context[0].oSavedState:null}),Gt("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),Gt("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),Gt("state.save()",function(){return this.iterator("table",function(t){Ct(t)})}),qt.versionCheck=qt.fnVersionCheck=function(t){for(var e,i,n=qt.version.split("."),r=t.split("."),a=0,o=r.length;a<o;a++)if(e=parseInt(n[a],10)||0,i=parseInt(r[a],10)||0,e!==i)return e>i;return!0},qt.isDataTable=qt.fnIsDataTable=function(e){var i=t(e).get(0),n=!1;return e instanceof qt.Api||(t.each(qt.settings,function(e,r){var a=r.nScrollHead?t("table",r.nScrollHead)[0]:null,o=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==i&&a!==i&&o!==i||(n=!0)}),n)},qt.tables=qt.fnTables=function(e){var i=!1;t.isPlainObject(e)&&(i=e.api,e=e.visible);var n=t.map(qt.settings,function(i){if(!e||e&&t(i.nTable).is(":visible"))return i.nTable});return i?new $t(n):n},qt.camelToHungarian=a,Gt("$()",function(e,i){var n=this.rows(i).nodes(),r=t(n);return t([].concat(r.filter(e).toArray(),r.find(e).toArray()))}),t.each(["on","one","off"],function(e,i){Gt(i+"()",function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),function(t){return t.match(/\.dt\b/)?t:t+".dt"}).join(" ");var n=t(this.tables().nodes());return n[i].apply(n,e),this})}),Gt("clear()",function(){return this.iterator("table",function(t){I(t)})}),Gt("settings()",function(){return new $t(this.context,this.context)}),Gt("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),Gt("data()",function(){return this.iterator("table",function(t){return se(t.aoData,"_aData")}).flatten()}),Gt("destroy()",function(i){return i=i||!1,this.iterator("table",function(n){var r,a=n.nTableWrapper.parentNode,o=n.oClasses,s=n.nTable,l=n.nTBody,u=n.nTHead,h=n.nTFoot,c=t(s),d=t(l),p=t(n.nTableWrapper),f=t.map(n.aoData,function(t){return t.nTr});n.bDestroying=!0,zt(n,"aoDestroyCallback","destroy",[n]),i||new $t(n).columns().visible(!0),p.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+n.sInstance),s!=u.parentNode&&(c.children("thead").detach(),c.append(u)),h&&s!=h.parentNode&&(c.children("tfoot").detach(),c.append(h)),n.aaSorting=[],n.aaSortingFixed=[],Tt(n),t(f).removeClass(n.asStripeClasses.join(" ")),t("th, td",u).removeClass(o.sSortable+" "+o.sSortableAsc+" "+o.sSortableDesc+" "+o.sSortableNone),d.children().detach(),d.append(f);var g=i?"remove":"detach";c[g](),p[g](),!i&&a&&(a.insertBefore(s,n.nTableReinsertBefore),c.css("width",n.sDestroyWidth).removeClass(o.sTable),r=n.asDestroyStripes.length,r&&d.children().each(function(e){t(this).addClass(n.asDestroyStripes[e%r])}));var m=t.inArray(n,qt.settings);m!==-1&&qt.settings.splice(m,1)})}),t.each(["column","row","cell"],function(t,e){Gt(e+"s().every()",function(t){var i=this.selector.opts,r=this;return this.iterator(e,function(a,o,s,l,u){t.call(r[e](o,"cell"===e?s:i,"cell"===e?i:n),o,s,l,u)})})}),Gt("i18n()",function(e,i,r){var a=this.context[0],o=T(e)(a.oLanguage);return o===n&&(o=i),r!==n&&t.isPlainObject(o)&&(o=o[r]!==n?o[r]:o._),o.replace("%d",r)}),qt.version="1.10.19",qt.settings=[],qt.models={},qt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},qt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},qt.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},qt.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands); },fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((t.iStateDuration===-1?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(t.iStateDuration===-1?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(i){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:t.extend({},qt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(qt.defaults),qt.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},r(qt.defaults.column),qt.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:n,oAjaxData:n,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Ft(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Ft(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,i=e+t,n=this.aiDisplay.length,r=this.oFeatures,a=r.bPaginate;return r.bServerSide?a===!1||t===-1?e+n:Math.min(e+t,this._iRecordsDisplay):!a||i>n||t===-1?n:i},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},qt.ext=Vt={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:qt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:qt.version},t.extend(Vt,{afnFiltering:Vt.search,aTypes:Vt.type.detect,ofnSearch:Vt.type.search,oSort:Vt.type.order,afnSortData:Vt.order,aoFeatures:Vt.feature,oApi:Vt.internal,oStdClasses:Vt.classes,oPagination:Vt.pager}),t.extend(qt.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ve=qt.ext.pager;t.extend(Ve,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Wt(t,e)]},simple_numbers:function(t,e){return["previous",Wt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Wt(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Wt(t,e),"last"]},_numbers:Wt,numbers_length:7}),t.extend(!0,qt.ext.renderer,{pageButton:{_:function(e,r,a,o,s,l){var u,h,c,d=e.oClasses,p=e.oLanguage.oPaginate,f=e.oLanguage.oAria.paginate||{},g=0,m=function(i,n){var r,o,c,v,y=function(t){ct(e,t.data.action,!0)};for(r=0,o=n.length;r<o;r++)if(v=n[r],t.isArray(v)){var _=t("<"+(v.DT_el||"div")+"/>").appendTo(i);m(_,v)}else{switch(u=null,h="",v){case"ellipsis":i.append('<span class="ellipsis">…</span>');break;case"first":u=p.sFirst,h=v+(s>0?"":" "+d.sPageButtonDisabled);break;case"previous":u=p.sPrevious,h=v+(s>0?"":" "+d.sPageButtonDisabled);break;case"next":u=p.sNext,h=v+(s<l-1?"":" "+d.sPageButtonDisabled);break;case"last":u=p.sLast,h=v+(s<l-1?"":" "+d.sPageButtonDisabled);break;default:u=v+1,h=s===v?d.sPageButtonActive:""}null!==u&&(c=t("<a>",{"class":d.sPageButton+" "+h,"aria-controls":e.sTableId,"aria-label":f[v],"data-dt-idx":g,tabindex:e.iTabIndex,id:0===a&&"string"==typeof v?e.sTableId+"_"+v:null}).html(u).appendTo(i),Rt(c,{action:v},y),g++)}};try{c=t(r).find(i.activeElement).data("dt-idx")}catch(v){}m(t(r).empty(),o),c!==n&&t(r).find("[data-dt-idx="+c+"]").focus()}}}),t.extend(qt.ext.type.detect,[function(t,e){var i=e.oLanguage.sDecimal;return re(t,i)?"num"+i:null},function(t,e){if(t&&!(t instanceof Date)&&!Jt.test(t))return null;var i=Date.parse(t);return null!==i&&!isNaN(i)||ee(t)?"date":null},function(t,e){var i=e.oLanguage.sDecimal;return re(t,i,!0)?"num-fmt"+i:null},function(t,e){var i=e.oLanguage.sDecimal;return oe(t,i)?"html-num"+i:null},function(t,e){var i=e.oLanguage.sDecimal;return oe(t,i,!0)?"html-num-fmt"+i:null},function(t,e){return ee(t)||"string"==typeof t&&t.indexOf("<")!==-1?"html":null}]),t.extend(qt.ext.type.search,{html:function(t){return ee(t)?t:"string"==typeof t?t.replace(Zt," ").replace(Kt,""):""},string:function(t){return ee(t)?t:"string"==typeof t?t.replace(Zt," "):t}});var $e=function(t,e,i,n){return 0===t||t&&"-"!==t?(e&&(t=ne(t,e)),t.replace&&(i&&(t=t.replace(i,"")),n&&(t=t.replace(n,""))),1*t):-(1/0)};t.extend(Vt.type.order,{"date-pre":function(t){var e=Date.parse(t);return isNaN(e)?-(1/0):e},"html-pre":function(t){return ee(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return ee(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),Bt(""),t.extend(!0,qt.ext.renderer,{header:{_:function(e,i,n,r){t(e.nTable).on("order.dt.DT",function(t,a,o,s){if(e===a){var l=n.idx;i.removeClass(n.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[l]?r.sSortAsc:"desc"==s[l]?r.sSortDesc:n.sSortingClass)}})},jqueryui:function(e,i,n,r){t("<div/>").addClass(r.sSortJUIWrapper).append(i.contents()).append(t("<span/>").addClass(r.sSortIcon+" "+n.sSortingClassJUI)).appendTo(i),t(e.nTable).on("order.dt.DT",function(t,a,o,s){if(e===a){var l=n.idx;i.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[l]?r.sSortAsc:"desc"==s[l]?r.sSortDesc:n.sSortingClass),i.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==s[l]?r.sSortJUIAsc:"desc"==s[l]?r.sSortJUIDesc:n.sSortingClassJUI)}})}}});var Ge=function(t){return"string"==typeof t?t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t};return qt.render={number:function(t,e,i,n,r){return{display:function(a){if("number"!=typeof a&&"string"!=typeof a)return a;var o=a<0?"-":"",s=parseFloat(a);if(isNaN(s))return Ge(a);s=s.toFixed(i),a=Math.abs(s);var l=parseInt(a,10),u=i?e+(a-l).toFixed(i).substring(2):"";return o+(n||"")+l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+u+(r||"")}}},text:function(){return{display:Ge,filter:Ge}}},t.extend(qt.ext.internal,{_fnExternApiFunc:jt,_fnBuildAjax:j,_fnAjaxUpdate:V,_fnAjaxParameters:$,_fnAjaxUpdateDraw:G,_fnAjaxDataSrc:U,_fnAddColumn:c,_fnColumnOptions:d,_fnAdjustColumnSizing:p,_fnVisibleToColumnIndex:f,_fnColumnIndexToVisible:g,_fnVisbleColumns:m,_fnGetColumns:v,_fnColumnTypes:y,_fnApplyColumnDefs:_,_fnHungarianMap:r,_fnCamelToHungarian:a,_fnLanguageCompat:o,_fnBrowserDetect:u,_fnAddData:b,_fnAddTr:x,_fnNodeToDataIndex:w,_fnNodeToColumnIndex:M,_fnGetCellData:S,_fnSetCellData:k,_fnSplitObjNotation:D,_fnGetObjectDataFn:T,_fnSetObjectDataFn:L,_fnGetDataMaster:C,_fnClearTable:I,_fnDeleteIndex:A,_fnInvalidate:P,_fnGetRowElements:E,_fnCreateTr:O,_fnBuildHead:H,_fnDrawHead:z,_fnDraw:Y,_fnReDraw:N,_fnAddOptionsHtml:F,_fnDetectHeader:W,_fnGetUniqueThs:B,_fnFeatureHtmlFilter:q,_fnFilterComplete:X,_fnFilterCustom:Z,_fnFilterColumn:K,_fnFilter:J,_fnFilterCreateSearch:Q,_fnEscapeRegex:ve,_fnFilterData:tt,_fnFeatureHtmlInfo:nt,_fnUpdateInfo:rt,_fnInfoMacros:at,_fnInitialise:ot,_fnInitComplete:st,_fnLengthChange:lt,_fnFeatureHtmlLength:ut,_fnFeatureHtmlPaginate:ht,_fnPageChange:ct,_fnFeatureHtmlProcessing:dt,_fnProcessingDisplay:pt,_fnFeatureHtmlTable:ft,_fnScrollDraw:gt,_fnApplyToChildren:mt,_fnCalculateColumnWidths:vt,_fnThrottle:xe,_fnConvertToWidth:yt,_fnGetWidestNode:_t,_fnGetMaxLenString:bt,_fnStringToCss:xt,_fnSortFlatten:wt,_fnSort:Mt,_fnSortAria:St,_fnSortListener:kt,_fnSortAttachListener:Dt,_fnSortingClasses:Tt,_fnSortData:Lt,_fnSaveState:Ct,_fnLoadState:It,_fnSettingsFromNode:At,_fnLog:Pt,_fnMap:Et,_fnBindAction:Rt,_fnCallbackReg:Ht,_fnCallbackFire:zt,_fnLengthOverflow:Yt,_fnRenderer:Nt,_fnDataSource:Ft,_fnRowAttributes:R,_fnExtend:Ot,_fnCalculateEnd:function(){}}),t.fn.dataTable=qt,qt.$=t,t.fn.dataTableSettings=qt.settings,t.fn.dataTableExt=qt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(qt,function(e,i){t.fn.DataTable[e]=i}),t.fn.dataTable})},function(t,e,i){function n(t,e){return'<div style="font-size:13px; text-align:center; padding:2px; color: #fff; font-weight: 600;">'+t+"<br>"+Math.round(e.percent)+"%</div>"}i(753),$(function(){function t(){for(i.length>0&&(i=i.slice(1));i.length<r;){var t=i.length>0?i[i.length-1]:50,e=t+10*Math.random()-5;e<0?e=0:e>100&&(e=100),i.push(e)}for(var n=[],a=0;a<i.length;++a)n.push([a,i[a]]);return n}function e(){a.setData([t()]),a.draw(),"on"===s&&setTimeout(e,o)}var i=[],r=100,a=$.plot("#interactive",[t()],{grid:{borderColor:"#f3f3f3",borderWidth:0,tickColor:"#f3f3f3"},series:{shadowSize:0,color:"rgba(54, 162, 235, 0.5)"},lines:{fill:!0,color:"#3c8dbc"},yaxis:{min:0,max:100,show:!1},xaxis:{show:!0}}),o=500,s="on";"on"===s&&e(),$("#realtime .btn").click(function(){s="on"===$(this).data("toggle")?"on":"off",e()});for(var l=[],u=[],h=0;h<14;h+=.5)l.push([h,Math.sin(h)]),u.push([h,Math.cos(h)]);var c={data:l,color:"#3c8dbc"},d={data:u,color:"#00c0ef"};$.plot("#line-chart",[c,d],{grid:{hoverable:!0,borderColor:"#f3f3f3",borderWidth:1,tickColor:"#f3f3f3"},series:{shadowSize:0,lines:{show:!0},points:{show:!0}},lines:{fill:!1,color:["#3c8dbc","#f56954"]},yaxis:{show:!0},xaxis:{show:!0}}),$('<div class="tooltip-inner" id="line-chart-tooltip"></div>').css({position:"absolute",display:"none",opacity:.8}).appendTo("body"),$("#line-chart").bind("plothover",function(t,e,i){if(i){var n=i.datapoint[0].toFixed(2),r=i.datapoint[1].toFixed(2);$("#line-chart-tooltip").html(i.series.label+" of "+n+" = "+r).css({top:i.pageY+5,left:i.pageX+5}).fadeIn(200)}else $("#line-chart-tooltip").hide()});var p=[[2,88],[3,93.3],[4,102],[5,108.5],[6,115.7],[7,115.6],[8,124.6],[9,130.3],[10,134.3],[11,141.4],[12,146.5],[13,151.7],[14,159.9],[15,165.4],[16,167.8],[17,168.7],[18,169.5],[19,168]];$.plot("#area-chart",[p],{grid:{borderWidth:0},series:{shadowSize:0,color:"#00c0ef"},lines:{fill:!0},yaxis:{show:!1},xaxis:{show:!1}});var f={data:[["January",10],["February",8],["March",4],["April",13],["May",17],["June",9]],color:"#3c8dbc"};$.plot("#bar-chart",[f],{grid:{borderWidth:1,borderColor:"#f3f3f3",tickColor:"#f3f3f3"},series:{bars:{show:!0,barWidth:.5,align:"center"}},xaxis:{mode:"categories",tickLength:0}});var g=[{label:"Series2",data:30,color:"#3c8dbc"},{label:"Series3",data:20,color:"#0073b7"},{label:"Series4",data:50,color:"#00c0ef"}];$.plot("#donut-chart",g,{series:{pie:{show:!0,radius:1,innerRadius:.5,label:{show:!0,radius:2/3,formatter:n,threshold:.1}}},legend:{show:!1}})})},function(t,e){!function(t){t.color={},t.color.make=function(e,i,n,r){var a={};return a.r=e||0,a.g=i||0,a.b=n||0,a.a=null!=r?r:1,a.add=function(t,e){for(var i=0;i<t.length;++i)a[t.charAt(i)]+=e;return a.normalize()},a.scale=function(t,e){for(var i=0;i<t.length;++i)a[t.charAt(i)]*=e;return a.normalize()},a.toString=function(){return a.a>=1?"rgb("+[a.r,a.g,a.b].join(",")+")":"rgba("+[a.r,a.g,a.b,a.a].join(",")+")"},a.normalize=function(){function t(t,e,i){return e<t?t:e>i?i:e}return a.r=t(0,parseInt(a.r),255),a.g=t(0,parseInt(a.g),255),a.b=t(0,parseInt(a.b),255),a.a=t(0,a.a,1),a},a.clone=function(){return t.color.make(a.r,a.b,a.g,a.a)},a.normalize()},t.color.extract=function(e,i){var n;do{if(n=e.css(i).toLowerCase(),""!=n&&"transparent"!=n)break;e=e.parent()}while(e.length&&!t.nodeName(e.get(0),"body"));return"rgba(0, 0, 0, 0)"==n&&(n="transparent"),t.color.parse(n)},t.color.parse=function(i){var n,r=t.color.make;if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(i))return r(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10));if(n=/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*\)/.exec(i))return r(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4]));if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(i))return r(2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]));if(n=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(i))return r(2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]),parseFloat(n[4]));if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(i))return r(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16));if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(i))return r(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16));var a=t.trim(i).toLowerCase();return"transparent"==a?r(255,255,255,0):(n=e[a]||[0,0,0],r(n[0],n[1],n[2]))};var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(t){function e(e,i){var n=i.children("."+e)[0];if(null==n&&(n=document.createElement("canvas"),n.className=e,t(n).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(i),!n.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");n=window.G_vmlCanvasManager.initElement(n)}this.element=n;var r=this.context=n.getContext("2d"),a=window.devicePixelRatio||1,o=r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1;this.pixelRatio=a/o,this.resize(i.width(),i.height()),this.textContainer=null,this.text={},this._textCache={}}function i(i,r,a,o){function s(t,e){e=[mt].concat(e);for(var i=0;i<t.length;++i)t[i].apply(this,e)}function l(){for(var i={Canvas:e},n=0;n<o.length;++n){var r=o[n];r.init(mt,i),r.options&&t.extend(!0,rt,r.options)}}function u(e){t.extend(!0,rt,e),e&&e.colors&&(rt.colors=e.colors),null==rt.xaxis.color&&(rt.xaxis.color=t.color.parse(rt.grid.color).scale("a",.22).toString()),null==rt.yaxis.color&&(rt.yaxis.color=t.color.parse(rt.grid.color).scale("a",.22).toString()),null==rt.xaxis.tickColor&&(rt.xaxis.tickColor=rt.grid.tickColor||rt.xaxis.color),null==rt.yaxis.tickColor&&(rt.yaxis.tickColor=rt.grid.tickColor||rt.yaxis.color),null==rt.grid.borderColor&&(rt.grid.borderColor=rt.grid.color),null==rt.grid.tickColor&&(rt.grid.tickColor=t.color.parse(rt.grid.color).scale("a",.22).toString());var n,r,a,o=i.css("font-size"),l=o?+o.replace("px",""):13,u={style:i.css("font-style"),size:Math.round(.8*l),variant:i.css("font-variant"),weight:i.css("font-weight"),family:i.css("font-family")};for(a=rt.xaxes.length||1,n=0;n<a;++n)r=rt.xaxes[n],r&&!r.tickColor&&(r.tickColor=r.color),r=t.extend(!0,{},rt.xaxis,r),rt.xaxes[n]=r,r.font&&(r.font=t.extend({},u,r.font),r.font.color||(r.font.color=r.color),r.font.lineHeight||(r.font.lineHeight=Math.round(1.15*r.font.size)));for(a=rt.yaxes.length||1,n=0;n<a;++n)r=rt.yaxes[n],r&&!r.tickColor&&(r.tickColor=r.color),r=t.extend(!0,{},rt.yaxis,r),rt.yaxes[n]=r,r.font&&(r.font=t.extend({},u,r.font),r.font.color||(r.font.color=r.color),r.font.lineHeight||(r.font.lineHeight=Math.round(1.15*r.font.size)));for(rt.xaxis.noTicks&&null==rt.xaxis.ticks&&(rt.xaxis.ticks=rt.xaxis.noTicks),rt.yaxis.noTicks&&null==rt.yaxis.ticks&&(rt.yaxis.ticks=rt.yaxis.noTicks),rt.x2axis&&(rt.xaxes[1]=t.extend(!0,{},rt.xaxis,rt.x2axis),rt.xaxes[1].position="top",null==rt.x2axis.min&&(rt.xaxes[1].min=null),null==rt.x2axis.max&&(rt.xaxes[1].max=null)),rt.y2axis&&(rt.yaxes[1]=t.extend(!0,{},rt.yaxis,rt.y2axis),rt.yaxes[1].position="right",null==rt.y2axis.min&&(rt.yaxes[1].min=null),null==rt.y2axis.max&&(rt.yaxes[1].max=null)),rt.grid.coloredAreas&&(rt.grid.markings=rt.grid.coloredAreas),rt.grid.coloredAreasColor&&(rt.grid.markingsColor=rt.grid.coloredAreasColor),rt.lines&&t.extend(!0,rt.series.lines,rt.lines),rt.points&&t.extend(!0,rt.series.points,rt.points),rt.bars&&t.extend(!0,rt.series.bars,rt.bars),null!=rt.shadowSize&&(rt.series.shadowSize=rt.shadowSize),null!=rt.highlightColor&&(rt.series.highlightColor=rt.highlightColor),n=0;n<rt.xaxes.length;++n)m(ht,n+1).options=rt.xaxes[n];for(n=0;n<rt.yaxes.length;++n)m(ct,n+1).options=rt.yaxes[n];for(var h in gt)rt.hooks[h]&&rt.hooks[h].length&&(gt[h]=gt[h].concat(rt.hooks[h]));s(gt.processOptions,[rt])}function h(t){nt=c(t),v(),y()}function c(e){for(var i=[],n=0;n<e.length;++n){var r=t.extend(!0,{},rt.series);null!=e[n].data?(r.data=e[n].data,delete e[n].data,t.extend(!0,r,e[n]),e[n].data=r.data):r.data=e[n],i.push(r)}return i}function d(t,e){var i=t[e+"axis"];return"object"==typeof i&&(i=i.n),"number"!=typeof i&&(i=1),i}function p(){return t.grep(ht.concat(ct),function(t){return t})}function f(t){var e,i,n={};for(e=0;e<ht.length;++e)i=ht[e],i&&i.used&&(n["x"+i.n]=i.c2p(t.left));for(e=0;e<ct.length;++e)i=ct[e],i&&i.used&&(n["y"+i.n]=i.c2p(t.top));return void 0!==n.x1&&(n.x=n.x1),void 0!==n.y1&&(n.y=n.y1),n}function g(t){var e,i,n,r={};for(e=0;e<ht.length;++e)if(i=ht[e],i&&i.used&&(n="x"+i.n,null==t[n]&&1==i.n&&(n="x"),null!=t[n])){r.left=i.p2c(t[n]);break}for(e=0;e<ct.length;++e)if(i=ct[e],i&&i.used&&(n="y"+i.n,null==t[n]&&1==i.n&&(n="y"),null!=t[n])){r.top=i.p2c(t[n]);break}return r}function m(e,i){return e[i-1]||(e[i-1]={n:i,direction:e==ht?"x":"y",options:t.extend(!0,{},e==ht?rt.xaxis:rt.yaxis)}),e[i-1]}function v(){var e,i=nt.length,n=-1;for(e=0;e<nt.length;++e){var r=nt[e].color;null!=r&&(i--,"number"==typeof r&&r>n&&(n=r))}i<=n&&(i=n+1);var a,o=[],s=rt.colors,l=s.length,u=0;for(e=0;e<i;e++)a=t.color.parse(s[e%l]||"#666"),e%l==0&&e&&(u=u>=0?u<.5?-u-.2:0:-u),o[e]=a.scale("rgb",1+u);var h,c=0;for(e=0;e<nt.length;++e){if(h=nt[e],null==h.color?(h.color=o[c].toString(),++c):"number"==typeof h.color&&(h.color=o[h.color].toString()),null==h.lines.show){var p,f=!0;for(p in h)if(h[p]&&h[p].show){f=!1;break}f&&(h.lines.show=!0)}null==h.lines.zero&&(h.lines.zero=!!h.lines.fill),h.xaxis=m(ht,d(h,"x")),h.yaxis=m(ct,d(h,"y"))}}function y(){function e(t,e,i){e<t.datamin&&e!=-y&&(t.datamin=e),i>t.datamax&&i!=y&&(t.datamax=i)}var i,n,r,a,o,l,u,h,c,d,f,g,m=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,y=Number.MAX_VALUE;for(t.each(p(),function(t,e){e.datamin=m,e.datamax=v,e.used=!1}),i=0;i<nt.length;++i)o=nt[i],o.datapoints={points:[]},s(gt.processRawData,[o,o.data,o.datapoints]);for(i=0;i<nt.length;++i){if(o=nt[i],f=o.data,g=o.datapoints.format,!g){if(g=[],g.push({x:!0,number:!0,required:!0}),g.push({y:!0,number:!0,required:!0}),o.bars.show||o.lines.show&&o.lines.fill){var _=!!(o.bars.show&&o.bars.zero||o.lines.show&&o.lines.zero);g.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:_}),o.bars.horizontal&&(delete g[g.length-1].y,g[g.length-1].x=!0)}o.datapoints.format=g}if(null==o.datapoints.pointsize){o.datapoints.pointsize=g.length,u=o.datapoints.pointsize,l=o.datapoints.points;var b=o.lines.show&&o.lines.steps;for(o.xaxis.used=o.yaxis.used=!0,n=r=0;n<f.length;++n,r+=u){d=f[n];var x=null==d;if(!x)for(a=0;a<u;++a)h=d[a],c=g[a],c&&(c.number&&null!=h&&(h=+h,isNaN(h)?h=null:h==1/0?h=y:h==-(1/0)&&(h=-y)),null==h&&(c.required&&(x=!0),null!=c.defaultValue&&(h=c.defaultValue))),l[r+a]=h;if(x)for(a=0;a<u;++a)h=l[r+a],null!=h&&(c=g[a],c.autoscale!==!1&&(c.x&&e(o.xaxis,h,h),c.y&&e(o.yaxis,h,h))),l[r+a]=null;else if(b&&r>0&&null!=l[r-u]&&l[r-u]!=l[r]&&l[r-u+1]!=l[r+1]){for(a=0;a<u;++a)l[r+u+a]=l[r+a];l[r+1]=l[r-u+1],r+=u}}}}for(i=0;i<nt.length;++i)o=nt[i],s(gt.processDatapoints,[o,o.datapoints]);for(i=0;i<nt.length;++i){o=nt[i],l=o.datapoints.points,u=o.datapoints.pointsize,g=o.datapoints.format;var w=m,M=m,S=v,k=v;for(n=0;n<l.length;n+=u)if(null!=l[n])for(a=0;a<u;++a)h=l[n+a],c=g[a],c&&c.autoscale!==!1&&h!=y&&h!=-y&&(c.x&&(h<w&&(w=h),h>S&&(S=h)),c.y&&(h<M&&(M=h),h>k&&(k=h)));if(o.bars.show){var D;switch(o.bars.align){case"left":D=0;break;case"right":D=-o.bars.barWidth;break;default:D=-o.bars.barWidth/2}o.bars.horizontal?(M+=D,k+=D+o.bars.barWidth):(w+=D,S+=D+o.bars.barWidth)}e(o.xaxis,w,S),e(o.yaxis,M,k)}t.each(p(),function(t,e){e.datamin==m&&(e.datamin=null),e.datamax==v&&(e.datamax=null)})}function _(){i.css("padding",0).children().filter(function(){return!t(this).hasClass("flot-overlay")&&!t(this).hasClass("flot-base")}).remove(),"static"==i.css("position")&&i.css("position","relative"),at=new e("flot-base",i),ot=new e("flot-overlay",i),lt=at.context,ut=ot.context,st=t(ot.element).unbind();var n=i.data("plot");n&&(n.shutdown(),ot.clear()),i.data("plot",mt)}function b(){rt.grid.hoverable&&(st.mousemove($),st.bind("mouseleave",G)),rt.grid.clickable&&st.click(U),s(gt.bindEvents,[st])}function x(){yt&&clearTimeout(yt),st.unbind("mousemove",$),st.unbind("mouseleave",G),st.unbind("click",U),s(gt.shutdown,[st])}function w(t){function e(t){return t}var i,n,r=t.options.transform||e,a=t.options.inverseTransform;"x"==t.direction?(i=t.scale=pt/Math.abs(r(t.max)-r(t.min)),n=Math.min(r(t.max),r(t.min))):(i=t.scale=ft/Math.abs(r(t.max)-r(t.min)),i=-i,n=Math.max(r(t.max),r(t.min))),r==e?t.p2c=function(t){return(t-n)*i}:t.p2c=function(t){return(r(t)-n)*i},a?t.c2p=function(t){return a(n+t/i)}:t.c2p=function(t){return n+t/i}}function M(t){for(var e=t.options,i=t.ticks||[],n=e.labelWidth||0,r=e.labelHeight||0,a=n||("x"==t.direction?Math.floor(at.width/(i.length||1)):null),o=t.direction+"Axis "+t.direction+t.n+"Axis",s="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+o,l=e.font||"flot-tick-label tickLabel",u=0;u<i.length;++u){var h=i[u];if(h.label){var c=at.getTextInfo(s,h.label,l,null,a);n=Math.max(n,c.width),r=Math.max(r,c.height)}}t.labelWidth=e.labelWidth||n,t.labelHeight=e.labelHeight||r}function S(e){var i=e.labelWidth,n=e.labelHeight,r=e.options.position,a="x"===e.direction,o=e.options.tickLength,s=rt.grid.axisMargin,l=rt.grid.labelMargin,u=!0,h=!0,c=!0,d=!1;t.each(a?ht:ct,function(t,i){i&&(i.show||i.reserveSpace)&&(i===e?d=!0:i.options.position===r&&(d?h=!1:u=!1),d||(c=!1))}),h&&(s=0),null==o&&(o=c?"full":5),isNaN(+o)||(l+=+o),a?(n+=l,"bottom"==r?(dt.bottom+=n+s,e.box={top:at.height-dt.bottom,height:n}):(e.box={top:dt.top+s,height:n},dt.top+=n+s)):(i+=l,"left"==r?(e.box={left:dt.left+s,width:i},dt.left+=i+s):(dt.right+=i+s,e.box={left:at.width-dt.right,width:i})),e.position=r,e.tickLength=o,e.box.padding=l,e.innermost=u}function k(t){"x"==t.direction?(t.box.left=dt.left-t.labelWidth/2,t.box.width=at.width-dt.left-dt.right+t.labelWidth):(t.box.top=dt.top-t.labelHeight/2,t.box.height=at.height-dt.bottom-dt.top+t.labelHeight)}function D(){var e,i=rt.grid.minBorderMargin;if(null==i)for(i=0,e=0;e<nt.length;++e)i=Math.max(i,2*(nt[e].points.radius+nt[e].points.lineWidth/2));var n={left:i,right:i,top:i,bottom:i};t.each(p(),function(t,e){e.reserveSpace&&e.ticks&&e.ticks.length&&("x"===e.direction?(n.left=Math.max(n.left,e.labelWidth/2),n.right=Math.max(n.right,e.labelWidth/2)):(n.bottom=Math.max(n.bottom,e.labelHeight/2),n.top=Math.max(n.top,e.labelHeight/2)))}),dt.left=Math.ceil(Math.max(n.left,dt.left)),dt.right=Math.ceil(Math.max(n.right,dt.right)),dt.top=Math.ceil(Math.max(n.top,dt.top)),dt.bottom=Math.ceil(Math.max(n.bottom,dt.bottom))}function T(){var e,i=p(),n=rt.grid.show;for(var r in dt){var a=rt.grid.margin||0;dt[r]="number"==typeof a?a:a[r]||0}s(gt.processOffset,[dt]);for(var r in dt)"object"==typeof rt.grid.borderWidth?dt[r]+=n?rt.grid.borderWidth[r]:0:dt[r]+=n?rt.grid.borderWidth:0;if(t.each(i,function(t,e){var i=e.options;e.show=null==i.show?e.used:i.show,e.reserveSpace=null==i.reserveSpace?e.show:i.reserveSpace,L(e)}),n){var o=t.grep(i,function(t){return t.show||t.reserveSpace});for(t.each(o,function(t,e){C(e),I(e),A(e,e.ticks),M(e)}),e=o.length-1;e>=0;--e)S(o[e]);D(),t.each(o,function(t,e){k(e)})}pt=at.width-dt.left-dt.right,ft=at.height-dt.bottom-dt.top,t.each(i,function(t,e){w(e)}),n&&H(),j()}function L(t){var e=t.options,i=+(null!=e.min?e.min:t.datamin),n=+(null!=e.max?e.max:t.datamax),r=n-i;if(0==r){var a=0==n?1:.01;null==e.min&&(i-=a),null!=e.max&&null==e.min||(n+=a)}else{var o=e.autoscaleMargin;null!=o&&(null==e.min&&(i-=r*o,i<0&&null!=t.datamin&&t.datamin>=0&&(i=0)),null==e.max&&(n+=r*o,n>0&&null!=t.datamax&&t.datamax<=0&&(n=0)))}t.min=i,t.max=n}function C(e){var i,r=e.options;i="number"==typeof r.ticks&&r.ticks>0?r.ticks:.3*Math.sqrt("x"==e.direction?at.width:at.height);var a=(e.max-e.min)/i,o=-Math.floor(Math.log(a)/Math.LN10),s=r.tickDecimals;null!=s&&o>s&&(o=s);var l,u=Math.pow(10,-o),h=a/u;if(h<1.5?l=1:h<3?(l=2,h>2.25&&(null==s||o+1<=s)&&(l=2.5,++o)):l=h<7.5?5:10,l*=u,null!=r.minTickSize&&l<r.minTickSize&&(l=r.minTickSize),e.delta=a,e.tickDecimals=Math.max(0,null!=s?s:o),e.tickSize=r.tickSize||l,"time"==r.mode&&!e.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");if(e.tickGenerator||(e.tickGenerator=function(t){var e,i=[],r=n(t.min,t.tickSize),a=0,o=Number.NaN;do e=o,o=r+a*t.tickSize,i.push(o),++a;while(o<t.max&&o!=e);return i},e.tickFormatter=function(t,e){var i=e.tickDecimals?Math.pow(10,e.tickDecimals):1,n=""+Math.round(t*i)/i;if(null!=e.tickDecimals){var r=n.indexOf("."),a=r==-1?0:n.length-r-1;if(a<e.tickDecimals)return(a?n:n+".")+(""+i).substr(1,e.tickDecimals-a)}return n}),t.isFunction(r.tickFormatter)&&(e.tickFormatter=function(t,e){return""+r.tickFormatter(t,e)}),null!=r.alignTicksWithAxis){var c=("x"==e.direction?ht:ct)[r.alignTicksWithAxis-1];if(c&&c.used&&c!=e){var d=e.tickGenerator(e);if(d.length>0&&(null==r.min&&(e.min=Math.min(e.min,d[0])),null==r.max&&d.length>1&&(e.max=Math.max(e.max,d[d.length-1]))),e.tickGenerator=function(t){var e,i,n=[];for(i=0;i<c.ticks.length;++i)e=(c.ticks[i].v-c.min)/(c.max-c.min),e=t.min+e*(t.max-t.min),n.push(e);return n},!e.mode&&null==r.tickDecimals){var p=Math.max(0,-Math.floor(Math.log(e.delta)/Math.LN10)+1),f=e.tickGenerator(e);f.length>1&&/\..*0$/.test((f[1]-f[0]).toFixed(p))||(e.tickDecimals=p)}}}}function I(e){var i=e.options.ticks,n=[];null==i||"number"==typeof i&&i>0?n=e.tickGenerator(e):i&&(n=t.isFunction(i)?i(e):i);var r,a;for(e.ticks=[],r=0;r<n.length;++r){var o=null,s=n[r];"object"==typeof s?(a=+s[0],s.length>1&&(o=s[1])):a=+s,null==o&&(o=e.tickFormatter(a,e)),isNaN(a)||e.ticks.push({v:a,label:o})}}function A(t,e){t.options.autoscaleMargin&&e.length>0&&(null==t.options.min&&(t.min=Math.min(t.min,e[0].v)),null==t.options.max&&e.length>1&&(t.max=Math.max(t.max,e[e.length-1].v)))}function P(){at.clear(),s(gt.drawBackground,[lt]);var t=rt.grid;t.show&&t.backgroundColor&&O(),t.show&&!t.aboveData&&R();for(var e=0;e<nt.length;++e)s(gt.drawSeries,[lt,nt[e]]),z(nt[e]);s(gt.draw,[lt]),t.show&&t.aboveData&&R(),at.render(),X()}function E(t,e){for(var i,n,r,a,o=p(),s=0;s<o.length;++s)if(i=o[s],i.direction==e&&(a=e+i.n+"axis",t[a]||1!=i.n||(a=e+"axis"),t[a])){n=t[a].from,r=t[a].to;break}if(t[a]||(i="x"==e?ht[0]:ct[0],n=t[e+"1"],r=t[e+"2"]),null!=n&&null!=r&&n>r){var l=n;n=r,r=l}return{from:n,to:r,axis:i}}function O(){lt.save(),lt.translate(dt.left,dt.top),lt.fillStyle=it(rt.grid.backgroundColor,ft,0,"rgba(255, 255, 255, 0)"),lt.fillRect(0,0,pt,ft),lt.restore()}function R(){var e,i,n,r;lt.save(),lt.translate(dt.left,dt.top);var a=rt.grid.markings;if(a)for(t.isFunction(a)&&(i=mt.getAxes(),i.xmin=i.xaxis.min,i.xmax=i.xaxis.max,i.ymin=i.yaxis.min,i.ymax=i.yaxis.max,a=a(i)),e=0;e<a.length;++e){var o=a[e],s=E(o,"x"),l=E(o,"y");if(null==s.from&&(s.from=s.axis.min),null==s.to&&(s.to=s.axis.max),null==l.from&&(l.from=l.axis.min),null==l.to&&(l.to=l.axis.max),!(s.to<s.axis.min||s.from>s.axis.max||l.to<l.axis.min||l.from>l.axis.max)){s.from=Math.max(s.from,s.axis.min),s.to=Math.min(s.to,s.axis.max),l.from=Math.max(l.from,l.axis.min),l.to=Math.min(l.to,l.axis.max);var u=s.from===s.to,h=l.from===l.to;if(!u||!h)if(s.from=Math.floor(s.axis.p2c(s.from)),s.to=Math.floor(s.axis.p2c(s.to)),l.from=Math.floor(l.axis.p2c(l.from)),l.to=Math.floor(l.axis.p2c(l.to)),u||h){var c=o.lineWidth||rt.grid.markingsLineWidth,d=c%2?.5:0;lt.beginPath(),lt.strokeStyle=o.color||rt.grid.markingsColor,lt.lineWidth=c, u?(lt.moveTo(s.to+d,l.from),lt.lineTo(s.to+d,l.to)):(lt.moveTo(s.from,l.to+d),lt.lineTo(s.to,l.to+d)),lt.stroke()}else lt.fillStyle=o.color||rt.grid.markingsColor,lt.fillRect(s.from,l.to,s.to-s.from,l.from-l.to)}}i=p(),n=rt.grid.borderWidth;for(var f=0;f<i.length;++f){var g,m,v,y,_=i[f],b=_.box,x=_.tickLength;if(_.show&&0!=_.ticks.length){for(lt.lineWidth=1,"x"==_.direction?(g=0,m="full"==x?"top"==_.position?0:ft:b.top-dt.top+("top"==_.position?b.height:0)):(m=0,g="full"==x?"left"==_.position?0:pt:b.left-dt.left+("left"==_.position?b.width:0)),_.innermost||(lt.strokeStyle=_.options.color,lt.beginPath(),v=y=0,"x"==_.direction?v=pt+1:y=ft+1,1==lt.lineWidth&&("x"==_.direction?m=Math.floor(m)+.5:g=Math.floor(g)+.5),lt.moveTo(g,m),lt.lineTo(g+v,m+y),lt.stroke()),lt.strokeStyle=_.options.tickColor,lt.beginPath(),e=0;e<_.ticks.length;++e){var w=_.ticks[e].v;v=y=0,isNaN(w)||w<_.min||w>_.max||"full"==x&&("object"==typeof n&&n[_.position]>0||n>0)&&(w==_.min||w==_.max)||("x"==_.direction?(g=_.p2c(w),y="full"==x?-ft:x,"top"==_.position&&(y=-y)):(m=_.p2c(w),v="full"==x?-pt:x,"left"==_.position&&(v=-v)),1==lt.lineWidth&&("x"==_.direction?g=Math.floor(g)+.5:m=Math.floor(m)+.5),lt.moveTo(g,m),lt.lineTo(g+v,m+y))}lt.stroke()}}n&&(r=rt.grid.borderColor,"object"==typeof n||"object"==typeof r?("object"!=typeof n&&(n={top:n,right:n,bottom:n,left:n}),"object"!=typeof r&&(r={top:r,right:r,bottom:r,left:r}),n.top>0&&(lt.strokeStyle=r.top,lt.lineWidth=n.top,lt.beginPath(),lt.moveTo(0-n.left,0-n.top/2),lt.lineTo(pt,0-n.top/2),lt.stroke()),n.right>0&&(lt.strokeStyle=r.right,lt.lineWidth=n.right,lt.beginPath(),lt.moveTo(pt+n.right/2,0-n.top),lt.lineTo(pt+n.right/2,ft),lt.stroke()),n.bottom>0&&(lt.strokeStyle=r.bottom,lt.lineWidth=n.bottom,lt.beginPath(),lt.moveTo(pt+n.right,ft+n.bottom/2),lt.lineTo(0,ft+n.bottom/2),lt.stroke()),n.left>0&&(lt.strokeStyle=r.left,lt.lineWidth=n.left,lt.beginPath(),lt.moveTo(0-n.left/2,ft+n.bottom),lt.lineTo(0-n.left/2,0),lt.stroke())):(lt.lineWidth=n,lt.strokeStyle=rt.grid.borderColor,lt.strokeRect(-n/2,-n/2,pt+n,ft+n))),lt.restore()}function H(){t.each(p(),function(t,e){var i,n,r,a,o,s=e.box,l=e.direction+"Axis "+e.direction+e.n+"Axis",u="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+l,h=e.options.font||"flot-tick-label tickLabel";if(at.removeText(u),e.show&&0!=e.ticks.length)for(var c=0;c<e.ticks.length;++c)i=e.ticks[c],!i.label||i.v<e.min||i.v>e.max||("x"==e.direction?(a="center",n=dt.left+e.p2c(i.v),"bottom"==e.position?r=s.top+s.padding:(r=s.top+s.height-s.padding,o="bottom")):(o="middle",r=dt.top+e.p2c(i.v),"left"==e.position?(n=s.left+s.width-s.padding,a="right"):n=s.left+s.padding),at.addText(u,n,r,i.label,h,null,null,a,o))})}function z(t){t.lines.show&&Y(t),t.bars.show&&W(t),t.points.show&&N(t)}function Y(t){function e(t,e,i,n,r){var a=t.points,o=t.pointsize,s=null,l=null;lt.beginPath();for(var u=o;u<a.length;u+=o){var h=a[u-o],c=a[u-o+1],d=a[u],p=a[u+1];if(null!=h&&null!=d){if(c<=p&&c<r.min){if(p<r.min)continue;h=(r.min-c)/(p-c)*(d-h)+h,c=r.min}else if(p<=c&&p<r.min){if(c<r.min)continue;d=(r.min-c)/(p-c)*(d-h)+h,p=r.min}if(c>=p&&c>r.max){if(p>r.max)continue;h=(r.max-c)/(p-c)*(d-h)+h,c=r.max}else if(p>=c&&p>r.max){if(c>r.max)continue;d=(r.max-c)/(p-c)*(d-h)+h,p=r.max}if(h<=d&&h<n.min){if(d<n.min)continue;c=(n.min-h)/(d-h)*(p-c)+c,h=n.min}else if(d<=h&&d<n.min){if(h<n.min)continue;p=(n.min-h)/(d-h)*(p-c)+c,d=n.min}if(h>=d&&h>n.max){if(d>n.max)continue;c=(n.max-h)/(d-h)*(p-c)+c,h=n.max}else if(d>=h&&d>n.max){if(h>n.max)continue;p=(n.max-h)/(d-h)*(p-c)+c,d=n.max}h==s&&c==l||lt.moveTo(n.p2c(h)+e,r.p2c(c)+i),s=d,l=p,lt.lineTo(n.p2c(d)+e,r.p2c(p)+i)}}lt.stroke()}function i(t,e,i){for(var n=t.points,r=t.pointsize,a=Math.min(Math.max(0,i.min),i.max),o=0,s=!1,l=1,u=0,h=0;;){if(r>0&&o>n.length+r)break;o+=r;var c=n[o-r],d=n[o-r+l],p=n[o],f=n[o+l];if(s){if(r>0&&null!=c&&null==p){h=o,r=-r,l=2;continue}if(r<0&&o==u+r){lt.fill(),s=!1,r=-r,l=1,o=u=h+r;continue}}if(null!=c&&null!=p){if(c<=p&&c<e.min){if(p<e.min)continue;d=(e.min-c)/(p-c)*(f-d)+d,c=e.min}else if(p<=c&&p<e.min){if(c<e.min)continue;f=(e.min-c)/(p-c)*(f-d)+d,p=e.min}if(c>=p&&c>e.max){if(p>e.max)continue;d=(e.max-c)/(p-c)*(f-d)+d,c=e.max}else if(p>=c&&p>e.max){if(c>e.max)continue;f=(e.max-c)/(p-c)*(f-d)+d,p=e.max}if(s||(lt.beginPath(),lt.moveTo(e.p2c(c),i.p2c(a)),s=!0),d>=i.max&&f>=i.max)lt.lineTo(e.p2c(c),i.p2c(i.max)),lt.lineTo(e.p2c(p),i.p2c(i.max));else if(d<=i.min&&f<=i.min)lt.lineTo(e.p2c(c),i.p2c(i.min)),lt.lineTo(e.p2c(p),i.p2c(i.min));else{var g=c,m=p;d<=f&&d<i.min&&f>=i.min?(c=(i.min-d)/(f-d)*(p-c)+c,d=i.min):f<=d&&f<i.min&&d>=i.min&&(p=(i.min-d)/(f-d)*(p-c)+c,f=i.min),d>=f&&d>i.max&&f<=i.max?(c=(i.max-d)/(f-d)*(p-c)+c,d=i.max):f>=d&&f>i.max&&d<=i.max&&(p=(i.max-d)/(f-d)*(p-c)+c,f=i.max),c!=g&<.lineTo(e.p2c(g),i.p2c(d)),lt.lineTo(e.p2c(c),i.p2c(d)),lt.lineTo(e.p2c(p),i.p2c(f)),p!=m&&(lt.lineTo(e.p2c(p),i.p2c(f)),lt.lineTo(e.p2c(m),i.p2c(f)))}}}}lt.save(),lt.translate(dt.left,dt.top),lt.lineJoin="round";var n=t.lines.lineWidth,r=t.shadowSize;if(n>0&&r>0){lt.lineWidth=r,lt.strokeStyle="rgba(0,0,0,0.1)";var a=Math.PI/18;e(t.datapoints,Math.sin(a)*(n/2+r/2),Math.cos(a)*(n/2+r/2),t.xaxis,t.yaxis),lt.lineWidth=r/2,e(t.datapoints,Math.sin(a)*(n/2+r/4),Math.cos(a)*(n/2+r/4),t.xaxis,t.yaxis)}lt.lineWidth=n,lt.strokeStyle=t.color;var o=B(t.lines,t.color,0,ft);o&&(lt.fillStyle=o,i(t.datapoints,t.xaxis,t.yaxis)),n>0&&e(t.datapoints,0,0,t.xaxis,t.yaxis),lt.restore()}function N(t){function e(t,e,i,n,r,a,o,s){for(var l=t.points,u=t.pointsize,h=0;h<l.length;h+=u){var c=l[h],d=l[h+1];null==c||c<a.min||c>a.max||d<o.min||d>o.max||(lt.beginPath(),c=a.p2c(c),d=o.p2c(d)+n,"circle"==s?lt.arc(c,d,e,0,r?Math.PI:2*Math.PI,!1):s(lt,c,d,e,r),lt.closePath(),i&&(lt.fillStyle=i,lt.fill()),lt.stroke())}}lt.save(),lt.translate(dt.left,dt.top);var i=t.points.lineWidth,n=t.shadowSize,r=t.points.radius,a=t.points.symbol;if(0==i&&(i=1e-4),i>0&&n>0){var o=n/2;lt.lineWidth=o,lt.strokeStyle="rgba(0,0,0,0.1)",e(t.datapoints,r,null,o+o/2,!0,t.xaxis,t.yaxis,a),lt.strokeStyle="rgba(0,0,0,0.2)",e(t.datapoints,r,null,o/2,!0,t.xaxis,t.yaxis,a)}lt.lineWidth=i,lt.strokeStyle=t.color,e(t.datapoints,r,B(t.points,t.color),0,!1,t.xaxis,t.yaxis,a),lt.restore()}function F(t,e,i,n,r,a,o,s,l,u,h){var c,d,p,f,g,m,v,y,_;u?(y=m=v=!0,g=!1,c=i,d=t,f=e+n,p=e+r,d<c&&(_=d,d=c,c=_,g=!0,m=!1)):(g=m=v=!0,y=!1,c=t+n,d=t+r,p=i,f=e,f<p&&(_=f,f=p,p=_,y=!0,v=!1)),d<o.min||c>o.max||f<s.min||p>s.max||(c<o.min&&(c=o.min,g=!1),d>o.max&&(d=o.max,m=!1),p<s.min&&(p=s.min,y=!1),f>s.max&&(f=s.max,v=!1),c=o.p2c(c),p=s.p2c(p),d=o.p2c(d),f=s.p2c(f),a&&(l.fillStyle=a(p,f),l.fillRect(c,f,d-c,p-f)),h>0&&(g||m||v||y)&&(l.beginPath(),l.moveTo(c,p),g?l.lineTo(c,f):l.moveTo(c,f),v?l.lineTo(d,f):l.moveTo(d,f),m?l.lineTo(d,p):l.moveTo(d,p),y?l.lineTo(c,p):l.moveTo(c,p),l.stroke()))}function W(t){function e(e,i,n,r,a,o){for(var s=e.points,l=e.pointsize,u=0;u<s.length;u+=l)null!=s[u]&&F(s[u],s[u+1],s[u+2],i,n,r,a,o,lt,t.bars.horizontal,t.bars.lineWidth)}lt.save(),lt.translate(dt.left,dt.top),lt.lineWidth=t.bars.lineWidth,lt.strokeStyle=t.color;var i;switch(t.bars.align){case"left":i=0;break;case"right":i=-t.bars.barWidth;break;default:i=-t.bars.barWidth/2}var n=t.bars.fill?function(e,i){return B(t.bars,t.color,e,i)}:null;e(t.datapoints,i,i+t.bars.barWidth,n,t.xaxis,t.yaxis),lt.restore()}function B(e,i,n,r){var a=e.fill;if(!a)return null;if(e.fillColor)return it(e.fillColor,n,r,i);var o=t.color.parse(i);return o.a="number"==typeof a?a:.4,o.normalize(),o.toString()}function j(){if(null!=rt.legend.container?t(rt.legend.container).html(""):i.find(".legend").remove(),rt.legend.show){for(var e,n,r=[],a=[],o=!1,s=rt.legend.labelFormatter,l=0;l<nt.length;++l)e=nt[l],e.label&&(n=s?s(e.label,e):e.label,n&&a.push({label:n,color:e.color}));if(rt.legend.sorted)if(t.isFunction(rt.legend.sorted))a.sort(rt.legend.sorted);else if("reverse"==rt.legend.sorted)a.reverse();else{var u="descending"!=rt.legend.sorted;a.sort(function(t,e){return t.label==e.label?0:t.label<e.label!=u?1:-1})}for(var l=0;l<a.length;++l){var h=a[l];l%rt.legend.noColumns==0&&(o&&r.push("</tr>"),r.push("<tr>"),o=!0),r.push('<td class="legendColorBox"><div style="border:1px solid '+rt.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+h.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+h.label+"</td>")}if(o&&r.push("</tr>"),0!=r.length){var c='<table style="font-size:smaller;color:'+rt.grid.color+'">'+r.join("")+"</table>";if(null!=rt.legend.container)t(rt.legend.container).html(c);else{var d="",p=rt.legend.position,f=rt.legend.margin;null==f[0]&&(f=[f,f]),"n"==p.charAt(0)?d+="top:"+(f[1]+dt.top)+"px;":"s"==p.charAt(0)&&(d+="bottom:"+(f[1]+dt.bottom)+"px;"),"e"==p.charAt(1)?d+="right:"+(f[0]+dt.right)+"px;":"w"==p.charAt(1)&&(d+="left:"+(f[0]+dt.left)+"px;");var g=t('<div class="legend">'+c.replace('style="','style="position:absolute;'+d+";")+"</div>").appendTo(i);if(0!=rt.legend.backgroundOpacity){var m=rt.legend.backgroundColor;null==m&&(m=rt.grid.backgroundColor,m=m&&"string"==typeof m?t.color.parse(m):t.color.extract(g,"background-color"),m.a=1,m=m.toString());var v=g.children();t('<div style="position:absolute;width:'+v.width()+"px;height:"+v.height()+"px;"+d+"background-color:"+m+';"> </div>').prependTo(g).css("opacity",rt.legend.backgroundOpacity)}}}}}function V(t,e,i){var n,r,a,o=rt.grid.mouseActiveRadius,s=o*o+1,l=null;for(n=nt.length-1;n>=0;--n)if(i(nt[n])){var u=nt[n],h=u.xaxis,c=u.yaxis,d=u.datapoints.points,p=h.c2p(t),f=c.c2p(e),g=o/h.scale,m=o/c.scale;if(a=u.datapoints.pointsize,h.options.inverseTransform&&(g=Number.MAX_VALUE),c.options.inverseTransform&&(m=Number.MAX_VALUE),u.lines.show||u.points.show)for(r=0;r<d.length;r+=a){var v=d[r],y=d[r+1];if(null!=v&&!(v-p>g||v-p<-g||y-f>m||y-f<-m)){var _=Math.abs(h.p2c(v)-t),b=Math.abs(c.p2c(y)-e),x=_*_+b*b;x<s&&(s=x,l=[n,r/a])}}if(u.bars.show&&!l){var w,M;switch(u.bars.align){case"left":w=0;break;case"right":w=-u.bars.barWidth;break;default:w=-u.bars.barWidth/2}for(M=w+u.bars.barWidth,r=0;r<d.length;r+=a){var v=d[r],y=d[r+1],S=d[r+2];null!=v&&(nt[n].bars.horizontal?p<=Math.max(S,v)&&p>=Math.min(S,v)&&f>=y+w&&f<=y+M:p>=v+w&&p<=v+M&&f>=Math.min(S,y)&&f<=Math.max(S,y))&&(l=[n,r/a])}}}return l?(n=l[0],r=l[1],a=nt[n].datapoints.pointsize,{datapoint:nt[n].datapoints.points.slice(r*a,(r+1)*a),dataIndex:r,series:nt[n],seriesIndex:n}):null}function $(t){rt.grid.hoverable&&q("plothover",t,function(t){return 0!=t.hoverable})}function G(t){rt.grid.hoverable&&q("plothover",t,function(t){return!1})}function U(t){q("plotclick",t,function(t){return 0!=t.clickable})}function q(t,e,n){var r=st.offset(),a=e.pageX-r.left-dt.left,o=e.pageY-r.top-dt.top,s=f({left:a,top:o});s.pageX=e.pageX,s.pageY=e.pageY;var l=V(a,o,n);if(l&&(l.pageX=parseInt(l.series.xaxis.p2c(l.datapoint[0])+r.left+dt.left,10),l.pageY=parseInt(l.series.yaxis.p2c(l.datapoint[1])+r.top+dt.top,10)),rt.grid.autoHighlight){for(var u=0;u<vt.length;++u){var h=vt[u];h.auto!=t||l&&h.series==l.series&&h.point[0]==l.datapoint[0]&&h.point[1]==l.datapoint[1]||J(h.series,h.point)}l&&K(l.series,l.datapoint,t)}i.trigger(t,[s,l])}function X(){var t=rt.interaction.redrawOverlayInterval;return t==-1?void Z():void(yt||(yt=setTimeout(Z,t)))}function Z(){yt=null,ut.save(),ot.clear(),ut.translate(dt.left,dt.top);var t,e;for(t=0;t<vt.length;++t)e=vt[t],e.series.bars.show?et(e.series,e.point):tt(e.series,e.point);ut.restore(),s(gt.drawOverlay,[ut])}function K(t,e,i){if("number"==typeof t&&(t=nt[t]),"number"==typeof e){var n=t.datapoints.pointsize;e=t.datapoints.points.slice(n*e,n*(e+1))}var r=Q(t,e);r==-1?(vt.push({series:t,point:e,auto:i}),X()):i||(vt[r].auto=!1)}function J(t,e){if(null==t&&null==e)return vt=[],void X();if("number"==typeof t&&(t=nt[t]),"number"==typeof e){var i=t.datapoints.pointsize;e=t.datapoints.points.slice(i*e,i*(e+1))}var n=Q(t,e);n!=-1&&(vt.splice(n,1),X())}function Q(t,e){for(var i=0;i<vt.length;++i){var n=vt[i];if(n.series==t&&n.point[0]==e[0]&&n.point[1]==e[1])return i}return-1}function tt(e,i){var n=i[0],r=i[1],a=e.xaxis,o=e.yaxis,s="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString();if(!(n<a.min||n>a.max||r<o.min||r>o.max)){var l=e.points.radius+e.points.lineWidth/2;ut.lineWidth=l,ut.strokeStyle=s;var u=1.5*l;n=a.p2c(n),r=o.p2c(r),ut.beginPath(),"circle"==e.points.symbol?ut.arc(n,r,u,0,2*Math.PI,!1):e.points.symbol(ut,n,r,u,!1),ut.closePath(),ut.stroke()}}function et(e,i){var n,r="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString(),a=r;switch(e.bars.align){case"left":n=0;break;case"right":n=-e.bars.barWidth;break;default:n=-e.bars.barWidth/2}ut.lineWidth=e.bars.lineWidth,ut.strokeStyle=r,F(i[0],i[1],i[2]||0,n,n+e.bars.barWidth,function(){return a},e.xaxis,e.yaxis,ut,e.bars.horizontal,e.bars.lineWidth)}function it(e,i,n,r){if("string"==typeof e)return e;for(var a=lt.createLinearGradient(0,n,0,i),o=0,s=e.colors.length;o<s;++o){var l=e.colors[o];if("string"!=typeof l){var u=t.color.parse(r);null!=l.brightness&&(u=u.scale("rgb",l.brightness)),null!=l.opacity&&(u.a*=l.opacity),l=u.toString()}a.addColorStop(o/(s-1),l)}return a}var nt=[],rt={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},at=null,ot=null,st=null,lt=null,ut=null,ht=[],ct=[],dt={left:0,right:0,top:0,bottom:0},pt=0,ft=0,gt={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},mt=this;mt.setData=h,mt.setupGrid=T,mt.draw=P,mt.getPlaceholder=function(){return i},mt.getCanvas=function(){return at.element},mt.getPlotOffset=function(){return dt},mt.width=function(){return pt},mt.height=function(){return ft},mt.offset=function(){var t=st.offset();return t.left+=dt.left,t.top+=dt.top,t},mt.getData=function(){return nt},mt.getAxes=function(){var e={};return t.each(ht.concat(ct),function(t,i){i&&(e[i.direction+(1!=i.n?i.n:"")+"axis"]=i)}),e},mt.getXAxes=function(){return ht},mt.getYAxes=function(){return ct},mt.c2p=f,mt.p2c=g,mt.getOptions=function(){return rt},mt.highlight=K,mt.unhighlight=J,mt.triggerRedrawOverlay=X,mt.pointOffset=function(t){return{left:parseInt(ht[d(t,"x")-1].p2c(+t.x)+dt.left,10),top:parseInt(ct[d(t,"y")-1].p2c(+t.y)+dt.top,10)}},mt.shutdown=x,mt.destroy=function(){x(),i.removeData("plot").empty(),nt=[],rt=null,at=null,ot=null,st=null,lt=null,ut=null,ht=[],ct=[],gt=null,vt=[],mt=null},mt.resize=function(){var t=i.width(),e=i.height();at.resize(t,e),ot.resize(t,e)},mt.hooks=gt,l(mt),u(a),_(),h(r),T(),P(),b();var vt=[],yt=null}function n(t,e){return e*Math.floor(t/e)}var r=Object.prototype.hasOwnProperty;t.fn.detach||(t.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}),e.prototype.resize=function(t,e){if(t<=0||e<=0)throw new Error("Invalid dimensions for plot, width = "+t+", height = "+e);var i=this.element,n=this.context,r=this.pixelRatio;this.width!=t&&(i.width=t*r,i.style.width=t+"px",this.width=t),this.height!=e&&(i.height=e*r,i.style.height=e+"px",this.height=e),n.restore(),n.save(),n.scale(r,r)},e.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},e.prototype.render=function(){var t=this._textCache;for(var e in t)if(r.call(t,e)){var i=this.getTextLayer(e),n=t[e];i.hide();for(var a in n)if(r.call(n,a)){var o=n[a];for(var s in o)if(r.call(o,s)){for(var l,u=o[s].positions,h=0;l=u[h];h++)l.active?l.rendered||(i.append(l.element),l.rendered=!0):(u.splice(h--,1),l.rendered&&l.element.detach());0==u.length&&delete o[s]}}i.show()}},e.prototype.getTextLayer=function(e){var i=this.text[e];return null==i&&(null==this.textContainer&&(this.textContainer=t("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),i=this.text[e]=t("<div></div>").addClass(e).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),i},e.prototype.getTextInfo=function(e,i,n,r,a){var o,s,l,u;if(i=""+i,o="object"==typeof n?n.style+" "+n.variant+" "+n.weight+" "+n.size+"px/"+n.lineHeight+"px "+n.family:n,s=this._textCache[e],null==s&&(s=this._textCache[e]={}),l=s[o],null==l&&(l=s[o]={}),u=l[i],null==u){var h=t("<div></div>").html(i).css({position:"absolute","max-width":a,top:-9999}).appendTo(this.getTextLayer(e));"object"==typeof n?h.css({font:o,color:n.color}):"string"==typeof n&&h.addClass(n),u=l[i]={width:h.outerWidth(!0),height:h.outerHeight(!0),element:h,positions:[]},h.detach()}return u},e.prototype.addText=function(t,e,i,n,r,a,o,s,l){var u=this.getTextInfo(t,n,r,a,o),h=u.positions;"center"==s?e-=u.width/2:"right"==s&&(e-=u.width),"middle"==l?i-=u.height/2:"bottom"==l&&(i-=u.height);for(var c,d=0;c=h[d];d++)if(c.x==e&&c.y==i)return void(c.active=!0);c={active:!0,rendered:!1,element:h.length?u.element.clone():u.element,x:e,y:i},h.push(c),c.element.css({top:Math.round(i),left:Math.round(e),"text-align":s})},e.prototype.removeText=function(t,e,i,n,a,o){if(null==n){var s=this._textCache[t];if(null!=s)for(var l in s)if(r.call(s,l)){var u=s[l];for(var h in u)if(r.call(u,h))for(var c,d=u[h].positions,p=0;c=d[p];p++)c.active=!1}}else for(var c,d=this.getTextInfo(t,n,a,o).positions,p=0;c=d[p];p++)c.x==e&&c.y==i&&(c.active=!1)},t.plot=function(e,n,r){var a=new i(t(e),n,r,t.plot.plugins);return a},t.plot.version="0.8.3",t.plot.plugins=[],t.fn.plot=function(e,i){return this.each(function(){t.plot(this,e,i)})}}(jQuery)},function(t,e,i){i(755),$(function(){$("#form_validation").validate({rules:{checkbox:{required:!0},gender:{required:!0}},highlight:function(t){$(t).parents(".form-line").addClass("error")},unhighlight:function(t){$(t).parents(".form-line").removeClass("error")},errorPlacement:function(t,e){$(e).parents(".form-group").append(t)}}),$("#form_advanced_validation").validate({rules:{date:{customdate:!0},creditcard:{creditcard:!0}},highlight:function(t){$(t).parents(".form-line").addClass("error")},unhighlight:function(t){$(t).parents(".form-line").removeClass("error")},errorPlacement:function(t,e){$(e).parents(".form-group").append(t)}}),$.validator.addMethod("customdate",function(t,e){return t.match(/^\d\d\d\d?-\d\d?-\d\d$/)},"Please enter a date in the format YYYY-MM-DD."),$.validator.addMethod("creditcard",function(t,e){return t.match(/^\d\d\d\d?-\d\d\d\d?-\d\d\d\d?-\d\d\d\d$/)},"Please enter a credit card in the format XXXX-XXXX-XXXX-XXXX.")})},function(t,e,i){var n,r,a;!function(o){r=[i(13)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t){t.extend(t.fn,{validate:function(e){if(!this.length)return void(e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=t.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(e){i.submitButton=e.currentTarget,t(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(e){function n(){var n,r;return i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(n=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),!i.settings.submitHandler||(r=i.settings.submitHandler.call(i,i.currentForm,e),n&&n.remove(),void 0!==r&&r)}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,n()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):n():(i.focusInvalid(),!1)})),i)},valid:function(){var e,i,n;return t(this[0]).is("form")?e=this.validate().form():(n=[],e=!0,i=t(this[0].form).validate(),this.each(function(){e=i.element(this)&&e,e||(n=n.concat(i.errorList))}),i.errorList=n),e},rules:function(e,i){var n,r,a,o,s,l,u=this[0];if(null!=u&&(!u.form&&u.hasAttribute("contenteditable")&&(u.form=this.closest("form")[0],u.name=this.attr("name")),null!=u.form)){if(e)switch(n=t.data(u.form,"validator").settings,r=n.rules,a=t.validator.staticRules(u),e){case"add":t.extend(a,t.validator.normalizeRule(i)),delete a.messages,r[u.name]=a,i.messages&&(n.messages[u.name]=t.extend(n.messages[u.name],i.messages));break;case"remove":return i?(l={},t.each(i.split(/\s/),function(t,e){l[e]=a[e],delete a[e]}),l):(delete r[u.name],a)}return o=t.validator.normalizeRules(t.extend({},t.validator.classRules(u),t.validator.attributeRules(u),t.validator.dataRules(u),t.validator.staticRules(u)),u),o.required&&(s=o.required,delete o.required,o=t.extend({required:s},o)),o.remote&&(s=o.remote,delete o.remote,o=t.extend(o,{remote:s})),o}}}),t.extend(t.expr.pseudos||t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){var i=t(e).val();return null!==i&&!!t.trim(""+i)},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:void 0===i?e:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(new RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(e,i){var n=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===i.which&&""===this.elementValue(e)||t.inArray(i.keyCode,n)!==-1||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,n){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(n):t(e).addClass(i).removeClass(n)},unhighlight:function(e,i,n){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(n):t(e).removeClass(i).addClass(n)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}."),step:t.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){!this.form&&this.hasAttribute("contenteditable")&&(this.form=t(this).closest("form")[0],this.name=t(this).attr("name"));var i=t.data(this.form,"validator"),n="on"+e.type.replace(/^validate/,""),r=i.settings;r[n]&&!t(this).is(r.ignore)&&r[n].call(i,this,e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,n=this.groups={};t.each(this.settings.groups,function(e,i){"string"==typeof i&&(i=i.split(/\s/)),t.each(i,function(t,i){n[i]=e})}),i=this.settings.rules,t.each(i,function(e,n){i[e]=t.validator.normalizeRule(n)}),t(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",e).on("click.validate","select, option, [type='radio'], [type='checkbox']",e),this.settings.invalidHandler&&t(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var i,n,r=this.clean(e),a=this.validationTargetFor(r),o=this,s=!0;return void 0===a?delete this.invalid[r.name]:(this.prepareElement(a),this.currentElements=t(a),n=this.groups[a.name],n&&t.each(this.groups,function(t,e){e===n&&t!==a.name&&(r=o.validationTargetFor(o.clean(o.findByName(t))),r&&r.name in o.invalid&&(o.currentElements.push(r),s=o.check(r)&&s))}),i=this.check(a)!==!1,s=s&&i,i?this.invalid[a.name]=!1:this.invalid[a.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),t(e).attr("aria-invalid",!i)),s},showErrors:function(e){if(e){var i=this;t.extend(this.errorMap,e),this.errorList=t.map(this.errorMap,function(t,e){return{message:t,element:i.findByName(e)[0]}}),this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)void 0!==t[e]&&null!==t[e]&&t[e]!==!1&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var n=this.name||t(this).attr("name");return!n&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=t(this).closest("form")[0],this.name=n),!(n in i||!e.objectLength(t(this).rules()))&&(i[n]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([])},reset:function(){this.resetInternals(),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i,n,r=t(e),a=e.type;return"radio"===a||"checkbox"===a?this.findByName(e.name).filter(":checked").val():"number"===a&&"undefined"!=typeof e.validity?e.validity.badInput?"NaN":r.val():(i=e.hasAttribute("contenteditable")?r.text():r.val(),"file"===a?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(n=i.lastIndexOf("/"),n>=0?i.substr(n+1):(n=i.lastIndexOf("\\"),n>=0?i.substr(n+1):i)):"string"==typeof i?i.replace(/\r/g,""):i)},check:function(e){e=this.validationTargetFor(this.clean(e));var i,n,r,a,o=t(e).rules(),s=t.map(o,function(t,e){return e}).length,l=!1,u=this.elementValue(e);if("function"==typeof o.normalizer?a=o.normalizer:"function"==typeof this.settings.normalizer&&(a=this.settings.normalizer),a){if(u=a.call(e,u),"string"!=typeof u)throw new TypeError("The normalizer should return a string value.");delete o.normalizer}for(n in o){r={method:n,parameters:o[n]};try{if(i=t.validator.methods[n].call(this,u,e,r.parameters),"dependency-mismatch"===i&&1===s){l=!0;continue}if(l=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)return this.formatAndAdd(e,r),!1}catch(h){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+r.method+"' method.",h),h instanceof TypeError&&(h.message+=". Exception occurred when checking element "+e.id+", check the '"+r.method+"' method."),h}}if(!l)return this.objectLength(o)&&this.successList.push(e),!0},customDataMessage:function(e,i){return t(e).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,i){"string"==typeof i&&(i={method:i});var n=this.findDefined(this.customMessage(e.name,i.method),this.customDataMessage(e,i.method),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),r=/\$?\{(\d+)\}/g;return"function"==typeof n?n=n.call(this,i.parameters,e):r.test(n)&&(n=t.validator.format(n.replace(r,"{$1}"),i.parameters)),n},formatAndAdd:function(t,e){var i=this.defaultMessage(t,e);this.errorList.push({ message:i,element:t,method:e.method}),this.errorMap[t.name]=i,this.submitted[t.name]=i},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var n,r,a,o,s=this.errorsFor(e),l=this.idOrName(e),u=t(e).attr("aria-describedby");s.length?(s.removeClass(this.settings.validClass).addClass(this.settings.errorClass),s.html(i)):(s=t("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass).html(i||""),n=s,this.settings.wrapper&&(n=s.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement.call(this,n,t(e)):n.insertAfter(e),s.is("label")?s.attr("for",l):0===s.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(a=s.attr("id"),u?u.match(new RegExp("\\b"+this.escapeCssMeta(a)+"\\b"))||(u+=" "+a):u=a,t(e).attr("aria-describedby",u),r=this.groups[e.name],r&&(o=this,t.each(o.groups,function(e,i){i===r&&t("[name='"+o.escapeCssMeta(e)+"']",o.currentForm).attr("aria-describedby",s.attr("id"))})))),!i&&this.settings.success&&(s.text(""),"string"==typeof this.settings.success?s.addClass(this.settings.success):this.settings.success(s,e)),this.toShow=this.toShow.add(s)},errorsFor:function(e){var i=this.escapeCssMeta(this.idOrName(e)),n=t(e).attr("aria-describedby"),r="label[for='"+i+"'], label[for='"+i+"'] *";return n&&(r=r+", #"+this.escapeCssMeta(n).replace(/\s+/g,", #")),this.errors().filter(r)},escapeCssMeta:function(t){return t.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),t(e).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{"boolean":function(t){return t},string:function(e,i){return!!t(e,i.form).length},"function":function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,t(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass),i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.submitButton&&t("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e,i){return i="string"==typeof i&&i||"remote",t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:i})})},destroy:function(){this.resetForm(),t(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},n=t(e).attr("class");return n&&t.each(n.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(t,e,i,n){/min|max|step/.test(i)&&(null===e||/number|range|text/.test(e))&&(n=Number(n),isNaN(n)&&(n=void 0)),n||0===n?t[i]=n:e===i&&"range"!==e&&(t[i]=!0)},attributeRules:function(e){var i,n,r={},a=t(e),o=e.getAttribute("type");for(i in t.validator.methods)"required"===i?(n=e.getAttribute(i),""===n&&(n=!0),n=!!n):n=a.attr(i),this.normalizeAttributeRule(r,o,i,n);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(e){var i,n,r={},a=t(e),o=e.getAttribute("type");for(i in t.validator.methods)n=a.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(r,o,i,n);return r},staticRules:function(e){var i={},n=t.data(e.form,"validator");return n.settings.rules&&(i=t.validator.normalizeRule(n.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(n,r){if(r===!1)return void delete e[n];if(r.param||r.depends){var a=!0;switch(typeof r.depends){case"string":a=!!t(r.depends,i.form).length;break;case"function":a=r.depends.call(i,i)}a?e[n]=void 0===r.param||r.param:(t.data(i.form,"validator").resetElements(t(i)),delete e[n])}}),t.each(e,function(n,r){e[n]=t.isFunction(r)&&"normalizer"!==n?r(i):r}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,n){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==n?n:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,n){if(!this.depend(n,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var r=t(i).val();return r&&r.length>0}return this.checkable(i)?this.getLength(e,i)>0:e.length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(e,i,n){var r=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||r>=n},maxlength:function(e,i,n){var r=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||r<=n},rangelength:function(e,i,n){var r=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||r>=n[0]&&r<=n[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},step:function(e,i,n){var r,a=t(i).attr("type"),o="Step attribute on input type "+a+" is not supported.",s=["text","number","range"],l=new RegExp("\\b"+a+"\\b"),u=a&&!l.test(s.join()),h=function(t){var e=(""+t).match(/(?:\.(\d+))?$/);return e&&e[1]?e[1].length:0},c=function(t){return Math.round(t*Math.pow(10,r))},d=!0;if(u)throw new Error(o);return r=h(n),(h(e)>r||c(e)%c(n)!==0)&&(d=!1),this.optional(i)||d},equalTo:function(e,i,n){var r=t(n);return this.settings.onfocusout&&r.not(".validate-equalTo-blur").length&&r.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){t(i).valid()}),e===r.val()},remote:function(e,i,n,r){if(this.optional(i))return"dependency-mismatch";r="string"==typeof r&&r||"remote";var a,o,s,l=this.previousValue(i,r);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[i.name][r],this.settings.messages[i.name][r]=l.message,n="string"==typeof n&&{url:n}||n,s=t.param(t.extend({data:e},n.data)),l.old===s?l.valid:(l.old=s,a=this,this.startRequest(i),o={},o[i.name]=e,t.ajax(t.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:o,context:a.currentForm,success:function(t){var n,o,s,u=t===!0||"true"===t;a.settings.messages[i.name][r]=l.originalMessage,u?(s=a.formSubmitted,a.resetInternals(),a.toHide=a.errorsFor(i),a.formSubmitted=s,a.successList.push(i),a.invalid[i.name]=!1,a.showErrors()):(n={},o=t||a.defaultMessage(i,{method:r,parameters:e}),n[i.name]=l.message=o,a.invalid[i.name]=!0,a.showErrors(n)),l.valid=u,a.stopRequest(i,u)}},n)),"pending")}}});var e,i={};return t.ajaxPrefilter?t.ajaxPrefilter(function(t,e,n){var r=t.port;"abort"===t.mode&&(i[r]&&i[r].abort(),i[r]=n)}):(e=t.ajax,t.ajax=function(n){var r=("mode"in n?n:t.ajaxSettings).mode,a=("port"in n?n:t.ajaxSettings).port;return"abort"===r?(i[a]&&i[a].abort(),i[a]=e.apply(this,arguments),i[a]):e.apply(this,arguments)}),t})},function(t,e,i){i(757),i(758),i(759),i(760),t.exports=i(70)},function(t,e,i){var n,r,a;!function(o){r=[i(69),i(70)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t,e){function i(t){return isNaN(t)||29===new Date(t,2,0).getDate()}return e.extendAliases({"dd/mm/yyyy":{mask:"1/2/y",placeholder:"dd/mm/yyyy",regex:{val1pre:new RegExp("[0-3]"),val1:new RegExp("0[1-9]|[12][0-9]|3[01]"),val2pre:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|[12][0-9]|3[01])"+i+"[01])")},val2:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|[12][0-9])"+i+"(0[1-9]|1[012]))|(30"+i+"(0[13-9]|1[012]))|(31"+i+"(0[13578]|1[02]))")}},leapday:"29/02/",separator:"/",yearrange:{minyear:1900,maxyear:2099},isInYearRange:function(t,e,i){if(isNaN(t))return!1;var n=parseInt(t.concat(e.toString().slice(t.length))),r=parseInt(t.concat(i.toString().slice(t.length)));return!isNaN(n)&&e<=n&&n<=i||!isNaN(r)&&e<=r&&r<=i},determinebaseyear:function(t,e,i){var n=(new Date).getFullYear();if(t>n)return t;if(e<n){for(var r=e.toString().slice(0,2),a=e.toString().slice(2,4);e<r+i;)r--;var o=r+a;return t>o?t:o}if(t<=n&&n<=e){for(var s=n.toString().slice(0,2);e<s+i;)s--;var l=s+i;return l<t?t:l}return n},onKeyDown:function(i,n,r,a){var o=t(this);if(i.ctrlKey&&i.keyCode===e.keyCode.RIGHT){var s=new Date;o.val(s.getDate().toString()+(s.getMonth()+1).toString()+s.getFullYear().toString()),o.trigger("setvalue")}},getFrontValue:function(t,e,i){for(var n=0,r=0,a=0;a<t.length&&"2"!==t.charAt(a);a++){var o=i.definitions[t.charAt(a)];o?(n+=r,r=o.cardinality):r++}return e.join("").substr(n,r)},postValidation:function(t,e,n){var r,a,o=t.join("");return 0===n.mask.indexOf("y")?(a=o.substr(0,4),r=o.substring(4,10)):(a=o.substring(6,10),r=o.substr(0,6)),e&&(r!==n.leapday||i(a))},definitions:{1:{validator:function(t,e,i,n,r){var a=r.regex.val1.test(t);return n||a||t.charAt(1)!==r.separator&&-1==="-./".indexOf(t.charAt(1))||!(a=r.regex.val1.test("0"+t.charAt(0)))?a:(e.buffer[i-1]="0",{refreshFromBuffer:{start:i-1,end:i},pos:i,c:t.charAt(0)})},cardinality:2,prevalidator:[{validator:function(t,e,i,n,r){var a=t;isNaN(e.buffer[i+1])||(a+=e.buffer[i+1]);var o=1===a.length?r.regex.val1pre.test(a):r.regex.val1.test(a);if(o&&e.validPositions[i]&&(r.regex.val2(r.separator).test(t+e.validPositions[i].input)||(e.validPositions[i].input="0"===t?"1":"0")),!n&&!o){if(o=r.regex.val1.test(t+"0"))return e.buffer[i]=t,e.buffer[++i]="0",{pos:i,c:"0"};if(o=r.regex.val1.test("0"+t))return e.buffer[i]="0",i++,{pos:i}}return o},cardinality:1}]},2:{validator:function(t,e,i,n,r){var a=r.getFrontValue(e.mask,e.buffer,r);-1!==a.indexOf(r.placeholder[0])&&(a="01"+r.separator);var o=r.regex.val2(r.separator).test(a+t);return n||o||t.charAt(1)!==r.separator&&-1==="-./".indexOf(t.charAt(1))||!(o=r.regex.val2(r.separator).test(a+"0"+t.charAt(0)))?o:(e.buffer[i-1]="0",{refreshFromBuffer:{start:i-1,end:i},pos:i,c:t.charAt(0)})},cardinality:2,prevalidator:[{validator:function(t,e,i,n,r){isNaN(e.buffer[i+1])||(t+=e.buffer[i+1]);var a=r.getFrontValue(e.mask,e.buffer,r);-1!==a.indexOf(r.placeholder[0])&&(a="01"+r.separator);var o=1===t.length?r.regex.val2pre(r.separator).test(a+t):r.regex.val2(r.separator).test(a+t);return o&&e.validPositions[i]&&(r.regex.val2(r.separator).test(t+e.validPositions[i].input)||(e.validPositions[i].input="0"===t?"1":"0")),n||o||!(o=r.regex.val2(r.separator).test(a+"0"+t))?o:(e.buffer[i]="0",i++,{pos:i})},cardinality:1}]},y:{validator:function(t,e,i,n,r){return r.isInYearRange(t,r.yearrange.minyear,r.yearrange.maxyear)},cardinality:4,prevalidator:[{validator:function(t,e,i,n,r){var a=r.isInYearRange(t,r.yearrange.minyear,r.yearrange.maxyear);if(!n&&!a){var o=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,t+"0").toString().slice(0,1);if(a=r.isInYearRange(o+t,r.yearrange.minyear,r.yearrange.maxyear))return e.buffer[i++]=o.charAt(0),{pos:i};if(o=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,t+"0").toString().slice(0,2),a=r.isInYearRange(o+t,r.yearrange.minyear,r.yearrange.maxyear))return e.buffer[i++]=o.charAt(0),e.buffer[i++]=o.charAt(1),{pos:i}}return a},cardinality:1},{validator:function(t,e,i,n,r){var a=r.isInYearRange(t,r.yearrange.minyear,r.yearrange.maxyear);if(!n&&!a){var o=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,t).toString().slice(0,2);if(a=r.isInYearRange(t[0]+o[1]+t[1],r.yearrange.minyear,r.yearrange.maxyear))return e.buffer[i++]=o.charAt(1),{pos:i};if(o=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,t).toString().slice(0,2),a=r.isInYearRange(o+t,r.yearrange.minyear,r.yearrange.maxyear))return e.buffer[i-1]=o.charAt(0),e.buffer[i++]=o.charAt(1),e.buffer[i++]=t.charAt(0),{refreshFromBuffer:{start:i-3,end:i},pos:i}}return a},cardinality:2},{validator:function(t,e,i,n,r){return r.isInYearRange(t,r.yearrange.minyear,r.yearrange.maxyear)},cardinality:3}]}},insertMode:!1,autoUnmask:!1},"mm/dd/yyyy":{placeholder:"mm/dd/yyyy",alias:"dd/mm/yyyy",regex:{val2pre:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[13-9]|1[012])"+i+"[0-3])|(02"+i+"[0-2])")},val2:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+i+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+i+"30)|((0[13578]|1[02])"+i+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyDown:function(i,n,r,a){var o=t(this);if(i.ctrlKey&&i.keyCode===e.keyCode.RIGHT){var s=new Date;o.val((s.getMonth()+1).toString()+s.getDate().toString()+s.getFullYear().toString()),o.trigger("setvalue")}}},"yyyy/mm/dd":{mask:"y/1/2",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",leapday:"/02/29",onKeyDown:function(i,n,r,a){var o=t(this);if(i.ctrlKey&&i.keyCode===e.keyCode.RIGHT){var s=new Date;o.val(s.getFullYear().toString()+(s.getMonth()+1).toString()+s.getDate().toString()),o.trigger("setvalue")}}},"dd.mm.yyyy":{mask:"1.2.y",placeholder:"dd.mm.yyyy",leapday:"29.02.",separator:".",alias:"dd/mm/yyyy"},"dd-mm-yyyy":{mask:"1-2-y",placeholder:"dd-mm-yyyy",leapday:"29-02-",separator:"-",alias:"dd/mm/yyyy"},"mm.dd.yyyy":{mask:"1.2.y",placeholder:"mm.dd.yyyy",leapday:"02.29.",separator:".",alias:"mm/dd/yyyy"},"mm-dd-yyyy":{mask:"1-2-y",placeholder:"mm-dd-yyyy",leapday:"02-29-",separator:"-",alias:"mm/dd/yyyy"},"yyyy.mm.dd":{mask:"y.1.2",placeholder:"yyyy.mm.dd",leapday:".02.29",separator:".",alias:"yyyy/mm/dd"},"yyyy-mm-dd":{mask:"y-1-2",placeholder:"yyyy-mm-dd",leapday:"-02-29",separator:"-",alias:"yyyy/mm/dd"},datetime:{mask:"1/2/y h:s",placeholder:"dd/mm/yyyy hh:mm",alias:"dd/mm/yyyy",regex:{hrspre:new RegExp("[012]"),hrs24:new RegExp("2[0-4]|1[3-9]"),hrs:new RegExp("[01][0-9]|2[0-4]"),ampm:new RegExp("^[a|p|A|P][m|M]"),mspre:new RegExp("[0-5]"),ms:new RegExp("[0-5][0-9]")},timeseparator:":",hourFormat:"24",definitions:{h:{validator:function(t,e,i,n,r){if("24"===r.hourFormat&&24===parseInt(t,10))return e.buffer[i-1]="0",e.buffer[i]="0",{refreshFromBuffer:{start:i-1,end:i},c:"0"};var a=r.regex.hrs.test(t);if(!n&&!a&&(t.charAt(1)===r.timeseparator||-1!=="-.:".indexOf(t.charAt(1)))&&(a=r.regex.hrs.test("0"+t.charAt(0))))return e.buffer[i-1]="0",e.buffer[i]=t.charAt(0),i++,{refreshFromBuffer:{start:i-2,end:i},pos:i,c:r.timeseparator};if(a&&"24"!==r.hourFormat&&r.regex.hrs24.test(t)){var o=parseInt(t,10);return 24===o?(e.buffer[i+5]="a",e.buffer[i+6]="m"):(e.buffer[i+5]="p",e.buffer[i+6]="m"),(o-=12)<10?(e.buffer[i]=o.toString(),e.buffer[i-1]="0"):(e.buffer[i]=o.toString().charAt(1),e.buffer[i-1]=o.toString().charAt(0)),{refreshFromBuffer:{start:i-1,end:i+6},c:e.buffer[i]}}return a},cardinality:2,prevalidator:[{validator:function(t,e,i,n,r){var a=r.regex.hrspre.test(t);return n||a||!(a=r.regex.hrs.test("0"+t))?a:(e.buffer[i]="0",i++,{pos:i})},cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:function(t,e,i,n,r){var a=r.regex.mspre.test(t);return n||a||!(a=r.regex.ms.test("0"+t))?a:(e.buffer[i]="0",i++,{pos:i})},cardinality:1}]},t:{validator:function(t,e,i,n,r){return r.regex.ampm.test(t+"m")},casing:"lower",cardinality:1}},insertMode:!1,autoUnmask:!1},datetime12:{mask:"1/2/y h:s t\\m",placeholder:"dd/mm/yyyy hh:mm xm",alias:"datetime",hourFormat:"12"},"mm/dd/yyyy hh:mm xm":{mask:"1/2/y h:s t\\m",placeholder:"mm/dd/yyyy hh:mm xm",alias:"datetime12",regex:{val2pre:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[13-9]|1[012])"+i+"[0-3])|(02"+i+"[0-2])")},val2:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+i+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+i+"30)|((0[13578]|1[02])"+i+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyDown:function(i,n,r,a){var o=t(this);if(i.ctrlKey&&i.keyCode===e.keyCode.RIGHT){var s=new Date;o.val((s.getMonth()+1).toString()+s.getDate().toString()+s.getFullYear().toString()),o.trigger("setvalue")}}},"hh:mm t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"h:s t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"hh:mm:ss":{mask:"h:s:s",placeholder:"hh:mm:ss",alias:"datetime",autoUnmask:!1},"hh:mm":{mask:"h:s",placeholder:"hh:mm",alias:"datetime",autoUnmask:!1},date:{alias:"dd/mm/yyyy"},"mm/yyyy":{mask:"1/y",placeholder:"mm/yyyy",leapday:"donotuse",separator:"/",alias:"mm/dd/yyyy"},shamsi:{regex:{val2pre:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+i+"[0-3])")},val2:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+i+"(0[1-9]|[12][0-9]))|((0[1-9]|1[012])"+i+"30)|((0[1-6])"+i+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},yearrange:{minyear:1300,maxyear:1499},mask:"y/1/2",leapday:"/12/30",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",clearIncomplete:!0},"yyyy-mm-dd hh:mm:ss":{mask:"y-1-2 h:s:s",placeholder:"yyyy-mm-dd hh:mm:ss",alias:"datetime",separator:"-",leapday:"-02-29",regex:{val2pre:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[13-9]|1[012])"+i+"[0-3])|(02"+i+"[0-2])")},val2:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+i+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+i+"30)|((0[13578]|1[02])"+i+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},onKeyDown:function(t,e,i,n){}}}),e})},function(t,e,i){var n,r,a;!function(o){r=[i(69),i(70)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t,e){return e.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"#":{validator:"[0-9A-Fa-f]",cardinality:1,casing:"upper"}}),e.extendAliases({url:{definitions:{i:{validator:".",cardinality:1}},mask:"(\\http://)|(\\http\\s://)|(ftp://)|(ftp\\s://)i{+}",insertMode:!1,autoUnmask:!1,inputmode:"url"},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(t,e,i,n,r){return i-1>-1&&"."!==e.buffer[i-1]?(t=e.buffer[i-1]+t,t=i-2>-1&&"."!==e.buffer[i-2]?e.buffer[i-2]+t:"0"+t):t="00"+t,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(t)},cardinality:1}},onUnMask:function(t,e,i){return t},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,onBeforePaste:function(t,e){return(t=t.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",cardinality:1,casing:"lower"},"-":{validator:"[0-9A-Za-z-]",cardinality:1,casing:"lower"}},onUnMask:function(t,e,i){return t},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",cardinality:1,casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}}),e})},function(t,e,i){var n,r,a;!function(o){r=[i(69),i(70)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t,e,i){function n(t,i){for(var n="",r=0;r<t.length;r++)n+=e.prototype.definitions[t.charAt(r)]||i.definitions[t.charAt(r)]||i.optionalmarker.start===t.charAt(r)||i.optionalmarker.end===t.charAt(r)||i.quantifiermarker.start===t.charAt(r)||i.quantifiermarker.end===t.charAt(r)||i.groupmarker.start===t.charAt(r)||i.groupmarker.end===t.charAt(r)||i.alternatormarker===t.charAt(r)?"\\"+t.charAt(r):t.charAt(r);return n}return e.extendAliases({numeric:{mask:function(t){if(0!==t.repeat&&isNaN(t.integerDigits)&&(t.integerDigits=t.repeat),t.repeat=0,t.groupSeparator===t.radixPoint&&("."===t.radixPoint?t.groupSeparator=",":","===t.radixPoint?t.groupSeparator=".":t.groupSeparator="")," "===t.groupSeparator&&(t.skipOptionalPartCharacter=i),t.autoGroup=t.autoGroup&&""!==t.groupSeparator,t.autoGroup&&("string"==typeof t.groupSize&&isFinite(t.groupSize)&&(t.groupSize=parseInt(t.groupSize)),isFinite(t.integerDigits))){var e=Math.floor(t.integerDigits/t.groupSize),r=t.integerDigits%t.groupSize;t.integerDigits=parseInt(t.integerDigits)+(0===r?e-1:e),t.integerDigits<1&&(t.integerDigits="*")}t.placeholder.length>1&&(t.placeholder=t.placeholder.charAt(0)),"radixFocus"===t.positionCaretOnClick&&""===t.placeholder&&!1===t.integerOptional&&(t.positionCaretOnClick="lvp"),t.definitions[";"]=t.definitions["~"],t.definitions[";"].definitionSymbol="~",!0===t.numericInput&&(t.positionCaretOnClick="radixFocus"===t.positionCaretOnClick?"lvp":t.positionCaretOnClick,t.digitsOptional=!1,isNaN(t.digits)&&(t.digits=2),t.decimalProtect=!1);var a="[+]";if(a+=n(t.prefix,t),a+=!0===t.integerOptional?"~{1,"+t.integerDigits+"}":"~{"+t.integerDigits+"}",t.digits!==i){t.radixPointDefinitionSymbol=t.decimalProtect?":":t.radixPoint;var o=t.digits.toString().split(",");isFinite(o[0]&&o[1]&&isFinite(o[1]))?a+=t.radixPointDefinitionSymbol+";{"+t.digits+"}":(isNaN(t.digits)||parseInt(t.digits)>0)&&(a+=t.digitsOptional?"["+t.radixPointDefinitionSymbol+";{1,"+t.digits+"}]":t.radixPointDefinitionSymbol+";{"+t.digits+"}")}return a+=n(t.suffix,t),a+="[-]",t.greedy=!1,a},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:!1,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,inputmode:"numeric",preValidation:function(e,n,r,a,o){if("-"===r||r===o.negationSymbol.front)return!0===o.allowMinus&&(o.isNegative=o.isNegative===i||!o.isNegative,""===e.join("")||{caret:n,dopost:!0});if(!1===a&&r===o.radixPoint&&o.digits!==i&&(isNaN(o.digits)||parseInt(o.digits)>0)){var s=t.inArray(o.radixPoint,e);if(-1!==s)return!0===o.numericInput?n===s:{caret:s+1}}return!0},postValidation:function(n,r,a){var o=a.suffix.split(""),s=a.prefix.split("");if(r.pos===i&&r.caret!==i&&!0!==r.dopost)return r;var l=r.caret!==i?r.caret:r.pos,u=n.slice();a.numericInput&&(l=u.length-l-1,u=u.reverse());var h=u[l];if(h===a.groupSeparator&&(h=u[l+=1]),l===u.length-a.suffix.length-1&&h===a.radixPoint)return r;h!==i&&h!==a.radixPoint&&h!==a.negationSymbol.front&&h!==a.negationSymbol.back&&(u[l]="?",a.prefix.length>0&&l>=(!1===a.isNegative?1:0)&&l<a.prefix.length-1+(!1===a.isNegative?1:0)?s[l-(!1===a.isNegative?1:0)]="?":a.suffix.length>0&&l>=u.length-a.suffix.length-(!1===a.isNegative?1:0)&&(o[l-(u.length-a.suffix.length-(!1===a.isNegative?1:0))]="?")),s=s.join(""),o=o.join("");var c=u.join("").replace(s,"");if(c=c.replace(o,""),c=c.replace(new RegExp(e.escapeRegex(a.groupSeparator),"g"),""),c=c.replace(new RegExp("[-"+e.escapeRegex(a.negationSymbol.front)+"]","g"),""),c=c.replace(new RegExp(e.escapeRegex(a.negationSymbol.back)+"$"),""),isNaN(a.placeholder)&&(c=c.replace(new RegExp(e.escapeRegex(a.placeholder),"g"),"")),c.length>1&&1!==c.indexOf(a.radixPoint)&&("0"===h&&(c=c.replace(/^\?/g,"")),c=c.replace(/^0/g,"")),c.charAt(0)===a.radixPoint&&""!==a.radixPoint&&!0!==a.numericInput&&(c="0"+c),""!==c){if(c=c.split(""),(!a.digitsOptional||a.enforceDigitsOnBlur&&"blur"===r.event)&&isFinite(a.digits)){var d=t.inArray(a.radixPoint,c),p=t.inArray(a.radixPoint,u);-1===d&&(c.push(a.radixPoint),d=c.length-1);for(var f=1;f<=a.digits;f++)a.digitsOptional&&(!a.enforceDigitsOnBlur||"blur"!==r.event)||c[d+f]!==i&&c[d+f]!==a.placeholder.charAt(0)?-1!==p&&u[p+f]!==i&&(c[d+f]=c[d+f]||u[p+f]):c[d+f]=r.placeholder||a.placeholder.charAt(0)}if(!0!==a.autoGroup||""===a.groupSeparator||h===a.radixPoint&&r.pos===i&&!r.dopost)c=c.join("");else{var g=c[c.length-1]===a.radixPoint&&r.c===a.radixPoint;c=e(function(t,e){var i="";if(i+="("+e.groupSeparator+"*{"+e.groupSize+"}){*}",""!==e.radixPoint){var n=t.join("").split(e.radixPoint);n[1]&&(i+=e.radixPoint+"*{"+n[1].match(/^\d*\??\d*/)[0].length+"}")}return i}(c,a),{numericInput:!0,jitMasking:!0,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(c.join("")),g&&(c+=a.radixPoint),c.charAt(0)===a.groupSeparator&&c.substr(1)}}if(a.isNegative&&"blur"===r.event&&(a.isNegative="0"!==c),c=s+c,c+=o,a.isNegative&&(c=a.negationSymbol.front+c,c+=a.negationSymbol.back),c=c.split(""),h!==i)if(h!==a.radixPoint&&h!==a.negationSymbol.front&&h!==a.negationSymbol.back)(l=t.inArray("?",c))>-1?c[l]=h:l=r.caret||0;else if(h===a.radixPoint||h===a.negationSymbol.front||h===a.negationSymbol.back){var m=t.inArray(h,c);-1!==m&&(l=m)}a.numericInput&&(l=c.length-l-1,c=c.reverse());var v={caret:h===i||r.pos!==i?l+(a.numericInput?-1:1):l,buffer:c,refreshFromBuffer:r.dopost||n.join("")!==c.join("")};return v.refreshFromBuffer?v:r},onBeforeWrite:function(n,r,a,o){if(n)switch(n.type){case"keydown":return o.postValidation(r,{caret:a,dopost:!0},o);case"blur":case"checkval":var s;if(function(t){t.parseMinMaxOptions===i&&(null!==t.min&&(t.min=t.min.toString().replace(new RegExp(e.escapeRegex(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.min=t.min.replace(t.radixPoint,".")),t.min=isFinite(t.min)?parseFloat(t.min):NaN,isNaN(t.min)&&(t.min=Number.MIN_VALUE)),null!==t.max&&(t.max=t.max.toString().replace(new RegExp(e.escapeRegex(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.max=t.max.replace(t.radixPoint,".")),t.max=isFinite(t.max)?parseFloat(t.max):NaN,isNaN(t.max)&&(t.max=Number.MAX_VALUE)),t.parseMinMaxOptions="done")}(o),null!==o.min||null!==o.max){if(s=o.onUnMask(r.join(""),i,t.extend({},o,{unmaskAsNumber:!0})),null!==o.min&&s<o.min)return o.isNegative=o.min<0,o.postValidation(o.min.toString().replace(".",o.radixPoint).split(""),{caret:a,dopost:!0,placeholder:"0"},o);if(null!==o.max&&s>o.max)return o.isNegative=o.max<0,o.postValidation(o.max.toString().replace(".",o.radixPoint).split(""),{caret:a,dopost:!0,placeholder:"0"},o)}return o.postValidation(r,{caret:a,placeholder:"0",event:"blur"},o);case"_checkval":return{caret:a}}},regex:{integerPart:function(t,i){return i?new RegExp("["+e.escapeRegex(t.negationSymbol.front)+"+]?"):new RegExp("["+e.escapeRegex(t.negationSymbol.front)+"+]?\\d+")},integerNPart:function(t){return new RegExp("[\\d"+e.escapeRegex(t.groupSeparator)+e.escapeRegex(t.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(t,n,r,a,o,s){var l=a?new RegExp("[0-9"+e.escapeRegex(o.groupSeparator)+"]").test(t):new RegExp("[0-9]").test(t);if(!0===l){if(!0!==o.numericInput&&n.validPositions[r]!==i&&"~"===n.validPositions[r].match.def&&!s){var u=n.buffer.join(""),h=(u=(u=u.replace(new RegExp("[-"+e.escapeRegex(o.negationSymbol.front)+"]","g"),"")).replace(new RegExp(e.escapeRegex(o.negationSymbol.back)+"$"),"")).split(o.radixPoint);h.length>1&&(h[1]=h[1].replace(/0/g,o.placeholder.charAt(0))),"0"===h[0]&&(h[0]=h[0].replace(/0/g,o.placeholder.charAt(0))),u=h[0]+o.radixPoint+h[1]||"";var c=n._buffer.join("");for(u===o.radixPoint&&(u=c);null===u.match(e.escapeRegex(c)+"$");)c=c.slice(1);l=(u=(u=u.replace(c,"")).split(""))[r]===i?{pos:r,remove:r}:{pos:r}}}else a||t!==o.radixPoint||n.validPositions[r-1]!==i||(n.buffer[r]="0",l={pos:r+1});return l},cardinality:1},"+":{validator:function(t,e,i,n,r){return r.allowMinus&&("-"===t||t===r.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function(t,e,i,n,r){return r.allowMinus&&t===r.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function(t,i,n,r,a){var o="["+e.escapeRegex(a.radixPoint)+"]",s=new RegExp(o).test(t);return s&&i.validPositions[n]&&i.validPositions[n].match.placeholder===a.radixPoint&&(s={caret:n+1}),s},cardinality:1,placeholder:function(t){return t.radixPoint}}},onUnMask:function(t,i,n){if(""===i&&!0===n.nullable)return i;var r=t.replace(n.prefix,"");return r=r.replace(n.suffix,""),r=r.replace(new RegExp(e.escapeRegex(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(r=r.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==r.indexOf(n.radixPoint)&&(r=r.replace(e.escapeRegex.call(this,n.radixPoint),".")),r=r.replace(new RegExp("^"+e.escapeRegex(n.negationSymbol.front)),"-"),r=r.replace(new RegExp(e.escapeRegex(n.negationSymbol.back)+"$"),""),Number(r)):r},isComplete:function(t,i){var n=t.join("");if(t.slice().join("")!==n)return!1;var r=n.replace(i.prefix,"");return r=r.replace(i.suffix,""),r=r.replace(new RegExp(e.escapeRegex(i.groupSeparator),"g"),""),","===i.radixPoint&&(r=r.replace(e.escapeRegex(i.radixPoint),".")),isFinite(r)},onBeforeMask:function(t,n){if(n.isNegative=i,t=t.toString().charAt(t.length-1)===n.radixPoint?t.toString().substr(0,t.length-1):t.toString(), ""!==n.radixPoint&&isFinite(t)){var r=t.split("."),a=""!==n.groupSeparator?parseInt(n.groupSize):0;2===r.length&&(r[0].length>a||r[1].length>a||r[0].length<=a&&r[1].length<a)&&(t=t.replace(".",n.radixPoint))}var o=t.match(/,/g),s=t.match(/\./g);if(t=s&&o?s.length>o.length?(t=t.replace(/\./g,"")).replace(",",n.radixPoint):o.length>s.length?(t=t.replace(/,/g,"")).replace(".",n.radixPoint):t.indexOf(".")<t.indexOf(",")?t.replace(/\./g,""):t.replace(/,/g,""):t.replace(new RegExp(e.escapeRegex(n.groupSeparator),"g"),""),0===n.digits&&(-1!==t.indexOf(".")?t=t.substring(0,t.indexOf(".")):-1!==t.indexOf(",")&&(t=t.substring(0,t.indexOf(",")))),""!==n.radixPoint&&isFinite(n.digits)&&-1!==t.indexOf(n.radixPoint)){var l=t.split(n.radixPoint)[1].match(new RegExp("\\d*"))[0];if(parseInt(n.digits)<l.toString().length){var u=Math.pow(10,parseInt(n.digits));t=t.replace(e.escapeRegex(n.radixPoint),"."),t=(t=Math.round(parseFloat(t)*u)/u).toString().replace(".",n.radixPoint)}}return t},canClearPosition:function(t,e,i,n,r){var a=t.validPositions[e],o=a.input!==r.radixPoint||null!==t.validPositions[e].match.fn&&!1===r.decimalProtect||a.input===r.radixPoint&&t.validPositions[e+1]&&null===t.validPositions[e+1].match.fn||isFinite(a.input)||e===i||a.input===r.groupSeparator||a.input===r.negationSymbol.front||a.input===r.negationSymbol.back;return!o||"+"!==a.match.nativeDef&&"-"!==a.match.nativeDef||(r.isNegative=!1),o},onKeyDown:function(i,n,r,a){var o=t(this);if(i.ctrlKey)switch(i.keyCode){case e.keyCode.UP:o.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(a.step)),o.trigger("setvalue");break;case e.keyCode.DOWN:o.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(a.step)),o.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,digitsOptional:!0,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowMinus:!1}}),e})},function(t,e,i){var n,r,a;!function(o){r=[i(69),i(70)],n=o,a="function"==typeof n?n.apply(e,r):n,!(void 0!==a&&(t.exports=a))}(function(t,e){function i(t,e){var i=(t.mask||t).replace(/#/g,"9").replace(/\)/,"9").replace(/[+()#-]/g,""),n=(e.mask||e).replace(/#/g,"9").replace(/\)/,"9").replace(/[+()#-]/g,""),r=(t.mask||t).split("#")[0],a=(e.mask||e).split("#")[0];return 0===a.indexOf(r)?-1:0===r.indexOf(a)?1:i.localeCompare(n)}var n=e.prototype.analyseMask;return e.prototype.analyseMask=function(e,i,r){function a(t,i,n){i=i||"",n=n||s,""!==i&&(n[i]={});for(var r="",o=n[i]||n,l=t.length-1;l>=0;l--)o[r=(e=t[l].mask||t[l]).substr(0,1)]=o[r]||[],o[r].unshift(e.substr(1)),t.splice(l,1);for(var u in o)o[u].length>500&&a(o[u].slice(),u,o)}function o(e){var i="",n=[];for(var a in e)t.isArray(e[a])?1===e[a].length?n.push(a+e[a]):n.push(a+r.groupmarker.start+e[a].join(r.groupmarker.end+r.alternatormarker+r.groupmarker.start)+r.groupmarker.end):n.push(a+o(e[a]));return i+=1===n.length?n[0]:r.groupmarker.start+n.join(r.groupmarker.end+r.alternatormarker+r.groupmarker.start)+r.groupmarker.end}var s={};return r.phoneCodes&&(r.phoneCodes&&r.phoneCodes.length>1e3&&(a((e=e.substr(1,e.length-2)).split(r.groupmarker.end+r.alternatormarker+r.groupmarker.start)),e=o(s)),e=e.replace(/9/g,"\\9")),n.call(this,e,i,r)},e.extendAliases({abstractphone:{groupmarker:{start:"<",end:">"},countrycode:"",phoneCodes:[],mask:function(t){return t.definitions={"#":e.prototype.definitions[9]},t.phoneCodes.sort(i)},keepStatic:!0,onBeforeMask:function(t,e){var i=t.replace(/^0{1,2}/,"").replace(/[\s]/g,"");return(i.indexOf(e.countrycode)>1||-1===i.indexOf(e.countrycode))&&(i="+"+e.countrycode+i),i},onUnMask:function(t,e,i){return t.replace(/[()#-]/g,"")},inputmode:"tel"}}),e})}]);