1jQuery.fn.highlight=function(c){function e(b,c){var d=0;if(3==b.nodeType){var a=b.data.toUpperCase().indexOf(c),a=a-(b.data.substr(0,a).toUpperCase().length-b.data.substr(0,a).length);if(0<=a){d=document.createElement("em");d.className="highlight";a=b.splitText(a);a.splitText(c.length);var f=a.cloneNode(!0);d.appendChild(f);a.parentNode.replaceChild(d,a);d=1}}else if(1==b.nodeType&&b.childNodes&&!/(script|style)/i.test(b.tagName))for(a=0;a<b.childNodes.length;++a)a+=e(b.childNodes[a],c);return d} 2return this.length&&c&&c.length?this.each(function(){e(this,c.toUpperCase())}):this};jQuery.fn.removeHighlight=function(){return this.find("em.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode)replaceChild(this.firstChild,this),normalize()}).end()};$(document).ready(function(){if($(".js-text-search").length){var term=$(".js-text-search").val();if(term!=""&&term!=null){term=term.replace(/&/g,"\x26");var splitted=term.split(" ");for(var i=0;i<splitted.length;i++)$(".search-result").highlight(splitted[i])}}});!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){function a(){return sd.apply(null,arguments)}function b(a){sd=a}function c(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function d(a){return null!=a&&"[object Object]"===Object.prototype.toString.call(a)}function e(a){var b;for(b in a)return!1;return!0}function f(a){return void 0===a}function g(a){return"number"== 3typeof a||"[object Number]"===Object.prototype.toString.call(a)}function h(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function i(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function j(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function k(a,b){for(var c in b)j(b,c)&&(a[c]=b[c]);return j(b,"toString")&&(a.toString=b.toString),j(b,"valueOf")&&(a.valueOf=b.valueOf),a}function l(a,b,c,d){return sb(a,b,c,d,!0).utc()}function m(){return{empty:!1, 4unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function n(a){return null==a._pf&&(a._pf=m()),a._pf}function o(a){if(null==a._isValid){var b=n(a),c=ud.call(b.parsedDateParts,function(a){return null!=a}),d=!isNaN(a._d.getTime())&&b.overflow<0&&!b.empty&&!b.invalidMonth&&!b.invalidWeekday&&!b.nullInput&&!b.invalidFormat&&!b.userInvalidated&&(!b.meridiem|| 5b.meridiem&&c);if(a._strict&&(d=d&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void 0===b.bigHour),null!=Object.isFrozen&&Object.isFrozen(a))return d;a._isValid=d}return a._isValid}function p(a){var b=l(NaN);return null!=a?k(n(b),a):n(b).userInvalidated=!0,b}function q(a,b){var c,d,e;if(f(b._isAMomentObject)||(a._isAMomentObject=b._isAMomentObject),f(b._i)||(a._i=b._i),f(b._f)||(a._f=b._f),f(b._l)||(a._l=b._l),f(b._strict)||(a._strict=b._strict),f(b._tzm)||(a._tzm=b._tzm),f(b._isUTC)||(a._isUTC= 6b._isUTC),f(b._offset)||(a._offset=b._offset),f(b._pf)||(a._pf=n(b)),f(b._locale)||(a._locale=b._locale),vd.length>0)for(c=0;c<vd.length;c++)d=vd[c],e=b[d],f(e)||(a[d]=e);return a}function r(b){q(this,b),this._d=new Date(null!=b._d?b._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),wd===!1&&(wd=!0,a.updateOffset(this),wd=!1)}function s(a){return a instanceof r||null!=a&&null!=a._isAMomentObject}function t(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function u(a){var b=+a,c=0;return 0!==b&& 7isFinite(b)&&(c=t(b)),c}function v(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;d<e;d++)(c&&a[d]!==b[d]||!c&&u(a[d])!==u(b[d]))&&g++;return g+f}function w(b){a.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+b)}function x(b,c){var d=!0;return k(function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,b),d){for(var e,f=[],g=0;g<arguments.length;g++){if(e="","object"==typeof arguments[g]){e+= 8"\n["+g+"] ";for(var h in arguments[0])e+=h+": "+arguments[0][h]+", ";e=e.slice(0,-2)}else e=arguments[g];f.push(e)}w(b+"\nArguments: "+Array.prototype.slice.call(f).join("")+"\n"+(new Error).stack),d=!1}return c.apply(this,arguments)},c)}function y(b,c){null!=a.deprecationHandler&&a.deprecationHandler(b,c),xd[b]||(w(c),xd[b]=!0)}function z(a){return a instanceof Function||"[object Function]"===Object.prototype.toString.call(a)}function A(a){var b,c;for(c in a)b=a[c],z(b)?this[c]=b:this["_"+c]=b; 9this._config=a,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function B(a,b){var c,e=k({},a);for(c in b)j(b,c)&&(d(a[c])&&d(b[c])?(e[c]={},k(e[c],a[c]),k(e[c],b[c])):null!=b[c]?e[c]=b[c]:delete e[c]);
9for(c in a)j(a,c)&&!j(b,c)&&d(a[c])&&(e[c]=k({},e[c]));return e}function C(a){null!=a&&this.set(a)}function D(a,b,c){var d=this._calendar[a]||this._calendar.sameElse;return z(d)?d.call(b,c):d}function E(a){var b=this._longDateFormat[a], 10c=this._longDateFormat[a.toUpperCase()];return b||!c?b:(this._longDateFormat[a]=c.replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a])}function F(){return this._invalidDate}function G(a){return this._ordinal.replace("%d",a)}function H(a,b,c,d){var e=this._relativeTime[c];return z(e)?e(a,b,c,d):e.replace(/%d/i,a)}function I(a,b){var c=this._relativeTime[a>0?"future":"past"];return z(c)?c(b):c.replace(/%s/i,b)}function J(a,b){var c=a.toLowerCase();Hd[c]=Hd[c+"s"]=Hd[b]= 11a}function K(a){return"string"==typeof a?Hd[a]||Hd[a.toLowerCase()]:void 0}function L(a){var b,c,d={};for(c in a)j(a,c)&&(b=K(c),b&&(d[b]=a[c]));return d}function M(a,b){Id[a]=b}function N(a){var b=[];for(var c in a)b.push({unit:c,priority:Id[c]});return b.sort(function(a,b){return a.priority-b.priority}),b}function O(b,c){return function(d){return null!=d?(Q(this,b,d),a.updateOffset(this,c),this):P(this,b)}}function P(a,b){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+b]():NaN}function Q(a,b, 12c){a.isValid()&&a._d["set"+(a._isUTC?"UTC":"")+b](c)}function R(a){return a=K(a),z(this[a])?this[a]():this}function S(a,b){if("object"==typeof a){a=L(a);for(var c=N(a),d=0;d<c.length;d++)this[c[d].unit](a[c[d].unit])}else if(a=K(a),z(this[a]))return this[a](b);return this}function T(a,b,c){var d=""+Math.abs(a),e=b-d.length,f=a>=0;return(f?c?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+d}function U(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(Md[a]=e),b&& 13(Md[b[0]]=function(){return T(e.apply(this,arguments),b[1],b[2])}),c&&(Md[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function V(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function W(a){var b,c,d=a.match(Jd);for(b=0,c=d.length;b<c;b++)Md[d[b]]?d[b]=Md[d[b]]:d[b]=V(d[b]);return function(b){var e,f="";for(e=0;e<c;e++)f+=z(d[e])?d[e].call(b,a):d[e];return f}}function X(a,b){return a.isValid()?(b=Y(b,a.localeData()),Ld[b]=Ld[b]||W(b),Ld[b](a)): 14a.localeData().invalidDate()}function Y(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Kd.lastIndex=0;d>=0&&Kd.test(a);)a=a.replace(Kd,c),Kd.lastIndex=0,d-=1;return a}function Z(a,b,c){ce[a]=z(b)?b:function(a,d){return a&&c?c:b}}function $(a,b){return j(ce,a)?ce[a](b._strict,b._locale):new RegExp(_(a))}function _(a){return aa(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}))}function aa(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g, 15"\\$\x26")}function ba(a,b){var c,d=b;for("string"==typeof a&&(a=[a]),g(b)&&(d=function(a,c){c[b]=u(a)}),c=0;c<a.length;c++)de[a[c]]=d}function ca(a,b){ba(a,function(a,c,d,e){d._w=d._w||{},b(a,d._w,d,e)})}function da(a,b,c){null!=b&&j(de,a)&&de[a](b,c._a,c,a)}function ea(a,b){return(new Date(Date.UTC(a,b+1,0))).getUTCDate()}function fa(a,b){return a?c(this._months)?this._months[a.month()]:this._months[(this._months.isFormat||oe).test(b)?"format":"standalone"][a.month()]:c(this._months)?this._months: 16this._months.standalone}function ga(a,b){return a?c(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[oe.test(b)?"format":"standalone"][a.month()]:c(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ha(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],d=0;d<12;++d)f=l([2E3,d]),this._shortMonthsParse[d]=this.monthsShort(f,"").toLocaleLowerCase(),this._longMonthsParse[d]= 17this.months(f,"").toLocaleLowerCase();return c?"MMM"===b?(e=ne.call(this._shortMonthsParse,g),e!==-1?e:null):(e=ne.call(this._longMonthsParse,g),e!==-1?e:null):"MMM"===b?(e=ne.call(this._shortMonthsParse,g),e!==-1?e:(e=ne.call(this._longMonthsParse,g),e!==-1?e:null)):(e=ne.call(this._longMonthsParse,g),e!==-1?e:(e=ne.call(this._shortMonthsParse,g),e!==-1?e:null))}function ia(a,b,c){var d,e,f;if(this._monthsParseExact)return ha.call(this,a,b,c);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse= 18[],this._shortMonthsParse=[]),d=0;d<12;d++){if(e=l([2E3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d; 19if(!c&&this._monthsParse[d].test(a))return d}}function ja(a,b){var c;if(!a.isValid())return a;
vendor: 7,990 bytes, lines 19-34
19if("string"==typeof b)if(/^\d+$/.test(b))b=u(b);else if(b=a.localeData().monthsParse(b),!g(b))return a;return c=Math.min(a.date(),ea(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a}function ka(b){return null!=b?(ja(this,b),a.updateOffset(this,!0),this):P(this,"Month")}function la(){return ea(this.year(),this.month())}function ma(a){return this._monthsParseExact?(j(this,"_monthsRegex")||oa.call(this), 20a?this._monthsShortStrictRegex:this._monthsShortRegex):(j(this,"_monthsShortRegex")||(this._monthsShortRegex=re),this._monthsShortStrictRegex&&a?this._monthsShortStrictRegex:this._monthsShortRegex)}function na(a){return this._monthsParseExact?(j(this,"_monthsRegex")||oa.call(this),a?this._monthsStrictRegex:this._monthsRegex):(j(this,"_monthsRegex")||(this._monthsRegex=se),this._monthsStrictRegex&&a?this._monthsStrictRegex:this._monthsRegex)}function oa(){function a(a,b){return b.length-a.length}var b, 21c,d=[],e=[],f=[];for(b=0;b<12;b++)c=l([2E3,b]),d.push(this.monthsShort(c,"")),e.push(this.months(c,"")),f.push(this.months(c,"")),f.push(this.monthsShort(c,""));for(d.sort(a),e.sort(a),f.sort(a),b=0;b<12;b++)d[b]=aa(d[b]),e[b]=aa(e[b]);for(b=0;b<24;b++)f[b]=aa(f[b]);this._monthsRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+e.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+d.join("|")+")","i")}function pa(a){return qa(a)? 22366:365}function qa(a){return a%4===0&&a%100!==0||a%400===0}function ra(){return qa(this.year())}function sa(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return a<100&&a>=0&&isFinite(h.getFullYear())&&h.setFullYear(a),h}function ta(a){var b=new Date(Date.UTC.apply(null,arguments));return a<100&&a>=0&&isFinite(b.getUTCFullYear())&&b.setUTCFullYear(a),b}function ua(a,b,c){var d=7+b-c,e=(7+ta(a,0,d).getUTCDay()-b)%7;return-e+d-1}function va(a,b,c,d,e){var f,g,h=(7+c-d)%7,i=ua(a,d,e),j=1+7*(b-1)+h+i; 23return j<=0?(f=a-1,g=pa(f)+j):j>pa(a)?(f=a+1,g=j-pa(a)):(f=a,g=j),{year:f,dayOfYear:g}}function wa(a,b,c){var d,e,f=ua(a.year(),b,c),g=Math.floor((a.dayOfYear()-f-1)/7)+1;return g<1?(e=a.year()-1,d=g+xa(e,b,c)):g>xa(a.year(),b,c)?(d=g-xa(a.year(),b,c),e=a.year()+1):(e=a.year(),d=g),{week:d,year:e}}function xa(a,b,c){var d=ua(a,b,c),e=ua(a+1,b,c);return(pa(a)-d+e)/7}function ya(a){return wa(a,this._week.dow,this._week.doy).week}function za(){return this._week.dow}function Aa(){return this._week.doy} 24function Ba(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")}function Ca(a){var b=wa(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")}function Da(a,b){return"string"!=typeof a?a:isNaN(a)?(a=b.weekdaysParse(a),"number"==typeof a?a:null):parseInt(a,10)}function Ea(a,b){return"string"==typeof a?b.weekdaysParse(a)%7||7:isNaN(a)?null:a}function Fa(a,b){return a?c(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(b)?"format":"standalone"][a.day()]: 25c(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ga(a){return a?this._weekdaysShort[a.day()]:this._weekdaysShort}function Ha(a){return a?this._weekdaysMin[a.day()]:this._weekdaysMin}function Ia(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],d=0;d<7;++d)f=l([2E3,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(f, 26"").toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(f,"").toLocaleLowerCase();return c?"dddd"===b?(e=ne.call(this._weekdaysParse,g),e!==-1?e:null):"ddd"===b?(e=ne.call(this._shortWeekdaysParse,g),e!==-1?e:null):(e=ne.call(this._minWeekdaysParse,g),e!==-1?e:null):"dddd"===b?(e=ne.call(this._weekdaysParse,g),e!==-1?e:(e=ne.call(this._shortWeekdaysParse,g),e!==-1?e:(e=ne.call(this._minWeekdaysParse,g),e!==-1?e:null))):"ddd"===b?(e=ne.call(this._shortWeekdaysParse,g),e!==-1?e:(e=ne.call(this._weekdaysParse, 27g),e!==-1?e:(e=ne.call(this._minWeekdaysParse,g),e!==-1?e:null))):(e=ne.call(this._minWeekdaysParse,g),e!==-1?e:(e=ne.call(this._weekdaysParse,g),e!==-1?e:(e=ne.call(this._shortWeekdaysParse,g),e!==-1?e:null)))}function Ja(a,b,c){var d,e,f;if(this._weekdaysParseExact)return Ia.call(this,a,b,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),d=0;d<7;d++){if(e=l([2E3,1]).day(d),c&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]= 28new RegExp("^"+this.weekdays(e,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(e,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(e,"").replace(".",".?")+"$","i")),this._weekdaysParse[d]||(f="^"+this.weekdays(e,"")+"|^"+this.weekdaysShort(e,"")+"|^"+this.weekdaysMin(e,""),this._weekdaysParse[d]=new RegExp(f.replace(".",""),"i")),c&&"dddd"===b&&this._fullWeekdaysParse[d].test(a))return d;if(c&&"ddd"===b&&this._shortWeekdaysParse[d].test(a))return d; 29if(c&&"dd"===b&&this._minWeekdaysParse[d].test(a))return d;if(!c&&this._weekdaysParse[d].test(a))return d}}function Ka(a){if(!this.isValid())return null!=a?this:NaN;var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=Da(a,this.localeData()),this.add(a-b,"d")):b}function La(a){if(!this.isValid())return null!=a?this:NaN;var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")}function Ma(a){if(!this.isValid())return null!=a?this:NaN;if(null!=a){var b= 30Ea(a,this.localeData());return this.day(this.day()%7?b:b-7)}return this.day()||7}function Na(a){return this._weekdaysParseExact?(j(this,"_weekdaysRegex")||Qa.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(j(this,"_weekdaysRegex")||(this._weekdaysRegex=ye),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function Oa(a){return this._weekdaysParseExact?(j(this,"_weekdaysRegex")||Qa.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(j(this, 31"_weekdaysShortRegex")||(this._weekdaysShortRegex=ze),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Pa(a){return this._weekdaysParseExact?(j(this,"_weekdaysRegex")||Qa.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(j(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ae),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qa(){function a(a,b){return b.length-a.length}var b,c,d,e,f,g= 32[],h=[],i=[],j=[];for(b=0;b<7;b++)c=l([2E3,1]).day(b),d=this.weekdaysMin(c,""),e=this.weekdaysShort(c,""),f=this.weekdays(c,""),g.push(d),h.push(e),i.push(f),j.push(d),j.push(e),j.push(f);for(g.sort(a),h.sort(a),i.sort(a),j.sort(a),b=0;b<7;b++)h[b]=aa(h[b]),i[b]=aa(i[b]),j[b]=aa(j[b]);this._weekdaysRegex=new RegExp("^("+j.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex= 33new RegExp("^("+h.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}function Ra(){return this.hours()%12||12}function Sa(){return this.hours()||24}function Ta(a,b){U(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function Ua(a,b){return b._meridiemParse}function Va(a){return"p"===(a+"").toLowerCase().charAt(0)}function Wa(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function Xa(a){return a?a.toLowerCase().replace("_","-"):a}function Ya(a){for(var b, 34c,d,e,f=0;f<a.length;){for(e=Xa(a[f]).split("-"),b=e.length,c=Xa(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=Za(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&v(e,c,!0)>=b-1)break;b--}f++}return null}function Za(a){var b=null;if(!Fe[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=Be._abbr,require("./locale/"+a),$a(b)}catch(a){}return Fe[a]}function $a(a,b){var c;
34return a&&(c=f(b)?bb(a):_a(a,b),c&&(Be=c)),Be._abbr}function _a(a,b){if(null!==b){var c=Ee;if(b.abbr=a,null!=Fe[a])y("defineLocaleOverride", 35"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."),c=Fe[a]._config;else if(null!=b.parentLocale){if(null==Fe[b.parentLocale])return Ge[b.parentLocale]||(Ge[b.parentLocale]=[]),Ge[b.parentLocale].push({name:a,config:b}),null;c=Fe[b.parentLocale]._config}return Fe[a]=new C(B(c,b)),Ge[a]&&Ge[a].forEach(function(a){_a(a.name, 36a.config)}),$a(a),Fe[a]}return delete Fe[a],null}function ab(a,b){if(null!=b){var c,d=Ee;null!=Fe[a]&&(d=Fe[a]._config),b=B(d,b),c=new C(b),c.parentLocale=Fe[a],Fe[a]=c,$a(a)}else null!=Fe[a]&&(null!=Fe[a].parentLocale?Fe[a]=Fe[a].parentLocale:null!=Fe[a]&&delete Fe[a]);return Fe[a]}function bb(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return Be;if(!c(a)){if(b=Za(a))return b;a=[a]}return Ya(a)}function cb(){return Ad(Fe)}function db(a){var b,c=a._a;return c&&n(a).overflow=== 37-2&&(b=c[fe]<0||c[fe]>11?fe:c[ge]<1||c[ge]>
37ea(c[ee],c[fe])?ge:c[he]<0||c[he]>24||24===c[he]&&(0!==c[ie]||0!==c[je]||0!==c[ke])?he:c[ie]<0||c[ie]>59?ie:c[je]<0||c[je]>59?je:c[ke]<0||c[ke]>999?ke:-1,n(a)._overflowDayOfYear&&(b<ee||b>ge)&&(b=ge),n(a)._overflowWeeks&&b===-1&&(b=le),n(a)._overflowWeekday&&b===-1&&(b=me),n(a).overflow=b),a}function eb(a){var b,c,d,e,f,g,h=a._i,i=He.exec(h)||Ie.exec(h);if(i){for(n(a).iso=!0,b=0,c=Ke.length;b<c;b++)if(Ke[b][1].exec(i[1])){e=Ke[b][0],d=Ke[b][2]!==!1;break}if(null== 38e)return void(a._isValid=!1);if(i[3]){for(b=0,c=Le.length;b<c;b++)if(Le[b][1].exec(i[3])){f=(i[2]||" ")+Le[b][0];break}if(null==f)return void(a._isValid=!1)}if(!d&&null!=f)return void(a._isValid=!1);if(i[4]){if(!Je.exec(i[4]))return void(a._isValid=!1);g="Z"}a._f=e+(f||"")+(g||""),lb(a)}else a._isValid=!1}function fb(a){var b,c,d,e,f,g,h,i,j={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},k="YXWVUTSRQPONZABCDEFGHIKLM"; 39if(b=a._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),c=Ne.exec(b)){if(d=c[1]?"ddd"+(5===c[1].length?", ":" "):"",e="D MMM "+(c[2].length>10?"YYYY ":"YY "),f="HH:mm"+(c[4]?":ss":""),c[1]){var l=new Date(c[2]),m=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][l.getDay()];if(c[1].substr(0,3)!==m)return n(a).weekdayMismatch=!0,void(a._isValid=!1)}switch(c[5].length){case 2:0===i?h=" +0000":(i=k.indexOf(c[5][1].toUpperCase())-12,h=(i<0?" -":" +")+(""+i).replace(/^-?/, 40"0").match(/..$/)[0]+"00");break;case 4:h=j[c[5]];break;default:h=j[" GMT"]}c[5]=h,a._i=c.splice(1).join(""),g=" ZZ",a._f=d+e+f+g,lb(a),n(a).rfc2822=!0}else a._isValid=!1}function gb(b){var c=Me.exec(b._i);return null!==c?void(b._d=new Date(+c[1])):(eb(b),void(b._isValid===!1&&(delete b._isValid,fb(b),b._isValid===!1&&(delete b._isValid,a.createFromInputFallback(b)))))}function hb(a,b,c){return null!=a?a:null!=b?b:c}function ib(b){var c=new Date(a.now());return b._useUTC?[c.getUTCFullYear(),c.getUTCMonth(), 41c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}function jb(a){var b,c,d,e,f=[];if(!a._d){for(d=ib(a),a._w&&null==a._a[ge]&&null==a._a[fe]&&kb(a),null!=a._dayOfYear&&(e=hb(a._a[ee],d[ee]),(a._dayOfYear>pa(e)||0===a._dayOfYear)&&(n(a)._overflowDayOfYear=!0),c=ta(e,0,a._dayOfYear),a._a[fe]=c.getUTCMonth(),a._a[ge]=c.getUTCDate()),b=0;b<3&&null==a._a[b];++b)a._a[b]=f[b]=d[b];for(;b<7;b++)a._a[b]=f[b]=null==a._a[b]?2===b?1:0:a._a[b];24===a._a[he]&&0===a._a[ie]&&0===a._a[je]&&0===a._a[ke]&& 42(a._nextDay=!0,a._a[he]=0),a._d=(a._useUTC?ta:sa).apply(null,f),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[he]=24)}}function kb(a){var b,c,d,e,f,g,h,i;if(b=a._w,null!=b.GG||null!=b.W||null!=b.E)f=1,g=4,c=hb(b.GG,a._a[ee],wa(tb(),1,4).year),d=hb(b.W,1),e=hb(b.E,1),(e<1||e>7)&&(i=!0);else{f=a._locale._week.dow,g=a._locale._week.doy;var j=wa(tb(),f,g);c=hb(b.gg,a._a[ee],j.year),d=hb(b.w,j.week),null!=b.d?(e=b.d,(e<0||e>6)&&(i=!0)):null!=b.e?(e=b.e+f,(b.e<0||b.e>6)&& 43(i=!0)):e=f}d<1||d>xa(c,f,g)?n(a)._overflowWeeks=!0:null!=i?n(a)._overflowWeekday=!0:(h=va(c,d,e,f,g),a._a[ee]=h.year,a._dayOfYear=h.dayOfYear)}function lb(b){if(b._f===a.ISO_8601)return void eb(b);if(b._f===a.RFC_2822)return void fb(b);b._a=[],n(b).empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=Y(b._f,b._locale).match(Jd)||[],c=0;c<e.length;c++)f=e[c],d=(h.match($(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&n(b).unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length), 44Md[f]?(d?n(b).empty=!1:n(b).unusedTokens.push(f),da(f,d,b)):b._strict&&!d&&n(b).unusedTokens.push(f);n(b).charsLeftOver=i-j,h.length>0&&n(b).unusedInput.push(h),b._a[he]<=12&&n(b).bigHour===!0&&b._a[he]>0&&(n(b).bigHour=void 0),n(b).parsedDateParts=b._a.slice(0),n(b).meridiem=b._meridiem,b._a[he]=mb(b._locale,b._a[he],b._meridiem),jb(b),db(b)}function mb(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&b<12&&(b+=12),d||12!==b||(b=0),b):b}function nb(a){var b, 45c,d,e,f;if(0===a._f.length)return n(a).invalidFormat=!0,void(a._d=new Date(NaN));for(e=0;e<a._f.length;e++)f=0,b=q({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._f=a._f[e],lb(b),o(b)&&(f+=n(b).charsLeftOver,f+=10*n(b).unusedTokens.length,n(b).score=f,(null==d||f<d)&&(d=f,c=b));k(a,c||b)}function ob(a){if(!a._d){var b=L(a._i);a._a=i([b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],function(a){return a&&parseInt(a,10)}),jb(a)}}function pb(a){var b=new r(db(qb(a)));return b._nextDay&& 46(b.add(1,"d"),b._nextDay=void 0),b}function qb(a){var b=a._i,d=a._f;return a._locale=a._locale||bb(a._l),null===b||void 0===d&&""===b?p({nullInput:!0}):("string"==typeof b&&(a._i=b=a._locale.preparse(b)),s(b)?new r(db(b)):(h(b)?a._d=b:c(d)?nb(a):d?lb(a):rb(a),o(a)||(a._d=null),a))}function rb(b){var e=b._i;f(e)?b._d=new Date(a.now()):h(e)?b._d=new Date(e.valueOf()):"string"==typeof e?gb(b):c(e)?(b._a=i(e.slice(0),function(a){return parseInt(a,10)}),jb(b)):d(e)?ob(b):g(e)?b._d=new Date(e):a.createFromInputFallback(b)}
47function sb(a,b,f,g,h){var i={};return f!==!0&&f!==!1||(g=f,f=void 0),(d(a)&&e(a)||c(a)&&0===a.length)&&(a=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=h,i._l=f,i._i=a,i._f=b,i._strict=g,pb(i)}function tb(a,b,c,d){return sb(a,b,c,d,!1)}function ub(a,b){var d,e;if(1===b.length&&c(b[0])&&(b=b[0]),!b.length)return tb();for(d=b[0],e=1;e<b.length;++e)b[e].isValid()&&!b[e][a](d)||(d=b[e]);return d}function vb(){var a=[].slice.call(arguments,0);return ub("isBefore",a)}function wb(){var a=[].slice.call(arguments, 480);return ub("isAfter",a)}function xb(a){for(var b in a)if(Re.indexOf(b)===-1||null!=a[b]&&isNaN(a[b]))return!1;for(var c=!1,d=0;d<Re.length;++d)if(a[Re[d]]){if(c)return!1;parseFloat(a[Re[d]])!==u(a[Re[d]])&&(c=!0)}return!0}function yb(){return this._isValid}function zb(){return Sb(NaN)}function Ab(a){var b=L(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._isValid=xb(b),this._milliseconds=+k+1E3*j+6E4*i+1E3*h*60*60, 49this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=bb(),this._bubble()}function Bb(a){return a instanceof Ab}function Cb(a){return a<0?Math.round(-1*a)*-1:Math.round(a)}function Db(a,b){U(a,0,0,function(){var a=this.utcOffset(),c="+";return a<0&&(a=-a,c="-"),c+T(~~(a/60),2)+b+T(~~a%60,2)})}function Eb(a,b){var c=(b||"").match(a);if(null===c)return null;var d=c[c.length-1]||[],e=(d+"").match(Se)||["-",0,0],f=+(60*e[1])+u(e[2]);return 0===f?0:"+"===e[0]?f:-f}function Fb(b,c){var d, 50e;return c._isUTC?(d=c.clone(),e=(s(b)||h(b)?b.valueOf():tb(b).valueOf())-d.valueOf(),d._d.setTime(d._d.valueOf()+e),a.updateOffset(d,!1),d):tb(b).local()}function Gb(a){return 15*-Math.round(a._d.getTimezoneOffset()/15)}function Hb(b,c,d){var e,f=this._offset||0;if(!this.isValid())return null!=b?this:NaN;if(null!=b){if("string"==typeof b){if(b=Eb(_d,b),null===b)return this}else Math.abs(b)<16&&!d&&(b=60*b);return!this._isUTC&&c&&(e=Gb(this)),this._offset=b,this._isUTC=!0,null!=e&&this.add(e,"m"), 51f!==b&&(!c||this._changeInProgress?Xb(this,Sb(b-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?f:Gb(this)}function Ib(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function Jb(a){return this.utcOffset(0,a)}function Kb(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Gb(this),"m")),this}function Lb(){if(null!=this._tzm)this.utcOffset(this._tzm, 52!1,!0);else if("string"==typeof this._i){var a=Eb($d,this._i);null!=a?this.utcOffset(a):this.utcOffset(0,!0)}return this}function Mb(a){return!!this.isValid()&&(a=a?tb(a).utcOffset():0,(this.utcOffset()-a)%60===0)}function Nb(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ob(){if(!f(this._isDSTShifted))return this._isDSTShifted;var a={};if(q(a,this),a=qb(a),a._a){var b=a._isUTC?l(a._a):tb(a._a);this._isDSTShifted=this.isValid()&& 53v(a._a,b.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Pb(){return!!this.isValid()&&!this._isUTC}function Qb(){return!!this.isValid()&&this._isUTC}function Rb(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Sb(a,b){var c,d,e,f=a,h=null;return Bb(a)?f={ms:a._milliseconds,d:a._days,M:a._months}:g(a)?(f={},b?f[b]=a:f.milliseconds=a):(h=Te.exec(a))?(c="-"===h[1]?-1:1,f={y:0,d:u(h[ge])*c,h:u(h[he])*c,m:u(h[ie])*c,s:u(h[je])*c,ms:u(Cb(1E3*h[ke]))*c}):(h=Ue.exec(a))? 54(c="-"===h[1]?-1:1,f={y:Tb(h[2],c),M:Tb(h[3],c),w:Tb(h[4],c),d:Tb(h[5],c),h:Tb(h[6],c),m:Tb(h[7],c),s:Tb(h[8],c)}):null==f?f={}:"object"==typeof f&&("from"in f||"to"in f)&&(e=Vb(tb(f.from),tb(f.to)),f={},f.ms=e.milliseconds,f.M=e.months),d=new Ab(f),Bb(a)&&j(a,"_locale")&&(d._locale=a._locale),d}function Tb(a,b){var c=a&&parseFloat(a.replace(",","."));return(isNaN(c)?0:c)*b}function Ub(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months, 55"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function Vb(a,b){var c;return a.isValid()&&b.isValid()?(b=Fb(b,a),a.isBefore(b)?c=Ub(a,b):(c=Ub(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function Wb(a,b){return function(c,d){var e,f;
55return null===d||isNaN(+d)||(y(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."), 56f=c,c=d,d=f),c="string"==typeof c?+c:c,e=Sb(c,d),Xb(this,e,a),this}}function Xb(b,c,d,e){var f=c._milliseconds,g=Cb(c._days),h=Cb(c._months);b.isValid()&&(e=null==e||e,f&&b._d.setTime(b._d.valueOf()+f*d),g&&Q(b,"Date",P(b,"Date")+g*d),h&&ja(b,P(b,"Month")+h*d),e&&a.updateOffset(b,g||h))}function Yb(a,b){var c=a.diff(b,"days",!0);return c<-6?"sameElse":c<-1?"lastWeek":c<0?"lastDay":c<1?"sameDay":c<2?"nextDay":c<7?"nextWeek":"sameElse"}function Zb(b,c){var d=b||tb(),e=Fb(d,this).startOf("day"),f=a.calendarFormat(this, 57e)||"sameElse",g=c&&(z(c[f])?c[f].call(this,d):c[f]);return this.format(g||this.localeData().calendar(f,this,tb(d)))}function $b(){return new r(this)}function _b(a,b){var c=s(a)?a:tb(a);return!(!this.isValid()||!c.isValid())&&(b=K(f(b)?"millisecond":b),"millisecond"===b?this.valueOf()>c.valueOf():c.valueOf()<this.clone().startOf(b).valueOf())}function ac(a,b){var c=s(a)?a:tb(a);return!(!this.isValid()||!c.isValid())&&(b=K(f(b)?"millisecond":b),"millisecond"===b?this.valueOf()<c.valueOf():this.clone().endOf(b).valueOf()< 58c.valueOf())}function bc(a,b,c,d){return d=d||"()",("("===d[0]?this.isAfter(a,c):!this.isBefore(a,c))&&(")"===d[1]?this.isBefore(b,c):!this.isAfter(b,c))}function cc(a,b){var c,d=s(a)?a:tb(a);return!(!this.isValid()||!d.isValid())&&(b=K(b||"millisecond"),"millisecond"===b?this.valueOf()===d.valueOf():(c=d.valueOf(),this.clone().startOf(b).valueOf()<=c&&c<=this.clone().endOf(b).valueOf()))}function dc(a,b){return this.isSame(a,b)||this.isAfter(a,b)}function ec(a,b){return this.isSame(a,b)||this.isBefore(a, 59b)}function fc(a,b,c){var d,e,f,g;return this.isValid()?(d=Fb(a,this),d.isValid()?(e=6E4*(d.utcOffset()-this.utcOffset()),b=K(b),"year"===b||"month"===b||"quarter"===b?(g=gc(this,d),"quarter"===b?g/=3:"year"===b&&(g/=12)):(f=this-d,g="second"===b?f/1E3:"minute"===b?f/6E4:"hour"===b?f/36E5:"day"===b?(f-e)/864E5:"week"===b?(f-e)/6048E5:f),c?g:t(g)):NaN):NaN}function gc(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return b-f<0?(c=a.clone().add(e-1,"months"), 60d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)||0}function hc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ic(){if(!this.isValid())return null;var a=this.clone().utc();return a.year()<0||a.year()>9999?X(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):z(Date.prototype.toISOString)?this.toDate().toISOString():X(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function jc(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var a="moment",b="";this.isLocal()|| 61(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",b="Z");var c="["+a+'("]',d=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",e="-MM-DD[T]HH:mm:ss.SSS",f=b+'[")]';return this.format(c+d+e+f)}function kc(b){b||(b=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var c=X(this,b);return this.localeData().postformat(c)}function lc(a,b){return this.isValid()&&(s(a)&&a.isValid()||tb(a).isValid())?Sb({to:this,from:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function mc(a){return this.from(tb(), 62a)}function nc(a,b){return this.isValid()&&(s(a)&&a.isValid()||tb(a).isValid())?Sb({from:this,to:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function oc(a){return this.to(tb(),a)}function pc(a){var b;return void 0===a?this._locale._abbr:(b=bb(a),null!=b&&(this._locale=b),this)}function qc(){return this._locale}function rc(a){switch(a=K(a)){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); 63case "minute":this.seconds(0);case "second":this.milliseconds(0)}return"week"===a&&this.weekday(0),"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this}function sc(a){return a=K(a),void 0===a||"millisecond"===a?this:("date"===a&&(a="day"),this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms"))}function tc(){return this._d.valueOf()-6E4*(this._offset||0)}function uc(){return Math.floor(this.valueOf()/1E3)}function vc(){return new Date(this.valueOf())} 64function wc(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function xc(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function yc(){return this.isValid()?this.toISOString():null}function zc(){return o(this)}function Ac(){return k({},n(this))}function Bc(){return n(this).overflow}function Cc(){return{input:this._i,format:this._f,locale:this._locale, 65isUTC:this._isUTC,strict:this._strict}}function Dc(a,b){U(0,[a,a.length],0,b)}function Ec(a){return Ic.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Fc(a){return Ic.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function Gc(){return xa(this.year(),1,4)}function Hc(){var a=this.localeData()._week;return xa(this.year(),a.dow,a.doy)}function Ic(a,b,c,d,e){var f;return null==a?wa(this,d,e).year:(f=xa(a,d,e),b>f&&(b=f),Jc.call(this,a,b,c,d,
66e))}function Jc(a,b,c,d,e){var f=va(a,b,c,d,e),g=ta(f.year,0,f.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}function Kc(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)}function Lc(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864E5)+1;return null==a?b:this.add(a-b,"d")}function Mc(a,b){b[ke]=u(1E3*("0."+a))}function Nc(){return this._isUTC?"UTC":""}function Oc(){return this._isUTC? 67"Coordinated Universal Time":""}function Pc(a){return tb(1E3*a)}function Qc(){return tb.apply(null,arguments).parseZone()}function Rc(a){return a}function Sc(a,b,c,d){var e=bb(),f=l().set(d,b);return e[c](f,a)}function Tc(a,b,c){if(g(a)&&(b=a,a=void 0),a=a||"",null!=b)return Sc(a,b,c,"month");var d,e=[];for(d=0;d<12;d++)e[d]=Sc(a,d,c,"month");return e}function Uc(a,b,c,d){"boolean"==typeof a?(g(b)&&(c=b,b=void 0),b=b||""):(b=a,c=b,a=!1,g(b)&&(c=b,b=void 0),b=b||"");var e=bb(),f=a?e._week.dow:0;if(null!= 68c)return Sc(b,(c+f)%7,d,"day");var h,i=[];for(h=0;h<7;h++)i[h]=Sc(b,(h+f)%7,d,"day");return i}function Vc(a,b){return Tc(a,b,"months")}function Wc(a,b){return Tc(a,b,"monthsShort")}function Xc(a,b,c){return Uc(a,b,c,"weekdays")}function Yc(a,b,c){return Uc(a,b,c,"weekdaysShort")}function Zc(a,b,c){return Uc(a,b,c,"weekdaysMin")}function $c(){var a=this._data;return this._milliseconds=df(this._milliseconds),this._days=df(this._days),this._months=df(this._months),a.milliseconds=df(a.milliseconds),a.seconds= 69df(a.seconds),a.minutes=df(a.minutes),a.hours=df(a.hours),a.months=df(a.months),a.years=df(a.years),this}function _c(a,b,c,d){var e=Sb(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}function ad(a,b){return _c(this,a,b,1)}function bd(a,b){return _c(this,a,b,-1)}function cd(a){return a<0?Math.floor(a):Math.ceil(a)}function dd(){var a,b,c,d,e,f=this._milliseconds,g=this._days,h=this._months,i=this._data;return f>=0&&g>=0&&h>=0||f<=0&&g<=0&&h<=0|| 70(f+=864E5*cd(fd(h)+g),g=0,h=0),i.milliseconds=f%1E3,a=t(f/1E3),i.seconds=a%60,b=t(a/60),i.minutes=b%60,c=t(b/60),i.hours=c%24,g+=t(c/24),e=t(ed(g)),h+=e,g-=cd(fd(e)),d=t(h/12),h%=12,i.days=g,i.months=h,i.years=d,this}function ed(a){return 4800*a/146097}function fd(a){return 146097*a/4800}function gd(a){if(!this.isValid())return NaN;var b,c,d=this._milliseconds;if(a=K(a),"month"===a||"year"===a)return b=this._days+d/864E5,c=this._months+ed(b),"month"===a?c:c/12;switch(b=this._days+Math.round(fd(this._months)), 71a){case "week":return b/7+d/6048E5;case "day":return b+d/864E5;case "hour":return 24*b+d/36E5;case "minute":return 1440*b+d/6E4;case "second":return 86400*b+d/1E3;case "millisecond":return Math.floor(864E5*b)+d;default:throw new Error("Unknown unit "+a);}}function hd(){return this.isValid()?this._milliseconds+864E5*this._days+this._months%12*2592E6+31536E6*u(this._months/12):NaN}function id(a){return function(){return this.as(a)}}function jd(a){return a=K(a),this.isValid()?this[a+"s"]():NaN}function kd(a){return function(){return this.isValid()? 72this._data[a]:NaN}}function ld(){return t(this.days()/7)}function md(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function nd(a,b,c){var d=Sb(a).abs(),e=uf(d.as("s")),f=uf(d.as("m")),g=uf(d.as("h")),h=uf(d.as("d")),i=uf(d.as("M")),j=uf(d.as("y")),k=e<=vf.ss&&["s",e]||e<vf.s&&["ss",e]||f<=1&&["m"]||f<vf.m&&["mm",f]||g<=1&&["h"]||g<vf.h&&["hh",g]||h<=1&&["d"]||h<vf.d&&["dd",h]||i<=1&&["M"]||i<vf.M&&["MM",i]||j<=1&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,md.apply(null,k)}function od(a){return void 0=== 73a?uf:"function"==typeof a&&(uf=a,!0)}function pd(a,b){return void 0!==vf[a]&&(void 0===b?vf[a]:(vf[a]=b,"s"===a&&(vf.ss=b-1),!0))}function qd(a){if(!this.isValid())return this.localeData().invalidDate();var b=this.localeData(),c=nd(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function rd(){if(!this.isValid())return this.localeData().invalidDate();var a,b,c,d=wf(this._milliseconds)/1E3,e=wf(this._days),f=wf(this._months);a=t(d/60),b=t(a/60),d%=60,a%=60,c=t(f/12),f%=12;var g=c,h=f, 74i=e,j=b,k=a,l=d,m=this.asSeconds();return m?(m<0?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}var sd,td;td=Array.prototype.some?Array.prototype.some:function(a){for(var b=Object(this),c=b.length>>>0,d=0;d<c;d++)if(d in b&&a.call(this,b[d],d,b))return!0;return!1};var ud=td,vd=a.momentProperties=[],wd=!1,xd={};a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;var yd;yd=Object.keys?Object.keys:function(a){var b,c=[];for(b in a)j(a, 75b)&&c.push(b);return c};var zd,Ad=yd,Bd={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Cd={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"},Dd="Invalid date",Ed="%d",Fd=/\d{1,2}/,Gd={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", 76MM:"%d months",y:"a year",yy:"%d years"},Hd={},Id={},Jd=/(\[[^\[]*\])|(\\)?([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}
vendor: 7,132 bytes, lines 76-89
76|x|X|zz?|ZZ?|.)/g,Kd=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ld={},Md={},Nd=/\d/,Od=/\d\d/,Pd=/\d{3}/,Qd=/\d{4}/,Rd=/[+-]?\d{6}/,Sd=/\d\d?/,Td=/\d\d\d\d?/,Ud=/\d\d\d\d\d\d?/,Vd=/\d{1,3}/,Wd=/\d{1,4}/,Xd=/[+-]?\d{1,6}/,Yd=/\d+/,Zd=/[+-]?\d+/,$d=/Z|[+-]\d\d:?\d\d/gi,_d=/Z|[+-]\d\d(?::?\d\d)?/gi, 77ae=/[+-]?\d+(\.\d{1,3})?/,be=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ce={},de={},ee=0,fe=1,ge=2,he=3,ie=4,je=5,ke=6,le=7,me=8;zd=Array.prototype.indexOf?Array.prototype.indexOf:function(a){var b;for(b=0;b<this.length;++b)if(this[b]===a)return b;return-1};var ne=zd;U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),U("MMMM",0,0,function(a){return this.localeData().months(this, 78a)}),J("month","M"),M("month",8),Z("M",Sd),Z("MM",Sd,Od),Z("MMM",function(a,b){return b.monthsShortRegex(a)}),Z("MMMM",function(a,b){return b.monthsRegex(a)}),ba(["M","MM"],function(a,b){b[fe]=u(a)-1}),ba(["MMM","MMMM"],function(a,b,c,d){var e=c._locale.monthsParse(a,d,c._strict);null!=e?b[fe]=e:n(c).invalidMonth=a});var oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), 79re=be,se=be;U("Y",0,0,function(){var a=this.year();return a<=9999?""+a:"+"+a}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),J("year","y"),M("year",1),Z("Y",Zd),Z("YY",Sd,Od),Z("YYYY",Wd,Qd),Z("YYYYY",Xd,Rd),Z("YYYYYY",Xd,Rd),ba(["YYYYY","YYYYYY"],ee),ba("YYYY",function(b,c){c[ee]=2===b.length?a.parseTwoDigitYear(b):u(b)}),ba("YY",function(b,c){c[ee]=a.parseTwoDigitYear(b)}),ba("Y",function(a,b){b[ee]=parseInt(a, 8010)}),a.parseTwoDigitYear=function(a){return u(a)+(u(a)>68?1900:2E3)};var te=O("FullYear",!0);U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),J("week","w"),J("isoWeek","W"),M("week",5),M("isoWeek",5),Z("w",Sd),Z("ww",Sd,Od),Z("W",Sd),Z("WW",Sd,Od),ca(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=u(a)});var ue={dow:0,doy:6};U("d",0,"do","day"),U("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),U("ddd",0,0,function(a){return this.localeData().weekdaysShort(this, 81a)}),U("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),J("day","d"),J("weekday","e"),J("isoWeekday","E"),M("day",11),M("weekday",11),M("isoWeekday",11),Z("d",Sd),Z("e",Sd),Z("E",Sd),Z("dd",function(a,b){return b.weekdaysMinRegex(a)}),Z("ddd",function(a,b){return b.weekdaysShortRegex(a)}),Z("dddd",function(a,b){return b.weekdaysRegex(a)}),ca(["dd","ddd","dddd"],function(a,b,c,d){var e=c._locale.weekdaysParse(a,d,c._strict);null!=e?b.d= 82e:n(c).invalidWeekday=a}),ca(["d","e","E"],function(a,b,c,d){b[d]=u(a)});var ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),we="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ye=be,ze=be,Ae=be;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Ra),U("k",["kk",2],0,Sa),U("hmm",0,0,function(){return""+Ra.apply(this)+T(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Ra.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),U("Hmm",0,0,function(){return""+ 83this.hours()+T(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),Ta("a",!0),Ta("A",!1),J("hour","h"),M("hour",13),Z("a",Ua),Z("A",Ua),Z("H",Sd),Z("h",Sd),Z("k",Sd),Z("HH",Sd,Od),Z("hh",Sd,Od),Z("kk",Sd,Od),Z("hmm",Td),Z("hmmss",Ud),Z("Hmm",Td),Z("Hmmss",Ud),ba(["H","HH"],he),ba(["k","kk"],function(a,b,c){var d=u(a);b[he]=24===d?0:d}),ba(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),ba(["h","hh"],function(a,b,c){b[he]= 84u(a),n(c).bigHour=!0}),ba("hmm",function(a,b,c){var d=a.length-2;b[he]=u(a.substr(0,d)),b[ie]=u(a.substr(d)),n(c).bigHour=!0}),ba("hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[he]=u(a.substr(0,d)),b[ie]=u(a.substr(d,2)),b[je]=u(a.substr(e)),n(c).bigHour=!0}),ba("Hmm",function(a,b,c){var d=a.length-2;b[he]=u(a.substr(0,d)),b[ie]=u(a.substr(d))}),ba("Hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[he]=u(a.substr(0,d)),b[ie]=u(a.substr(d,2)),b[je]=u(a.substr(e))});var Be,Ce=/[ap]\.?m?\.?/i, 85De=O("Hours",!0),Ee={calendar:Bd,longDateFormat:Cd,invalidDate:Dd,ordinal:Ed,dayOfMonthOrdinalParse:Fd,relativeTime:Gd,months:pe,monthsShort:qe,week:ue,weekdays:ve,weekdaysMin:xe,weekdaysShort:we,meridiemParse:Ce},Fe={},Ge={},He=/^\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)?)?$/,Ie=/^\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)?)?$/, 86Je=/Z|[+-]\d\d(?::?\d\d)?/,Ke=[["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}/]],Le=[["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", 87/\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/]],Me=/^\/?Date\((\-?\d+)/i,Ne=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;a.createFromInputFallback=x("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.", 88function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),a.ISO_8601=function(){},a.RFC_2822=function(){};var Oe=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=tb.apply(null,arguments);return this.isValid()&&a.isValid()?a<this?this:a:p()}),Pe=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=tb.apply(null,arguments);return this.isValid()&&a.isValid()?a>this? 89this:a:p()}),Qe=function(){return Date.now?Date.now():+new Date},Re=["year","quarter","month","week","day","hour","minute","second","millisecond"];Db("Z",":"),Db("ZZ",""),Z("Z",_d),Z("ZZ",_d),ba(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=Eb(_d,a)});var Se=/([\+\-]|\d\d)/gi;a.updateOffset=function(){};var Te=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ue=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;
vendor: 4,481 bytes, lines 90-98
90Sb.fn=Ab.prototype,Sb.invalid=zb;var Ve=Wb(1,"add"),We=Wb(-1,"subtract");a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xe=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return void 0===a?this.localeData():this.locale(a)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Dc("gggg","weekYear"), 91Dc("ggggg","weekYear"),Dc("GGGG","isoWeekYear"),Dc("GGGGG","isoWeekYear"),J("weekYear","gg"),J("isoWeekYear","GG"),M("weekYear",1),M("isoWeekYear",1),Z("G",Zd),Z("g",Zd),Z("GG",Sd,Od),Z("gg",Sd,Od),Z("GGGG",Wd,Qd),Z("gggg",Wd,Qd),Z("GGGGG",Xd,Rd),Z("ggggg",Xd,Rd),ca(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=u(a)}),ca(["gg","GG"],function(b,c,d,e){c[e]=a.parseTwoDigitYear(b)}),U("Q",0,"Qo","quarter"),J("quarter","Q"),M("quarter",7),Z("Q",Nd),ba("Q",function(a,b){b[fe]=3*(u(a)- 921)}),U("D",["DD",2],"Do","date"),J("date","D"),M("date",9),Z("D",Sd),Z("DD",Sd,Od),Z("Do",function(a,b){return a?b._dayOfMonthOrdinalParse||b._ordinalParse:b._dayOfMonthOrdinalParseLenient}),ba(["D","DD"],ge),ba("Do",function(a,b){b[ge]=u(a.match(Sd)[0],10)});var Ye=O("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),J("dayOfYear","DDD"),M("dayOfYear",4),Z("DDD",Vd),Z("DDDD",Pd),ba(["DDD","DDDD"],function(a,b,c){c._dayOfYear=u(a)}),U("m",["mm",2],0,"minute"),J("minute","m"),M("minute",14),Z("m",Sd), 93Z("mm",Sd,Od),ba(["m","mm"],ie);var Ze=O("Minutes",!1);U("s",["ss",2],0,"second"),J("second","s"),M("second",15),Z("s",Sd),Z("ss",Sd,Od),ba(["s","ss"],je);var $e=O("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1E3*this.millisecond()}), 94U(0,["SSSSSSS",7],0,function(){return 1E4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1E5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1E6*this.millisecond()}),J("millisecond","ms"),M("millisecond",16),Z("S",Vd,Nd),Z("SS",Vd,Od),Z("SSS",Vd,Pd);var _e;for(_e="SSSS";_e.length<=9;_e+="S")Z(_e,Yd);for(_e="S";_e.length<=9;_e+="S")ba(_e,Mc);var af=O("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var bf=r.prototype;bf.add=Ve,bf.calendar=Zb,bf.clone=$b,bf.diff= 95fc,bf.endOf=sc,bf.format=kc,bf.from=lc,bf.fromNow=mc,bf.to=nc,bf.toNow=oc,bf.get=R,bf.invalidAt=Bc,bf.isAfter=_b,bf.isBefore=ac,bf.isBetween=bc,bf.isSame=cc,bf.isSameOrAfter=dc,bf.isSameOrBefore=ec,bf.isValid=zc,bf.lang=Xe,bf.locale=pc,bf.localeData=qc,bf.max=Pe,bf.min=Oe,bf.parsingFlags=Ac,bf.set=S,bf.startOf=rc,bf.subtract=We,bf.toArray=wc,bf.toObject=xc,bf.toDate=vc,bf.toISOString=ic,bf.inspect=jc,bf.toJSON=yc,bf.toString=hc,bf.unix=uc,bf.valueOf=tc,bf.creationData=Cc,bf.year=te,bf.isLeapYear= 96ra,bf.weekYear=Ec,bf.isoWeekYear=Fc,bf.quarter=bf.quarters=Kc,bf.month=ka,bf.daysInMonth=la,bf.week=bf.weeks=Ba,bf.isoWeek=bf.isoWeeks=Ca,bf.weeksInYear=Hc,bf.isoWeeksInYear=Gc,bf.date=Ye,bf.day=bf.days=Ka,bf.weekday=La,bf.isoWeekday=Ma,bf.dayOfYear=Lc,bf.hour=bf.hours=De,bf.minute=bf.minutes=Ze,bf.second=bf.seconds=$e,bf.millisecond=bf.milliseconds=af,bf.utcOffset=Hb,bf.utc=Jb,bf.local=Kb,bf.parseZone=Lb,bf.hasAlignedHourOffset=Mb,bf.isDST=Nb,bf.isLocal=Pb,bf.isUtcOffset=Qb,bf.isUtc=Rb,bf.isUTC= 97Rb,bf.zoneAbbr=Nc,bf.zoneName=Oc,bf.dates=x("dates accessor is deprecated. Use date instead.",Ye),bf.months=x("months accessor is deprecated. Use month instead",ka),bf.years=x("years accessor is deprecated. Use year instead",te),bf.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ib),bf.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ob);var cf=C.prototype;cf.calendar= 98D,cf.longDateFormat=E,cf.invalidDate=F,cf.ordinal=G,cf.preparse=Rc,cf.postformat=Rc,cf.relativeTime=H,cf.pastFuture=I,cf.set=A,cf.months=fa,cf.monthsShort=ga,cf.monthsParse=ia,cf.monthsRegex=na,cf.monthsShortRegex=ma,cf.week=ya,cf.firstDayOfYear=Aa,cf.firstDayOfWeek=za,cf.weekdays=Fa,cf.weekdaysMin=Ha,cf.weekdaysShort=Ga,cf.weekdaysParse=Ja,cf.weekdaysRegex=Na,cf.weekdaysShortRegex=Oa,cf.weekdaysMinRegex=Pa,cf.isPM=Va,cf.meri
98diem=Wa,$a("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b= 99a%10,c=1===u(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),a.lang=x("moment.lang is deprecated. Use moment.locale instead.",$a),a.langData=x("moment.langData is deprecated. Use moment.localeData instead.",bb);var df=Math.abs,ef=id("ms"),ff=id("s"),gf=id("m"),hf=id("h"),jf=id("d"),kf=id("w"),lf=id("M"),mf=id("y"),nf=kd("milliseconds"),of=kd("seconds"),pf=kd("minutes"),qf=kd("hours"),rf=kd("days"),sf=kd("months"),tf=kd("years"),uf=Math.round,vf={ss:44,s:45,m:45,h:22,d:26,M:11}, 100wf=Math.abs,xf=Ab.prototype;return xf.isValid=yb,xf.abs=$c,xf.add=ad,xf.subtract=bd,xf.as=gd,xf.asMilliseconds=ef,xf.asSeconds=ff,xf.asMinutes=gf,xf.asHours=hf,xf.asDays=jf,xf.asWeeks=kf,xf.asMonths=lf,xf.asYears=mf,xf.valueOf=hd,xf._bubble=dd,xf.get=jd,xf.milliseconds=nf,xf.seconds=of,xf.minutes=pf,xf.hours=qf,xf.days=rf,xf.weeks=ld,xf.months=sf,xf.years=tf,xf.humanize=qd,xf.toISOString=rd,xf.toString=rd,xf.toJSON=rd,xf.locale=pc,xf.localeData=qc,xf.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", 101rd),xf.lang=Xe,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Z("x",Zd),Z("X",ae),ba("X",function(a,b,c){c._d=new Date(1E3*parseFloat(a,10))}),ba("x",function(a,b,c){c._d=new Date(u(a))}),a.version="2.18.1",b(tb),a.fn=bf,a.min=vb,a.max=wb,a.now=Qe,a.utc=l,a.unix=Pc,a.months=Vc,a.isDate=h,a.locale=$a,a.invalid=p,a.duration=Sb,a.isMoment=s,a.weekdays=Xc,a.parseZone=Qc,a.localeData=bb,a.isDuration=Bb,a.monthsShort=Wc,a.weekdaysMin=Zc,a.defineLocale=_a,a.updateLocale=ab,a.locales=cb,a.weekdaysShort=Yc,a.normalizeUnits= 102K,a.relativeTimeRounding=od,a.relativeTimeThreshold=pd,a.calendarFormat=Yb,a.prototype=bf,a});/* 103: Copyright (c) 2012-2019 Dan Grossman. All rights reserved. 104 @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php 105 @website: http://www.daterangepicker.com/ 106*/ 107!function(t,e){if("function"==typeof define&&define.amd)define(["moment","jquery"],function(t,a){return a.fn||(a.fn={}),"function"!=typeof t&&t.hasOwnProperty("default")&&(t=t.default),e(t,a)});else if("object"==typeof module&&module.exports){var a="undefined"!=typeof window?window.jQuery:void 0;a||(a=require("jquery")).fn||(a.fn={});var i="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=e(i,a)}else t.daterangepicker=e(t.moment,t.jQuery)}(this,function(t, 108e){var a=function(a,i,s){if(this.parentEl="body",this.element=e(a),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds= 109!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range", 110daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof i&&null!==i||(i={}),"string"==typeof(i=e.extend(this.element.data(),i)).template||i.template instanceof e||(i.template='\x3cdiv class\x3d"daterangepicker"\x3e\x3cdiv class\x3d"ranges"\x3e\x3c/div\x3e\x3cdiv class\x3d"drp-calendar left"\x3e\x3cdiv class\x3d"calendar-table"\x3e\x3c/div\x3e\x3cdiv class\x3d"calendar-time"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"drp-calendar right"\x3e\x3cdiv class\x3d"calendar-table"\x3e\x3c/div\x3e\x3cdiv class\x3d"calendar-time"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"drp-buttons"\x3e\x3cspan class\x3d"drp-selected"\x3e\x3c/span\x3e\x3cbutton class\x3d"cancelBtn" type\x3d"button"\x3e\x3c/button\x3e\x3cbutton class\x3d"applyBtn" disabled\x3d"disabled" type\x3d"button"\x3e\x3c/button\x3e \x3c/div\x3e\x3c/div\x3e'), 111this.parentEl=i.parentEl&&e(i.parentEl).length?e(i.parentEl):e(this.parentEl),this.container=e(i.template).appendTo(this.parentEl),"object"==typeof i.locale&&("string"==typeof i.locale.direction&&(this.locale.direction=i.locale.direction),"string"==typeof i.locale.format&&(this.locale.format=i.locale.format),"string"==typeof i.locale.separator&&(this.locale.separator=i.locale.separator),"object"==typeof i.locale.daysOfWeek&&
111(this.locale.daysOfWeek=i.locale.daysOfWeek.slice()),"object"==typeof i.locale.monthNames&& 112(this.locale.monthNames=i.locale.monthNames.slice()),"number"==typeof i.locale.firstDay&&(this.locale.firstDay=i.locale.firstDay),"string"==typeof i.locale.applyLabel&&(this.locale.applyLabel=i.locale.applyLabel),"string"==typeof i.locale.cancelLabel&&(this.locale.cancelLabel=i.locale.cancelLabel),"string"==typeof i.locale.weekLabel&&(this.locale.weekLabel=i.locale.weekLabel),"string"==typeof i.locale.customRangeLabel)){(p=document.createElement("textarea")).innerHTML=i.locale.customRangeLabel;var n= 113p.value;this.locale.customRangeLabel=n}if(this.container.addClass(this.locale.direction),"string"==typeof i.startDate&&(this.startDate=t(i.startDate,this.locale.format)),"string"==typeof i.endDate&&(this.endDate=t(i.endDate,this.locale.format)),"string"==typeof i.minDate&&(this.minDate=t(i.minDate,this.locale.format)),"string"==typeof i.maxDate&&(this.maxDate=t(i.maxDate,this.locale.format)),"object"==typeof i.startDate&&(this.startDate=t(i.startDate)),"object"==typeof i.endDate&&(this.endDate=t(i.endDate)), 114"object"==typeof i.minDate&&(this.minDate=t(i.minDate)),"object"==typeof i.maxDate&&(this.maxDate=t(i.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof i.applyButtonClasses&&(this.applyButtonClasses=i.applyButtonClasses),"string"==typeof i.applyClass&&(this.applyButtonClasses=i.applyClass),"string"==typeof i.cancelButtonClasses&&(this.cancelButtonClasses= 115i.cancelButtonClasses),"string"==typeof i.cancelClass&&(this.cancelButtonClasses=i.cancelClass),"object"==typeof i.maxSpan&&(this.maxSpan=i.maxSpan),"object"==typeof i.dateLimit&&(this.maxSpan=i.dateLimit),"string"==typeof i.opens&&(this.opens=i.opens),"string"==typeof i.drops&&(this.drops=i.drops),"boolean"==typeof i.showWeekNumbers&&(this.showWeekNumbers=i.showWeekNumbers),"boolean"==typeof i.showISOWeekNumbers&&(this.showISOWeekNumbers=i.showISOWeekNumbers),"string"==typeof i.buttonClasses&&(this.buttonClasses= 116i.buttonClasses),"object"==typeof i.buttonClasses&&(this.buttonClasses=i.buttonClasses.join(" ")),"boolean"==typeof i.showDropdowns&&(this.showDropdowns=i.showDropdowns),"number"==typeof i.minYear&&(this.minYear=i.minYear),"number"==typeof i.maxYear&&(this.maxYear=i.maxYear),"boolean"==typeof i.showCustomRangeLabel&&(this.showCustomRangeLabel=i.showCustomRangeLabel),"boolean"==typeof i.singleDatePicker&&(this.singleDatePicker=i.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())), 117"boolean"==typeof i.timePicker&&(this.timePicker=i.timePicker),"boolean"==typeof i.timePickerSeconds&&(this.timePickerSeconds=i.timePickerSeconds),"number"==typeof i.timePickerIncrement&&(this.timePickerIncrement=i.timePickerIncrement),"boolean"==typeof i.timePicker24Hour&&(this.timePicker24Hour=i.timePicker24Hour),"boolean"==typeof i.autoApply&&(this.autoApply=i.autoApply),"boolean"==typeof i.autoUpdateInput&&(this.autoUpdateInput=i.autoUpdateInput),"boolean"==typeof i.linkedCalendars&&(this.linkedCalendars= 118i.linkedCalendars),"function"==typeof i.isInvalidDate&&(this.isInvalidDate=i.isInvalidDate),"function"==typeof i.isCustomDate&&(this.isCustomDate=i.isCustomDate),"boolean"==typeof i.alwaysShowCalendars&&(this.alwaysShowCalendars=i.alwaysShowCalendars),0!=this.locale.firstDay)for(var r=this.locale.firstDay;r>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),r--;var o,h,l;if(void 0===i.startDate&&void 0===i.endDate&&e(this.element).is(":text")){var c=e(this.element).val(),d=c.split(this.locale.separator); 119o=h=null,2==d.length?(o=t(d[0],this.locale.format),h=t(d[1],this.locale.format)):this.singleDatePicker&&""!==c&&(o=t(c,this.locale.format),h=t(c,this.locale.format)),null!==o&&null!==h&&(this.setStartDate(o),this.setEndDate(h))}if("object"==typeof i.ranges){for(l in i.ranges){o="string"==typeof i.ranges[l][0]?t(i.ranges[l][0],this.locale.format):t(i.ranges[l][0]),h="string"==typeof i.ranges[l][1]?t(i.ranges[l][1],this.locale.format):t(i.ranges[l][1]),this.minDate&&o.isBefore(this.minDate)&&(o=this.minDate.clone()); 120var m=this.maxDate;if(this.maxSpan&&m&&o.clone().add(this.maxSpan).isAfter(m)&&(m=o.clone().add(this.maxSpan)),m&&h.isAfter(m)&&(h=m.clone()),!(this.minDate&&h.isBefore(this.minDate,this.timepicker?"minute":"day")||m&&o.isAfter(m,this.timepicker?"minute":"day"))){var p;(p=document.createElement("textarea")).innerHTML=l;n=p.value;this.ranges[n]=[o,h]}}var f="\x3cul\x3e";for(l in this.ranges)f+='\x3cli data-range-key\x3d"'+l+'"\x3e'+l+"\x3c/li\x3e";this.showCustomRangeLabel&&(f+='\x3cli data-range-key\x3d"'+ 121this.locale.customRangeLabel+'"\x3e'+this.locale.customRangeLabel+"\x3c/li\x3e"),f+="\x3c/ul\x3e",this.container.find(".ranges").prepend(f)}"function"==typeof s&&(this.callback=s),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof i.ranges&&this.container.addClass("show-ranges"), 122this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(void 0===i.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasse
122s), 123this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",e.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",e.proxy(this.clickNext,this)).on("mousedown.daterangepicker", 124"td.available",e.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",e.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",e.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",e.proxy(this.clickRange, 125this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",e.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",e.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":e.proxy(this.show,this),"focus.daterangepicker":e.proxy(this.show,this),"keyup.daterangepicker":e.proxy(this.elementChanged,this),"keydown.daterangepicker":e.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker", 126e.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",e.proxy(this.toggle,this))),this.updateElement()};return a.prototype={constructor:a,setStartDate:function(e){"string"==typeof e&&(this.startDate=t(e,this.locale.format)),"object"==typeof e&&(this.startDate=t(e)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&& 127this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(), 128this.updateMonthsInView()},setEndDate:function(e){"string"==typeof e&&(this.endDate=t(e,this.locale.format)),"object"==typeof e&&(this.endDate=t(e)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()), 129this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"), 130this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&& 131this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()== 132this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month> 133this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var t,e,a,i;if(this.endDate){if(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(), 13410):0,!this.timePicker24Hour)"PM"===(i=this.container.find(".left .ampmselect").val())&&t<12&&(t+=12),"AM"===i&&12===t&&(t=0)}else if(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(i=this.container.find(".right .ampmselect").val())&& 135t<12&&(t+=12),"AM"===i&&12===t&&(t=0);this.leftCalendar.month.hour(t).minute(e).second(a),this.rightCalendar.month.hour(t).minute(e).second(a)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(a){var i,s=(i="left"==a?this.leftCalendar:this.rightCalendar).month.month(),n=i.month.year(),r=i.month.hour(),o=i.month.minute(),h=i.month.second(),l=t([n,s]).daysInMonth(), 136c=t([n,s,1]),d=t([n,s,l]),m=t(c).subtract(1,"month").month(),p=t(c).subtract(1,"month").year(),f=t([p,m]).daysInMonth(),u=c.day();(i=[]).firstDay=c,i.lastDay=d;for(var D=0;D<6;D++)i[D]=[];var g=f-u+this.locale.firstDay+1;g>f&&(g-=7),u==this.locale.firstDay&&(g=f-6);for(var y=t([p,m,g,12,o,h]),k=(D=0,0),b=0;D<42;D++,k++,y=t(y).add(24,"hour"))D>0&&k%7==0&&(k=0,b++),i[b][k]=y.clone().hour(r).minute(o).second(h),y.hour(12),this.minDate&&i[b][k].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&& 137i[b][k].isBefore(this.minDate)&&"left"==a&&(i[b][k]=this.minDate.clone()),this.maxDate&&i[b][k].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&i[b][k].isAfter(this.maxDate)&&"right"==a&&(i[b][k]=this.maxDate.clone());"left"==a?this.leftCalendar.calendar=i:this.rightCalendar.calendar=i;
137var v="left"==a?this.minDate:this.startDate,C=this.maxDate,Y=("left"==a?this.startDate:this.endDate,this.locale.direction,'\x3ctable class\x3d"table-condensed"\x3e');Y+="\x3cthead\x3e",Y+="\x3ctr\x3e",(this.showWeekNumbers|| 138this.showISOWeekNumbers)&&(Y+="\x3cth\x3e\x3c/th\x3e"),v&&!v.isBefore(i.firstDay)||this.linkedCalendars&&"left"!=a?Y+="\x3cth\x3e\x3c/th\x3e":Y+='\x3cth class\x3d"prev available"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/th\x3e';var w=this.locale.monthNames[i[1][1].month()]+i[1][1].format(" YYYY");if(this.showDropdowns){for(var P=i[1][1].month(),x=i[1][1].year(),M=C&&C.year()||this.maxYear,I=v&&v.year()||this.minYear,S=x==I,B=x==M,A='\x3cselect class\x3d"monthselect"\x3e',L=0;L<12;L++)(!S||v&&L>=v.month())&& 139(!B||C&&L<=C.month())?A+="\x3coption value\x3d'"+L+"'"+(L===P?" selected\x3d'selected'":"")+"\x3e"+this.locale.monthNames[L]+"\x3c/option\x3e":A+="\x3coption value\x3d'"+L+"'"+(L===P?" selected\x3d'selected'":"")+" disabled\x3d'disabled'\x3e"+this.locale.monthNames[L]+"\x3c/option\x3e";A+="\x3c/select\x3e";for(var N='\x3cselect class\x3d"yearselect"\x3e',E=I;E<=M;E++)N+='\x3coption value\x3d"'+E+'"'+(E===x?' selected\x3d"selected"':"")+"\x3e"+E+"\x3c/option\x3e";w=A+(N+="\x3c/select\x3e")}if(Y+='\x3cth colspan\x3d"5" class\x3d"month"\x3e'+ 140w+"\x3c/th\x3e",C&&!C.isAfter(i.lastDay)||this.linkedCalendars&&"right"!=a&&!this.singleDatePicker?Y+="\x3cth\x3e\x3c/th\x3e":Y+='\x3cth class\x3d"next available"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/th\x3e',Y+="\x3c/tr\x3e",Y+="\x3ctr\x3e",(this.showWeekNumbers||this.showISOWeekNumbers)&&(Y+='\x3cth class\x3d"week"\x3e'+this.locale.weekLabel+"\x3c/th\x3e"),e.each(this.locale.daysOfWeek,function(t,e){Y+="\x3cth\x3e"+e+"\x3c/th\x3e"}),Y+="\x3c/tr\x3e",Y+="\x3c/thead\x3e",Y+="\x3ctbody\x3e",null==this.endDate&& 141this.maxSpan){var O=this.startDate.clone().add(this.maxSpan).endOf("day");C&&!O.isBefore(C)||(C=O)}for(b=0;b<6;b++){Y+="\x3ctr\x3e",this.showWeekNumbers?Y+='\x3ctd class\x3d"week"\x3e'+i[b][0].week()+"\x3c/td\x3e":this.showISOWeekNumbers&&(Y+='\x3ctd class\x3d"week"\x3e'+i[b][0].isoWeek()+"\x3c/td\x3e");for(k=0;k<7;k++){var W=[];i[b][k].isSame(new Date,"day")&&W.push("today"),i[b][k].isoWeekday()>5&&W.push("weekend"),i[b][k].month()!=i[1][1].month()&&W.push("off","ends"),this.minDate&&i[b][k].isBefore(this.minDate, 142"day")&&W.push("off","disabled"),C&&i[b][k].isAfter(C,"day")&&W.push("off","disabled"),this.isInvalidDate(i[b][k])&&W.push("off","disabled"),i[b][k].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&W.push("active","start-date"),null!=this.endDate&&i[b][k].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&W.push("active","end-date"),null!=this.endDate&&i[b][k]>this.startDate&&i[b][k]<this.endDate&&W.push("in-range");var H=this.isCustomDate(i[b][k]);!1!==H&&("string"==typeof H?W.push(H): 143Array.prototype.push.apply(W,H));var j="",R=!1;for(D=0;D<W.length;D++)j+=W[D]+" ","disabled"==W[D]&&(R=!0);R||(j+="available"),Y+='\x3ctd class\x3d"'+j.replace(/^\s+|\s+$/g,"")+'" data-title\x3d"r'+b+"c"+k+'"\x3e'+i[b][k].date()+"\x3c/td\x3e"}Y+="\x3c/tr\x3e"}Y+="\x3c/tbody\x3e",Y+="\x3c/table\x3e",this.container.find(".drp-calendar."+a+" .calendar-table").html(Y)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,a,i,s=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)|| 144(s=this.startDate.clone().add(this.maxSpan)),"left"==t)a=this.startDate.clone(),i=this.minDate;else if("right"==t){a=this.endDate.clone(),i=this.startDate;var n=this.container.find(".drp-calendar.right .calendar-time");if(""!=n.html()&&(a.hour(isNaN(a.hour())?n.find(".hourselect option:selected").val():a.hour()),a.minute(isNaN(a.minute())?n.find(".minuteselect option:selected").val():a.minute()),a.second(isNaN(a.second())?n.find(".secondselect option:selected").val():a.second()),!this.timePicker24Hour)){var r= 145n.find(".ampmselect option:selected").val();"PM"===r&&a.hour()<12&&a.hour(a.hour()+12),"AM"===r&&12===a.hour()&&a.hour(0)}a.isBefore(this.startDate)&&(a=this.startDate.clone()),s&&a.isAfter(s)&&(a=s.clone())}e='\x3cselect class\x3d"hourselect"\x3e';for(var o=this.timePicker24Hour?0:1,h=this.timePicker24Hour?23:12,l=o;l<=h;l++){var c=l;this.timePicker24Hour||(c=a.hour()>=12?12==l?12:l+12:12==l?0:l);var d=a.clone().hour(c),m=!1;i&&d.minute(59).isBefore(i)&&(m=!0),s&&d.minute(0).isAfter(s)&&(m=!0),c!= 146a.hour()||m?e+=m?'\x3coption value\x3d"'+l+'" disabled\x3d"disabled" class\x3d"disabled"\x3e'+l+"\x3c/option\x3e":'\x3coption value\x3d"'+l+'"\x3e'+l+"\x3c/option\x3e":e+='\x3coption value\x3d"'+l+'" selected\x3d"selected"\x3e'+l+"\x3c/option\x3e"}e+="\x3c/select\x3e ",e+=': \x3cselect class\x3d"minuteselect"\x3e';for(l=0;l<60;l+=this.timePickerIncrement){var p=l<10?"0"+l:l;d=a.clone().minute(l),m=!1;i&&d.second(59).isBefore(i)&&(m=!0),s&&d.second(0).isAfter(s)&&(m=!0),a.minute()!=l||m?e
146+=m?'\x3coption value\x3d"'+ 147l+'" disabled\x3d"disabled" class\x3d"disabled"\x3e'+p+"\x3c/option\x3e":'\x3coption value\x3d"'+l+'"\x3e'+p+"\x3c/option\x3e":e+='\x3coption value\x3d"'+l+'" selected\x3d"selected"\x3e'+p+"\x3c/option\x3e"}if(e+="\x3c/select\x3e ",this.timePickerSeconds){e+=': \x3cselect class\x3d"secondselect"\x3e';for(l=0;l<60;l++){p=l<10?"0"+l:l,d=a.clone().second(l),m=!1;i&&d.isBefore(i)&&(m=!0),s&&d.isAfter(s)&&(m=!0),a.second()!=l||m?e+=m?'\x3coption value\x3d"'+l+'" disabled\x3d"disabled" class\x3d"disabled"\x3e'+ 148p+"\x3c/option\x3e":'\x3coption value\x3d"'+l+'"\x3e'+p+"\x3c/option\x3e":e+='\x3coption value\x3d"'+l+'" selected\x3d"selected"\x3e'+p+"\x3c/option\x3e"}e+="\x3c/select\x3e "}if(!this.timePicker24Hour){e+='\x3cselect class\x3d"ampmselect"\x3e';var f="",u="";i&&a.clone().hour(12).minute(0).second(0).isBefore(i)&&(f=' disabled\x3d"disabled" class\x3d"disabled"'),s&&a.clone().hour(0).minute(0).second(0).isAfter(s)&&(u=' disabled\x3d"disabled" class\x3d"disabled"'),a.hour()>=12?e+='\x3coption value\x3d"AM"'+ 149f+'\x3eAM\x3c/option\x3e\x3coption value\x3d"PM" selected\x3d"selected"'+u+"\x3ePM\x3c/option\x3e":e+='\x3coption value\x3d"AM" selected\x3d"selected"'+f+'\x3eAM\x3c/option\x3e\x3coption value\x3d"PM"'+u+"\x3ePM\x3c/option\x3e",e+="\x3c/select\x3e"}this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled", 150!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var t,a={top:0,left:0},i=this.drops,s=e(window).width();switch(this.parentEl.is("body")||(a={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},s=this.parentEl[0].clientWidth+this.parentEl.offset().left),i){case "auto":(t=this.element.offset().top+this.element.outerHeight()-a.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(t=this.element.offset().top- 151this.container.outerHeight()-a.top,i="up");break;case "up":t=this.element.offset().top-this.container.outerHeight()-a.top;break;default:t=this.element.offset().top+this.element.outerHeight()-a.top}this.container.css({top:0,left:0,right:"auto"});var n=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==i),"left"==this.opens){var r=s-this.element.offset().left-this.element.outerWidth();n+r>e(window).width()?this.container.css({top:t,right:"auto",left:9}):this.container.css({top:t, 152right:r,left:"auto"})}else if("center"==this.opens)(o=this.element.offset().left-a.left+this.element.outerWidth()/2-n/2)<0?this.container.css({top:t,right:"auto",left:9}):o+n>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:o,right:"auto"});else{var o;(o=this.element.offset().left-a.left)+n>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:o,right:"auto"})}},show:function(t){this.isShowing||(this._outsideClickProxy= 153e.proxy(function(t){this.outsideClick(t)},this),e(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle\x3ddropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),e(window).on("resize.daterangepicker",e.proxy(function(t){this.move(t)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(), 154this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),e(document).off(".daterangepicker"),e(window).off(".daterangepicker"),this.container.hide(), 155this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var a=e(t.target);"focusin"==t.type||a.closest(this.element).length||a.closest(this.container).length||a.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)}, 156hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var a=this.ranges[e];this.startDate=a[0],this.endDate=a[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){e(t.target).parents(".drp-calendar").hasClass("left")? 157(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(e(t.target).hasClass("available")){var a=e(t.target).attr("data-title"), 158i=a.substr(1,1),s=a.substr(3,1),n=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[i][s]:this.rightCalendar.calendar[i][s],r=this.leftCalendar,o=this.rightCalendar,h=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(t,a){if(!e(a).hasClass("week")){var i=e(a).attr("data-title"),s=i.substr(1,1),l=i.substr(3,1),c=e(a).parents(".drp-calendar").hasClass("left")?r.calendar[s][l]:o.calendar[s][l];c.isAfter(h)&&c.isBefore(n)||c.isSame(n, 159"day")?e(a).addClass("in-range"):e(a).removeClass("in-range")}})}},clickDate:function(t){if(e(t.target).hasClass("available")){var a=e(t.target).attr("data-title"),i=a.substr(1,1),s=a.substr(3,1),n=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[i][s]:this.rightCalendar.calendar[i][s];if(this.endDate||n.isBefore(this.startDate,"day")){if(this.timePicker){var r=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".left .ampmselect").val())&& 160r<12&&(r+=12),"AM"===l&&12===r&&(r=0);var o=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(o)&&(o=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var h=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;n=n.clone().hour(r).minute(o).second(h)}this.endDate=null,this.setStartDate(n.clone())}else if(!this.endDate&&n.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var l;r=parseInt(this.container.find(".right .hourselect").val(), 16110);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".right .ampmselect").val())&&r<12&&(r+=12),"AM"===l&&12===r&&(r=0);o=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10));h=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;n=n.clone().hour(r).minute(o).second(h)}this.setEndDate(n.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&& 162(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var a in this.ranges){if(this.timePicker){var i=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(i)==this.ranges[a][0].format(i)&&this.endDate.format(i)==this.ranges[a][1].format(i)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key"); 163break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[a][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[a][1].format("YYYY-MM-DD")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker", 164this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var a=e(t.target).closest(".drp-calendar").hasClass("left"),i=a?"left":"right",s=this.container.find(".drp-calendar."+i),n=parseInt(s.find(".monthselect").val(),10),r=s.find(".yearselect").val();a||(r<this.startDate.year()||r==this.startDate.year()&&n<this.startDate.month())&&(n=this.startDate.month(),r=this.startDate.year()), 165this.minDate&&(r<this.minDate.year()||r==this.minDate.year()&&n<this.minDate.month())&&(n=this.minDate.month(),r=this.minDate.year()),this.maxDate&&(r>this.maxDate.year()||r==this.maxDate.year()&&n>this.maxDate.month())&&(n=this.maxDate.month(),r=this.maxDate.year()),a?(this.leftCalendar.month.month(n).year(r),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(n).year(r),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1, 166"month"))),this.updateCalendars()},timeChanged:function(t){var a=e(t.target).closest(".drp-calendar"),i=a.hasClass("left"),s=parseInt(a.find(".hourselect").val(),10),n=parseInt(a.find(".minuteselect").val(),10);isNaN(n)&&(n=parseInt(a.find(".minuteselect option:last").val(),10));var r=this.timePickerSeconds?parseInt(a.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var o=a.find(".ampmselect").val();"PM"===o&&s<12&&(s+=12),"AM"===o&&12===s&&(s=0)}if(i){var h=this.startDate.clone();h.hour(s), 167h.minute(n),h.second(r),this.setStartDate(h),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==h.format("YYYY-MM-DD")&&this.endDate.isBefore(h)&&this.setEndDate(h.clone())}else if(this.endDate){var l=this.endDate.clone();l.hour(s),l.minute(n),l.second(r),this.setEndDate(l)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var e= 168this.element.val().split(this.locale.separator),a=null,i=null;2===e.length&&(a=t(e[0],this.locale.format),i=t(e[1],this.locale.format)),(this.singleDatePicker||null===a||null===i)&&(i=a=t(this.element.val(),this.locale.format)),a.isValid()&&i.isValid()&&(this.setStartDate(a),this.setEndDate(i),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&& 169this.autoUpdateInput){var t=this.startDate.format(this.locale.format);this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},e.fn.daterangepicker=function(t,i){var s=e.extend(!0,{},e.fn.daterangepicker.defaultOptions,t);return this.each(function(){var t=e(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(), 170t.data("daterangepicker",new a(t,s,i))}),this},a});var sideBar=$(".userNewsletterRegistration.sidebar");var sticky=sideBar.offset(); 171$(document).ready(function(){$(".csContent .promotion").on("click",".fa-chevron-right",function(){$("#promotionBox").focus()});$(".csContent .promotion").on("click",".fa-chevron-left",function(){$("#promotionBox").focus()});if($(".imageGallery").length)if($(".interview").length)$(".article-content div.interview-item:eq(0)").after($(".imageGallery"));else $(".article-content\x3ep:eq(2)").after($(".imageGallery"));var viewmore=getUrlParameter("view.more");if(viewmore=="true")$("html, body").animate({scrollTop:$(".csContent").offset().top}, 1721500);if($("#nl_form_wrap").length){$(".btn_nl_form_trigger").click(function(e){e.preventDefault();$("#nl_form_wrap").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$(this).find(".fa").toggleClass("fa-caret-down").toggleClass("fa-envelope-o");return false});$("#newsletterForm").submit(function(e){e.preventDefault();$(".nl_feedback").hide();var formvalues=$(this).serialize();var targeturl="https://www.industr.com/media/newsletter.php";if($("#accept:checked").length)$.post(targeturl,formvalues, 173function(d){if(d=="ok"){$("#newsletterForm").hide();$(".nl_ok").show()}else if(d=="duplicate")$(".nl_dup").show();else $(".nl_error").show()});else $(".nl_terms_error").show();return false})}if($("#reg_magazines_wrap").length){$(".btn_reg_form_trigger").click(function(e){e.preventDefault();$("#reg_magazines_wrap").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$(this).find(".fa").toggleClass("fa-angle-double-down").toggleClass("fa-angle-double-up");return false});$(".btn_reg_form_magazines_trigger").click(function(e){e.preventDefault(); 174$("#magazines_wrap").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$(this).find(".fa").toggleClass("fa-angle-double-down").toggleClass("fa-angle-double-up");return false});$(".btn_reg_form_digital_magazines_trigger").click(function(e){e.preventDefault();$("#digital_magazines_wrap").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$(this).find(".fa").toggleClass("fa-angle-double-down").toggleClass("fa-angle-double-up");return false});initMagazinesAbo()}if($(".optOut").length&& 175(getUrlParameter("email")===undefined||getUrlParameter("email").length==0)){$(".optOutEMail").show(0);$(".optOutEMailLabel").show(0)}else{$(".optOutEMail").hide(0);$(".optOutEMailLabel").hide(0)}$(".optOut").click(function(e){e.preventDefault();var email=getUrlParameter("email");if(email===undefined||email.length==0)email=$(".optOutEMail").val();var mag=$(this).data("mag");var optOutUrl;if(window.location.href.indexOf("www")>0)optOutUrl="https://www.industr.com/media/optout.php";else optOutUrl="https://industr.com/media/optout.php"; 176$.ajax({url:optOutUrl,data:{email:email,mag:mag},success:function(data){$(".optOutResult").html(data)},error:function(data){console.log("error")}})});$(".optOutGeneric").click(function(e){e.preventDefault();var email=getUrlParameter("email");var optOutUrl;if(window.location.href.indexOf("www")>0)optOutUrl="https://www.industr.com/media/genericoo.php";else optOutUrl="https://industr.com/media/genericoo.php";$.ajax({url:optOutUrl,data:{email:email},success:function(data){$(".optOutResult").html(data)}, 177error:function(data){console.log("error")}})});$(document).on("click",'input[name\x3d"action.register"]',function(){$(this).addClass("disabled")});$(document).ready(function(){$(".pi_fancybox").fancybox()});$(".openDownloadForm").click();if($("article .trackingPixel").length){var trackingPixel=$("article .trackingPixel");var gpnr=getUrlParameter("GP_NR");var articleId=trackingPixel.data("id");var portal=getEPIPortal();var epiUrl;if(portal&&gpnr&&articleId)if(portal==="AUD")epiUrl="https://aud.week.industr.com/pc?mg\x3d117967522173\x26bi\x3d0\x26service\x3dpostclick_117967522173\x26gvalue1\x3d"+ 178gpnr+"\x26gvalue2\x3d"+articleId;else if(portal==="EUE")epiUrl="https://eue.week.industr.com/pc?mg\x3d117967522461\x26bi\x3d0\x26service\x3dpostclick_117967522461\x26gvalue1\x3d"+gpnr+"\x26gvalue2\x3d"+articleId;else if(portal==="E40")epiUrl="https://energy.week.industr.com/pc?mg\x3d117967522475\x26bi\x3d0\x26service\x3dpostclick_117967522475\x26gvalue1\x3d"+gpnr+"\x26gvalue2\x3d"+articleId;else if(portal==="INDUSTR")epiUrl="https://industr.week.industr
178.com/pc?mg\x3d117967523318\x26bi\x3d0\x26service\x3dpostclick_117967523318\x26gvalue1\x3d"+ 179gpnr+"\x26gvalue2\x3d"+articleId;else if(portal==="PUA")epiUrl="https://pua.week.industr.com/pc?mg\x3d117967522333\x26bi\x3d0\x26service\x3dpostclick_117967522333\x26gvalue1\x3d"+gpnr+"\x26gvalue2\x3d"+articleId;else if(portal==="NEXTTECH")epiUrl="https://next-technologies.industr.com/pc?mg\x3d330024634490\x26bi\x3d0\x26service\x3dpostclick_330024634490\x26gvalue1\x3d"+gpnr+"\x26gvalue2\x3d"+articleId;else if(portal==="INDUSTRIALSOLUTIONS")epiUrl="https://industrial-solutions.industr.com/pc?mg\x3d330241370419\x26bi\x3d0\x26service\x3dpostclick_330241370419\x26gvalue1\x3d"+ 180gpnr+"\x26gvalue2\x3d"+articleId;else if(portal==="INDUSTRYFORWARD")epiUrl="https://industry-forward.industr.com/pc?mg\x3d330196513652\x26bi\x3d0\x26service\x3d330196513652\x26gvalue1\x3d"+gpnr+"\x26gvalue2\x3d"+articleId;if(epiUrl)trackingPixel.attr("src",epiUrl);else trackingPixel.remove()}$("#searchShowForm").submit(function(e){e.preventDefault();e.stopPropagation();window.location.href="/de/search?s.text\x3d"+$("#searchShowForm #searchShowText").val()});$(document).on("click",".articleElement .articleCheckbox", 181function(){refreshCheckbox()});$(document).on("click",".form-upload-center .action-buttons .edit",function(){var checkedElement=$(".form-upload-center .articleElement .checkbox input:checked");if(checkedElement.length==1)window.location.replace(window.location.origin+"/de/account/upload-center/"+checkedElement.val())});$(document).on("click",".form-upload-center .action-buttons .publish-on",function(){$(".csHeader").addClass("modalHeader");$(".csPage__right").addClass("modalPageRight");$(".form-upload-center .publishOnModal").css("display", 182"block")});$(document).on("click",".form-upload-center .publishOnModal .close",function(){$(".form-upload-center .publishOnModal").css("display","none");$(".csHeader").removeClass("modalHeader");$(".csPage__right").removeClass("modalPageRight")});$(document).on("click",".form-upload-center .publishOnModal .modal-buttons .publishOn",function(){var pubDate=$(".publishOnModal .publicationDateInput");var pubTime=$(".publishOnModal .publicationTimeInput");$(".publishOnModal .publicationDateError").css("display", 183"none");if(pubDate.val()==""||pubTime.val()=="")$(".publishOnModal .publicationDateError").css("display","block");else{$(".publishOnModal .publicationDateInputHidden").val(pubDate.val());$(".publishOnModal .publicationTimeInputHidden").val(pubTime.val());$(".form-upload-center .publishOnModal .modal-buttons .publishOnSubmit").click()}});$(document).on("click",".form-upload-center .action-buttons .preview",function(){var checkboxElements=$(".articleElement .articleCheckbox");var checkboxesChecked= 184[];for(var i=0;i<checkboxElements.length;i++)if(checkboxElements[i].checked)checkboxesChecked.push(checkboxElements[i]);if(checkboxesChecked.length>0)window.open("/de/account/upload-center/preview/"+checkboxesChecked[0].value,"_blank")});var urlParams=new URLSearchParams(window.location.search);if(urlParams.has("ucenter"))$('a[href\x3d"#tab_4"]').click();initDatePicker();$(document).on("mouseover",".userNewsletterRegistration.sidebar",function(){$(".userNewsletterRegistration.sidebar").addClass("mouseOver")}); 185$(document).on("mouseout",".userNewsletterRegistration.sidebar",function(){$(".userNewsletterRegistration.sidebar").removeClass("mouseOver")});if($(".csSidebar .userNewsletterRegistration").length>0)$(".csSidebar").addClass("sidebarOver");else $(".csSidebar").removeClass("sidebarOver");var updateCounter=0;if(document.location.href.indexOf("account?newslettersAbo\x3dtrue")!=-1){var aboLink=$(".nl-tab");if(aboLink.length>0){var aTag=aboLink.find("a");if(aTag.length>0)aTag.click()}}$(document).on("click", 186".resetDatepicker",function(){resetDatePicker()})});function goToTop(){if($(".confirmPass").length>0||$(".feedback").length>0||$(".newsletterConfirmationPage").length>0||$(".newsletterNewUserPage").length>0){document.body.scrollTop=0;document.documentElement.scrollTop=0;sideBar.offset(sticky)}}function resetDatePicker(){$("#inputFromDate").val("01.01.2015");$("#inputUntilDate").val(moment().subtract(1,"days").format("DD.MM.YYYY"));$("#refreshBtn").click()} 187function initDatePicker(){var queryString=window.location.search;queryString=queryString.substring(1);$("#query").val(queryString);$("#datepicker").daterangepicker({"showDropdowns":true,"showWeekNumbers":true,autoUpdateInput:false,linkedCalendars:false,ranges:{"Yesterday":[moment().subtract(1,"days"),moment().subtract(1,"days")],"Last 7 Days":[moment().subtract(7,"days"),moment()],"Last 30 Days":[moment().subtract(30,"days"),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")], 188"Last Month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"This Year":[moment().startOf("year"),moment().endOf("month")],"Last Year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"Last 12 Months":[moment().subtract(12,"months"),moment()]},"locale":{"format":"MM/DD/YYYY","separator":" - ","applyLabel":"Apply","cancelLabel":"Cancel","fromLabel":"From","toLabel":"To","customRangeLabel":"Custom","weekLabel":"W","daysOfWeek":["Su", 189"Mo","Tu","We","Th","Fr","Sa"],"monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"firstDay":1},"minDate":"01/01/2015","maxDate":moment().subtract(1,"days")},function(start,end,label){$("#inputFromDate").val(start.format("DD.MM.YYYY"));$("#inputUntilDate").val(end.format("DD.MM.YYYY"));refreshFilteredStatistics(this)});initDates()} 190function initDates(){var fromDate=$("#cmFromDate").text();var toDate=$("#cmUntilDate").text();var fromDateSplit=fromDate.split(".");var fromDateString=fromDateSplit[1]+"-"+fromDateSplit[0]+"-"+fromDateSplit[2];var toDateSplit=toDate.split(".");var toDateString=toDateSplit[1]+"-"+toDateSplit[0]+"-"+toDateSplit[2];if($("#datepicker")!=null&&$("#datepicker").length>0){$("#datepicker").data("daterangepicker").setStartDate(fromDateString);$("#datepicker").data("daterangepicker").setEndDate(toDateString)}} 191function refreshCheckbox(){var checkboxElements=$(".articleElement .articleCheckbox");var checkboxesChecked=[];for(var i=0;i<checkboxElements.length;i++)if(checkboxElements[i].checked)checkboxesChecked.push(checkboxElements[i]);if(checkboxesChecked.length==0){$(".form-upload-center .action-buttons .publish").attr("disabled","disabled");$(".form-upload-center .action-buttons .publish-on").attr("disabled","disabled");$(".form-upload-center .action-buttons .offline").attr("disabled","disabled");$(".form-upload-center .action-buttons .edit").attr("disabled", 192"disabled");$(".form-upload-center .action-buttons .preview").attr("disabled","disabled")}else if(checkboxesChecked.length==1){$(".form-upload-center .action-buttons .publish").removeAttr("disabled");$(".form-upload-center .action-buttons .publish-on").removeAttr("disabled");$(".form-upload-center .action-buttons .offline").removeAttr("disabled");$(".form-upload-center .action-buttons .edit").removeAttr("disabled");$(".form-upload-center .action-buttons .preview").removeAttr("disabled")}else if(checkboxesChecked.length> 1931){$(".form-upload-center .action-buttons .publish").removeAttr("disabled");$(".form-upload-center .action-buttons .publish-on").removeAttr("disabled");$(".form-upload-center .action-buttons .offline").removeAttr("disabled");$(".form-upload-center .action-buttons .edit").attr("disabled","disabled");$(".form-upload-center .action-buttons .preview").attr("disabled","disabled")}} 194function getEPIPortal(){var cookies=document.cookie.split(";").map((x)=>x.trim()).filter((x)=>x.startsWith("o4ocl"));var epiParam=getUrlParameter("utm_medium");var epiName="";
194if(cookies.length>0)epiName=cookies[0].split("\x3d")[0].trim();if(epiName==="o4ocl117967522173"||epiParam&&epiParam==="AUD")return"AUD";else if(epiName==="o4ocl117967522461"||epiParam&&epiParam==="EUE")return"EUE";else if(epiName==="o4ocl117967522475"||epiParam&&epiParam==="E40")return"E40";else if(epiName==="o4ocl117967523318"|| 195epiParam&&epiParam==="IND")return"INDUSTR";else if(epiName==="o4ocl117967522333"||epiParam&&epiParam==="PUA")return"PUA";else if(epiName==="o4ocl330024634490"||epiParam&&epiParam==="NEXTTECH")return"NEXTTECH";else if(epiName==="o4ocl330241370419"||epiParam&&epiParam==="INDUSTRIALSOLUTIONS")return"INDUSTRIALSOLUTIONS";else if(epiName==="o4ocl330196513652"||epiParam&&epiParam==="INDUSTRYFORWARD")return"INDUSTRYFORWARD";return null}function removeEventFancy(event){$(event).unbind("click")} 196var getUrlParameter=function getUrlParameter(sParam){var sPageURL=decodeURIComponent(window.location.search.substring(1)),sURLVariables=sPageURL.split("\x26"),sParameterName,i;for(i=0;i<sURLVariables.length;i++){sParameterName=sURLVariables[i].split("\x3d");if(sParameterName[0]===sParam)return sParameterName[1]===undefined?true:sParameterName[1]}}; 197function resize_billboard(){$(".csTeaserView .csContent").css({marginTop:0});$(".csSidebar").css({marginTop:-200});$("#avp_zid_37_iframe, #avp_zid_7_iframe, #avp_zid_124_iframe").contents().find("a img").css({"width":"100%","height":"auto"})} 198function updateLevel2(select){var index=select.selectedIndex;var text=select.options[index].text;var selectClass=select.getAttribute("data-class");if(text=="---")$("."+selectClass+"SelectLevel2").hide();else{$("."+selectClass+"LabelLevel2").text(text);$("."+selectClass+"SelectLevel2").show()}}function initMagazinesAbo(){} 199function registerSubmit(token){let params,mc,mk;params=new URLSearchParams(document.location.search);mc=params.get("mtm_campaign");mk=params.get("mtm_kwd");if(typeof _paq!=="undefined")_paq.push(["trackEvent","Registration form","Submit",mc+" - "+mk]);$("form.form-register input.token").val(token);$("form.form-register input.submit").click()} 200function updateTitleAndDescription(){let queryString=window.location.search;let splittedQuery=[];let page=1;let isTagSegment=window.location.href.indexOf("/tag/")!=-1;let isSearchSegment=window.location.href.indexOf("/search?")!=-1;let isTopicSegment=window.location.href.indexOf("/topics/")!=-1;let isHotTopicSegment=window.location.href.indexOf("/hot_topics/")!=-1;let isCorporateChannelSegment=window.location.href.indexOf("/corporate-channel/")!=-1;let isViewMore=window.location.href.indexOf("view.more\x3dtrue")!= 201-1;let isMenschenSegment=window.location.href.indexOf("/menschen")!=-1;let isEpaperSegment=window.location.href.indexOf("/e-paper")!=-1;if(isSearchSegment||isMenschenSegment||isEpaperSegment||isCorporateChannelSegment&&isViewMore){splittedQuery=queryString.split("\x26");let found=false;let index=0;while(!found&&index<splittedQuery.length){let split=splittedQuery[index];if(split.indexOf("s.page\x3d")!=-1){found=true;page=split.substring(split.length-1,split.length)}if(split.indexOf("list3.page\x3d")!= 202-1){found=true;page=split.substring(split.length-1,split.length)}if(split.indexOf("list2.page\x3d")!=-1){found=true;page=split.substring(split.length-1,split.length)}index++}}else{splittedQuery=queryString.split("\x3d");if(splittedQuery!=null&&splittedQuery.length==2)page=splittedQuery[splittedQuery.length-1]}if(isTagSegment||isSearchSegment||isTopicSegment||isHotTopicSegment||isCorporateChannelSegment||isMenschenSegment||isEpaperSegment)if(document.title.indexOf("Seite")!=-1)if(page==1&&!isViewMore)document.title= 203document.title.substring(0,document.title.length-10);else document.title=document.title.substring(0,document.title.length-1)+page;else{if(page!="1")document.title=document.title+" - Seite "+page}else document.title=document.title.substring(0,document.title.length-1)+page;let description=$("meta").filter(function(){return this["name"]=="description"});let metas=Array.from(document.getElementsByTagName("meta"));let links=Array.from(document.getElementsByTagName("link"));let ogTitle=metas.find((m)=>
203 204m.attributes[0].nodeValue==="og:title");let ogDescription=metas.find((m)=>m.attributes[0].nodeValue==="og:description");let ogUrl=metas.find((m)=>m.attributes[0].nodeValue==="og:url");let canonical=links.find((m)=>m.attributes[0].nodeValue==="canonical");if(description!=null&&description.length==1){let newDesc=description[0].content;if(isTagSegment||isSearchSegment||isTopicSegment||isHotTopicSegment||isCorporateChannelSegment||isMenschenSegment||isEpaperSegment)if(newDesc.indexOf("Seite")!=-1)if(page== 2051&&!isViewMore)description[0].content=newDesc.substring(0,newDesc.length-10);else description[0].content=newDesc.substring(0,newDesc.length-1)+page;else{if(page!="1")description[0].content=newDesc+" - Seite "+page}else description[0].content=newDesc.substring(0,newDesc.length-1)+page}if(ogTitle!=null&&ogTitle.content!=null){let newOgTitle=ogTitle.content;if(isTagSegment||isSearchSegment||isTopicSegment||isHotTopicSegment||isCorporateChannelSegment||isMenschenSegment||isEpaperSegment)if(newOgTitle.indexOf("Seite")!= 206-1)if(page==1&&!isViewMore)ogTitle.content=newOgTitle.substring(0,newOgTitle.length-10);else ogTitle.content=newOgTitle.substring(0,newOgTitle.length-1)+page;else{if(page!="1")ogTitle.content=newOgTitle+" - Seite "+page}else ogTitle.content=newOgTitle.substring(0,newOgTitle.length-1)+page}if(ogDescription!=null&&ogDescription.content!=null){let newOgDesc=ogDescription.content;if(isTagSegment||isSearchSegment||isTopicSegment||isHotTopicSegment||isCorporateChannelSegment||isMenschenSegment||isEpaperSegment)if(newOgDesc.indexOf("Seite")!= 207-1)if(page==1&&!isViewMore)ogDescription.content=newOgDesc.substring(0,newOgDesc.length-10);else ogDescription.content=newOgDesc.substring(0,newOgDesc.length-1)+page;else{if(page!="1")ogDescription.content=newOgDesc+" - Seite "+page}else ogDescription.content=newOgDesc.substring(0,newOgDesc.length-1)+page}if(ogUrl!=null&&ogUrl.content!=null){let index=ogUrl.content.indexOf("?");let newOgUrl=ogUrl.content;if(index!=-1)newOgUrl=newOgUrl.substring(0,index);ogUrl.content=newOgUrl+queryString}if(canonical!= 208null){let href=canonical.getAttribute("href");if(href!=null&&href.length>0){let index=href.indexOf("?");if(index!=-1)href=href.substring(0,index);canonical.setAttribute("href",href+queryString)}}}var altcha=document.querySelector("altcha-widget");if(altcha)altcha.addEventListener("statechange",(ev)=>{if(ev.detail.state==="verified")$(".altcha-button").prop("disabled",false)});(function(){var $,Morris,minutesSpecHelper,secondsSpecHelper,__slice=[].slice,__bind=function(fn,me){return function(){return fn.apply(me,arguments)}},__hasProp={}.hasOwnProperty,__extends=function(child,parent){for(var key in parent)if(__hasProp.call(parent,key))child[key]=parent[key];function ctor(){this.constructor=child}ctor.prototype=parent.prototype;child.prototype=new ctor;child.__super__=parent.prototype;return child},__indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in 209this&&this[i]===item)return i;return-1};Morris=window.Morris={};$=jQuery;Morris.EventEmitter=function(){function EventEmitter(){}EventEmitter.prototype.on=function(name,handler){if(this.handlers==null)this.handlers={};if(this.handlers[name]==null)this.handlers[name]=[];this.handlers[name].push(handler);return this};EventEmitter.prototype.fire=function(){var args,handler,name,_i,_len,_ref,_results;name=arguments[0],args=2<=arguments.length?__slice.call(arguments,1):[];if(this.handlers!=null&&this.handlers[name]!= 210null){_ref=this.handlers[name];_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++)handler=_ref[_i];return _results}};return EventEmitter}();Morris.commas=function(num){var absnum,intnum,ret,strabsnum;if(num!=null){ret=num<0?"-":"";absnum=Math.abs(num);intnum=Math.floor(absnum).toFixed(0);ret+=intnum.replace(/(?=(?:\d{3})+$)(?!^)/g,",");strabsnum=absnum.toString();if(strabsnum.length>intnum.length)ret+=strabsnum.slice(intnum.length);return ret}else return"-"};Morris.pad2=function(number){return(number< 21110?"0":"")+number};Morris.Grid=function(_super){__extends(Grid,_super);function Grid(options){this.resizeHandler=__bind(this.resizeHandler,this);var _this=this;if(typeof options.element==="string")this.el=$(document.getElementById(options.element));else this.el=$(options.element);if(this.el==null||this.el.length===0)throw new Error("Graph container element not found");if(this.el.css("position")==="static")this.el.css("position","relative");this.options=$.extend({},this.gridDefaults,this.defaults|| 212{},options);
212if(typeof this.options.units==="string")this.options.postUnits=options.units;this.raphael=new Raphael(this.el[0]);this.elementWidth=null;this.elementHeight=null;this.dirty=false;this.selectFrom=null;if(this.init)this.init();this.setData(this.options.data);this.el.bind("mousemove",function(evt){var left,offset,right,width,x;offset=_this.el.offset();x=evt.pageX-offset.left;if(_this.selectFrom){left=_this.data[_this.hitTest(Math.min(x,_this.selectFrom))]._x;right=_this.data[_this.hitTest(Math.max(x, 213_this.selectFrom))]._x;width=right-left;return _this.selectionRect.attr({x:left,width:width})}else return _this.fire("hovermove",x,evt.pageY-offset.top)});this.el.bind("mouseleave",function(evt){if(_this.selectFrom){_this.selectionRect.hide();_this.selectFrom=null}return _this.fire("hoverout")});this.el.bind("touchstart touchmove touchend",function(evt){var offset,touch;touch=evt.originalEvent.touches[0]||evt.originalEvent.changedTouches[0];offset=_this.el.offset();return _this.fire("hovermove",touch.pageX- 214offset.left,touch.pageY-offset.top)});this.el.bind("click",function(evt){var offset;offset=_this.el.offset();return _this.fire("gridclick",evt.pageX-offset.left,evt.pageY-offset.top)});if(this.options.rangeSelect){this.selectionRect=this.raphael.rect(0,0,0,this.el.innerHeight()).attr({fill:this.options.rangeSelectColor,stroke:false}).toBack().hide();this.el.bind("mousedown",function(evt){var offset;offset=_this.el.offset();return _this.startRange(evt.pageX-offset.left)});this.el.bind("mouseup",function(evt){var offset; 215offset=_this.el.offset();_this.endRange(evt.pageX-offset.left);return _this.fire("hovermove",evt.pageX-offset.left,evt.pageY-offset.top)})}if(this.options.resize)$(window).bind("resize",function(evt){if(_this.timeoutId!=null)window.clearTimeout(_this.timeoutId);return _this.timeoutId=window.setTimeout(_this.resizeHandler,100)});this.el.css("-webkit-tap-highlight-color","rgba(0,0,0,0)");if(this.postInit)this.postInit()}Grid.prototype.gridDefaults={dateFormat:null,axes:true,grid:true,gridLineColor:"#aaa", 216gridStrokeWidth:.5,gridTextColor:"#888",gridTextSize:12,gridTextFamily:"sans-serif",gridTextWeight:"normal",hideHover:false,yLabelFormat:null,xLabelAngle:0,numLines:5,padding:25,parseTime:true,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:false};Grid.prototype.setData=function(data, 217redraw){var e,idx,index,maxGoal,minGoal,ret,row,step,total,y,ykey,ymax,ymin,yval,_ref;if(redraw==null)redraw=true;this.options.data=data;if(data==null||data.length===0){this.data=[];this.raphael.clear();if(this.hover!=null)this.hover.hide();return}ymax=this.cumulative?0:null;ymin=this.cumulative?0:null;if(this.options.goals.length>0){minGoal=Math.min.apply(Math,this.options.goals);maxGoal=Math.max.apply(Math,this.options.goals);ymin=ymin!=null?Math.min(ymin,minGoal):minGoal;ymax=ymax!=null?Math.max(ymax, 218maxGoal):maxGoal}this.data=function(){var _i,_len,_results;_results=[];for(index=_i=0,_len=data.length;_i<_len;index=++_i){row=data[index];ret={src:row};ret.label=row[this.options.xkey];if(this.options.parseTime){ret.x=Morris.parseDate(ret.label);if(this.options.dateFormat)ret.label=this.options.dateFormat(ret.x);else if(typeof ret.label==="number")ret.label=(new Date(ret.label)).toString()}else{ret.x=index;if(this.options.xLabelFormat)ret.label=this.options.xLabelFormat(ret)}total=0;ret.y=function(){var _j, 219_len1,_ref,_results1;_ref=this.options.ykeys;_results1=[];for(idx=_j=0,_len1=_ref.length;_j<_len1;idx=++_j){ykey=_ref[idx];yval=row[ykey];if(typeof yval==="string")yval=parseFloat(yval);if(yval!=null&&typeof yval!=="number")yval=null;if(yval!=null)if(this.cumulative)total+=yval;else if(ymax!=null){ymax=Math.max(yval,ymax);ymin=Math.min(yval,ymin)}else ymax=ymin=yval;if(this.cumulative&&total!=null){ymax=Math.max(total,ymax);ymin=Math.min(total,ymin)}_results1.push(yval)}return _results1}.call(this); 220_results.push(ret)}return _results}.call(this);if(this.options.parseTime)this.data=this.data.sort(function(a,b){return(a.x>b.x)-(b.x>a.x)});this.xmin=this.data[0].x;this.xmax=this.data[this.data.length-1].x;this.events=[];if(this.options.events.length>0){if(this.options.parseTime)this.events=function(){var _i,_len,_ref,_results;_ref=this.options.events;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){e=_ref[_i];_results.push(Morris.parseDate(e))}return _results}.call(this);else this.events=this.options.events; 221this.xmax=Math.max(this.xmax,Math.max.apply(Math,this.events));this.xmin=Math.min(this.xmin,Math.min.apply(Math,this.events))}if(this.xmin===this.xmax){this.xmin-=1;this.xmax+=1}this.ymin=this.yboundary("min",ymin);this.ymax=this.yboundary("max",ymax);
221if(this.ymin===this.ymax){if(ymin)this.ymin-=1;this.ymax+=1}if((_ref=this.options.axes)===true||_ref==="both"||_ref==="y"||this.options.grid===true)if(this.options.ymax===this.gridDefaults.ymax&&this.options.ymin===this.gridDefaults.ymin){this.grid= 222this.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])}else{step=(this.ymax-this.ymin)/(this.options.numLines-1);this.grid=function(){var _i,_ref1,_ref2,_results;_results=[];for(y=_i=_ref1=this.ymin,_ref2=this.ymax;step>0?_i<=_ref2:_i>=_ref2;y=_i+=step)_results.push(y);return _results}.call(this)}this.dirty=true;if(redraw)return this.redraw()};Grid.prototype.yboundary=function(boundaryType, 223currentValue){var boundaryOption,suggestedValue;boundaryOption=this.options["y"+boundaryType];if(typeof boundaryOption==="string")if(boundaryOption.slice(0,4)==="auto")if(boundaryOption.length>5){suggestedValue=parseInt(boundaryOption.slice(5),10);if(currentValue==null)return suggestedValue;return Math[boundaryType](currentValue,suggestedValue)}else if(currentValue!=null)return currentValue;else return 0;else return parseInt(boundaryOption,10);else return boundaryOption};Grid.prototype.autoGridLines= 224function(ymin,ymax,nlines){var gmax,gmin,grid,smag,span,step,unit,y,ymag;span=ymax-ymin;ymag=Math.floor(Math.log(span)/Math.log(10));unit=Math.pow(10,ymag);gmin=Math.floor(ymin/unit)*unit;gmax=Math.ceil(ymax/unit)*unit;step=(gmax-gmin)/(nlines-1);if(unit===1&&step>1&&Math.ceil(step)!==step){step=Math.ceil(step);gmax=gmin+step*(nlines-1)}if(gmin<0&&gmax>0){gmin=Math.floor(ymin/step)*step;gmax=Math.ceil(ymax/step)*step}if(step<1){smag=Math.floor(Math.log(step)/Math.log(10));grid=function(){var _i,_results; 225_results=[];for(y=_i=gmin;step>0?_i<=gmax:_i>=gmax;y=_i+=step)_results.push(parseFloat(y.toFixed(1-smag)));return _results}()}else grid=function(){var _i,_results;_results=[];for(y=_i=gmin;step>0?_i<=gmax:_i>=gmax;y=_i+=step)_results.push(y);return _results}();return grid};Grid.prototype._calc=function(){var bottomOffsets,gridLine,h,i,w,yLabelWidths,_ref,_ref1;w=this.el.width();h=this.el.height();if(this.elementWidth!==w||this.elementHeight!==h||this.dirty){this.elementWidth=w;this.elementHeight= 226h;this.dirty=false;this.left=this.options.padding;this.right=this.elementWidth-this.options.padding;this.top=this.options.padding;this.bottom=this.elementHeight-this.options.padding;if((_ref=this.options.axes)===true||_ref==="both"||_ref==="y"){yLabelWidths=function(){var _i,_len,_ref1,_results;_ref1=this.grid;_results=[];for(_i=0,_len=_ref1.length;_i<_len;_i++){gridLine=_ref1[_i];_results.push(this.measureText(this.yAxisFormat(gridLine)).width)}return _results}.call(this);this.left+=Math.max.apply(Math, 227yLabelWidths)}if((_ref1=this.options.axes)===true||_ref1==="both"||_ref1==="x"){bottomOffsets=function(){var _i,_ref2,_results;_results=[];for(i=_i=0,_ref2=this.data.length;0<=_ref2?_i<_ref2:_i>_ref2;i=0<=_ref2?++_i:--_i)_results.push(this.measureText(this.data[i].text,-this.options.xLabelAngle).height);return _results}.call(this);this.bottom-=Math.max.apply(Math,bottomOffsets)}this.width=Math.max(1,this.right-this.left);this.height=Math.max(1,this.bottom-this.top);this.dx=this.width/(this.xmax-this.xmin); 228this.dy=this.height/(this.ymax-this.ymin);if(this.calc)return this.calc()}};Grid.prototype.transY=function(y){return this.bottom-(y-this.ymin)*this.dy};Grid.prototype.transX=function(x){if(this.data.length===1)return(this.left+this.right)/2;else return this.left+(x-this.xmin)*this.dx};Grid.prototype.redraw=function(){this.raphael.clear();this._calc();this.drawGrid();this.drawGoals();this.drawEvents();if(this.draw)return this.draw()};Grid.prototype.measureText=function(text,angle){var ret,tt;if(angle== 229null)angle=0;tt=this.raphael.text(100,100,text).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).rotate(angle);ret=tt.getBBox();tt.remove();return ret};Grid.prototype.yAxisFormat=function(label){return this.yLabelFormat(label)};Grid.prototype.yLabelFormat=function(label){if(typeof this.options.yLabelFormat==="function")return this.options.yLabelFormat(label);else return""+this.options.preUnits+Morris.commas(label)+ 230this.options.postUnits};Grid.prototype.drawGrid=function(){var lineY,y,_i,_len,_ref,_ref1,_ref2,_results;if(this.options.grid===false&&((_ref=this.options.axes)!==true&&_ref!=="both"&&_ref!=="y"))return;_ref1=this.grid;_results=[];for(_i=0,_len=_ref1.length;_i<_len;_i++){lineY=_ref1[_i];y=this.transY(lineY);if((_ref2=this.options.axes)===true||_ref2==="both"||_ref2==="y")this.drawYAxisLabel(this.left-this.options.padding/2,y,this.yAxisFormat(lineY));
230if(this.options.grid)_results.push(this.drawGridLine("M"+ 231this.left+","+y+"H"+(this.left+this.width)));else _results.push(void 0)}return _results};Grid.prototype.drawGoals=function(){var color,goal,i,_i,_len,_ref,_results;_ref=this.options.goals;_results=[];for(i=_i=0,_len=_ref.length;_i<_len;i=++_i){goal=_ref[i];color=this.options.goalLineColors[i%this.options.goalLineColors.length];_results.push(this.drawGoal(goal,color))}return _results};Grid.prototype.drawEvents=function(){var color,event,i,_i,_len,_ref,_results;_ref=this.events;_results=[];for(i=_i= 2320,_len=_ref.length;_i<_len;i=++_i){event=_ref[i];color=this.options.eventLineColors[i%this.options.eventLineColors.length];_results.push(this.drawEvent(event,color))}return _results};Grid.prototype.drawGoal=function(goal,color){return this.raphael.path("M"+this.left+","+this.transY(goal)+"H"+this.right).attr("stroke",color).attr("stroke-width",this.options.goalStrokeWidth)};Grid.prototype.drawEvent=function(event,color){return this.raphael.path("M"+this.transX(event)+","+this.bottom+"V"+this.top).attr("stroke", 233color).attr("stroke-width",this.options.eventStrokeWidth)};Grid.prototype.drawYAxisLabel=function(xPos,yPos,text){return this.raphael.text(xPos,yPos,text).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")};Grid.prototype.drawGridLine=function(path){return this.raphael.path(path).attr("stroke",this.options.gridLineColor).attr("stroke-width",this.options.gridStrokeWidth)}; 234Grid.prototype.startRange=function(x){this.hover.hide();this.selectFrom=x;return this.selectionRect.attr({x:x,width:0}).show()};Grid.prototype.endRange=function(x){var end,start;if(this.selectFrom){start=Math.min(this.selectFrom,x);end=Math.max(this.selectFrom,x);this.options.rangeSelect.call(this.el,{start:this.data[this.hitTest(start)].x,end:this.data[this.hitTest(end)].x});return this.selectFrom=null}};Grid.prototype.resizeHandler=function(){this.timeoutId=null;this.raphael.setSize(this.el.width(), 235this.el.height());return this.redraw()};return Grid}(Morris.EventEmitter);Morris.parseDate=function(date){var isecs,m,msecs,n,o,offsetmins,p,q,r,ret,secs;if(typeof date==="number")return date;m=date.match(/^(\d+) Q(\d)$/);n=date.match(/^(\d+)-(\d+)$/);o=date.match(/^(\d+)-(\d+)-(\d+)$/);p=date.match(/^(\d+) W(\d+)$/);q=date.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+)(Z|([+-])(\d\d):?(\d\d))?$/);r=date.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+):(\d+(\.\d+)?)(Z|([+-])(\d\d):?(\d\d))?$/);if(m)return(new Date(parseInt(m[1], 23610),parseInt(m[2],10)*3-1,1)).getTime();else if(n)return(new Date(parseInt(n[1],10),parseInt(n[2],10)-1,1)).getTime();else if(o)return(new Date(parseInt(o[1],10),parseInt(o[2],10)-1,parseInt(o[3],10))).getTime();else if(p){ret=new Date(parseInt(p[1],10),0,1);if(ret.getDay()!==4)ret.setMonth(0,1+(4-ret.getDay()+7)%7);return ret.getTime()+parseInt(p[2],10)*6048E5}else if(q)if(!q[6])return(new Date(parseInt(q[1],10),parseInt(q[2],10)-1,parseInt(q[3],10),parseInt(q[4],10),parseInt(q[5],10))).getTime(); 237else{offsetmins=0;if(q[6]!=="Z"){offsetmins=parseInt(q[8],10)*60+parseInt(q[9],10);if(q[7]==="+")offsetmins=0-offsetmins}return Date.UTC(parseInt(q[1],10),parseInt(q[2],10)-1,parseInt(q[3],10),parseInt(q[4],10),parseInt(q[5],10)+offsetmins)}else if(r){secs=parseFloat(r[6]);isecs=Math.floor(secs);msecs=Math.round((secs-isecs)*1E3);if(!r[8])return(new Date(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10),isecs,msecs)).getTime();else{offsetmins=0;if(r[8]!== 238"Z"){offsetmins=parseInt(r[10],10)*60+parseInt(r[11],10);if(r[9]==="+")offsetmins=0-offsetmins}return Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10)+offsetmins,isecs,msecs)}}else return(new Date(parseInt(date,10),0,1)).getTime()};Morris.Hover=function(){Hover.defaults={"class":"morris-hover morris-default-style"};function Hover(options){if(options==null)options={};this.options=$.extend({},Morris.Hover.defaults,options);this.el=$("\x3cdiv class\x3d'"+ 239this.options["class"]+"'\x3e\x3c/div\x3e");this.el.hide();this.options.parent.append(this.el)}Hover.prototype.update=function(html,x,y){if(!html)return this.hide();else{this.html(html);this.show();return this.moveTo(x,y)}};Hover.prototype.html=function(content){return this.el.html(content)};Hover.prototype.moveTo=function(x,y){var hoverHeight,hoverWidth,left,parentHeight,parentWidth,top;parentWidth=this.options.parent.innerWidth();
239parentHeight=this.options.parent.innerHeight();hoverWidth=this.el.outerWidth(); 240hoverHeight=this.el.outerHeight();left=Math.min(Math.max(0,x-hoverWidth/2),parentWidth-hoverWidth);if(y!=null){top=y-hoverHeight-10;if(top<0){top=y+10;if(top+hoverHeight>parentHeight)top=parentHeight/2-hoverHeight/2}}else top=parentHeight/2-hoverHeight/2;return this.el.css({left:left+"px",top:parseInt(top)+"px"})};Hover.prototype.show=function(){return this.el.show()};Hover.prototype.hide=function(){return this.el.hide()};return Hover}();Morris.Line=function(_super){__extends(Line,_super);function Line(options){this.hilight= 241__bind(this.hilight,this);this.onHoverOut=__bind(this.onHoverOut,this);this.onHoverMove=__bind(this.onHoverMove,this);this.onGridClick=__bind(this.onGridClick,this);if(!(this instanceof Morris.Line))return new Morris.Line(options);Line.__super__.constructor.call(this,options)}Line.prototype.init=function(){if(this.options.hideHover!=="always"){this.hover=new Morris.Hover({parent:this.el});this.on("hovermove",this.onHoverMove);this.on("hoverout",this.onHoverOut);return this.on("gridclick",this.onGridClick)}}; 242Line.prototype.defaults={lineWidth:3,pointSize:4,lineColors:["#0b62a4","#7A92A3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],pointStrokeWidths:[1],pointStrokeColors:["#ffffff"],pointFillColors:[],smooth:true,xLabels:"auto",xLabelFormat:null,xLabelMargin:24,hideHover:false};Line.prototype.calc=function(){this.calcPoints();return this.generatePaths()};Line.prototype.calcPoints=function(){var row,y,_i,_len,_ref,_results;_ref=this.data;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){row=_ref[_i]; 243row._x=this.transX(row.x);row._y=function(){var _j,_len1,_ref1,_results1;_ref1=row.y;_results1=[];for(_j=0,_len1=_ref1.length;_j<_len1;_j++){y=_ref1[_j];if(y!=null)_results1.push(this.transY(y));else _results1.push(y)}return _results1}.call(this);_results.push(row._ymax=Math.min.apply(Math,[this.bottom].concat(function(){var _j,_len1,_ref1,_results1;_ref1=row._y;_results1=[];for(_j=0,_len1=_ref1.length;_j<_len1;_j++){y=_ref1[_j];if(y!=null)_results1.push(y)}return _results1}())))}return _results}; 244Line.prototype.hitTest=function(x){var index,r,_i,_len,_ref;if(this.data.length===0)return null;_ref=this.data.slice(1);for(index=_i=0,_len=_ref.length;_i<_len;index=++_i){r=_ref[index];if(x<(r._x+this.data[index]._x)/2)break}return index};Line.prototype.onGridClick=function(x,y){var index;index=this.hitTest(x);return this.fire("click",index,this.data[index].src,x,y)};Line.prototype.onHoverMove=function(x,y){var index;index=this.hitTest(x);return this.displayHoverForRow(index)};Line.prototype.onHoverOut= 245function(){if(this.options.hideHover!==false)return this.displayHoverForRow(null)};Line.prototype.displayHoverForRow=function(index){var _ref;if(index!=null){(_ref=this.hover).update.apply(_ref,this.hoverContentForRow(index));return this.hilight(index)}else{this.hover.hide();return this.hilight()}};Line.prototype.hoverContentForRow=function(index){var content,j,row,y,_i,_len,_ref;row=this.data[index];content="\x3cdiv class\x3d'morris-hover-row-label'\x3e"+row.label+"\x3c/div\x3e";_ref=row.y;for(j= 246_i=0,_len=_ref.length;_i<_len;j=++_i){y=_ref[j];content+="\x3cdiv class\x3d'morris-hover-point' style\x3d'color: "+this.colorFor(row,j,"label")+"'\x3e\n "+this.options.labels[j]+":\n "+this.yLabelFormat(y)+"\n\x3c/div\x3e"}if(typeof this.options.hoverCallback==="function")content=this.options.hoverCallback(index,this.options,content,row.src);return[content,row._x,row._ymax]};Line.prototype.generatePaths=function(){var coords,i,r,smooth;return this.paths=function(){var _i,_ref,_ref1,_results;_results= 247[];for(i=_i=0,_ref=this.options.ykeys.length;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i){smooth=typeof this.options.smooth==="boolean"?this.options.smooth:(_ref1=this.options.ykeys[i],__indexOf.call(this.options.smooth,_ref1)>=0);coords=function(){var _j,_len,_ref2,_results1;_ref2=this.data;_results1=[];for(_j=0,_len=_ref2.length;_j<_len;_j++){r=_ref2[_j];if(r._y[i]!==void 0)_results1.push({x:r._x,y:r._y[i]})}return _results1}.call(this);if(coords.length>1)_results.push(Morris.Line.createPath(coords, 248smooth,this.bottom));else _results.push(null)}return _results}.call(this)};Line.prototype.draw=function(){var _ref;if((_ref=this.options.axes)===true||_ref==="both"||_ref==="x")this.drawXAxis();this.drawSeries();if(this.options.hideHover===false)return this.displayHoverForRow(this.data.length-1)};Line.prototype.drawXAxis=function(){var drawLabel,l,labels,prevAngleMargin,prevLabelMargin,row,ypos,_i,_len,_results,_this=this;ypos=this.bottom+this.options.padding/2;prevLabelMargin=null;prevAngleMargin= 249null;drawLabel=function(labelText,xpos){var label,labelBox,margin,offset,textBox;label=_this.drawXAxisLabel(_this.transX(xpos),ypos,labelText);textBox=label.getBBox();label.transform("r"+-_this.options.xLabelAngle);labelBox=label.getBBox();label.transform("t0,"+labelBox.height/2+"...");if(_this.options.xLabelAngle!==0){offset=-.5*textBox.width*Math.cos(_this.options.xLabelAngle*Math.PI/180);label.transform("t"+offset+",0...")}labelBox=label.getBBox();if((prevLabelMargin==null||prevLabelMargin>=labelBox.x+ 250labelBox.width||prevAngleMargin!=null&&prevAngleMargin>=labelBox.x)&&labelBox.x>=0&&labelBox.x+labelBox.width<_this.el.width()){if(_this.options.xLabelAngle!==0){margin=1.25*_this.options.gridTextSize/Math.sin(_this.options.xLabelAngle*Math.PI/180);prevAngleMargin=labelBox.x-margin}return prevLabelMargin=labelBox.x-_this.options.xLabelMargin}else return label.remove()};if(this.options.parseTime)if(this.data.length===1&&this.options.xLabels==="auto")labels=[[this.data[0].label,this.data[0].x]];else labels= 251Morris.labelSeries(this.xmin,this.xmax,this.width,this.options.xLabels,this.options.xLabelFormat);else labels=function(){var _i,_len,_ref,_results;_ref=this.data;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){row=_ref[_i];_results.push([row.label,row.x])}return _results}.call(this);labels.reverse();_results=[];for(_i=0,_len=labels.length;_i<_len;_i++){l=labels[_i];_results.push(drawLabel(l[0],l[1]))}return _results};Line.prototype.drawSeries=function(){var i,_i,_j,_ref,_ref1,_results;this.seriesPoints= 252[];for(i=_i=_ref=this.options.ykeys.length-1;_ref<=0?_i<=0:_i>=0;i=_ref<=0?++_i:--_i)this._drawLineFor(i);_results=[];for(i=_j=_ref1=this.options.ykeys.length-1;_ref1<=0?_j<=0:_j>=0;i=_ref1<=0?++_j:--_j)_results.push(this._drawPointFor(i));return _results};Line.prototype._drawPointFor=function(index){var circle,row,_i,_len,_ref,_results;this.seriesPoints[index]=[];_ref=this.data;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){row=_ref[_i];circle=null;if(row._y[index]!=null)circle=this.drawLinePoint(row._x, 253row._y[index],this.colorFor(row,index,"point"),index);_results.push(this.seriesPoints[index].push(circle))}return _results};Line.prototype._drawLineFor=function(index){var path;path=this.paths[index];if(path!==null)return this.drawLinePath(path,this.colorFor(null,index,"line"),index)};Line.createPath=function(coords,smooth,bottom){var coord,g,grads,i,ix,lg,path,prevCoord,x1,x2,y1,y2,_i,_len;path="";if(smooth)grads=Morris.Line.gradients(coords);prevCoord={y:null};for(i=_i=0,_len=coords.length;_i<_len;i= 254++_i){coord=coords[i];if(coord.y!=null)if(prevCoord.y!=null)if(smooth){g=grads[i];lg=grads[i-1];ix=(coord.x-prevCoord.x)/4;x1=prevCoord.x+ix;y1=Math.min(bottom,prevCoord.y+ix*lg);x2=coord.x-ix;y2=Math.min(bottom,coord.y-ix*g);path+="C"+x1+","+y1+","+x2+","+y2+","+coord.x+","+coord.y}else path+="L"+coord.x+","+coord.y;else if(!smooth||grads[i]!=null)path+="M"+coord.x+","+coord.y;prevCoord=coord}return path};Line.gradients=function(coords){var coord,grad,i,nextCoord,prevCoord,_i,_len,_results;grad= 255function(a,b){return(a.y-b.y)/(a.x-b.x)};_results=[];for(i=_i=0,_len=coords.length;_i<_len;i=++_i){coord=coords[i];if(coord.y!=null){nextCoord=coords[i+1]||{y:null};prevCoord=coords[i-1]||{y:null};if(prevCoord.y!=null&&nextCoord.y!=null)_results.push(grad(prevCoord,nextCoord));else if(prevCoord.y!=null)_results.push(grad(prevCoord,coord));else if(nextCoord.y!=null)_results.push(grad(coord,nextCoord));else _results.push(null)}else _results.push(null)}return _results};Line.prototype.hilight=function(index){var i, 256_i,_j,_ref,_ref1;if(this.prevHilight!==null&&this.prevHilight!==index)for(i=_i=0,_ref=this.seriesPoints.length-1;0<=_ref?_i<=_ref:_i>=_ref;i=0<=_ref?++_i:--_i)if(this.seriesPoints[i][this.prevHilight])this.seriesPoints[i][this.prevHilight].animate(this.pointShrinkSeries(i));if(index!==null&&this.prevHilight!==index)for(i=_j=0,_ref1=this.seriesPoints.length-1;0<=_ref1?_j<=_ref1:_j>=_ref1;i=0<=_ref1?++_j:--_j)if(this.seriesPoints[i][index])this.seriesPoints[i][index].animate(this.pointGrowSeries(i)); 257return this.prevHilight=index};Line.prototype.colorFor=function(row,sidx,type){if(typeof this.options.lineColors==="function")return this.options.lineColors.call(this,row,sidx,type);else if(type==="point")return this.options.pointFillColors[sidx%this.options.pointFillColors.length]||this.options.lineColors[sidx%this.options.lineColors.length];else return this.options.lineColors[sidx%this.options.lineColors.length]};Line.prototype.drawXAxisLabel=function(xPos,yPos,text){return this.raphael.text(xPos, 258yPos+15,text).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor).attr("class","xLabel")};Line.prototype.drawLinePath=function(path,lineColor,lineIndex){return this.raphael.path(path).attr("stroke",lineColor).attr("stroke-width",this.lineWidthForSeries(lineIndex))};Line.prototype.drawLinePoint=function(xPos,yPos,pointColor,lineIndex){return this.raphael.circle(xPos,yPos, 259this.pointSizeForSeries(lineIndex)).attr("fill",pointColor).attr("stroke-width",this.pointStrokeWidthForSeries(lineIndex)).attr("stroke",this.pointStrokeColorForSeries(lineIndex))};Line.prototype.pointStrokeWidthForSeries=function(index){return this.options.pointStrokeWidths[index%this.options.pointStrokeWidths.length]};Line.prototype.pointStrokeColorForSeries=function(index){return this.options.pointStrokeColors[index%this.options.pointStrokeColors.length]};
259Line.prototype.lineWidthForSeries=function(index){if(this.options.lineWidth instanceof 260Array)return this.options.lineWidth[index%this.options.lineWidth.length];else return this.options.lineWidth};Line.prototype.pointSizeForSeries=function(index){if(this.options.pointSize instanceof Array)return this.options.pointSize[index%this.options.pointSize.length];else return this.options.pointSize};Line.prototype.pointGrowSeries=function(index){return Raphael.animation({r:this.pointSizeForSeries(index)+3},25,"linear")};Line.prototype.pointShrinkSeries=function(index){return Raphael.animation({r:this.pointSizeForSeries(index)}, 26125,"linear")};return Line}(Morris.Grid);Morris.labelSeries=function(dmin,dmax,pxwidth,specName,xLabelFormat){var d,d0,ddensity,name,ret,s,spec,t,_i,_len,_ref;ddensity=200*(dmax-dmin)/pxwidth;d0=new Date(dmin);spec=Morris.LABEL_SPECS[specName];if(spec===void 0){_ref=Morris.AUTO_LABEL_ORDER;for(_i=0,_len=_ref.length;_i<_len;_i++){name=_ref[_i];s=Morris.LABEL_SPECS[name];if(ddensity>=s.span){spec=s;break}}}if(spec===void 0)spec=Morris.LABEL_SPECS["second"];if(xLabelFormat)spec=$.extend({},spec,{fmt:xLabelFormat}); 262d=spec.start(d0);ret=[];while((t=d.getTime())<=dmax){if(t>=dmin)ret.push([spec.fmt(d),t]);spec.incr(d)}return ret};minutesSpecHelper=function(interval){return{span:interval*60*1E3,start:function(d){return new Date(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours())},fmt:function(d){return""+Morris.pad2(d.getHours())+":"+Morris.pad2(d.getMinutes())},incr:function(d){return d.setUTCMinutes(d.getUTCMinutes()+interval)}}};secondsSpecHelper=function(interval){return{span:interval*1E3,start:function(d){return new Date(d.getFullYear(), 263d.getMonth(),d.getDate(),d.getHours(),d.getMinutes())},fmt:function(d){return""+Morris.pad2(d.getHours())+":"+Morris.pad2(d.getMinutes())+":"+Morris.pad2(d.getSeconds())},incr:function(d){return d.setUTCSeconds(d.getUTCSeconds()+interval)}}};Morris.LABEL_SPECS={"decade":{span:1728E8,start:function(d){return new Date(d.getFullYear()-d.getFullYear()%10,0,1)},fmt:function(d){return""+d.getFullYear()},incr:function(d){return d.setFullYear(d.getFullYear()+10)}},"year":{span:1728E7,start:function(d){return new Date(d.getFullYear(), 2640,1)},fmt:function(d){return""+d.getFullYear()},incr:function(d){return d.setFullYear(d.getFullYear()+1)}},"month":{span:24192E5,start:function(d){return new Date(d.getFullYear(),d.getMonth(),1)},fmt:function(d){return""+d.getFullYear()+"-"+Morris.pad2(d.getMonth()+1)},incr:function(d){return d.setMonth(d.getMonth()+1)}},"week":{span:6048E5,start:function(d){return new Date(d.getFullYear(),d.getMonth(),d.getDate())},fmt:function(d){return""+d.getFullYear()+"-"+Morris.pad2(d.getMonth()+1)+"-"+Morris.pad2(d.getDate())}, 265incr:function(d){return d.setDate(d.getDate()+7)}},"day":{span:864E5,start:function(d){return new Date(d.getFullYear(),d.getMonth(),d.getDate())},fmt:function(d){return""+d.getFullYear()+"-"+Morris.pad2(d.getMonth()+1)+"-"+Morris.pad2(d.getDate())},incr:function(d){return d.setDate(d.getDate()+1)}},"hour":minutesSpecHelper(60),"30min":minutesSpecHelper(30),"15min":minutesSpecHelper(15),"10min":minutesSpecHelper(10),"5min":minutesSpecHelper(5),"minute":minutesSpecHelper(1),"30sec":secondsSpecHelper(30), 266"15sec":secondsSpecHelper(15),"10sec":secondsSpecHelper(10),"5sec":secondsSpecHelper(5),"second":secondsSpecHelper(1)};Morris.AUTO_LABEL_ORDER=["decade","year","month","week","day","hour","30min","15min","10min","5min","minute","30sec","15sec","10sec","5sec","second"];Morris.Area=function(_super){var areaDefaults;__extends(Area,_super);areaDefaults={fillOpacity:"auto",behaveLikeLine:false};function Area(options){var areaOptions;if(!(this instanceof Morris.Area))return new Morris.Area(options);areaOptions= 267$.extend({},areaDefaults,options);this.cumulative=!areaOptions.behaveLikeLine;if(areaOptions.fillOpacity==="auto")areaOptions.fillOpacity=areaOptions.behaveLikeLine?.8:1;Area.__super__.constructor.call(this,areaOptions)}Area.prototype.calcPoints=function(){var row,total,y,_i,_len,_ref,_results;_ref=this.data;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){row=_ref[_i];row._x=this.transX(row.x);total=0;row._y=function(){var _j,_len1,_ref1,_results1;_ref1=row.y;_results1=[];for(_j=0,_len1=_ref1.length;_j< 268_len1;_j++){y=_ref1[_j];if(this.options.behaveLikeLine)_results1.push(this.transY(y));else{total+=y||0;_results1.push(this.transY(total))}}return _results1}.call(this);_results.push(row._ymax=Math.max.apply(Math,row._y))}return _results};Area.prototype.drawSeries=function(){var i,range,_i,_j,_k,_len,_ref,_ref1,_results,_results1,_results2;this.seriesPoints=[];if(this.options.behaveLikeLine)range=function(){_results=[];for(var _i=0,_ref=this.options.ykeys.length-1;0<=_ref?_i<=_ref:_i>=_ref;0<=_ref? 269_i++:_i--)_results.push(_i);return _results}.apply(this);else range=function(){_results1=[];for(var _j=_ref1=this.options.ykeys.length-1;_ref1<=0?_j<=0:_j>=0;_ref1<=0?_j++:_j--)_results1.push(_j);return _results1}.apply(this);_results2=[];for(_k=0,_len=range.length;_k<_len;_k++){i=range[_k];this._drawFillFor(i);this._drawLineFor(i);_results2.push(this._drawPointFor(i))}return _results2};Area.prototype._drawFillFor=function(index){var path;path=this.paths[index];if(path!==null){path=path+("L"+this.transX(this.xmax)+ 270","+this.bottom+"L"+this.transX(this.xmin)+","+this.bottom+"Z");return this.drawFilledPath(path,this.fillForSeries(index))}};Area.prototype.fillForSeries=function(i){var color;color=Raphael.rgb2hsl(this.colorFor(this.data[i],i,"line"));return Raphael.hsl(color.h,this.options.behaveLikeLine?color.s*.9:color.s*.75,Math.min(.98,this.options.behaveLikeLine?color.l*1.2:color.l*1.25))};Area.prototype.drawFilledPath=function(path,fill){return this.raphael.path(path).attr("fill",fill).attr("fill-opacity", 271this.options.fillOpacity).attr("stroke","none")};return Area}(Morris.Line);Morris.Bar=function(_super){__extends(Bar,_super);function Bar(options){this.onHoverOut=__bind(this.onHoverOut,this);this.onHoverMove=__bind(this.onHoverMove,this);this.onGridClick=__bind(this.onGridClick,this);if(!(this instanceof Morris.Bar))return new Morris.Bar(options);Bar.__super__.constructor.call(this,$.extend({},options,{parseTime:false}))}Bar.prototype.init=function(){this.cumulative=this.options.stacked;if(this.options.hideHover!== 272"always"){this.hover=new Morris.Hover({parent:this.el});this.on("hovermove",this.onHoverMove);this.on("hoverout",this.onHoverOut);return this.on("gridclick",this.onGridClick)}};Bar.prototype.defaults={barSizeRatio:.75,barGap:3,barColors:["#0b62a4","#7a92a3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],barOpacity:1,barRadius:[0,0,0,0],xLabelMargin:50};Bar.prototype.calc=function(){var _ref;this.calcBars();if(this.options.hideHover===false)return(_ref=this.hover).update.apply(_ref,this.hoverContentForRow(this.data.length- 2731))};Bar.prototype.calcBars=function(){var idx,row,y,_i,_len,_ref,_results;_ref=this.data;_results=[];for(idx=_i=0,_len=_ref.length;_i<_len;
273idx=++_i){row=_ref[idx];row._x=this.left+this.width*(idx+.5)/this.data.length;_results.push(row._y=function(){var _j,_len1,_ref1,_results1;_ref1=row.y;_results1=[];for(_j=0,_len1=_ref1.length;_j<_len1;_j++){y=_ref1[_j];if(y!=null)_results1.push(this.transY(y));else _results1.push(null)}return _results1}.call(this))}return _results};Bar.prototype.draw=function(){var _ref; 274this.drawSeries();return this.drawXAxis()};Bar.prototype.drawXAxis=function(){var i,label,labelBox,margin,offset,prevAngleMargin,prevLabelMargin,row,textBox,ypos,_i,_ref,_results;ypos=this.bottom+(this.options.xAxisLabelTopPadding||this.options.padding/3);prevLabelMargin=null;prevAngleMargin=null;_results=[];for(i=_i=0,_ref=this.data.length;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i){row=this.data[this.data.length-1-i];var className="";if(row.y==0)className="normal";else{var yPos=parseInt(row._y)+ 27510;var value=this.drawXAxisLabel(row._x,yPos,row.y)}label=this.drawXAxisLabel(row._x,ypos,row.label,className);textBox=label.getBBox();label.transform("r"+-this.options.xLabelAngle);labelBox=label.getBBox();label.transform("t0,"+labelBox.height/2+"...");if(this.options.xLabelAngle!==0){offset=-.5*textBox.width*Math.cos(this.options.xLabelAngle*Math.PI/180);label.transform("t"+offset+",0...")}if((prevLabelMargin==null||prevLabelMargin>=labelBox.x+labelBox.width||prevAngleMargin!=null&&prevAngleMargin>= 276labelBox.x)&&labelBox.x>=0&&labelBox.x+labelBox.width<this.el.width()){if(this.options.xLabelAngle!==0){margin=1.25*this.options.gridTextSize/Math.sin(this.options.xLabelAngle*Math.PI/180);prevAngleMargin=labelBox.x-margin}_results.push(prevLabelMargin=labelBox.x-this.options.xLabelMargin)}else;}return _results};Bar.prototype.drawSeries=function(){var barWidth,bottom,groupWidth,idx,lastTop,left,leftPadding,numBars,row,sidx,size,spaceLeft,top,ypos,zeroPos;groupWidth=this.width/this.options.data.length; 277numBars=this.options.stacked?1:this.options.ykeys.length;barWidth=(groupWidth*this.options.barSizeRatio-this.options.barGap*(numBars-1))/numBars;if(this.options.barSize)barWidth=Math.min(barWidth,this.options.barSize);spaceLeft=groupWidth-barWidth*numBars-this.options.barGap*(numBars-1);leftPadding=spaceLeft/2;zeroPos=this.ymin<=0&&this.ymax>=0?this.transY(0):null;return this.bars=function(){var _i,_len,_ref,_results;_ref=this.data;_results=[];for(idx=_i=0,_len=_ref.length;_i<_len;idx=++_i){row=_ref[idx]; 278lastTop=0;_results.push(function(){var _j,_len1,_ref1,_results1;_ref1=row._y;_results1=[];for(sidx=_j=0,_len1=_ref1.length;_j<_len1;sidx=++_j){ypos=_ref1[sidx];if(ypos!==null){if(zeroPos){top=Math.min(ypos,zeroPos);bottom=Math.max(ypos,zeroPos)}else{top=ypos;bottom=this.bottom}left=this.left+idx*groupWidth+leftPadding;if(!this.options.stacked)left+=sidx*(barWidth+this.options.barGap);size=bottom-top;if(this.options.verticalGridCondition&&this.options.verticalGridCondition(row.x))this.drawBar(this.left+ 279idx*groupWidth,this.top,groupWidth,Math.abs(this.top-this.bottom),this.options.verticalGridColor,this.options.verticalGridOpacity,this.options.barRadius);if(this.options.stacked)top-=lastTop;this.drawBar(left,top,barWidth,size,this.colorFor(row,sidx,"bar"),this.options.barOpacity,this.options.barRadius);_results1.push(lastTop+=size)}else _results1.push(null)}return _results1}.call(this))}return _results}.call(this)};Bar.prototype.colorFor=function(row,sidx,type){var r,s;if(typeof this.options.barColors=== 280"function"){r={x:row.x,y:row.y[sidx],label:row.label};s={index:sidx,key:this.options.ykeys[sidx],label:this.options.labels[sidx]};return this.options.barColors.call(this,r,s,type)}else return this.options.barColors[sidx%this.options.barColors.length]};Bar.prototype.hitTest=function(x){if(this.data.length===0)return null;x=Math.max(Math.min(x,this.right),this.left);return Math.min(this.data.length-1,Math.floor((x-this.left)/(this.width/this.data.length)))};Bar.prototype.onGridClick=function(x,y){var index; 281index=this.hitTest(x);return this.fire("click",index,this.data[index].src,x,y)};Bar.prototype.onHoverMove=function(x,y){var index,_ref;index=this.hitTest(x);return(_ref=this.hover).update.apply(_ref,this.hoverContentForRow(index))};Bar.prototype.onHoverOut=function(){if(this.options.hideHover!==false)return this.hover.hide()};Bar.prototype.hoverContentForRow=function(index){var content,j,row,x,y,_i,_len,_ref;row=this.data[index];content="\x3cdiv class\x3d'morris-hover-row-label'\x3e"+row.label+"\x3c/div\x3e";
282_ref=row.y;for(j=_i=0,_len=_ref.length;_i<_len;j=++_i){y=_ref[j];content+="\x3cdiv class\x3d'morris-hover-point' style\x3d'color: "+this.colorFor(row,j,"label")+"'\x3e\n "+this.options.labels[j]+":\n "+this.yLabelFormat(y)+"\n\x3c/div\x3e"}if(typeof this.options.hoverCallback==="function")content=this.options.hoverCallback(index,this.options,content,row.src);x=this.left+(index+.5)*this.width/this.data.length;return[content,x]};Bar.prototype.drawXAxisLabel=function(xPos,yPos,text,className){var label; 283return label=this.raphael.text(xPos,yPos,text).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor).attr("class",className)};Bar.prototype.drawBar=function(xPos,yPos,width,height,barColor,opacity,radiusArray){var maxRadius,path;maxRadius=Math.max.apply(Math,radiusArray);if(maxRadius===0||maxRadius>height)path=this.raphael.rect(xPos,yPos,width,height);else path=this.raphael.path(this.roundedRect(xPos, 284yPos,width,height,radiusArray));return path.attr("fill",barColor).attr("fill-opacity",opacity).attr("stroke","none")};Bar.prototype.roundedRect=function(x,y,w,h,r){if(r==null)r=[0,0,0,0];return["M",x,r[0]+y,"Q",x,y,x+r[0],y,"L",x+w-r[1],y,"Q",x+w,y,x+w,y+r[1],"L",x+w,y+h-r[2],"Q",x+w,y+h,x+w-r[2],y+h,"L",x+r[3],y+h,"Q",x,y+h,x,y+h-r[3],"Z"]};return Bar}(Morris.Grid);Morris.Donut=function(_super){__extends(Donut,_super);Donut.prototype.defaults={colors:["#0B62A4","#3980B5","#679DC6","#95BBD7","#B0CCE1", 285"#095791","#095085","#083E67","#052C48","#042135"],backgroundColor:"#FFFFFF",labelColor:"#000000",formatter:Morris.commas,resize:false};function Donut(options){this.resizeHandler=__bind(this.resizeHandler,this);this.select;this.click;var _this=this;if(!(this instanceof Morris.Donut))return new Morris.Donut(options);this.options=$.extend({},this.defaults,options);if(typeof options.element==="string")this.el=$(document.getElementById(options.element));else this.el=$(options.element);if(this.el===null|| 286this.el.length===0)throw new Error("Graph placeholder not found.");if(options.data===void 0||options.data.length===0)return;this.raphael=new Raphael(this.el[0]);if(this.options.resize)$(window).bind("resize",function(evt){if(_this.timeoutId!=null)window.clearTimeout(_this.timeoutId);return _this.timeoutId=window.setTimeout(_this.resizeHandler,100)});this.setData(options.data)}Donut.prototype.redraw=function(){var C,cx,cy,i,idx,last,max_value,min,next,seg,total,value,w,_i,_j,_k,_len,_len1,_len2,_ref, 287_ref1,_ref2,_results;this.raphael.clear();cx=this.el.width()/2;cy=this.el.height()/2;w=(Math.min(cx,cy)-10)/3;total=0;_ref=this.values;for(_i=0,_len=_ref.length;_i<_len;_i++){value=_ref[_i];total+=value}min=5/(2*w);C=1.9999*Math.PI-min*this.data.length;last=0;idx=0;this.segments=[];_ref1=this.values;for(i=_j=0,_len1=_ref1.length;_j<_len1;i=++_j){value=_ref1[i];next=last+min+C*(value/total);seg=new Morris.DonutSegment(cx,cy,w*2,w,last,next,this.data[i].color||this.options.colors[idx%this.options.colors.length], 288this.options.backgroundColor,idx,this.raphael);seg.render();this.segments.push(seg);seg.on("hover",this.select);seg.on("click",this.click);last=next;idx+=1}this.text1=this.drawEmptyDonutLabel(cx,cy-10,this.options.labelColor,15,800);this.text2=this.drawEmptyDonutLabel(cx,cy+10,this.options.labelColor,14);max_value=Math.max.apply(Math,this.values);idx=0;_ref2=this.values;_results=[];this.setLabels(total,"");return _results};Donut.prototype.setData=function(data){var row;this.data=data;this.values= 289function(){var _i,_len,_ref,_results;_ref=this.data;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){row=_ref[_i];_results.push(parseFloat(row.value))}return _results}.call(this);return this.redraw()};Donut.prototype.select=function(idx,total){var row,s,segment,_i,_len,_ref;_ref=this.segments;for(_i=0,_len=_ref.length;_i<_len;_i++){s=_ref[_i];s.deselect()}segment=this.segments[idx];segment.select();row=this.data[idx];return this.setLabels(total,"")};Donut.prototype.setLabels=function(label1,label2){var inner, 290maxHeightBottom,maxHeightTop,maxWidth,text1bbox,text1scale,text2bbox,text2scale;inner=(Math.min(this.el.width()/2,this.el.height()/2)-10)*2/3;maxWidth=1.8*inner;maxHeightTop=inner/2;maxHeightBottom=inner/2;this.text1.attr({text:label1,transform:""});text1bbox=this.text1.getBBox();text1scale=Math.min(maxWidth/text1bbox.width,maxHeightTop/text1bbox.height);this.text1.attr({transform:"S"+text1scale+","+text1scale+","+(text1bbox.x+text1bbox.width/2)+","+(text1bbox.y+text1bbox.height)});this.text2.attr({text:label2, 291transform:""});text2bbox=this.text2.getBBox();text2scale=Math.min(maxWidth/text2bbox.width,maxHeightBottom/text2bbox.height);return this.text2.attr({transform:"S"+text2scale+","+text2scale+","+(text2bbox.x+text2bbox.width/2)+","+text2bbox.y})};Donut.prototype.drawEmptyDonutLabel=function(xPos,yPos,color,fontSize,fontWeight){var text;text=this.raphael.text(xPos,yPos+17,"").attr("font-size",fontSize).attr("fill",color);if(fontWeight!=null){text.attr("font-weight",fontWeight);text.attr("font-family", 292'"myriad-pro-condensed",sans-serif')}return text};Donut.prototype.resizeHandler=function(){this.timeoutId=null;this.raphael.setSize(this.el.width(),this.el.height());return this.redraw()};return Donut}(Morris.EventEmitter);Morris.DonutSegment=function(_super){__extends(DonutSegment,_super);function DonutSegment(cx,cy,inner,outer,p0,p1,color,backgroundColor,index,raphael){this.cx=cx;this.cy=cy;this.inner=inner;this.outer=outer;this.color=color;this.backgroundColor=backgroundColor;this.index=index; 293this.raphael=raphael;this.deselect=__bind(this.deselect,this);this.select=__bind(this.select,this);this.sin_p0=Math.sin(p0);this.cos_p0=Math.cos(p0);this.sin_p1=Math.sin(p1);this.cos_p1=Math.cos(p1);this.is_long=p1-p0>Math.PI?1:0;this.path=this.calcSegment(this.inner+3,this.inner+this.outer+3);this.selectedPath=this.calcSegment(this.inner+3,this.inner+this.outer);this.hilight=this.calcArc(this.inner)}DonutSegment.prototype.calcArcPoints=function(r){return[this.cx+r*this.sin_p0,this.cy+r*this.cos_p0, 294this.cx+r*this.sin_p1,this.cy+r*this.cos_p1]};DonutSegment.prototype.calcSegment=function(r1,r2){var ix0,ix1,iy0,iy1,ox0,ox1,oy0,oy1,_ref,_ref1;_ref=this.calcArcPoints(r1),ix0=_ref[0],iy0=_ref[1],ix1=_ref[2],iy1=_ref[3];_ref1=this.calcArcPoints(r2),ox0=_ref1[0],oy0=_ref1[1],ox1=_ref1[2],oy1=_ref1[3];return"M"+ix0+","+iy0+("A"+r1+","+r1+",0,"+this.is_long+",0,"+ix1+","+iy1)+("L"+ox1+","+oy1)+("A"+r2+","+r2+",0,"+this.is_long+",1,"+ox0+","+oy0)+"Z"};DonutSegment.prototype.calcArc=function(r){var ix0, 295ix1,iy0,iy1,_ref;_ref=this.calcArcPoints(r),ix0=_ref[0],iy0=_ref[1],ix1=_ref[2],iy1=_ref[3];return"M"+ix0+","+iy0+("A"+r+","+r+",0,"+this.is_long+",0,"+ix1+","+iy1)};DonutSegment.prototype.render=function(){var _this=this;this.arc=this.drawDonutArc(this.hilight,this.color);return this.seg=this.drawDonutSegment(this.path,this.color,this.backgroundColor,function(){return _this.fire("hover",_this.index)},function(){return _this.fire("click",_this.index)})};DonutSegment.prototype.drawDonutArc=function(path, 296color){return this.raphael.path(path).attr({stroke:color,"stroke-width":2,o
296pacity:0})};DonutSegment.prototype.drawDonutSegment=function(path,fillColor,strokeColor,hoverFunction,clickFunction){return this.raphael.path(path).attr({fill:fillColor,stroke:strokeColor,"stroke-width":0}).hover(hoverFunction).click(clickFunction)};DonutSegment.prototype.select=function(){if(!this.selected){this.seg.animate({path:this.selectedPath},150,"\x3c\x3e");this.arc.animate({opacity:1},150,"\x3c\x3e");return this.selected= 297true}};DonutSegment.prototype.deselect=function(){if(this.selected){this.seg.animate({path:this.path},150,"\x3c\x3e");this.arc.animate({opacity:0},150,"\x3c\x3e");return this.selected=false}};return DonutSegment}(Morris.EventEmitter)}).call(this);(function(glob){var version="0.4.2",has="hasOwnProperty",separator=/[\.\/]/,wildcard="*",fun=function(){},numsort=function(a,b){return a-b},current_event,stop,events={n:{}},eve=function(name,scope){name=String(name);var e=events,oldstop=stop,args=Array.prototype.slice.call(arguments,2),listeners=eve.listeners(name),z=0,f=false,l,indexed=[],queue={},out=[],ce=current_event,errors=[];current_event=name;stop=0;for(var i=0,ii=listeners.length;i<ii;i++)if("zIndex"in listeners[i]){indexed.push(listeners[i].zIndex); 298if(listeners[i].zIndex<0)queue[listeners[i].zIndex]=listeners[i]}indexed.sort(numsort);while(indexed[z]<0){l=queue[indexed[z++]];out.push(l.apply(scope,args));if(stop){stop=oldstop;return out}}for(i=0;i<ii;i++){l=listeners[i];if("zIndex"in l)if(l.zIndex==indexed[z]){out.push(l.apply(scope,args));if(stop)break;do{z++;l=queue[indexed[z]];l&&out.push(l.apply(scope,args));if(stop)break}while(l)}else queue[l.zIndex]=l;else{out.push(l.apply(scope,args));if(stop)break}}stop=oldstop;current_event=ce;return out.length? 299out:null};eve._events=events;eve.listeners=function(name){var names=name.split(separator),e=events,item,items,k,i,ii,j,jj,nes,es=[e],out=[];for(i=0,ii=names.length;i<ii;i++){nes=[];for(j=0,jj=es.length;j<jj;j++){e=es[j].n;items=[e[names[i]],e[wildcard]];k=2;while(k--){item=items[k];if(item){nes.push(item);out=out.concat(item.f||[])}}}es=nes}return out};eve.on=function(name,f){name=String(name);if(typeof f!="function")return function(){};var names=name.split(separator),e=events;for(var i=0,ii=names.length;i< 300ii;i++){e=e.n;e=e.hasOwnProperty(names[i])&&e[names[i]]||(e[names[i]]={n:{}})}e.f=e.f||[];for(i=0,ii=e.f.length;i<ii;i++)if(e.f[i]==f)return fun;e.f.push(f);return function(zIndex){if(+zIndex==+zIndex)f.zIndex=+zIndex}};eve.f=function(event){var attrs=[].slice.call(arguments,1);return function(){eve.apply(null,[event,null].concat(attrs).concat([].slice.call(arguments,0)))}};eve.stop=function(){stop=1};eve.nt=function(subname){if(subname)return(new RegExp("(?:\\.|\\/|^)"+subname+"(?:\\.|\\/|$)")).test(current_event); 301return current_event};eve.nts=function(){return current_event.split(separator)};eve.off=eve.unbind=function(name,f){if(!name){eve._events=events={n:{}};return}var names=name.split(separator),e,key,splice,i,ii,j,jj,cur=[events];for(i=0,ii=names.length;i<ii;i++)for(j=0;j<cur.length;j+=splice.length-2){splice=[j,1];e=cur[j].n;if(names[i]!=wildcard){if(e[names[i]])splice.push(e[names[i]])}else for(key in e)if(e[has](key))splice.push(e[key]);cur.splice.apply(cur,splice)}for(i=0,ii=cur.length;i<ii;i++){e= 302cur[i];while(e.n){if(f){if(e.f){for(j=0,jj=e.f.length;j<jj;j++)if(e.f[j]==f){e.f.splice(j,1);break}!e.f.length&&delete e.f}for(key in e.n)if(e.n[has](key)&&e.n[key].f){var funcs=e.n[key].f;for(j=0,jj=funcs.length;j<jj;j++)if(funcs[j]==f){funcs.splice(j,1);break}!funcs.length&&delete e.n[key].f}}else{delete e.f;for(key in e.n)if(e.n[has](key)&&e.n[key].f)delete e.n[key].f}e=e.n}}};eve.once=function(name,f){var f2=function(){eve.unbind(name,f2);return f.apply(this,arguments)};return eve.on(name,f2)}; 303eve.version=version;eve.toString=function(){return"You are running Eve "+version};typeof module!="undefined"&&module.exports?module.exports=eve:typeof define!="undefined"?define("eve",[],function(){return eve}):glob.eve=eve})(window||this); 304(function(glob,factory){if(typeof define==="function"&&define.amd)define(["eve"],function(eve){return factory(glob,eve)});else factory(glob,glob.eve)})(this,function(window,eve){function R(first){if(R.is(first,"function"))return loaded?first():eve.on("raphael.DOMload",first);else if(R.is(first,array))return R._engine.create[apply](R,first.splice(0,3+R.is(first[0],nu))).add(first);else{var args=Array.prototype.slice.call(arguments,0);if(R.is(args[args.length-1],"function")){var f=args.pop();return loaded? 305f.call(R._engine.create[apply](R,args)):eve.on("raphael.DOMload",function(){f.call(R._engine.create[apply](R,args))})}else return R._engine.create[apply](R,arguments)}}R.version="2.1.2";R.eve=eve;var loaded,separator=/[, ]+/,elements={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},formatrg=/\{(\d+)\}/g,proto="prototype",has="hasOwnProperty",g={doc:document,win:window},oldRaphael={was:Object.prototype[has].call(g.win,"Raphael"),is:g.win.Raphael},Paper=function(){this.ca=this.customAttributes={}}, 306paperproto,appendChild="appendChild",apply="apply",concat="concat",supportsTouch="ontouchstart"in g.win||g.win.DocumentTouch&&g.doc instanceof DocumentTouch,E="",S=" ",Str=String,split="split",events="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[split](S),touchMap={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},lowerCase=Str.prototype.toLowerCase,math=Math,mmax=math.max,mmin=math.min,abs=math.abs,pow=math.pow,PI=math.PI, 307nu="number",string="string",array="array",toString="toString",fillString="fill",objectToString=Object.prototype.toString,paper={},push="push",ISURL=R._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i,colourRegExp=/^\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, 308isnan={"NaN":1,"Infinity":1,"-Infinity":1},bezierrg=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,round=math.round,setAttribute="setAttribute",toFloat=parseFloat,toInt=parseInt,upperCase=Str.prototype.toUpperCase,availableAttrs=R._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",class:"",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, 309height: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},availableAnimAttrs=R._availableAnimAttrs={blur:nu,"clip-rect":"csv",cx:nu,cy:nu,fill:"
309colour","fill-opacity":nu,"font-size":nu,height:nu,opacity:nu,path:"path",r:nu,rx:nu,ry:nu, 310stroke:"colour","stroke-opacity":nu,"stroke-width":nu,transform:"transform",width:nu,x:nu,y:nu},whitespace=/[\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]/g,commaSpaces=/[\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]*/, 311hsrg={hs:1,rg:1},p2s=/,?([achlmqrstvxz]),?/gi,pathCommand=/([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]*)+)/ig, 312tCommand=/([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]*)+)/ig,pathValues=/(-?\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]*/ig, 313radial_gradient=R._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]*([^\)]+?)\))?/,eldata={},sortByKey=function(a,b){return a.key-b.key},sortByNumber=function(a,b){return toFloat(a)-toFloat(b)},fun=function(){},pipe=function(x){return x},rectPath= 314R._rectPath=function(x,y,w,h,r){if(r)return[["M",x+r,y],["l",w-r*2,0],["a",r,r,0,0,1,r,r],["l",0,h-r*2],["a",r,r,0,0,1,-r,r],["l",r*2-w,0],["a",r,r,0,0,1,-r,-r],["l",0,r*2-h],["a",r,r,0,0,1,r,-r],["z"]];return[["M",x,y],["l",w,0],["l",0,h],["l",-w,0],["z"]]},ellipsePath=function(x,y,rx,ry){if(ry==null)ry=rx;return[["M",x,y],["m",0,-ry],["a",rx,ry,0,1,1,0,2*ry],["a",rx,ry,0,1,1,0,-2*ry],["z"]]},getPath=R._getPath={path:function(el){return el.attr("path")},circle:function(el){var a=el.attrs;return ellipsePath(a.cx, 315a.cy,a.r)},ellipse:function(el){var a=el.attrs;return ellipsePath(a.cx,a.cy,a.rx,a.ry)},rect:function(el){var a=el.attrs;return rectPath(a.x,a.y,a.width,a.height,a.r)},image:function(el){var a=el.attrs;return rectPath(a.x,a.y,a.width,a.height)},text:function(el){var bbox=el._getBBox();return rectPath(bbox.x,bbox.y,bbox.width,bbox.height)},set:function(el){var bbox=el._getBBox();return rectPath(bbox.x,bbox.y,bbox.width,bbox.height)}},mapPath=R.mapPath=function(path,matrix){if(!matrix)return path;var x, 316y,i,j,ii,jj,pathi;path=path2curve(path);for(i=0,ii=path.length;i<ii;i++){pathi=path[i];for(j=1,jj=pathi.length;j<jj;j+=2){x=matrix.x(pathi[j],pathi[j+1]);y=matrix.y(pathi[j],pathi[j+1]);pathi[j]=x;pathi[j+1]=y}}return path};R._g=g;R.type=g.win.SVGAngle||g.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if(R.type=="VML"){var d=g.doc.createElement("div"),b;d.innerHTML='\x3cv:shape adj\x3d"1"/\x3e';b=d.firstChild;b.style.behavior="url(#default#VML)"; 317if(!(b&&typeof b.adj=="object"))return R.type=E;d=null}R.svg=!(R.vml=R.type=="VML");R._Paper=Paper;R.fn=paperproto=Paper.prototype=R.prototype;R._id=0;R._oid=0;R.is=function(o,type){type=lowerCase.call(type);if(type=="finite")return!isnan[has](+o);if(type=="array")return o instanceof Array;return type=="null"&&o===null||type==typeof o&&o!==null||type=="object"&&o===Object(o)||type=="array"&&Array.isArray&&Array.isArray(o)||objectToString.call(o).slice(8,-1).toLowerCase()==type};function clone(obj){if(typeof obj== 318"function"||Object(obj)!==obj)return obj;var res=new obj.constructor;for(var key in obj)if(obj[has](key))res[key]=clone(obj[key]);return res}R.angle=function(x1,y1,x2,y2,x3,y3){if(x3==null){var x=x1-x2,y=y1-y2;if(!x&&!y)return 0;return(180+math.atan2(-y,-x)*180/PI+360)%360}else return R.angle(x1,y1,x3,y3)-R.angle(x2,y2,x3,y3)};R.rad=function(deg){return deg%360*PI/180};R.deg=function(rad){return rad*180/PI%360};R.snapTo=function(values,value,tolerance){tolerance=R.is(tolerance,"finite")?tolerance: 31910;if(R.is(values,array)){var i=values.length;while(i--)if(abs(values[i]-value)<=tolerance)return values[i]}else{values=+values;var rem=value%values;if(rem<tolerance)return value-rem;if(rem>values-tolerance)return value-rem+values}return value};var createUUID=R.createUUID=function(uuidRegEx,uuidReplacer){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(uuidRegEx,uuidReplacer).toUpperCase()}}(/[xy]/g,function(c){var r=math.random()*16|0,v=c=="x"?r:r&3|8;return v.toString(16)}); 320R.setWindow=function(newwin){eve("raphael.setWindow",R,g.win,newwin);g.win=newwin;g.doc=g.win.document;if(R._engine.initWin)R._engine.initWin(g.win)};var toHex=function(color){if(R.vml){var trim=/^\s+|\s+$/g;var bod;try{var docum=new ActiveXObject("htmlfile");docum.write("\x3cbody\x3e");docum.close();bod=docum.body}catch(e){bod=createPopup().document.body}var range=bod.createTextRange();toHex=cacher(function(color){try{bod.style.color=Str(color).replace(trim,E);var value=range.queryCommandValue("ForeColor"); 321value=(value&255)<<16|value&65280|(value&16711680)>>>16;return"#"+("000000"+value.toString(16)).slice(-6)}catch(e){return"none"}})}else{var i=g.doc.createElement("i");i.title="Raphaël Colour Picker";i.style.display="none";g.doc.body.appendChild(i);toHex=cacher(function(color){i.style.color=color;return g.doc.defaultView.getComputedStyle(i,E).getPropertyValue("color")})}return toHex(color)},hsbtoString=function(){return"hsb("+[this.h,this.s,this.b]+")"},hsltoString=function(){return"hsl("+[this.h, 322this.s,this.l]+")"},rgbtoString=function(){return this.hex},prepareRGB=function(r,g,b){if(g==null&&R.is(r,"object")&&"r"in r&&"g"in r&&"b"in r){b=r.b;g=r.g;r=r.r}if(g==null&&R.is(r,string)){var clr=R.getRGB(r);r=clr.r;g=clr.g;b=clr.b}if(r>1||g>1||b>1){r/=255;g/=255;b/=255}return[r,g,b]},packageRGB=function(r,g,b,o){r*=255;g*=255;b*=255;var rgb={r:r,g:g,b:b,hex:R.rgb(r,g,b),toString:rgbtoString};R.is(o,"finite")&&(rgb.opacity=o);return rgb};R.color=function(clr){var rgb;if(R.is(clr,"object")&&"h"in 323clr&&"s"in clr&&"b"in clr){rgb=R.hsb2rgb(clr);clr.r=rgb.r;clr.g=rgb.g;clr.b=rgb.b;clr.hex=rgb.hex}else if(R.is(clr,"object")&&"h"in clr&&"s"in clr&&"l"in clr){rgb=R.hsl2rgb(clr);clr.r=rgb.r;clr.g=rgb.g;clr.b=rgb.b;clr.hex=rgb.hex}else{if(R.is(clr,"string"))clr=R.getRGB(clr);
323if(R.is(clr,"object")&&"r"in clr&&"g"in clr&&"b"in clr){rgb=R.rgb2hsl(clr);clr.h=rgb.h;clr.s=rgb.s;clr.l=rgb.l;rgb=R.rgb2hsb(clr);clr.v=rgb.b}else{clr={hex:"none"};clr.r=clr.g=clr.b=clr.h=clr.s=clr.v=clr.l=-1}}clr.toString=rgbtoString; 324return clr};R.hsb2rgb=function(h,s,v,o){if(this.is(h,"object")&&"h"in h&&"s"in h&&"b"in h){v=h.b;s=h.s;h=h.h;o=h.o}h*=360;var R,G,B,X,C;h=h%360/60;C=v*s;X=C*(1-abs(h%2-1));R=G=B=v-C;h=~~h;R+=[C,X,0,0,X,C][h];G+=[X,C,C,X,0,0][h];B+=[0,0,X,C,C,X][h];return packageRGB(R,G,B,o)};R.hsl2rgb=function(h,s,l,o){if(this.is(h,"object")&&"h"in h&&"s"in h&&"l"in h){l=h.l;s=h.s;h=h.h}if(h>1||s>1||l>1){h/=360;s/=100;l/=100}h*=360;var R,G,B,X,C;h=h%360/60;C=2*s*(l<.5?l:1-l);X=C*(1-abs(h%2-1));R=G=B=l-C/2;h=~~h;R+= 325[C,X,0,0,X,C][h];G+=[X,C,C,X,0,0][h];B+=[0,0,X,C,C,X][h];return packageRGB(R,G,B,o)};R.rgb2hsb=function(r,g,b){b=prepareRGB(r,g,b);r=b[0];g=b[1];b=b[2];var H,S,V,C;V=mmax(r,g,b);C=V-mmin(r,g,b);H=C==0?null:V==r?(g-b)/C:V==g?(b-r)/C+2:(r-g)/C+4;H=(H+360)%6*60/360;S=C==0?0:C/V;return{h:H,s:S,b:V,toString:hsbtoString}};R.rgb2hsl=function(r,g,b){b=prepareRGB(r,g,b);r=b[0];g=b[1];b=b[2];var H,S,L,M,m,C;M=mmax(r,g,b);m=mmin(r,g,b);C=M-m;H=C==0?null:M==r?(g-b)/C:M==g?(b-r)/C+2:(r-g)/C+4;H=(H+360)%6*60/360; 326L=(M+m)/2;S=C==0?0:L<.5?C/(2*L):C/(2-2*L);return{h:H,s:S,l:L,toString:hsltoString}};R._path2string=function(){return this.join(",").replace(p2s,"$1")};function repush(array,item){for(var i=0,ii=array.length;i<ii;i++)if(array[i]===item)return array.push(array.splice(i,1)[0])}function cacher(f,scope,postprocessor){function newf(){var arg=Array.prototype.slice.call(arguments,0),args=arg.join("â"),cache=newf.cache=newf.cache||{},count=newf.count=newf.count||[];if(cache[has](args)){repush(count,args); 327return postprocessor?postprocessor(cache[args]):cache[args]}count.length>=1E3&&delete cache[count.shift()];count.push(args);cache[args]=f[apply](scope,arg);return postprocessor?postprocessor(cache[args]):cache[args]}return newf}var preload=R._preload=function(src,f){var img=g.doc.createElement("img");img.style.cssText="position:absolute;left:-9999em;top:-9999em";img.onload=function(){f.call(this);this.onload=null;g.doc.body.removeChild(this)};img.onerror=function(){g.doc.body.removeChild(this)};g.doc.body.appendChild(img); 328img.src=src};function clrToString(){return this.hex}R.getRGB=cacher(function(colour){if(!colour||!!((colour=Str(colour)).indexOf("-")+1))return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:clrToString};if(colour=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:clrToString};!(hsrg[has](colour.toLowerCase().substring(0,2))||colour.charAt()=="#")&&(colour=toHex(colour));var res,red,green,blue,opacity,t,values,rgb=colour.match(colourRegExp);if(rgb){if(rgb[2]){blue=toInt(rgb[2].substring(5),16);green=toInt(rgb[2].substring(3, 3295),16);red=toInt(rgb[2].substring(1,3),16)}if(rgb[3]){blue=toInt((t=rgb[3].charAt(3))+t,16);green=toInt((t=rgb[3].charAt(2))+t,16);red=toInt((t=rgb[3].charAt(1))+t,16)}if(rgb[4]){values=rgb[4][split](commaSpaces);red=toFloat(values[0]);values[0].slice(-1)=="%"&&(red*=2.55);green=toFloat(values[1]);values[1].slice(-1)=="%"&&(green*=2.55);blue=toFloat(values[2]);values[2].slice(-1)=="%"&&(blue*=2.55);rgb[1].toLowerCase().slice(0,4)=="rgba"&&(opacity=toFloat(values[3]));values[3]&&values[3].slice(-1)== 330"%"&&(opacity/=100)}if(rgb[5]){values=rgb[5][split](commaSpaces);red=toFloat(values[0]);values[0].slice(-1)=="%"&&(red*=2.55);green=toFloat(values[1]);values[1].slice(-1)=="%"&&(green*=2.55);blue=toFloat(values[2]);values[2].slice(-1)=="%"&&(blue*=2.55);(values[0].slice(-3)=="deg"||values[0].slice(-1)=="°")&&(red/=360);rgb[1].toLowerCase().slice(0,4)=="hsba"&&(opacity=toFloat(values[3]));values[3]&&values[3].slice(-1)=="%"&&(opacity/=100);return R.hsb2rgb(red,green,blue,opacity)}if(rgb[6]){values= 331rgb[6][split](commaSpaces);red=toFloat(values[0]);values[0].slice(-1)=="%"&&(red*=2.55);green=toFloat(values[1]);values[1].slice(-1)=="%"&&(green*=2.55);blue=toFloat(values[2]);values[2].slice(-1)=="%"&&(blue*=2.55);(values[0].slice(-3)=="deg"||values[0].slice(-1)=="°")&&(red/=360);rgb[1].toLowerCase().slice(0,4)=="hsla"&&(opacity=toFloat(values[3]));values[3]&&values[3].slice(-1)=="%"&&(opacity/=100);return R.hsl2rgb(red,green,blue,opacity)}rgb={r:red,g:green,b:blue,toString:clrToString};rgb.hex= 332"#"+(16777216|blue|green<<8|red<<16).toString(16).slice(1);R.is(opacity,"finite")&&(rgb.opacity=opacity);return rgb}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:clrToString}},R);R.hsb=cacher(function(h,s,b){return R.hsb2rgb(h,s,b).hex});R.hsl=cacher(function(h,s,l){return R.hsl2rgb(h,s,l).hex});R.rgb=cacher(function(r,g,b){return"#"+(16777216|b|g<<8|r<<16).toString(16).slice(1)});R.getColor=function(value){var start=this.getColor.start=this.getColor.start||{h:0,s:1,b:value||.75},rgb=this.hsb2rgb(start.h, 333start.s,start.b);start.h+=.075;if(start.h>1){start.h=0;start.s-=.2;start.s<=0&&(this.getColor.start={h:0,s:1,b:start.b})}return rgb.hex};R.getColor.reset=function(){delete this.start};function catmullRom2bezier(crp,z){var d=[];for(var i=0,iLen=crp.length;iLen-2*!z>i;i+=2){var p=[{x:+crp[i-2],y:+crp[i-1]},{x:+crp[i],y:+crp[i+1]},{x:+crp[i+2],y:+crp[i+3]},{x:+crp[i+4],y:+crp[i+5]}];if(z)if(!i)p[0]={x:+crp[iLen-2],y:+crp[iLen-1]};else if(iLen-4==i)p[3]={x:+crp[0],y:+crp[1]};else{if(iLen-2==i){p[2]={x:+crp[0], 334y:+crp[1]};p[3]={x:+crp[2],y:+crp[3]}}}
334else if(iLen-4==i)p[3]=p[2];else if(!i)p[0]={x:+crp[i],y:+crp[i+1]};d.push(["C",(-p[0].x+6*p[1].x+p[2].x)/6,(-p[0].y+6*p[1].y+p[2].y)/6,(p[1].x+6*p[2].x-p[3].x)/6,(p[1].y+6*p[2].y-p[3].y)/6,p[2].x,p[2].y])}return d}R.parsePathString=function(pathString){if(!pathString)return null;var pth=paths(pathString);if(pth.arr)return pathClone(pth.arr);var paramCounts={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},data=[];if(R.is(pathString,array)&&R.is(pathString[0],array))data= 335pathClone(pathString);if(!data.length)Str(pathString).replace(pathCommand,function(a,b,c){var params=[],name=b.toLowerCase();c.replace(pathValues,function(a,b){b&¶ms.push(+b)});if(name=="m"&¶ms.length>2){data.push([b][concat](params.splice(0,2)));name="l";b=b=="m"?"l":"L"}if(name=="r")data.push([b][concat](params));else while(params.length>=paramCounts[name]){data.push([b][concat](params.splice(0,paramCounts[name])));if(!paramCounts[name])break}});data.toString=R._path2string;pth.arr=pathClone(data); 336return data};R.parseTransformString=cacher(function(TString){if(!TString)return null;var paramCounts={r:3,s:4,t:2,m:6},data=[];if(R.is(TString,array)&&R.is(TString[0],array))data=pathClone(TString);if(!data.length)Str(TString).replace(tCommand,function(a,b,c){var params=[],name=lowerCase.call(b);c.replace(pathValues,function(a,b){b&¶ms.push(+b)});data.push([b][concat](params))});data.toString=R._path2string;return data});var paths=function(ps){var p=paths.ps=paths.ps||{};if(p[ps])p[ps].sleep= 337100;else p[ps]={sleep:100};setTimeout(function(){for(var key in p)if(p[has](key)&&key!=ps){p[key].sleep--;!p[key].sleep&&delete p[key]}});return p[ps]};R.findDotsAtSegment=function(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t){var t1=1-t,t13=pow(t1,3),t12=pow(t1,2),t2=t*t,t3=t2*t,x=t13*p1x+t12*3*t*c1x+t1*3*t*t*c2x+t3*p2x,y=t13*p1y+t12*3*t*c1y+t1*3*t*t*c2y+t3*p2y,mx=p1x+2*t*(c1x-p1x)+t2*(c2x-2*c1x+p1x),my=p1y+2*t*(c1y-p1y)+t2*(c2y-2*c1y+p1y),nx=c1x+2*t*(c2x-c1x)+t2*(p2x-2*c2x+c1x),ny=c1y+2*t*(c2y-c1y)+t2*(p2y- 3382*c2y+c1y),ax=t1*p1x+t*c1x,ay=t1*p1y+t*c1y,cx=t1*c2x+t*p2x,cy=t1*c2y+t*p2y,alpha=90-math.atan2(mx-nx,my-ny)*180/PI;(mx>nx||my<ny)&&(alpha+=180);return{x:x,y:y,m:{x:mx,y:my},n:{x:nx,y:ny},start:{x:ax,y:ay},end:{x:cx,y:cy},alpha:alpha}};R.bezierBBox=function(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y){if(!R.is(p1x,"array"))p1x=[p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y];var bbox=curveDim.apply(null,p1x);return{x:bbox.min.x,y:bbox.min.y,x2:bbox.max.x,y2:bbox.max.y,width:bbox.max.x-bbox.min.x,height:bbox.max.y-bbox.min.y}}; 339R.isPointInsideBBox=function(bbox,x,y){return x>=bbox.x&&x<=bbox.x2&&y>=bbox.y&&y<=bbox.y2};R.isBBoxIntersect=function(bbox1,bbox2){var i=R.isPointInsideBBox;return i(bbox2,bbox1.x,bbox1.y)||i(bbox2,bbox1.x2,bbox1.y)||i(bbox2,bbox1.x,bbox1.y2)||i(bbox2,bbox1.x2,bbox1.y2)||i(bbox1,bbox2.x,bbox2.y)||i(bbox1,bbox2.x2,bbox2.y)||i(bbox1,bbox2.x,bbox2.y2)||i(bbox1,bbox2.x2,bbox2.y2)||(bbox1.x<bbox2.x2&&bbox1.x>bbox2.x||bbox2.x<bbox1.x2&&bbox2.x>bbox1.x)&&(bbox1.y<bbox2.y2&&bbox1.y>bbox2.y||bbox2.y<bbox1.y2&& 340bbox2.y>bbox1.y)};function base3(t,p1,p2,p3,p4){var t1=-3*p1+9*p2-9*p3+3*p4,t2=t*t1+6*p1-12*p2+6*p3;return t*t2-3*p1+3*p2}function bezlen(x1,y1,x2,y2,x3,y3,x4,y4,z){if(z==null)z=1;z=z>1?1:z<0?0:z;var z2=z/2,n=12,Tvalues=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Cvalues=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],sum=0;for(var i=0;i<n;i++){var ct=z2*Tvalues[i]+z2,xbase=base3(ct,x1,x2,x3,x4),ybase=base3(ct,y1,y2,y3,y4),comb=xbase*xbase+ 341ybase*ybase;sum+=Cvalues[i]*math.sqrt(comb)}return z2*sum}function getTatLen(x1,y1,x2,y2,x3,y3,x4,y4,ll){if(ll<0||bezlen(x1,y1,x2,y2,x3,y3,x4,y4)<ll)return;var t=1,step=t/2,t2=t-step,l,e=.01;l=bezlen(x1,y1,x2,y2,x3,y3,x4,y4,t2);while(abs(l-ll)>e){step/=2;t2+=(l<ll?1:-1)*step;l=bezlen(x1,y1,x2,y2,x3,y3,x4,y4,t2)}return t2}function intersect(x1,y1,x2,y2,x3,y3,x4,y4){if(mmax(x1,x2)<mmin(x3,x4)||mmin(x1,x2)>mmax(x3,x4)||mmax(y1,y2)<mmin(y3,y4)||mmin(y1,y2)>mmax(y3,y4))return;var nx=(x1*y2-y1*x2)*(x3- 342x4)-(x1-x2)*(x3*y4-y3*x4),ny=(x1*y2-y1*x2)*(y3-y4)-(y1-y2)*(x3*y4-y3*x4),denominator=(x1-x2)*(y3-y4)-(y1-y2)*(x3-x4);if(!denominator)return;var px=nx/denominator,py=ny/denominator,px2=+px.toFixed(2),py2=+py.toFixed(2);if(px2<+mmin(x1,x2).toFixed(2)||px2>+mmax(x1,x2).toFixed(2)||px2<+mmin(x3,x4).toFixed(2)||px2>+mmax(x3,x4).toFixed(2)||py2<+mmin(y1,y2).toFixed(2)||py2>+mmax(y1,y2).toFixed(2)||py2<+mmin(y3,y4).toFixed(2)||py2>+mmax(y3,y4).toFixed(2))return;return{x:px,y:py}}function inter(bez1,bez2){return interHelper(bez1, 343bez2)}function interCount(bez1,bez2){return interHelper(bez1,bez2,1)}function interHelper(bez1,bez2,justCount){var bbox1=R.bezierBBox(bez1),bbox2=R.bezierBBox(bez2);if(!R.isBBoxIntersect(bbox1,bbox2))return justCount?0:[];var l1=bezlen.apply(0,bez1),l2=bezlen.apply(0,bez2),n1=mmax(~~(l1/5),1),n2=mmax(~~(l2/5),1),dots1=[],dots2=[],xy={},res=justCount?0:[];for(var i=0;i<n1+1;i++){var p=R.findDotsAtSegment.apply(R,bez1.concat(i/n1));dots1.push({x:p.x,y:p.y,t:i/n1})}for(i=0;i<n2+1;i++){p=R.findDotsAtSegment.apply(R, 344bez2.concat(i/n2));dots2.push({x:p.x,y:p.y,t:i/n2})}for(i=0;i<n1;i++)for(var j=0;j<n2;j++){var di=dots1[i],di1=dots1[i+1],dj=dots2[j],dj1=dots2[j+1],ci=abs(di1.x-di.x)<.001?"y":"x",cj=abs(dj1.x-dj.x)<.001?"y":"x",is=intersect(di.x,di.y,di1.x,di1.y,dj.x,dj.y,dj1.x,dj1.y);if(is){if(xy[is.x.toFixed(4)]==is.y.toFixed(4))continue;xy[is.x.toFixed(4)]=is.y.toFixed(4);var t1=di.t+abs((is[ci]-di[ci])/(di1[ci]-di[ci]))*(di1.t-di.t),t2=dj.t+abs((is[cj]-dj[cj])/(dj1[cj]-dj[cj]))*(dj1.t-dj.t);if(t1>=0&&t1<=1.001&& 345t2>=0&&t2<=1.001)if(justCount)res++;else res.push({x:is.x,y:is.y,t1:mmin(t1,1),t2:mmin(t2,1)})}}return res}R.pathIntersection=function(path1,path2){return interPathHelper(path1,path2)};R.pathIntersectionNumber=function(path1,path2){return interPathHelper(path1,path2,1)};function interPathHelper(path1,path2,justCount){path1=R._path2curve(path1);path2=R._path2curve(path2);var x1,y1,x2,y2,x1m,y1m,x2m,y2m,bez1,bez2,res=justCount?0:[];for(var i=0,ii=path1.length;i<ii;i++){var pi=path1[i];if(pi[0]=="M"){x1= 346x1m=pi[1];y1=y1m=pi[2]}else{if(pi[0]=="C"){bez1=[x1,y1].concat(pi.slice(1));x1=bez1[6];y1=bez1[7]}else{bez1=[x1,y1,x1,y1,x1m,y1m,x1m,y1m];x1=x1m;y1=y1m}for(var j=0,jj=path2.length;j<jj;j++){var pj=path2[j];if(pj[0]=="M"){x2=x2m=pj[1];y2=y2m=pj[2]}else{if(pj[0]=="C"){bez2=[x2,y2].concat(pj.slice(1));x2=bez2[6];y2=bez2[7]}
346else{bez2=[x2,y2,x2,y2,x2m,y2m,x2m,y2m];x2=x2m;y2=y2m}var intr=interHelper(bez1,bez2,justCount);if(justCount)res+=intr;else{for(var k=0,kk=intr.length;k<kk;k++){intr[k].segment1=i; 347intr[k].segment2=j;intr[k].bez1=bez1;intr[k].bez2=bez2}res=res.concat(intr)}}}}}return res}R.isPointInsidePath=function(path,x,y){var bbox=R.pathBBox(path);return R.isPointInsideBBox(bbox,x,y)&&interPathHelper(path,[["M",x,y],["H",bbox.x2+10]],1)%2==1};R._removedFactory=function(methodname){return function(){eve("raphael.log",null,"Raphaël: you are calling to method â"+methodname+"â of removed object",methodname)}};var pathDimensions=R.pathBBox=function(path){var pth=paths(path);if(pth.bbox)return clone(pth.bbox); 348if(!path)return{x:0,y:0,width:0,height:0,x2:0,y2:0};path=path2curve(path);var x=0,y=0,X=[],Y=[],p;for(var i=0,ii=path.length;i<ii;i++){p=path[i];if(p[0]=="M"){x=p[1];y=p[2];X.push(x);Y.push(y)}else{var dim=curveDim(x,y,p[1],p[2],p[3],p[4],p[5],p[6]);X=X[concat](dim.min.x,dim.max.x);Y=Y[concat](dim.min.y,dim.max.y);x=p[5];y=p[6]}}var xmin=mmin[apply](0,X),ymin=mmin[apply](0,Y),xmax=mmax[apply](0,X),ymax=mmax[apply](0,Y),width=xmax-xmin,height=ymax-ymin,bb={x:xmin,y:ymin,x2:xmax,y2:ymax,width:width, 349height:height,cx:xmin+width/2,cy:ymin+height/2};pth.bbox=clone(bb);return bb},pathClone=function(pathArray){var res=clone(pathArray);res.toString=R._path2string;return res},pathToRelative=R._pathToRelative=function(pathArray){var pth=paths(pathArray);if(pth.rel)return pathClone(pth.rel);if(!R.is(pathArray,array)||!R.is(pathArray&&pathArray[0],array))pathArray=R.parsePathString(pathArray);var res=[],x=0,y=0,mx=0,my=0,start=0;if(pathArray[0][0]=="M"){x=pathArray[0][1];y=pathArray[0][2];mx=x;my=y;start++; 350res.push(["M",x,y])}for(var i=start,ii=pathArray.length;i<ii;i++){var r=res[i]=[],pa=pathArray[i];if(pa[0]!=lowerCase.call(pa[0])){r[0]=lowerCase.call(pa[0]);switch(r[0]){case "a":r[1]=pa[1];r[2]=pa[2];r[3]=pa[3];r[4]=pa[4];r[5]=pa[5];r[6]=+(pa[6]-x).toFixed(3);r[7]=+(pa[7]-y).toFixed(3);break;case "v":r[1]=+(pa[1]-y).toFixed(3);break;case "m":mx=pa[1];my=pa[2];default:for(var j=1,jj=pa.length;j<jj;j++)r[j]=+(pa[j]-(j%2?x:y)).toFixed(3)}}else{r=res[i]=[];if(pa[0]=="m"){mx=pa[1]+x;my=pa[2]+y}for(var k= 3510,kk=pa.length;k<kk;k++)res[i][k]=pa[k]}var len=res[i].length;switch(res[i][0]){case "z":x=mx;y=my;break;case "h":x+=+res[i][len-1];break;case "v":y+=+res[i][len-1];break;default:x+=+res[i][len-2];y+=+res[i][len-1]}}res.toString=R._path2string;pth.rel=pathClone(res);return res},pathToAbsolute=R._pathToAbsolute=function(pathArray){var pth=paths(pathArray);if(pth.abs)return pathClone(pth.abs);if(!R.is(pathArray,array)||!R.is(pathArray&&pathArray[0],array))pathArray=R.parsePathString(pathArray);if(!pathArray|| 352!pathArray.length)return[["M",0,0]];var res=[],x=0,y=0,mx=0,my=0,start=0;if(pathArray[0][0]=="M"){x=+pathArray[0][1];y=+pathArray[0][2];mx=x;my=y;start++;res[0]=["M",x,y]}var crz=pathArray.length==3&&pathArray[0][0]=="M"&&pathArray[1][0].toUpperCase()=="R"&&pathArray[2][0].toUpperCase()=="Z";for(var r,pa,i=start,ii=pathArray.length;i<ii;i++){res.push(r=[]);pa=pathArray[i];if(pa[0]!=upperCase.call(pa[0])){r[0]=upperCase.call(pa[0]);switch(r[0]){case "A":r[1]=pa[1];r[2]=pa[2];r[3]=pa[3];r[4]=pa[4]; 353r[5]=pa[5];r[6]=+(pa[6]+x);r[7]=+(pa[7]+y);break;case "V":r[1]=+pa[1]+y;break;case "H":r[1]=+pa[1]+x;break;case "R":var dots=[x,y][concat](pa.slice(1));for(var j=2,jj=dots.length;j<jj;j++){dots[j]=+dots[j]+x;dots[++j]=+dots[j]+y}res.pop();res=res[concat](catmullRom2bezier(dots,crz));break;case "M":mx=+pa[1]+x;my=+pa[2]+y;default:for(j=1,jj=pa.length;j<jj;j++)r[j]=+pa[j]+(j%2?x:y)}}else if(pa[0]=="R"){dots=[x,y][concat](pa.slice(1));res.pop();res=res[concat](catmullRom2bezier(dots,crz));r=["R"][concat](pa.slice(-2))}else for(var k= 3540,kk=pa.length;k<kk;k++)r[k]=pa[k];switch(r[0]){case "Z":x=mx;y=my;break;case "H":x=r[1];break;case "V":y=r[1];break;case "M":mx=r[r.length-2];my=r[r.length-1];default:x=r[r.length-2];y=r[r.length-1]}}res.toString=R._path2string;pth.abs=pathClone(res);return res},l2c=function(x1,y1,x2,y2){return[x1,y1,x2,y2,x2,y2]},q2c=function(x1,y1,ax,ay,x2,y2){var _13=1/3,_23=2/3;return[_13*x1+_23*ax,_13*y1+_23*ay,_13*x2+_23*ax,_13*y2+_23*ay,x2,y2]},a2c=function(x1,y1,rx,ry,angle,large_arc_flag,sweep_flag,x2,y2, 355recursive){var _120=PI*120/180,rad=PI/180*(+angle||0),res=[],xy,rotate=cacher(function(x,y,rad){var X=x*math.cos(rad)-y*math.sin(rad),Y=x*math.sin(rad)+y*math.cos(rad);return{x:X,y:Y}});if(!recursive){xy=rotate(x1,y1,-rad);x1=xy.x;y1=xy.y;xy=rotate(x2,y2,-rad);x2=xy.x;y2=xy.y;var cos=math.cos(PI/180*angle),sin=math.sin(PI/180*angle),x=(x1-x2)/2,y=(y1-y2)/2;var h=x*x/(rx*rx)+y*y/(ry*ry);if(h>1){h=math.sqrt(h);rx=h*rx;ry=h*ry}var rx2=rx*rx,ry2=ry*ry,k=(large_arc_flag==sweep_flag?-1:1)*math.sqrt(abs((rx2* 356ry2-rx2*y*y-ry2*x*x)/(rx2*y*y+ry2*x*x))),cx=k*rx*y/ry+(x1+x2)/2,cy=k*-ry*x/rx+(y1+y2)/2,f1=math.asin(((y1-cy)/ry).toFixed(9)),f2=math.asin(((y2-cy)/ry).toFixed(9));f1=x1<cx?PI-f1:f1;f2=x2<cx?PI-f2:f2;f1<0&&(f1=PI*2+f1);f2<0&&(f2=PI*2+f2);if(sweep_flag&&f1>f2)f1=f1-PI*2;if(!sweep_flag&&f2>f1)f2=f2-PI*2}else{f1=recursive[0];f2=recursive[1];cx=recursive[2];cy=recursive[3]}var df=f2-f1;if(abs(df)>_120){var f2old=f2,x2old=x2,y2old=y2;f2=f1+_120*(sweep_flag&&f2>f1?1:-1);x2=cx+rx*math.cos(f2);y2=cy+ry*math.sin(f2); 357res=a2c(x2,y2,rx,ry,angle,0,sweep_flag,x2old,y2old,[f2,f2old,cx,cy])}df=f2-f1;var c1=math.cos(f1),s1=math.sin(f1),c2=math.cos(f2),s2=math.sin(f2),t=math.tan(df/4),hx=4/3*rx*t,hy=4/3*ry*t,m1=[x1,y1],m2=[x1+hx*s1,y1-hy*c1],m3=[x2+hx*s2,y2-hy*c2],m4=[x2,y2];m2[0]=2*m1[0]-m2[0];m2[1]=2*m1[1]-m2[1];if(recursive)return[m2,m3,m4][concat](res);else{res=[m2,m3,m4][concat](res).join()[split](",");var newres=[];for(var i=0,ii=res.length;i<ii;i++)newres[i]=i%2?rotate(res[i-1],res[i],rad).y:rotate(res[i],res[i+ 3581],rad).x;return newres}},findDotAtSegment=function(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t){var t1=1-t;return{x:pow(t1,3)*p1x+pow(t1,2)*3*t*c1x+t1*3*t*t*c2x+pow(t,3)*p2x,y:pow(t1,3)*p1y+pow(t1,2)*3*t*c1y+t1*3*t*t*c2y+pow(t,3)*p2y}},curveDim=cacher(function(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y){var a=c2x-2*c1x+p1x-(p2x-2*c2x+c1x),b=2*(c1x-p1x)-2*(c2x-c1x),c=p1x-c1x,t1=(-b+math.sqrt(b*b-4*a*c))/2/a,t2=(-b-math.sqrt(b*b-4*a*c))/2/a,y=[p1y,p2y],x=[p1x,p2x],dot;abs(t1)>"1e12"&&(t1=.5);abs(t2)>"1e12"&&(t2=.5);if(t1> 3590&&t1<1){dot=findDotAtSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t1);x.push(dot.x);y.push(dot.y)}if(t2>0&&t2<1){dot=findDotAtSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t2);x.push(dot.x);y.push(dot.y)}a=c2y-2*c1y+p1y-(p2y-2*c2y+c1y);b=2*(c1y-p1y)-2*(c2y-c1y);c=p1y-c1y;t1=(-b+math.sqrt(b*b-4*a*c))/2/a;t2=(-b-math.sqrt(b*b-4*a*c))/2/a;abs(t1)>"1e12"&&(t1=.5);abs(t2)>"1e12"&&(t2=.5);if(t1>0&&t1<1){dot=findDotAtSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t1);x.push(dot.x);y.push(dot.y)}if(t2>0&&t2<1){dot=findDotAtSegment(p1x, 360p1y,c1x,c1y,c2x,c2y,p2x,p2y,t2);x.push(dot.x);y.push(dot.y)}return{min:{x:mmin[apply](0,x),y:mmin[apply](0,y)},max:{x:mmax[apply](0,x),y:mmax[apply](0,y)}}}),path2curve=R._path2curve=cacher(function(path,path2){var pth=!path2&&paths(path);if(!path2&&pth.curve)return pathClone(pth.curve);var p=pathToAbsolute(path),p2=path2&&pathToAbsolute(path2),attrs={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},attrs2={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},processPath=function(path,d,pcom){var nx,ny,tq={T:1,Q:1}; 361if(!path)return["C",d.x,d.y,d.x,d.y,d.x,d.y];
361!(path[0]in tq)&&(d.qx=d.qy=null);switch(path[0]){case "M":d.X=path[1];d.Y=path[2];break;case "A":path=["C"][concat](a2c[apply](0,[d.x,d.y][concat](path.slice(1))));break;case "S":if(pcom=="C"||pcom=="S"){nx=d.x*2-d.bx;ny=d.y*2-d.by}else{nx=d.x;ny=d.y}path=["C",nx,ny][concat](path.slice(1));break;case "T":if(pcom=="Q"||pcom=="T"){d.qx=d.x*2-d.qx;d.qy=d.y*2-d.qy}else{d.qx=d.x;d.qy=d.y}path=["C"][concat](q2c(d.x,d.y,d.qx,d.qy,path[1],path[2]));break;case "Q":d.qx= 362path[1];d.qy=path[2];path=["C"][concat](q2c(d.x,d.y,path[1],path[2],path[3],path[4]));break;case "L":path=["C"][concat](l2c(d.x,d.y,path[1],path[2]));break;case "H":path=["C"][concat](l2c(d.x,d.y,path[1],d.y));break;case "V":path=["C"][concat](l2c(d.x,d.y,d.x,path[1]));break;case "Z":path=["C"][concat](l2c(d.x,d.y,d.X,d.Y));break}return path},fixArc=function(pp,i){if(pp[i].length>7){pp[i].shift();var pi=pp[i];while(pi.length)pp.splice(i++,0,["C"][concat](pi.splice(0,6)));pp.splice(i,1);ii=mmax(p.length, 363p2&&p2.length||0)}},fixM=function(path1,path2,a1,a2,i){if(path1&&path2&&path1[i][0]=="M"&&path2[i][0]!="M"){path2.splice(i,0,["M",a2.x,a2.y]);a1.bx=0;a1.by=0;a1.x=path1[i][1];a1.y=path1[i][2];ii=mmax(p.length,p2&&p2.length||0)}};for(var i=0,ii=mmax(p.length,p2&&p2.length||0);i<ii;i++){p[i]=processPath(p[i],attrs);fixArc(p,i);p2&&(p2[i]=processPath(p2[i],attrs2));p2&&fixArc(p2,i);fixM(p,p2,attrs,attrs2,i);fixM(p2,p,attrs2,attrs,i);var seg=p[i],seg2=p2&&p2[i],seglen=seg.length,seg2len=p2&&seg2.length; 364attrs.x=seg[seglen-2];attrs.y=seg[seglen-1];attrs.bx=toFloat(seg[seglen-4])||attrs.x;attrs.by=toFloat(seg[seglen-3])||attrs.y;attrs2.bx=p2&&(toFloat(seg2[seg2len-4])||attrs2.x);attrs2.by=p2&&(toFloat(seg2[seg2len-3])||attrs2.y);attrs2.x=p2&&seg2[seg2len-2];attrs2.y=p2&&seg2[seg2len-1]}if(!p2)pth.curve=pathClone(p);return p2?[p,p2]:p},null,pathClone),parseDots=R._parseDots=cacher(function(gradient){var dots=[];for(var i=0,ii=gradient.length;i<ii;i++){var dot={},par=gradient[i].match(/^([^:]*):?([\d\.]*)/); 365dot.color=R.getRGB(par[1]);if(dot.color.error)return null;dot.color=dot.color.hex;par[2]&&(dot.offset=par[2]+"%");dots.push(dot)}for(i=1,ii=dots.length-1;i<ii;i++)if(!dots[i].offset){var start=toFloat(dots[i-1].offset||0),end=0;for(var j=i+1;j<ii;j++)if(dots[j].offset){end=dots[j].offset;break}if(!end){end=100;j=ii}end=toFloat(end);var d=(end-start)/(j-i+1);for(;i<j;i++){start+=d;dots[i].offset=start+"%"}}return dots}),tear=R._tear=function(el,paper){el==paper.top&&(paper.top=el.prev);el==paper.bottom&& 366(paper.bottom=el.next);el.next&&(el.next.prev=el.prev);el.prev&&(el.prev.next=el.next)},tofront=R._tofront=function(el,paper){if(paper.top===el)return;tear(el,paper);el.next=null;el.prev=paper.top;paper.top.next=el;paper.top=el},toback=R._toback=function(el,paper){if(paper.bottom===el)return;tear(el,paper);el.next=paper.bottom;el.prev=null;paper.bottom.prev=el;paper.bottom=el},insertafter=R._insertafter=function(el,el2,paper){tear(el,paper);el2==paper.top&&(paper.top=el);el2.next&&(el2.next.prev= 367el);el.next=el2.next;el.prev=el2;el2.next=el},insertbefore=R._insertbefore=function(el,el2,paper){tear(el,paper);el2==paper.bottom&&(paper.bottom=el);el2.prev&&(el2.prev.next=el);el.prev=el2.prev;el2.prev=el;el.next=el2},toMatrix=R.toMatrix=function(path,transform){var bb=pathDimensions(path),el={_:{transform:E},getBBox:function(){return bb}};extractTransform(el,transform);return el.matrix},transformPath=R.transformPath=function(path,transform){return mapPath(path,toMatrix(path,transform))},extractTransform= 368R._extractTransform=function(el,tstr){if(tstr==null)return el._.transform;tstr=Str(tstr).replace(/\.{3}|\u2026/g,el._.transform||E);var tdata=R.parseTransformString(tstr),deg=0,dx=0,dy=0,sx=1,sy=1,_=el._,m=new Matrix;_.transform=tdata||[];if(tdata)for(var i=0,ii=tdata.length;i<ii;i++){var t=tdata[i],tlen=t.length,command=Str(t[0]).toLowerCase(),absolute=t[0]!=command,inver=absolute?m.invert():0,x1,y1,x2,y2,bb;if(command=="t"&&tlen==3)if(absolute){x1=inver.x(0,0);y1=inver.y(0,0);x2=inver.x(t[1],t[2]); 369y2=inver.y(t[1],t[2]);m.translate(x2-x1,y2-y1)}else m.translate(t[1],t[2]);else if(command=="r")if(tlen==2){bb=bb||el.getBBox(1);m.rotate(t[1],bb.x+bb.width/2,bb.y+bb.height/2);deg+=t[1]}else{if(tlen==4){if(absolute){x2=inver.x(t[2],t[3]);y2=inver.y(t[2],t[3]);m.rotate(t[1],x2,y2)}else m.rotate(t[1],t[2],t[3]);deg+=t[1]}}else if(command=="s")if(tlen==2||tlen==3){bb=bb||el.getBBox(1);m.scale(t[1],t[tlen-1],bb.x+bb.width/2,bb.y+bb.height/2);sx*=t[1];sy*=t[tlen-1]}else{if(tlen==5){if(absolute){x2=inver.x(t[3], 370t[4]);y2=inver.y(t[3],t[4]);m.scale(t[1],t[2],x2,y2)}else m.scale(t[1],t[2],t[3],t[4]);sx*=t[1];sy*=t[2]}}else if(command=="m"&&tlen==7)m.add(t[1],t[2],t[3],t[4],t[5],t[6]);_.dirtyT=1;el.matrix=m}el.matrix=m;_.sx=sx;_.sy=sy;_.deg=deg;_.dx=dx=m.e;_.dy=dy=m.f;if(sx==1&&sy==1&&!deg&&_.bbox){_.bbox.x+=+dx;_.bbox.y+=+dy}else _.dirtyT=1},getEmpty=function(item){var l=item[0];switch(l.toLowerCase()){case "t":return[l,0,0];case "m":return[l,1,0,0,1,0,0];case "r":if(item.length==4)return[l,0,item[2],item[3]]; 371else return[l,0];
371case "s":if(item.length==5)return[l,1,1,item[3],item[4]];else if(item.length==3)return[l,1,1];else return[l,1]}},equaliseTransform=R._equaliseTransform=function(t1,t2){t2=Str(t2).replace(/\.{3}|\u2026/g,t1);t1=R.parseTransformString(t1)||[];t2=R.parseTransformString(t2)||[];var maxlength=mmax(t1.length,t2.length),from=[],to=[],i=0,j,jj,tt1,tt2;for(;i<maxlength;i++){tt1=t1[i]||getEmpty(t2[i]);tt2=t2[i]||getEmpty(tt1);if(tt1[0]!=tt2[0]||tt1[0].toLowerCase()=="r"&&(tt1[2]!=tt2[2]||tt1[3]!= 372tt2[3])||tt1[0].toLowerCase()=="s"&&(tt1[3]!=tt2[3]||tt1[4]!=tt2[4]))return;from[i]=[];to[i]=[];for(j=0,jj=mmax(tt1.length,tt2.length);j<jj;j++){j in tt1&&(from[i][j]=tt1[j]);j in tt2&&(to[i][j]=tt2[j])}}return{from:from,to:to}};R._getContainer=function(x,y,w,h){var container;container=h==null&&!R.is(x,"object")?g.doc.getElementById(x):x;if(container==null)return;if(container.tagName)if(y==null)return{container:container,width:container.style.pixelWidth||container.offsetWidth,height:container.style.pixelHeight|| 373container.offsetHeight};else return{container:container,width:y,height:w};return{container:1,x:x,y:y,width:w,height:h}};R.pathToRelative=pathToRelative;R._engine={};R.path2curve=path2curve;R.matrix=function(a,b,c,d,e,f){return new Matrix(a,b,c,d,e,f)};function Matrix(a,b,c,d,e,f){if(a!=null){this.a=+a;this.b=+b;this.c=+c;this.d=+d;this.e=+e;this.f=+f}else{this.a=1;this.b=0;this.c=0;this.d=1;this.e=0;this.f=0}}(function(matrixproto){matrixproto.add=function(a,b,c,d,e,f){var out=[[],[],[]],m=[[this.a, 374this.c,this.e],[this.b,this.d,this.f],[0,0,1]],matrix=[[a,c,e],[b,d,f],[0,0,1]],x,y,z,res;if(a&&a instanceof Matrix)matrix=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]];for(x=0;x<3;x++)for(y=0;y<3;y++){res=0;for(z=0;z<3;z++)res+=m[x][z]*matrix[z][y];out[x][y]=res}this.a=out[0][0];this.b=out[1][0];this.c=out[0][1];this.d=out[1][1];this.e=out[0][2];this.f=out[1][2]};matrixproto.invert=function(){var me=this,x=me.a*me.d-me.b*me.c;return new Matrix(me.d/x,-me.b/x,-me.c/x,me.a/x,(me.c*me.f-me.d*me.e)/x,(me.b* 375me.e-me.a*me.f)/x)};matrixproto.clone=function(){return new Matrix(this.a,this.b,this.c,this.d,this.e,this.f)};matrixproto.translate=function(x,y){this.add(1,0,0,1,x,y)};matrixproto.scale=function(x,y,cx,cy){y==null&&(y=x);(cx||cy)&&this.add(1,0,0,1,cx,cy);this.add(x,0,0,y,0,0);(cx||cy)&&this.add(1,0,0,1,-cx,-cy)};matrixproto.rotate=function(a,x,y){a=R.rad(a);x=x||0;y=y||0;var cos=+math.cos(a).toFixed(9),sin=+math.sin(a).toFixed(9);this.add(cos,sin,-sin,cos,x,y);this.add(1,0,0,1,-x,-y)};matrixproto.x= 376function(x,y){return x*this.a+y*this.c+this.e};matrixproto.y=function(x,y){return x*this.b+y*this.d+this.f};matrixproto.get=function(i){return+this[Str.fromCharCode(97+i)].toFixed(4)};matrixproto.toString=function(){return R.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()};matrixproto.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+this.get(0)+", M12\x3d"+this.get(2)+ 377", M21\x3d"+this.get(1)+", M22\x3d"+this.get(3)+", Dx\x3d"+this.get(4)+", Dy\x3d"+this.get(5)+", sizingmethod\x3d'auto expand')"};matrixproto.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};function norm(a){return a[0]*a[0]+a[1]*a[1]}function normalize(a){var mag=math.sqrt(norm(a));a[0]&&(a[0]/=mag);a[1]&&(a[1]/=mag)}matrixproto.split=function(){var out={};out.dx=this.e;out.dy=this.f;var row=[[this.a,this.c],[this.b,this.d]];out.scalex=math.sqrt(norm(row[0]));normalize(row[0]);out.shear= 378row[0][0]*row[1][0]+row[0][1]*row[1][1];row[1]=[row[1][0]-row[0][0]*out.shear,row[1][1]-row[0][1]*out.shear];out.scaley=math.sqrt(norm(row[1]));normalize(row[1]);out.shear/=out.scaley;var sin=-row[0][1],cos=row[1][1];if(cos<0){out.rotate=R.deg(math.acos(cos));if(sin<0)out.rotate=360-out.rotate}else out.rotate=R.deg(math.asin(sin));out.isSimple=!+out.shear.toFixed(9)&&(out.scalex.toFixed(9)==out.scaley.toFixed(9)||!out.rotate);out.isSuperSimple=!+out.shear.toFixed(9)&&out.scalex.toFixed(9)==out.scaley.toFixed(9)&& 379!out.rotate;out.noRotation=!+out.shear.toFixed(9)&&!out.rotate;return out};matrixproto.toTransformString=function(shorter){var s=shorter||this[split]();if(s.isSimple){s.scalex=+s.scalex.toFixed(4);s.scaley=+s.scaley.toFixed(4);s.rotate=+s.rotate.toFixed(4);return(s.dx||s.dy?"t"+[s.dx,s.dy]:E)+(s.scalex!=1||s.scaley!=1?"s"+[s.scalex,s.scaley,0,0]:E)+(s.rotate?"r"+[s.rotate,0,0]:E)}else return"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(Matrix.prototype);var version= 380navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);if(navigator.vendor=="Apple Computer, Inc."&&(version&&version[1]<4||navigator.platform.slice(0,2)=="iP")||navigator.vendor=="Google Inc."&&version&&version[1]<8)paperproto.safari=function(){var rect=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){rect.remove()})};else paperproto.safari=fun;var preventDefault=function(){this.returnValue=false},preventTouch=function(){return this.originalEvent.preventDefault()}, 381stopPropagation=function(){this.cancelBubble=true},stopTouch=function(){return this.originalEvent.stopPropagation()},getEventPosition=function(e){var scrollY=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,scrollX=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;return{x:e.clientX+scrollX,y:e.clientY+scrollY}},addEvent=function(){if(g.doc.addEventListener)return function(obj,type,fn,element){var f=function(e){var pos=getEventPosition(e);
381return fn.call(element,e,pos.x,pos.y)};obj.addEventListener(type, 382f,false);if(supportsTouch&&touchMap[type]){var _f=function(e){var pos=getEventPosition(e),olde=e;for(var i=0,ii=e.targetTouches&&e.targetTouches.length;i<ii;i++)if(e.targetTouches[i].target==obj){e=e.targetTouches[i];e.originalEvent=olde;e.preventDefault=preventTouch;e.stopPropagation=stopTouch;break}return fn.call(element,e,pos.x,pos.y)};obj.addEventListener(touchMap[type],_f,false)}return function(){obj.removeEventListener(type,f,false);if(supportsTouch&&touchMap[type])obj.removeEventListener(touchMap[type], 383f,false);return true}};else if(g.doc.attachEvent)return function(obj,type,fn,element){var f=function(e){e=e||g.win.event;var scrollY=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,scrollX=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,x=e.clientX+scrollX,y=e.clientY+scrollY;e.preventDefault=e.preventDefault||preventDefault;e.stopPropagation=e.stopPropagation||stopPropagation;return fn.call(element,e,x,y)};obj.attachEvent("on"+type,f);var detacher=function(){obj.detachEvent("on"+type, 384f);return true};return detacher}}(),drag=[],dragMove=function(e){var x=e.clientX,y=e.clientY,scrollY=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,scrollX=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,dragi,j=drag.length;while(j--){dragi=drag[j];if(supportsTouch&&e.touches){var i=e.touches.length,touch;while(i--){touch=e.touches[i];if(touch.identifier==dragi.el._drag.id){x=touch.clientX;y=touch.clientY;(e.originalEvent?e.originalEvent:e).preventDefault();break}}}else e.preventDefault(); 385var node=dragi.el.node,o,next=node.nextSibling,parent=node.parentNode,display=node.style.display;g.win.opera&&parent.removeChild(node);node.style.display="none";o=dragi.el.paper.getElementByPoint(x,y);node.style.display=display;g.win.opera&&(next?parent.insertBefore(node,next):parent.appendChild(node));o&&eve("raphael.drag.over."+dragi.el.id,dragi.el,o);x+=scrollX;y+=scrollY;eve("raphael.drag.move."+dragi.el.id,dragi.move_scope||dragi.el,x-dragi.el._drag.x,y-dragi.el._drag.y,x,y,e)}},dragUp=function(e){R.unmousemove(dragMove).unmouseup(dragUp); 386var i=drag.length,dragi;while(i--){dragi=drag[i];dragi.el._drag={};eve("raphael.drag.end."+dragi.el.id,dragi.end_scope||dragi.start_scope||dragi.move_scope||dragi.el,e)}drag=[]},elproto=R.el={};for(var i=events.length;i--;)(function(eventName){R[eventName]=elproto[eventName]=function(fn,scope){if(R.is(fn,"function")){this.events=this.events||[];this.events.push({name:eventName,f:fn,unbind:addEvent(this.shape||this.node||g.doc,eventName,fn,scope||this)})}return this};R["un"+eventName]=elproto["un"+ 387eventName]=function(fn){var events=this.events||[],l=events.length;while(l--)if(events[l].name==eventName&&(R.is(fn,"undefined")||events[l].f==fn)){events[l].unbind();events.splice(l,1);!events.length&&delete this.events}return this}})(events[i]);elproto.data=function(key,value){var data=eldata[this.id]=eldata[this.id]||{};if(arguments.length==0)return data;if(arguments.length==1){if(R.is(key,"object")){for(var i in key)if(key[has](i))this.data(i,key[i]);return this}eve("raphael.data.get."+this.id, 388this,data[key],key);return data[key]}data[key]=value;eve("raphael.data.set."+this.id,this,value,key);return this};elproto.removeData=function(key){if(key==null)eldata[this.id]={};else eldata[this.id]&&delete eldata[this.id][key];return this};elproto.getData=function(){return clone(eldata[this.id]||{})};elproto.hover=function(f_in,f_out,scope_in,scope_out){return this.mouseover(f_in,scope_in).mouseout(f_out,scope_out||scope_in)};elproto.unhover=function(f_in,f_out){return this.unmouseover(f_in).unmouseout(f_out)}; 389var draggable=[];elproto.drag=function(onmove,onstart,onend,move_scope,start_scope,end_scope){function start(e){(e.originalEvent||e).preventDefault();var x=e.clientX,y=e.clientY,scrollY=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,scrollX=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;this._drag.id=e.identifier;if(supportsTouch&&e.touches){var i=e.touches.length,touch;while(i--){touch=e.touches[i];this._drag.id=touch.identifier;if(touch.identifier==this._drag.id){x=touch.clientX; 390y=touch.clientY;break}}}this._drag.x=x+scrollX;this._drag.y=y+scrollY;!drag.length&&R.mousemove(dragMove).mouseup(dragUp);drag.push({el:this,move_scope:move_scope,start_scope:start_scope,end_scope:end_scope});onstart&&eve.on("raphael.drag.start."+this.id,onstart);onmove&&eve.on("raphael.drag.move."+this.id,onmove);onend&&eve.on("raphael.drag.end."+this.id,onend);eve("raphael.drag.start."+this.id,start_scope||move_scope||this,e.clientX+scrollX,e.clientY+scrollY,e)}this._drag={};draggable.push({el:this, 391start:start});this.mousedown(start);return this};elproto.onDragOver=function(f){f?eve.on("raphael.drag.over."+this.id,f):eve.unbind("raphael.drag.over."+this.id
391)};elproto.undrag=function(){var i=draggable.length;while(i--)if(draggable[i].el==this){this.unmousedown(draggable[i].start);draggable.splice(i,1);eve.unbind("raphael.drag.*."+this.id)}!draggable.length&&R.unmousemove(dragMove).unmouseup(dragUp);drag=[]};paperproto.circle=function(x,y,r){var out=R._engine.circle(this,x||0,y||0,r||0);this.__set__&& 392this.__set__.push(out);return out};paperproto.rect=function(x,y,w,h,r){var out=R._engine.rect(this,x||0,y||0,w||0,h||0,r||0);this.__set__&&this.__set__.push(out);return out};paperproto.ellipse=function(x,y,rx,ry){var out=R._engine.ellipse(this,x||0,y||0,rx||0,ry||0);this.__set__&&this.__set__.push(out);return out};paperproto.path=function(pathString){pathString&&!R.is(pathString,string)&&!R.is(pathString[0],array)&&(pathString+=E);var out=R._engine.path(R.format[apply](R,arguments),this);this.__set__&& 393this.__set__.push(out);return out};paperproto.image=function(src,x,y,w,h){var out=R._engine.image(this,src||"about:blank",x||0,y||0,w||0,h||0);this.__set__&&this.__set__.push(out);return out};paperproto.text=function(x,y,text){var out=R._engine.text(this,x||0,y||0,Str(text));this.__set__&&this.__set__.push(out);return out};paperproto.set=function(itemsArray){!R.is(itemsArray,"array")&&(itemsArray=Array.prototype.splice.call(arguments,0,arguments.length));var out=new Set(itemsArray);this.__set__&& 394this.__set__.push(out);out["paper"]=this;out["type"]="set";return out};paperproto.setStart=function(set){this.__set__=set||this.set()};paperproto.setFinish=function(set){var out=this.__set__;delete this.__set__;return out};paperproto.setSize=function(width,height){return R._engine.setSize.call(this,width,height)};paperproto.setViewBox=function(x,y,w,h,fit){return R._engine.setViewBox.call(this,x,y,w,h,fit)};paperproto.top=paperproto.bottom=null;paperproto.raphael=R;var getOffset=function(elem){var box= 395elem.getBoundingClientRect(),doc=elem.ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=box.top+(g.win.pageYOffset||docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+(g.win.pageXOffset||docElem.scrollLeft||body.scrollLeft)-clientLeft;return{y:top,x:left}};paperproto.getElementByPoint=function(x,y){var paper=this,svg=paper.canvas,target=g.doc.elementFromPoint(x,y);if(g.win.opera&&target.tagName== 396"svg"){var so=getOffset(svg),sr=svg.createSVGRect();sr.x=x-so.x;sr.y=y-so.y;sr.width=sr.height=1;var hits=svg.getIntersectionList(sr,null);if(hits.length)target=hits[hits.length-1]}if(!target)return null;while(target.parentNode&&target!=svg.parentNode&&!target.raphael)target=target.parentNode;target==paper.canvas.parentNode&&(target=svg);target=target&&target.raphael?paper.getById(target.raphaelid):null;return target};paperproto.getElementsByBBox=function(bbox){var set=this.set();this.forEach(function(el){if(R.isBBoxIntersect(el.getBBox(), 397bbox))set.push(el)});return set};paperproto.getById=function(id){var bot=this.bottom;while(bot){if(bot.id==id)return bot;bot=bot.next}return null};paperproto.forEach=function(callback,thisArg){var bot=this.bottom;while(bot){if(callback.call(thisArg,bot)===false)return this;bot=bot.next}return this};paperproto.getElementsByPoint=function(x,y){var set=this.set();this.forEach(function(el){if(el.isPointInside(x,y))set.push(el)});return set};function x_y(){return this.x+S+this.y}function x_y_w_h(){return this.x+ 398S+this.y+S+this.width+" Ã "+this.height}elproto.isPointInside=function(x,y){var rp=this.realPath=getPath[this.type](this);if(this.attr("transform")&&this.attr("transform").length)rp=R.transformPath(rp,this.attr("transform"));return R.isPointInsidePath(rp,x,y)};elproto.getBBox=function(isWithoutTransform){if(this.removed)return{};var _=this._;if(isWithoutTransform){if(_.dirty||!_.bboxwt){this.realPath=getPath[this.type](this);_.bboxwt=pathDimensions(this.realPath);_.bboxwt.toString=x_y_w_h;_.dirty= 3990}return _.bboxwt}if(_.dirty||_.dirtyT||!_.bbox){if(_.dirty||!this.realPath){_.bboxwt=0;this.realPath=getPath[this.type](this)}
399_.bbox=pathDimensions(mapPath(this.realPath,this.matrix));_.bbox.toString=x_y_w_h;_.dirty=_.dirtyT=0}return _.bbox};elproto.clone=function(){if(this.removed)return null;var out=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(out);return out};elproto.glow=function(glow){if(this.type=="text")return null;glow=glow||{};var s={width:(glow.width||10)+(+this.attr("stroke-width")|| 4001),fill:glow.fill||false,opacity:glow.opacity||.5,offsetx:glow.offsetx||0,offsety:glow.offsety||0,color:glow.color||"#000"},c=s.width/2,r=this.paper,out=r.set(),path=this.realPath||getPath[this.type](this);path=this.matrix?mapPath(path,this.matrix):path;for(var i=1;i<c+1;i++)out.push(r.path(path).attr({stroke:s.color,fill:s.fill?s.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(s.width/c*i).toFixed(3),opacity:+(s.opacity/c).toFixed(3)}));return out.insertBefore(this).translate(s.offsetx, 401s.offsety)};var curveslengths={},getPointAtSegmentLength=function(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,length){if(length==null)return bezlen(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y);else return R.findDotsAtSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,getTatLen(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,length))},getLengthFactory=function(istotal,subpath){return function(path,length,onlystart){path=path2curve(path);var x,y,p,l,sp="",subpaths={},point,len=0;for(var i=0,ii=path.length;i<ii;i++){p=path[i];if(p[0]=="M"){x=+p[1];y= 402+p[2]}else{l=getPointAtSegmentLength(x,y,p[1],p[2],p[3],p[4],p[5],p[6]);if(len+l>length){if(subpath&&!subpaths.start){point=getPointAtSegmentLength(x,y,p[1],p[2],p[3],p[4],p[5],p[6],length-len);sp+=["C"+point.start.x,point.start.y,point.m.x,point.m.y,point.x,point.y];if(onlystart)return sp;subpaths.start=sp;sp=["M"+point.x,point.y+"C"+point.n.x,point.n.y,point.end.x,point.end.y,p[5],p[6]].join();len+=l;x=+p[5];y=+p[6];continue}if(!istotal&&!subpath){point=getPointAtSegmentLength(x,y,p[1],p[2],p[3], 403p[4],p[5],p[6],length-len);return{x:point.x,y:point.y,alpha:point.alpha}}}len+=l;x=+p[5];y=+p[6]}sp+=p.shift()+p}subpaths.end=sp;point=istotal?len:subpath?subpaths:R.findDotsAtSegment(x,y,p[0],p[1],p[2],p[3],p[4],p[5],1);point.alpha&&(point={x:point.x,y:point.y,alpha:point.alpha});return point}};var getTotalLength=getLengthFactory(1),getPointAtLength=getLengthFactory(),getSubpathsAtLength=getLengthFactory(0,1);R.getTotalLength=getTotalLength;R.getPointAtLength=getPointAtLength;R.getSubpath=function(path, 404from,to){if(this.getTotalLength(path)-to<1E-6)return getSubpathsAtLength(path,from).end;var a=getSubpathsAtLength(path,to,1);return from?getSubpathsAtLength(a,from).end:a};elproto.getTotalLength=function(){var path=this.getPath();if(!path)return;if(this.node.getTotalLength)return this.node.getTotalLength();return getTotalLength(path)};elproto.getPointAtLength=function(length){var path=this.getPath();if(!path)return;return getPointAtLength(path,length)};elproto.getPath=function(){var path,getPath= 405R._getPath[this.type];if(this.type=="text"||this.type=="set")return;if(getPath)path=getPath(this);return path};elproto.getSubpath=function(from,to){var path=this.getPath();if(!path)return;return R.getSubpath(path,from,to)};var ef=R.easing_formulas={linear:function(n){return n},"\x3c":function(n){return pow(n,1.7)},"\x3e":function(n){return pow(n,.48)},"\x3c\x3e":function(n){var q=.48-n/1.04,Q=math.sqrt(.1734+q*q),x=Q-q,X=pow(abs(x),1/3)*(x<0?-1:1),y=-Q-q,Y=pow(abs(y),1/3)*(y<0?-1:1),t=X+Y+.5;return(1- 406t)*3*t*t+t*t*t},backIn:function(n){var s=1.70158;return n*n*((s+1)*n-s)},backOut:function(n){n=n-1;var s=1.70158;return n*n*((s+1)*n+s)+1},elastic:function(n){if(n==!!n)return n;return pow(2,-10*n)*math.sin((n-.075)*(2*PI)/.3)+1},bounce:function(n){var s=7.5625,p=2.75,l;if(n<1/p)l=s*n*n;else if(n<2/p){n-=1.5/p;l=s*n*n+.75}else if(n<2.5/p){n-=2.25/p;l=s*n*n+.9375}else{n-=2.625/p;l=s*n*n+.984375}return l}};ef.easeIn=ef["ease-in"]=ef["\x3c"];ef.easeOut=ef["ease-out"]=ef["\x3e"];ef.easeInOut=ef["ease-in-out"]= 407ef["\x3c\x3e"];ef["back-in"]=ef.backIn;ef["back-out"]=ef.backOut;var animationElements=[],requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){setTimeout(callback,16)},animation=function(){var Now=+new Date,l=0;for(;l<animationElements.length;l++){var e=animationElements[l];if(e.el.removed||e.paused)continue;var time=Now-e.start,ms=e.ms,easing=e.easing,from= 408e.from,diff=e.diff,to=e.to,t=e.t,that=e.el,set={},now,init={},key;if(e.initstatus){time=(e.initstatus*e.anim.top-e.prev)/(e.percent-e.prev)*ms;e.status=e.initstatus;delete e.initstatus;e.stop&&animationElements.splice(l--,1)}else e.status=(e.prev+(e.percent-e.prev)*(time/ms))/e.anim.top;if(time<0)continue;if(time<ms){var pos=easing(time/ms);for(var attr in from)if(from[has](attr)){switch(availableAnimAttrs[attr]){case nu:now=+from[attr]+pos*ms*diff[attr];break;case "colour":now="rgb("+[upto255(round(from[attr].r+ 409pos*ms*diff[attr].r)),upto255(round(from[attr].g+pos*ms*diff[attr].g)),upto255(round(from[attr].b+pos*ms*diff[attr].b))].join(",")+")";break;case "path":now=[];for(var i=0,ii=from[attr].length;i<ii;i++){now[i]=[from[attr][i][0]];for(var j=1,jj=from[attr][i].length;j<jj;j++)now[i][j]=+from[attr][i][j]+pos*ms*diff[attr][i][j];now[i]=now[i].join(S)}now=now.join(S);break;case "transform":if(diff[attr].real){now=[];for(i=0,ii=from[attr].length;i<ii;i++){now[i]=[from[attr][i][0]];for(j=1,jj=from[attr][i].length;j< 410jj;j++)now[i][j]=from[attr][i][j]+pos*ms*diff[attr][i][j]}}else{var get=function(i){return+from[attr][i]+pos*ms*diff[attr][i]};now=[["m",get(0),get(1),get(2),get(3),get(4),get(5)]]}break;case "csv":if(attr=="clip-rect"){now=[];i=4;while(i--)now[i]=+from[attr][i]+pos*ms*diff[attr][i]}break;
410default:var from2=[][concat](from[attr]);now=[];i=that.paper.customAttributes[attr].length;while(i--)now[i]=+from2[i]+pos*ms*diff[attr][i];break}set[attr]=now}that.attr(set);(function(id,that,anim){setTimeout(function(){eve("raphael.anim.frame."+ 411id,that,anim)})})(that.id,that,e.anim)}else{(function(f,el,a){setTimeout(function(){eve("raphael.anim.frame."+el.id,el,a);eve("raphael.anim.finish."+el.id,el,a);R.is(f,"function")&&f.call(el)})})(e.callback,that,e.anim);that.attr(to);animationElements.splice(l--,1);if(e.repeat>1&&!e.next){for(key in to)if(to[has](key))init[key]=e.totalOrigin[key];e.el.attr(init);runAnimation(e.anim,e.el,e.anim.percents[0],null,e.totalOrigin,e.repeat-1)}if(e.next&&!e.stop)runAnimation(e.anim,e.el,e.next,null,e.totalOrigin, 412e.repeat)}}R.svg&&that&&that.paper&&that.paper.safari();animationElements.length&&requestAnimFrame(animation)},upto255=function(color){return color>255?255:color<0?0:color};elproto.animateWith=function(el,anim,params,ms,easing,callback){var element=this;if(element.removed){callback&&callback.call(element);return element}var a=params instanceof Animation?params:R.animation(params,ms,easing,callback),x,y;runAnimation(a,element,a.percents[0],null,element.attr());for(var i=0,ii=animationElements.length;i< 413ii;i++)if(animationElements[i].anim==anim&&animationElements[i].el==el){animationElements[ii-1].start=animationElements[i].start;break}return element};function CubicBezierAtTime(t,p1x,p1y,p2x,p2y,duration){var cx=3*p1x,bx=3*(p2x-p1x)-cx,ax=1-cx-bx,cy=3*p1y,by=3*(p2y-p1y)-cy,ay=1-cy-by;function sampleCurveX(t){return((ax*t+bx)*t+cx)*t}function solve(x,epsilon){var t=solveCurveX(x,epsilon);return((ay*t+by)*t+cy)*t}function solveCurveX(x,epsilon){var t0,t1,t2,x2,d2,i;for(t2=x,i=0;i<8;i++){x2=sampleCurveX(t2)- 414x;if(abs(x2)<epsilon)return t2;d2=(3*ax*t2+2*bx)*t2+cx;if(abs(d2)<1E-6)break;t2=t2-x2/d2}t0=0;t1=1;t2=x;if(t2<t0)return t0;if(t2>t1)return t1;while(t0<t1){x2=sampleCurveX(t2);if(abs(x2-x)<epsilon)return t2;if(x>x2)t0=t2;else t1=t2;t2=(t1-t0)/2+t0}return t2}return solve(t,1/(200*duration))}elproto.onAnimation=function(f){f?eve.on("raphael.anim.frame."+this.id,f):eve.unbind("raphael.anim.frame."+this.id);return this};function Animation(anim,ms){var percents=[],newAnim={};this.ms=ms;this.times=1;if(anim){for(var attr in anim)if(anim[has](attr)){newAnim[toFloat(attr)]= 415anim[attr];percents.push(toFloat(attr))}percents.sort(sortByNumber)}this.anim=newAnim;this.top=percents[percents.length-1];this.percents=percents}Animation.prototype.delay=function(delay){var a=new Animation(this.anim,this.ms);a.times=this.times;a.del=+delay||0;return a};Animation.prototype.repeat=function(times){var a=new Animation(this.anim,this.ms);a.del=this.del;a.times=math.floor(mmax(times,0))||1;return a};function runAnimation(anim,element,percent,status,totalOrigin,times){percent=toFloat(percent); 416var params,isInAnim,isInAnimSet,percents=[],next,prev,timestamp,ms=anim.ms,from={},to={},diff={};if(status)for(i=0,ii=animationElements.length;i<ii;i++){var e=animationElements[i];if(e.el.id==element.id&&e.anim==anim){if(e.percent!=percent){animationElements.splice(i,1);isInAnimSet=1}else isInAnim=e;element.attr(e.totalOrigin);break}}else status=+to;for(var i=0,ii=anim.percents.length;i<ii;i++)if(anim.percents[i]==percent||anim.percents[i]>status*anim.top){percent=anim.percents[i];prev=anim.percents[i- 4171]||0;ms=ms/anim.top*(percent-prev);next=anim.percents[i+1];params=anim.anim[percent];break}else if(status)element.attr(anim.anim[anim.percents[i]]);if(!params)return;if(!isInAnim){for(var attr in params)if(params[has](attr))if(availableAnimAttrs[has](attr)||element.paper.customAttributes[has](attr)){from[attr]=element.attr(attr);from[attr]==null&&(from[attr]=availableAttrs[attr]);to[attr]=params[attr];switch(availableAnimAttrs[attr]){case nu:diff[attr]=(to[attr]-from[attr])/ms;break;case "colour":from[attr]= 418R.getRGB(from[attr]);var toColour=R.getRGB(to[attr]);diff[attr]={r:(toColour.r-from[attr].r)/ms,g:(toColour.g-from[attr].g)/ms,b:(toColour.b-from[attr].b)/ms};break;case "path":var pathes=path2curve(from[attr],to[attr]),toPath=pathes[1];from[attr]=pathes[0];diff[attr]=[];for(i=0,ii=from[attr].length;i<ii;i++){diff[attr][i]=[0];for(var j=1,jj=from[attr][i].length;j<jj;j++)diff[attr][i][j]=(toPath[i][j]-from[attr][i][j])/ms}break;case "transform":var _=element._,eq=equaliseTransform(_[attr],to[attr]); 419if(eq){from[attr]=eq.from;to[attr]=eq.to;diff[attr]=[];diff[attr].real=true;for(i=0,ii=from[attr].length;i<ii;i++){diff[attr][i]=[from[attr][i][0]];for(j=1,jj=from[attr][i].length;j<jj;j++)diff[attr][i][j]=(to[attr][i][j]-from[attr][i][j])/ms}}else{var m=element.matrix||new Matrix,to2={_:{transform:_.transform},getBBox:function(){return element.getBBox(1)}};from[attr]=[m.a,m.b,m.c,m.d,m.e,m.f];extractTransform(to2,to[attr]);to[attr]=to2._.transform;diff[attr]=[(to2.matrix.a-m.a)/ms,(to2.matrix.b- 420m.b)/ms,(to2.matrix.c-m.c)/ms,(to2.matrix.d-m.d)/ms,(to2.matrix.e-m.e)/ms,(to2.matrix.f-m.f)/ms]}break;case "csv":var values=Str(params[attr])[split](separator),from2=Str(from[attr])[split](separator);if(attr=="clip-rect"){from[attr]=from2;diff[attr]=[];i=from2.length;while(i--)diff[attr][i]=(values[i]-from[attr][i])/ms}to[attr]=values;break;default:values=[][concat](params[attr]);
420from2=[][concat](from[attr]);diff[attr]=[];i=element.paper.customAttributes[attr].length;while(i--)diff[attr][i]=((values[i]|| 4210)-(from2[i]||0))/ms;break}}var easing=params.easing,easyeasy=R.easing_formulas[easing];if(!easyeasy){easyeasy=Str(easing).match(bezierrg);if(easyeasy&&easyeasy.length==5){var curve=easyeasy;easyeasy=function(t){return CubicBezierAtTime(t,+curve[1],+curve[2],+curve[3],+curve[4],ms)}}else easyeasy=pipe}timestamp=params.start||anim.start||+new Date;e={anim:anim,percent:percent,timestamp:timestamp,start:timestamp+(anim.del||0),status:0,initstatus:status||0,stop:false,ms:ms,easing:easyeasy,from:from, 422diff:diff,to:to,el:element,callback:params.callback,prev:prev,next:next,repeat:times||anim.times,origin:element.attr(),totalOrigin:totalOrigin};animationElements.push(e);if(status&&!isInAnim&&!isInAnimSet){e.stop=true;e.start=new Date-ms*status;if(animationElements.length==1)return animation()}if(isInAnimSet)e.start=new Date-e.ms*status;animationElements.length==1&&requestAnimFrame(animation)}else{isInAnim.initstatus=status;isInAnim.start=new Date-isInAnim.ms*status}eve("raphael.anim.start."+element.id, 423element,anim)}R.animation=function(params,ms,easing,callback){if(params instanceof Animation)return params;if(R.is(easing,"function")||!easing){callback=callback||easing||null;easing=null}params=Object(params);ms=+ms||0;var p={},json,attr;for(attr in params)if(params[has](attr)&&toFloat(attr)!=attr&&toFloat
423(attr)+"%"!=attr){json=true;p[attr]=params[attr]}if(!json)return new Animation(params,ms);else{easing&&(p.easing=easing);callback&&(p.callback=callback);return new Animation({100:p},ms)}};elproto.animate= 424function(params,ms,easing,callback){var element=this;if(element.removed){callback&&callback.call(element);return element}var anim=params instanceof Animation?params:R.animation(params,ms,easing,callback);runAnimation(anim,element,anim.percents[0],null,element.attr());return element};elproto.setTime=function(anim,value){if(anim&&value!=null)this.status(anim,mmin(value,anim.ms)/anim.ms);return this};elproto.status=function(anim,value){var out=[],i=0,len,e;if(value!=null){runAnimation(anim,this,-1,mmin(value, 4251));return this}else{len=animationElements.length;for(;i<len;i++){e=animationElements[i];if(e.el.id==this.id&&(!anim||e.anim==anim)){if(anim)return e.status;out.push({anim:e.anim,status:e.status})}}if(anim)return 0;return out}};elproto.pause=function(anim){for(var i=0;i<animationElements.length;i++)if(animationElements[i].el.id==this.id&&(!anim||animationElements[i].anim==anim))if(eve("raphael.anim.pause."+this.id,this,animationElements[i].anim)!==false)animationElements[i].paused=true;return this}; 426elproto.resume=function(anim){for(var i=0;i<animationElements.length;i++)if(animationElements[i].el.id==this.id&&(!anim||animationElements[i].anim==anim)){var e=animationElements[i];if(eve("raphael.anim.resume."+this.id,this,e.anim)!==false){delete e.paused;this.status(e.anim,e.status)}}return this};elproto.stop=function(anim){for(var i=0;i<animationElements.length;i++)if(animationElements[i].el.id==this.id&&(!anim||animationElements[i].anim==anim))if(eve("raphael.anim.stop."+this.id,this,animationElements[i].anim)!== 427false)animationElements.splice(i--,1);return this};function stopAnimation(paper){for(var i=0;i<animationElements.length;i++)if(animationElements[i].el.paper==paper)animationElements.splice(i--,1)}eve.on("raphael.remove",stopAnimation);eve.on("raphael.clear",stopAnimation);elproto.toString=function(){return"Raphaëlâs object"};var Set=function(items){this.items=[];this.length=0;this.type="set";if(items)for(var i=0,ii=items.length;i<ii;i++)if(items[i]&&(items[i].constructor==elproto.constructor||items[i].constructor== 428Set)){this[this.items.length]=this.items[this.items.length]=items[i];this.length++}},setproto=Set.prototype;setproto.push=function(){var item,len;for(var i=0,ii=arguments.length;i<ii;i++){item=arguments[i];if(item&&(item.constructor==elproto.constructor||item.constructor==Set)){len=this.items.length;this[len]=this.items[len]=item;this.length++}}return this};setproto.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};setproto.forEach=function(callback,thisArg){for(var i= 4290,ii=this.items.length;i<ii;i++)if(callback.call(thisArg,this.items[i],i)===false)return this;return this};for(var method in elproto)if(elproto[has](method))setproto[method]=function(methodname){return function(){var arg=arguments;return this.forEach(function(el){el[methodname][apply](el,arg)})}}(method);setproto.attr=function(name,value){if(name&&R.is(name,array)&&R.is(name[0],"object"))for(var j=0,jj=name.length;j<jj;j++)this.items[j].attr(name[j]);else for(var i=0,ii=this.items.length;i<ii;i++)this.items[i].attr(name, 430value);return this};setproto.clear=function(){while(this.length)this.pop()};setproto.splice=function(index,count,insertion){index=index<0?mmax(this.length+index,0):index;count=mmax(0,mmin(this.length-index,count));var tail=[],todel=[],args=[],i;for(i=2;i<arguments.length;i++)args.push(arguments[i]);for(i=0;i<count;i++)todel.push(this[index+i]);for(;i<this.length-index;i++)tail.push(this[index+i]);var arglen=args.length;for(i=0;i<arglen+tail.length;i++)this.items[index+i]=this[index+i]=i<arglen?args[i]: 431tail[i-arglen];i=this.items.length=this.length-=count-arglen;while(this[i])delete this[i++];return new Set(todel)};setproto.exclude=function(el){for(var i=0,ii=this.length;i<ii;i++)if(this[i]==el){this.splice(i,1);return true}};setproto.animate=function(params,ms,easing,callback){(R.is(easing,"function")||!easing)&&(callback=easing||null);var len=this.items.length,i=len,item,set=this,collector;if(!len)return this;callback&&(collector=function(){!--len&&callback.call(set)});easing=R.is(easing,string)? 432easing:collector;var anim=R.animation(params,ms,easing,collector);item=this.items[--i].animate(anim);while(i--){this.items[i]&&!this.items[i].removed&&this.items[i].animateWith(item,anim,anim);this.items[i]&&!this.items[i].removed||len--}return this};setproto.insertAfter=function(el){var i=this.items.length;while(i--)this.items[i].insertAfter(el);return this};setproto.getBBox=function(){var x=[],y=[],x2=[],y2=[];for(var i=this.items.length;i--;)if(!this.items[i].removed){var box=this.items[i].getBBox(); 433x.push(box.x);y.push(box.y);x2.push(box.x+box.width);y2.push(box.y+box.height)}x=mmin[apply](0,x);y=mmin[apply](0,y);x2=mmax[apply](0,x2);y2=mmax[apply](0,y2);return{x:x,y:y,x2:x2,y2:y2,width:x2-x,height:y2-y}};setproto.clone=function(s){s=this.paper.set();for(var i=0,ii=this.items.length;i<ii;i++)s.push(this.items[i].clone());return s};setproto.toString=function(){return"Raphaëlâs set"};setproto.glow=function(glowConfig){var ret=this.paper.set();this.forEach(function(shape,index){var g=shape.glow(glowConfig); 434if(g!=null)g.forEach(function(shape2,index2){ret.push(shape2)})});return ret};setproto.isPointInside=function(x,y){var isPointInside=false;this.forEach(function(el){if(el.isPointInside(x,y)){isPointInside=true;return false}});return isPointInside};R.registerFont=function(font){if(!font.face)return font;this.fonts=this.fonts||{};var fontcopy={w:font.w,face:{},glyphs:{}},family=font.face["font-family"];for(var prop in font.face)if(font.face[has](prop))fontcopy.face[prop]=font.face[prop];if(this.fonts[family])this.fonts[family].push(fontcopy); 435else this.fonts[family]=[fontcopy];if(!font.svg){fontcopy.face["units-per-em"]=toInt(font.face["units-per-em"],10);for(var glyph in font.glyphs)if(font.glyphs[has](glyph)){var path=font.glyphs[glyph];fontcopy.glyphs[glyph]={w:path.w,k:{},d:path.d&&"M"+path.d.replace(/[mlcxtrv]/g,function(command){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[command]||"M"})+"z"};if(path.k)for(var k in path.k)if(path[has](k))fontcopy.glyphs[glyph].k[k]=path.k[k]}}return font};paperproto.getFont=function(family,weight, 436style,stretch){stretch=stretch||"normal";style=style||"normal";weight=+weight||{normal:400,bold:700,lighter:300,bolder:800}[weight]||400;if(!R.fonts)return;var font=R.fonts[family];if(!font){var name=new RegExp("(^|\\s)"+family.replace(/[^\w\d\s+!~.:_-]/g,E)+"(\\s|$)","i");for(var fontName in R.fonts)if(R.fonts[has](fontName))if(name.test(fontName)){font=R.fonts[fontName];break}}var thefont;if(font)for(var i=0,ii=font.length;i<ii;i++){thefont=font[i];if(thefont.face["font-weight"]==weight&&(thefont.face["font-style"]== 437style||!thefont.face["font-style"])&&thefont.face["font-stretch"]==stretch)break}return thefont};paperproto.print=function(x,y,string,font,size,origin,letter_spacing,line_spacing){origin=origin||"middle";letter_spacing=mmax(mmin(letter_spacing||0,1),-1);line_spacing=mmax(mmin(line_spacing||1,3),1);var letters=Str(string)[split](E),shift=0,notfirst=0,path=E,scale;R.is(font,"string")&&(font=this.getFont(font));if(font){scale=(size||16)/font.face["units-per-em"];var bb=font.face.bbox[split](separator), 438top=+bb[0],lineHeight=bb[3]-bb[1],shifty=0,height=+bb[1]+(origin=="baseline"?lineHeight+ +font.face.desce
438nt:lineHeight/2);for(var i=0,ii=letters.length;i<ii;i++){if(letters[i]=="\n"){shift=0;curr=0;notfirst=0;shifty+=lineHeight*line_spacing}else{var prev=notfirst&&font.glyphs[letters[i-1]]||{},curr=font.glyphs[letters[i]];shift+=notfirst?(prev.w||font.w)+(prev.k&&prev.k[letters[i]]||0)+font.w*letter_spacing:0;notfirst=1}if(curr&&curr.d)path+=R.transformPath(curr.d,["t",shift*scale,shifty*scale,"s", 439scale,scale,top,height,"t",(x-top)/scale,(y-height)/scale])}}return this.path(path).attr({fill:"#000",stroke:"none"})};paperproto.add=function(json){if(R.is(json,"array")){var res=this.set(),i=0,ii=json.length,j;for(;i<ii;i++){j=json[i]||{};elements[has](j.type)&&res.push(this[j.type]().attr(j))}}return res};R.format=function(token,params){var args=R.is(params,array)?[0][concat](params):arguments;token&&R.is(token,string)&&args.length-1&&(token=token.replace(formatrg,function(str,i){return args[++i]== 440null?E:args[i]}));return token||E};R.fullfill=function(){var tokenRegex=/\{([^\}]+)\}/g,objNotationRegex=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,replacer=function(all,key,obj){var res=obj;key.replace(objNotationRegex,function(all,name,quote,quotedName,isFunc){name=name||quotedName;if(res){if(name in res)res=res[name];typeof res=="function"&&isFunc&&(res=res())}});res=(res==null||res==obj?all:res)+"";return res};return function(str,obj){return String(str).replace(tokenRegex,function(all, 441key){return replacer(all,key,obj)})}}();R.ninja=function(){oldRaphael.was?g.win.Raphael=oldRaphael.is:delete Raphael;return R};R.st=setproto;(function(doc,loaded,f){if(doc.readyState==null&&doc.addEventListener){doc.addEventListener(loaded,f=function(){doc.removeEventListener(loaded,f,false);doc.readyState="complete"},false);doc.readyState="loading"}function isLoaded(){/in/.test(doc.readyState)?setTimeout(isLoaded,9):R.eve("raphael.DOMload")}isLoaded()})(document,"DOMContentLoaded");eve.on("raphael.DOMload", 442function(){loaded=true});(function(){if(!R.svg)return;var has="hasOwnProperty",Str=String,toFloat=parseFloat,toInt=parseInt,math=Math,mmax=math.max,abs=math.abs,pow=math.pow,separator=/[, ]+/,eve=R.eve,E="",S=" ";var xlink="http://www.w3.org/1999/xlink",markers={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"},markerCounter={};R.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+ 443this.version};var $=function(el,attr){if(attr){if(typeof el=="string")el=$(el);for(var key in attr)if(attr[has](key))if(key.substring(0,6)=="xlink:")el.setAttributeNS(xlink,key.substring(6),Str(attr[key]));else el.setAttribute(key,Str(attr[key]))}else{el=R._g.doc.createElementNS("http://www.w3.org/2000/svg",el);el.style&&(el.style.webkitTapHighlightColor="rgba(0,0,0,0)")}return el},addGradientFill=function(element,gradient){var type="linear",id=element.id+gradient,fx=.5,fy=.5,o=element.node,SVG=element.paper, 444s=o.style,el=R._g.doc.getElementById(id);if(!el){gradient=Str(gradient).replace(R._radial_gradient,function(all,_fx,_fy){type="radial";if(_fx&&_fy){fx=toFloat(_fx);fy=toFloat(_fy);var dir=(fy>.5)*2-1;pow(fx-.5,2)+pow(fy-.5,2)>.25&&(fy=math.sqrt(.25-pow(fx-.5,2))*dir+.5)&&fy!=.5&&(fy=fy.toFixed(5)-1E-5*dir)}return E});gradient=gradient.split(/\s*\-\s*/);if(type=="linear"){var angle=gradient.shift();angle=-toFloat(angle);if(isNaN(angle))return null;var vector=[0,0,math.cos(R.rad(angle)),math.sin(R.rad(angle))], 445max=1/(mmax(abs(vector[2]),abs(vector[3]))||1);vector[2]*=max;vector[3]*=max;if(vector[2]<0){vector[0]=-vector[2];vector[2]=0}if(vector[3]<0){vector[1]=-vector[3];vector[3]=0}}var dots=R._parseDots(gradient);if(!dots)return null;id=id.replace(/[\(\)\s,\xb0#]/g,"_");if(element.gradient&&id!=element.gradient.id){SVG.defs.removeChild(element.gradient);delete element.gradient}if(!element.gradient){el=$(type+"Gradient",{id:id});element.gradient=el;$(el,type=="radial"?{fx:fx,fy:fy}:{x1:vector[0],y1:vector[1], 446x2:vector[2],y2:vector[3],gradientTransform:element.matrix.invert()});SVG.defs.appendChild(el);for(var i=0,ii=dots.length;i<ii;i++)el.appendChild($("stop",{offset:dots[i].offset?dots[i].offset:i?"100%":"
4460%","stop-color":dots[i].color||"#fff"}))}}$(o,{fill:"url(#"+id+")",opacity:1,"fill-opacity":1});s.fill=E;s.opacity=1;s.fillOpacity=1;return 1},updatePosition=function(o){var bbox=o.getBBox(1);$(o.pattern,{patternTransform:o.matrix.invert()+" translate("+bbox.x+","+bbox.y+")"})},addArrow=function(o, 447value,isEnd){if(o.type=="path"){var values=Str(value).toLowerCase().split("-"),p=o.paper,se=isEnd?"end":"start",node=o.node,attrs=o.attrs,stroke=attrs["stroke-width"],i=values.length,type="classic",from,to,dx,refX,attr,w=3,h=3,t=5;while(i--)switch(values[i]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":type=values[i];break;case "wide":h=5;break;case "narrow":h=2;break;case "long":w=5;break;case "short":w=2;break}if(type=="open"){w+=2;h+=2;t+=2;dx=1;refX=isEnd?4:1; 448attr={fill:"none",stroke:attrs.stroke}}else{refX=dx=w/2;attr={fill:attrs.stroke,stroke:"none"}}if(o._.arrows)if(isEnd){o._.arrows.endPath&&markerCounter[o._.arrows.endPath]--;o._.arrows.endMarker&&markerCounter[o._.arrows.endMarker]--}else{o._.arrows.startPath&&markerCounter[o._.arrows.startPath]--;o._.arrows.startMarker&&markerCounter[o._.arrows.startMarker]--}else o._.arrows={};if(type!="none"){var pathId="raphael-marker-"+type,markerId="raphael-marker-"+se+type+w+h;if(!R._g.doc.getElementById(pathId)){p.defs.appendChild($($("path"), 449{"stroke-linecap":"round",d:markers[type],id:pathId}));markerCounter[pathId]=1}else markerCounter[pathId]++;var marker=R._g.doc.getElementById(markerId),use;if(!marker){marker=$($("marker"),{id:markerId,markerHeight:h,markerWidth:w,orient:"auto",refX:refX,refY:h/2});use=$($("use"),{"xlink:href":"#"+pathId,transform:(isEnd?"rotate(180 "+w/2+" "+h/2+") ":E)+"scale("+w/t+","+h/t+")","stroke-width":(1/((w/t+h/t)/2)).toFixed(4)});marker.appendChild(use);p.defs.appendChild(marker);markerCounter[markerId]= 4501}else{markerCounter[markerId]++;use=marker.getElementsByTagName("use")[0]}$(use,attr);
450var delta=dx*(type!="diamond"&&type!="oval");if(isEnd){from=o._.arrows.startdx*stroke||0;to=R.getTotalLength(attrs.path)-delta*stroke}else{from=delta*stroke;to=R.getTotalLength(attrs.path)-(o._.arrows.enddx*stroke||0)}attr={};attr["marker-"+se]="url(#"+markerId+")";if(to||from)attr.d=R.getSubpath(attrs.path,from,to);$(node,attr);o._.arrows[se+"Path"]=pathId;o._.arrows[se+"Marker"]=markerId;o._.arrows[se+"dx"]=delta; 451o._.arrows[se+"Type"]=type;o._.arrows[se+"String"]=value}else{if(isEnd){from=o._.arrows.startdx*stroke||0;to=R.getTotalLength(attrs.path)-from}else{from=0;to=R.getTotalLength(attrs.path)-(o._.arrows.enddx*stroke||0)}o._.arrows[se+"Path"]&&$(node,{d:R.getSubpath(attrs.path,from,to)});delete o._.arrows[se+"Path"];delete o._.arrows[se+"Marker"];delete o._.arrows[se+"dx"];delete o._.arrows[se+"Type"];delete o._.arrows[se+"String"]}for(attr in markerCounter)if(markerCounter[has](attr)&&!markerCounter[attr]){var item= 452R._g.doc.getElementById(attr);item&&item.parentNode.removeChild(item)}}},dasharray={"":[0],"none":[0],"-":[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]},addDashes=function(o,value,params){value=dasharray[Str(value).toLowerCase()];if(value){var width=o.attrs["stroke-width"]||"1",butt={round:width,square:width,butt:0}[o.attrs["stroke-linecap"]||params["stroke-linecap"]]||0,dashes=[],i=value.length;while(i--)dashes[i]= 453value[i]*width+(i%2?1:-1)*butt;$(o.node,{"stroke-dasharray":dashes.join(",")})}},setFillAndStroke=function(o,params){var node=o.node,attrs=o.attrs,vis=node.style.visibility;node.style.visibility="hidden";for(var att in params)if(params[has](att)){if(!R._availableAttrs[has](att))continue;var value=params[att];attrs[att]=value;switch(att){case "blur":o.blur(value);break;case "title":var title=node.getElementsByTagName("title");if(title.length&&(title=title[0]))title.firstChild.nodeValue=value;else{title= 454$("title");var val=R._g.doc.createTextNode(value);title.appendChild(val);node.appendChild(title)}break;case "href":case "target":var pn=node.parentNode;if(pn.tagName.toLowerCase()!="a"){var hl=$("a");pn.insertBefore(hl,node);hl.appendChild(node);pn=hl}if(att=="target")pn.setAttributeNS(xlink,"show",value=="blank"?"new":value);else pn.setAttributeNS(xlink,att,value);break;case "cursor":node.style.cursor=value;break;case "transform":o.transform(value);break;case "arrow-start":addArrow(o,value);break; 455case "arrow-end":addArrow(o,value,1);break;case "clip-rect":var rect=Str(value).split(separator);if(rect.length==4){o.clip&&o.clip.parentNode.parentNode.removeChild(o.clip.parentNode);var el=$("clipPath"),rc=$("rect");el.id=R.createUUID();$(rc,{x:rect[0],y:rect[1],width:rect[2],height:rect[3]});el.appendChild(rc);o.paper.defs.appendChild(el);$(node,{"clip-path":"url(#"+el.id+")"});o.clip=rc}if(!value){var path=node.getAttribute("clip-path");if(path){var clip=R._g.doc.getElementById(path.replace(/(^url\(#|\)$)/g, 456E));clip&&clip.parentNode.removeChild(clip);$(node,{"clip-path":E});delete o.clip}}break;case "path":if(o.type=="path"){$(node,{d:value?attrs.path=R._pathToAbsolute(value):"M0,0"});o._.dirty=1;if(o._.arrows){"startString"in o._.arrows&&addArrow(o,o._.arrows.startString);"endString"in o._.arrows&&addArrow(o,o._.arrows.endString,1)}}break;case "width":node.setAttribute(att,value);o._.dirty=1;if(attrs.fx){att="x";value=attrs.x}else break;case "x":if(attrs.fx)value=-attrs.x-(attrs.width||0);case "rx":if(att== 457"rx"&&o.type=="rect")break;case "cx":node.setAttribute(att,value);o.pattern&&updatePosition(o);o._.dirty=1;break;case "height":node.setAttribute(att,value);o._.dirty=1;if(attrs.fy){att="y";value=attrs.y}else break;case "y":if(attrs.fy)value=-attrs.y-(attrs.height||0);case "ry":if(att=="ry"&&o.type=="rect")break;case "cy":node.setAttribute(att,value);o.pattern&&updatePosition(o);o._.dirty=1;break;case "r":if(o.type=="rect")$(node,{rx:value,ry:value});else node.setAttribute(att,value);o._.dirty=1;break; 458case "src":if(o.type=="image")node.setAttributeNS(xlink,"href",value);break;case "stroke-width":if(o._.sx!=1||o._.sy!=1)value/=mmax(abs(o._.sx),abs(o._.sy))||1;if(o.paper._vbSize)value*=o.paper._vbSize;node.setAttribute(att,value);if(attrs["stroke-dasharray"])addDashes(o,attrs["stroke-dasharray"],params);if(o._.arrows){"startString"in o._.arrows&&addArrow(o,o._.arrows.startString);"endString"in o._.arrows&&addArrow(o,o._.arrows.endString,1)}break;case "stroke-dasharray":addDashes(o,value,params); 459break;case "fill":var isURL=Str(value).match(R._ISURL);if(isURL){el=$("pattern");var ig=$("image");el.id=R.createUUID();$(el,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});$(ig,{x:0,y:0,"xlink:href":isURL[1]});
459el.appendChild(ig);(function(el){R._preload(isURL[1],function(){var w=this.offsetWidth,h=this.offsetHeight;$(el,{width:w,height:h});$(ig,{width:w,height:h});o.paper.safari()})})(el);o.paper.defs.appendChild(el);$(node,{fill:"url(#"+el.id+")"});o.pattern=el;o.pattern&&updatePosition(o); 460break}var clr=R.getRGB(value);if(!clr.error){delete params.gradient;delete attrs.gradient;!R.is(attrs.opacity,"undefined")&&R.is(params.opacity,"undefined")&&$(node,{opacity:attrs.opacity});!R.is(attrs["fill-opacity"],"undefined")&&R.is(params["fill-opacity"],"undefined")&&$(node,{"fill-opacity":attrs["fill-opacity"]})}else if((o.type=="circle"||o.type=="ellipse"||Str(value).charAt()!="r")&&addGradientFill(o,value)){if("opacity"in attrs||"fill-opacity"in attrs){var gradient=R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g, 461E));if(gradient){var stops=gradient.getElementsByTagName("stop");$(stops[stops.length-1],{"stop-opacity":("opacity"in attrs?attrs.opacity:1)*("fill-opacity"in attrs?attrs["fill-opacity"]:1)})}}attrs.gradient=value;attrs.fill="none";break}clr[has]("opacity")&&$(node,{"fill-opacity":clr.opacity>1?clr.opacity/100:clr.opacity});case "stroke":clr=R.getRGB(value);node.setAttribute(att,clr.hex);att=="stroke"&&clr[has]("opacity")&&$(node,{"stroke-opacity":clr.opacity>1?clr.opacity/100:clr.opacity});if(att== 462"stroke"&&o._.arrows){"startString"in o._.arrows&&addArrow(o,o._.arrows.startString);"endString"in o._.arrows&&addArrow(o,o._.arrows.endString,1)}break;case "gradient":(o.type=="circle"||o.type=="ellipse"||Str(value).charAt()!="r")&&addGradientFill(o,value);break;case "opacity":if(attrs.gradient&&!attrs[has]("stroke-opacity"))$(node,{"stroke-opacity":value>1?value/100:value});case "fill-opacity":if(attrs.gradient){gradient=R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g,E)); 463if(gradient){stops=gradient.getElementsByTagName("stop");$(stops[stops.length-1],{"stop-opacity":value})}break}default:att=="font-size"&&(value=toInt(value,10)+"px");var cssrule=att.replace(/(\-.)/g,function(w){return w.substring(1).toUpperCase()});node.style[cssrule]=value;o._.dirty=1;node.setAttribute(att,value);break}}tuneText(o,params);node.style.visibility=vis},leading=1.2,tuneText=function(el,params){if(el.type!="text"||!(params[has]("text")||params[has]("font")||params[has]("font-size")||params[has]("x")|| 464params[has]("y")))return;var a=el.attrs,node=el.node,fontSize=node.firstChild?toInt(R._g.doc.defaultView.getComputedStyle(node.firstChild,E).getPropertyValue("font-size"),10):10;if(params[has]("text")){a.text=params.text;while(node.firstChild)node.removeChild(node.firstChild);var texts=Str(params.text).split("\n"),tspans=[],tspan;for(var i=0,ii=texts.length;i<ii;i++){tspan=$("tspan");i&&$(tspan,{dy:fontSize*leading,x:a.x});tspan.appendChild(R._g.doc.createTextNode(texts[i]));node.appendChild(tspan); 465tspans[i]=tspan}}else{tspans=node.getElementsByTagName("tspan");for(i=0,ii=tspans.length;i<ii;i++)if(i)$(tspans[i],{dy:fontSize*leading,x:a.x});else $(tspans[0],{dy:0})}$(node,{x:a.x,y:a.y});el._.dirty=1;var bb=el._getBBox(),dif=a.y-(bb.y+bb.height/2);dif&&R.is(dif,"finite")&&$(tspans[0],{dy:dif})},Element=function(node,svg){var X=0,Y=0;this[0]=this.node=node;node.raphael=true;this.id=R._oid++;node.raphaelid=this.id;this.matrix=R.matrix();this.realPath=null;this.paper=svg;this.attrs=this.attrs||{}; 466this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};!svg.bottom&&(svg.bottom=this);this.prev=svg.top;svg.top&&(svg.top.next=this);svg.top=this;this.next=null},elproto=R.el;Element.prototype=elproto;elproto.constructor=Element;R._engine.path=function(pathString,SVG){var el=$("path");SVG.canvas&&SVG.canvas.appendChild(el);var p=new Element(el,SVG);p.type="path";setFillAndStroke(p,{fill:"none",stroke:"#000",path:pathString});return p};elproto.rotate=function(deg,cx,cy){if(this.removed)return this; 467deg=Str(deg).split(separator);if(deg.length-1){cx=toFloat(deg[1]);cy=toFloat(deg[2])}deg=toFloat(deg[0]);cy==null&&(cx=cy);if(cx==null||cy==null){var bbox=this.getBBox(1);cx=bbox.x+bbox.width/2;cy=bbox.y+bbox.height/2}this.transform(this._.transform.concat([["r",deg,cx,cy]]));return this};elproto.scale=function(sx,sy,cx,cy){if(this.removed)return this;sx=Str(sx).split(separator);if(sx.length-1){sy=toFloat(sx[1]);cx=toFloat(sx[2]);cy=toFloat(sx[3])}sx=toFloat(sx[0]);sy==null&&(sy=sx);cy==null&&(cx= 468cy);if(cx==null||cy==null)var bbox=this.getBBox(1);cx=cx==null?bbox.x+bbox.width/2:cx;cy=cy==null?bbox.y+bbox.height/2:cy;this.transform(this._.transform.concat([["s",sx,sy,cx,cy]]));return this};elproto.translate=function(dx,dy){if(this.removed)return this;dx=Str(dx).split(separator);if(dx.length-1)dy=toFloat(dx[1]);dx=toFloat(dx[0])||0;dy=+dy||0;this.transform(this._.transform.concat([["t",dx,dy]]));return this};elproto.transform=function(tstr){var _=this._;if(tstr==null)return _.transform;R._extractTransform(this, 469tstr);this.clip&&$(this.clip,{transform:this.matrix.invert()});this.pattern&&updatePosition(this);this.node&&$(this.node,{transform:this.matrix});if(_.sx!=1||_.sy!=1){var sw=this.attrs[has]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":sw})}return this};elproto.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};elproto.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};elproto.remove=function(){if(this.removed|| 470!this.node.parentNode)return;var paper=this.paper;paper.__set__&&paper.__set__.exclude(this);
470eve.unbind("raphael.*.*."+this.id);if(this.gradient)paper.defs.removeChild(this.gradient);R._tear(this,paper);if(this.node.parentNode.tagName.toLowerCase()=="a")this.node.parentNode.parentNode.removeChild(this.node.parentNode);else this.node.parentNode.removeChild(this.node);for(var i in this)this[i]=typeof this[i]=="function"?R._removedFactory(i):null;this.removed=true};elproto._getBBox=function(){if(this.node.style.display== 471"none"){this.show();var hide=true}var bbox={};try{bbox=this.node.getBBox()}catch(e){}finally{bbox=bbox||{}}hide&&this.hide();return bbox};elproto.attr=function(name,value){if(this.removed)return this;if(name==null){var res={};for(var a in this.attrs)if(this.attrs[has](a))res[a]=this.attrs[a];res.gradient&&res.fill=="none"&&(res.fill=res.gradient)&&delete res.gradient;res.transform=this._.transform;return res}if(value==null&&R.is(name,"string")){if(name=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient; 472if(name=="transform")return this._.transform;var names=name.split(separator),out={};for(var i=0,ii=names.length;i<ii;i++){name=names[i];if(name in this.attrs)out[name]=this.attrs[name];else if(R.is(this.paper.customAttributes[name],"function"))out[name]=this.paper.customAttributes[name].def;else out[name]=R._availableAttrs[name]}return ii-1?out:out[names[0]]}if(value==null&&R.is(name,"array")){out={};for(i=0,ii=name.length;i<ii;i++)out[name[i]]=this.attr(name[i]);return out}if(value!=null){var params= 473{};params[name]=value}else if(name!=null&&R.is(name,"object"))params=name;for(var key in params)eve("raphael.attr."+key+"."+this.id,this,params[key]);for(key in this.paper.customAttributes)if(this.paper.customAttributes[has](key)&¶ms[has](key)&&R.is(this.paper.customAttributes[key],"function")){var par=this.paper.customAttributes[key].apply(this,[].concat(params[key]));this.attrs[key]=params[key];for(var subkey in par)if(par[has](subkey))params[subkey]=par[subkey]}setFillAndStroke(this,params); 474return this};elproto.toFront=function(){if(this.removed)return this;if(this.node.parentNode.tagName.toLowerCase()=="a")this.node.parentNode.parentNode.appendChild(this.node.parentNode);else this.node.parentNode.appendChild(this.node);var svg=this.paper;svg.top!=this&&R._tofront(this,svg);return this};elproto.toBack=function(){if(this.removed)return this;var parent=this.node.parentNode;if(parent.tagName.toLowerCase()=="a")parent.parentNode.insertBefore(this.node.parentNode,this.node.parentNode.parentNode.firstChild); 475else if(parent.firstChild!=this.node)parent.insertBefore(this.node,this.node.parentNode.firstChild);R._toback(this,this.paper);var svg=this.paper;return this};elproto.insertAfter=function(element){if(this.removed)return this;var node=element.node||element[element.length-1].node;if(node.nextSibling)node.parentNode.insertBefore(this.node,node.nextSibling);else node.parentNode.appendChild(this.node);R._insertafter(this,element,this.paper);return this};elproto.insertBefore=function(element){if(this.removed)return this; 476var node=element.node||element[0].node;node.parentNode.insertBefore(this.node,node);R._insertbefore(this,element,this.paper);return this};elproto.blur=function(size){var t=this;if(+size!==0){var fltr=$("filter"),blur=$("feGaussianBlur");t.attrs.blur=size;fltr.id=R.createUUID();$(blur,{stdDeviation:+size||1.5});fltr.appendChild(blur);t.paper.defs.appendChild(fltr);t._blur=fltr;$(t.node,{filter:"url(#"+fltr.id+")"})}else{if(t._blur){t._blur.parentNode.removeChild(t._blur);delete t._blur;delete t.attrs.blur}t.node.removeAttribute("filter")}return t}; 477R._engine.circle=function(svg,x,y,r){var el=$("circle");svg.canvas&&svg.canvas.appendChild(el);var res=new Element(el,svg);res.attrs={cx:x,cy:y,r:r,fill:"none",stroke:"#000"};res.type="circle";$(el,res.attrs);return res};R._engine.rect=function(svg,x,y,w,h,r){var el=$("rect");svg.canvas&&svg.canvas.appendChild(el);var res=new Element(el,svg);res.attrs={x:x,y:y,width:w,height:h,r:r||0,rx:r||0,ry:r||0,fill:"none",stroke:"#000"};res.type="rect";$(el,res.attrs);return res};R._engine.ellipse=function(svg, 478x,y,rx,ry){var el=$("ellipse");svg.canvas&&svg.canvas.appendChild(el);var res=new Element(el,svg);res.attrs={cx:x,cy:y,rx:rx,ry:ry,fill:"none",stroke:"#000"};res.type="ellipse";$(el,res.attrs);return res};R._engine.image=function(svg,src,x,y,w,h){var el=$("image");$(el,{x:x,y:y,width:w,height:h,preserveAspectRatio:"none"});el.setAttributeNS(xlink,"href",src);svg.canvas&&svg.canvas.appendChild(el);var res=new Element(el,svg);res.attrs={x:x,y:y,width:w,height:h,src:src};res.type="image";return res}; 479R._engine.text=function(svg,x,y,text){var el=$("text");svg.canvas&&svg.canvas.appendChild(el);var res=new Element(el,svg);res.attrs={x:x,y:y,"text-anchor":"middle",text:text,font:R._availableAttrs.font,stroke:"none",fill:"#000"};res.type="text";setFillAndStroke(res,res.attrs);return res};R._engine.setSize=function(width,height){this.width=width||this.width;this.height=height||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);if(this._viewBox)this.setViewBox.apply(this, 480this._viewBox);return this};R._engine.create=function(){var con=R._getContainer.apply(0,arguments),container=con&&con.container,x=con.x,y=con.y,width=con.width,height=con.height;if(!container)throw new Error("SVG container not found.");var cnvs=$("svg"),css="overflow:hidden;",isFloating;x=x||0;y=y||0;width=width||512;height=height||342;$(cnvs,{height:height,version:1.1,width:width,xmlns:"http://www.w3.org/2000/svg"});if(container==1){cnvs.style.cssText=css+"position:absolute;
480left:"+x+"px;top:"+y+ 481"px";R._g.doc.body.appendChild(cnvs);isFloating=1}else{cnvs.style.cssText=css+"position:relative";if(container.firstChild)container.insertBefore(cnvs,container.firstChild);else container.appendChild(cnvs)}container=new R._Paper;container.width=width;container.height=height;container.canvas=cnvs;container.clear();container._left=container._top=0;isFloating&&(container.renderfix=function(){});container.renderfix();return container};R._engine.setViewBox=function(x,y,w,h,fit){eve("raphael.setViewBox", 482this,this._viewBox,[x,y,w,h,fit]);var size=mmax(w/this.width,h/this.height),top=this.top,aspectRatio=fit?"xMidYMid meet":"xMinYMin",vb,sw;if(x==null){if(this._vbSize)size=1;delete this._vbSize;vb="0 0 "+this.width+S+this.height}else{this._vbSize=size;vb=x+S+y+S+w+S+h}$(this.canvas,{viewBox:vb,preserveAspectRatio:aspectRatio});while(size&&top){sw="stroke-width"in top.attrs?top.attrs["stroke-width"]:1;top.attr({"stroke-width":sw});top._.dirty=1;top._.dirtyT=1;top=top.prev}this._viewBox=[x,y,w,h,!!fit]; 483return this};R.prototype.renderfix=function(){var cnvs=this.canvas,s=cnvs.style,pos;try{pos=cnvs.getScreenCTM()||cnvs.createSVGMatrix()}catch(e){pos=cnvs.createSVGMatrix()}var left=-pos.e%1,top=-pos.f%1;if(left||top){if(left){this._left=(this._left+left)%1;s.left=this._left+"px"}if(top){this._top=(this._top+top)%1;s.top=this._top+"px"}}};R.prototype.clear=function(){R.eve("raphael.clear",this);var c=this.canvas;while(c.firstChild)c.removeChild(c.firstChild);this.bottom=this.top=null;(this.desc=$("desc")).appendChild(R._g.doc.createTextNode("Created with Raphaël "+ 484R.version));c.appendChild(this.desc);c.appendChild(this.defs=$("defs"))};R.prototype.remove=function(){eve("raphael.remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var i in this)this[i]=typeof this[i]=="function"?R._removedFactory(i):null};var setproto=R.st;for(var method in elproto)if(elproto[has](method)&&!setproto[has](method))setproto[method]=function(methodname){return function(){var arg=arguments;return this.forEach(function(el){el[methodname].apply(el, 485arg)})}}(method)})();(function(){if(!R.vml)return;var has="hasOwnProperty",Str=String,toFloat=parseFloat,math=Math,round=math.round,mmax=math.max,mmin=math.min,abs=math.abs,fillString="fill",separator=/[, ]+/,eve=R.eve,ms=" progid:DXImageTransform.Microsoft",S=" ",E="",map={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},bites=/([clmz]),?([^clmz]*)/gi,blurregexp=/ progid:\S+Blur\([^\)]+\)/g,val=/-?[^,\s-]+/g,cssDot="position:absolute;left:0;top:0;width:1px;height:1px",zoom=21600,pathTypes={path:1, 486rect:1,image:1},ovalTypes={circle:1,ellipse:1},path2vml=function(path){var total=/[ahqstv]/ig,command=R._pathToAbsolute;Str(path).match(total)&&(command=R._path2curve);total=/[clmz]/g;if(command==R._pathToAbsolute&&!Str(path).match(total)){var res=Str(path).replace(bites,function(all,command,args){var vals=[],isMove=command.toLowerCase()=="m",res=map[command];args.replace(val,function(value){if(isMove&&vals.length==2){res+=vals+map[command=="m"?"l":"L"];vals=[]}vals.push(round(value*zoom))});return res+ 487vals});return res}var pa=command(path),p,r;res=[];for(var i=0,ii=pa.length;i<ii;i++){p=pa[i];r=pa[i][0].toLowerCase();r=="z"&&(r="x");for(var j=1,jj=p.length;j<jj;j++)r+=round(p[j]*zoom)+(j!=jj-1?",":E);res.push(r)}return res.join(S)},compensation=function(deg,dx,dy){var m=R.matrix();m.rotate(-deg,.5,.5);return{dx:m.x(dx,dy),dy:m.y(dx,dy)}},setCoords=function(p,sx,sy,dx,dy,deg){var _=p._,m=p.matrix,fillpos=_.fillpos,o=p.node,s=o.style,y=1,flip="",dxdy,kx=zoom/sx,ky=zoom/sy;s.visibility="hidden";if(!sx|| 488!sy)return;o.coordsize=abs(kx)+S+abs(ky);s.rotation=deg*(sx*sy<0?-1:1);if(deg){var c=compensation(deg,dx,dy);dx=c.dx;dy=c.dy}sx<0&&(flip+="x");sy<0&&(flip+=" y")&&(y=-1);s.flip=flip;o.coordorigin=dx*-kx+S+dy*-ky;if(fillpos||_.fillsize){var fill=o.getElementsByTagName(fillString);fill=fill&&fill[0];o.removeChild(fill);if(fillpos){c=compensation(deg,m.x(fillpos[0],fillpos[1]),m.y(fillpos[0],fillpos[1]));fill.position=c.dx*y+S+c.dy*y}
488if(_.fillsize)fill.size=_.fillsize[0]*abs(sx)+S+_.fillsize[1]*abs(sy); 489o.appendChild(fill)}s.visibility="visible"};R.toString=function(){return"Your browser doesnât support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var addArrow=function(o,value,isEnd){var values=Str(value).toLowerCase().split("-"),se=isEnd?"end":"start",i=values.length,type="classic",w="medium",h="medium";while(i--)switch(values[i]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":type=values[i];break;case "wide":case "narrow":h=values[i];break; 490case "long":case "short":w=values[i];break}var stroke=o.node.getElementsByTagName("stroke")[0];stroke[se+"arrow"]=type;stroke[se+"arrowlength"]=w;stroke[se+"arrowwidth"]=h},setFillAndStroke=function(o,params){o.attrs=o.attrs||{};var node=o.node,a=o.attrs,s=node.style,xy,newpath=pathTypes[o.type]&&(params.x!=a.x||params.y!=a.y||params.width!=a.width||params.height!=a.height||params.cx!=a.cx||params.cy!=a.cy||params.rx!=a.rx||params.ry!=a.ry||params.r!=a.r),isOval=ovalTypes[o.type]&&(a.cx!=params.cx|| 491a.cy!=params.cy||a.r!=params.r||a.rx!=params.rx||a.ry!=params.ry),res=o;for(var par in params)if(params[has](par))a[par]=params[par];if(newpath){a.path=R._getPath[o.type](o);o._.dirty=1}params.href&&(node.href=params.href);params.title&&(node.title=params.title);params.target&&(node.target=params.target);params.cursor&&(s.cursor=params.cursor);"blur"in params&&o.blur(params.blur);if(params.path&&o.type=="path"||newpath){node.path=path2vml(~Str(a.path).toLowerCase().indexOf("r")?R._pathToAbsolute(a.path): 492a.path);if(o.type=="image"){o._.fillpos=[a.x,a.y];o._.fillsize=[a.width,a.height];setCoords(o,1,1,0,0,0)}}"transform"in params&&o.transform(params.transform);if(isOval){var cx=+a.cx,cy=+a.cy,rx=+a.rx||+a.r||0,ry=+a.ry||+a.r||0;node.path=R.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",round((cx-rx)*zoom),round((cy-ry)*zoom),round((cx+rx)*zoom),round((cy+ry)*zoom),round(cx*zoom));o._.dirty=1}if("clip-rect"in params){var rect=Str(params["clip-rect"]).split(separator);if(rect.length==4){rect[2]=+rect[2]+ 493+rect[0];rect[3]=+rect[3]+ +rect[1];var div=node.clipRect||R._g.doc.createElement("div"),dstyle=div.style;dstyle.clip=R.format("rect({1}px {2}px {3}px {0}px)",rect);if(!node.clipRect){dstyle.position="absolute";dstyle.top=0;dstyle.left=0;dstyle.width=o.paper.width+"px";dstyle.height=o.paper.height+"px";node.parentNode.insertBefore(div,node);div.appendChild(node);node.clipRect=div}}if(!params["clip-rect"])node.clipRect&&(node.clipRect.style.clip="auto")}if(o.textpath){var textpathStyle=o.textpath.style; 494params.font&&(textpathStyle.font=params.font);params["font-family"]&&(textpathStyle.fontFamily='"'+params["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,E)+'"');params["font-size"]&&(textpathStyle.fontSize=params["font-size"]);params["font-weight"]&&(textpathStyle.fontWeight=params["font-weight"]);params["font-style"]&&(textpathStyle.fontStyle=params["font-style"])}if("arrow-start"in params)addArrow(res,params["arrow-start"]);if("arrow-end"in params)addArrow(res,params["arrow-end"],1);if(params.opacity!= 495null||params["stroke-width"]!=null||params.fill!=null||params.src!=null||params.stroke!=null||params["stroke-width"]!=null||params["stroke-opacity"]!=null||params["fill-opacity"]!=null||params["stroke-dasharray"]!=null||params["stroke-miterlimit"]!=null||params["stroke-linejoin"]!=null||params["stroke-linecap"]!=null){var fill=node.getElementsByTagName(fillString),newfill=false;fill=fill&&fill[0];!fill&&(newfill=fill=createNode(fillString));if(o.type=="image"&¶ms.src)fill.src=params.src;params.fill&& 496(fill.on=true);if(fill.on==null||params.fill=="none"||params.fill===null)fill.on=false;if(fill.on&¶ms.fill){var isURL=Str(params.fill).match(R._ISURL);if(isURL){fill.parentNode==node&&node.removeChild(fill);fill.rotate=true;fill.src=isURL[1];fill.type="tile";var bbox=o.getBBox(1);fill.position=bbox.x+S+bbox.y;o._.fillpos=[bbox.x,bbox.y];R._preload(isURL[1],function(){o._.fillsize=[this.offsetWidth,this.offsetHeight]})}else{fill.color=R.getRGB(params.fill).hex;fill.src=E;fill.type="solid";if(R.getRGB(params.fill).error&& 497(res.type in{circle:1,ellipse:1}||Str(params.fill).charAt()!="r")&&addGradientFill(res,params.fill,fill)){a.fill="none";a.gradient=params.fill;fill.rotate=false}}}if("fill-opacity"in params||"opacity"in params){var opacity=((+a["fill-opacity"]+1||2)-1)*((+a.opacity+1||2)-1)*((+R.getRGB(params.fill).o+1||2)-1);opacity=mmin(mmax(opacity,0),1);fill.opacity=opacity;if(fill.src)fill.color="none"}node.appendChild(fill);var stroke=node.getElementsByTagName("stroke")&&node.getElementsByTagName("stroke")[0], 498newstroke=false;!stroke&&(newstroke=stroke=createNode("stroke"));if(params.stroke&¶ms.stroke!="none"||params["stroke-width"]||params["stroke-opacity"]!=null||params["stroke-dasharray"]||params["stroke-miterlimit"]||params["stroke-linejoin"]||params["stroke-linecap"])stroke.on=true;(params.stroke=="none"||params.stroke===null||stroke.on==null||params.stroke==0||params["stroke-width"]==0)&&(stroke.on=false);var strokeColor=R.getRGB(params.stroke);stroke.on&¶ms.stroke&&(stroke.color=strokeColor.hex); 499opacity=((+a["stroke-opacity"]+1||2)-1)*((+a.opacity+1||2)-1)*((+strokeColor.o+1||2)-1);var width=(toFloat(params["stroke-width"])||1)*.75;opacity=mmin(mmax(opacity,0),1);params["stroke-width"]==null&&(width=a["stroke-width"]);params["stroke-width"]&&(stroke.weight=width);width&&width<1&&(opacity*=width)&&(stroke.weight=1);stroke.opacity=opacity;params["stroke-linejoin"]&&(stroke.joinstyle=params["stroke-linejoin"]||"miter");stroke.miterlimit=params["stroke-miterlimit"]||8;params["stroke-linecap"]&& 500(stroke.endcap=params["stroke-linecap"]=="butt"?"flat":params["stroke-linecap"]=="square"?"square":"round");if("stroke-dasharray"in params){var dasharray={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};stroke.dashstyle=dasharray[has](params["stroke-dasharray"])?dasharray[params["stroke-dasharray"]]:E}newstroke&&node.appendChild(stroke)}if(res.type=="text"){res.paper.canvas.style.display= 501E;var span=res.paper.span,m=100,fontSize=a.font&&a.font.match(/\d+(?:\.\d*)?(?=px)/);s=span.style;a.font&&(s.font=a.font);a["font-family"]&&(s.fontFamily=a["font-family"]);a["font-weight"]&&(s.fontWeight=a["font-weight"]);a["font-style"]&&(s.fontStyle=a["font-style"]);fontSize=toFloat(a["font-size"]||fontSize&&fontSize[0])||10;s.fontSize=fontSize*m+"px";res.textpath.string&&(span.innerHTML=Str(res.textpath.string).replace(/</g,"\x26#60;").replace(/&/g,"\x26#38;").replace(/\n/g,"\x3cbr\x3e"));var brect= 502span.getBoundingClientRect();res.W=a.w=(brect.right-brect.left)/m;res.H=a.h=(brect.bottom-brect.top)/m;res.X=a.x;res.Y=a.y+res.H/2;("x"in params||"y"in params)&&(res.path.v=R.format("m{0},{1}l{2},{1}",round(a.x*zoom),round(a.y*zoom),round(a.x*zoom)+1));var dirtyattrs=["x","y","text","font","font-family","font-weight","font-style","font-size"];for(var d=0,dd=dirtyattrs.length;d<dd;
502d++)if(dirtyattrs[d]in params){res._.dirty=1;break}switch(a["text-anchor"]){case "start":res.textpath.style["v-text-align"]= 503"left";res.bbx=res.W/2;break;case "end":res.textpath.style["v-text-align"]="right";res.bbx=-res.W/2;break;default:res.textpath.style["v-text-align"]="center";res.bbx=0;break}res.textpath.style["v-text-kern"]=true}},addGradientFill=function(o,gradient,fill){o.attrs=o.attrs||{};var attrs=o.attrs,pow=Math.pow,opacity,oindex,type="linear",fxfy=".5 .5";o.attrs.gradient=gradient;gradient=Str(gradient).replace(R._radial_gradient,function(all,fx,fy){type="radial";if(fx&&fy){fx=toFloat(fx);fy=toFloat(fy); 504pow(fx-.5,2)+pow(fy-.5,2)>.25&&(fy=math.sqrt(.25-pow(fx-.5,2))*((fy>.5)*2-1)+.5);fxfy=fx+S+fy}return E});gradient=gradient.split(/\s*\-\s*/);if(type=="linear"){var angle=gradient.shift();angle=-toFloat(angle);if(isNaN(angle))return null}var dots=R._parseDots(gradient);if(!dots)return null;o=o.shape||o.node;if(dots.length){o.removeChild(fill);fill.on=true;fill.method="none";fill.color=dots[0].color;fill.color2=dots[dots.length-1].color;var clrs=[];for(var i=0,ii=dots.length;i<ii;i++)dots[i].offset&& 505clrs.push(dots[i].offset+S+dots[i].color);fill.colors=clrs.length?clrs.join():"0% "+fill.color;if(type=="radial"){fill.type="gradientTitle";fill.focus="100%";fill.focussize="0 0";fill.focusposition=fxfy;fill.angle=0}else{fill.type="gradient";fill.angle=(270-angle)%360}o.appendChild(fill)}return 1},Element=function(node,vml){this[0]=this.node=node;node.raphael=true;this.id=R._oid++;node.raphaelid=this.id;this.X=0;this.Y=0;this.attrs={};this.paper=vml;this.matrix=R.matrix();this._={transform:[],sx:1, 506sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};!vml.bottom&&(vml.bottom=this);this.prev=vml.top;vml.top&&(vml.top.next=this);vml.top=this;this.next=null};var elproto=R.el;Element.prototype=elproto;elproto.constructor=Element;elproto.transform=function(tstr){if(tstr==null)return this._.transform;var vbs=this.paper._viewBoxShift,vbt=vbs?"s"+[vbs.scale,vbs.scale]+"-1-1t"+[vbs.dx,vbs.dy]:E,oldt;if(vbs)oldt=tstr=Str(tstr).replace(/\.{3}|\u2026/g,this._.transform||E);R._extractTransform(this,vbt+tstr);var matrix= 507this.matrix.clone(),skew=this.skew,o=this.node,split,isGrad=~Str(this.attrs.fill).indexOf("-"),isPatt=!Str(this.attrs.fill).indexOf("url(");matrix.translate(1,1);if(isPatt||isGrad||this.type=="image"){skew.matrix="1 0 0 1";skew.offset="0 0";split=matrix.split();if(isGrad&&split.noRotation||!split.isSimple){o.style.filter=matrix.toFilter();var bb=this.getBBox(),bbt=this.getBBox(1),dx=bb.x-bbt.x,dy=bb.y-bbt.y;o.coordorigin=dx*-zoom+S+dy*-zoom;setCoords(this,1,1,dx,dy,0)}else{o.style.filter=E;setCoords(this, 508split.scalex,split.scaley,split.dx,split.dy,split.rotate)}}else{o.style.filter=E;skew.matrix=Str(matrix);skew.offset=matrix.offset()}oldt&&(this._.transform=oldt);return this};elproto.rotate=function(deg,cx,cy){if(this.removed)return this;if(deg==null)return;deg=Str(deg).split(separator);if(deg.length-1){cx=toFloat(deg[1]);cy=toFloat(deg[2])}deg=toFloat(deg[0]);cy==null&&(cx=cy);if(cx==null||cy==null){var bbox=this.getBBox(1);cx=bbox.x+bbox.width/2;cy=bbox.y+bbox.height/2}this._.dirtyT=1;this.transform(this._.transform.concat([["r", 509deg,cx,cy]]));return this};elproto.translate=function(dx,dy){if(this.removed)return this;dx=Str(dx).split(separator);if(dx.length-1)dy=toFloat(dx[1]);dx=toFloat(dx[0])||0;dy=+dy||0;if(this._.bbox){this._.bbox.x+=dx;this._.bbox.y+=dy}this.transform(this._.transform.concat([["t",dx,dy]]));return this};elproto.scale=function(sx,sy,cx,cy){if(this.removed)return this;sx=Str(sx).split(separator);if(sx.length-1){sy=toFloat(sx[1]);cx=toFloat(sx[2]);cy=toFloat(sx[3]);isNaN(cx)&&(cx=null);isNaN(cy)&&(cy=null)}sx= 510toFloat(sx[0]);sy==null&&(sy=sx);cy==null&&(cx=cy);if(cx==null||cy==null)var bbox=this.getBBox(1);cx=cx==null?bbox.x+bbox.width/2:cx;cy=cy==null?bbox.y+bbox.height/2:cy;this.transform(this._.transform.concat([["s",sx,sy,cx,cy]]));this._.dirtyT=1;return this};elproto.hide=function(){!this.removed&&(this.node.style.display="none");return this};elproto.show=function(){!this.removed&&(this.node.style.display=E);return this};elproto._getBBox=function(){if(this.removed)return{};return{x:this.X+(this.bbx|| 5110)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}};elproto.remove=function(){if(this.removed||!this.node.parentNode)return;this.paper.__set__&&this.paper.__set__.exclude(this);
511R.eve.unbind("raphael.*.*."+this.id);R._tear(this,this.paper);this.node.parentNode.removeChild(this.node);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var i in this)this[i]=typeof this[i]=="function"?R._removedFactory(i):null;this.removed=true};elproto.attr=function(name,value){if(this.removed)return this; 512if(name==null){var res={};for(var a in this.attrs)if(this.attrs[has](a))res[a]=this.attrs[a];res.gradient&&res.fill=="none"&&(res.fill=res.gradient)&&delete res.gradient;res.transform=this._.transform;return res}if(value==null&&R.is(name,"string")){if(name==fillString&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;var names=name.split(separator),out={};for(var i=0,ii=names.length;i<ii;i++){name=names[i];if(name in this.attrs)out[name]=this.attrs[name];else if(R.is(this.paper.customAttributes[name], 513"function"))out[name]=this.paper.customAttributes[name].def;else out[name]=R._availableAttrs[name]}return ii-1?out:out[names[0]]}if(this.attrs&&value==null&&R.is(name,"array")){out={};for(i=0,ii=name.length;i<ii;i++)out[name[i]]=this.attr(name[i]);return out}var params;if(value!=null){params={};params[name]=value}value==null&&R.is(name,"object")&&(params=name);for(var key in params)eve("raphael.attr."+key+"."+this.id,this,params[key]);if(params){for(key in this.paper.customAttributes)if(this.paper.customAttributes[has](key)&& 514params[has](key)&&R.is(this.paper.customAttributes[key],"function")){var par=this.paper.customAttributes[key].apply(this,[].concat(params[key]));this.attrs[key]=params[key];for(var subkey in par)if(par[has](subkey))params[subkey]=par[subkey]}if(params.text&&this.type=="text")this.textpath.string=params.text;setFillAndStroke(this,params)}return this};elproto.toFront=function(){!this.removed&&this.node.parentNode.appendChild(this.node);this.paper&&this.paper.top!=this&&R._tofront(this,this.paper);return this}; 515elproto.toBack=function(){if(this.removed)return this;if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);R._toback(this,this.paper)}return this};elproto.insertAfter=function(element){if(this.removed)return this;if(element.constructor==R.st.constructor)element=element[element.length-1];if(element.node.nextSibling)element.node.parentNode.insertBefore(this.node,element.node.nextSibling);else element.node.parentNode.appendChild(this.node); 516R._insertafter(this,element,this.paper);return this};elproto.insertBefore=function(element){if(this.removed)return this;if(element.constructor==R.st.constructor)element=element[0];element.node.parentNode.insertBefore(this.node,element.node);R._insertbefore(this,element,this.paper);return this};elproto.blur=function(size){var s=this.node.runtimeStyle,f=s.filter;f=f.replace(blurregexp,E);if(+size!==0){this.attrs.blur=size;s.filter=f+S+ms+".Blur(pixelradius\x3d"+(+size||1.5)+")";s.margin=R.format("-{0}px 0 0 -{0}px", 517round(+size||1.5))}else{s.filter=f;s.margin=0;delete this.attrs.blur}return this};R._engine.path=function(pathString,vml){var el=createNode("shape");el.style.cssText=cssDot;el.coordsize=zoom+S+zoom;el.coordorigin=vml.coordorigin;var p=new Element(el,vml),attr={fill:"none",stroke:"#000"};pathString&&(attr.path=pathString);p.type="path";p.path=[];p.Path=E;setFillAndStroke(p,attr);vml.canvas.appendChild(el);var skew=createNode("skew");skew.on=true;el.appendChild(skew);p.skew=skew;p.transform(E);return p}; 518R._engine.rect=function(vml,x,y,w,h,r){var path=R._rectPath(x,y,w,h,r),res=vml.path(path),a=res.attrs;res.X=a.x=x;res.Y=a.y=y;res.W=a.width=w;res.H=a.height=h;a.r=r;a.path=path;res.type="rect";return res};R._engine.ellipse=function(vml,x,y,rx,ry){var res=vml.path(),a=res.attrs;res.X=x-rx;res.Y=y-ry;res.W=rx*2;res.H=ry*2;res.type="ellipse";setFillAndStroke(res,{cx:x,cy:y,rx:rx,ry:ry});return res};R._engine.circle=function(vml,x,y,r){var res=vml.path(),a=res.attrs;res.X=x-r;res.Y=y-r;res.W=res.H=r* 5192;res.type="circle";setFillAndStroke(res,{cx:x,cy:y,r:r});return res};R._engine.image=function(vml,src,x,y,w,h){var path=R._rectPath(x,y,w,h),res=vml.path(path).attr({stroke:"none"}),a=res.attrs,node=res.node,fill=node.getElementsByTagName(fillStr
519ing)[0];a.src=src;res.X=a.x=x;res.Y=a.y=y;res.W=a.width=w;res.H=a.height=h;a.path=path;res.type="image";fill.parentNode==node&&node.removeChild(fill);fill.rotate=true;fill.src=src;fill.type="tile";res._.fillpos=[x,y];res._.fillsize=[w,h];node.appendChild(fill); 520setCoords(res,1,1,0,0,0);return res};R._engine.text=function(vml,x,y,text){var el=createNode("shape"),path=createNode("path"),o=createNode("textpath");x=x||0;y=y||0;text=text||"";path.v=R.format("m{0},{1}l{2},{1}",round(x*zoom),round(y*zoom),round(x*zoom)+1);path.textpathok=true;o.string=Str(text);o.on=true;el.style.cssText=cssDot;el.coordsize=zoom+S+zoom;el.coordorigin="0 0";var p=new Element(el,vml),attr={fill:"#000",stroke:"none",font:R._availableAttrs.font,text:text};p.shape=el;p.path=path;p.textpath= 521o;p.type="text";p.attrs.text=Str(text);p.attrs.x=x;p.attrs.y=y;p.attrs.w=1;p.attrs.h=1;setFillAndStroke(p,attr);el.appendChild(o);el.appendChild(path);vml.canvas.appendChild(el);var skew=createNode("skew");skew.on=true;el.appendChild(skew);p.skew=skew;p.transform(E);return p};R._engine.setSize=function(width,height){var cs=this.canvas.style;this.width=width;this.height=height;width==+width&&(width+="px");height==+height&&(height+="px");cs.width=width;cs.height=height;cs.clip="rect(0 "+width+" "+height+ 522" 0)";if(this._viewBox)R._engine.setViewBox.apply(this,this._viewBox);return this};R._engine.setViewBox=function(x,y,w,h,fit){R.eve("raphael.setViewBox",this,this._viewBox,[x,y,w,h,fit]);var width=this.width,height=this.height,size=1/mmax(w/width,h/height),H,W;if(fit){H=height/h;W=width/w;if(w*H<width)x-=(width-w*H)/2/H;if(h*W<height)y-=(height-h*W)/2/W}this._viewBox=[x,y,w,h,!!fit];this._viewBoxShift={dx:-x,dy:-y,scale:size};this.forEach(function(el){el.transform("...")});return this};var createNode; 523R._engine.initWin=function(win){var doc=win.document;doc.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!doc.namespaces.rvml&&doc.namespaces.add("rvml","urn:schemas-microsoft-com:vml");createNode=function(tagName){return doc.createElement("\x3crvml:"+tagName+' class\x3d"rvml"\x3e')}}catch(e){createNode=function(tagName){return doc.createElement("\x3c"+tagName+' xmlns\x3d"urn:schemas-microsoft.com:vml" class\x3d"rvml"\x3e')}}};R._engine.initWin(R._g.win);R._engine.create=function(){var con= 524R._getContainer.apply(0,arguments),container=con.container,height=con.height,s,width=con.width,x=con.x,y=con.y;if(!container)throw new Error("VML container not found.");var res=new R._Paper,c=res.canvas=R._g.doc.createElement("div"),cs=c.style;x=x||0;y=y||0;width=width||512;height=height||342;res.width=width;res.height=height;width==+width&&(width+="px");height==+height&&(height+="px");res.coordsize=zoom*1E3+S+zoom*1E3;res.coordorigin="0 0";res.span=R._g.doc.createElement("span");res.span.style.cssText= 525"position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";c.appendChild(res.span);cs.cssText=R.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",width,height);if(container==1){R._g.doc.body.appendChild(c);cs.left=x+"px";cs.top=y+"px";cs.position="absolute"}else if(container.firstChild)container.insertBefore(c,container.firstChild);else container.appendChild(c);res.renderfix=function(){};return res};R.prototype.clear= 526function(){R.eve("raphael.clear",this);this.canvas.innerHTML=E;this.span=R._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};R.prototype.remove=function(){R.eve("raphael.remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var i in this)this[i]=typeof this[i]=="function"?R._removedFactory(i):null;return true};var setproto=R.st; 527for(var method in elproto)if(elproto[has](method)&&!setproto[has](method))setproto[method]=function(methodname){return function(){var arg=arguments;return this.forEach(function(el){el[methodname].apply(el,arg)})}}(method)})();oldRaphael.was?g.win.Raphael=R:Raphael=R;return R});(function($){var DatePicker=function(){var ids={},views={years:"datepickerViewYears",moths:"datepickerViewMonths",days:"datepickerViewDays"},tpl={wrapper:'\x3cdiv class\x3d"datepicker"\x3e\x3cdiv class\x3d"datepickerBorderT" /\x3e\x3cdiv class\x3d"datepickerBorderB" /\x3e\x3cdiv class\x3d"datepickerBorderL" /\x3e\x3cdiv class\x3d"datepickerBorderR" /\x3e\x3cdiv class\x3d"datepickerBorderTL" /\x3e\x3cdiv class\x3d"datepickerBorderTR" /\x3e\x3cdiv class\x3d"datepickerBorderBL" /\x3e\x3cdiv class\x3d"datepickerBorderBR" /\x3e\x3cdiv class\x3d"datepickerContainer"\x3e\x3ctable cellspacing\x3d"0" cellpadding\x3d"0"\x3e\x3ctbody\x3e\x3ctr\x3e\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e', 528head:["\x3ctd\x3e",'\x3ctable cellspacing\x3d"0" cellpadding\x3d"0"\x3e',"\x3cthead\x3e","\x3ctr\x3e",'\x3cth class\x3d"datepickerGoPrev"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dprev%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/th\x3e','\x3cth colspan\x3d"6" class\x3d"datepickerMonth"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/a\x3e\x3c/th\x3e','\x3cth class\x3d"datepickerGoNext"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dnext%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/th\x3e',"\x3c/tr\x3e",'\x3ctr class\x3d"datepickerDoW"\x3e', 529"\x3cth\x3e\x3cspan\x3e\x3c%\x3dweek%\x3e\x3c/span\x3e\x3c/th\x3e","\x3cth\x3e\x3cspan\x3e\x3c%\x3dday1%\x3e\x3c/span\x3e\x3c/th\x3e","\x3cth\x3e\x3cspan\x3e\x3c%\x3dday2%\x3e\x3c/span\x3e\x3c/th\x3e","\x3cth\x3e\x3cspan\x3e\x3c%\x3dday3%\x3e\x3c/span\x3e\x3c/th\x3e","\x3cth\x3e\x3cspan\x3e\x3c%\x3dday4%\x3e\x3c/span\x3e\x3c/th\x3e","\x3cth\x3e\x3cspan\x3e\x3c%\x3dday5%\x3e\x3c/span\x3e\x3c/th\x3e","\x3cth\x3e\x3cspan\x3e\x3c%\x3dday6%\x3e\x3c/span\x3e\x3c/th\x3e","\x3cth\x3e\x3cspan\x3e\x3c%\x3dday7%\x3e\x3c/span\x3e\x3c/th\x3e", 530"\x3c/tr\x3e","\x3c/thead\x3e","\x3c/table\x3e\x3c/td\x3e"],space:'\x3ctd class\x3d"datepickerSpace"\x3e\x3cdiv\x3e\x3c/div\x3e\x3c/td\x3e',days:['\x3ctbody class\x3d"datepickerDays"\x3e',"\x3ctr\x3e",'\x3cth class\x3d"datepickerWeek"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[0].week%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/th\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[0].days[0].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[0].days[0].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 531'\x3ctd class\x3d"\x3c%\x3dweeks[0].days[1].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[0].days[1].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[0].days[2].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[0].days[2].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[0].days[3].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[0].days[3].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 532'\x3ctd class\x3d"\x3c%\x3dweeks[0].days[4].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[0].days[4].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[0].days[5].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[0].days[5].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[0].days[6].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[0].days[6].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 533"\x3c/tr\x3e","\x3ctr\x3e",'\x3cth class\x3d"datepickerWeek"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[1].week%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/th\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[1].days[0].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[1].days[0].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[1].days[1].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[1].days[1].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[1].days[2].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[1].days[2].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 534'\x3ctd class\x3d"\x3c%\x3dweeks[1].days[3].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[1].days[3].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[1].days[4].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[1].days[4].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[1].days[5].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[1].days[5].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 535'\x3ctd class\x3d"\x3c%\x3dweeks[1].days[6].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[1].days[6].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e',"\x3c/tr\x3e","\x3ctr\x3e",'\x3cth class\x3d"datepickerWeek"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[2].week%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/th\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[2].days[0].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[2].days[0].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[2].days[1].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[2].days[1].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 536'\x3ctd class\x3d"\x3c%\x3dweeks[2].days[2].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[2].days[2].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[2].days[3].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[2].days[3].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[2].days[4].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[2].days[4].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 537'\x3ctd class\x3d"\x3c%\x3dweeks[2].days[5].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[2].days[5].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[2].days[6].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[2].days[6].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e',"\x3c/tr\x3e","\x3ctr\x3e",'\x3cth class\x3d"datepickerWeek"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[3].week%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/th\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[3].days[0].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[3].days[0].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 538'\x3ctd class\x3d"\x3c%\x3dweeks[3].days[1].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[3].days[1].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[3].days[2].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[3].days[2].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[3].days[3].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[3].days[3].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 539'\x3ctd class\x3d"\x3c%\x3dweeks[3].days[4].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[3].days[4].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[3].days[5].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[3].days[5].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[3].days[6].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[3].days[6].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 540"\x3c/tr\x3e","\x3ctr\x3e",'\x3cth class\x3d"datepickerWeek"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[4].week%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/th\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[4].days[0].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[4].days[0].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[4].days[1].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[4].days[1].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[4].days[2].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[4].days[2].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 541'\x3ctd class\x3d"\x3c%\x3dweeks[4].days[3].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[4].days[3].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[4].days[4].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[4].days[4].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[4].days[5].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[4].days[5].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 542'\x3ctd class\x3d"\x3c%\x3dweeks[4].days[6].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[4].days[6].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e',"\x3c/tr\x3e","\x3ctr\x3e",'\x3cth class\x3d"datepickerWeek"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[5].week%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/th\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[5].days[0].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[5].days[0].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[5].days[1].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[5].days[1].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 543'\x3ctd class\x3d"\x3c%\x3dweeks[5].days[2].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[5].days[2].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[5].days[3].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[5].days[3].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[5].days[4].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[5].days[4].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 544'\x3ctd class\x3d"\x3c%\x3dweeks[5].days[5].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[5].days[5].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd class\x3d"\x3c%\x3dweeks[5].days[6].classname%\x3e"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3dweeks[5].days[6].text%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e',"\x3c/tr\x3e","\x3c/tbody\x3e"],months:['\x3ctbody class\x3d"\x3c%\x3dclassName%\x3e"\x3e',"\x3ctr\x3e",'\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[0]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 545'\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[1]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[2]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[3]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e',"\x3c/tr\x3e","\x3ctr\x3e",'\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[4]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[5]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 546'\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[6]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[7]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e',"\x3c/tr\x3e","\x3ctr\x3e",'\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[8]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[9]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e','\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[10]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e', 547'\x3ctd colspan\x3d"2"\x3e\x3ca href\x3d"#"\x3e\x3cspan\x3e\x3c%\x3ddata[11]%\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e',"\x3c/tr\x3e","\x3c/tbody\x3e"]},defaults={flat:false,starts:1,prev:"\x26#9664;",next:"\x26#9654;",lastSel:false,mode:"single",view:"days",calendars:1,format:"Y-m-d",position:"bottom",eventName:"click",onRender:function(){return{}},onChange:function(){return true},onShow:function(){return true},onBeforeShow:function(){return true}
547,onHide:function(){return true},locale:{days:["Sunday", 548"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],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"],weekMin:"wk"}},fill=function(el){var options=$(el).data("datepicker");var cal=$(el);var currentCal=Math.floor(options.calendars/ 5492),date,data,dow,month,cnt=0,week,days,indic,indic2,html,tblCal;cal.find("td\x3etable tbody").remove();for(var i=0;i<options.calendars;i++){date=new Date(options.current);date.addMonths(-currentCal+i);tblCal=cal.find("table").eq(i+1);switch(tblCal[0].className){case "datepickerViewDays":dow=formatDate(date,"B, Y");break;case "datepickerViewMonths":dow=date.getFullYear();break;case "datepickerViewYears":dow=date.getFullYear()-6+" - "+(date.getFullYear()+5);break}tblCal.find("thead tr:first th:eq(1) span").text(dow); 550dow=date.getFullYear()-6;data={data:[],className:"datepickerYears"};for(var j=0;j<12;j++)data.data.push(dow+j);html=tmpl(tpl.months.join(""),data);date.setDate(1);data={weeks:[],test:10};month=date.getMonth();var dow=(date.getDay()-options.starts)%7;date.addDays(-(dow+(dow<0?7:0)));week=-1;cnt=0;while(cnt<42){indic=parseInt(cnt/7,10);indic2=cnt%7;if(!data.weeks[indic]){week=date.getWeekNumber();data.weeks[indic]={week:week,days:[]}}data.weeks[indic].days[indic2]={text:date.getDate(),classname:[]}; 551if(month!=date.getMonth())data.weeks[indic].days[indic2].classname.push("datepickerNotInMonth");if(date.getDay()==0)data.weeks[indic].days[indic2].classname.push("datepickerSunday");if(date.getDay()==6)data.weeks[indic].days[indic2].classname.push("datepickerSaturday");var fromUser=options.onRender(date);var val=date.valueOf();if(fromUser.selected||options.date==val||$.inArray(val,options.date)>-1||options.mode=="range"&&val>=options.date[0]&&val<=options.date[1])data.weeks[indic].days[indic2].classname.push("datepickerSelected"); 552if(fromUser.disabled)data.weeks[indic].days[indic2].classname.push("datepickerDisabled");if(fromUser.className)data.weeks[indic].days[indic2].classname.push(fromUser.className);data.weeks[indic].days[indic2].classname=data.weeks[indic].days[indic2].classname.join(" ");cnt++;date.addDays(1)}html=tmpl(tpl.days.join(""),data)+html;data={data:options.locale.monthsShort,className:"datepickerMonths"};html=tmpl(tpl.months.join(""),data)+html;tblCal.append(html)}},parseDate=function(date,format){if(date.constructor== 553Date)return new Date(date);var parts=date.split(/\W+/);var against=format.split(/\W+/),d,m,y,h,min,now=new Date;for(var i=0;i<parts.length;i++)switch(against[i]){case "d":case "e":d=parseInt(parts[i],10);break;case "m":m=parseInt(parts[i],10)-1;break;case "Y":case "y":y=parseInt(parts[i],10);y+=y>100?0:y<29?2E3:1900;break;case "H":case "I":case "k":case "l":h=parseInt(parts[i],10);break;case "P":case "p":if(/pm/i.test(parts[i])&&h<12)h+=12;else if(/am/i.test(parts[i])&&h>=12)h-=12;break;case "M":min= 554parseInt(parts[i],10);break}return new Date(y===undefined?now.getFullYear():y,m===undefined?now.getMonth():m,d===undefined?now.getDate():d,h===undefined?now.getHours():h,min===undefined?now.getMinutes():min,0)},formatDate=function(date,format){var m=date.getMonth();var d=date.getDate();var y=date.getFullYear();var wn=date.getWeekNumber();var w=date.getDay();var s={};var hr=date.getHours();var pm=hr>=12;var ir=pm?hr-12:hr;var dy=date.getDayOfYear();if(ir==0)ir=12;var min=date.getMinutes();var sec= 555date.getSeconds();var parts=format.split(""),part;for(var i=0;i<parts.length;i++){part=parts[i];switch(parts[i]){case "a":part=date.getDayName();break;case "A":part=date.getDayName(true);break;case "b":part=date.getMonthName();break;case "B":part=date.getMonthName(true);break;case "C":part=1+Math.floor(y/100);break;case "d":part=d<10?"0"+d:d;break;case "e":part=d;break;case "H":part=hr<10?"0"+hr:hr;break;case "I":part=ir<10?"0"+ir:ir;break;case "j":part=dy<100?dy<10?"00"+dy:"0"+dy:dy;break;case "k":part= 556hr;break;case "l":part=ir;break;case "m":part=m<9?"0"+(1+m):1+m;break;case "M":part=min<10?"0"+min:min;break;case "p":case "P":part=pm?"PM":"AM";break;case "s":part=Math.floor(date.getTime()/1E3);break;case "S":part=sec<10?"0"+sec:sec;break;case "u":part=w+1;break;case "w":part=w;break;case "y":part=(""+y).substr(2,2);break;case "Y":part=y;break}parts[i]=part}return parts.join("")},extendDate=function(options){if(Date.prototype.tempDate)return;Date.prototype.tempDate=null;Date.prototype.months=options.months; 557Date.prototype.monthsShort=options.monthsShort;Date.prototype.days=options.days;Date.prototype.daysShort=options.daysShort;Date.prototype.getMonthName=function(fullName){return this[fullName?"months":"monthsShort"][this.getMonth()]};Date.prototype.getDayName=function(fullName){return this[fullName?"days":"daysShort"][this.getDay()]};Date.prototype.addDays=function(n){this.setDate(this.getDate()+n);this.tempDate=this.getDate()};Date.prototype.addMonths=function(n){if(this.tempDate==null)this.tempDate= 558this.getDate();this.setDate(1);this.setMonth(this.getMonth()+n);this.setDate(Math.min(this.tempDate,this.getMaxDays()))};Date.prototype.addYears=function(n){if(this.tempDate==null)this.tempDate=this.getDate();this.setDate(1);this.setFullYear(this.getFullYear()+n);this.setDate(Math.min(this.tempDate,this.getMaxDays()))};Date.prototype.getMaxDays=function(){var tmpDate=new Date(Date.parse(this)),d=28,m;m=tmpDate.getMonth();d=28;while(tmpDate.getMonth()==m){d++;tmpDate.setDate(d)}return d-1};Date.prototype.getFirstDay= 559function(){var tmpDate=new Date(Date.parse(this));tmpDate.setDate(1);return tmpDate.getDay()};Date.prototype.getWeekNumber=function(){var tempDate=new Date(this);tempDate.setDate(tempDate.getDate()-(tempDate.getDay()+6)%7+3);var dms=tempDate.valueOf();tempDate.setMonth(0);tempDate.setDate(4);return Math.round((dms-tempDate.valueOf())/6048E5)+1};Date.prototype.getDayOfYear=function(){var now=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var then=new Date(this.getFullYear(),0,0, 5600,0,0);var time=now-then;return Math.floor(time/24*60*60*1E3)}},layout=function(el){var options=$(el).data("datepicker");var cal=$("#"+options.id);if(!options.extraHeight){var divs=$(el).find("div");options.extraHeight=divs.get(0).offsetHeight+divs.get(1).offsetHeight;options.extraWidth=divs.get(2).offsetWidth+divs.get(3).offsetWidth}var tbl=cal.find("table:first").get(0);var width=tbl.offsetWidth;var height=tbl.offsetHeight;cal.css({width:width+options.extraWidth+"px",height:height+options.extraHeight+ 561"px"}).find("div.datepickerContainer").css({width:width+"px",height:height+"px"})},click=function(ev){if($(ev.target).is("span"))ev.target=ev.target.parentNode;var el=$(ev.target);if(el.is("a")){ev.target.blur();if(el.hasClass("datepickerDisabled"))return false;var options=$(this).data("datepicker");var parentEl=el.parent();var tblEl=parentEl.parent().parent().parent();var tblIndex=$("table",this).index(tblEl.get(0))-1;var tmp=new Date(options.current);var changed=false;var fillIt=false;if(parentEl.is("th"))if(parentEl.hasClass("datepickerWeek")&& 562options.mode=="range"&&!parentEl.next().hasClass("datepickerDisabled")){var val=parseInt(parentEl.next().text(),10);tmp.addMonths(tblIndex-Math.floor(options.calendars/2));if(parentEl.next().hasClass("datepickerNotInMonth"))tmp.addMonths(val>15?-1:1);tmp.setDate(val);options.date[0]=tmp.setHours(0,0,0,0).valueOf();tmp.setHours(23,59,59,0);tmp.addDays(6);options.date[1]=tmp.valueOf();fillIt=true;changed=true;options.lastSel=false}else if(parentEl.hasClass("datepickerMonth")){tmp.addMonths(tblIndex- 563Math.floor(options.calendars/2));switch(tblEl.get(0).className){case "datepickerViewDays":tblEl.get(0).className="datepickerViewMonths";el.find("span").text(tmp.getFullYear());break;case "datepickerViewMonths":tblEl.get(0).className="datepickerViewYears";el.find("span").text(tmp.getFullYear()-6+" - "+(tmp.getFullYear()+5));break;case "datepickerViewYears":tblEl.get(0).className="datepickerViewDays";el.find("span").text(formatDate(tmp,"B, Y"));break}}else{if(parentEl.parent().parent().is("thead")){switch(tblEl.get(0).className){case "datepickerViewDays":options.current.addMonths(parentEl.hasClass("datepickerGoPrev")? 564-1:1);break;case "datepickerViewMonths":options.current.addYears(parentEl.hasClass("datepickerGoPrev")?-1:1);break;case "datepickerViewYears":options.current.addYears(parentEl.hasClass("datepickerGoPrev")?-12:12);break}fillIt=true}}else if(parentEl.is("td")&&!parentEl.hasClass("datepickerDisabled")){switch(tblEl.get(0).className){case "datepickerViewMonths":options.current.setMonth(tblEl.find("tbody.datepickerMonths td").index(parentEl));options.current.setFullYear(parseInt(tblEl.find("thead th.datepickerMonth span").text(), 56510));options.current.addMonths(Math.floor(options.calendars/2)-tblIndex);tblEl.get(0).className="datepickerViewDays";break;case "datepickerViewYears":options.current.setFullYear(parseInt(el.text(),10));tblEl.get(0).className="datepickerViewMonths";break;default:var val=parseInt(el.text(),10);tmp.addMonths(tblIndex-Math.floor(options.calendars/2));if(parentEl.hasClass("datepickerNotInMonth"))tmp.addMonths(val>15?-1:1);tmp.setDate(val);switch(options.mode){case "multiple":val=tmp.setHours(0,0,0,0).valueOf(); 566if($.inArray(val,options.date)>-1)$.each(options.date,function(nr,dat){if(dat==val){options.date.splice(nr,1);return false}});else options.date.push(val);break;case "range":if(!options.lastSel)options.date[0]=tmp.setHours(0,0,0,0).valueOf();val=tmp.setHours(23,59,59,0).valueOf();if(val<options.date[0]){options.date[1]=options.date[0]+86399E3;options.date[0]=val-86399E3}else options.date[1]=val;options.lastSel=!options.lastSel;break;default:options.date=tmp.valueOf();break}break}fillIt=true;changed= 567true}if(fillIt)fill(this);if(changed)options.onChange.apply(this,prepareDate(options))}return false},prepareDate=function(options){var tmp;if(options.mode=="single"){tmp=new Date(options.date);return[formatDate(tmp,options.format),tmp,options.el]}else{tmp=[[],[],options.el];$.each(options.date,function(nr,val){var date=new Date(val);tmp[0].push(formatDate(date,options.format));tmp[1].push(date)});return tmp}},getViewport=function(){var m=document.compatMode=="CSS1Compat";return{l:window.pageXOffset|| 568(m?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(m?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(m?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(m?document.documentElement.clientHeight:document.body.clientHeight)}},isChildOf=function(parentEl,el,container){if(parentEl==el)return true;if(parentEl.contains)return parentEl.contains(el);if(parentEl.compareDocumentPosition)return!!(parentEl.compareDocumentPosition(el)& 56916);var prEl=el.parentNode;while(prEl&&prEl!=container){if(prEl==parentEl)return true;prEl=prEl.parentNode}return false},show=function(ev){var cal=$("#"+$(this).data("datepickerId"));if(!cal.is(":visible")){var calEl=cal.get(0);fill(calEl);var options=cal.data("datepicker");options.onBeforeShow.apply(this,[cal.get(0)]);var pos=$(this).offset();var viewPort=getViewport();var top=pos.top;var left=pos.left;var oldDisplay=$.curCSS(calEl,"display");cal.css({visibility:"hidden",display:"block"});layout(calEl); 570switch(options.position){case "top":top-=calEl.offsetHeight;break;
570case "left":left-=calEl.offsetWidth;break;case "right":left+=this.offsetWidth;break;case "bottom":top+=this.offsetHeight;break}if(top+calEl.offsetHeight>viewPort.t+viewPort.h)top=pos.top-calEl.offsetHeight;if(top<viewPort.t)top=pos.top+this.offsetHeight+calEl.offsetHeight;if(left+calEl.offsetWidth>viewPort.l+viewPort.w)left=pos.left-calEl.offsetWidth;if(left<viewPort.l)left=pos.left+this.offsetWidth;cal.css({visibility:"visible",display:"block", 571top:top+"px",left:left+"px"});if(options.onShow.apply(this,[cal.get(0)])!=false)cal.show();$(document).bind("mousedown",{cal:cal,trigger:this},hide)}return false},hide=function(ev){if(ev.target!=ev.data.trigger&&!isChildOf(ev.data.cal.get(0),ev.target,ev.data.cal.get(0))){if(ev.data.cal.data("datepicker").onHide.apply(this,[ev.data.cal.get(0)])!=false)ev.data.cal.hide();$(document).unbind("mousedown",hide)}};return{init:function(options){options=$.extend({},defaults,options||{});extendDate(options.locale); 572options.calendars=Math.max(1,parseInt(options.calendars,10)||1);options.mode=/single|multiple|range/.test(options.mode)?options.mode:"single";return this.each(function(){if(!$(this).data("datepicker")){options.el=this;if(options.date.constructor==String){options.date=parseDate(options.date,options.format);options.date.setHours(0,0,0,0)}if(options.mode!="single")if(options.date.constructor!=Array){options.date=[options.date.valueOf()];if(options.mode=="range")options.date.push((new Date(options.date[0])).setHours(23, 57359,59,0).valueOf())}else{for(var i=0;i<options.date.length;i++)options.date[i]=parseDate(options.date[i],options.format).setHours(0,0,0,0).valueOf();if(options.mode=="range")options.date[1]=(new Date(options.date[1])).setHours(23,59,59,0).valueOf()}else options.date=options.date.valueOf();if(!options.current)options.current=new Date;else options.current=parseDate(options.current,options.format);options.current.setDate(1);options.current.setHours(0,0,0,0);var id="datepicker_"+parseInt(Math.random()* 5741E3),cnt;options.id=id;$(this).data("datepickerId",options.id);var cal=$(tpl.wrapper).attr("id",id).bind("click",click).data("datepicker",options);if(options.className)cal.addClass(options.className);var html="";for(var i=0;i<options.calendars;i++){cnt=options.starts;if(i>0)html+=tpl.space;html+=tmpl(tpl.head.join(""),{week:options.locale.weekMin,prev:options.prev,next:options.next,day1:options.locale.daysMin[cnt++%7],day2:options.locale.daysMin[cnt++%7],day3:options.locale.daysMin[cnt++%7],day4:options.locale.daysMin[cnt++% 5757],day5:options.locale.daysMin[cnt++%7],day6:options.locale.daysMin[cnt++%7],day7:options.locale.daysMin[cnt++%7]})}cal.find("tr:first").append(html).find("table").addClass(views[options.view]);fill(cal.get(0));if(options.flat){cal.appendTo(this).show().css("position","relative");layout(cal.get(0))}else{cal.appendTo(document.body);$(this).bind(options.eventName,show)}}})},showPicker:function(){return this.each(function(){if($(this).data("datepickerId"))show.apply(this)})},hidePicker:function(){return this.each(function(){if($(this).data("datepickerId"))$("#"+ 576$(this).data("datepickerId")).hide()})},setDate:function(date,shiftTo){return this.each(function(){if($(this).data("datepickerId")){var cal=$("#"+$(this).data("datepickerId"));var options=cal.data("datepicker");options.date=date;if(options.date.constructor==String){options.date=parseDate(options.date,options.format);options.date.setHours(0,0,0,0)}if(options.mode!="single")if(options.date.constructor!=Array){options.date=[options.date.valueOf()];if(options.mode=="range")options.date.push((new Date(options.date[0])).setHours(23, 57759,59,0).valueOf())}else{for(var i=0;i<options.date.length;i++)options.date[i]=parseDate(options.date[i],options.format).setHours(0,0,0,0).valueOf();if(options.mode=="range")options.date[1]=(new Date(options.date[1])).setHours(23,59,59,0).valueOf()}else options.date=options.date.valueOf();if(shiftTo)options.current=new Date(options.mode!="single"?options.date[0]:options.date);fill(cal.get(0))}})},getDate:function(formated){if(this.size()>0)return prepareDate($("#"+$(this).data("datepickerId")).data("datepicker"))[formated? 5780:1]},clear:function(){return this.each(function(){if($(this).data("datepickerId")){var cal=$("#"+$(this).data("datepickerId"));var options=cal.data("datepicker");if(options.mode!="single"){options.date=[];fill(cal.get(0))}}})},fixLayout:function(){return this.each(function(){if($(this).data("datepickerId")){var cal=$("#"+$(this).data("datepickerId"));var options=cal.data("datepicker");if(options.flat)layout(cal.get(0))}})}}}();$.fn.extend({DatePicker:DatePicker.init,DatePickerHide:DatePicker.hidePicker, 579DatePickerShow:DatePicker.showPicker,DatePickerSetDate:DatePicker.setDate,DatePickerGetDate:DatePicker.getDate,DatePickerClear:DatePicker.clear,DatePickerLayout:DatePicker.fixLayout})})(jQuery); 580(function(){var cache={};this.tmpl=function tmpl(str,data){var fn=!/\W/.test(str)?cache[str]=cache[str]||tmpl(document.getElementById(str).innerHTML):new Function("obj","var p\x3d[],print\x3dfunction(){p.push.apply(
580p,arguments);};"+"with(obj){p.push('"+str.replace(/[\r\t\n]/g," ").split("\x3c%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%\x3e").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return data?fn(data): 581fn}})();$(document).ready(function(){if($(".cmbarchart").length&&$("#cmBrandData").length){var cmBrandData=$("#cmBrandData").html();if(cmBrandData!=null&&cmBrandData!="")initBarChart($(".cmbarchart").attr("id"),$.parseJSON(cmBrandData))}drawPie();if($(".contentHitsAll").length&&$("#allStatisticsData").length){var cmHitsAllData=$("#allStatisticsData").html();if(cmHitsAllData!=null&&cmHitsAllData!="")initStatistics($(".contentHitsAll").attr("id"),$.parseJSON(cmHitsAllData))}getAllDatesData();$(".listControlManager").on("click", 582".visitors_options .button",function(){var tableId=$(this).data("table-id");$("#visitData-"+tableId).parents(".visitors").toggleClass("show")});$(".listControlManager").on("click",".outgoingLinks .trigger",function(){$(this).closest(".outgoingLinks").toggleClass("show");var tableId=$(this).data("table");$("#"+tableId).closest(".outgoingLinks").toggleClass("show")});if($(".listControlManager article").length>0)removeLoader();if($(".listControlManager .no-articles").length>0)removeLoader();$(".listControlManager .visitors_options .link .button.close").on("click", 583function(){closeVisitorsTable(this)});$(".listControlManager .visitors.table .link.close").on("click",function(e){e.preventDefault();e.stopPropagation();closeVisitorsTable(this)});$(document).on("select2:select",".listControlManager select.replace_hot_topics_selection",function(e){$(".listControlManager .hot_topics_selection_value").val(e.params.data.id);$(".listControlManager .hot_topics_selection_value").change()});if($("#analyticsDashboardHitsFiltered .analytics").length)$(document).on("click", 584".btn_analyticsDashboardHitsFiltered_form_trigger",function(e){e.preventDefault();$("#analyticsDashboardHitsFiltered .analytics").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$(this).find(".fa").toggleClass("fa-angle-double-down").toggleClass("fa-angle-double-up");return false});if($(".dashboardBenchmark .benchmarkGroup").length)$(document).on("click",".btn_analyticsDashboardBenchmark_form_trigger",function(e){e.preventDefault();$(".dashboardBenchmark .benchmarkGroup").slideToggle("fast", 585function(){$(".csPage").hide(0).show(0)});$(this).find(".fa").toggleClass("fa-angle-double-down").toggleClass("fa-angle-double-up");return false});if($(".dashboarOwnArticlesContent").length)$(document).on("click",".dashboardOwnArticles",function(e){e.preventDefault();$(".dashboarOwnArticlesContent").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$(".dashboardOwnArticles").find(".fa").toggleClass("fa-angle-double-down").toggleClass("fa-angle-double-up");return false});if($(".dashboardHotTopicsContent").length)$(document).on("click", 586'.dashboardHotTopics[href\x3d"#!"]',function(e){e.preventDefault();$(".dashboardHotTopicsContent").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$('.dashboardHotTopics[href\x3d"#!"]').find(".fa").toggleClass("fa-angle-double-down").toggleClass("fa-angle-double-up");return false});if($("#analyticsDashboardMyAccount .analytics-dashboard--data-table").length)$(".btn_analyticsDashboardMyAccount_form_trigger").click(function(e){e.preventDefault();$("#analyticsDashboardMyAccount .analytics-dashboard--data-table").slideToggle("fast", 587function(){$(".csPage").hide(0).show(0)});$(this).find(".fa").toggleClass("fa-angle-double-down").toggleClass("fa-angle-double-up");return false});if($("#analyticsDashboardContact .analytics-dashboard--data-table").length)$(".btn_analyticsDashboardContact_form_trigger").click(function(e){e.preventDefault();$("#analyticsDashboardContact .analytics-dashboard--data-table").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$(this).find(".fa").toggleClass("fa-angle-double-down").toggleClass("fa-angle-double-up"); 588return false});if($("#analyticsDashboardInfo .message-top-wrapper").length)$(".btn_analyticsDashboardInfo_form_trigger").click(function(e){e.preventDefault();$("#analyticsDashboardInfo .message-top-wrapper").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$(this).find(".fa").toggleClass("fa-angle-double-down").toggleClass("fa-angle-double-up");return false});if($("#analyticsDashboardHitsFiltered .analytics").length)$('a[href\x3d"#kpis"]').click(function(){if($(".btn_analyticsDashboardHitsFiltered_form_trigger i").hasClass("fa-angle-double-down")){$("#analyticsDashboardHitsFiltered .analytics").slideToggle("fast", 589function(){$(".csPage").hide(0).show(0)});$(".btn_analyticsDashboardHitsFiltered_form_trigger i").removeClass("fa-angle-double-down").addClass("fa-angle-double-up")}});if($(".dashboardBenchmark .benchmarkGroup").length)$('a[href\x3d"#benchmark"]').click(function(){if($(".btn_analyticsDashboardBenchmark_form_trigger i").hasClass("fa-angle-double-down")){$(".dashboardBenchmark .benchmarkGroup").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$(".btn_analyticsDashboardBenchmark_form_trigger i").removeClass("fa-angle-double-down").addClass("fa-angle-double-up")}}); 590if($(".dashboarOwnArticlesContent").length)$('a[href\x3d"#analytics"]').click(function(){if($(".dashboardOwnArticles i").hasClass("fa-angle-double-down")){$(".dashboarOwnArticlesContent").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$(".dashboardOwnArticles i").removeClass("fa-angle-double-down").addClass("fa-angle-double-up")}});if($("#analyticsDashboardMyAccount .analytics-dashboard--data-table").length)$('a[href\x3d"#myAccount"]').click(function(){if($("#myAccount.btn_analyticsDashboardMyAccount_form_trigger i").hasClass("fa-angle-double-down")){$("#analyticsDashboardMyAccount .analytics-dashboard--data-table").slideToggle("fast", 591function(){$(".csPage").hide(0).show(0)});$("#myAccount.btn_analyticsDashboardMyAccount_form_trigger i").removeClass("fa-angle-double-down").addClass("fa-angle-double-up")}});if($("#analyticsDashboardContact .analytics-dashboard--data-table").length)$('a[href\x3d"#contact"]').click(function(){if($("#contact.btn_analyticsDashboardContact_form_trigger i").hasClass("fa-angle-double-down")){$("#analyticsDashboardContact .analytics-dashboard--data-table").slideToggle("fast",function(){$(".csPage").hide(0).show(0)}); 592$("#contact.btn_analyticsDashboardContact_form_trigger i").removeClass("fa-angle-double-down").addClass("fa-angle-double-up")}});if($("#info.btn_analyticsDashboardInfo_form_trigger i").length)$('a[href\x3d"#info"]').click(function(){if($("#info.btn_analyticsDashboardInfo_form_trigger i").hasClass("fa-angle-double-down")){$("#analyticsDashboardInfo .message-top-wrapper").slideToggle("fast",function(){$(".csPage").hide(0).show(0)});$("#info.btn_analyticsDashboardInfo_form_trigger i").removeClass("fa-angle-double-down").addClass("fa-angle-double-up")}})}); 593function drawPie(){$(".statisticPie").find(".pie").each(function(){initPieStatistic($(this).attr("id"))})}function closeVisitorsTable(element){let table_id=$(element).data("table-id");$(".visitors.table[data-table-id\x3dtable_visitors_"+table_id+"]").toggleClass("show");if($(".visitors.table[data-table-id\x3dtable_visitors_"+table_id+"]").hasClass("show"))trakingFunction("Details Click",table_id)} 594function trackCSVFunction(element){let table_id=$(element).data("table-id");trakingFunction("CSV Download",table_id)}function trakingFunction(type,table_id){var _paq=window._paq=window._paq||[];_paq.push(["trackEvent","Control-Manager",type,table_id]);if(type=="CSV Download")tableToCSV("#visitData-"+table_id)}function removeLoader(){$("#controlManagerHead .preloader").remove()}function refreshFilteredStatistics(elem){$("#controlManagerHitsFiltered #refreshBtn").click()} 595function refreshContentViews(){$("#controlManagerHitsMediatype #refreshBtn").click()} 596function getAllDatesData(){if($(".contentHitsFiltered").length&&$("#filteredStatisticsData").length){var cmHitsFilteredData=$("#filteredStatisticsData").html();if(cmHitsFilteredData!=null&&cmHitsFilteredData!=""){var data=$.parseJSON(cmHitsFilteredData);if(data.length>0){$("#controlManagerHitsFiltered .headLeft.chooseDate.hidden").removeClass("hidden");initStatistics($(".contentHitsFiltered").attr("id"),data);createCalendarLogic("#controlManagerHitsFiltered")}}}} 597function getContentTypeViewsData(){createCalendarLogic("#controlManagerHitsMediatype")} 598function createCalendarLogic(controlId){var fromDate=$(controlId+" #cmFromDate").html();var untilDate=$(controlId+" #cmUntilDate").html();var from=new Date(formatDate(fromDate));var until=new Date(formatDate(untilDate));$(controlId+" #widgetCalendar").DatePicker({flat:true,format:"d.m.Y",date:[new Date(from),new Date(until)],calendars:3,mode:"range",starts:1,onChange:function(formated){console.log(formated);$(controlId+" #widgetField span").get(0).innerHTML=formated.join(" - ");$(controlId+" #inputFromDate").val(formated[0]); 599$(controlId+" #inputUntilDate").val(formated[1])},onRender:function(date){var yesterday=new Date;yesterday.setDate(yesterday.getDate()-1);return{disabled:date.valueOf()>yesterday.valueOf()||date.valueOf()<(new Date("2015-01-01")).valueOf()}}});var state=false;$(controlId+" #widgetField\x3ea").bind("click",function(){$(controlId+" #widgetCalendar").stop().animate({height:state?0:$(controlId+" #widgetCalendar div.datepicker").get(0).offsetHeight},500);state=!state;return false});$(controlId+" #widgetCalendar div.datepicker").css("position", 600"absolute")}function formatDate(date){var dateSplit=date.split(".");return dateSplit[2]+"-"+dateSplit[1]+"-"+dateSplit[0]}function initStatistics(identifier,data){Morris.Line({element:identifier,smooth:false,hideHover:"always",data:data,xkey:"label",ykeys:["total"],yLabels:"1000",xLabels:"day",gridTextColor:"#000",pointStrokeColors:"#000",xLabelFormat:function(d){return d.getDate()+". "+formatMonth(d.getMonth()+1)},lineColors:["#000"],lineWidth:2})} 601function initBarChart(identifier,data){Morris.Bar({element:identifier,barColors:["#e0e04d"],gridTextFamily:'"myriad-pro-condensed",sans-serif',gridTextColor:"#000",data:data,xkey:"label",ykeys:["total"],labels:["Firmenchannel pro gebucht"],xLabelFormat:function(x){return"\n"+x.label}})} 602function initPieStatistic(identifier){var data=[];$("#"+identifier).parent().find("\x3e div \x3e div").each(function(){var label=$(this).find(".label").html();var value=parseInt($(this).find(".value").html());data.push({label:label,value:value})});Morris.Donut({element:identifier,colors:["#e0e04d","#f0f0b3","#e2e2e2","#9e9c9c","#636363","#1c1c1b"],formatter:function(y,data){return 12648},data:data})} 603function formatMonth(month){switch(month){case 1:return"Jan";break;case 2:return"Feb";break;case 3:return"Mar";break;case 4:return"Apr";break;case 5:return"May";break;case 6:return"Jun";break;case 7:return"Jul";break;case 8:return"Aug";break;case 9:return"Sep";break;case 10:return"Oct";break;case 11:return"Nov";break;case 12:return"Dec";break}} 604function tableToCSV(tableId){let csv_data=[];let table=$(tableId);let siblings=table.siblings();let fileName="INDUSTR.COM - Who visited details";if(siblings!=null&&siblings.length>0)fileName=table.siblings()[0].innerText;let rows=table.find("tr");for(let i=0;i<rows.length;i++){let cols=rows[i].querySelectorAll("td,th");let csvrow=[];for(let j=0;j<cols.length;j++){let column=cols[j];if($(column).hasClass("long")){let aTag=$(cols[j]).find("a");if(aTag!=null&&aTag.length>0)csvrow.push(aTag[0].innerText); 605else csvrow.push(column.innerHTML)}else if(!$(column).hasClass("buttons"))csvrow.push(column.innerHTML)}csv_data.push(csvrow.join(";"))}csv_data=csv_data.join("\n");downloadCSVFile(csv_data,fileName)} 606function downloadCSVFile(csv_data,fileName){CSVFile=new Blob([""+csv_data],{type:"text/csv"});let temp_link=document.createElement("a");let fromDate=$("#cmFromDate")[0].innerText;let untilDate=$("#cmUntilDate")[0].innerText;let d=new Date($.now());let currentDate=d.getFullYear()+("0"+(d.getMonth()+1)).slice(-2)+("0"+d.getDate()).slice(-2);temp_link.download=fileName+" from "+fromDate+" to "+untilDate+", exported at "+currentDate+".csv";let url=window.URL.createObjectURL(CSVFile);temp_link.href=url; 607temp_link.style.display="none";document.body.appendChild(temp_link);temp_link.click();document.body.removeChild(temp_link)};$(document).ready(function(){$.csInit(function(e){e.container.find(".moreCompaniesHead .companiesToggle").
607changeCompaniesToogle()});$.csInit(function(e){e.container.find(".csQuickSearch__fake_field input").updateSearchText()})}); 608(function($){$.fn.changeCompaniesToogle=function(){$(this).click(function(){$(".companiesToggleShow").toggle();$(".companiesToggleHide").toggle();$(".companiesList").toggle("slow")})};$.fn.updateSearchText=function(){if($(".searchFullText").length){$(this).val($(".searchFullText").val());$(this).addClass("red");if($(".breadcrumb ul").length){$(".breadcrumb ul li.search.red").remove();$(".breadcrumb ul").append("\x3cli class\x3d'search red'\x3e\""+$(".searchFullText").val()+'"\x3c/li\x3e');if($(".searchPage .resultsLabel").length)$(".breadcrumb ul").append("\x3cli class\x3d'search red'\x3e"+ 609$(".searchPage .resultsLabel").html()+"\x3c/li\x3e")}}}})(jQuery);$(document).ready(function(){$("header .headIntro").on("click","a.downloadLink",function(){if($("header .headIntro .downloadWhitepaper form .downloadWhitepaperButton").length>0)$("header .headIntro .downloadWhitepaper form .downloadWhitepaperButton").click()});$("#form-download").on("click",".downloadWhitepaper form .downloadWhitepaperButton",function(){$("#form-download .downloadWhitepaper form .saveWhitepaper").click();$(".fancybox-inner").addClass("whitepaper");$(".fancybox-inner").scrollTop(0)})}); 610function closeModalWhitepaper(){parent.$.fancybox.close()}function updateFancybox(){parent.$.fancybox.update()}function removeWhitepaperClass(){$(".fancybox-inner").removeClass("whitepaper")};$(document).ready(function(){if($(".csKeyVisual a.js-fancybox-video").length>0)$(".csKeyVisual a.js-fancybox-video").fancybox({maxWidth:800,helpers:{media:true},afterLoad:function(current){var $content=$(current.content);$content.removeAttr("style");$content.removeClass("slideshow-wrapper-hidden");$content.addClass("slideshow-wrapper")},afterShow:function(){$("#video-download .downloadVideo form .downloadVideoButton").unbind("click");$("#video-download .downloadVideo form .saveVideo").unbind("click"); 611$(".fancybox-inner").csInit();this.autoWidth=this.autoHeight=this.autoSize=true;$(window).on("touchmove",blockScrolling);window.addEventListener("orientationchange",doOnOrientationChange)},afterClose:function(){$(window).off("touchmove",blockScrolling);window.removeEventListener("orientationchange",doOnOrientationChange)}});function blockScrolling(event){event.preventDefault()}function doOnOrientationChange(){switch(window.orientation){case -90:case 90:$.fancybox.update();break;default:$.fancybox.update(); 612break}}});function closeModalVideo(){parent.$.fancybox.close()}function updateFancybox(){parent.$.fancybox.update()}function removeVideoClass(){$(".fancybox-inner").removeClass("video")}function checkjwvideo(){if($("#video-download .jwvideo").length>0)$("#video-download .jwvideo").show()};$(document).ready(function(){$(":root").csInit()});$(document).ready(function(){xingButton(0,false);linkdInButton(0,false)});function xingButton(count,found){if(count<4&&!found){var xingIframe=$("#xingSection iframe");if(xingIframe&&xingIframe.length>0){increaseXingButton();found=true}else setTimeout(function(){xingButton(count+1,found)},500)}} 613function increaseXingButton(){$("#xingSection iframe").css("height","44px");$("#xingSection iframe").css("width","100%");$("#xingSection iframe").contents().find("#xing-follow").css("height","44px");$("#xingSection iframe").contents().find("#xing-follow").css("width","75px");$("#xingSection iframe").contents().find("#xing-follow").css("line-height","45px");$("#xingSection iframe").contents().find("#xing-follow").css("padding","0 6px 0 44px");$("#xingSection iframe").contents().find("#xing-follow").css("font-size", 614"16px");$("#xingSection iframe").contents().find("#xing-follow i").css("width","44px");$("#xingSection iframe").contents().find("#xing-follow i").css("background-size","28px");$("#xingSection iframe").contents().find(".spi-button-counter-right-beak").css("top","20px");$("#xingSection iframe").contents().find("#followers-counter").css("font-size","18px");$("#xingSection iframe").contents().find("#followers-counter").css("height","42px");$("#xingSection iframe").contents().find("#followers-counter").css("line-height", 615"42px")}function linkdInButton(count,found){if(count<4&&!found){var linkdInIframe=$("#linkdInSection iframe");
615if(linkdInIframe&&linkdInIframe.length>0){increaseLinkdInButton();found=true}else setTimeout(function(){linkdInButton(count+1,found)},500)}}function increaseLinkdInButton(){$("#linkdInSection iframe").css("transform","scale(1.18) translate(7px, 4px)")};const MIN_COMP=3;const MAX_COMP=10; 616$(document).ready(function(){$(".listAnalyticsDashboard").on("click",".visitors_options .button",function(){var tableId=$(this).data("table-id");$("#visitData-"+tableId).parents(".visitors").toggleClass("show")});$(".listAnalyticsDashboard").on("click",".outgoingLinks .trigger",function(){$(this).closest(".outgoingLinks").toggleClass("show");var tableId=$(this).data("table");$("#"+tableId).closest(".outgoingLinks").toggleClass("show")});$(".listAnalyticsDashboard .visitors_options .link .button.close").on("click",function(){closeVisitorsTable(this)}); 617$(".listAnalyticsDashboard .visitors.table .link.close").on("click",function(e){e.preventDefault();e.stopPropagation();closeVisitorsTable(this)});if($(".dashboardHotTopics").length==0&&$(".hotTopicNav").is(":visible"))$(".hotTopicNav").hide();if($(".dashboardBenchmark").length==0&&$(".benchmarkNav").is(":visible"))$(".benchmarkNav").hide();$(document).on("click",".dashboardOwnArticles, .dashboardHotTopics",function(){$(this).find(".hotTopicSpinner").toggle()});$(document).on("click",".benchmarkButton", 618function(){const $button=$(this).find("button");const $spinner=$(this).find(".hotTopicSpinner");if(!$button.is(":disabled"))$spinner.toggle()});const $companiesSelect=$(".benchmarkCompaniesSelect");const $addBtn=$("#addCompanyOpt");const $removeBtn=$("#removeCompanyOpt");const $removeCompanies=$(".benchmarkRemoveCompanies");$addBtn.on("click",function(){const count=$companiesSelect.find("select").length;const companies=document.getElementById("companySelect1");var options=companies.innerHTML;if(count< 619MAX_COMP){const newSelect=$(`\x3cselect id\x3d"companySelect${count+1}"\x3e${options}\x3c/select\x3e`);$companiesSelect.append(newSelect);updateButtons();newSelect.trigger("change")}});$removeBtn.on("click",function(){const $selects=$companiesSelect.find("select");if($selects.length>MIN_COMP){$selects.last().remove();updateButtons();$("select[id^\x3d'companySelect']").first().trigger("change")}});updateButtons();removeOwnCompany();selectCompanies();$(document).on("change","select[id^\x3d'companySelect']", 620function(){$("select[id^\x3d'companySelect'] option").prop("disabled",false);var arr=$.map($("select[id^\x3d'companySelect']"),function(sel){return $(sel).val()});let company=$("body").attr("data-content-id");$("select[id^\x3d'companySelect'] option").filter(function(){return $.inArray($(this).val(),arr)>-1&&$(this).val()!=""||$(this).val()==company}).prop("disabled",true);const urlParams=new URL(window.location.href);let companies="";for(let i=0;i<arr.length;i++){let id=arr[i];if(id&&!isNaN(id))if(companies)companies+= 621","+id;else companies=id}if(companies)urlParams.searchParams.set("companies",companies);else urlParams.searchParams.delete("companies");window.history.replaceState(null,null,urlParams);var selectedCount=arr.filter(function(val){return val!==""}).length;updateBenchmarkButton(selectedCount)});if(sessionStorage.getItem("scrollToBenchmark")==="true"){sessionStorage.removeItem("scrollToBenchmark");const $target=$("#benchmark");if($target.length)$("html, body").animate({scrollTop:$target.offset().top}, 622600)}});function updateButtons(){const companiesSelect=$(".benchmarkCompaniesSelect");const addBtn=$("#addCompanyOpt");const removeCompanies=$(".benchmarkRemoveCompanies");const count=companiesSelect.find("select").length;removeCompanies.toggle(count>MIN_COMP);addBtn.prop("disabled",count>=MAX_COMP)} 623function removeOwnCompany(){let company=$("body").attr("data-content-id");$("select[id^\x3d'companySelect'] option").filter(function(){return $(this).val()==company&&$(this).val()!=""}).prop("disabled",true)}function updateBenchmarkButton(selectedCount){var btn=$(".benchmarkButton button");btn.attr("disabled",selectedCount<3?true:null);if(selectedCount>=3)btn.css({"background-color":"#DEDE5A","color":"#000","font-weight":"bold"});else btn.css({"background-color":"","color":"","font-weight":""})}
624function selectCompanies(){const urlParams=new URL(window.location.href);let searchParams=urlParams.searchParams;if(searchParams&&searchParams.get("companies")){let companies=searchParams.get("companies");let arrayCompanies=companies.split(",");for(let i=0;i<arrayCompanies.length;i++){let company=arrayCompanies[i];if(i>=3){const $companiesSelect=$(".benchmarkCompaniesSelect");const companies=document.getElementById("companySelect1");var options=companies.innerHTML;const newSelect=$(`\x3cselect id\x3d"companySelect${i+ 6251}"\x3e${options}\x3c/select\x3e`);$companiesSelect.append(newSelect)}$(`select[id\x3d"companySelect${i+1}"] option`).filter(function(){return $(this).val()==company&&$(this).val()!=""}).prop("selected",true)}updateButtons();updateBenchmarkButton(arrayCompanies.length)}}function getBenchmarkData(){sessionStorage.setItem("scrollToBenchmark","true");window.location.reload()} 626function closeVisitorsTable(element){let table_id=$(element).data("table-id");$(".visitors.table[data-table-id\x3dtable_visitors_"+table_id+"]").toggleClass("show");if($(".visitors.table[data-table-id\x3dtable_visitors_"+table_id+"]").hasClass("show"))trakingFunction("Details Click",table_id)}function trackCSVFunction(element){let table_id=$(element).data("table-id");trakingFunction("CSV Download",table_id)} 627function trakingFunction(type,table_id){var _paq=window._paq=window._paq||[];_paq.push(["trackEvent","Control-Manager",type,table_id]);if(type=="CSV Download")tableToCSV("#visitData-"+table_id)}function removeLoader(){$("#analyticsDashboardHead .preloader").remove()}function refreshFilteredStatistics(elem){$("#analyticsDashboardHitsFiltered #refreshBtn").click()} 628function createCalendarLogic(controlId){var fromDate=$(controlId+" #cmFromDate").html();var untilDate=$(controlId+" #cmUntilDate").html();var from=new Date(formatDate(fromDate));var until=new Date(formatDate(untilDate));$(controlId+" #widgetCalendar").DatePicker({flat:true,format:"d.m.Y",date:[new Date(from),new Date(until)],calendars:3,mode:"range",starts:1,onChange:function(formated){console.log(formated);$(controlId+" #widgetField span").get(0).innerHTML=formated.join(" - ");$(controlId+" #inputFromDate").val(formated[0]); 629$(controlId+" #inputUntilDate").val(formated[1]);$("#analyticsDashboardHitsFiltered #refreshBtn").click()},onRender:function(date){var yesterday=new Date;yesterday.setDate(yesterday.getDate()-1);return{disabled:date.valueOf()>yesterday.valueOf()||date.valueOf()<(new Date("2015-01-01")).valueOf()}}});var state=false;$(controlId+" #widgetField\x3ea").bind("click",function(){$(controlId+" #widgetCalendar").stop().animate({height:state?0:$(controlId+" #widgetCalendar div.datepicker").get(0).offsetHeight}, 630500);state=!state;return false});$(controlId+" #widgetCalendar div.datepicker").css("position","absolute")}function resetDatePicker(){$("#inputFromDate").val(moment().subtract(1,"years").format("DD.MM.YYYY"));$("#inputUntilDate").val(moment().subtract(1,"days").format("DD.MM.YYYY"));$("#refreshBtn").click()}function formatDate(date){var dateSplit=date.split(".");return dateSplit[2]+"-"+dateSplit[1]+"-"+dateSplit[0]} 631function tableToCSV(tableId){let csv_data=[];let table=$(tableId);let siblings=table.siblings();let fileName="INDUSTR.COM - Who visited details";if(siblings!=null&&siblings.length>0)fileName=table.siblings()[0].innerText;let rows=table.find("tr");for(let i=0;i<rows.length;i++){let cols=rows[i].querySelectorAll("td,th");let csvrow=[];for(let j=0;j<cols.length;j++){let column=cols[j];if($(column).hasClass("long")){let aTag=$(cols[j]).find("a");if(aTag!=null&&aTag.length>0)csvrow.push(aTag[0].innerText); 632else csvrow.push(column.innerHTML)}else if(!$(column).hasClass("buttons"))csvrow.push(column.innerHTML)}csv_data.push(csvrow.join(";"))}csv_data=csv_data.join("\n");downloadCSVFile(csv_data,fileName)} 633function downloadCSVFile(csv_data,fileName){CSVFile=new Blob([""+csv_data],{type:"text/csv"});let temp_link=document.createElement("a");let fromDate=$("#cmFromDate")[0].innerText;let untilDate=$("#cmUntilDate")[0].innerText;let d=new Date($.now());let currentDate=d.getFullYear()+("0"+(d.getMonth()+1)).slice(-2)+("0"+d.getDate()).slice(-2);temp_link.download=fileName+" from "+fromDate+" to "+untilDate+", exported at "+currentDate+".csv";let url=window.URL.createObjectURL(CSVFile);temp_link.href=url; 634temp_link.style.display="none";document.body.appendChild(temp_link);temp_link.click();document.body.removeChild(temp_link)};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.