Jonathan Ouellette 580e90f6a2 initial add
2022-09-27 14:10:30 -07:00

26 lines
508 KiB
JavaScript

/*
* Kendo UI Complete v2013.3.1119 (http://kendoui.com)
* Copyright 2013 Telerik AD. All rights reserved.
*
* Kendo UI Complete commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx
* If you do not own a commercial license, this file shall be governed by the trial license terms.
*/
!function(define){return define([],function(){!function(e,t,n){function i(){}function r(e,t){if(t)return"'"+e.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var n=e.charAt(0),i=e.substring(1);return"="===n?"+("+i+")+":":"===n?"+e("+i+")+":";"+e+";o+="}function o(e,t,n){return e+="",t=t||2,n=t-e.length,n?V[t].substring(0,n)+e:e}function a(t,n){var i,r,o,a,s,l,c,d,u,h,p,f,g,m=xt.browser,v="rtl"==t.css("direction");return t.parent().hasClass("k-animation-container")?(f=t.parent(".k-animation-container"),g=f[0].style,f.is(":hidden")&&f.show(),i=yt.test(g.width)||yt.test(g.height),i||f.css({width:t.outerWidth(),height:t.outerHeight(),boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"})):(r=t.css(dt.support.transitions.css+"box-shadow")||t.css("box-shadow"),o=r?r.match(bt)||[0,0,0,0,0]:[0,0,0,0,0],a=mt.max(+o[3],+(o[4]||0)),s=-o[1]+a,l=+o[1]+a,c=+o[2]+a,d=t[0].style.width,u=t[0].style.height,h=yt.test(d),p=yt.test(u),m.opera&&(s=l=c=5),i=h||p,!h&&(!n||n&&d)&&(d=t.outerWidth()),!p&&(!n||n&&u)&&(u=t.outerHeight()),t.wrap(e("<div/>").addClass("k-animation-container").css({width:d,height:u,marginLeft:s*(v?1:-1),paddingLeft:s,paddingRight:l,paddingBottom:c})),i&&t.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})),m.msie&&mt.floor(m.version)<=7&&(t.css({zoom:1}),t.children(".k-menu").width(t.width())),t.parent()}function s(e){var t=1,n=arguments.length;for(t=1;n>t;t++)l(e,arguments[t]);return e}function l(e,t){var n,i,r,o,a=dt.data.ObservableArray,s=dt.data.DataSource;for(n in t)i=t[n],r=typeof i,r===St&&null!==i&&i.constructor!==Array&&i.constructor!==a&&i.constructor!==s?i instanceof Date?e[n]=new Date(i.getTime()):(o=e[n],e[n]=typeof o===St?o||{}:{},l(e[n],i)):r!==Dt&&(e[n]=i);return e}function c(e,t,i){for(var r in t)if(t.hasOwnProperty(r)&&t[r].test(e))return r;return i!==n?i:e}function d(e){return e.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})}function u(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})}function h(t,n){var i,r={};return document.defaultView&&document.defaultView.getComputedStyle?(i=document.defaultView.getComputedStyle(t,""),n&&e.each(n,function(e,t){r[t]=i.getPropertyValue(t)})):(i=t.currentStyle,n&&e.each(n,function(e,t){r[t]=i[u(t)]})),dt.size(r)||(r=i),r}function p(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&"toJSON"!=t&&n++;return n}function f(e,t,n){var i,r,o,a;return t||(t="offset"),i=e[t](),r=xt.mobileOS,xt.touch&&r.ios&&r.flatVersion<410&&(o="offset"==t?i:e.offset(),a=i.left==o.left&&i.top==o.top)?{top:i.top-window.scrollY,left:i.left-window.scrollX}:(!dt.support.pointers&&!dt.support.msPointers||n||(i.top-=window.pageYOffset-document.documentElement.scrollTop,i.left-=window.pageXOffset-document.documentElement.scrollLeft),i)}function g(e){var t={};return ht("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function m(e){return new dt.effects.Element(e)}function v(e,t,n,i){return typeof e===Ct&&(P(t)&&(i=t,t=400,n=!1),P(n)&&(i=n,n=!1),typeof t===Pt&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),ut({effects:{},duration:400,reverse:!1,init:gt,teardown:gt,hide:!1},e,{completeCallback:e.complete,complete:gt})}function x(t,n,i,r,o){for(var a,s=0,l=t.length;l>s;s++)a=e(t[s]),a.queue(function(){H.promise(a,v(n,i,r,o))});return t}function y(e,t,n,i,r,o){return H.transitionPromise(e,t,v(n,i,r,o))}function w(e,t,n,i){return t&&(t=t.split(" "),ht(t,function(t,n){e.toggleClass(n,i)})),e}function b(e){return(""+e).replace(N,"&amp;").replace(j,"&lt;").replace(U,"&gt;")}function _(e,i){var r;return 0===i.indexOf("data")&&(i=i.substring(4),i=i.charAt(0).toLowerCase()+i.substring(1)),i=i.replace(Z,"-$1"),r=e.getAttribute("data-"+dt.ns+i),null===r?r=n:"null"===r?r=null:"true"===r?r=!0:"false"===r?r=!1:_t.test(r)?r=parseFloat(r):X.test(r)&&!$.test(r)&&(r=t("("+r+")")),r}function k(t,i){var r,o,a={};for(r in i)o=_(t,r),o!==n&&(Y.test(r)&&(o=dt.template(e("#"+o).html())),a[r]=o);return a}function C(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&A(e)}function A(t){return!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")||e.expr.filters.hidden(this)}).length}function S(e,t){return new S.fn.init(e,t)}var T,P,D,B,M,E,I,L,z,O,R,V,F,H,N,j,U,G,W,q,Q,Y,X,$,Z,J,K,et,tt,nt,it,rt,ot,at,st,lt,ct,dt=window.kendo=window.kendo||{cultures:{}},ut=e.extend,ht=e.each,pt=e.isArray,ft=e.proxy,gt=e.noop,mt=Math,vt=window.JSON||{},xt={},yt=/%/,wt=/\{(\d+)(:[^\}]+)?\}/g,bt=/(\d+?)px\s*(\d+?)px\s*(\d+?)px\s*(\d+?)?/i,_t=/^(\+|-?)\d+(\.?)\d*$/,kt="function",Ct="string",At="number",St="object",Tt="null",Pt="boolean",Dt="undefined",Bt={},Mt={},Et=[].slice,It=window.Globalize;dt.version="2013.3.1119",i.extend=function(e){var t,n,i=function(){},r=this,o=e&&e.init?e.init:function(){r.apply(this,arguments)};i.prototype=r.prototype,n=o.fn=o.prototype=new i;for(t in e)n[t]=typeof e[t]!==St||e[t]instanceof Array||null===e[t]?e[t]:ut(!0,{},i.prototype[t],e[t]);return n.constructor=o,o.extend=r.extend,o},i.prototype._initOptions=function(e){this.options=s({},this.options,e)},P=dt.isFunction=function(e){return"function"==typeof e},D=function(){this._defaultPrevented=!0},B=function(){return this._defaultPrevented===!0},M=i.extend({init:function(){this._events={}},bind:function(e,t,i){var r,o,a,s,l,c=this,d=typeof e===Ct?[e]:e,u=typeof t===kt;if(t===n){for(r in e)c.bind(r,e[r]);return c}for(r=0,o=d.length;o>r;r++)e=d[r],s=u?t:t[e],s&&(i&&(a=s,s=function(){c.unbind(e,s),a.apply(c,arguments)}),l=c._events[e]=c._events[e]||[],l.push(s));return c},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,i,r,o,a=this,s=typeof e===Ct?[e]:e,l=typeof t===kt;for(n=0,i=s.length;i>n;n++)e=s[n],r=l?t:t[e],r&&(o=a._events[e]=a._events[e]||[],o.unshift(r));return a},trigger:function(e,t){var n,i,r=this,o=r._events[e];if(o){for(t=t||{},t.sender=r,t._defaultPrevented=!1,t.preventDefault=D,t.isDefaultPrevented=B,o=o.slice(),n=0,i=o.length;i>n;n++)o[n].call(r,t);return t._defaultPrevented===!0}return!1},unbind:function(e,t){var i,r=this,o=r._events[e];if(e===n)r._events={};else if(o)if(t)for(i=o.length-1;i>=0;i--)o[i]===t&&o.splice(i,1);else r._events[e]=[];return r}}),E=/^\w+/,I=/\$\{([^}]*)\}/g,L=/\\\}/g,z=/__CURLY__/g,O=/\\#/g,R=/__SHARP__/g,V=["","0","00","000","0000"],T={paramName:"data",useWithBlock:!0,render:function(e,t){var n,i,r="";for(n=0,i=t.length;i>n;n++)r+=e(t[n]);return r},compile:function(t,n){var i,o,a,s=ut({},this,n),l=s.paramName,c=l.match(E)[0],d=s.useWithBlock,u="var o,e=kendo.htmlEncode;";if(P(t))return 2===t.length?function(n){return t(e,{data:n}).join("")}:t;for(u+=d?"with("+l+"){":"",u+="o=",o=t.replace(L,"__CURLY__").replace(I,"#=e($1)#").replace(z,"}").replace(O,"__SHARP__").split("#"),a=0;a<o.length;a++)u+=r(o[a],0===a%2);u+=d?";}":";",u+="return o;",u=u.replace(R,"#");try{return i=Function(c,u),i._slotCount=Math.floor(o.length/2),i}catch(h){throw Error(dt.format("Invalid template:'{0}' Generated code:'{1}'",t,u))}}},function(){function e(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=s[e];return typeof t===Ct?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function t(o,a){var s,c,d,u,h,p,f=n,g=a[o];if(g&&typeof g===St&&typeof g.toJSON===kt&&(g=g.toJSON(o)),typeof r===kt&&(g=r.call(a,o,g)),p=typeof g,p===Ct)return e(g);if(p===At)return isFinite(g)?g+"":Tt;if(p===Pt||p===Tt)return g+"";if(p===St){if(!g)return Tt;if(n+=i,h=[],"[object Array]"===l.apply(g)){for(u=g.length,s=0;u>s;s++)h[s]=t(s,g)||Tt;return d=0===h.length?"[]":n?"[\n"+n+h.join(",\n"+n)+"\n"+f+"]":"["+h.join(",")+"]",n=f,d}if(r&&typeof r===St)for(u=r.length,s=0;u>s;s++)typeof r[s]===Ct&&(c=r[s],d=t(c,g),d&&h.push(e(c)+(n?": ":":")+d));else for(c in g)Object.hasOwnProperty.call(g,c)&&(d=t(c,g),d&&h.push(e(c)+(n?": ":":")+d));return d=0===h.length?"{}":n?"{\n"+n+h.join(",\n"+n)+"\n"+f+"}":"{"+h.join(",")+"}",n=f,d}}var n,i,r,a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},l={}.toString;typeof Date.prototype.toJSON!==kt&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?o(e.getUTCFullYear(),4)+"-"+o(e.getUTCMonth()+1)+"-"+o(e.getUTCDate())+"T"+o(e.getUTCHours())+":"+o(e.getUTCMinutes())+":"+o(e.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof vt.stringify!==kt&&(vt.stringify=function(e,o,a){var s;if(n="",i="",typeof a===At)for(s=0;a>s;s+=1)i+=" ";else typeof a===Ct&&(i=a);if(r=o,o&&typeof o!==kt&&(typeof o!==St||typeof o.length!==At))throw Error("JSON.stringify");return t("",{"":e})})}(),function(){function e(e){if(e){if(e.numberFormat)return e;if(typeof e===Ct){var t=dt.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function t(t){return t&&(t=e(t)),t||dt.cultures.current}function i(e){e.groupSizes=e.groupSize,e.percent.groupSizes=e.percent.groupSize,e.currency.groupSizes=e.currency.groupSize}function r(e,i,r){r=t(r);var a=r.calendars.standard,s=a.days,l=a.months;return i=a.patterns[i]||i,i.replace(c,function(t){var i;return"d"===t?i=e.getDate():"dd"===t?i=o(e.getDate()):"ddd"===t?i=s.namesAbbr[e.getDay()]:"dddd"===t?i=s.names[e.getDay()]:"M"===t?i=e.getMonth()+1:"MM"===t?i=o(e.getMonth()+1):"MMM"===t?i=l.namesAbbr[e.getMonth()]:"MMMM"===t?i=l.names[e.getMonth()]:"yy"===t?i=o(e.getFullYear()%100):"yyyy"===t?i=o(e.getFullYear(),4):"h"===t?i=e.getHours()%12||12:"hh"===t?i=o(e.getHours()%12||12):"H"===t?i=e.getHours():"HH"===t?i=o(e.getHours()):"m"===t?i=e.getMinutes():"mm"===t?i=o(e.getMinutes()):"s"===t?i=e.getSeconds():"ss"===t?i=o(e.getSeconds()):"f"===t?i=mt.floor(e.getMilliseconds()/100):"ff"===t?i=mt.floor(e.getMilliseconds()/10):"fff"===t?i=e.getMilliseconds():"tt"===t&&(i=e.getHours()<12?a.AM[0]:a.PM[0]),i!==n?i:t.slice(1,t.length-1)})}function a(e,i,r){r=t(r);var o,a,l,c,y,w,b,_,k,C,A,S,T,P,D,B,M,E,I,L,z,O,R,V=r.numberFormat,F=V.groupSize[0],H=V[g],N=V[f],j=V.decimals,U=V.pattern[0],G=[],W=0>e,q=p,Q=p,Y=-1;if(e===n)return p;if(!isFinite(e))return e;if(!i)return r.name.length?e.toLocaleString():""+e;if(y=d.exec(i)){if(i=y[1].toLowerCase(),a="c"===i,l="p"===i,(a||l)&&(V=a?V.currency:V.percent,F=V.groupSize[0],H=V[g],N=V[f],j=V.decimals,o=V.symbol,U=V.pattern[W?0:1]),c=y[2],c&&(j=+c),"e"===i)return c?e.toExponential(j):e.toExponential();if(l&&(e*=100),e=s(e,j),e=e.split(f),w=e[0],b=e[1],W&&(w=w.substring(1)),Q=w,_=w.length,_>=F)for(Q=p,C=0;_>C;C++)C>0&&0===(_-C)%F&&(Q+=H),Q+=w.charAt(C);if(b&&(Q+=N+b),"n"===i&&!W)return Q;for(e=p,C=0,A=U.length;A>C;C++)S=U.charAt(C),e+="n"===S?Q:"$"===S||"%"===S?o:S;return e}if(W&&(e=-e),(i.indexOf("'")>-1||i.indexOf('"')>-1||i.indexOf("\\")>-1)&&(i=i.replace(u,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return G.push(n),x})),i=i.split(";"),W&&i[1])i=i[1],P=!0;else if(0===e){if(i=i[2]||i[0],-1==i.indexOf(m)&&-1==i.indexOf(v))return i}else i=i[0];if(L=i.indexOf("%"),z=i.indexOf("$"),l=-1!=L,a=-1!=z,l&&(e*=100),a&&"\\"===i[z-1]&&(i=i.split("\\").join(""),a=!1),(a||l)&&(V=a?V.currency:V.percent,F=V.groupSize[0],H=V[g],N=V[f],j=V.decimals,o=V.symbol),T=i.indexOf(g)>-1,T&&(i=i.replace(h,p)),D=i.indexOf(f),A=i.length,-1!=D?(b=(""+e).split("e"),b=b[1]?s(e,Math.abs(b[1])):b[0],b=b.split(f)[1]||p,M=i.lastIndexOf(v)-D,B=i.lastIndexOf(m)-D,E=M>-1,I=B>-1,C=b.length,E||I||(i=i.substring(0,D)+i.substring(D+1),A=i.length,D=-1,C=0),E&&M>B?C=M:B>M&&(I&&C>B?C=B:E&&M>C&&(C=M)),C>-1&&(e=s(e,C))):e=s(e),B=i.indexOf(m),O=M=i.indexOf(v),Y=-1==B&&-1!=M?M:-1!=B&&-1==M?B:B>M?M:B,B=i.lastIndexOf(m),M=i.lastIndexOf(v),R=-1==B&&-1!=M?M:-1!=B&&-1==M?B:B>M?B:M,Y==A&&(R=Y),-1!=Y){if(Q=(""+e).split(f),w=Q[0],b=Q[1]||p,_=w.length,k=b.length,T)if(_===F&&D-O>_)w=H+w;else if(_>F){for(Q=p,C=0;_>C;C++)C>0&&0===(_-C)%F&&(Q+=H),Q+=w.charAt(C);w=Q}for(e=i.substring(0,Y),W&&!P&&(e+="-"),C=Y;A>C;C++){if(S=i.charAt(C),-1==D){if(_>R-C){e+=w;break}}else if(-1!=M&&C>M&&(q=p),_>=D-C&&D-C>-1&&(e+=w,C=D),D===C){e+=(b?N:p)+b,C+=R-D+1;continue}S===v?(e+=S,q=S):S===m&&(e+=q)}if(R>=Y&&(e+=i.substring(R+1)),a||l){for(Q=p,C=0,A=e.length;A>C;C++)S=e.charAt(C),Q+="$"===S||"%"===S?o:S;e=Q}if(A=G.length)for(C=0;A>C;C++)e=e.replace(x,G[C])}return e}var s,l,c=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|"[^"]*"|'[^']*'/g,d=/^(n|c|p|e)(\d*)$/i,u=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,h=/\,/g,p="",f=".",g=",",m="#",v="0",x="??",y="en-US",w={}.toString;dt.cultures["en-US"]={name:y,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0,twoDigitYearMax:2029}}},dt.culture=function(t){var r,o=dt.cultures;return t===n?o.current:(r=e(t)||o[y],r.calendar=r.calendars.standard,o.current=r,It&&i(r.numberFormat),n)},dt.findCulture=e,dt.getCulture=t,dt.culture(y),s=function(e,t){var n=Math.pow(10,t||0);return(Math.round(e*n)/n).toFixed(t)},l=function(e,t,i){if(t){if("[object Date]"===w.call(e))return r(e,t,i);if(typeof e===At)return a(e,t,i)}return e!==n?e:""},It&&(l=ft(It.format,It)),dt.format=function(e){var t=arguments;return e.replace(wt,function(e,n,i){var r=t[parseInt(n,10)+1];return l(r,i?i.substring(1):"")})},dt._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},dt._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},dt._round=s,dt.toString=l}(),function(){function t(e,t,n){return!(e>=t&&n>=e)}function i(e){return e.charAt(0)}function r(t){return e.map(t,i)}function o(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function a(e){for(var t=0,n=e.length,i=[];n>t;t++)i[t]=(e[t]+"").toLowerCase();return i}function s(e){var t,n={};for(t in e)n[t]=a(e[t]);return n}function l(e,i,a){if(!e)return null;var l,c,d,p,f,m,v,x,y,w,b,_,k,C=function(e){for(var t=0;i[O]===e;)t++,O++;return t>0&&(O-=1),t},A=function(t){var n=g[t]||RegExp("^\\d{1,"+t+"}"),i=e.substr(R,t).match(n);return i?(i=i[0],R+=i.length,parseInt(i,10)):null},S=function(t,n){for(var i,r,o,a=0,s=t.length;s>a;a++)if(i=t[a],r=i.length,o=e.substr(R,r),n&&(o=o.toLowerCase()),o==i)return R+=r,a+1;return null},T=function(){var t=!1;return e.charAt(R)===i[O]&&(R++,t=!0),t},P=a.calendars.standard,D=null,B=null,M=null,E=null,I=null,L=null,z=null,O=0,R=0,V=!1,F=new Date,H=P.twoDigitYearMax||2029,N=F.getFullYear();for(i||(i="d"),p=P.patterns[i],p&&(i=p),i=i.split(""),d=i.length;d>O;O++)if(l=i[O],V)"'"===l?V=!1:T();else if("d"===l){if(c=C("d"),P._lowerDays||(P._lowerDays=s(P.days)),M=3>c?A(2):S(P._lowerDays[3==c?"namesAbbr":"names"],!0),null===M||t(M,1,31))return null}else if("M"===l){if(c=C("M"),P._lowerMonths||(P._lowerMonths=s(P.months)),B=3>c?A(2):S(P._lowerMonths[3==c?"namesAbbr":"names"],!0),null===B||t(B,1,12))return null;B-=1}else if("y"===l){if(c=C("y"),D=A(c),null===D)return null;2==c&&("string"==typeof H&&(H=N+parseInt(H,10)),D=N-N%100+D,D>H&&(D-=100))}else if("h"===l){if(C("h"),E=A(2),12==E&&(E=0),null===E||t(E,0,11))return null}else if("H"===l){if(C("H"),E=A(2),null===E||t(E,0,23))return null}else if("m"===l){if(C("m"),I=A(2),null===I||t(I,0,59))return null}else if("s"===l){if(C("s"),L=A(2),null===L||t(L,0,59))return null}else if("f"===l){if(c=C("f"),z=A(c),null!==z&&c>3&&(z=parseInt((""+z).substring(0,3),10)),null===z||t(z,0,999))return null}else if("t"===l){if(c=C("t"),y=P.AM,w=P.PM,1===c&&(y=r(y),w=r(w)),f=S(w),!f&&!S(y))return null}else if("z"===l){if(m=!0,c=C("z"),"Z"===e.substr(R,1)){if(!v)return null;T();continue}if(x=e.substr(R,6).match(c>2?h:u),!x)return null;if(x=x[0],R=x.length,x=x.split(":"),b=parseInt(x[0],10),t(b,-12,13))return null;if(c>2&&(_=parseInt(x[1],10),isNaN(_)||t(_,0,59)))return null}else if("T"===l)v=T();else if("'"===l)V=!0,T();else if(!T())return null;return k=null!==E||null!==I||L||null,null===D&&null===B&&null===M&&k?(D=N,B=F.getMonth(),M=F.getDate()):(null===D&&(D=N),null===M&&(M=1)),f&&12>E&&(E+=12),m?(b&&(E+=-b),_&&(I+=-_),e=new Date(Date.UTC(D,B,M,E,I,L,z))):(e=new Date(D,B,M,E,I,L,z),o(e,E)),100>D&&e.setFullYear(D),e.getDate()!==M&&m===n?null:e}var c=/\u00A0/g,d=/[eE][\-+]?[0-9]+/,u=/[+|\-]\d{1,2}/,h=/[+|\-]\d{1,2}:\d{2}/,p=/^\/Date\((.*?)\)\/$/,f=["G","g","d","F","D","y","m","T","t"],g={2:/^\d{1,2}/,4:/^\d{4}/},m={}.toString;dt.parseDate=function(e,t,n){if("[object Date]"===m.call(e))return e;var i,r,o=0,a=null;if(e&&0===e.indexOf("/D")&&(a=p.exec(e)))return new Date(parseInt(a[1],10));if(n=dt.getCulture(n),!t){for(t=[],r=n.calendar.patterns,i=f.length;i>o;o++)t[o]=r[f[o]];o=0,t.push("yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","ddd MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.fffffffzzz","yyyy-MM-ddTHH:mm:ss.fffzzz","yyyy-MM-ddTHH:mm:sszzz","yyyy-MM-ddTHH:mmzzz","yyyy-MM-ddTHH:mmzz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd")}for(t=pt(t)?t:[t],i=t.length;i>o;o++)if(a=l(e,t[o],n))return a;return a},dt.parseInt=function(e,t){var n=dt.parseFloat(e,t);return n&&(n=0|n),n},dt.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===At)return e;e=""+e,t=dt.getCulture(t);var i,r,o=t.numberFormat,a=o.percent,s=o.currency,l=s.symbol,u=a.symbol,h=e.indexOf("-");return d.test(e)?(e=parseFloat(e.replace(o["."],".")),isNaN(e)&&(e=null),e):h>0?null:(h=h>-1,e.indexOf(l)>-1||n&&n.toLowerCase().indexOf("c")>-1?(o=s,i=o.pattern[0].replace("$",l).split("n"),e.indexOf(i[0])>-1&&e.indexOf(i[1])>-1&&(e=e.replace(i[0],"").replace(i[1],""),h=!0)):e.indexOf(u)>-1&&(r=!0,o=a,l=u),e=e.replace("-","").replace(l,"").replace(c," ").split(o[","].replace(c," ")).join("").replace(o["."],"."),e=parseFloat(e),isNaN(e)?e=null:h&&(e*=-1),e&&r&&(e/=100),e)},It&&(dt.parseDate=function(e,t,n){return"[object Date]"===m.call(e)?e:It.parseDate(e,t,n)},dt.parseFloat=function(e,t){return typeof e===At?e:e===n||null===e?null:(e=It.parseFloat(e,t),isNaN(e)?null:e)})}(),function(){var t,i,r,o,a,s,l;xt.scrollbar=function(){var e,t=document.createElement("div");return t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both",t.innerHTML="&nbsp;",document.body.appendChild(t),e=t.offsetWidth-t.scrollWidth,document.body.removeChild(t),e},xt.isRtl=function(t){return e(t).closest(".k-rtl").length>0},t=document.createElement("table");try{t.innerHTML="<tr><td></td></tr>",xt.tbodyInnerHtml=!0}catch(d){xt.tbodyInnerHtml=!1}xt.touch="ontouchstart"in window,xt.msPointers=navigator.msPointerEnabled,xt.pointers=navigator.pointerEnabled,i=xt.transitions=!1,r=xt.transforms=!1,o="HTMLElement"in window?HTMLElement.prototype:[],xt.hasHW3D="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix||"MozPerspective"in document.documentElement.style||"msPerspective"in document.documentElement.style,ht(["Moz","webkit","O","ms"],function(){var e,o=""+this,a=typeof t.style[o+"Transition"]===Ct;return a||typeof t.style[o+"Transform"]===Ct?(e=o.toLowerCase(),r={css:"ms"!=e?"-"+e+"-":"",prefix:o,event:"o"===e||"webkit"===e?e:""},a&&(i=r,i.event=i.event?i.event+"TransitionEnd":"transitionend"),!1):n}),xt.transforms=r,xt.transitions=i,xt.devicePixelRatio=window.devicePixelRatio===n?1:window.devicePixelRatio;try{xt.screenWidth=window.outerWidth||window.screen?window.screen.availWidth:window.innerWidth,xt.screenHeight=window.outerHeight||window.screen?window.screen.availHeight:window.innerHeight}catch(d){xt.screenWidth=window.screen.availWidth,xt.screenHeight=window.screen.availHeight}xt.detectOS=function(e){var t,n,i=!1,r=[],o=!/mobile safari/i.test(e),a={fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.(\d+(\.\d+)?)/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},s={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,meego:/meego|ffos/},l={tablet:/playbook|ipad|fire/i},d={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,chrome:/chrome/i,webkit:/webkit/i,ie:/MSIE|Windows\sPhone/i};for(n in a)if(a.hasOwnProperty(n)&&(r=e.match(a[n]))){if("windows"==n&&"plugins"in navigator)return!1;i={},i.device=n,i.tablet=c(n,l,!1),i.browser=c(e,d,"default"),i.name=c(n,s),i[i.name]=!0,i.majorVersion=r[2],i.minorVersion=r[3].replace("_","."),t=i.minorVersion.replace(".","").substr(0,2),i.flatVersion=i.majorVersion+t+Array(3-(t.length<3?t.length:2)).join("0"),i.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||typeof window.PhoneGap!==Dt||typeof window.cordova!==Dt,i.android&&(xt.devicePixelRatio<1.5&&i.flatVersion<400||o)&&(xt.screenWidth>800||xt.screenHeight>800)&&(i.tablet=n);break}return i},a=xt.mobileOS=xt.detectOS(navigator.userAgent),xt.wpDevicePixelRatio=a.wp?screen.width/320:0,xt.kineticScrollNeeded=a&&(xt.touch||xt.msPointers||xt.pointers),xt.hasNativeScrolling=!1,(a.ios&&a.majorVersion>4||a.android&&a.majorVersion>2||a.wp)&&(xt.hasNativeScrolling=a),xt.mouseAndTouchPresent=xt.touch&&!(xt.mobileOS.ios||xt.mobileOS.android),xt.detectBrowser=function(e){var t,n=!1,i=[],r={webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(t in r)if(r.hasOwnProperty(t)&&(i=e.match(r[t]))){n={},n[t]=!0,n[i[1].toLowerCase()]=!0,n.version=parseInt(document.documentMode||i[2],10);break}return n},xt.browser=xt.detectBrowser(navigator.userAgent),xt.zoomLevel=function(){try{return xt.touch?document.documentElement.clientWidth/window.innerWidth:xt.browser.msie&&xt.browser.version>=10?(top||window).outerWidth/(top||window).innerWidth:1}catch(e){return 1}},xt.cssBorderSpacing=n!==document.documentElement.style.borderSpacing&&!(xt.browser.msie&&xt.browser.version<8),function(t){var n,i=parseInt(t.version,10);t.msie?n="ie":t.mozilla?n="ff":t.safari?n="safari":t.webkit?n="webkit":t.opera&&(n="opera"),n&&e(document.documentElement).addClass("k-"+n+" k-"+n+i)}(xt.browser),xt.eventCapture=document.documentElement.addEventListener,s=document.createElement("input"),xt.placeholder="placeholder"in s,xt.input=function(){for(var e,t=["number","date","time","month","week","datetime","datetime-local"],n=t.length,i="test",r={},o=0;n>o;o++)e=t[o],s.setAttribute("type",e),s.value=i,r[e.replace("-","")]="text"!==s.type&&s.value!==i;return r}(),xt.stableSort=function(){var e=[0,1,2,3,4,5,6,7,8,9,10,11,12].sort(function(){return 0});return 0===e[0]&&1===e[1]&&2===e[2]&&3===e[3]&&4===e[4]&&5===e[5]&&6===e[6]&&7===e[7]&&8===e[8]&&9===e[9]&&10===e[10]&&11===e[11]&&12===e[12]}(),xt.matchesSelector=o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.matchesSelector||function(t){for(var n=document.querySelectorAll?(this.parentNode||document).querySelectorAll(t)||[]:e(t),i=n.length;i--;)if(n[i]==this)return!0;return!1},xt.pushState=window.history&&window.history.pushState,l=document.documentMode,xt.hashChange="onhashchange"in window&&!(xt.browser.msie&&(!l||8>=l))}(),F={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},H={},e.extend(H,{Element:function(t){this.element=e(t)},promise:function(e,t){e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.hide&&e.data("olddisplay",e.css("display")).hide(),t.init&&t.init(),t.completeCallback&&t.completeCallback(e),e.dequeue()},transitionPromise:function(e,t,n){var i=dt.wrap(e);return i.append(t),e.hide(),t.show(),n.completeCallback&&n.completeCallback(e),e}}),"kendoAnimate"in e.fn||ut(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,i){return x(this,e,t,n,i)},kendoAnimateTo:function(e,t,n,i,r){return y(this,e,t,n,i,r)},kendoAddClass:function(e,t){return dt.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return dt.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return dt.toggleClass(this,e,t,n)}}),N=/&/g,j=/</g,U=/>/g,G=function(e){return e.target},xt.touch&&(G=function(e){var t="originalEvent"in e?e.originalEvent.changedTouches:"changedTouches"in e?e.changedTouches:null;return t?document.elementFromPoint(t[0].clientX,t[0].clientY):e.target},ht(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(t,n){e.fn[n]=function(e){return this.bind(n,e)}})),xt.touch?xt.mobileOS?(xt.mousedown="touchstart",xt.mouseup="touchend",xt.mousemove="touchmove",xt.mousecancel="touchcancel",xt.click="touchend",xt.resize="orientationchange"):(xt.mousedown="mousedown touchstart",xt.mouseup="mouseup touchend",xt.mousemove="mousemove touchmove",xt.mousecancel="mouseleave touchcancel",xt.click="click",xt.resize="resize"):xt.pointers?(xt.mousemove="pointermove",xt.mousedown="pointerdown",xt.mouseup="pointerup",xt.mousecancel="pointercancel",xt.click="pointerup",xt.resize="orientationchange resize"):xt.msPointers?(xt.mousemove="MSPointerMove",xt.mousedown="MSPointerDown",xt.mouseup="MSPointerUp",xt.mousecancel="MSPointerCancel",xt.click="MSPointerUp",xt.resize="orientationchange resize"):(xt.mousemove="mousemove",xt.mousedown="mousedown",xt.mouseup="mouseup",xt.mousecancel="mouseleave",xt.click="click",xt.resize="resize"),W=function(e,t){var n,i,r,o,a=t||"d",s=1;for(i=0,r=e.length;r>i;i++)o=e[i],""!==o&&(n=o.indexOf("["),0!==n&&(-1==n?o="."+o:(s++,o="."+o.substring(0,n)+" || {})"+o.substring(n))),s++,a+=o+(r-1>i?" || {})":")"));return Array(s).join("(")+a},q=/^([a-z]+:)?\/\//i,ut(dt,{ui:dt.ui||{},fx:dt.fx||m,effects:dt.effects||H,mobile:dt.mobile||{},data:dt.data||{},dataviz:dt.dataviz||{ui:{roles:{}}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123},support:dt.support||xt,animate:dt.animate||x,ns:"",attr:function(e){return"data-"+dt.ns+e},wrap:a,deepExtend:s,getComputedStyles:h,size:p,toCamelCase:u,toHyphens:d,getOffset:dt.getOffset||f,parseEffects:dt.parseEffects||g,toggleClass:dt.toggleClass||w,directions:dt.directions||F,Observable:M,Class:i,Template:T,template:ft(T.compile,T),render:ft(T.render,T),stringify:ft(vt.stringify,vt),eventTarget:G,htmlEncode:b,isLocalUrl:function(e){return e&&!q.test(e)},expr:function(e,t,n){return e=e||"",typeof t==Ct&&(n=t,t=!1),n=n||"d",e&&"["!==e.charAt(0)&&(e="."+e),e=t?W(e.split("."),n):n+e},getter:function(e,t){return Bt[e]=Bt[e]||Function("d","return "+dt.expr(e,t))},setter:function(e){return Mt[e]=Mt[e]||Function("d,value",dt.expr(e)+"=value")},accessor:function(e){return{get:dt.getter(e),set:dt.setter(e)}},guid:function(){var e,t,n="";for(e=0;32>e;e++)t=0|16*mt.random(),(8==e||12==e||16==e||20==e)&&(n+="-"),n+=(12==e?4:16==e?8|3&t:t).toString(16);return n},roleSelector:function(e){return e.replace(/(\S+)/g,"["+dt.attr("role")+"=$1],").slice(0,-1)},triggeredByInput:function(e){return/^(label|input|textarea|select)$/i.test(e.target.tagName)},logToConsole:function(e){var t=window.console;n!==t&&t.log&&t.log(e)}}),Q=M.extend({init:function(e,t){var n=this;n.element=dt.jQuery(e).handler(n),M.fn.init.call(n),t=n.options=ut(!0,{},n.options,t),n.element.attr(dt.attr("role"))||n.element.attr(dt.attr("role"),(t.name||"").toLowerCase()),n.element.data("kendo"+t.prefix+t.name,n),n.bind(n.events,t)},events:[],options:{prefix:""},_hasBindingTarget:function(){return!!this.element[0].kendoBindingTarget},_tabindex:function(e){e=e||this.wrapper;var t=this.element,n="tabindex",i=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(i)?0:i)},setOptions:function(t){for(var n,i=this,r=0,o=i.events.length;o>r;r++)n=i.events[r],i.options[n]&&t[n]&&i.unbind(n,i.options[n]);e.extend(i.options,t),i.bind(i.events,t)},resize:function(e){var t=this.getSize(),n=this._size;(e||!n||t.width!==n.width||t.height!==n.height)&&(this._resize(t),this.trigger("resize",t),this._size=t)},getSize:function(){return dt.dimensions(this.element)},size:function(e){return e?(this.setSize(e),n):this.getSize()},setSize:e.noop,_resize:e.noop,destroy:function(){var e=this;e.element.removeData("kendo"+e.options.prefix+e.options.name),e.element.removeData("handler"),e.unbind()}}),dt.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},dt.notify=gt,Y=/template$/i,X=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,$=/^\{(\d+)(:[^\}]+)?\}/,Z=/([A-Z])/g,dt.initWidget=function(t,i,r){var o,a,s,l,c,d,u,h;if(r?r.roles&&(r=r.roles):r=dt.ui.roles,t=t.nodeType?t:t[0],d=t.getAttribute("data-"+dt.ns+"role"),d&&(s=-1===d.indexOf(".")?r[d]:dt.getter(d)(window))){for(h=_(t,"dataSource"),i=e.extend({},k(t,s.fn.options),i),h&&(i.dataSource=typeof h===Ct?dt.getter(h)(window):h),l=0,c=s.fn.events.length;c>l;l++)a=s.fn.events[l],u=_(t,a),u!==n&&(i[a]=dt.getter(u)(window));return o=e(t).data("kendo"+s.fn.options.prefix+s.fn.options.name),o?o.setOptions(i):o=new s(t,i),o}},dt.rolesFromNamespaces=function(e){var t,n,i=[];for(e[0]||(e=[dt.ui,dt.dataviz.ui]),t=0,n=e.length;n>t;t++)i[t]=e[t].roles;return ut.apply(null,[{}].concat(i.reverse()))},dt.init=function(t){var n=dt.rolesFromNamespaces(Et.call(arguments,1));e(t).find("[data-"+dt.ns+"role]").addBack().each(function(){dt.initWidget(this,{},n)})},dt.destroy=function(t){e(t).find("[data-"+dt.ns+"role]").addBack().each(function(){var t=dt.widgetInstance(e(this));t&&t.destroy()})},dt.resize=function(t){e(t).each(function(){var t,n=e(this);(n.is(":visible")||-1!==e.inArray(n.attr("data-role"),["slider","rangeslider"]))&&(n.is("[data-"+dt.ns+"role]")&&(t=dt.widgetInstance(n),t&&t.resize()),dt.resize(n.children()))})},dt.parseOptions=k,ut(dt.ui,{Widget:Q,roles:{},progress:function(t,n){var i,r,o,a,s=t.find(".k-loading-mask"),l=dt.support,c=l.browser;n?s.length||(i=l.isRtl(t),r=i?"right":"left",a=t.scrollLeft(),o=c.webkit?i?t[0].scrollWidth-t.width()-2*a:0:0,s=e("<div class='k-loading-mask'><span class='k-loading-text'>Loading...</span><div class='k-loading-image'/><div class='k-loading-color'/></div>").width("100%").height("100%").css("top",t.scrollTop()).css(r,Math.abs(a)+o).prependTo(t)):s&&s.remove()},plugin:function(t,i,r){var o,a=t.fn.options.name;i=i||dt.ui,r=r||"",i[a]=t,i.roles[a.toLowerCase()]=t,o="getKendo"+r+a,a="kendo"+r+a,e.fn[a]=function(i){var r,o=this;return typeof i===Ct?(r=Et.call(arguments,1),this.each(function(){var t,s,l=e.data(this,a);if(!l)throw Error(dt.format("Cannot call method '{0}' of {1} before it is initialized",i,a));if(t=l[i],typeof t!==kt)throw Error(dt.format("Cannot find method '{0}' of {1}",i,a));
return s=t.apply(l,r),s!==n?(o=s,!1):n})):this.each(function(){new t(this,i)}),o},e.fn[o]=function(){return this.data(a)}}}),J={bind:function(){return this}},K=Q.extend({init:function(e,t){Q.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){Q.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var e=this.element.closest(dt.roleSelector("view splitview modalview drawer"));return dt.widgetInstance(e,dt.mobile.ui)},container:function(){var e=this.element.closest(dt.roleSelector("view layout modalview drawer"));return dt.widgetInstance(e,dt.mobile.ui)||J}}),ut(dt.mobile,{init:function(e){dt.init(e,dt.mobile.ui,dt.ui,dt.dataviz.ui)},ui:{Widget:K,roles:{},plugin:function(e){dt.ui.plugin(e,dt.mobile.ui,"Mobile")}}}),dt.touchScroller=function(t,n){return e(t).map(function(t,i){return i=e(i),xt.kineticScrollNeeded&&dt.mobile.ui.Scroller&&!i.data("kendoMobileScroller")?(i.kendoMobileScroller(n),i.data("kendoMobileScroller")):!1})[0]},dt.preventDefault=function(e){e.preventDefault()},dt.widgetInstance=function(t,i){var r,o=t.data(dt.ns+"role");return"content"===o&&(o="scroller"),i||(i={roles:e.extend({},dt.mobile.ui.roles,dt.dataviz.ui.roles,dt.ui.roles)}),r=i.roles[o],r?t.data("kendo"+r.fn.options.prefix+r.fn.options.name):n},dt.onResize=function(t){var n=t;return xt.mobileOS.android&&(n=function(){setTimeout(t,600)}),e(window).on(xt.resize,n),n},dt.unbindResize=function(t){e(window).off(xt.resize,t)},dt.attrValue=function(e,t){return e.data(dt.ns+t)},dt.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},e.extend(e.expr[":"],{kendoFocusable:function(t){var n=e.attr(t,"tabindex");return C(t,!isNaN(n)&&n>-1)}}),et=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],tt="label, input, [data-rel=external]",nt={setupMouseMute:function(){var t,n=0,i=et.length,r=document.documentElement;if(!nt.mouseTrap&&xt.eventCapture)for(nt.mouseTrap=!0,nt.bustClick=!1,nt.captureMouse=!1,t=function(t){nt.captureMouse&&("click"===t.type?nt.bustClick&&!e(t.target).is(tt)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};i>n;n++)r.addEventListener(et[n],t,!0)},muteMouse:function(e){nt.captureMouse=!0,e.data.bustClick&&(nt.bustClick=!0),clearTimeout(nt.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(nt.mouseTrapTimeoutID),nt.mouseTrapTimeoutID=setTimeout(function(){nt.captureMouse=!1,nt.bustClick=!1},400)}},it={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},xt.touch&&(xt.mobileOS.ios||xt.mobileOS.android)?it={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:xt.pointers?it={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:xt.msPointers&&(it={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),!xt.msPointers||"onmspointerenter"in window||e.each({MSPointerEnter:"MSPointerOver",MSPointerLeave:"MSPointerOut"},function(t,n){e.event.special[t]={delegateType:n,bindType:n,handle:function(t){var i,r=this,o=t.relatedTarget,a=t.handleObj;return(!o||o!==r&&!e.contains(r,o))&&(t.type=a.origType,i=a.handler.apply(this,arguments),t.type=n),i}}}),rt=function(e){return it[e]||e},ot=/([^ ]+)/g,dt.applyEventMap=function(e,t){return e=e.replace(ot,rt),t&&(e=e.replace(ot,"$1."+t)),e},at=e.fn.on,ut(!0,S,e),S.fn=S.prototype=new e,S.fn.constructor=S,S.fn.init=function(t,n){return n&&n instanceof e&&!(n instanceof S)&&(n=S(n)),e.fn.init.call(this,t,n,st)},S.fn.init.prototype=S.fn,st=S(document),ut(S.fn,{handler:function(e){return this.data("handler",e),this},autoApplyNS:function(e){return this.data("kendoNS",e||dt.guid()),this},on:function(){var e,t,n,i,r,o,a=this,s=a.data("kendoNS");return 1===arguments.length?at.call(a,arguments[0]):(e=a,t=Et.call(arguments),typeof t[t.length-1]===Dt&&t.pop(),n=t[t.length-1],i=dt.applyEventMap(t[0],s),xt.mouseAndTouchPresent&&i.search(/mouse|click/)>-1&&this[0]!==document.documentElement&&(nt.setupMouseMute(),r=2===t.length?null:t[1],o=i.indexOf("click")>-1&&i.indexOf("touchend")>-1,at.call(this,{touchstart:nt.muteMouse,touchend:nt.unMuteMouse},r,{bustClick:o})),typeof n===Ct&&(e=a.data("handler"),n=e[n],t[t.length-1]=function(t){n.call(e,t)}),t[0]=i,at.apply(a,t),a)},kendoDestroy:function(e){return e=e||this.data("kendoNS"),e&&this.off("."+e),this}}),dt.jQuery=S,dt.eventMap=it,dt.timezone=function(){function e(e,t){var n,i,r,o=t[3],a=t[4],s=t[5],l=t[8];return l||(t[8]=l={}),l[e]?l[e]:(isNaN(a)?0===a.indexOf("last")?(n=new Date(Date.UTC(e,d[o]+1,1,s[0]-24,s[1],s[2],0)),i=u[a.substr(4,3)],r=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-r-(i>r?7:0))):a.indexOf(">=")>=0&&(n=new Date(Date.UTC(e,d[o],a.substr(5),s[0],s[1],s[2],0)),i=u[a.substr(0,3)],r=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-r+(r>i?7:0))):n=new Date(Date.UTC(e,d[o],a,s[0],s[1],s[2],0)),l[e]=n)}function t(t,n,i){var r,o,a;return(n=n[i])?(a=new Date(t).getUTCFullYear(),n=jQuery.grep(n,function(e){var t=e[0],n=e[1];return a>=t&&(n>=a||t==a&&"only"==n||"max"==n)}),n.push(t),n.sort(function(t,n){return"number"!=typeof t&&(t=Number(e(a,t))),"number"!=typeof n&&(n=Number(e(a,n))),t-n}),n[jQuery.inArray(t,n)-1]):(r=i.split(":"),o=0,r.length>1&&(o=60*r[0]+Number(r[1])),[-1e6,"max","-","Jan",1,[0,0,0],o,"-"])}function n(e,t,n){var i,r,o,a=t[n];if("string"==typeof a&&(a=t[a]),!a)throw Error('Timezone "'+n+'" is either incorrect, or kendo.timezones.min.js is not included.');for(i=a.length-1;i>=0&&(r=a[i][3],!(r&&e>r));i--);if(o=a[i+1],!o)throw Error('Timezone "'+n+'" not found on '+e+".");return o}function i(e,i,r,o){typeof e!=At&&(e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));var a=n(e,i,o);return{zone:a,rule:t(e,r,a[1])}}function r(e,t){var n,r,o;return"Etc/UTC"==t||"Etc/GMT"==t?0:(n=i(e,this.zones,this.rules,t),r=n.zone,o=n.rule,o?r[0]-o[6]:r[0])}function o(e,t){var n=i(e,this.zones,this.rules,t),r=n.zone,o=n.rule,a=r[2];return a.indexOf("/")>=0?a.split("/")[o&&o[6]?1:0]:a.indexOf("%s")>=0?a.replace("%s",o&&"-"!=o[7]?o[7]:""):a}function a(e,t,n){var i,r;return typeof t==Ct&&(t=this.offset(e,t)),typeof n==Ct&&(n=this.offset(e,n)),i=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),r=e.getTimezoneOffset(),new Date(e.getTime()+6e4*(r-i))}function s(e,t){return this.convert(e,e.getTimezoneOffset(),t)}function l(e,t){return this.convert(e,t,e.getTimezoneOffset())}function c(e){return this.apply(new Date(e),"Etc/UTC")}var d={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},u={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};return{zones:{},rules:{},offset:r,convert:a,apply:s,remove:l,abbr:o,toLocalDate:c}}(),dt.date=function(){function e(e,t){return 0===t&&23===e.getHours()?(e.setHours(e.getHours()+2),!0):!1}function t(t,n,i){var r=t.getHours();i=i||1,n=(n-t.getDay()+7*i)%7,t.setDate(t.getDate()+n),e(t,r)}function n(e,n,i){return e=new Date(e),t(e,n,i),e}function i(e){return new Date(e.getFullYear(),e.getMonth(),1)}function r(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=i(e),r=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return r&&t.setHours(n.getHours()+r/60),t}function o(t){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),e(t,0),t}function a(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function s(e){return e.getTime()-o(e)}function l(e,t,n){var i,r=s(t),o=s(n);return e&&r!=o?(t>=n&&(n+=m),i=s(e),r>i&&(i+=m),r>o&&(o+=m),i>=r&&o>=i):!0}function c(e,t,n){var i,r=t.getTime(),o=n.getTime();return r>=o&&(o+=m),i=e.getTime(),i>=r&&o>=i}function d(t,n){var i=t.getHours();return t=new Date(t),u(t,n*m),e(t,i),t}function u(e,t,n){var i,r=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-r,e.setTime(e.getTime()+i*g))}function h(){return o(new Date)}function p(e){return o(e).getTime()==h().getTime()}function f(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}var g=6e4,m=864e5;return{adjustDST:e,dayOfWeek:n,setDayOfWeek:t,getDate:o,isInDateRange:c,isInTimeRange:l,isToday:p,nextDay:function(e){return d(e,1)},previousDay:function(e){return d(e,-1)},toUtcTime:a,MS_PER_DAY:m,MS_PER_MINUTE:g,setTime:u,addDays:d,today:h,toInvariantTime:f,firstDayOfMonth:i,lastDayOfMonth:r,getMilliseconds:s}}(),dt.stripWhitespace=function(e){for(var t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,function(t){return t.parentNode==e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},!1);t.nextNode();)t.referenceNode&&!t.referenceNode.textContent.trim()&&t.referenceNode.parentNode.removeChild(t.referenceNode)},lt=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},dt.animationFrame=function(e){lt.call(window,e)},ct=[],dt.queueAnimation=function(e){ct[ct.length]=e,1===ct.length&&dt.runNextAnimation()},dt.runNextAnimation=function(){var e=ct.shift();dt.animationFrame(function(){e(),lt[0]&&dt.runNextAnimation()})},dt.parseQueryStringParams=function(e){for(var t=e.split("?")[1]||"",n={},i=t.split(/&|=/),r=i.length,o=0;r>o;o+=2)""!==i[o]&&(n[decodeURIComponent(i[o])]=decodeURIComponent(i[o+1]));return n}}(jQuery,eval),"undefined"==typeof kendo_module&&(kendo_module=function(){}),function(e,t){function n(e){return parseInt(e,10)}function i(e,t){return n(e.css(t))}function r(e){var t=e.effects;return"zoom"===t&&(t="zoom:in fade:in"),"fade"===t&&(t="fade:in"),"slide"===t&&(t="tile:left"),/^slide:(.+)$/.test(t)&&(t="tile:"+RegExp.$1),"overlay"===t&&(t="slideIn:left"),/^overlay:(.+)$/.test(t)&&(t="slideIn:"+RegExp.$1),e.effects=k.parseEffects(t),ut&&"tile:left"==t&&(e.previousDivisor=3),e}function o(e){var t,n=[];for(t in e)n.push(t);return n}function a(e){for(var t in e)-1!=N.indexOf(t)&&-1==j.indexOf(t)&&delete e[t];return e}function s(e,t){var n,i,r,o,a=[],s={};for(i in t)n=i.toLowerCase(),o=B&&-1!=N.indexOf(n),!P.hasHW3D&&o&&-1==j.indexOf(n)?delete t[i]:(r=t[i],o?a.push(i+"("+r+")"):s[i]=r);return a.length&&(s[at]=a.join(" ")),s}function l(e,t){var i,r,o;return B?(i=e.css(at),i==Y?"scale"==t?1:0:(r=i.match(RegExp(t+"\\s*\\(([\\d\\w\\.]+)")),o=0,r?o=n(r[1]):(r=i.match(z)||[0,0,0,0,0],t=t.toLowerCase(),R.test(t)?o=parseFloat(r[3]/r[2]):"translatey"==t?o=parseFloat(r[4]/r[2]):"scale"==t?o=parseFloat(r[2]):"rotate"==t&&(o=parseFloat(Math.atan2(r[2],r[1])))),o)):parseFloat(e.css(t))}function c(e){return e.charAt(0).toUpperCase()+e.substring(1)}function d(e,t){var n=g.extend(t),i=n.prototype.directions;C[c(e)]=n,C.Element.prototype[e]=function(e,t,i,r){return new n(this.element,e,t,i,r)},A(i,function(t,i){C.Element.prototype[e+c(i)]=function(e,t,r){return new n(this.element,i,e,t,r)}})}function u(e,n,i,r){d(e,{directions:v,startValue:function(e){return this._startValue=e,this},endValue:function(e){return this._endValue=e,this},shouldHide:function(){return this._shouldHide},prepare:function(e,o){var a,s,l=this,c="out"===this._direction,d=l.element.data(n),u=!(isNaN(d)||d==i);a=u?d:t!==this._startValue?this._startValue:c?i:r,s=t!==this._endValue?this._endValue:c?r:i,this._reverse?(e[n]=s,o[n]=a):(e[n]=a,o[n]=s),l._shouldHide=o[n]===r}})}function h(e,t){var n=k.directions[t].vertical,i=e[n?Z:$]()/2+"px";return y[t].replace("$size",i)}var p,f,g,m,v,x,y,w,b,_,k=window.kendo,C=k.effects,A=e.each,S=e.extend,T=e.proxy,P=k.support,D=P.browser,B=P.transforms,M=P.transitions,E={scale:0,scalex:0,scaley:0,scale3d:0},I={translate:0,translatex:0,translatey:0,translate3d:0},L=t!==document.documentElement.style.zoom&&!B,z=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,O=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,R=/translatex?$/i,V=/(zoom|fade|expand)(\w+)/,F=/(zoom|fade|expand)/,H=/[xy]$/i,N=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],j=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],U={rotate:"deg",scale:"",skew:"px",translate:"px"},G=B.css,W=Math.round,q="",Q="px",Y="none",X="auto",$="width",Z="height",J="hidden",K="origin",et="abortId",tt="overflow",nt="translate",it="position",rt="completeCallback",ot=G+"transition",at=G+"transform",st=G+"backface-visibility",lt=G+"perspective",ct="1500px",dt="perspective("+ct+")",ut=P.mobileOS&&7==P.mobileOS.majorVersion,ht={left:{reverse:"right",property:"left",transition:"translatex",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translatex",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translatey",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translatey",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1},vertical:{reverse:"vertical"},horizontal:{reverse:"horizontal"}};k.directions=ht,S(e.fn,{kendoStop:function(e,t){return M?C.stopQueue(this,e||!1,t||!1):this.stop(e,t)}}),B&&!M&&(A(j,function(n,i){e.fn[i]=function(n){if(t===n)return l(this,i);var r=e(this)[0],o=i+"("+n+U[i.replace(H,"")]+")";return-1==r.style.cssText.indexOf(at)?e(this).css(at,o):r.style.cssText=r.style.cssText.replace(RegExp(i+"\\(.*?\\)","i"),o),this},e.fx.step[i]=function(t){e(t.elem)[i](t.now)}}),p=e.fx.prototype.cur,e.fx.prototype.cur=function(){return-1!=j.indexOf(this.prop)?parseFloat(e(this.elem)[this.prop]()):p.apply(this,arguments)}),k.toggleClass=function(e,t,n,i){return t&&(t=t.split(" "),M&&(n=S({exclusive:"all",duration:400,ease:"ease-out"},n),e.css(ot,n.exclusive+" "+n.duration+"ms "+n.ease),setTimeout(function(){e.css(ot,"").css(Z)},n.duration)),A(t,function(t,n){e.toggleClass(n,i)})),e},k.parseEffects=function(e,t){var n={};return"string"==typeof e?A(e.split(" "),function(e,i){var r=!F.test(i),o=i.replace(V,function(e,t,n){return t+":"+n.toLowerCase()}),a=o.split(":"),s=a[1],l={};a.length>1&&(l.direction=t&&r?ht[s].reverse:s),n[a[0]]=l}):A(e,function(e){var i=this.direction;i&&t&&!F.test(e)&&(this.direction=ht[i].reverse),n[e]=this}),n},M&&S(C,{transition:function(t,n,i){var r,a,l,c,d=0,u=t.data("keys")||[];i=S({duration:200,ease:"ease-out",complete:null,exclusive:"all"},i),l=!1,c=function(){l||(l=!0,a&&(clearTimeout(a),a=null),t.removeData(et).dequeue().css(ot,"").css(ot),i.complete.call(t))},i.duration=e.fx?e.fx.speeds[i.duration]||i.duration:i.duration,r=s(t,n),e.merge(u,o(r)),t.data("keys",e.unique(u)).height(),t.css(ot,i.exclusive+" "+i.duration+"ms "+i.ease).css(ot),t.css(r).css(at),M.event&&(t.one(M.event,c),0!==i.duration&&(d=500)),a=setTimeout(c,i.duration+d),t.data(et,a),t.data(rt,c)},stopQueue:function(e,t,n){var i,r=e.data("keys"),o=!n&&r,a=e.data(rt);return o&&(i=k.getComputedStyles(e[0],r)),a&&a(),o&&e.css(i),e.removeData("keys").stop(t)}}),f=k.Class.extend({init:function(e,t){var n=this;n.element=e,n.effects=[],n.options=t,n.restore=[]},run:function(t){var n,i,r,o,l,c,d,u=this,h=t.length,p=u.element,f=u.options,g=e.Deferred(),m={},v={};for(u.effects=t,g.then(e.proxy(u,"complete")),p.data("animating",!0),i=0;h>i;i++)for(n=t[i],n.setReverse(f.reverse),n.setOptions(f),u.addRestoreProperties(n.restore),n.prepare(m,v),l=n.children(),r=0,c=l.length;c>r;r++)l[r].duration(f.duration).run();for(d in f.effects)S(v,f.effects[d].properties);for(p.is(":visible")||S(m,{display:p.data("olddisplay")||"block"}),B&&!f.reset&&(o=p.data("targetTransform"),o&&(m=S(o,m))),m=s(p,m),B&&!M&&(m=a(m)),p.css(m).css(at),i=0;h>i;i++)t[i].setup();return f.init&&f.init(),p.data("targetTransform",v),C.animate(p,v,S({},f,{complete:g.resolve})),g.promise()},stop:function(){e(this.element).kendoStop(!0,!0)},addRestoreProperties:function(e){for(var t,n=this.element,i=0,r=e.length;r>i;i++)t=e[i],this.restore.push(t),n.data(t)||n.data(t,n.css(t))},restoreCallback:function(){var e,t,n,i=this.element;for(e=0,t=this.restore.length;t>e;e++)n=this.restore[e],i.css(n,i.data(n))},complete:function(){var t=this,n=0,i=t.element,r=t.options,o=t.effects,a=o.length;for(i.removeData("animating").dequeue(),r.hide&&i.data("olddisplay",i.css("display")).hide(),this.restoreCallback(),L&&!B&&setTimeout(e.proxy(this,"restoreCallback"),0);a>n;n++)o[n].teardown();r.completeCallback&&r.completeCallback(i)}}),C.promise=function(e,t){var n,i,r,o=[],a=new f(e,t),s=k.parseEffects(t.effects);t.effects=s;for(r in s)n=C[c(r)],n&&(i=new n(e,s[r].direction),o.push(i));o[0]?a.run(o):(e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.init&&t.init(),e.dequeue(),a.complete())},C.transitionPromise=function(e,t,n){return C.animateTo(e,t,n),e},S(C,{animate:function(n,r,o){var s=o.transition!==!1;delete o.transition,M&&"transition"in C&&s?C.transition(n,r,o):B?n.animate(a(r),{queue:!1,show:!1,hide:!1,duration:o.duration,complete:o.complete}):n.each(function(){var n=e(this),a={};A(N,function(e,o){var s,l,c,d,u,h,p,f=r?r[o]+" ":null;f&&(l=r,o in E&&r[o]!==t?(s=f.match(O),B&&S(l,{scale:+s[0]})):o in I&&r[o]!==t&&(c=n.css(it),d="absolute"==c||"fixed"==c,n.data(nt)||(d?n.data(nt,{top:i(n,"top")||0,left:i(n,"left")||0,bottom:i(n,"bottom"),right:i(n,"right")}):n.data(nt,{top:i(n,"marginTop")||0,left:i(n,"marginLeft")||0})),u=n.data(nt),s=f.match(O),s&&(h=o==nt+"y"?0:+s[1],p=o==nt+"y"?+s[1]:+s[2],d?(isNaN(u.right)?isNaN(h)||S(l,{left:u.left+h}):isNaN(h)||S(l,{right:u.right-h}),isNaN(u.bottom)?isNaN(p)||S(l,{top:u.top+p}):isNaN(p)||S(l,{bottom:u.bottom-p})):(isNaN(h)||S(l,{marginLeft:u.left+h}),isNaN(p)||S(l,{marginTop:u.top+p})))),!B&&"scale"!=o&&o in l&&delete l[o],l&&S(a,l))}),D.msie&&delete a.scale,n.animate(a,{queue:!1,show:!1,hide:!1,duration:o.duration,complete:o.complete})})},animateTo:function(t,n,i){function o(e){n[0].style.cssText="",t.each(function(){this.style.cssText=""}),P.mobileOS.android||c.css(tt,s),u||d.css(it,l),i.completeCallback&&i.completeCallback.call(t,e)}var a,s,l,c=t.parents().filter(n.parents()).first(),d=e().add(t.parent()).add(n.parent()),u="absolute"==t.css(it);u||(l=d.css(it),d.css(it,"absolute")),i=r(i),P.mobileOS.android||(s=c.css(tt),c.css(tt,"hidden")),e.each(i.effects,function(e,t){a=a||t.direction}),i.complete=D.msie?function(){setTimeout(o,0)}:o,i.previous=i.reverse?n:t,i.reset=!0,(i.reverse?t:n).each(function(){e(this).kendoAnimate(S(!0,{},i)),i.complete=null,i.previous=null})}}),g=k.Class.extend({init:function(e,t){var n=this;n.element=e,n._direction=t,n.options={},n._additionalEffects=[],n.restore||(n.restore=[])},reverse:function(){return this._reverse=!0,this.run()},play:function(){return this._reverse=!1,this.run()},add:function(e){return this._additionalEffects.push(e),this},direction:function(e){return this._direction=e,this},duration:function(e){return this._duration=e,this},compositeRun:function(){var e=this,t=new f(e.element,{reverse:e._reverse,duration:e._duration}),n=e._additionalEffects.concat([e]);return t.run(n)},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,n,i=this,r=i.element,o=0,l=i.restore,c=l.length,d=e.Deferred(),u={},h={},p=i.children(),f=p.length;for(d.then(e.proxy(i,"_complete")),r.data("animating",!0),o=0;c>o;o++)t=l[o],r.data(t)||r.data(t,r.css(t));for(o=0;f>o;o++)p[o].duration(i._duration).run();return i.prepare(u,h),r.is(":visible")||S(u,{display:r.data("olddisplay")||"block"}),B&&(n=r.data("targetTransform"),n&&(u=S(n,u))),u=s(r,u),B&&!M&&(u=a(u)),r.css(u).css(at),i.setup(),r.data("targetTransform",h),C.animate(r,h,{duration:i._duration,complete:d.resolve}),d.promise()},stop:function(){var t=0,n=this.children(),i=n.length;for(t=0;i>t;t++)n[t].stop();return e(this.element).kendoStop(!0,!0),this},restoreCallback:function(){var e,t,n,i=this.element;for(e=0,t=this.restore.length;t>e;e++)n=this.restore[e],i.css(n,i.data(n))},_complete:function(){var t=this,n=t.element;n.removeData("animating").dequeue(),t.restoreCallback(),t.shouldHide()&&n.data("olddisplay",n.css("display")).hide(),L&&!B&&setTimeout(e.proxy(t,"restoreCallback"),0),t.teardown()},setOptions:function(e){S(!0,this.options,e)},children:function(){return[]},shouldHide:e.noop,setup:e.noop,prepare:e.noop,teardown:e.noop,directions:[],setReverse:function(e){return this._reverse=e,this}}),m=["left","right","up","down"],v=["in","out"],d("slideIn",{directions:m,divisor:function(e){return this.options.divisor=e,this},prepare:function(e,t){var n,i=this,r=i.element,o=ht[i._direction],a=-o.modifier*(o.vertical?r.outerHeight():r.outerWidth()),s=a/(i.options&&i.options.divisor||1)+Q,l="0px";i._reverse&&(n=e,e=t,t=n),B?(e[o.transition]=s,t[o.transition]=l):(e[o.property]=s,t[o.property]=l)}}),d("tile",{directions:m,init:function(e,t,n){g.prototype.init.call(this,e,t),this.options={previous:n}},previousDivisor:function(e){return this.options.previousDivisor=e,this},children:function(){var e=this,t=e._reverse,n=e.options.previous,i=e.options.previousDivisor||1,r=e._direction,o=[k.fx(e.element).slideIn(r).setReverse(t)];return n&&o.push(k.fx(n).slideIn(ht[r].reverse).divisor(i).setReverse(!t)),o}}),u("fade","opacity",1,0),u("zoom","scale",1,.01),d("slideMargin",{prepare:function(e,t){var n,i=this,r=i.element,o=i.options,a=r.data(K),s=o.offset,l=i._reverse;l||null!==a||r.data(K,parseFloat(r.css("margin-"+o.axis))),n=r.data(K)||0,t["margin-"+o.axis]=l?n:n+s}}),d("slideTo",{prepare:function(e,t){var n=this,i=n.element,r=n.options,o=r.offset.split(","),a=n._reverse;B?(t.translatex=a?0:o[0],t.translatey=a?0:o[1]):(t.left=a?0:o[0],t.top=a?0:o[1]),i.css("left")}}),d("expand",{directions:["horizontal","vertical"],restore:[tt],prepare:function(e,n){var i=this,r=i.element,o=i.options,a=i._reverse,s="vertical"===i._direction?Z:$,l=r[0].style[s],c=r.data(s),d=parseFloat(c||l),u=W(r.css(s,X)[s]());e.overflow=J,d=o&&o.reset?u||d:d||u,n[s]=(a?0:d)+Q,e[s]=(a?d:0)+Q,c===t&&r.data(s,l)},shouldHide:function(){return this._reverse},teardown:function(){var e=this,t=e.element,n="vertical"===e._direction?Z:$,i=t.data(n);(i==X||i===q)&&setTimeout(function(){t.css(n,X).css(n)},0)}}),x={position:"absolute",marginLeft:0,marginTop:0,scale:1},d("transfer",{init:function(e,t){this.element=e,this.options={target:t},this.restore=[]},setup:function(){this.element.appendTo(document.body)},prepare:function(e,t){var n,i,r,o,a,s,c,d,u,h,p,f,g,m=this,v=m.element,y=m.options,w=m._reverse,b=y.target,_=l(v,"scale"),k=b.offset(),C=b.outerHeight()/v.outerHeight();S(e,x),t.scale=1,v.css(at,"scale(1)").css(at),n=v.offset(),v.css(at,"scale("+_+")"),i=0,r=0,o=k.left-n.left,a=k.top-n.top,s=i+v.outerWidth(),c=r,d=o+b.outerWidth(),u=a,h=(a-r)/(o-i),p=(u-c)/(d-s),f=(r-c-h*i+p*s)/(p-h),g=r+h*(f-i),e.top=n.top,e.left=n.left,e.transformOrigin=f+Q+" "+g+Q,w?e.scale=C:t.scale=C}}),y={top:"rect(auto auto $size auto)",bottom:"rect($size auto auto auto)",left:"rect(auto $size auto auto)",right:"rect(auto auto auto $size)"},w={top:{start:"rotatex(0deg)",end:"rotatex(180deg)"},bottom:{start:"rotatex(-180deg)",end:"rotatex(0deg)"},left:{start:"rotatey(0deg)",end:"rotatey(-180deg)"},right:{start:"rotatey(180deg)",end:"rotatey(0deg)"}},d("turningPage",{directions:m,init:function(e,t,n){g.prototype.init.call(this,e,t),this._container=n},prepare:function(e,t){var n=this,i=n._reverse,r=i?ht[n._direction].reverse:n._direction,o=w[r];e.zIndex=1,n._clipInHalf&&(e.clip=h(n._container,k.directions[r].reverse)),e[st]=J,t[at]=dt+(i?o.start:o.end),e[at]=dt+(i?o.end:o.start)},setup:function(){this._container.append(this.element)},face:function(e){return this._face=e,this},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},clipInHalf:function(e){return this._clipInHalf=e,this},temporary:function(){return this.element.addClass("temp-page"),this}}),d("staticPage",{directions:m,init:function(e,t,n){g.prototype.init.call(this,e,t),this._container=n},restore:["clip"],prepare:function(e,t){var n=this,i=n._reverse?ht[n._direction].reverse:n._direction;e.clip=h(n._container,i),e.opacity=.999,t.opacity=1},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},face:function(e){return this._face=e,this}}),d("pageturn",{directions:["horizontal","vertical"],init:function(e,t,n,i){g.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i="horizontal"===t._direction?"left":"top",r=k.directions[i].reverse,o=t._reverse,a=n.face.clone(!0).removeAttr("id"),s=n.back.clone(!0).removeAttr("id"),l=t.element;return o&&(e=i,i=r,r=e),[k.fx(n.face).staticPage(i,l).face(!0).setReverse(o),k.fx(n.back).staticPage(r,l).setReverse(o),k.fx(a).turningPage(i,l).face(!0).clipInHalf(!0).temporary().setReverse(o),k.fx(s).turningPage(r,l).clipInHalf(!0).temporary().setReverse(o)]},prepare:function(e,t){e[lt]=ct,e.transformStyle="preserve-3d",e.opacity=.999,t.opacity=1},teardown:function(){this.element.find(".temp-page").remove()}}),d("flip",{directions:["horizontal","vertical"],init:function(e,t,n,i){g.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i="horizontal"===t._direction?"left":"top",r=k.directions[i].reverse,o=t._reverse,a=t.element;return o&&(e=i,i=r,r=e),[k.fx(n.face).turningPage(i,a).face(!0).setReverse(o),k.fx(n.back).turningPage(r,a).setReverse(o)]},prepare:function(e){e[lt]=ct,e.transformStyle="preserve-3d"}}),b=k.Class.extend({init:function(){var e=this;e._tickProxy=T(e._tick,e),e._started=!1},tick:e.noop,done:e.noop,onEnd:e.noop,onCancel:e.noop,start:function(){this.done()||(this._started=!0,k.animationFrame(this._tickProxy))},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var e=this;e._started&&(e.tick(),e.done()?(e._started=!1,e.onEnd()):k.queueAnimation(e._tickProxy))}}),_=b.extend({init:function(e){var t=this;S(t,e),b.fn.init.call(t)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,new Date-this.startDate)},moveTo:function(e){var t=this,n=t.movable;t.initial=n[t.axis],t.delta=e.location-t.initial,t.duration="number"==typeof e.duration?e.duration:300,t.tick=t._easeProxy(e.ease),t.startDate=new Date,t.start()},_easeProxy:function(e){var t=this;return function(){t.movable.moveAxis(t.axis,e(t.timePassed(),t.initial,t.delta,t.duration))}}}),S(_,{easeOutExpo:function(e,t,n,i){return e==i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t},easeOutBack:function(e,t,n,i,r){return r=1.70158,n*((e=e/i-1)*e*((r+1)*e+r)+1)+t}}),C.Animation=b,C.Transition=_,C.createEffect=d}(window.kendo.jQuery),function(e){function t(e,t){if(!t)return e;e+"/"===t&&(e=t);var n=RegExp("^"+t,"i");return n.test(e)||(e=t+"/"+e),s.protocol+"//"+(s.host+"/"+e).replace(/\/\/+/g,"/")}function n(e,t){return 0===t.indexOf(e)?t.substr(e.length).replace(/\/\//g,"/"):e}var i=window.kendo,r="change",o="back",a=i.support,s=window.location,l=window.history,c=50,d=/^#*/,u=window.document,h=i.Class.extend({init:function(e){this.root=e},navigate:function(e){return l.pushState({},u.title,t(e,this.root)),this.current()},current:function(){var e=s.pathname;return s.search&&(e+=s.search),n(this.root,e)},change:function(t){e(window).bind("popstate.kendo",t)},stop:function(){e(window).unbind("popstate.kendo")}}),p=i.Class.extend({navigate:function(e){return s.hash=e,e},change:function(t){a.hashChange?e(window).bind("hashchange.kendo",t):this._interval=setInterval(t,c)},stop:function(){e(window).unbind("popstate.kendo"),clearInterval(this._interval)},current:function(){return s.hash.replace(d,"")}}),f=i.Observable.extend({start:function(i){var c,f,g,m,v,x;if(i=i||{},this.bind([r,o],i),!this._started){if(this._started=!0,c=s.pathname,f=s.hash,g=a.pushState&&i.pushState,m=i.root||"/",v=m===c,this.adapter=g?new h(m):new p,i.pushState&&!a.pushState&&!v)return s.replace(m+"#"+n(m,c)),!0;g&&(m===c+"/"&&(x=m),v&&f&&(x=t(f.replace(d,""),m)),x&&l.replaceState({},u.title,x)),this.root=m,this.current=this.adapter.current(),this.locations=[this.current],this.adapter.change(e.proxy(this,"_checkUrl"))}},stop:function(){this._started&&(this.adapter.stop(),this.unbind(r),this._started=!1)},change:function(e){this.bind(r,e)},navigate:function(e,t){return"#:back"===e?(l.back(),undefined):(e=e.replace(d,""),this.current!==e&&this.current!==decodeURIComponent(e)&&(t||!this.trigger(r,{url:e}))&&(this.current=this.adapter.navigate(e),this.locations.push(this.current)),undefined)},_checkUrl:function(){var e=this.adapter.current(),t=e===this.locations[this.locations.length-2],n=this.current;if(this.current!==e&&this.current!==decodeURIComponent(e))return this.current=e,t&&this.trigger("back",{url:n,to:e})?(l.forward(),this.current=n,undefined):this.trigger(r,{url:e})?(t?l.forward():l.back(),this.current=n,undefined):(t?this.locations.pop():this.locations.push(e),undefined)}});i.absoluteURL=t,i.history=new f}(window.kendo.jQuery),function(){function e(e,t){return t?e:"([^/]+)"}function t(t){return RegExp("^"+t.replace(p,"\\$&").replace(d,"(?:$1)?").replace(u,e).replace(h,"(.*?)")+"$")}function n(e){return e.replace(/(\?.*)|(#.*)/g,"")}var i=window.kendo,r=i.history,o=i.Observable,a="init",s="routeMissing",l="change",c="back",d=/\((.*?)\)/g,u=/(\(\?)?:\w+/g,h=/\*\w+/g,p=/[\-{}\[\]+?.,\\\^$|#\s]/g,f=i.Class.extend({init:function(e,n){e instanceof RegExp||(e=t(e)),this.route=e,this._callback=n},callback:function(e){var t,r,o=0,a=i.parseQueryStringParams(e);for(e=n(e),t=this.route.exec(e).slice(1),r=t.length;r>o;o++)void 0!==t[o]&&(t[o]=decodeURIComponent(t[o]));t.push(a),this._callback.apply(null,t)},worksWith:function(e){return this.route.test(e)?(this.callback(e),!0):!1}}),g=o.extend({init:function(e){o.fn.init.call(this),this.routes=[],this.pushState=e?e.pushState:!1,e&&e.root&&(this.root=e.root),this.bind([a,s,l],e)},destroy:function(){r.unbind(l,this._urlChangedProxy),r.unbind(c,this._backProxy),this.unbind()},start:function(){var e,t=this,n=function(e){t._back(e)},i=function(e){t._urlChanged(e)};r.start({change:i,back:n,pushState:t.pushState,root:t.root}),e={url:r.current||"/"},t.trigger(a,e)||t._urlChanged(e),this._urlChangedProxy=i,this._backProxy=n},route:function(e,t){this.routes.push(new f(e,t))},navigate:function(e,t){i.history.navigate(e,t)},_back:function(e){this.trigger(c,{url:e.url,to:e.to})&&e.preventDefault()},_urlChanged:function(e){var t,n,r,o,a=e.url;if(a||(a="/"),this.trigger(l,{url:e.url,params:i.parseQueryStringParams(e.url)}))return e.preventDefault(),void 0;for(n=0,r=this.routes,o=r.length;o>n;n++)if(t=r[n],t.worksWith(a))return;this.trigger(s,{url:a,params:i.parseQueryStringParams(a)})&&e.preventDefault()}});i.Router=g}(),function(e){var t=window.kendo,n=t.Observable,i="SCRIPT",r="init",o="show",a="hide",s=/unrecognized expression/,l=n.extend({init:function(e,t){var i=this;t=t||{},n.fn.init.call(i),i.content=e,i.tagName=t.tagName||"div",i.model=t.model,i._wrap=t.wrap!==!1,i.bind([r,o,a],t)},render:function(n){var i=this,a=!i.element;return a&&(i.element=i._createElement()),n&&e(n).append(i.element),a&&(t.bind(i.element,i.model),i.trigger(r)),n&&i.trigger(o),i.element},hide:function(){this.element.detach(),this.trigger(a)},destroy:function(){var e=this.element;e&&(t.unbind(e),t.destroy(e),e.remove())},_createElement:function(){var t,n,r=this;try{n=e(document.getElementById(r.content)||r.content)}catch(o){s.test(o.message)&&(n=r.content)}return t=e("<"+r.tagName+" />").append(n[0].tagName===i?n.html():n),r._wrap||(t=t.contents()),t}}),c=l.extend({init:function(e,t){l.fn.init.call(this,e,t),this.regions={}},showIn:function(e,t){var n=this.regions[e];n&&n.hide(),t.render(this.render().find(e),n),this.regions[e]=t}});t.Layout=c,t.View=l}(window.kendo.jQuery),function(e,t){function n(r){var a,s,l,c,d,u,h,p,f=[],g=r.logic||"and",m=r.filters;
for(a=0,s=m.length;s>a;a++)r=m[a],l=r.field,h=r.value,u=r.operator,r.filters?r=n(r):(p=r.ignoreCase,l=l.replace(/\./g,"/"),r=o[u],r&&h!==t&&(c=e.type(h),"string"===c?(d="'{1}'",h=h.replace(/'/g,"''"),p===!0&&(l="tolower("+l+")")):d="date"===c?"datetime'{1:yyyy-MM-ddTHH:mm:ss}'":"{1}",r.length>3?"substringof"!==r?d="{0}({2},"+d+")":(d="{0}("+d+",{2})","doesnotcontain"===u&&(d+=" eq false")):d="{2} {0} "+d,r=i.format(d,r,h,l))),f.push(r);return r=f.join(" "+g+" "),f.length>1&&(r="("+r+")"),r}var i=window.kendo,r=e.extend,o={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",doesnotcontain:"substringof",endswith:"endswith",startswith:"startswith"},a={pageSize:e.noop,page:e.noop,filter:function(e,t){t&&(e.$filter=n(t))},sort:function(t,n){var i=e.map(n,function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir&&(t+=" desc"),t}).join(",");i&&(t.$orderby=i)},skip:function(e,t){t&&(e.$skip=t)},take:function(e,t){t&&(e.$top=t)}},s={read:{dataType:"jsonp"}};r(!0,i.data,{schemas:{odata:{type:"json",data:function(e){return e.d.results||[e.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(e,t){var n,r,o,l;if(e=e||{},t=t||"read",l=(this.options||s)[t],l=l?l.dataType:"json","read"===t){n={$inlinecount:"allpages"},"json"!=l&&(n.$format="json");for(o in e)a[o]?a[o](n,e[o]):n[o]=e[o]}else{if("json"!==l)throw Error("Only json dataType can be used for "+t+" operation.");if("destroy"!==t){for(o in e)r=e[o],"number"==typeof r&&(e[o]=r+"");n=i.stringify(e)}}return n}}}})}(window.kendo.jQuery),function(e,t){var n=window.kendo,i=e.isArray,r=e.isPlainObject,o=e.map,a=e.each,s=e.extend,l=n.getter,c=n.Class,d=c.extend({init:function(e){var t,l,c,d=this,u=e.total,h=e.model,p=e.parse,f=e.errors,g=e.serialize,m=e.data;h&&(r(h)&&(h.fields&&a(h.fields,function(e,t){t=r(t)&&t.field?s(t,{field:d.getter(t.field)}):{field:d.getter(t)},h.fields[e]=t}),t=h.id,t&&(l={},l[d.xpathToMember(t,!0)]={field:d.getter(t)},h.fields=s(l,h.fields),h.id=d.xpathToMember(t)),h=n.data.Model.define(h)),d.model=h),u&&("string"==typeof u?(u=d.getter(u),d.total=function(e){return parseInt(u(e),10)}):"function"==typeof u&&(d.total=u)),f&&("string"==typeof f?(f=d.getter(f),d.errors=function(e){return f(e)||null}):"function"==typeof f&&(d.errors=f)),m&&("string"==typeof m?(m=d.xpathToMember(m),d.data=function(e){var t,n=d.evaluate(e,m);return n=i(n)?n:[n],d.model&&h.fields?(t=new d.model,o(n,function(e){if(e){var n,i={};for(n in h.fields)i[n]=t._parse(n,h.fields[n].field(e));return i}})):n}):"function"==typeof m&&(d.data=m)),"function"==typeof p&&(c=d.parse,d.parse=function(e){var t=p.call(d,e);return c.call(d,t)}),"function"==typeof g&&(d.serialize=g)},total:function(e){return this.data(e).length},errors:function(e){return e?e.errors:null},serialize:function(e){return e},parseDOM:function(e){var n,r,o,a,s,l,c,d={},u=e.attributes,h=u.length;for(c=0;h>c;c++)l=u[c],d["@"+l.nodeName]=l.nodeValue;for(r=e.firstChild;r;r=r.nextSibling)o=r.nodeType,3===o||4===o?d["#text"]=r.nodeValue:1===o&&(n=this.parseDOM(r),a=r.nodeName,s=d[a],i(s)?s.push(n):s=s!==t?[s,n]:n,d[a]=s);return d},evaluate:function(e,t){for(var n,r,o,a,s,l=t.split(".");n=l.shift();)if(e=e[n],i(e)){for(r=[],t=l.join("."),s=0,o=e.length;o>s;s++)a=this.evaluate(e[s],t),a=i(a)?a:[a],r.push.apply(r,a);return r}return e},parse:function(t){var n,i,r={};return n=t.documentElement||e.parseXML(t).documentElement,i=this.parseDOM(n),r[n.nodeName]=i,r},xpathToMember:function(e,t){return e?(e=e.replace(/^\//,"").replace(/\//g,"."),e.indexOf("@")>=0?e.replace(/\.?(@.*)/,t?"$1":'["$1"]'):e.indexOf("text()")>=0?e.replace(/(\.?text\(\))/,t?"#text":'["#text"]'):e):""},getter:function(e){return l(this.xpathToMember(e),!0)}});e.extend(!0,n.data,{XmlDataReader:d,readers:{xml:d}})}(window.kendo.jQuery),function(e,t){function n(e,t,n,i){return function(r){var o,a={};for(o in r)a[o]=r[o];a.field=i?n+"."+r.field:n,t==vt&&e._notifyChange&&e._notifyChange(a),e.trigger(t,a)}}function i(t,n){if(t===n)return!0;var r,o=e.type(t),a=e.type(n);if(o!==a)return!1;if("date"===o)return t.getTime()===n.getTime();if("object"!==o&&"array"!==o)return!1;for(r in t)if(!i(t[r],n[r]))return!1;return!0}function r(e,t){var n,i;for(i in e){if(n=e[i],et(n)&&n.field&&n.field===t)return n;if(n===t)return n}return null}function o(e){this.data=e||[]}function a(e,n){if(e){var i=typeof e===ut?{field:e,dir:n}:e,r=nt(i)?i:i!==t?[i]:[];return it(r,function(e){return!!e.dir})}}function s(e){var t,n,i,r,o=e.filters;if(o)for(t=0,n=o.length;n>t;t++)i=o[t],r=i.operator,r&&typeof r===ut&&(i.operator=H[r.toLowerCase()]||r),s(i)}function l(e){return e&&!tt(e)?((nt(e)||!e.filters)&&(e={logic:"and",filters:nt(e)?e:[e]}),s(e),e):t}function c(e){return nt(e)?e:[e]}function d(e,n){var i=typeof e===ut?{field:e,dir:n}:e,r=nt(i)?i:i!==t?[i]:[];return O(r,function(e){return{field:e.field,dir:e.dir||"asc",aggregates:e.aggregates}})}function u(e,t){return e&&e.getTime&&t&&t.getTime?e.getTime()===t.getTime():e===t}function h(e,t,n,i,r){var o,a,s,l,c;for(t=t||[],l=t.length,o=0;l>o;o++)a=t[o],s=a.aggregate,c=a.field,e[c]=e[c]||{},e[c][s]=N[s.toLowerCase()](e[c][s],n,st.accessor(c),i,r)}function p(e){return"number"==typeof e&&!isNaN(e)}function f(e){var t,n=e.length,i=Array(n);for(t=0;n>t;t++)i[t]=e[t].toJSON();return i}function g(e,t){t=t||{};var n=new o(e),i=t.aggregate,r=t.filter;return r&&(n=n.filter(r)),n.aggregate(i)}function m(e,t,n,i,r){var o,a,s,l,c;for(l=0,c=e.length;c>l;l++){o=e[l];for(a in t)s=r[a],s&&s!==a&&(o[s]=t[a](o),delete o[a])}}function v(e,t,n,i,r){var o,a,s,l,c;for(l=0,c=e.length;c>l;l++){o=e[l];for(a in t)o[a]=n._parse(a,t[a](o)),s=r[a],s&&s!==a&&delete o[s]}}function x(e,t,n,i,r){var o,a,s,l;for(a=0,l=e.length;l>a;a++)o=e[a],s=i[o.field],s&&s!=o.field&&(o.field=s),o.value=n._parse(o.field,o.value),o.hasSubgroups?x(o.items,t,n,i,r):v(o.items,t,n,i,r)}function y(e,t,n,i,r,o){return function(a){return a=e(a),a&&!tt(i)&&("[object Array]"===Ot.call(a)||a instanceof Nt||(a=[a]),n(a,i,new t,r,o)),a||[]}}function w(e,t,n,i){for(var r,o,a=0;t.length&&i&&(r=t[a],o=r.items,e&&e.field===r.field&&e.value===r.value?(e.hasSubgroups&&e.items.length?w(e.items[e.items.length-1],r.items,n,i):(o=o.slice(n,i),i-=o.length,e.items=e.items.concat(o)),t.splice(a--,1)):(o=o.slice(n,i),i-=o.length,r.items=o,r.items.length||(t.splice(a--,1),i-=n)),n=0,!(++a>=t.length)););a<t.length&&t.splice(a,t.length-a)}function b(e){var t,n,i=[];for(t=0,n=e.length;n>t;t++)i=e[t].hasSubgroups?i.concat(b(e[t].items)):i.concat(e[t].items.slice());return i}function _(e,t){var n,i,r,o;if(t)for(n=0,i=e.length;i>n;n++)r=e[n],o=r.items,r.hasSubgroups?_(o,t):!o.length||o[0]instanceof t||(o.type=t,o.wrapAll(o,o))}function k(e,t){var n,i;for(n=0,i=e.length;i>n;n++)if(e[n].hasSubgroups){if(k(e[n].items,t))return!0}else if(t(e[n].items,e[n]))return!0}function C(e,t){var n,i;for(n=0,i=e.length;i>n;n++)if(e[n].uid==t.uid)return t=e[n],e.splice(n,1),t}function A(e,t){var n,i,r,o;for(r=e.length-1,o=0;r>=o;r--)i=e[r],n={value:t.get(i.field),field:i.field,items:n?[n]:[t],hasSubgroups:!!n,aggregates:{}};return n}function S(e,t){return t?P(e,function(e){return e[t.idField]===t.id}):-1}function T(e,t){return t?P(e,function(e){return e.uid==t.uid}):-1}function P(e,t){var n,i;for(n=0,i=e.length;i>n;n++)if(t(e[n]))return n;return-1}function D(e,t){var n,i;return e&&!tt(e)?(n=e[t],i=et(n)?n.from||n.field||t:e[t]||t,lt(i)?t:i):t}function B(e,t){var n,i,r,o={};for(r in e)"filters"!==r&&(o[r]=e[r]);if(e.filters)for(o.filters=[],n=0,i=e.filters.length;i>n;n++)o.filters[n]=B(e.filters[n],t);else o.field=D(t.fields,o.field);return o}function M(e,t){var n,i,r,o,a,s=[];for(n=0,i=e.length;i>n;n++){r={},o=e[n];for(a in o)r[a]=o[a];r.field=D(t.fields,r.field),r.aggregates&&nt(r.aggregates)&&(r.aggregates=M(r.aggregates,t)),s.push(r)}return s}function E(t,n){var i,r,o,a,s,l=e(t)[0].children,c=[],d=n[0],u=n[1];for(i=0,r=l.length;r>i;i++)o={},s=l[i],s.disabled||(o[d.field]=s.text,a=s.attributes.value,a=a&&a.specified?s.value:s.text,o[u.field]=a,c.push(o));return c}function I(t,n){var i,r,o,a,s,l,c,d=e(t)[0].tBodies[0],u=d?d.rows:[],h=n.length,p=[];for(i=0,r=u.length;r>i;i++){for(s={},c=!0,a=u[i].cells,o=0;h>o;o++)l=a[o],"th"!==l.nodeName.toLowerCase()&&(c=!1,s[n[o].field]=l.innerHTML);c||p.push(s)}return p}function L(e){return function(){var t=this._data,n=q.fn[e].apply(this,Lt.call(arguments));return this._data!=t&&this._attachBubbleHandlers(),n}}function z(t,n){function i(e,t){return e.filter(t).add(e.find(t))}var r,o,a,s,l,c,d,u,h=e(t).children(),p=[],f=n[0].field,g=n[1]&&n[1].field,m=n[2]&&n[2].field,v=n[3]&&n[3].field;for(r=0,o=h.length;o>r;r++)a={_loaded:!0},s=h.eq(r),c=s[0].firstChild,u=s.children(),t=u.filter("ul"),u=u.filter(":not(ul)"),l=s.attr("data-id"),l&&(a.id=l),c&&(a[f]=3==c.nodeType?c.nodeValue:u.text()),g&&(a[g]=i(u,"a").attr("href")),v&&(a[v]=i(u,"img").attr("src")),m&&(d=i(u,".k-sprite").prop("className"),a[m]=d&&e.trim(d.replace("k-sprite",""))),t.length&&(a.items=z(t.eq(0),n)),"true"==s.attr("data-hasChildren")&&(a.hasChildren=!0),p.push(a);return p}var O,R,V,F,H,N,j,U,G,W,q,Q,Y,X,$,Z,J=e.extend,K=e.proxy,et=e.isPlainObject,tt=e.isEmptyObject,nt=e.isArray,it=e.grep,rt=e.ajax,ot=e.each,at=e.noop,st=window.kendo,lt=st.isFunction,ct=st.Observable,dt=st.Class,ut="string",ht="function",pt="create",ft="read",gt="update",mt="destroy",vt="change",xt="sync",yt="get",wt="error",bt="requestStart",_t="progress",kt="requestEnd",Ct=[pt,ft,gt,mt],At=function(e){return e},St=st.getter,Tt=st.stringify,Pt=Math,Dt=[].push,Bt=[].join,Mt=[].pop,Et=[].splice,It=[].shift,Lt=[].slice,zt=[].unshift,Ot={}.toString,Rt=st.support.stableSort,Vt=/^\/Date\((.*?)\)\/$/,Ft=/(\r+|\n+)/g,Ht=/(?=['\\])/g,Nt=ct.extend({init:function(e,t){var n=this;n.type=t||jt,ct.fn.init.call(n),n.length=e.length,n.wrapAll(e,n)},toJSON:function(){var e,t,n=this.length,i=Array(n);for(e=0;n>e;e++)t=this[e],t instanceof jt&&(t=t.toJSON()),i[e]=t;return i},parent:at,wrapAll:function(e,t){var n,i,r=this,o=function(){return r};for(t=t||[],n=0,i=e.length;i>n;n++)t[n]=r.wrap(e[n],o);return t},wrap:function(e,t){var n,i=this;return null!==e&&"[object Object]"===Ot.call(e)&&(n=e instanceof i.type||e instanceof Wt,n||(e=e instanceof jt?e.toJSON():e,e=new i.type(e)),e.parent=t,e.bind(vt,function(e){i.trigger(vt,{field:e.field,node:e.node,index:e.index,items:e.items||[this],action:e.node?e.action||"itemchange":"itemchange"})})),e},push:function(){var e,t=this.length,n=this.wrapAll(arguments);return e=Dt.apply(this,n),this.trigger(vt,{action:"add",index:t,items:n}),e},slice:Lt,join:Bt,pop:function(){var e=this.length,t=Mt.apply(this);return e&&this.trigger(vt,{action:"remove",index:e-1,items:[t]}),t},splice:function(e,t,n){var i,r,o,a=this.wrapAll(Lt.call(arguments,2));if(i=Et.apply(this,[e,t].concat(a)),i.length)for(this.trigger(vt,{action:"remove",index:e,items:i}),r=0,o=i.length;o>r;r++)i[r].children&&i[r].unbind(vt);return n&&this.trigger(vt,{action:"add",index:e,items:a}),i},shift:function(){var e=this.length,t=It.apply(this);return e&&this.trigger(vt,{action:"remove",index:0,items:[t]}),t},unshift:function(){var e,t=this.wrapAll(arguments);return e=zt.apply(this,t),this.trigger(vt,{action:"add",index:0,items:t}),e},indexOf:function(e){var t,n,i=this;for(t=0,n=i.length;n>t;t++)if(i[t]===e)return t;return-1},forEach:function(e){for(var t=0,n=this.length;n>t;t++)e(this[t],t,this)},map:function(e){for(var t=0,n=[],i=this.length;i>t;t++)n[t]=e(this[t],t,this);return n},filter:function(e){for(var t,n=0,i=[],r=this.length;r>n;n++)t=this[n],e(t,n,this)&&(i[i.length]=t);return i},find:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],e(t,n,this))return t},every:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],!e(t,n,this))return!1;return!0},some:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],e(t,n,this))return!0;return!1},remove:function(e){this.splice(this.indexOf(e),1)},empty:function(){this.splice(0,this.length)}}),jt=ct.extend({init:function(e){var t,n,i=this,r=function(){return i};ct.fn.init.call(this);for(n in e)t=e[n],"_"!=n.charAt(0)&&(t=i.wrap(t,n,r)),i[n]=t;i.uid=st.guid()},shouldSerialize:function(e){return this.hasOwnProperty(e)&&"_events"!==e&&typeof this[e]!==ht&&"uid"!==e},forEach:function(e){for(var t in this)this.shouldSerialize(t)&&e(this[t],t)},toJSON:function(){var e,t,n={};for(t in this)this.shouldSerialize(t)&&(e=this[t],(e instanceof jt||e instanceof Nt)&&(e=e.toJSON()),n[t]=e);return n},get:function(e){var t,n=this;return n.trigger(yt,{field:e}),t="this"===e?n:st.getter(e,!0)(n)},_set:function(e,t){var n,i,r,o=this,a=e.indexOf(".")>=0;if(a)for(n=e.split("."),i="";n.length>1;){if(i+=n.shift(),r=st.getter(i,!0)(o),r instanceof jt)return r.set(n.join("."),t),a;i+="."}return st.setter(e)(o,t),a},set:function(e,t){var n=this,i=st.getter(e,!0)(n);i!==t&&(n.trigger("set",{field:e,value:t})||(!n._set(e,n.wrap(t,e,function(){return n}))||e.indexOf("(")>=0||e.indexOf("[")>=0)&&n.trigger(vt,{field:e}))},parent:at,wrap:function(e,t,i){var r,o,a=this,s=Ot.call(e);return null==e||"[object Object]"!==s&&"[object Array]"!==s||(r=e instanceof Nt,o=e instanceof q,"[object Object]"!==s||o||r?("[object Array]"===s||r||o)&&(r||o||(e=new Nt(e)),e.parent()!=i()&&e.bind(vt,n(a,vt,t,!1))):(e instanceof jt||(e=new jt(e)),e.parent()!=i()&&(e.bind(yt,n(a,yt,t,!0)),e.bind(vt,n(a,vt,t,!0)))),e.parent=i),e}}),Ut={number:function(e){return st.parseFloat(e)},date:function(e){return st.parseDate(e)},"boolean":function(e){return typeof e===ut?"true"===e.toLowerCase():null!=e?!!e:e},string:function(e){return null!=e?e+"":e},"default":function(e){return e}},Gt={string:"",number:0,date:new Date,"boolean":!1,"default":""},Wt=jt.extend({init:function(n){var i=this;(!n||e.isEmptyObject(n))&&(n=e.extend({},i.defaults,n)),jt.fn.init.call(i,n),i.dirty=!1,i.idField&&(i.id=i.get(i.idField),i.id===t&&(i.id=i._defaultId))},shouldSerialize:function(e){return jt.fn.shouldSerialize.call(this,e)&&"uid"!==e&&!("id"!==this.idField&&"id"===e)&&"dirty"!==e&&"_accessors"!==e},_parse:function(e,t){var n,i=this,o=e,a=i.fields||{};return e=a[e],e||(e=r(a,o)),e&&(n=e.parse,!n&&e.type&&(n=Ut[e.type.toLowerCase()])),n?n(t):t},_notifyChange:function(e){var t=e.action;("add"==t||"remove"==t)&&(this.dirty=!0)},editable:function(e){return e=(this.fields||{})[e],e?e.editable!==!1:!0},set:function(e,t,n){var r=this;r.editable(e)&&(t=r._parse(e,t),i(t,r.get(e))||(r.dirty=!0,jt.fn.set.call(r,e,t,n)))},accept:function(e){var t,n,i=this,r=function(){return i};for(t in e)n=e[t],"_"!=t.charAt(0)&&(n=i.wrap(e[t],t,r)),i._set(t,n);i.idField&&(i.id=i.get(i.idField)),i.dirty=!1},isNew:function(){return this.id===this._defaultId}});Wt.define=function(e,n){n===t&&(n=e,e=Wt);var i,r,o,a,s,l,c,d,u=J({defaults:{}},n),h={},p=u.id;if(p&&(u.idField=p),u.id&&delete u.id,p&&(u.defaults[p]=u._defaultId=""),"[object Array]"===Ot.call(u.fields)){for(l=0,c=u.fields.length;c>l;l++)o=u.fields[l],typeof o===ut?h[o]={}:o.field&&(h[o.field]=o);u.fields=h}for(r in u.fields)o=u.fields[r],a=o.type||"default",s=null,d=r,r=typeof o.field===ut?o.field:r,o.nullable||(s=u.defaults[d!==r?d:r]=o.defaultValue!==t?o.defaultValue:Gt[a.toLowerCase()]),n.id===r&&(u._defaultId=s),u.defaults[d!==r?d:r]=s,o.parse=o.parse||Ut[a];return i=e.extend(u),i.define=function(e){return Wt.define(i,e)},u.fields&&(i.fields=u.fields,i.idField=u.idField),i},R={selector:function(e){return lt(e)?e:St(e)},compare:function(e){var t=this.selector(e);return function(e,n){return e=t(e),n=t(n),null==e&&null==n?0:null==e?-1:null==n?1:e.localeCompare?e.localeCompare(n):e>n?1:n>e?-1:0}},create:function(e){var t=e.compare||this.compare(e.field);return"desc"==e.dir?function(e,n){return t(n,e,!0)}:t},combine:function(e){return function(t,n){var i,r,o=e[0](t,n);for(i=1,r=e.length;r>i;i++)o=o||e[i](t,n);return o}}},V=J({},R,{asc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),r=t(n);return i&&i.getTime&&r&&r.getTime&&(i=i.getTime(),r=r.getTime()),i===r?e.__position-n.__position:null==i?-1:null==r?1:i.localeCompare?i.localeCompare(r):i>r?1:-1}},desc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),r=t(n);return i&&i.getTime&&r&&r.getTime&&(i=i.getTime(),r=r.getTime()),i===r?e.__position-n.__position:null==i?1:null==r?-1:r.localeCompare?r.localeCompare(i):r>i?1:-1}},create:function(e){return this[e.dir](e.field)}}),O=function(e,t){var n,i=e.length,r=Array(i);for(n=0;i>n;n++)r[n]=t(e[n],n,e);return r},F=function(){function e(e){return e.replace(Ht,"\\").replace(Ft,"")}function t(t,n,i,r){var o;return null!=i&&(typeof i===ut&&(i=e(i),o=Vt.exec(i),o?i=new Date(+o[1]):r?(i="'"+i.toLowerCase()+"'",n="("+n+" || '').toLowerCase()"):i="'"+i+"'"),i.getTime&&(n="("+n+"?"+n+".getTime():"+n+")",i=i.getTime())),n+" "+t+" "+i}return{eq:function(e,n,i){return t("==",e,n,i)},neq:function(e,n,i){return t("!=",e,n,i)},gt:function(e,n,i){return t(">",e,n,i)},gte:function(e,n,i){return t(">=",e,n,i)},lt:function(e,n,i){return t("<",e,n,i)},lte:function(e,n,i){return t("<=",e,n,i)},startswith:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".lastIndexOf('"+n+"', 0) == 0"},endswith:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"', "+t+".length - "+(n||"").length+") >= 0"},contains:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"') >= 0"},doesnotcontain:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"') == -1"}}}(),o.filterExpr=function(e){var n,i,r,a,s,l,c=[],d={and:" && ",or:" || "},u=[],h=[],p=e.filters;for(n=0,i=p.length;i>n;n++)r=p[n],s=r.field,l=r.operator,r.filters?(a=o.filterExpr(r),r=a.expression.replace(/__o\[(\d+)\]/g,function(e,t){return t=+t,"__o["+(h.length+t)+"]"}).replace(/__f\[(\d+)\]/g,function(e,t){return t=+t,"__f["+(u.length+t)+"]"}),h.push.apply(h,a.operators),u.push.apply(u,a.fields)):(typeof s===ht?(a="__f["+u.length+"](d)",u.push(s)):a=st.expr(s),typeof l===ht?(r="__o["+h.length+"]("+a+", "+r.value+")",h.push(l)):r=F[(l||"eq").toLowerCase()](a,r.value,r.ignoreCase!==t?r.ignoreCase:!0)),c.push(r);return{expression:"("+c.join(d[e.logic])+")",fields:u,operators:h}},H={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain"},o.normalizeFilter=l,o.prototype={toArray:function(){return this.data},range:function(e,t){return new o(this.data.slice(e,e+t))},skip:function(e){return new o(this.data.slice(e))},take:function(e){return new o(this.data.slice(0,e))},select:function(e){return new o(O(this.data,e))},order:function(e,t){var n={dir:t};return e&&(e.compare?n.compare=e.compare:n.field=e),new o(this.data.slice(0).sort(R.create(n)))},orderBy:function(e){return this.order(e,"asc")},orderByDescending:function(e){return this.order(e,"desc")},sort:function(e,t,n){var i,r,o=a(e,t),s=[];if(n=n||R,o.length){for(i=0,r=o.length;r>i;i++)s.push(n.create(o[i]));return this.orderBy({compare:n.combine(s)})}return this},filter:function(e){var t,n,i,r,a,s,c,d,u=this.data,h=[];if(e=l(e),!e||0===e.filters.length)return this;for(r=o.filterExpr(e),s=r.fields,c=r.operators,a=d=Function("d, __f, __o","return "+r.expression),(s.length||c.length)&&(d=function(e){return a(e,s,c)}),t=0,i=u.length;i>t;t++)n=u[t],d(n)&&h.push(n);return new o(h)},group:function(e,t){e=d(e||[]),t=t||this.data;var n,i=this,r=new o(i.data);return e.length>0&&(n=e[0],r=r.groupBy(n).select(function(i){var r=new o(t).filter([{field:i.field,operator:"eq",value:i.value,ignoreCase:!1}]);return{field:i.field,value:i.value,items:e.length>1?new o(i.items).group(e.slice(1),r.toArray()).toArray():i.items,hasSubgroups:e.length>1,aggregates:r.aggregate(n.aggregates)}})),r},groupBy:function(e){if(tt(e)||!this.data.length)return new o([]);var t,n,i,r,a=e.field,s=this._sortForGrouping(a,e.dir||"asc"),l=st.accessor(a),c=l.get(s[0],a),d={field:a,value:c,items:[]},h=[d];for(i=0,r=s.length;r>i;i++)t=s[i],n=l.get(t,a),u(c,n)||(c=n,d={field:a,value:c,items:[]},h.push(d)),d.items.push(t);return new o(h)},_sortForGrouping:function(e,t){var n,i,r=this.data;if(!Rt){for(n=0,i=r.length;i>n;n++)r[n].__position=n;for(r=new o(r).sort(e,t,V).toArray(),n=0,i=r.length;i>n;n++)delete r[n].__position;return r}return this.sort(e,t).toArray()},aggregate:function(e){var t,n,i={};if(e&&e.length)for(t=0,n=this.data.length;n>t;t++)h(i,e,this.data[t],t,n);return i}},N={sum:function(e,t,n){return(e||0)+n.get(t)},count:function(e){return(e||0)+1},average:function(e,t,n,i,r){return e=(e||0)+n.get(t),i==r-1&&(e/=r),e},max:function(e,t,n){var i=n.get(t);return e=e||0,i>e&&(e=i),e},min:function(e,t,n){var i=n.get(t);return p(e)||(e=i),e>i&&p(i)&&(e=i),e}},o.process=function(e,n){n=n||{};var i,r=new o(e),s=n.group,l=d(s||[]).concat(a(n.sort||[])),c=n.filter,u=n.skip,h=n.take;return c&&(r=r.filter(c),i=r.toArray().length),l&&(r=r.sort(l),s&&(e=r.toArray())),u!==t&&h!==t&&(r=r.range(u,h)),s&&(r=r.group(s,e)),{total:i,data:r.toArray()}},j=dt.extend({init:function(e){this.data=e.data},read:function(e){e.success(this.data)},update:function(e){e.success(e.data)},create:function(e){e.success(e.data)},destroy:function(e){e.success(e.data)}}),U=dt.extend({init:function(e){var t,n=this;e=n.options=J({},n.options,e),ot(Ct,function(t,n){typeof e[n]===ut&&(e[n]={url:e[n]})}),n.cache=e.cache?G.create(e.cache):{find:at,add:at},t=e.parameterMap,n.parameterMap=lt(t)?t:function(e){var n={};return ot(e,function(e,i){e in t&&(e=t[e],et(e)&&(i=e.value(i),e=e.key)),n[e]=i}),n}},options:{parameterMap:At},create:function(e){return rt(this.setup(e,pt))},read:function(n){var i,r,o,a=this,s=a.cache;n=a.setup(n,ft),i=n.success||at,r=n.error||at,o=s.find(n.data),o!==t?i(o):(n.success=function(e){s.add(n.data,e),i(e)},e.ajax(n))},update:function(e){return rt(this.setup(e,gt))},destroy:function(e){return rt(this.setup(e,mt))},setup:function(e,t){e=e||{};var n,i=this,r=i.options[t],o=lt(r.data)?r.data(e.data):r.data;return e=J(!0,{},r,e),n=J(!0,{},o,e.data),e.data=i.parameterMap(n,t),lt(e.url)&&(e.url=e.url(n)),e}}),G=dt.extend({init:function(){this._store={}},add:function(e,n){e!==t&&(this._store[Tt(e)]=n)},find:function(e){return this._store[Tt(e)]},clear:function(){this._store={}},remove:function(e){delete this._store[Tt(e)]}}),G.create=function(e){var t={inmemory:function(){return new G}};return et(e)&&lt(e.find)?e:e===!0?new G:t[e]()},W=dt.extend({init:function(e){var t,n,i,r,o,a,s,l,c,d,u,h,p,f=this;e=e||{};for(t in e)n=e[t],f[t]=typeof n===ut?St(n):n;r=e.modelBase||Wt,et(f.model)&&(f.model=i=r.define(f.model)),f.model&&(a=K(f.data,f),s=K(f.groups,f),l=K(f.serialize,f),c={},d={},u={},h={},p=!1,i=f.model,i.fields&&(ot(i.fields,function(e,t){var n;o=e,et(t)&&t.field?o=t.field:typeof t===ut&&(o=t),et(t)&&t.from&&(n=t.from),p=p||n&&n!==e||o!==e,d[e]=St(n||o),u[e]=St(e),c[n||o]=e,h[e]=n||o}),!e.serialize&&p&&(f.serialize=y(l,i,m,u,c,h))),f.data=y(a,i,v,d,c,h),f.groups=y(s,i,x,d,c,h))},errors:function(e){return e?e.errors:null},parse:At,data:At,total:function(e){return e.length},groups:At,aggregates:function(){return{}},serialize:function(e){return e}}),q=ct.extend({init:function(e){var n,i,r=this;e&&(i=e.data),e=r.options=J({},r.options,e),r._map={},r._prefetch={},r._data=[],r._pristineData=[],r._ranges=[],r._view=[],r._pristine=[],r._destroyed=[],r._pageSize=e.pageSize,r._page=e.page||(e.pageSize?1:t),r._sort=a(e.sort),r._filter=l(e.filter),r._group=d(e.group),r._aggregate=e.aggregate,r._total=e.total,ct.fn.init.call(r),r.transport=Q.create(e,i),r.reader=new st.data.readers[e.schema.type||"json"](e.schema),n=r.reader.model||{},r._data=r._observe(r._data),r.bind([wt,vt,bt,xt,kt,_t],e)},options:{data:[],schema:{modelBase:Wt},serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,batch:!1},_isServerGrouped:function(){var e=this.group()||[];return this.options.serverGrouping&&e.length},_flatData:function(e){return this._isServerGrouped()?b(e):e},parent:at,get:function(e){var t,n,i=this._flatData(this._data);for(t=0,n=i.length;n>t;t++)if(i[t].id==e)return i[t]},getByUid:function(e){var t,n,i=this._flatData(this._data);if(i)for(t=0,n=i.length;n>t;t++)if(i[t].uid==e)return i[t]},indexOf:function(e){return T(this._data,e)},at:function(e){return this._data[e]},data:function(e){var n=this;return e===t?n._data:(n._data=this._observe(e),n._ranges=[],n._addRange(n._data),n._total=n._data.length,n._process(n._data),t)},view:function(){return this._view},add:function(e){return this.insert(this._data.length,e)},_createNewModel:function(e){return this.reader.model?new this.reader.model(e):new jt(e)},insert:function(e,t){return t||(t=e,e=0),t instanceof Wt||(t=this._createNewModel(t)),this._isServerGrouped()?this._data.splice(e,0,A(this.group(),t)):this._data.splice(e,0,t),t},remove:function(e){var n,i=this,r=i._isServerGrouped();return this._eachItem(i._data,function(o){return n=C(o,e),n&&r?(n.isNew&&n.isNew()||i._destroyed.push(n),!0):t}),e},sync:function(){var t,n,i,r=this,o=[],a=[],s=r._destroyed,l=r._flatData(r._data);if(r.reader.model){for(t=0,n=l.length;n>t;t++)l[t].isNew()?o.push(l[t]):l[t].dirty&&a.push(l[t]);i=r._send("create",o),i.push.apply(i,r._send("update",a)),i.push.apply(i,r._send("destroy",s)),e.when.apply(null,i).then(function(){var e,t;for(e=0,t=arguments.length;t>e;e++)r._accept(arguments[e]);r._change({action:"sync"}),r.trigger(xt)})}},cancelChanges:function(e){var t=this;e instanceof st.data.Model?t._cancelModel(e):(t._destroyed=[],t._data=t._observe(t._pristineData),t.options.serverPaging&&(t._total=t.reader.total(t._pristine)),t._change())},hasChanges:function(){var e,t,n=this._data;if(this._destroyed.length)return!0;for(e=0,t=n.length;t>e;e++)if(n[e].isNew()||n[e].dirty)return!0;return!1},_accept:function(t){var n,i=this,r=t.models,o=t.response,a=0,s=i._isServerGrouped(),l=i._pristineData,c=t.type;if(i.trigger(kt,{response:o,type:c}),o&&!tt(o)){if(o=i.reader.parse(o),i._handleCustomErrors(o))return;o=i.reader.data(o),e.isArray(o)||(o=[o])}else o=e.map(r,function(e){return e.toJSON()});for("destroy"===c&&(i._destroyed=[]),a=0,n=r.length;n>a;a++)"destroy"!==c?(r[a].accept(o[a]),"create"===c?l.push(s?A(i.group(),r[a]):o[a]):"update"===c&&i._updatePristineForModel(r[a],o[a])):i._removePristineForModel(r[a])},_updatePristineForModel:function(e,t){this._executeOnPristineForModel(e,function(e,n){st.deepExtend(n[e],t)})},_executeOnPristineForModel:function(e,n){this._eachPristineItem(function(i){var r=S(i,e);return r>-1?(n(r,i),!0):t})},_removePristineForModel:function(e){this._executeOnPristineForModel(e,function(e,t){t.splice(e,1)})},_readData:function(e){var t=this._isServerGrouped()?this.reader.groups:this.reader.data;return t(e)},_eachPristineItem:function(e){this._eachItem(this._pristineData,e)},_eachItem:function(e,t){e&&e.length&&(this._isServerGrouped()?k(e,t):t(e))},_pristineForModel:function(e){var n,i,r=function(r){return i=S(r,e),i>-1?(n=r[i],!0):t};return this._eachPristineItem(r),n},_cancelModel:function(e){var t,n=this._pristineForModel(e);this._eachItem(this._data,function(i){t=T(i,e),-1!=t&&(!e.isNew()&&n?i[t].accept(n):i.splice(t,1))})},_promise:function(t,n,i){var r=this,o=r.transport;return e.Deferred(function(e){r.trigger(bt,{type:i}),o[i].call(o,J({success:function(t){e.resolve({response:t,models:n,type:i})},error:function(t,n,i){e.reject(t),r.error(t,n,i)}},t))}).promise()},_send:function(e,t){var n,i,r=this,o=[],a=r.reader.serialize(f(t));if(r.options.batch)t.length&&o.push(r._promise({data:{models:a}},t,e));else for(n=0,i=t.length;i>n;n++)o.push(r._promise({data:a[n]},[t[n]],e));return o},read:function(e){var t=this,n=t._params(e);t._queueRequest(n,function(){t.trigger(bt,{type:"read"})?t._dequeueRequest():(t.trigger(_t),t._ranges=[],t.transport.read({data:n,success:K(t.success,t),error:K(t.error,t)}))})},success:function(n){var i=this,r=i.options;return i.trigger(kt,{response:n,type:"read"}),n=i.reader.parse(n),i._handleCustomErrors(n)?(i._dequeueRequest(),t):(i._pristine=et(n)?e.extend(!0,{},n):n.slice?n.slice(0):n,i._total=i.reader.total(n),i._aggregate&&r.serverAggregates&&(i._aggregateResult=i.reader.aggregates(n)),n=i._readData(n),i._pristineData=n.slice(0),i._data=i._observe(n),i._addRange(i._data),i._process(i._data),i._dequeueRequest(),t)},_addRange:function(e){var t=this,n=t._skip||0,i=n+t._flatData(e).length;t._ranges.push({start:n,end:i,data:e}),t._ranges.sort(function(e,t){return e.start-t.start})},error:function(e,t,n){this._dequeueRequest(),this.trigger(kt,{}),this.trigger(wt,{xhr:e,status:t,errorThrown:n})},_params:function(e){var t=this,n=J({take:t.take(),skip:t.skip(),page:t.page(),pageSize:t.pageSize(),sort:t._sort,filter:t._filter,group:t._group,aggregate:t._aggregate},e);return t.options.serverPaging||(delete n.take,delete n.skip,delete n.page,delete n.pageSize),t.options.serverGrouping?t.reader.model&&n.group&&(n.group=M(n.group,t.reader.model)):delete n.group,t.options.serverFiltering?t.reader.model&&n.filter&&(n.filter=B(n.filter,t.reader.model)):delete n.filter,t.options.serverSorting?t.reader.model&&n.sort&&(n.sort=M(n.sort,t.reader.model)):delete n.sort,t.options.serverAggregates?t.reader.model&&n.aggregate&&(n.aggregate=M(n.aggregate,t.reader.model)):delete n.aggregate,n},_queueRequest:function(e,n){var i=this;i._requestInProgress?i._pending={callback:K(n,i),options:e}:(i._requestInProgress=!0,i._pending=t,n())},_dequeueRequest:function(){var e=this;e._requestInProgress=!1,e._pending&&e._queueRequest(e._pending.options,e._pending.callback)},_handleCustomErrors:function(e){if(this.reader.errors){var t=this.reader.errors(e);if(t)return this.trigger(wt,{xhr:null,status:"customerror",errorThrown:"custom error",errors:t}),!0}return!1},_observe:function(e){var t=this,n=t.reader.model,i=!1;return n&&e.length&&(i=!(e[0]instanceof n)),e instanceof Nt?i&&(e.type=t.reader.model,e.wrapAll(e,e)):(e=new Nt(e,t.reader.model),e.parent=function(){return t.parent()}),t._isServerGrouped()&&_(e,n),t._changeHandler&&t._data&&t._data instanceof Nt?t._data.unbind(vt,t._changeHandler):t._changeHandler=K(t._change,t),e.bind(vt,t._changeHandler)},_change:function(e){var t,n,i,r=this,o=e?e.action:"";if("remove"===o)for(t=0,n=e.items.length;n>t;t++)e.items[t].isNew&&e.items[t].isNew()||r._destroyed.push(e.items[t]);!r.options.autoSync||"add"!==o&&"remove"!==o&&"itemchange"!==o?(i=parseInt(r._total||r.reader.total(r._pristine),10),"add"===o?i+=e.items.length:"remove"===o?i-=e.items.length:"itemchange"===o||"sync"===o||r.options.serverPaging||(i=r.reader.total(r._pristine)),r._total=i,r._process(r._data,e)):r.sync()},_process:function(e,n){var i,r=this,a={};r.options.serverPaging!==!0&&(a.skip=r._skip,a.take=r._take||r._pageSize,a.skip===t&&r._page!==t&&r._pageSize!==t&&(a.skip=(r._page-1)*r._pageSize)),r.options.serverSorting!==!0&&(a.sort=r._sort),r.options.serverFiltering!==!0&&(a.filter=r._filter),r.options.serverGrouping!==!0&&(a.group=r._group),r.options.serverAggregates!==!0&&(a.aggregate=r._aggregate,r._aggregateResult=g(e,a)),i=o.process(e,a),r._view=i.data,i.total===t||r.options.serverFiltering||(r._total=i.total),n=n||{},n.items=n.items||r._view,r.trigger(vt,n)},_mergeState:function(e){var n=this;return e!==t&&(n._pageSize=e.pageSize,n._page=e.page,n._sort=e.sort,n._filter=e.filter,n._group=e.group,n._aggregate=e.aggregate,n._skip=e.skip,n._take=e.take,n._skip===t&&(n._skip=n.skip(),e.skip=n.skip()),n._take===t&&n._pageSize!==t&&(n._take=n._pageSize,e.take=n._take),e.sort&&(n._sort=e.sort=a(e.sort)),e.filter&&(n._filter=e.filter=l(e.filter)),e.group&&(n._group=e.group=d(e.group)),e.aggregate&&(n._aggregate=e.aggregate=c(e.aggregate))),e
},query:function(e){var n,i=this,r=i.options.serverSorting||i.options.serverPaging||i.options.serverFiltering||i.options.serverGrouping||i.options.serverAggregates;r||(i._data===t||0===i._data.length)&&!i._destroyed.length?i.read(i._mergeState(e)):i.trigger(bt,{type:"read"})||(i.trigger(_t),n=o.process(i._data,i._mergeState(e)),i.options.serverFiltering||(i._total=n.total!==t?n.total:i._data.length),i._view=n.data,i._aggregateResult=g(i._data,e),i.trigger(kt,{}),i.trigger(vt,{items:n.data}))},fetch:function(t){var n=this;return e.Deferred(function(e){var i=function(i){n.unbind(wt,r),e.resolve(),t&&t.call(n,i)},r=function(t){e.reject(t)};n.one(vt,i),n.one(wt,r),n._query()}).promise()},_query:function(e){var t=this;t.query(J({},{page:t.page(),pageSize:t.pageSize(),sort:t.sort(),filter:t.filter(),group:t.group(),aggregate:t.aggregate()},e))},next:function(e){var n=this,i=n.page(),r=n.total();return e=e||{},!i||r&&i+1>n.totalPages()?t:(n._skip=i*n.take(),i+=1,e.page=i,n._query(e),i)},prev:function(e){var n=this,i=n.page();return e=e||{},i&&1!==i?(n._skip=n._skip-n.take(),i-=1,e.page=i,n._query(e),i):t},page:function(e){var n,i=this;return e!==t?(e=Pt.max(Pt.min(Pt.max(e,1),i.totalPages()),1),i._query({page:e}),t):(n=i.skip(),n!==t?Pt.round((n||0)/(i.take()||1))+1:t)},pageSize:function(e){var n=this;return e!==t?(n._query({pageSize:e,page:1}),t):n.take()},sort:function(e){var n=this;return e!==t?(n._query({sort:e}),t):n._sort},filter:function(e){var n=this;return e===t?n._filter:(n._query({filter:e,page:1}),t)},group:function(e){var n=this;return e!==t?(n._query({group:e}),t):n._group},total:function(){return parseInt(this._total||0,10)},aggregate:function(e){var n=this;return e!==t?(n._query({aggregate:e}),t):n._aggregate},aggregates:function(){return this._aggregateResult},totalPages:function(){var e=this,t=e.pageSize()||e.total();return Pt.ceil((e.total()||0)/t)},inRange:function(e,t){var n=this,i=Pt.min(e+t,n.total());return!n.options.serverPaging&&n.data.length>0?!0:n._findRange(e,i).length>0},lastRange:function(){var e=this._ranges;return e[e.length-1]||{start:0,end:0,data:[]}},firstItemUid:function(){var e=this._ranges;return e.length&&e[0].data.length&&e[0].data[0].uid},range:function(e,n){var i,r,o,a,s,l,c;if(e=Pt.min(e||0,this.total()),r=this,o=Pt.max(Pt.floor(e/n),0)*n,a=Pt.min(o+n,r.total()),i=r._findRange(e,Pt.min(e+n,r.total())),i.length){r._skip=e>r.skip()?Pt.min(a,(r.totalPages()-1)*r.take()):o,r._take=n,s=r.options.serverPaging,l=r.options.serverSorting,c=r.options.serverFiltering;try{r.options.serverPaging=!0,r._isServerGrouped()||r.group()&&r.group().length||(r.options.serverSorting=!0),r.options.serverFiltering=!0,s&&(r._data=i=r._observe(i)),r._process(i)}finally{r.options.serverPaging=s,r.options.serverSorting=l,r.options.serverFiltering=c}}else n!==t&&(r._rangeExists(o,a)?e>o&&r.prefetch(a,n,function(){r.range(e,n)}):r.prefetch(o,n,function(){e>o&&a<r.total()&&!r._rangeExists(a,Pt.min(a+n,r.total()))?r.prefetch(a,n,function(){r.range(e,n)}):r.range(e,n)}))},_findRange:function(e,n){var i,r,s,l,c,u,h,p,f,g,m,v,x=this,y=x._ranges,w=[],b=x.options,_=b.serverSorting||b.serverPaging||b.serverFiltering||b.serverGrouping||b.serverAggregates;for(r=0,m=y.length;m>r;r++)if(i=y[r],e>=i.start&&e<=i.end){for(g=0,s=r;m>s;s++)if(i=y[s],f=x._flatData(i.data),f.length&&e+g>=i.start&&(u=i.data,h=i.end,_||(v=d(x.group()||[]).concat(a(x.sort()||[])),p=o.process(i.data,{sort:v,filter:x.filter()}),f=u=p.data,p.total!==t&&(h=p.total)),l=0,e+g>i.start&&(l=e+g-i.start),c=f.length,h>n&&(c-=h-n),g+=c-l,w=x._mergeGroups(w,u,l,c),n<=i.end&&g==n-e))return w;break}return[]},_mergeGroups:function(e,t,n,i){if(this._isServerGrouped()){var r,o=t.toJSON();return e.length&&(r=e[e.length-1]),w(r,o,n,i),e.concat(o)}return e.concat(t.slice(n,i))},skip:function(){var e=this;return e._skip===t?e._page!==t?(e._page-1)*(e.take()||1):t:e._skip},take:function(){return this._take||this._pageSize},_prefetchSuccessHandler:function(e,t,n){var i=this;return function(r){var o,a,s=!1,l={start:e,end:t,data:[]};for(i._dequeueRequest(),o=0,a=i._ranges.length;a>o;o++)if(i._ranges[o].start===e){s=!0,l=i._ranges[o];break}s||i._ranges.push(l),i.trigger(kt,{response:r,type:"read"}),r=i.reader.parse(r),l.data=i._observe(i._readData(r)),l.end=l.start+i._flatData(l.data).length,i._ranges.sort(function(e,t){return e.start-t.start}),i._total=i.reader.total(r),n&&n()}},prefetch:function(e,t,n){var i=this,r=Pt.min(e+t,i.total()),o={take:t,skip:e,page:e/t+1,pageSize:t,sort:i._sort,filter:i._filter,group:i._group,aggregate:i._aggregate};i._rangeExists(e,r)?n&&n():(clearTimeout(i._timeout),i._timeout=setTimeout(function(){i._queueRequest(o,function(){i.trigger(bt,{type:"read"})?i._dequeueRequest():i.transport.read({data:i._params(o),success:i._prefetchSuccessHandler(e,r,n)})})},100))},_rangeExists:function(e,t){var n,i,r=this,o=r._ranges;for(n=0,i=o.length;i>n;n++)if(o[n].start<=e&&o[n].end>=t)return!0;return!1}}),Q={},Q.create=function(e,t){var n,i=e.transport;return i?(i.read=typeof i.read===ut?{url:i.read}:i.read,e.type&&(st.data.transports[e.type]&&!et(st.data.transports[e.type])?n=new st.data.transports[e.type](J(i,{data:t})):i=J(!0,{},st.data.transports[e.type],i),e.schema=J(!0,{},st.data.schemas[e.type],e.schema)),n||(n=lt(i.read)?i:new U(i))):n=new j({data:e.data}),n},q.create=function(e){e=e&&e.push?{data:e}:e;var t,n,i,r=e||{},o=r.data,a=r.fields,s=r.table,l=r.select,c={};if(o||!a||r.transport||(s?o=I(s,a):l&&(o=E(l,a))),st.data.Model&&a&&(!r.schema||!r.schema.model)){for(t=0,n=a.length;n>t;t++)i=a[t],i.type&&(c[i.field]=i);tt(c)||(r.schema=J(!0,r.schema,{model:{fields:c}}))}return r.data=o,r instanceof q?r:new q(r)},Y=Wt.define({init:function(e){var t=this,n=t.hasChildren||e&&e.hasChildren,i="items",r={};st.data.Model.fn.init.call(t,e),typeof t.children===ut&&(i=t.children),r={schema:{data:i,model:{hasChildren:n,id:t.idField}}},typeof t.children!==ut&&J(r,t.children),r.data=e,n||(n=r.schema.data),typeof n===ut&&(n=st.getter(n)),lt(n)&&(t.hasChildren=!!n.call(t,t)),t._childrenOptions=r,t.hasChildren&&t._initChildren(),t._loaded=!(!e||!e[i]&&!e._loaded)},_initChildren:function(){var e,t,n,i=this;i.children instanceof X||(e=i.children=new X(i._childrenOptions),t=e.transport,n=t.parameterMap,t.parameterMap=function(e){return e[i.idField||"id"]=i.id,n&&(e=n(e)),e},e.parent=function(){return i},e.bind(vt,function(e){e.node=e.node||i,i.trigger(vt,e)}),e.bind(wt,function(e){var t=i.parent();t&&(e.node=e.node||i,t.trigger(wt,e))}),i._updateChildrenField())},append:function(e){this._initChildren(),this.loaded(!0),this.children.add(e)},hasChildren:!1,level:function(){for(var e=this.parentNode(),t=0;e&&e.parentNode;)t++,e=e.parentNode?e.parentNode():null;return t},_updateChildrenField:function(){var e=this._childrenOptions.schema.data;this[e||"items"]=this.children.data()},load:function(){var e=this,n={};e.hasChildren?(e._initChildren(),n[e.idField||"id"]=e.id,e._loaded||(e.children._data=t),e.children.one(vt,function(){e._loaded=!0,e._updateChildrenField()})._query(n)):e.loaded(!0)},parentNode:function(){var e=this.parent();return e.parent()},loaded:function(e){return e===t?this._loaded:(this._loaded=e,t)},shouldSerialize:function(e){return Wt.fn.shouldSerialize.call(this,e)&&"children"!==e&&"_loaded"!==e&&"hasChildren"!==e&&"_childrenOptions"!==e}}),X=q.extend({init:function(e){var t=Y.define({children:e});q.fn.init.call(this,J(!0,{},{schema:{modelBase:t,model:t}},e)),this._attachBubbleHandlers()},_attachBubbleHandlers:function(){var e=this;e._data.bind(wt,function(t){e.trigger(wt,t)})},remove:function(e){var t,n=e.parentNode(),i=this;return n&&n._initChildren&&(i=n.children),t=q.fn.remove.call(i,e),n&&!i.data().length&&(n.hasChildren=!1),t},success:L("success"),data:L("data"),insert:function(e,t){var n=this.parent();return n&&n._initChildren&&(n.hasChildren=!0,n._initChildren()),q.fn.insert.call(this,e,t)},_find:function(e,t){var n,i,r,o,a;if(r=q.fn[e].call(this,t))return r;if(o=this._flatData(this.data()))for(n=0,i=o.length;i>n;n++)if(a=o[n].children,a instanceof X&&(r=a[e](t)))return r},get:function(e){return this._find("get",e)},getByUid:function(e){return this._find("getByUid",e)}}),X.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},n=t.data,i=t.fields,r=t.list;return n&&n._dataSource?n._dataSource:(n||!i||t.transport||r&&(n=z(r,i)),t.data=n,t instanceof X?t:new X(t))},$=st.Observable.extend({init:function(e,t,n){st.Observable.fn.init.call(this),this._prefetching=!1,this.dataSource=e,this.prefetch=!n;var i=this;e.bind("change",function(){i._change()}),this._syncWithDataSource(),this.setViewSize(t)},setViewSize:function(e){this.viewSize=e,this._recalculate()},at:function(e){var n,i,r=this.pageSize;return e>=this.total()?(this.trigger("endreached",{index:e}),t):this.useRanges?(this.useRanges&&((e<this.dataOffset||e>this.skip+r)&&(i=Math.floor(e/r)*r,this.range(i)),e===this.prefetchThreshold&&this._prefetch(),e===this.midPageThreshold?this.range(this.nextMidRange):e===this.nextPageThreshold?this.range(this.nextFullRange):e===this.pullBackThreshold&&(this.offset===this.skip?this.range(this.previousMidRange):this.range(this.previousFullRange)),n=this.dataSource.at(e-this.dataOffset)),n===t&&this.trigger("endreached",{index:e}),n):this.dataSource.view()[e]},indexOf:function(e){return this.dataSource.data().indexOf(e)+this.dataOffset},total:function(){return parseInt(this.dataSource.total(),10)},next:function(){var e=this,t=e.pageSize,n=e.skip-e.viewSize,i=Pt.max(Pt.floor(n/t),0)*t+t;this.offset=n,this.dataSource.prefetch(i,t,function(){e._goToRange(n,!0)})},range:function(e){if(this.offset!==e){var t=this,n=this.pageSize,i=Pt.max(Pt.floor(e/n),0)*n+n,r=this.dataSource;this.offset=e,this._recalculate(),r.inRange(e,n)?this._goToRange(e):this.prefetch&&r.prefetch(i,n,function(){t._goToRange(e,!0)})}},syncDataSource:function(){var e=this.offset;this.offset=null,this.range(e)},destroy:function(){this.unbind()},_prefetch:function(){var e=this,t=this.pageSize,n=this.skip+t,i=this.dataSource;i.inRange(n,t)||this._prefetching||!this.prefetch||(this._prefetching=!0,this.trigger("prefetching",{skip:n,take:t}),i.prefetch(n,t,function(){e._prefetching=!1,e.trigger("prefetched",{skip:n,take:t})}))},_goToRange:function(e,t){this.offset===e&&(this.dataOffset=e,this._expanding=t,this.dataSource.range(e,this.pageSize))},_change:function(){var e=this.dataSource,t=e.firstItemUid();this.length=this.useRanges?e.lastRange().end:e.view().length,this._firstItemUid===t&&this.useRanges||(this._syncWithDataSource(),this._recalculate(),this.trigger("reset",{offset:this.offset})),this.trigger("resize"),this._expanding&&this.trigger("expand"),delete this._expanding},_syncWithDataSource:function(){var e=this.dataSource;this._firstItemUid=e.firstItemUid(),this.dataOffset=this.offset=e.skip()||0,this.pageSize=e.pageSize(),this.useRanges=e.options.serverPaging},_recalculate:function(){var e=this.pageSize,t=this.offset,n=this.viewSize,i=Math.ceil(t/e)*e;this.skip=i,this.midPageThreshold=i+e-1,this.nextPageThreshold=i+n-1,this.prefetchThreshold=i+Math.floor(2*(e/3)),this.pullBackThreshold=this.offset-1,this.nextMidRange=i+e-n,this.nextFullRange=i,this.previousMidRange=t-n,this.previousFullRange=i-e}}),Z=st.Observable.extend({init:function(e,t){var n=this;st.Observable.fn.init.call(n),this.dataSource=e,this.batchSize=t,this._total=0,this.buffer=new $(e,3*t),this.buffer.bind({endreached:function(e){n.trigger("endreached",{index:e.index})},prefetching:function(e){n.trigger("prefetching",{skip:e.skip,take:e.take})},prefetched:function(e){n.trigger("prefetched",{skip:e.skip,take:e.take})},reset:function(){n._total=0,n.trigger("reset")},resize:function(){n._total=Math.ceil(this.length/n.batchSize),n.trigger("resize",{total:n.total(),offset:this.offset})}})},syncDataSource:function(){this.buffer.syncDataSource()},at:function(e){var n,i,r=this.buffer,o=e*this.batchSize,a=this.batchSize,s=[];for(r.offset>o&&r.at(r.offset-1),i=0;a>i&&(n=r.at(o+i),n!==t);i++)s.push(n);return s},total:function(){return this._total},destroy:function(){this.buffer.destroy(),this.unbind()}}),J(!0,st.data,{readers:{json:W},Query:o,DataSource:q,HierarchicalDataSource:X,Node:Y,ObservableObject:jt,ObservableArray:Nt,LocalTransport:j,RemoteTransport:U,Cache:G,DataReader:W,Model:Wt,Buffer:$,BatchBuffer:Z})}(window.kendo.jQuery),function(e,t){function n(e){var t,i,r=[];for(t=0,i=e.length;i>t;t++)r=e[t].hasSubgroups?r.concat(n(e[t].items)):r.concat.apply(r,e[t].items);return r}function i(e,n){var i=_.initWidget(e,{},n);return i?new y(i):t}function r(e){var t,n,i,o,a,s,l,c={};for(l=e.match(w),t=0,n=l.length;n>t;t++)i=l[t],o=i.indexOf(":"),a=i.substring(0,o),s=i.substring(o+1),"{"==s.charAt(0)&&(s=r(s)),c[a]=s;return c}function o(e,t,n){var i,r={};for(i in e)r[i]=new n(t,e[i]);return r}function a(e,t,n,s){var c,d,u,h=e.getAttribute("data-"+_.ns+"role"),p=e.getAttribute("data-"+_.ns+"bind"),v=e.children,y=[],w=!0,k={};if(s=s||[t],(h||p)&&l(e),h&&(u=i(e,n)),p&&(p=r(p.replace(b,"")),u||(k=_.parseOptions(e,{textField:"",valueField:"",template:"",valueUpdate:z,valuePrimitive:!1,autoBind:!0}),k.roles=n,u=new x(e,k)),u.source=t,d=o(p,s,f),k.template&&(d.template=new m(s,"",k.template)),d.click&&(p.events=p.events||{},p.events.click=p.click,delete d.click),d.source&&(w=!1),p.attr&&(d.attr=o(p.attr,s,f)),p.style&&(d.style=o(p.style,s,f)),p.events&&(d.events=o(p.events,s,g)),u.bind(d)),u&&(e.kendoBindingTarget=u),w&&v){for(c=0;c<v.length;c++)y[c]=v[c];for(c=0;c<y.length;c++)a(y[c],t,n,s)}}function s(t,n){var i,r,o,s=_.rolesFromNamespaces([].slice.call(arguments,2));for(n=_.observable(n),t=e(t),i=0,r=t.length;r>i;i++)o=t[i],1===o.nodeType&&a(o,n,s)}function l(t){var n=t.kendoBindingTarget;n&&(n.destroy(),e.support.deleteExpando?delete t.kendoBindingTarget:t.removeAttribute?t.removeAttribute("kendoBindingTarget"):t.kendoBindingTarget=null)}function c(e){l(e),d(e)}function d(e){var t,n,i=e.children;if(i)for(t=0,n=i.length;n>t;t++)c(i[t])}function u(t){var n,i;for(t=e(t),n=0,i=t.length;i>n;n++)c(t[n])}function h(e,t){var n=e.element,i=n[0].kendoBindingTarget;i&&s(n,i.source,t)}var p,f,g,m,v,x,y,w,b,_=window.kendo,k=_.Observable,C=_.data.ObservableObject,A=_.data.ObservableArray,S={}.toString,T={},P=Array.prototype.splice,D=_.Class,B=e.proxy,M="value",E="source",I="events",L="checked",z="change";!function(){var e=document.createElement("a");e.innerText!==t?p="innerText":e.textContent!==t&&(p="textContent")}(),f=k.extend({init:function(e,t){var n=this;k.fn.init.call(n),n.source=e[0],n.parents=e,n.path=t,n.dependencies={},n.dependencies[t]=!0,n.observable=n.source instanceof k,n._access=function(e){n.dependencies[e.field]=!0},n.observable&&(n._change=function(e){n.change(e)},n.source.bind(z,n._change))},_parents:function(){var t,n=this.parents,i=this.get();return i&&"function"==typeof i.parent&&(t=i.parent(),e.inArray(t,n)<0&&(n=[t].concat(n))),n},change:function(e){var t,n,i=e.field,r=this;if("this"===r.path)r.trigger(z,e);else for(t in r.dependencies)if(0===t.indexOf(i)&&(n=t.charAt(i.length),!n||"."===n||"["===n)){r.trigger(z,e);break}},start:function(e){e.bind("get",this._access)},stop:function(e){e.unbind("get",this._access)},get:function(){var e=this,n=e.source,i=0,r=e.path,o=n;if(!e.observable)return o;for(e.start(e.source),o=n.get(r);o===t&&n;)n=e.parents[++i],n instanceof C&&(o=n.get(r));if(o===t)for(n=e.source;o===t&&n;)n=n.parent(),n instanceof C&&(o=n.get(r));return"function"==typeof o&&(i=r.lastIndexOf("."),i>0&&(n=n.get(r.substring(0,i))),e.start(n),o=o.call(n,e.source),e.stop(n)),n&&n!==e.source&&(e.currentSource=n,n.unbind(z,e._change).bind(z,e._change)),e.stop(e.source),o},set:function(e){var t=this,n=t.currentSource||t.source;n.set(t.path,e)},destroy:function(){this.observable&&this.source.unbind(z,this._change)}}),g=f.extend({get:function(){var e,t=this.source,n=this.path,i=0;for(e=t.get(n);!e&&t;)t=this.parents[++i],t instanceof C&&(e=t.get(n));return B(e,t)}}),m=f.extend({init:function(e,t,n){var i=this;f.fn.init.call(i,e,t),i.template=n},render:function(e){var t;return this.start(this.source),t=_.render(this.template,e),this.stop(this.source),t}}),v=D.extend({init:function(e,t,n){this.element=e,this.bindings=t,this.options=n},bind:function(e,t){var n=this;e=t?e[t]:e,e.bind(z,function(e){n.refresh(t||e)}),n.refresh(t)},destroy:function(){}}),T.attr=v.extend({refresh:function(e){this.element.setAttribute(e,this.bindings.attr[e].get())}}),T.style=v.extend({refresh:function(e){this.element.style[e]=this.bindings.style[e].get()||""}}),T.enabled=v.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),T.readonly=v.extend({refresh:function(){this.bindings.readonly.get()?this.element.setAttribute("readonly","readonly"):this.element.removeAttribute("readonly")}}),T.disabled=v.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),T.events=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n),this.handlers={}},refresh:function(t){var n=e(this.element),i=this.bindings.events[t],r=this.handlers[t];r&&n.off(t,r),r=this.handlers[t]=i.get(),n.on(t,i.source,r)},destroy:function(){var t,n=e(this.element);for(t in this.handlers)n.off(t,this.handlers[t])}}),T.text=v.extend({refresh:function(){var e=this.bindings.text.get();null==e&&(e=""),this.element[p]=e}}),T.visible=v.extend({refresh:function(){this.element.style.display=this.bindings.visible.get()?"":"none"}}),T.invisible=v.extend({refresh:function(){this.element.style.display=this.bindings.invisible.get()?"none":""}}),T.html=v.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),T.value=v.extend({init:function(t,n,i){v.fn.init.call(this,t,n,i),this._change=B(this.change,this),this.eventName=i.valueUpdate||z,e(this.element).on(this.eventName,this._change),this._initChange=!1},change:function(){var e,t;this._initChange=this.eventName!=z,e=this.element.value,t=this.element.type,"date"==t?e=_.parseDate(e,"yyyy-MM-dd"):"datetime-local"==t?e=_.parseDate(e,["yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm"]):"number"==t&&(e=_.parseFloat(e)),this.bindings[M].set(e),this._initChange=!1},refresh:function(){var e,t;this._initChange||(e=this.bindings[M].get(),null==e&&(e=""),t=this.element.type,"date"==t?e=_.toString(e,"yyyy-MM-dd"):"datetime-local"==t&&(e=_.toString(e,"yyyy-MM-ddTHH:mm:ss")),this.element.value=e),this._initChange=!1},destroy:function(){e(this.element).off(this.eventName,this._change)}}),T.source=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n);var i=this.bindings.source.get();i instanceof _.data.DataSource&&n.autoBind!==!1&&i.fetch()},refresh:function(e){var t=this,n=t.bindings.source.get();n instanceof A||n instanceof _.data.DataSource?(e=e||{},"add"==e.action?t.add(e.index,e.items):"remove"==e.action?t.remove(e.index,e.items):"itemchange"!=e.action&&t.render()):t.render()},container:function(){var e=this.element;return"table"==e.nodeName.toLowerCase()&&(e.tBodies[0]||e.appendChild(document.createElement("tbody")),e=e.tBodies[0]),e},template:function(){var e=this.options,t=e.template,n=this.container().nodeName.toLowerCase();return t||(t="select"==n?e.valueField||e.textField?_.format('<option value="#:{0}#">#:{1}#</option>',e.valueField||e.textField,e.textField||e.valueField):"<option>#:data#</option>":"tbody"==n?"<tr><td>#:data#</td></tr>":"ul"==n||"ol"==n?"<li>#:data#</li>":"#:data#",t=_.template(t)),t},destroy:function(){var e=this.bindings.source.get();e.unbind(z,this._change)},add:function(t,n){var i,r,o,s,l=this.container(),c=l.cloneNode(!1),d=l.children[t];if(e(c).html(_.render(this.template(),n)),c.children.length)for(i=this.bindings.source._parents(),r=0,o=n.length;o>r;r++)s=c.children[0],l.insertBefore(s,d||null),a(s,n[r],this.options.roles,[n[r]].concat(i))},remove:function(e,t){var n,i,r=this.container();for(n=0;n<t.length;n++)i=r.children[e],c(i),r.removeChild(i)},render:function(){var t,n,i,r,o=this.bindings.source.get(),s=this.container(),l=this.template();if(o instanceof _.data.DataSource&&(o=o.view()),o instanceof A||"[object Array]"===S.call(o)||(o.parent&&(r=o.parent),o=new A([o]),o.parent&&(o.parent=r)),this.bindings.template){if(d(s),e(s).html(this.bindings.template.render(o)),s.children.length)for(t=this.bindings.source._parents(),n=0,i=o.length;i>n;n++)a(s.children[n],o[n],this.options.roles,[o[n]].concat(t))}else e(s).html(_.render(l,o))}}),T.input={checked:v.extend({init:function(t,n,i){v.fn.init.call(this,t,n,i),this._change=B(this.change,this),e(this.element).change(this._change)},change:function(){var e,t,n=this.element,i=this.value();"radio"==n.type?this.bindings[L].set(i):"checkbox"==n.type&&(e=this.bindings[L].get(),e instanceof A?(i=this.element.value,"on"!==i&&"off"!==i&&(t=e.indexOf(i),t>-1?e.splice(t,1):e.push(i))):this.bindings[L].set(i))},refresh:function(){var e=this.bindings[L].get(),t=e,n=this.element;"checkbox"==n.type?(t instanceof A&&(e=this.element.value,t.indexOf(e)>=0&&(e=!0)),n.checked=e===!0):"radio"==n.type&&null!=e&&n.value===""+e&&(n.checked=!0)},value:function(){var e=this.element,t=e.value;return"checkbox"==e.type&&(t=e.checked),t},destroy:function(){e(this.element).off(z,this._change)}})},T.select={value:v.extend({init:function(t,n,i){v.fn.init.call(this,t,n,i),this._change=B(this.change,this),e(this.element).change(this._change)},change:function(){var e,t,n,i,r,o,a=[],s=this.element,l=this.options.valueField||this.options.textField,c=this.options.valuePrimitive;for(r=0,o=s.options.length;o>r;r++)t=s.options[r],t.selected&&(i=t.attributes.value,i=i&&i.specified?t.value:t.text,a.push(i));if(l)for(e=this.bindings.source.get(),n=0;n<a.length;n++)for(r=0,o=e.length;o>r;r++)if(e[r].get(l)==a[n]){a[n]=e[r];break}i=this.bindings[M].get(),i instanceof A?i.splice.apply(i,[0,i.length].concat(a)):c||!(i instanceof C)&&l?this.bindings[M].set(a[0].get(l)):this.bindings[M].set(a[0])},refresh:function(){var e,t,n,i=this.element,r=i.options,o=this.bindings[M].get(),a=o,s=this.options.valueField||this.options.textField,l=!1;for(a instanceof A||(a=new A([o])),i.selectedIndex=-1,n=0;n<a.length;n++)for(o=a[n],s&&o instanceof C&&(o=o.get(s)),e=0;e<r.length;e++)t=r[e].value,""===t&&""!==o&&(t=r[e].text),t==o&&(r[e].selected=!0,l=!0)},destroy:function(){e(this.element).off(z,this._change)}})},T.widget={events:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e,this.handlers={}},refresh:function(e){var t=this.bindings.events[e],n=this.handlers[e];n&&this.widget.unbind(e,n),n=t.get(),this.handlers[e]=function(e){e.data=t.source,n(e),e.data===t.source&&delete e.data},this.widget.bind(e,this.handlers[e])},destroy:function(){var e;for(e in this.handlers)this.widget.unbind(e,this.handlers[e])}}),checked:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e,this._change=B(this.change,this),this.widget.bind(z,this._change)},change:function(){this.bindings[L].set(this.value())},refresh:function(){this.widget.check(this.bindings[L].get()===!0)},value:function(){var e=this.element,t=e.value;return("on"==t||"off"==t)&&(t=e.checked),t},destroy:function(){this.widget.unbind(z,this._change)}}),visible:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.visible.get();this.widget.wrapper[0].style.display=e?"":"none"}}),invisible:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.invisible.get();this.widget.wrapper[0].style.display=e?"none":""}}),enabled:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:v.extend({init:function(e,t,n){var i=this;v.fn.init.call(i,e.element[0],t,n),i.widget=e,i._dataBinding=B(i.dataBinding,i),i._dataBound=B(i.dataBound,i),i._itemChange=B(i.itemChange,i)},itemChange:function(e){a(e.item[0],e.data,this._ns(e.ns),[e.data].concat(this.bindings.source._parents()))},dataBinding:function(){var e,t,n=this.widget,i=n.items();for(e=0,t=i.length;t>e;e++)c(i[e])},_ns:function(t){t=t||_.ui;var n=[_.ui,_.dataviz.ui,_.mobile.ui];return n.splice(e.inArray(t,n),1),n.unshift(t),_.rolesFromNamespaces(n)},dataBound:function(e){var t,i,r,o=this.widget,s=o.items(),l=o.dataSource,c=l.view(),d=l.group()||[];if(s.length)for(d.length&&(c=n(c)),r=this.bindings.source._parents(),t=0,i=c.length;i>t;t++)a(s[t],c[t],this._ns(e.ns),[c[t]].concat(r))},refresh:function(e){var t,n=this,i=n.widget;e=e||{},e.action||(n.destroy(),i.bind("dataBinding",n._dataBinding),i.bind("dataBound",n._dataBound),i.bind("itemChange",n._itemChange),t=n.bindings.source.get(),i.dataSource instanceof _.data.DataSource&&i.dataSource!=t&&(t instanceof _.data.DataSource?i.setDataSource(t):t&&t._dataSource?i.setDataSource(t._dataSource):i.dataSource.data(t)))},destroy:function(){var e=this.widget;e.unbind("dataBinding",this._dataBinding),e.unbind("dataBound",this._dataBound),e.unbind("itemChange",this._itemChange)}}),value:v.extend({init:function(t,n,i){v.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(z,this._change);var r=this.bindings.value.get();this._valueIsObservableObject=!i.valuePrimitive&&(null==r||r instanceof C),this._valueIsObservableArray=r instanceof A,this._initChange=!1},change:function(){var e,t,n,i,r,o,a,s=this.widget.value(),l=this.options.dataValueField||this.options.dataTextField,c="[object Array]"===S.call(s),d=this._valueIsObservableObject,u=[];if(this._initChange=!0,l)if(this.bindings.source&&(a=this.bindings.source.get()),""===s&&(d||this.options.valuePrimitive))s=null;else{for((!a||a instanceof _.data.DataSource)&&(a=this.widget.dataSource.view()),c&&(t=s.length,u=s.slice(0)),r=0,o=a.length;o>r;r++)if(n=a[r],i=n.get(l),c){for(e=0;t>e;e++)if(i==u[e]){u[e]=n;break}}else if(i==s){s=d?n:i;break}u[0]&&(s=this._valueIsObservableArray?u:d||!l?u[0]:u[0].get(l))}this.bindings.value.set(s),this._initChange=!1},refresh:function(){if(!this._initChange){var e,t=this.options.dataValueField||this.options.dataTextField,n=this.bindings.value.get(),i=0,r=[];if(t)if(n instanceof A){for(e=n.length;e>i;i++)r[i]=n[i].get(t);n=r}else n instanceof C&&(n=n.get(t));this.widget.value(n)}this._initChange=!1},destroy:function(){this.widget.unbind(z,this._change)}}),multiselect:{value:v.extend({init:function(t,n,i){v.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(z,this._change),this._initChange=!1},change:function(){var e,t,n,i,r,o,a,s,l,c=this,d=c.bindings[M].get(),u=c.options.valuePrimitive,h=u?c.widget.value():c.widget.dataItems(),p=this.options.dataValueField||this.options.dataTextField;if(h=h.slice(0),c._initChange=!0,d instanceof A){for(e=[],t=h.length,n=0,i=0,r=d[n],o=!1;r;){for(l=!1,i=0;t>i;i++)if(u?o=h[i]==r:(s=h[i],s=s.get?s.get(p):s,o=s==(r.get?r.get(p):r)),o){h.splice(i,1),t-=1,l=!0;break}l?n+=1:(e.push(r),P.call(d,n,1),a=n),r=d[n]}P.apply(d,[d.length,0].concat(h)),e.length&&d.trigger("change",{action:"remove",items:e,index:a}),h.length&&d.trigger("change",{action:"add",items:h,index:d.length-1})}else c.bindings[M].set(h);c._initChange=!1},refresh:function(){if(!this._initChange){var e,t,n=this.options.dataValueField||this.options.dataTextField,i=this.bindings.value.get(),r=0,o=[];if(n)if(i instanceof A){for(e=i.length;e>r;r++)t=i[r],o[r]=t.get?t.get(n):t;i=o}else i instanceof C&&(i=i.get(n));this.widget.value(i)}},destroy:function(){this.widget.unbind(z,this._change)}})}},x=D.extend({init:function(e,t){this.target=e,this.options=t,this.toDestroy=[]},bind:function(e){var t,n,i,r,o=this.target.nodeName.toLowerCase(),a=T[o]||{};for(t in e)t==M?n=!0:t==E?i=!0:t==I?r=!0:this.applyBinding(t,e,a);i&&this.applyBinding(E,e,a),n&&this.applyBinding(M,e,a),r&&this.applyBinding(I,e,a)},applyBinding:function(e,t,n){var i,r=n[e]||T[e],o=this.toDestroy,a=t[e];if(r)if(r=new r(this.target,t,this.options),o.push(r),a instanceof f)r.bind(a),o.push(a);else for(i in a)r.bind(a,i),o.push(a[i]);else if("template"!==e)throw Error("The "+e+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var e,t,n=this.toDestroy;for(e=0,t=n.length;t>e;e++)n[e].destroy()}}),y=x.extend({bind:function(e){var t,n=this,i=!1,r=!1,o=T.widget[n.target.options.name.toLowerCase()]||{};for(t in e)t==M?i=!0:t==E?r=!0:n.applyBinding(t,e);r&&n.applyBinding(E,e),i&&n.applyBinding(M,e,o[M])},applyBinding:function(e,t,n){var i,r=n||T.widget[e],o=this.toDestroy,a=t[e];if(!r)throw Error("The "+e+" binding is not supported by the "+this.target.options.name+" widget");if(r=new r(this.target,t,this.target.options),o.push(r),a instanceof f)r.bind(a),o.push(a);else for(i in a)r.bind(a,i),o.push(a[i])}}),w=/[A-Za-z0-9_\-]+:(\{([^}]*)\}|[^,}]+)/g,b=/\s/g,_.unbind=u,_.bind=s,_.data.binders=T,_.data.Binder=v,_.notify=h,_.observable=function(e){return e instanceof C||(e=new C(e)),e},_.observableHierarchy=function(e){function t(e){var n,i;for(n=0;n<e.length;n++)e[n]._initChildren(),i=e[n].children,i.fetch(),e[n].items=i.data(),t(e[n].items)}var n=_.data.HierarchicalDataSource.create(e);return n.fetch(),t(n.data()),n._data._dataSource=n,n._data}}(window.kendo.jQuery),function(e){function t(e,t){var n=e.x.location,i=e.y.location,r=t.x.location,o=t.y.location,a=n-r,s=i-o;return{center:{x:(n+r)/2,y:(i+o)/2},distance:Math.sqrt(a*a+s*s)}}function n(e){var t,n,i,r=[],o=e.originalEvent,s=e.currentTarget,l=0;if(e.api)r.push({id:2,event:e,target:e.target,currentTarget:e.target,location:e});else if(e.type.match(/touch/))for(n=o?o.changedTouches:[],t=n.length;t>l;l++)i=n[l],r.push({location:i,event:e,target:i.target,currentTarget:s,id:i.identifier});else a.pointers||a.msPointers?r.push({location:o,event:e,target:e.target,currentTarget:s,id:o.pointerId}):r.push({id:1,event:e,target:e.target,currentTarget:s,location:e});return r}function i(t){var n,i,r;t.preventDefault(),n=e(t.data.root),i=n.closest(".k-widget").parent(),i[0]||(i=n.parent()),r=e.extend(!0,{},t,{target:n[0]}),i.trigger(e.Event(t.type,r))}function r(e){for(var t=o.eventMap.up.split(" "),n=0,i=t.length;i>n;n++)e(t[n])}var o=window.kendo,a=o.support,s=window.document,l=o.Class,c=o.Observable,d=e.now,u=e.extend,h=a.mobileOS,p=h&&h.android,f=800,g=a.browser.ie?5:0,m="press",v="hold",x="select",y="start",w="move",b="end",_="cancel",k="tap",C="release",A="gesturestart",S="gesturechange",T="gestureend",P="gesturetap",D=l.extend({init:function(e,t){var n=this;n.axis=e,n._updateLocationData(t),n.startLocation=n.location,n.velocity=n.delta=0,n.timeStamp=d()},move:function(e){var t=this,n=e["page"+t.axis],i=d(),r=i-t.timeStamp||1;(n||!p)&&(t.delta=n-t.location,t._updateLocationData(e),t.initialDelta=n-t.startLocation,t.velocity=t.delta/r,t.timeStamp=i)},_updateLocationData:function(e){var t=this,n=t.axis;t.location=e["page"+n],t.client=e["client"+n],t.screen=e["screen"+n]}}),B=l.extend({init:function(e,t,n){var i=this;u(i,{x:new D("X",n.location),y:new D("Y",n.location),userEvents:e,target:t,currentTarget:n.currentTarget,initialTouch:n.target,id:n.id,_moved:!1,_finished:!1}),i.press=function(){i._trigger(m,n),i._holdTimeout=setTimeout(function(){i._trigger(v,n)},e.minHold)}},move:function(e){var t=this;if(!t._finished){if(t.x.move(e.location),t.y.move(e.location),!t._moved){if(t._withinIgnoreThreshold())return;if(M.current&&M.current!==t.userEvents)return t.dispose();t._start(e)}t._finished||t._trigger(w,e)}},end:function(e){var t=this;t.endTime=d(),t._finished||(t._moved?t._trigger(b,e):t._trigger(k,e),clearTimeout(t._holdTimeout),t._trigger(C,e),t.dispose())},dispose:function(){var t=this,n=t.userEvents,i=n.touches;
t._finished=!0,i.splice(e.inArray(t,i),1)},skip:function(){this.dispose()},cancel:function(){this.dispose()},isMoved:function(){return this._moved},_start:function(e){clearTimeout(this._holdTimeout),this.startTime=d(),this._moved=!0,this._trigger(y,e)},_trigger:function(e,t){var n=this,i=t.event,r={touch:n,x:n.x,y:n.y,target:n.target,event:i};n.userEvents.notify(e,r)&&i.preventDefault()},_withinIgnoreThreshold:function(){var e=this.x.initialDelta,t=this.y.initialDelta;return Math.sqrt(e*e+t*t)<=this.userEvents.threshold}}),M=c.extend({init:function(t,n){var i,l,d,h=this,p=o.guid();n=n||{},i=h.filter=n.filter,h.threshold=n.threshold||g,h.minHold=n.minHold||f,h.touches=[],h._maxTouches=n.multiTouch?2:1,h.allowSelection=n.allowSelection,h.captureUpIfMoved=n.captureUpIfMoved,h.eventNS=p,t=e(t).handler(h),c.fn.init.call(h),u(h,{element:t,surface:n.global?e(s.documentElement):e(n.surface||t),stopPropagation:n.stopPropagation,pressed:!1}),h.surface.handler(h).on(o.applyEventMap("move",p),"_move").on(o.applyEventMap("up cancel",p),"_end"),t.on(o.applyEventMap("down",p),i,"_start"),(a.pointers||a.msPointers)&&t.css("-ms-touch-action","pinch-zoom double-tap-zoom"),n.preventDragEvent&&t.on(o.applyEventMap("dragstart",p),o.preventDefault),t.on(o.applyEventMap("mousedown selectstart",p),i,{root:t},"_select"),h.captureUpIfMoved&&a.eventCapture&&(l=h.surface[0],d=e.proxy(h.preventIfMoving,h),r(function(e){l.addEventListener(e,d,!0)})),h.bind([m,v,k,y,w,b,C,_,A,S,T,P,x],n)},preventIfMoving:function(e){this._isMoved()&&e.preventDefault()},destroy:function(){var e,t=this;t._destroyed||(t._destroyed=!0,t.captureUpIfMoved&&a.eventCapture&&(e=t.surface[0],r(function(n){e.removeEventListener(n,t.preventIfMoving)})),t.element.kendoDestroy(t.eventNS),t.surface.kendoDestroy(t.eventNS),t.element.removeData("handler"),t.surface.removeData("handler"),t._disposeAll(),t.unbind(),delete t.surface,delete t.element)},capture:function(){M.current=this},cancel:function(){this._disposeAll(),this.trigger(_)},notify:function(e,n){var i=this,r=i.touches;if(this._isMultiTouch()){switch(e){case w:e=S;break;case b:e=T;break;case k:e=P}u(n,{touches:r},t(r[0],r[1]))}return this.trigger(e,n)},press:function(e,t,n){this._apiCall("_start",e,t,n)},move:function(e,t){this._apiCall("_move",e,t)},end:function(e,t){this._apiCall("_end",e,t)},_isMultiTouch:function(){return this.touches.length>1},_maxTouchesReached:function(){return this.touches.length>=this._maxTouches},_disposeAll:function(){for(var e=this.touches;e.length>0;)e.pop().dispose()},_isMoved:function(){return e.grep(this.touches,function(e){return e.isMoved()}).length},_select:function(e){(!this.allowSelection||this.trigger(x,{event:e}))&&i(e)},_start:function(t){var i,r,o=this,a=0,s=o.filter,l=n(t),c=l.length;if(!o._maxTouchesReached())for(M.current=null,o.currentTarget=t.currentTarget,o.stopPropagation&&t.stopPropagation();c>a&&!o._maxTouchesReached();a++)r=l[a],i=s?e(r.currentTarget):o.element,i.length&&(r=new B(o,i,r),o.touches.push(r),r.press(),o._isMultiTouch()&&o.notify("gesturestart",{}))},_move:function(e){this._eachTouch("move",e)},_end:function(e){this._eachTouch("end",e)},_eachTouch:function(e,t){var i,r,o,a,s=this,l={},c=n(t),d=s.touches;for(i=0;i<d.length;i++)r=d[i],l[r.id]=r;for(i=0;i<c.length;i++)o=c[i],a=l[o.id],a&&a[e](o)},_apiCall:function(t,n,i,r){this[t]({api:!0,pageX:n,pageY:i,clientX:n,clientY:i,target:r||this.element,stopPropagation:e.noop,preventDefault:e.noop})}});o.getTouches=n,o.touchDelta=t,o.UserEvents=M}(window.kendo.jQuery),function(e,t){function n(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}function i(e){return D?m.elementFromPoint(e.x.screen,e.y.screen):m.elementFromPoint(e.x.client,e.y.client)}function r(e,t){return parseInt(e.css(t),10)||0}function o(e,t){return Math.min(Math.max(e,t.min),t.max)}function a(e,t){var n=k(e),i=n.left+r(e,"borderLeftWidth")+r(e,"paddingLeft"),o=n.top+r(e,"borderTopWidth")+r(e,"paddingTop"),a=i+e.width()-t.outerWidth(!0),s=o+e.height()-t.outerHeight(!0);return{x:{min:i,max:a},y:{min:o,max:s}}}function s(e,n,i){for(var r,o,a=0,s=n&&n.length,l=i&&i.length;e&&e.parentNode;){for(a=0;s>a;a++)if(r=n[a],r.element[0]===e)return{target:r,targetElement:e};for(a=0;l>a;a++)if(o=i[a],g.matchesSelector.call(e,o.options.filter))return{target:o,targetElement:e};e=e.parentNode}return t}var l,c,d,u,h,p,f=window.kendo,g=f.support,m=window.document,v=f.Class,x=f.ui.Widget,y=f.Observable,w=f.UserEvents,b=e.proxy,_=e.extend,k=f.getOffset,C={},A={},S={},T=g.mobileOS,P=T&&T.android,D=P&&"chrome"==T.browser,B="keyup",M="change",E="dragstart",I="hold",L="drag",z="dragend",O="dragcancel",R="dragenter",V="dragleave",F="drop",H=y.extend({init:function(t,n){var i=this,r=t[0];i.capture=!1,r.addEventListener?(e.each(f.eventMap.down.split(" "),function(){r.addEventListener(this,b(i._press,i),!0)}),e.each(f.eventMap.up.split(" "),function(){r.addEventListener(this,b(i._release,i),!0)})):(e.each(f.eventMap.down.split(" "),function(){r.attachEvent(this,b(i._press,i))}),e.each(f.eventMap.up.split(" "),function(){r.attachEvent(this,b(i._release,i))})),y.fn.init.call(i),i.bind(["press","release"],n||{})},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1},_press:function(e){var t=this;t.trigger("press"),t.capture&&e.preventDefault()},_release:function(e){var t=this;t.trigger("release"),t.capture&&(e.preventDefault(),t.cancelCapture())}}),N=y.extend({init:function(t){var n=this;y.fn.init.call(n),n.forcedEnabled=!1,e.extend(n,t),n.scale=1,n.horizontal?(n.measure="offsetWidth",n.scrollSize="scrollWidth",n.axis="x"):(n.measure="offsetHeight",n.scrollSize="scrollHeight",n.axis="y")},makeVirtual:function(){e.extend(this,{virtual:!0,forcedEnabled:!0,_virtualMin:1e3,_virtualMax:-1e3})},virtualSize:function(e,t){(this._virtualMin!==e||this._virtualMax!==t)&&(this._virtualMin=e,this._virtualMax=t,this.update())},outOfBounds:function(e){return e>this.max||e<this.min},forceEnabled:function(){this.forcedEnabled=!0},getSize:function(){return this.container[0][this.measure]},getTotal:function(){return this.element[0][this.scrollSize]},rescale:function(e){this.scale=e},update:function(e){var t=this,n=t.virtual?t._virtualMax:t.getTotal(),i=n*t.scale,r=t.getSize();t.max=t.virtual?-t._virtualMin:0,t.size=r,t.total=i,t.min=Math.min(t.max,r-i),t.minScale=r/n,t.centerOffset=(i-r)/2,t.enabled=t.forcedEnabled||i>r,e||t.trigger(M,t)}}),j=y.extend({init:function(e){var t=this;y.fn.init.call(t),t.x=new N(_({horizontal:!0},e)),t.y=new N(_({horizontal:!1},e)),t.container=e.container,t.forcedMinScale=e.minScale,t.maxScale=e.maxScale||100,t.bind(M,e)},rescale:function(e){this.x.rescale(e),this.y.rescale(e),this.refresh()},centerCoordinates:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},refresh:function(){var e=this;e.x.update(),e.y.update(),e.enabled=e.x.enabled||e.y.enabled,e.minScale=e.forcedMinScale||Math.min(e.x.minScale,e.y.minScale),e.fitScale=Math.max(e.x.minScale,e.y.minScale),e.trigger(M)}}),U=y.extend({init:function(e){var t=this;_(t,e),y.fn.init.call(t)},dragMove:function(e){var t=this,n=t.dimension,i=t.axis,r=t.movable,o=r[i]+e;n.enabled&&((o<n.min&&0>e||o>n.max&&e>0)&&(e*=t.resistance),r.translateAxis(i,e),t.trigger(M,t))}}),G=v.extend({init:function(e){var t,n,i,r,o=this;_(o,{elastic:!0},e),i=o.elastic?.5:0,r=o.movable,o.x=t=new U({axis:"x",dimension:o.dimensions.x,resistance:i,movable:r}),o.y=n=new U({axis:"y",dimension:o.dimensions.y,resistance:i,movable:r}),o.userEvents.bind(["move","end","gesturestart","gesturechange"],{gesturestart:function(e){o.gesture=e,o.offset=o.dimensions.container.offset()},gesturechange:function(e){var i,a,s,l=o.gesture,c=l.center,d=e.center,u=e.distance/l.distance,h=o.dimensions.minScale,p=o.dimensions.maxScale;r.scale<=h&&1>u&&(u+=.8*(1-u)),r.scale*u>=p&&(u=p/r.scale),a=r.x+o.offset.left,s=r.y+o.offset.top,i={x:(a-c.x)*u+d.x-a,y:(s-c.y)*u+d.y-s},r.scaleWith(u),t.dragMove(i.x),n.dragMove(i.y),o.dimensions.rescale(r.scale),o.gesture=e,e.preventDefault()},move:function(e){e.event.target.tagName.match(/textarea|input/i)||(t.dimension.enabled||n.dimension.enabled?(t.dragMove(e.x.delta),n.dragMove(e.y.delta),e.preventDefault()):e.touch.skip())},end:function(e){e.preventDefault()}})}}),W=g.transitions.prefix+"Transform";c=g.hasHW3D?function(e,t,n){return"translate3d("+e+"px,"+t+"px,0) scale("+n+")"}:function(e,t,n){return"translate("+e+"px,"+t+"px) scale("+n+")"},d=y.extend({init:function(t){var n=this;y.fn.init.call(n),n.element=e(t),n.element[0].style.webkitTransformOrigin="left top",n.x=0,n.y=0,n.scale=1,n._saveCoordinates(c(n.x,n.y,n.scale))},translateAxis:function(e,t){this[e]+=t,this.refresh()},scaleTo:function(e){this.scale=e,this.refresh()},scaleWith:function(e){this.scale*=e,this.refresh()},translate:function(e){this.x+=e.x,this.y+=e.y,this.refresh()},moveAxis:function(e,t){this[e]=t,this.refresh()},moveTo:function(e){_(this,e),this.refresh()},refresh:function(){var e,t=this,n=t.x,i=t.y;t.round&&(n=Math.round(n),i=Math.round(i)),e=c(n,i,t.scale),e!=t.coordinates&&(f.support.browser.msie&&f.support.browser.version<10?(t.element[0].style.position="absolute",t.element[0].style.left=t.x+"px",t.element[0].style.top=t.y+"px"):t.element[0].style[W]=e,t._saveCoordinates(e),t.trigger(M))},_saveCoordinates:function(e){this.coordinates=e}}),u=x.extend({init:function(e,t){var n,i=this;x.fn.init.call(i,e,t),n=i.options.group,n in A?A[n].push(i):A[n]=[i]},events:[R,V,F],options:{name:"DropTarget",group:"default"},destroy:function(){var e,t=this.options.group,n=A[t]||S[t];if(n.length>1){for(x.fn.destroy.call(this),e=0;e<n.length;e++)if(n[e]==this){n.splice(e,1);break}}else u.destroyGroup(t)},_trigger:function(e,n){var i=this,r=C[i.options.group];return r?i.trigger(e,_({},n.event,{draggable:r,dropTarget:n.dropTarget})):t},_over:function(e){this._trigger(R,e)},_out:function(e){this._trigger(V,e)},_drop:function(e){var t=this,n=C[t.options.group];n&&(n.dropped=!t._trigger(F,e))}}),u.destroyGroup=function(e){var t,n=A[e]||S[e];if(n){for(t=0;t<n.length;t++)x.fn.destroy.call(n[t]);n.length=0,delete A[e],delete S[e]}},u._cache=A,h=u.extend({init:function(e,t){var n,i=this;x.fn.init.call(i,e,t),n=i.options.group,n in S?S[n].push(i):S[n]=[i]},options:{name:"DropTargetArea",group:"default",filter:null}}),p=x.extend({init:function(e,t){var n=this;x.fn.init.call(n,e,t),n._activated=!1,n.userEvents=new w(n.element,{global:!0,stopPropagation:!0,filter:n.options.filter,threshold:n.options.distance,start:b(n._start,n),hold:b(n._hold,n),move:b(n._drag,n),end:b(n._end,n),cancel:b(n._cancel,n)}),n._afterEndHandler=b(n._afterEnd,n),n.captureEscape=function(e){e.keyCode===f.keys.ESC&&(n._trigger(O,{event:e}),n.userEvents.cancel())}},events:[I,E,L,z,O],options:{name:"Draggable",distance:5,group:"default",cursorOffset:null,axis:null,container:null,holdToDrag:!1,dropped:!1},cancelHold:function(){this._activated=!1},_updateHint:function(t){var n,i=this,r=i.options,a=i.boundaries,s=r.axis,l=i.options.cursorOffset;l?n={left:t.x.location+l.left,top:t.y.location+l.top}:(i.hintOffset.left+=t.x.delta,i.hintOffset.top+=t.y.delta,n=e.extend({},i.hintOffset)),a&&(n.top=o(n.top,a.y),n.left=o(n.left,a.x)),"x"===s?delete n.top:"y"===s&&delete n.left,i.hint.css(n)},_start:function(n){var i,r=this,o=r.options,s=o.container,l=o.hint;return o.holdToDrag&&!r._activated?(r.userEvents.cancel(),t):(r.currentTarget=n.target,r.currentTargetOffset=k(r.currentTarget),l&&(r.hint&&r.hint.stop(!0,!0).remove(),r.hint=f.isFunction(l)?e(l.call(r,r.currentTarget)):l,i=k(r.currentTarget),r.hintOffset=i,r.hint.css({position:"absolute",zIndex:2e4,left:i.left,top:i.top}).appendTo(m.body)),C[o.group]=r,r.dropped=!1,s&&(r.boundaries=a(s,r.hint)),r._trigger(E,n)&&(r.userEvents.cancel(),r._afterEnd()),e(m).on(B,r.captureEscape),t)},_hold:function(e){this.currentTarget=e.target,this._trigger(I,e)?this.userEvents.cancel():this._activated=!0},_drag:function(n){var i=this;n.preventDefault(),i._withDropTarget(n,function(i,r){if(!i)return l&&(l._trigger(V,_(n,{dropTarget:e(l.targetElement)})),l=null),t;if(l){if(r===l.targetElement)return;l._trigger(V,_(n,{dropTarget:e(l.targetElement)}))}i._trigger(R,_(n,{dropTarget:e(r)})),l=_(i,{targetElement:r})}),i._trigger(L,n),i.hint&&i._updateHint(n)},_end:function(t){var n=this;n._withDropTarget(t,function(n,i){n&&(n._drop(_({},t,{dropTarget:e(i)})),l=null)}),n._trigger(z,t),n._cancel(t.event)},_cancel:function(){var e=this;e._activated=!1,e.hint&&!e.dropped?setTimeout(function(){e.hint.stop(!0,!0).animate(e.currentTargetOffset,"fast",e._afterEndHandler)},0):e._afterEnd()},_trigger:function(e,t){var n=this;return n.trigger(e,_({},t.event,{x:t.x,y:t.y,currentTarget:n.currentTarget,dropTarget:t.dropTarget}))},_withDropTarget:function(e,t){var r,o,a=this,l=a.options,c=A[l.group],d=S[l.group];(c&&c.length||d&&d.length)&&(r=i(e),a.hint&&n(a.hint[0],r)&&(a.hint.hide(),r=i(e),r||(r=i(e)),a.hint.show()),o=s(r,c,d),o?t(o.target,o.targetElement):t())},destroy:function(){var e=this;x.fn.destroy.call(e),e._afterEnd(),e.userEvents.destroy()},_afterEnd:function(){var t=this;t.hint&&t.hint.remove(),delete C[t.options.group],t.trigger("destroy"),e(m).off(B,t.captureEscape)}}),f.ui.plugin(u),f.ui.plugin(h),f.ui.plugin(p),f.TapCapture=H,f.containerBoundaries=a,_(f.ui,{Pane:G,PaneDimensions:j,Movable:d})}(window.kendo.jQuery),function(e){var t=window.kendo,n=t.mobile,i=t.effects,r=n.ui,o=e.proxy,a=e.extend,s=r.Widget,l=t.Class,c=t.ui.Movable,d=t.ui.Pane,u=t.ui.PaneDimensions,h=i.Transition,p=i.Animation,f=Math.abs,g=500,m=.7,v=.96,x=10,y=55,w=.5,b=5,_="km-scroller-release",k="km-scroller-refresh",C="pull",A="change",S="resize",T="scroll",P=p.extend({init:function(e){var t=this;p.fn.init.call(t),a(t,e),t.userEvents.bind("gestureend",o(t.start,t)),t.tapCapture.bind("press",o(t.cancel,t))},done:function(){return this.dimensions.minScale-this.movable.scale<.01},tick:function(){var e=this.movable;e.scaleWith(1.1),this.dimensions.rescale(e.scale)},onEnd:function(){var e=this.movable;e.scaleTo(this.dimensions.minScale),this.dimensions.rescale(e.scale)}}),D=p.extend({init:function(e){var t=this;p.fn.init.call(t),a(t,e,{transition:new h({axis:e.axis,movable:e.movable,onEnd:function(){t._end()}})}),t.tapCapture.bind("press",function(){t.cancel()}),t.userEvents.bind("end",o(t.start,t)),t.userEvents.bind("gestureend",o(t.start,t)),t.userEvents.bind("tap",o(t.onEnd,t))},onCancel:function(){this.transition.cancel()},freeze:function(e){var t=this;t.cancel(),t._moveTo(e)},onEnd:function(){var e=this;e._outOfBounds()?e._snapBack():e._end()},done:function(){return f(this.velocity)<1},start:function(e){var t=this;t.dimension.enabled&&(t._outOfBounds()?t._snapBack():(t.velocity=Math.max(Math.min(e.touch[t.axis].velocity*t.velocityMultiplier,y),-y),t.velocity?(t.tapCapture.captureNext(),p.fn.start.call(t)):t._end()))},tick:function(){var e=this,t=e.dimension,n=e._outOfBounds()?w:e.friction,i=e.velocity*=n,r=e.movable[e.axis]+i;!e.elastic&&t.outOfBounds(r)&&(r=Math.max(Math.min(r,t.max),t.min),e.velocity=0),e.movable.moveAxis(e.axis,r)},_end:function(){this.tapCapture.cancelCapture(),this.end()},_outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},_snapBack:function(){var e=this,t=e.dimension,n=e.movable[e.axis]>t.max?t.max:t.min;e._moveTo(n)},_moveTo:function(e){this.transition.moveTo({location:e,duration:g,ease:h.easeOutExpo})}}),B=p.extend({init:function(e){var n=this;t.effects.Animation.fn.init.call(this),a(n,e,{origin:{},destination:{},offset:{}})},tick:function(){this._updateCoordinates(),this.moveTo(this.origin)},done:function(){return f(this.offset.y)<b&&f(this.offset.x)<b},onEnd:function(){this.moveTo(this.destination)},setCoordinates:function(e,t){this.offset={},this.origin=e,this.destination=t},_updateCoordinates:function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}),M=l.extend({init:function(t){var n=this,i="x"===t.axis,r=e('<div class="km-touch-scrollbar km-'+(i?"horizontal":"vertical")+'-scrollbar" />');a(n,t,{element:r,elementSize:0,movable:new c(r),scrollMovable:t.movable,size:i?"width":"height"}),n.scrollMovable.bind(A,o(n._move,n)),n.container.append(r)},_move:function(){var e=this,t=e.axis,n=e.dimension,i=n.size,r=e.scrollMovable,o=i/n.total,a=Math.round(-r[t]*o),s=Math.round(i*o);a+s>i?s=i-a:0>a&&(s+=a,a=0),e.elementSize!=s&&(e.element.css(e.size,s+"px"),e.elementSize=s),e.movable.moveAxis(t,a)},show:function(){this.element.css({opacity:m,visibility:"visible"})},hide:function(){this.element.css({opacity:0})}}),E=s.extend({init:function(e,n){var i,r,o,l,h,p,g,m,v,x=this;return s.fn.init.call(x,e,n),e=x.element,x._native=x.options.useNative&&t.support.hasNativeScrolling,x._native?(e.addClass("km-native-scroller").prepend('<div class="km-scroll-header"/>'),a(x,{scrollElement:e,fixedContainer:e.children().first()}),undefined):(e.css("overflow","hidden").addClass("km-scroll-wrapper").wrapInner('<div class="km-scroll-container"/>').prepend('<div class="km-scroll-header"/>'),i=e.children().eq(1),r=new t.TapCapture(e),o=new c(i),l=new u({element:i,container:e,forcedEnabled:x.options.zoom}),h=this.options.avoidScrolling,p=new t.UserEvents(e,{allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:x.options.zoom,start:function(e){l.refresh();var t=f(e.x.velocity),n=f(e.y.velocity),i=2*t>=n,r=2*n>=t;!h(e)&&x.enabled&&(l.x.enabled&&i||l.y.enabled&&r)?p.capture():p.cancel()}}),g=new d({movable:o,dimensions:l,userEvents:p,elastic:x.options.elastic}),m=new P({movable:o,dimensions:l,userEvents:p,tapCapture:r}),v=new B({moveTo:function(e){x.scrollTo(e.x,e.y)}}),o.bind(A,function(){x.scrollTop=-o.y,x.scrollLeft=-o.x,x.trigger(T,{scrollTop:x.scrollTop,scrollLeft:x.scrollLeft})}),a(x,{movable:o,dimensions:l,zoomSnapBack:m,animatedScroller:v,userEvents:p,pane:g,tapCapture:r,pulled:!1,enabled:!0,scrollElement:i,scrollTop:0,scrollLeft:0,fixedContainer:e.children().first()}),x._initAxis("x"),x._initAxis("y"),l.refresh(),x.options.pullToRefresh&&x._initPullToRefresh(),undefined)},makeVirtual:function(){this.dimensions.y.makeVirtual()},virtualSize:function(e,t){this.dimensions.y.virtualSize(e,t)},height:function(){return this.dimensions.y.size},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:"Scroller",zoom:!1,pullOffset:140,elastic:!0,useNative:!1,avoidScrolling:function(){return!1},pullToRefresh:!1,pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"},events:[C,T,S],_resize:function(){this._native||this.dimensions.refresh(),this.reset()},setOptions:function(e){var t=this;s.fn.setOptions.call(t,e),e.pullToRefresh&&t._initPullToRefresh()},reset:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))},zoomOut:function(){var e=this.dimensions;e.refresh(),this._scale(e.fitScale),this.movable.moveTo(e.centerCoordinates())},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},scrollTo:function(e,t){this._native?(this.scrollElement.scrollLeft(e),this.scrollElement.scrollTop(t)):(this.dimensions.refresh(),this.movable.moveTo({x:e,y:t}))},animatedScrollTo:function(e,t){var n={x:this.movable.x,y:this.movable.y},i={x:e,y:t};this.animatedScroller.setCoordinates(n,i),this.animatedScroller.start()},pullHandled:function(){var e=this;e.refreshHint.removeClass(k),e.hintContainer.html(e.pullTemplate({})),e.yinertia.onEnd(),e.xinertia.onEnd()},destroy:function(){s.fn.destroy.call(this),this.userEvents&&this.userEvents.destroy()},_scale:function(e){this.dimensions.rescale(e),this.movable.scaleTo(e)},_initPullToRefresh:function(){var e=this;e.dimensions.y.forceEnabled(),e.pullTemplate=t.template(e.options.pullTemplate),e.releaseTemplate=t.template(e.options.releaseTemplate),e.refreshTemplate=t.template(e.options.refreshTemplate),e.scrollElement.prepend('<span class="km-scroller-pull"><span class="km-icon"></span><span class="km-loading-left"></span><span class="km-loading-right"></span><span class="km-template">'+e.pullTemplate({})+"</span></span>"),e.refreshHint=e.scrollElement.children().first(),e.hintContainer=e.refreshHint.children(".km-template"),e.pane.y.bind("change",o(e._paneChange,e)),e.userEvents.bind("end",o(e._dragEnd,e))},_dragEnd:function(){var e=this;e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(_).addClass(k),e.hintContainer.html(e.refreshTemplate({})),e.yinertia.freeze(e.options.pullOffset/2),e.trigger("pull"))},_paneChange:function(){var e=this;e.movable.y/w>e.options.pullOffset?e.pulled||(e.pulled=!0,e.refreshHint.removeClass(k).addClass(_),e.hintContainer.html(e.releaseTemplate({}))):e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(_),e.hintContainer.html(e.pullTemplate({})))},_initAxis:function(e){var t=this,n=t.movable,i=t.dimensions[e],r=t.tapCapture,o=new M({axis:e,movable:n,dimension:i,container:t.element});t.pane[e].bind(A,function(){o.show()}),t[e+"inertia"]=new D({axis:e,movable:n,tapCapture:r,userEvents:t.userEvents,dimension:i,elastic:t.options.elastic,friction:t.options.friction||v,velocityMultiplier:t.options.velocityMultiplier||x,end:function(){o.hide(),t.trigger("scrollEnd",{axis:e,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft})}})}});r.plugin(E)}(window.kendo.jQuery),function(e){function t(t,n){return t===n||e.contains(t,n)}var n=window.kendo,i=n.ui,r=i.Widget,o=n.support,a=n.getOffset,s=n._activeElement,l="open",c="close",d="deactivate",u="activate",h="center",p="left",f="right",g="top",m="bottom",v="absolute",x="hidden",y="body",w="location",b="position",_="visible",k="effects",C="k-state-active",A="k-state-border",S=/k-state-border-(\w+)/,T=".k-picker-wrap, .k-dropdown-wrap, .k-link",P="down",D=e(window),B=e(document.documentElement),M="resize scroll",E=o.transitions.css,I=E+"transform",L=e.extend,z=".kendoPopup",O=["font-family","font-size","font-stretch","font-style","font-weight","line-height"],R=r.extend({init:function(t,i){var o,a=this;i=i||{},i.isRtl&&(i.origin=i.origin||m+" "+f,i.position=i.position||g+" "+f),r.fn.init.call(a,t,i),t=a.element,i=a.options,a.collisions=i.collision?i.collision.split(" "):[],1===a.collisions.length&&a.collisions.push(a.collisions[0]),o=e(a.options.anchor).closest(".k-popup,.k-group").filter(":not([class^=km-])"),i.appendTo=e(e(i.appendTo)[0]||o[0]||y),a.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!i.isRtl).css({position:v}).appendTo(i.appendTo).on("mouseenter"+z,function(){a._hovered=!0}).on("mouseleave"+z,function(){a._hovered=!1}),a.wrapper=e(),i.animation===!1&&(i.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),L(i.animation.open,{complete:function(){a.wrapper.css({overflow:_}),a.trigger(u)}}),L(i.animation.close,{complete:function(){a.wrapper.hide();var r,o,s=a.wrapper.data(w),l=e(i.anchor);s&&a.wrapper.css(s),i.anchor!=y&&(r=(l[0].className.match(S)||["","down"])[1],o=A+"-"+r,l.removeClass(o).children(T).removeClass(C).removeClass(o),t.removeClass(A+"-"+n.directions[r].reverse)),a._closing=!1,a.trigger(d)}}),a._mousedownProxy=function(e){a._mousedown(e)},a._resizeProxy=function(e){a._resize(e)},i.toggleTarget&&e(i.toggleTarget).on(i.toggleEvent+z,e.proxy(a.toggle,a))},events:[l,u,c,d],options:{name:"Popup",toggleEvent:"click",origin:m+" "+p,position:g+" "+p,anchor:y,collision:"flip fit",viewport:window,copyAnchorStyles:!0,autosize:!1,modal:!1,animation:{open:{effects:"slideIn:down",transition:!0,duration:200},close:{duration:100,hide:!0}}},destroy:function(){var t,i=this,o=i.options,a=i.element.off(z);r.fn.destroy.call(i),o.toggleTarget&&e(o.toggleTarget).off(z),o.modal||(B.unbind(P,i._mousedownProxy),D.unbind(M,i._resizeProxy)),o.appendTo[0]===document.body&&(t=a.parent(".k-animation-container"),t[0]?t.remove():a.remove()),n.destroy(i.element.children())},open:function(t,i){var r,a,s,c=this,d={isFixed:!isNaN(parseInt(i,10)),x:t,y:i},u=c.element,h=c.options,p="down",f=e(h.anchor);if(!c.visible()){if(h.copyAnchorStyles&&u.css(n.getComputedStyles(f[0],O)),u.data("animating")||c.trigger(l))return;h.modal||(B.unbind(P,c._mousedownProxy).bind(P,c._mousedownProxy),o.mobileOS.ios||o.mobileOS.android||D.unbind(M,c._resizeProxy).bind(M,c._resizeProxy)),c.wrapper=a=n.wrap(u,h.autosize).css({overflow:x,display:"block",position:v}),o.mobileOS.android&&a.add(f).css(I,"translatez(0)"),a.css(b),e(h.appendTo)[0]==document.body&&a.css(g,"-10000px"),r=L(!0,{},h.animation.open),c.flipped=c._position(d),r.effects=n.parseEffects(r.effects,c.flipped),p=r.effects.slideIn?r.effects.slideIn.direction:p,h.anchor!=y&&(s=A+"-"+p,u.addClass(A+"-"+n.directions[p].reverse),f.addClass(s).children(T).addClass(C).addClass(s)),u.data(k,r.effects).kendoStop(!0).kendoAnimate(r)}},toggle:function(){var e=this;e[e.visible()?c:l]()},visible:function(){return this.element.is(":"+_)},close:function(){var t,i,r,o,a=this,s=a.options;if(a.visible()){if(t=a.wrapper[0]?a.wrapper:n.wrap(a.element).hide(),a._closing||a.trigger(c))return;a.element.find(".k-popup").each(function(){var t=e(this),n=t.data("kendoPopup");n&&n.close()}),B.unbind(P,a._mousedownProxy),D.unbind(M,a._resizeProxy),i=L(!0,{},s.animation.close),r=a.element.data(k),o=i.effects,!o&&!n.size(o)&&r&&n.size(r)&&(i.effects=r,i.reverse=!0),a._closing=!0,a.element.kendoStop(!0),t.css({overflow:x}),a.element.kendoAnimate(i)}},_resize:function(e){var n=this;"resize"===e.type?(clearTimeout(n._resizeTimeout),n._resizeTimeout=setTimeout(function(){n._position(),n._resizeTimeout=null},50)):n._hovered||t(n.element[0],s())||n.close()},_mousedown:function(i){var r=this,o=r.element[0],a=r.options,s=e(a.anchor)[0],l=a.toggleTarget,c=n.eventTarget(i),d=e(c).closest(".k-popup"),u=d.parent().parent(".km-shim").length;d=d[0],(u||!d||d===r.element[0])&&"popover"!==e(i.target).closest("a").data("rel")&&(t(o,c)||t(s,c)||l&&t(e(l)[0],c)||r.close())},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),0>e&&(i=-e),i},_flip:function(e,t,n,i,r,o,a){var s=0;return a=a||t,o!==r&&o!==h&&r!==h&&(e+a>i&&(s+=-(n+t)),0>e+s&&(s+=n+t)),s},_position:function(t){var n,i,r,s,l,c,d,u,h,p=this,f=p.element.css(b,""),g=p.wrapper,m=p.options,x=e(m.viewport),y=e(x).offset(),_=e(m.anchor),k=m.origin.toLowerCase().split(" "),C=m.position.toLowerCase().split(" "),A=p.collisions,S=o.zoomLevel(),T=10002,P=0,D=_.parents().filter(g.siblings());if(D[0])if(i=Number(e(D).css("zIndex")))T=i+1;else for(n=_.parentsUntil(D),r=n.length;r>P;P++)i=Number(e(n[P]).css("zIndex")),i&&i>T&&(T=i+1);return g.css("zIndex",T),t&&t.isFixed?g.css({left:t.x,top:t.y}):g.css(p._align(k,C)),s=a(g,b,_[0]===g.offsetParent()[0]),l=a(g),c=_.offsetParent().parent(".k-animation-container,.k-popup,.k-group"),c.length&&(s=a(g,b,!0),l=a(g)),x[0]===window?(l.top-=window.pageYOffset||document.documentElement.scrollTop||0,l.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(l.top-=y.top,l.left-=y.left),p.wrapper.data(w)||g.data(w,L({},s)),d=L({},l),u=L({},s),"fit"===A[0]&&(u.top+=p._fit(d.top,g.outerHeight(),x.height()/S)),"fit"===A[1]&&(u.left+=p._fit(d.left,g.outerWidth(),x.width()/S)),h=L({},u),"flip"===A[0]&&(u.top+=p._flip(d.top,f.outerHeight(),_.outerHeight(),x.height()/S,k[0],C[0],g.outerHeight())),"flip"===A[1]&&(u.left+=p._flip(d.left,f.outerWidth(),_.outerWidth(),x.width()/S,k[1],C[1],g.outerWidth())),f.css(b,v),g.css(u),u.left!=h.left||u.top!=h.top},_align:function(t,n){var i,r=this,o=r.wrapper,s=e(r.options.anchor),l=t[0],c=t[1],d=n[0],u=n[1],p=a(s),g=e(r.options.appendTo),v=o.outerWidth(),x=o.outerHeight(),y=s.outerWidth(),w=s.outerHeight(),b=p.top,_=p.left,k=Math.round;return g[0]!=document.body&&(i=a(g),b-=i.top,_-=i.left),l===m&&(b+=w),l===h&&(b+=k(w/2)),d===m&&(b-=x),d===h&&(b-=k(x/2)),c===f&&(_+=y),c===h&&(_+=k(y/2)),u===f&&(_-=v),u===h&&(_-=k(v/2)),{top:b,left:_}}});i.plugin(R)}(window.kendo.jQuery),function(e){function t(e){for(;e.length;)n(e),e=e.parent()}function n(e){var t=e.data(o.ns+"title");t&&(e.attr("title",t),e.removeData(o.ns+"title"))}function i(e){var t=e.attr("title");t&&(e.data(o.ns+"title",t),e.attr("title",""))}function r(e){for(;e.length&&!e.is("body");)i(e),e=e.parent()}var o=window.kendo,a=o.ui.Widget,s=o.ui.Popup,l=o.isFunction,c=e.isPlainObject,d=e.extend,u=e.proxy,h=e(document),p=o.isLocalUrl,f="_tt_active",g="aria-describedby",m="show",v="hide",x="error",y="contentLoad",w="requestStart",b="k-content-frame",_='<div role="tooltip" class="k-widget k-tooltip#if (!autoHide) {# k-tooltip-closable#}#">#if (!autoHide) {# <div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close">close</a></div> #}#<div class="k-tooltip-content"></div>#if (callout){ #<div class="k-callout k-callout-#=dir#"></div>#}#</div>',k=o.template("<iframe frameborder='0' class='"+b+"' "+"src='#= content.url #'>"+"This page requires frames in order to show content"+"</iframe>"),C=".kendoTooltip",A={bottom:{origin:"bottom center",position:"top center"},top:{origin:"top center",position:"bottom center"},left:{origin:"center left",position:"center right",collision:"fit flip"},right:{origin:"center right",position:"center left",collision:"fit flip"},center:{position:"center center",origin:"center center"}},S={top:"bottom",bottom:"top",left:"right",right:"left",center:"center"},T={bottom:"n",top:"s",left:"e",right:"w",center:"n"},P={horizontal:{offset:"top",size:"outerHeight"},vertical:{offset:"left",size:"outerWidth"}},D=function(e){return e.target.data(o.ns+"title")},B=a.extend({init:function(e,t){var n,i=this;a.fn.init.call(i,e,t),n=i.options.position.match(/left|right/)?"horizontal":"vertical",i.dimensions=P[n],i._documentKeyDownHandler=u(i._documentKeyDown,i),i.element.on(i.options.showOn+C,i.options.filter,u(i._showOn,i)).on("mouseenter"+C,i.options.filter,u(i._mouseenter,i)),this.options.autoHide&&i.element.on("mouseleave"+C,i.options.filter,u(i._mouseleave,i))},options:{name:"Tooltip",filter:"",content:D,showAfter:100,callout:!0,position:"bottom",showOn:"mouseenter",autoHide:!0,width:null,height:null,animation:{open:{effects:"fade:in",duration:0},close:{effects:"fade:out",duration:40,hide:!0}}},events:[m,v,y,x,w],_mouseenter:function(t){r(e(t.currentTarget))},_showOn:function(t){var n=this,i=e(t.currentTarget);n.options.showOn&&n.options.showOn.match(/click|focus/)?n._show(i):(clearTimeout(n.timeout),n.timeout=setTimeout(function(){n._show(i)},n.options.showAfter))},_appendContent:function(e){var t,n=this,i=n.options.content,r=n.content,a=n.options.iframe;c(i)&&i.url?("iframe"in n.options||(a=!p(i.url)),n.trigger(w,{options:i,target:e}),a?(r.hide(),t=r.find("."+b)[0],t?t.src=i.url||t.src:r.html(k({content:i})),r.find("."+b).off("load"+C).on("load"+C,function(){n.trigger(y),r.show()})):(r.empty(),o.ui.progress(r,!0),n._ajaxRequest(i))):i&&l(i)?(i=i({sender:this,target:e}),n.content.html(i||"")):n.content.html(i)},_ajaxRequest:function(e){var t=this;jQuery.ajax(d({type:"GET",dataType:"html",cache:!1,error:function(e,n){o.ui.progress(t.content,!1),t.trigger(x,{status:n,xhr:e})},success:u(function(e){o.ui.progress(t.content,!1),t.content.html(e),t.trigger(y)},t)},e))},_documentKeyDown:function(e){e.keyCode===o.keys.ESC&&this.hide()},refresh:function(){var e=this,t=e.popup;t&&t.options.anchor&&e._appendContent(t.options.anchor)},hide:function(){this.popup&&this.popup.close()},show:function(e){e=e||this.element,r(e),this._show(e)},_show:function(e){var n=this,i=n.target();n.popup||n._initPopup(),i&&i[0]!=e[0]&&(n.popup.close(),n.popup.element.kendoStop(!0,!0)),i&&i[0]==e[0]||(n._appendContent(e),n.popup.options.anchor=e),n.popup.one("deactivate",function(){t(e),e.removeAttr(g),this.element.removeAttr("id").attr("aria-hidden",!0),h.off("keydown"+C,n._documentKeyDownHandler)}),n.popup.open()},_initPopup:function(){var t=this,n=t.options,i=e(o.template(_)({callout:n.callout&&"center"!==n.position,dir:T[n.position],autoHide:n.autoHide}));t.popup=new s(i,d({activate:function(){var e=this.options.anchor,i=e[0].id||t.element[0].id;
i&&(e.attr(g,i+f),this.element.attr("id",i+f)),n.callout&&t._positionCallout(),this.element.removeAttr("aria-hidden"),h.on("keydown"+C,t._documentKeyDownHandler),t.trigger(m)},close:function(){t.trigger(v)},copyAnchorStyles:!1,animation:n.animation},A[n.position])),i.css({width:n.width,height:n.height}),t.content=i.find(".k-tooltip-content"),t.arrow=i.find(".k-callout"),n.autoHide?i.on("mouseleave"+C,u(t._mouseleave,t)):i.on("click"+C,".k-tooltip-button",u(t._closeButtonClick,t))},_closeButtonClick:function(e){e.preventDefault(),this.hide()},_mouseleave:function(n){if(this.popup){var i=e(n.currentTarget),r=i.offset(),o=n.pageX,a=n.pageY;if(r.right=r.left+i.outerWidth(),r.bottom=r.top+i.outerHeight(),o>r.left&&o<r.right&&a>r.top&&a<r.bottom)return;this.popup.close()}else t(e(n.currentTarget));clearTimeout(this.timeout)},_positionCallout:function(){var t=this,n=t.options.position,i=t.dimensions,r=i.offset,o=t.popup,a=o.options.anchor,s=e(a).offset(),l=parseInt(t.arrow.css("border-top-width"),10),c=e(o.element).offset(),d=T[o.flipped?S[n]:n],u=s[r]-c[r]+e(a)[i.size]()/2-l;t.arrow.removeClass("k-callout-n k-callout-s k-callout-w k-callout-e").addClass("k-callout-"+d).css(r,u)},target:function(){return this.popup?this.popup.options.anchor:null},destroy:function(){var e=this.popup;e&&(e.element.off(C),e.destroy()),this.element.off(C),h.off("keydown"+C,this._documentKeyDownHandler),a.fn.destroy.call(this)}});o.ui.plugin(B)}(window.kendo.jQuery),function(e,t){function n(e,t){var n={top:0,right:0,bottom:0,left:0};return t=t||0,"number"==typeof e?n[on]=n[nn]=n[Pt]=n[Qt]=e:(n[on]=e[on]||t,n[nn]=e[nn]||t,n[Pt]=e[Pt]||t,n[Qt]=e[Qt]||t),n}function i(e,t){return gt.extend({init:function(e){this.view=e},decorate:function(n){var i,r=this,o=r.view,a=n.options.animation;return a&&a.type===e&&o.options.transitions&&(i=n._animation=new t(n,a),o.animations.push(i)),n}})}function r(t,n,i){var o,s,c,d,u,h,p,f,g,m,v,x=a(n),y=t+x+i,w=r.cache.get(y),b={width:0,height:0,baseline:0};if(w)return w;o=r.measureBox,s=r.baselineMarker.cloneNode(!1),o&&o.parentNode||(o=r.measureBox=e("<div style='position: absolute; top: -4000px;line-height: normal; visibility: hidden;' />").appendTo(ht.body)[0]);for(c in n)o.style[c]=n[c];return o.innerHTML=t,o.appendChild(s),(t+"").length&&(b={width:o.offsetWidth-St,height:o.offsetHeight,baseline:s.offsetTop+St}),i&&(d=b.width,u=b.height,h=d/2,p=u/2,f=l(0,0,h,p,i),g=l(d,0,h,p,i),m=l(d,u,h,p,i),v=l(0,u,h,p,i),b.normalWidth=d,b.normalHeight=u,b.width=wt.max(f.x,g.x,m.x,v.x)-wt.min(f.x,g.x,m.x,v.x),b.height=wt.max(f.y,g.y,m.y,v.y)-wt.min(f.y,g.y,m.y,v.y)),r.cache.put(y,b),b}function o(e,t){var n,i,r,o=v(t-e,Ot-1);if(0===o){if(0===t)return.1;o=wt.abs(t)}return n=wt.pow(10,wt.floor(wt.log(o)/wt.log(10))),i=v(o/n,Ot),r=1,r=1.904762>i?.2:4.761904>i?.5:9.523809>i?1:2,v(n*r,Ot)}function a(e){var t,n=[];for(t in e)n.push(t+e[t]);return n.sort().join(" ")}function s(){return at.current.alloc()}function l(e,t,n,i,r){var o=r*Vt;return new E(n+(e-n)*wt.cos(o)+(t-i)*wt.sin(o),i-(e-n)*wt.sin(o)+(t-i)*wt.cos(o))}function c(t,n){if(t.x1==n.x1&&t.y1==n.y1&&t.x2==n.x2&&t.y2==n.y2)return n;var i=wt.min(t.x1,n.x1),r=wt.max(t.x1,n.x1),o=wt.min(t.x2,n.x2),a=wt.max(t.x2,n.x2),s=wt.min(t.y1,n.y1),l=wt.max(t.y1,n.y1),c=wt.min(t.y2,n.y2),d=wt.max(t.y2,n.y2),u=[];return u[0]=I(r,s,o,l),u[1]=I(i,l,r,c),u[2]=I(o,l,a,c),u[3]=I(r,c,o,d),t.x1==i&&t.y1==s||n.x1==i&&n.y1==s?(u[4]=I(i,s,r,l),u[5]=I(o,c,a,d)):(u[4]=I(o,s,a,l),u[5]=I(i,c,r,d)),e.grep(u,function(e){return e.height()>0&&e.width()>0})[0]}function d(){return ht.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}function u(){return!!ht.createElement("canvas").getContext}function h(e,t){return-1!=yt(e,t)}function p(e){return e[e.length-1]}function f(e,t){e.push.apply(e,t)}function g(e,t){return v(wt.ceil(e/t)*t,Ot)}function m(e,t){return v(wt.floor(e/t)*t,Ot)}function v(e,t){var n=wt.pow(10,t||0);return wt.round(e*n)/n}function x(e,t,n){var i=v(wt.abs(e%t),Ot),r=t*(1-n);return 0===i||i>r}function y(e,t,n){return v(e+(t-e)*n,Bt)}function w(e){return typeof e!==sn}function b(e,t){return w(e)?e:t}function _(e,t){return e-t}function k(e,t,n){var i,r=e.length;for(i=0;r>i;i++)e[i][t]=n}function C(e,t){return e.match(Ht)?pt.format.apply(this,arguments):pt.toString(t,e)}function A(e){return ht.getElementById(e)}function S(e){for(var t=e.parentNode;t&&t.parentNode;)t=t.parentNode;return t!==ht}function T(e,t){return-e.x*t.y+e.y*t.x<0}function P(e){if(!e||!e.indexOf||e.indexOf("&")<0)return e;var t=P._element;return t.innerHTML=e,t.textContent||t.innerText}function D(e,t){return e&&t?e.getTime()-t.getTime():0}function B(e,t,n){return wt.max(wt.min(e,n),t)}function M(e){var t=e.originalEvent,n=0;return t.wheelDelta&&(n=-t.wheelDelta/120,n=n>0?wt.ceil(n):wt.floor(n)),t.detail&&(n=v(t.detail/3)),n}var E,I,L,z,O,R,V,F,H,N,j,U,G,W,q,Q,Y,X,$,Z,J,K,et,tt,nt,it,rt,ot,at,st,lt,ct,dt,ut,ht=document,pt=window.kendo,ft=pt.dataviz={},gt=pt.Class,mt=pt.template,vt=e.map,xt=e.noop,yt=e.inArray,wt=Math,bt=pt.deepExtend,_t=function(e){return mt(e,{useWithBlock:!1,paramName:"d"})},kt="k-",Ct=10,At="axisLabelClick",St=1,Tt="#000",Pt="bottom",Dt="center",Bt=3,Mt="clip",Et="circle",It="cross",Lt="12px sans-serif",zt=400,Ot=6,Rt=600,Vt=wt.PI/180,Ft="fadeIn",Ht=/\{\d+:?/,Nt="height",jt="k",Ut=1e3,Gt=1e4,Wt=600,qt="inside",Qt="left",Yt="linear",Xt=Number.MAX_VALUE,$t=-Number.MAX_VALUE,Zt="none",Jt="noteClick",Kt="noteHover",en="outside",tn="radial",nn="right",rn="swing",on="top",an="triangle",sn="undefined",ln=/([A-Z])/g,cn="width",dn="#fff",un="x",hn="y",pn=.2,fn=gt.extend({init:function(e,t,n,i,r,o){this.a=e||0,this.b=t||0,this.c=n||0,this.d=i||0,this.e=r||0,this.f=o||0},times:function(e){return new fn(this.a*e.a+this.c*e.b,this.b*e.a+this.d*e.b,this.a*e.c+this.c*e.d,this.b*e.c+this.d*e.d,this.a*e.e+this.c*e.f+this.e,this.b*e.e+this.d*e.f+this.f)}});bt(fn,{translate:function(e,t){var n=new fn;return n.a=1,n.b=0,n.c=0,n.d=1,n.e=e,n.f=t,n},unit:function(){return new fn(1,0,0,1,0,0)},rotate:function(e,t,n){var i=new fn;return i.a=wt.cos(e*Vt),i.b=wt.sin(e*Vt),i.c=-i.b,i.d=i.a,i.e=t-t*i.a+n*i.b||0,i.f=n-n*i.a-t*i.b||0,i},scale:function(e,t){var n=new fn;return n.a=e,n.b=0,n.c=0,n.d=t,n.e=0,n.f=0,n}}),pt.dataviz.Matrix=fn,E=function(e,n){var i=this;return i instanceof E?(i.x=e||0,i.y=n||0,t):new E(e,n)},E.fn=E.prototype={clone:function(){var e=this;return new E(e.x,e.y)},equals:function(e){return e&&e.x===this.x&&e.y===this.y},rotate:function(e,t){var n=this,i=t*Vt,r=wt.cos(i),o=wt.sin(i),a=e.x,s=e.y,l=n.x,c=n.y;return n.x=v(a+(l-a)*r+(c-s)*o,Bt),n.y=v(s+(c-s)*r-(l-a)*o,Bt),n},multiply:function(e){var t=this;return t.x*=e,t.y*=e,t},distanceTo:function(e){var t=this.x-e.x,n=this.y-e.y;return wt.sqrt(t*t+n*n)},transform:function(e){var t=this;return t.x=e.a*t.x+e.c*t.y+e.e,t.y=e.b*t.x+e.d*t.y+e.f,t}},E.onCircle=function(e,t,n){return t*=Vt,new E(e.x-n*wt.cos(t),e.y-n*wt.sin(t))},I=function(e,n,i,r){var o=this;return o instanceof I?(o.x1=e||0,o.x2=i||0,o.y1=n||0,o.y2=r||0,t):new I(e,n,i,r)},I.fn=I.prototype={width:function(){return this.x2-this.x1},height:function(){return this.y2-this.y1},translate:function(e,t){var n=this;return n.x1+=e,n.x2+=e,n.y1+=t,n.y2+=t,n},move:function(e,t){var n=this,i=n.height(),r=n.width();return w(e)&&(n.x1=e,n.x2=n.x1+r),w(t)&&(n.y1=t,n.y2=n.y1+i),n},wrap:function(e){var t=this;return t.x1=wt.min(t.x1,e.x1),t.y1=wt.min(t.y1,e.y1),t.x2=wt.max(t.x2,e.x2),t.y2=wt.max(t.y2,e.y2),t},wrapPoint:function(e){return this.wrap(new I(e.x,e.y,e.x,e.y)),this},snapTo:function(e,t){var n=this;return t!=un&&t||(n.x1=e.x1,n.x2=e.x2),t!=hn&&t||(n.y1=e.y1,n.y2=e.y2),n},alignTo:function(e,t){var n,i,r=this,o=r.height(),a=r.width(),s=t==on||t==Pt?hn:un,l=s==hn?o:a;return t===Dt?(n=e.center(),i=r.center(),r.x1+=n.x-i.x,r.y1+=n.y-i.y):r[s+1]=t===on||t===Qt?e[s+1]-l:e[s+2],r.x2=r.x1+a,r.y2=r.y1+o,r},shrink:function(e,t){var n=this;return n.x2-=e,n.y2-=t,n},expand:function(e,t){return this.shrink(-e,-t),this},pad:function(e){var t=this,i=n(e);return t.x1-=i.left,t.x2+=i.right,t.y1-=i.top,t.y2+=i.bottom,t},unpad:function(e){var t=this,i=n(e);return i.left=-i.left,i.top=-i.top,i.right=-i.right,i.bottom=-i.bottom,t.pad(i)},clone:function(){var e=this;return new I(e.x1,e.y1,e.x2,e.y2)},center:function(){var e=this;return new E(e.x1+e.width()/2,e.y1+e.height()/2)},containsPoint:function(e){var t=this;return e.x>=t.x1&&e.x<=t.x2&&e.y>=t.y1&&e.y<=t.y2},points:function(){var e=this;return[new E(e.x1,e.y1),new E(e.x2,e.y1),new E(e.x2,e.y2),new E(e.x1,e.y2)]},getHash:function(){var e=this;return[e.x1,e.y1,e.x2,e.y2].join(",")}},L=gt.extend({init:function(e,t,n,i,r){var o=this;o.c=e,o.ir=t,o.r=n,o.startAngle=i,o.angle=r},clone:function(){var e=this;return new L(e.c,e.ir,e.r,e.startAngle,e.angle)},middle:function(){return this.startAngle+this.angle/2},radius:function(e,t){var n=this;return t?n.ir=e:n.r=e,n},point:function(e,t){var n=this,i=e*Vt,r=wt.cos(i),o=wt.sin(i),a=t?n.ir:n.r,s=v(n.c.x-r*a,Bt),l=v(n.c.y-o*a,Bt);return new E(s,l)},adjacentBox:function(e,t,n){var i=this.clone().expand(e),r=i.middle(),o=i.point(r),a=t/2,s=n/2,l=o.x-a,c=o.y-s,d=wt.sin(r*Vt),u=wt.cos(r*Vt);return wt.abs(d)<.9&&(l+=a*-u/wt.abs(u)),wt.abs(u)<.9&&(c+=s*-d/wt.abs(d)),new I(l,c,l+t,c+n)},containsPoint:function(e){var t=this,n=t.c,i=t.ir,r=t.r,o=t.startAngle,a=t.startAngle+t.angle,s=e.x-n.x,l=e.y-n.y,c=new E(s,l),d=t.point(o),u=new E(d.x-n.x,d.y-n.y),h=t.point(a),p=new E(h.x-n.x,h.y-n.y),f=v(s*s+l*l,Bt);return(u.equals(c)||T(u,c))&&!T(p,c)&&f>=i*i&&r*r>=f},getBBox:function(){var e,t,n,i=this,r=new I(Xt,Xt,$t,$t),o=v(i.startAngle%360),a=v((o+i.angle)%360),s=i.ir,l=[0,90,180,270,o,a].sort(_),c=yt(o,l),d=yt(a,l);for(e=o==a?l:d>c?l.slice(c,d+1):[].concat(l.slice(0,d+1),l.slice(c,l.length)),t=0;t<e.length;t++)n=i.point(e[t]),r.wrapPoint(n),r.wrapPoint(n,s);return s||r.wrapPoint(i.c),r},expand:function(e){return this.r+=e,this}}),z=L.extend({init:function(e,t,n,i){L.fn.init.call(this,e,0,t,n,i)},expand:function(e){return L.fn.expand.call(this,e)},clone:function(){var e=this;return new z(e.c,e.r,e.startAngle,e.angle)},radius:function(e){return L.fn.radius.call(this,e)},point:function(e){return L.fn.point.call(this,e)}}),O=gt.extend({init:function(e){bt(this,{height:40,rotation:90,radius:10,arcAngle:10},e)}}),R=gt.extend({init:function(e){var t=this;t.children=[],t.options=bt({},t.options,e)},reflow:function(e){var t,n,i,r=this,o=r.children;for(n=0;n<o.length;n++)i=o[n],i.reflow(e),t=t?t.wrap(i.box):i.box.clone();r.box=t||e},getViewElements:function(e){var t,n,i,r=this,o=r.options,a=o.modelId,s=[],l=r.children,c=l.length;for(n=0;c>n;n++)i=l[n],i.discoverable||(i.options=i.options||{},i.options.modelId=a),s.push.apply(s,i.getViewElements(e));return r.discoverable&&(t=r.getRoot(),t&&(t.modelMap[a]=r)),s},enableDiscovery:function(){var e=this,t=e.options;t.modelId=at.current.alloc(),e.discoverable=!0},destroy:function(){var e,n=this,i=n.children,r=n.getRoot(),o=n.options.modelId,a=n.options.id,s=at.current;for(a&&s.free(a),o&&(s.free(o),r&&r.modelMap[o]&&(r.modelMap[o]=t)),e=0;e<i.length;e++)i[e].destroy()},getRoot:function(){var e=this.parent;return e?e.getRoot():null},translateChildren:function(e,t){var n,i=this,r=i.children,o=r.length;for(n=0;o>n;n++)r[n].box.translate(e,t)},append:function(){var e,t=this,n=arguments.length;for(f(t.children,arguments),e=0;n>e;e++)arguments[e].parent=t}}),V=R.extend({init:function(e){var t=this;t.modelMap={},R.fn.init.call(t,e)},options:{width:Rt,height:zt,background:dn,border:{color:Tt,width:0},margin:n(5),zIndex:-2},reflow:function(){var e,t=this,n=t.options,i=t.children,r=new I(0,0,n.width,n.height);for(t.box=r.unpad(n.margin),e=0;e<i.length;e++)i[e].reflow(r),r=c(r,i[e].box)},getViewElements:function(e){var t=this,n=t.options,i=n.border||{},r=t.box.clone().pad(n.margin).unpad(i.width),o=[e.createRect(r,{stroke:i.width?i.color:"",strokeWidth:i.width,dashType:i.dashType,fill:n.background,fillOpacity:n.opacity,zIndex:n.zIndex})];return o.concat(R.fn.getViewElements.call(t,e))},getRoot:function(){return this}}),F=R.extend({init:function(e){R.fn.init.call(this,e)},options:{align:Qt,vAlign:on,margin:{},padding:{},border:{color:Tt,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0},reflow:function(e){function t(){s.align(e,un,l.align),s.align(e,hn,l.vAlign),s.paddingBox=i.clone().unpad(c).unpad(u)}var i,r,o,a,s=this,l=s.options,c=n(l.margin),d=n(l.padding),u=l.border.width,h=s.children;for(R.fn.reflow.call(s,e),i=l.width&&l.height?s.box=new I(0,0,l.width,l.height):s.box,l.shrinkToFit?(t(),r=s.contentBox=s.paddingBox.clone().unpad(d)):(r=s.contentBox=i.clone(),i.pad(d).pad(u).pad(c),t()),s.translateChildren(i.x1-r.x1+c.left+u+d.left,i.y1-r.y1+c.top+u+d.top),o=0;o<h.length;o++)a=h[o],a.reflow(a.box)},align:function(e,t,n){var i=this,r=i.box,o=t+1,a=t+2,s=t===un?cn:Nt,l=r[s]();h(n,[Qt,on])?(r[o]=e[o],r[a]=r[o]+l):h(n,[nn,Pt])?(r[a]=e[a],r[o]=r[a]-l):n==Dt&&(r[o]=e[o]+(e[s]()-l)/2,r[a]=r[o]+l)},hasBox:function(){var e=this.options;return e.border.width||e.background},getViewElements:function(e,t){var n=this,i=n.options,r=[];return i.visible?(n.hasBox()&&r.push(e.createRect(n.paddingBox,bt(n.elementStyle(),t))),r.concat(R.fn.getViewElements.call(n,e))):[]},elementStyle:function(){var e=this,t=e.options,n=t.border||{};return{id:t.id,stroke:n.width?n.color:"",strokeWidth:n.width,dashType:n.dashType,strokeOpacity:b(n.opacity,t.opacity),fill:t.background,fillOpacity:t.opacity,animation:t.animation,zIndex:t.zIndex,data:{modelId:t.modelId}}}}),H=R.extend({init:function(e,t){var n=this;R.fn.init.call(n,t),n.content=P(e),n.reflow(I())},options:{font:Lt,color:Tt,align:Qt,vAlign:""},reflow:function(e){var t,n,i=this,o=i.options;t=o.size=r(i.content,{font:o.font},o.rotation),i.baseline=t.baseline,o.align==Qt?i.box=new I(e.x1,e.y1,e.x1+t.width,e.y1+t.height):o.align==nn?i.box=new I(e.x2-t.width,e.y1,e.x2,e.y1+t.height):o.align==Dt&&(n=(e.width()-t.width)/2,i.box=new I(v(e.x1+n,Bt),e.y1,v(e.x2-n,Bt),e.y1+t.height)),o.vAlign==Dt?(n=(e.height()-t.height)/2,i.box=new I(i.box.x1,e.y1+n,i.box.x2,e.y2-n)):o.vAlign==Pt?i.box=new I(i.box.x1,e.y2-t.height,i.box.x2,e.y2):o.vAlign==on&&(i.box=new I(i.box.x1,e.y1,i.box.x2,e.y1+t.height))},getViewElements:function(e){var t=this,n=t.options;return R.fn.getViewElements.call(this,e),[e.createText(t.content,bt({},n,{x:t.box.x1,y:t.box.y1,baseline:t.baseline,data:{modelId:n.modelId}}))]}}),N=F.extend({init:function(e,t){var n,i=this;F.fn.init.call(i,t),t=i.options,n=new H(e,bt({},t,{align:Qt,vAlign:on})),i.append(n),i.hasBox()&&(n.options.id=s()),i.reflow(new I)}}),j=R.extend({init:function(e){var t=this;R.fn.init.call(t,e),e=t.options,t.append(new N(e.text,bt({},e,{vAlign:e.position})))},options:{color:Tt,position:on,align:Dt,margin:n(5),padding:n(5)},reflow:function(e){var t=this;R.fn.reflow.call(t,e),t.box.snapTo(e,un)}}),j.buildTitle=function(e,t,n){var i;return"string"==typeof e&&(e={text:e}),e=bt({visible:!0},n,e),e&&e.visible&&e.text&&(i=new j(e),t.append(i)),i},U=N.extend({init:function(e,t,n,i){var r=this,o=e;i.template?(r.template=mt(i.template),o=r.template({value:e,dataItem:n})):i.format&&(o=r.formatValue(e,i)),r.text=o,r.value=e,r.index=t,r.dataItem=n,N.fn.init.call(r,o,bt({id:s()},i)),r.enableDiscovery()},formatValue:function(e,t){return C(t.format,e)},click:function(t,n){var i=this;t.trigger(At,{element:e(n.target),value:i.value,text:i.text,index:i.index,dataItem:i.dataItem,axis:i.parent.options})}}),G=R.extend({init:function(e){var t=this;R.fn.init.call(t,e),t.options.visible||(t.options=bt({},t.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),t.options.minorTicks=bt({},{color:t.options.line.color,width:t.options.line.width,visible:t.options.minorTickType!=Zt},t.options.minorTicks,{size:t.options.minorTickSize,align:t.options.minorTickType}),t.options.majorTicks=bt({},{color:t.options.line.color,width:t.options.line.width,visible:t.options.majorTickType!=Zt},t.options.majorTicks,{size:t.options.majorTickSize,align:t.options.majorTickType}),t.createLabels(),t.createTitle(),t.createNotes()},options:{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:Tt,visible:!0},title:{visible:!0,position:Dt},majorTicks:{align:en,size:4,skip:0,step:1},minorTicks:{align:en,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:en,minorTickType:Zt,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:Tt,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0},createLabels:function(){var e,t,n,i=this,r=i.options,o=r.vertical?nn:Dt,a=bt({},r.labels,{align:o,zIndex:r.zIndex,modelId:r.modelId}),s=a.step;if(i.labels=[],a.visible)for(n=i.labelsCount(),t=a.skip;n>t;t+=s)e=i.createAxisLabel(t,a),i.append(e),i.labels.push(e)},destroy:function(){var e,t=this,n=t.labels;for(e=0;e<n.length;e++)n[e].destroy();R.fn.destroy.call(t)},lineBox:function(){var e=this,t=e.options,n=e.box,i=t.vertical,r=e.labels,o=i?Nt:cn,a=t.justified,s=t.labels.mirror,l=s?n.x1:n.x2,c=s?n.y2:n.y1,d=0,u=t.line.width;return a&&r.length>1&&(d=r[0].box[o]()/2,u=p(r).box[o]()/2),i?I(l,n.y1+d,l,n.y2-u):I(n.x1+d,c,n.x2-u,c)},createTitle:function(){var e,t=this,n=t.options,i=bt({rotation:n.vertical?-90:0,text:"",zIndex:1},n.title);i.visible&&i.text&&(e=new N(i.text,i),t.append(e),t.title=e)},createNotes:function(){var e,t,n,i,r,o=this,a=o.options,s=a.notes,l=s.data||[];for(o.notes=[],t=0;t<l.length;t++)i=bt({},s,l[t]),i.value=o.parseNoteValue(i.value),n=i.label.text,i.label.template?(e=mt(i.label.template),n=e({value:i.value})):i.label.format&&(n=C(i.label.format,n)),r=new W(bt({},i,{label:{text:n}})),r.options.visible&&(w(r.options.position)?a.vertical&&!h(r.options.position,[Qt,nn])?r.options.position=a.reverse?Qt:nn:a.vertical||h(r.options.position,[on,Pt])||(r.options.position=a.reverse?Pt:on):r.options.position=a.vertical?a.reverse?Qt:nn:a.reverse?Pt:on,o.append(r),o.notes.push(r))},parseNoteValue:function(e){return e},renderTicks:function(e){function t(t,s){var h,p=t.length;if(s.visible)for(h=s.skip;p>h;h+=s.step)0!==h%s.skipUnit&&(n=u?d.x2:d.x2-s.size,i=u?d.y1-s.size:d.y1,r=t[h],c.vertical?(o=E(n,r),a=E(n+s.size,r)):(o=E(r,i),a=E(r,i+s.size)),l.push(e.createLine(o.x,o.y,a.x,a.y,{strokeWidth:s.width,stroke:s.color,align:c._alignLines})))}var n,i,r,o,a,s=this,l=[],c=s.options,d=s.lineBox(),u=c.labels.mirror,h=c.majorTicks.visible?c.majorUnit:0;return t(s.getMajorTickPositions(),c.majorTicks),t(s.getMinorTickPositions(),bt({},{skipUnit:h/c.minorUnit},c.minorTicks)),l},renderLine:function(e){var t,n=this,i=n.options,r=i.line,o=n.lineBox(),a=[];return r.width>0&&r.visible&&(t={strokeWidth:r.width,stroke:r.color,dashType:r.dashType,zIndex:r.zIndex,align:i._alignLines},a.push(e.createLine(o.x1,o.y1,o.x2,o.y2,t)),f(a,n.renderTicks(e))),a},getViewElements:function(e){var t=this,n=R.fn.getViewElements.call(t,e);return f(n,t.renderLine(e)),f(n,t.renderPlotBands(e)),f(n,t.renderBackground(e)),n},getActualTickSize:function(){var e=this,t=e.options,n=0;return t.majorTicks.visible&&t.minorTicks.visible?n=wt.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?n=t.majorTicks.size:t.minorTicks.visible&&(n=t.minorTicks.size),n},renderBackground:function(e){var t=this,n=t.options,i=n.background,r=t.box,o=[];return i&&o.push(e.createRect(r,{fill:i,zIndex:-1})),o},renderPlotBands:function(e){var t,n,i,r,o=this,a=o.options,s=a.plotBands||[],l=a.vertical,c=[],d=o.plotArea;return s.length&&(c=vt(s,function(a){return i=b(a.from,$t),r=b(a.to,Xt),l?(t=d.axisX.lineBox(),n=o.getSlot(a.from,a.to)):(t=o.getSlot(a.from,a.to),n=d.axisY.lineBox()),e.createRect(I(t.x1,n.y1,t.x2,n.y2),{fill:a.color,fillOpacity:a.opacity,zIndex:-1})})),c},renderGridLines:function(e,t){function n(t,n){var a,u=t.length;if(n.visible)for(a=n.skip;u>a;a+=n.step)i=v(t[a]),h(i,w)||0===a%n.skipUnit||d&&y===i||(l.vertical?(r=E(m,i),o=E(x,i)):(r=E(i,m),o=E(i,x)),r&&o&&(s.push(e.createLine(r.x,r.y,o.x,o.y,{data:{modelId:c},strokeWidth:n.width,stroke:n.color,dashType:n.dashType,zIndex:-1})),w.push(i)))}var i,r,o,a=this,s=[],l=a.options,c=a.plotArea.options.modelId,d=t.options.line.visible,u=l.majorGridLines,p=u.visible?l.majorUnit:0,f=l.vertical,g=t.lineBox(),m=g[f?"x1":"y1"],x=g[f?"x2":"y2"],y=g[f?"y1":"x1"],w=[];return n(a.getMajorTickPositions(),l.majorGridLines),n(a.getMinorTickPositions(),bt({},{skipUnit:p/l.minorUnit},l.minorGridLines)),s},reflow:function(e){var t,n,i=this,r=i.options,o=r.vertical,a=i.labels,s=a.length,l=i.getActualTickSize()+r.margin,c=0,d=0,u=i.title;for(n=0;s>n;n++)t=a[n],c=wt.max(c,t.box.height()),d=wt.max(d,t.box.width());u&&(o?d+=u.box.width():c+=u.box.height()),i.box=o?I(e.x1,e.y1,e.x1+d+l,e.y2):I(e.x1,e.y1,e.x2,e.y1+c+l),i.arrangeTitle(),i.arrangeLabels(),i.arrangeNotes()},arrangeLabels:function(){var e,t,n,i,r,o,a,s,l,c,d,u=this,h=u.options,p=h.labels,f=u.labels,g=!h.justified,m=h.vertical,v=u.lineBox(),x=h.labels.mirror,y=u.getMajorTickPositions(),w=u.getActualTickSize()+h.margin;for(n=0;n<f.length;n++)s=f[n],l=p.skip+p.step*n,c=m?s.box.height():s.box.width(),d=y[l]-c/2,m?(g&&(i=y[l],r=y[l+1],o=i+(r-i)/2,d=o-c/2),a=v.x2,x?a+=w:a-=w+s.box.width(),e=s.box.move(a,d)):(g?(i=y[l],r=y[l+1]):(i=d,r=d+c),t=v.y1,x?t-=w+s.box.height():t+=w,e=I(i,t,r,t+s.box.height())),s.reflow(e)},arrangeTitle:function(){var e=this,t=e.options,n=t.labels.mirror,i=t.vertical,r=e.title;r&&(i?(r.options.align=n?nn:Qt,r.options.vAlign=r.options.position):(r.options.align=r.options.position,r.options.vAlign=n?on:Pt),r.reflow(e.box))},arrangeNotes:function(){var e,t,n,i,r=this;for(e=0;e<r.notes.length;e++)t=r.notes[e],i=t.options.value,w(i)?(r.shouldRenderNote(i)?t.show():t.hide(),n=r.getSlot(i)):t.hide(),t.reflow(n||r.lineBox())},alignTo:function(e){var t=this,n=e.lineBox(),i=t.options.vertical,r=i?hn:un;t.box.snapTo(n,r),i?t.box.shrink(0,t.lineBox().height()-n.height()):t.box.shrink(t.lineBox().width()-n.width(),0),t.box[r+1]-=t.lineBox()[r+1]-n[r+1],t.box[r+2]-=t.lineBox()[r+2]-n[r+2]}}),W=F.extend({init:function(e){var t=this;F.fn.init.call(t,e),t.enableDiscovery(),t.render()},options:{icon:{zIndex:1,visible:!0,type:Et},label:{zIndex:2,position:qt,visible:!0,align:Dt,vAlign:Dt},line:{visible:!0,zIndex:2},visible:!0,position:on},hide:function(){this.options.visible=!1},show:function(){this.options.visible=!0},render:function(){var e,t,n,i=this,r=i.options,o=r.label,a=r.icon,s=a.size,l={data:{modelId:r.modelId}},c=I();r.visible&&(w(o)&&o.visible&&(i.label=new N(o.text,bt({},o,l)),i.append(i.label),o.position===qt&&(a.type===Et?s=wt.max(i.label.box.width(),i.label.box.height()):(t=i.label.box.width(),n=i.label.box.height()),c.wrap(i.label.box))),a.width=t||s,a.height=n||s,e=new q(bt({},a,l)),i.marker=e,i.append(e),e.reflow(I()),i.wrapperBox=c.wrap(e.box))},reflow:function(e){var t,n,i,r=this,o=r.options,a=e.center(),s=r.wrapperBox,l=o.line.length,c=o.position,d=r.label,u=r.marker;o.visible&&(h(c,[Qt,nn])?c===Qt?(i=s.alignTo(e,c).translate(-l,e.center().y-s.center().y),o.line.visible&&(t=E(wt.floor(e.x1),a.y),r.linePoints=[t,E(wt.floor(i.x2),a.y)],n=i.clone().wrapPoint(t))):(i=s.alignTo(e,c).translate(l,e.center().y-s.center().y),o.line.visible&&(t=E(wt.floor(e.x2),a.y),r.linePoints=[t,E(wt.floor(i.x1),a.y)],n=i.clone().wrapPoint(t))):c===Pt?(i=s.alignTo(e,c).translate(e.center().x-s.center().x,l),o.line.visible&&(t=E(wt.floor(a.x),wt.floor(e.y2)),r.linePoints=[t,E(wt.floor(a.x),wt.floor(i.y1))],n=i.clone().wrapPoint(t))):(i=s.alignTo(e,c).translate(e.center().x-s.center().x,-l),o.line.visible&&(t=E(wt.floor(a.x),wt.floor(e.y1)),r.linePoints=[t,E(wt.floor(a.x),wt.floor(i.y2))],n=i.clone().wrapPoint(t))),u&&u.reflow(i),d&&(d.reflow(i),u&&(o.label.position===en&&d.box.alignTo(u.box,c),d.reflow(d.box))),r.contentBox=i,r.box=n||i)},getViewElements:function(e){var t=this,n=F.fn.getViewElements.call(t,e),i=e.createGroup({data:{modelId:t.options.modelId},zIndex:1});return t.options.visible&&f(n,t.createLine(e)),i.children=n,[i]},createLine:function(e){var t=this,n=t.options.line;return[e.createPolyline(t.linePoints,!1,{stroke:n.color,strokeWidth:n.width,dashType:n.dashType,zIndex:n.zIndex})]},click:function(e,t){var n=this.eventArgs(t);e.trigger(Jt,n)||t.preventDefault()},hover:function(e,t){var n=this.eventArgs(t);e.trigger(Kt,n)||t.preventDefault()},leave:function(e){e._unsetActivePoint()},eventArgs:function(t){var n=this.parent,i=n.options;return{element:e(t.target),text:w(i.label)?i.label.text:""}}}),q=F.extend({options:{type:Et,align:Dt,vAlign:Dt},getViewElements:function(e,t){var n,i,r,o,a=this,s=a.options,l=s.type,c=s.rotation,d=a.paddingBox,u=d.center(),h=d.width()/2;if(R.fn.getViewElements.call(this,e),!((t||{}).visible===!0||s.visible&&a.hasBox()))return[];if(i=bt(a.elementStyle(),t),l===Et?n=e.createCircle(E(v(d.x1+h,Bt),v(d.y1+d.height()/2,Bt)),h,i):l===an?r=[E(d.x1+h,d.y1),E(d.x1,d.y2),E(d.x2,d.y2)]:l===It?(n=e.createGroup(),n.children.push(e.createPolyline([E(d.x1,d.y1),E(d.x2,d.y2)],!0,i)),n.children.push(e.createPolyline([E(d.x1,d.y2),E(d.x2,d.y1)],!0,i))):r=d.points(),r){if(c)for(o=0;o<r.length;o++)r[o].rotate(u,c);n=e.createPolyline(r,!0,i)}return[n]}}),Q=F.extend({init:function(e){var t=this;F.fn.init.call(t,e),t.createTextBox()},options:{arcAngle:300,border:{width:1,color:"red"},label:{zIndex:2,margin:n(2),border:{width:1,color:"green"}}},createTextBox:function(){var e=this,t=e.options,n=new N(t.code,t.label);e.append(n),e.textBox=n},reflow:function(e){var t=this,n=t.textBox;t.box=I(0,0,n.box.height(),1.5*n.box.height()),F.fn.reflow.call(t,e)},getViewElements:function(e){var t=this,n=t.options,i=t.box.center(),r=e.createPin(new O({origin:new E(i.x,i.y),radius:t.textBox.box.height()/2,height:1.5*t.textBox.box.height(),rotation:0,arcAngle:n.arcAngle}),bt({},{fill:"red",zIndex:1,kur:1,id:"111"},n)),o=[r];return f(o,F.fn.getViewElements.call(t,e)),o}}),Y=G.extend({init:function(e,t,n){var i=this,r=i.initDefaults(e,t,n);G.fn.init.call(i,r)},options:{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Tt},zIndex:1},initDefaults:function(e,t,n){var i,r=this,a=n.narrowRange,s=r.autoAxisMin(e,t,a),l=r.autoAxisMax(e,t,a),c=o(s,l),d={majorUnit:c};return n.roundToMajorUnit!==!1&&(0>s&&x(s,c,1/3)&&(s-=c),l>0&&x(l,c,1/3)&&(l+=c)),d.min=m(s,c),d.max=g(l,c),n&&(i=w(n.min)||w(n.max),i&&n.min===n.max&&(n.min>0?n.min=0:n.max=1),n.majorUnit?(d.min=m(d.min,n.majorUnit),d.max=g(d.max,n.majorUnit)):i&&(n=bt(d,n),d.majorUnit=o(n.min,n.max))),d.minorUnit=(n.majorUnit||d.majorUnit)/5,bt(d,n)},range:function(){var e=this.options;return{min:e.min,max:e.max}},autoAxisMax:function(e,t,n){var i,r;if(!e&&!t)return 1;if(0>=e&&0>=t){if(t=e==t?0:t,r=wt.abs((t-e)/t),!n&&r>pn)return 0;i=wt.min(0,t-(e-t)/2)}else e=e==t?0:e,i=t;return i},autoAxisMin:function(e,t,n){var i,r;if(!e&&!t)return 0;if(e>=0&&t>=0){if(e=e==t?0:e,r=(t-e)/t,!n&&r>pn)return 0;i=wt.max(0,e-(t-e)/2)}else t=e==t?0:t,i=e;return i},getDivisions:function(e){var t=this.options,n=t.max-t.min;return wt.floor(v(n/e,Bt))+1},getTickPositions:function(e,t){var n,i=this,r=i.options,o=r.vertical,a=r.reverse,s=i.lineBox(),l=o?s.height():s.width(),c=r.max-r.min,d=l/c,u=e*d,h=0,p=i.getDivisions(e),f=(o?-1:1)*(a?-1:1),g=1===f?1:2,m=s[(o?hn:un)+g],x=[];for(t&&(h=t/e),n=0;p>n;n++)0!==n%h&&x.push(v(m,Bt)),m+=u*f;return x},getMajorTickPositions:function(){var e=this;return e.getTickPositions(e.options.majorUnit)},getMinorTickPositions:function(){var e=this;return e.getTickPositions(e.options.minorUnit)},getSlot:function(e,t){var n,i,r=this,o=r.options,a=o.reverse,s=o.vertical,l=s?hn:un,c=r.lineBox(),d=c[l+(a?2:1)],u=s?c.height():c.width(),h=a?-1:1,p=h*(u/(o.max-o.min)),f=new I(c.x1,c.y1,c.x1,c.y1);return w(e)||(e=t||0),w(t)||(t=e||0),e=wt.max(wt.min(e,o.max),o.min),t=wt.max(wt.min(t,o.max),o.min),s?(n=o.max-wt.max(e,t),i=o.max-wt.min(e,t)):(n=wt.min(e,t)-o.min,i=wt.max(e,t)-o.min),f[l+1]=d+p*(a?i:n),f[l+2]=d+p*(a?n:i),f},getValue:function(e){var t,n=this,i=n.options,r=i.reverse,o=i.vertical,a=1*i.max,s=1*i.min,l=o?hn:un,c=n.lineBox(),d=c[l+(r?2:1)],u=o?c.height():c.width(),h=r?-1:1,p=h*(e[l]-d),f=(a-s)/u,g=p*f;return 0>p||p>u?null:(t=o?a-g:s+g,v(t,Ot))},translateRange:function(e){var t=this,n=t.options,i=t.lineBox(),r=n.vertical,o=n.reverse,a=r?i.height():i.width(),s=n.max-n.min,l=a/s,c=v(e/l,Ot);return!r&&!o||r&&o||(c=-c),{min:n.min+c,max:n.max+c}},scaleRange:function(e){var t=this,n=t.options,i=-e*n.majorUnit;return{min:n.min-i,max:n.max+i}},labelsCount:function(){return this.getDivisions(this.options.majorUnit)},createAxisLabel:function(e,t){var n=this,i=n.options,r=v(i.min+e*i.majorUnit,Ot);return new U(r,e,null,t)},shouldRenderNote:function(e){var t=this.range();return t.min<=e&&e<=t.max}}),X=gt.extend({init:function(e){var t=this;t.children=[],t.options=bt({},t.options,e)},render:function(){return this.template(this)},renderContent:function(){var e,t=this,n="",i=t.sortChildren(),r=i.length;for(e=0;r>e;e++)n+=i[e].render();return n},sortChildren:function(){var e,t,n=this,i=n.children;for(t=0,e=i.length;e>t;t++)i[t]._childIndex=t;return i.slice(0).sort(n.compareChildren)},refresh:e.noop,destroy:function(){var e,t,n=this,i=n.options.id,r=n.children;for(i&&at.current.free(i),t=0,e=r.length;e>t;t++)r[t].destroy()},compareChildren:function(e,t){var n=e.options.zIndex||0,i=t.options.zIndex||0;return n!==i?n-i:e._childIndex-t._childIndex},renderId:function(){var e=this,t="";return e.options.id&&(t=e.renderAttr("id",e.options.id)),t},renderAttr:function(e,t){return w(t)?" "+e+"='"+t+"' ":""},renderDataAttributes:function(){var e,t,n=this,i=n.options.data,r="";for(e in i)t="data-"+e.replace(ln,"-$1").toLowerCase(),r+=n.renderAttr(t,i[e]);return r},renderCursor:function(){var e=this.options,t="";return w(e.cursor)&&e.cursor.style&&(t+="cursor: "+e.cursor.style+";"),t}}),$=X.extend({init:function(e){var t=this;X.fn.init.call(t,e),t.definitions={},t.decorators=[],t.animations=[]},destroy:function(){var e=this,t=e.animations,n=e._viewElement;for(X.fn.destroy.call(this);t.length>0;)t.shift().destroy();n&&(e._freeIds(n),e._viewElement=null)},_freeIds:function(t){e("[id]",t).each(function(){at.current.free(e(this).attr("id"))})},replace:function(e){var t=this,n=A(e.options.id);n&&(t._freeIds(n),n.parentNode.replaceChild(t.renderElement(e.getViewElements(t)[0]),n))},load:function(e){var t=this;t.children=e.getViewElements(t)},renderDefinitions:function(){var e,t=this.definitions,n="";for(e in t)t.hasOwnProperty(e)&&(n+=t[e].render());return n},decorate:function(e){var t,n,i=this.decorators,r=i.length;for(t=0;r>t;t++)n=i[t],this._decorateChildren(n,e),e=n.decorate.call(n,e);return e},_decorateChildren:function(e,t){var n,i=this,r=t.children,o=r.length;for(n=0;o>n;n++)i._decorateChildren(e,r[n]),r[n]=e.decorate.call(e,r[n])},setupAnimations:function(){for(var e=0;e<this.animations.length;e++)this.animations[e].setup()},playAnimations:function(){for(var e=0;e<this.animations.length;e++)this.animations[e].play()},buildGradient:function(e){var t,n,i,r=this,o=r._gradientCache;return o||(o=r._gradientCache=[]),e&&(t=a(e),n=o[t],i=ft.Gradients[e.gradient],!n&&i&&(n=bt({id:s()},i,e),o[t]=n)),n},setDefaults:function(e){var t=this.options;return e=e||{},w(e.inline)||(e.inline=t.inline),w(e.align)||(e.align=t.align),e}}),ft.Gradients={glass:{type:Yt,rotation:0,stops:[{offset:0,color:dn,opacity:0},{offset:.25,color:dn,opacity:.3},{offset:1,color:dn,opacity:0}]},sharpBevel:{type:tn,stops:[{offset:0,color:dn,opacity:.55},{offset:.65,color:dn,opacity:0},{offset:.95,color:dn,opacity:.25}]},roundedBevel:{type:tn,stops:[{offset:.33,color:dn,opacity:.06},{offset:.83,color:dn,opacity:.2},{offset:.95,color:dn,opacity:0}]},roundedGlass:{type:tn,supportVML:!1,stops:[{offset:0,color:dn,opacity:0},{offset:.5,color:dn,opacity:.3},{offset:.99,color:dn,opacity:0}]},sharpGlass:{type:tn,supportVML:!1,stops:[{offset:0,color:dn,opacity:.2},{offset:.15,color:dn,opacity:.15},{offset:.17,color:dn,opacity:.35},{offset:.85,color:dn,opacity:.05},{offset:.87,color:dn,opacity:.15},{offset:.99,color:dn,opacity:0}]}},Z=gt.extend({init:function(e,t){var n=this;
n.options=bt({},n.options,t),n.element=e},options:{duration:Wt,easing:rn},play:function(){var t,n,i,r,o,a=this,s=a.options,l=a.element,c=l.options.id,d=s.delay||0,u=+new Date+d,h=s.duration,p=u+h,f=e.easing[s.easing];setTimeout(function(){var e=function(){a._stopped||(n=+new Date,i=wt.min(n-u,h),r=i/h,o=f(r,i,0,1,h),a.step(o),(!t||S(t))&&(t=A(c)),l.refresh(t),p>n?ft.requestFrame(e):a.destroy())};e()},d)},abort:function(){this._stopped=!0},destroy:function(){this.abort()},setup:xt,step:xt}),J=Z.extend({options:{duration:200,easing:Yt},setup:function(){var e=this,t=e.element.options;e.targetFillOpacity=t.fillOpacity,e.targetStrokeOpacity=t.strokeOpacity,t.fillOpacity=t.strokeOpacity=0},step:function(e){var t=this,n=t.element.options;n.fillOpacity=e*t.targetFillOpacity,n.strokeOpacity=e*t.targetStrokeOpacity}}),K=Z.extend({options:{size:0,easing:Yt},setup:function(){var e=this.element.points;e[1].x=e[2].x=e[0].x},step:function(e){var t=this.options,n=y(0,t.size,e),i=this.element.points;i[1].x=i[2].x=i[0].x+n},destroy:function(){Z.fn.destroy.call(this),this.element.destroy()}}),et=Z.extend({options:{easing:Yt,duration:900},setup:function(){var e,t,n=this,i=n.element,r=i.options,o=n.options,a=o.center;r.rotation&&(e=o.startAngle,t=r.rotation[0],o.duration=wt.max(1e3*(wt.abs(e-t)/o.speed),1),n.endState=t,r.rotation=[e,a.x,a.y])},step:function(e){var t=this,n=t.element;n.options.rotation&&(n.options.rotation[0]=y(t.options.startAngle,t.endState,e))}}),tt=Z.extend({options:{easing:rn},setup:function(){var e,t=this,n=t.element,i=n.points,r=n.options,o=r.vertical?hn:un,a=r.stackBase,s=r.aboveAxis,l=t.endState={top:i[0].y,right:i[1].x,bottom:i[3].y,left:i[0].x};e=o===hn?b(a,l[s?Pt:on]):b(a,l[s?Qt:nn]),t.startPosition=e,k(i,o,e)},step:function(e){var t=this,n=t.startPosition,i=t.endState,r=t.element,o=r.points;r.options.vertical?(o[0].y=o[1].y=y(n,i.top,e),o[2].y=o[3].y=y(n,i.bottom,e)):(o[0].x=o[3].x=y(n,i.left,e),o[1].x=o[2].x=y(n,i.right,e))}}),nt=Z.extend({options:{easing:rn,duration:1e3},setup:function(){var e,t,n,i=this,r=i.element,o=r.points,a=r.options.animation,s=a.vertical,l=a.reverse,c=i.axis=s?"y":"x",d=i.options.endPosition,u=i.initialState={top:o[0].y,right:o[1].x,bottom:o[3].y,left:o[0].x},h=!w(i.options.endPosition);s?(n=l?"y2":"y1",e=u[h&&!l?Pt:on],t=h?u[l?Pt:on]:d[n]):(n=l?"x1":"x2",e=u[h&&!l?Qt:nn],t=h?u[l?Qt:nn]:d[n]),i.start=e,i.end=t,h?k(o,c,i.start):a.speed&&(i.options.duration=wt.max(1e3*(wt.abs(i.start-i.end)/a.speed),1))},step:function(e){var t=this,n=t.start,i=t.end,r=t.element,o=r.points,a=t.axis;r.options.animation.vertical?o[0][a]=o[1][a]=y(n,i,e):o[1][a]=o[2][a]=y(n,i,e)}}),it=Z.extend({options:{easing:rn,duration:1e3},setup:function(){var e,t,n,i=this,r=i.element,o=r.points,a=r.options.animation,s=a.vertical,l=a.reverse,c=s?"y":"x",d=c+(l?"1":"2"),u=c+(l?"2":"1"),h=a.startPosition[s?d:u],p=a.size/2,f=o.length,g=!w(i.options.endPosition),m=p;for(i.axis=c,i.endPositions=[],i.startPositions=[],g||(h=o[1][c],t=i.options.endPosition[s?u:d],a.speed&&(i.options.duration=wt.max(1e3*(wt.abs(h-t)/a.speed),1))),n=0;f>n;n++)e=bt({},o[n]),g?(i.endPositions[n]=e[c],o[n][c]=h-m):i.endPositions[n]=t-m,i.startPositions[n]=o[n][c],m-=p},step:function(e){var t,n=this,i=n.startPositions,r=n.endPositions,o=n.element,a=o.points,s=n.axis,l=a.length;for(t=0;l>t;t++)a[t][s]=y(i[t],r[t],e)}}),rt=i(Ft,J),ot=function(e){var t,n,i,r,o,a=this,s=ot.formats;if(1===arguments.length)for(e=a.resolveColor(e),r=0;r<s.length;r++)t=s[r].re,n=s[r].process,i=t.exec(e),i&&(o=n(i),a.r=o[0],a.g=o[1],a.b=o[2]);else a.r=arguments[0],a.g=arguments[1],a.b=arguments[2];a.r=a.normalizeByte(a.r),a.g=a.normalizeByte(a.g),a.b=a.normalizeByte(a.b)},ot.prototype={toHex:function(){var e=this,t=e.padDigit,n=e.r.toString(16),i=e.g.toString(16),r=e.b.toString(16);return"#"+t(n)+t(i)+t(r)},resolveColor:function(e){return e=e||Tt,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase(),e=ot.namedColors[e]||e},normalizeByte:function(e){return 0>e||isNaN(e)?0:e>255?255:e},padDigit:function(e){return 1===e.length?"0"+e:e},brightness:function(e){var t=this,n=wt.round;return t.r=n(t.normalizeByte(t.r*e)),t.g=n(t.normalizeByte(t.g*e)),t.b=n(t.normalizeByte(t.b*e)),t},percBrightness:function(){var e=this;return wt.sqrt(.241*e.r*e.r+.691*e.g*e.g+.068*e.b*e.b)}},ot.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],ot.namedColors={aqua:"00ffff",azure:"f0ffff",beige:"f5f5dc",black:"000000",blue:"0000ff",brown:"a52a2a",coral:"ff7f50",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgray:"a9a9a9",darkgreen:"006400",darkorange:"ff8c00",darkred:"8b0000",dimgray:"696969",fuchsia:"ff00ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lightblue:"add8e6",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumblue:"0000cd",navy:"000080",olive:"808000",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",pink:"ffc0cb",plum:"dda0dd",purple:"800080",red:"ff0000",royalblue:"4169e1",salmon:"fa8072",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",steelblue:"4682b4",tan:"d2b48c",teal:"008080",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},at=gt.extend({init:function(e,t,n){this._pool=[],this._freed={},this._size=e,this._id=n,this._prefix=t},alloc:function(){var e,t=this,n=t._pool;return n.length>0?(e=n.pop(),t._freed[e]=!1):e=t._prefix+t._id++,e},free:function(e){var t=this,n=t._pool,i=t._freed;n.length<t._size&&!i[e]&&(n.push(e),i[e]=!0)}}),at.current=new at(Ut,jt,Gt),st=gt.extend({init:function(e){this._size=e,this._length=0,this._map={}},put:function(e,t){var n=this,i=n._map,r={key:e,value:t};i[e]=r,n._head?(n._tail.newer=r,r.older=n._tail,n._tail=r):n._head=n._tail=r,n._length>=n._size?(i[n._head.key]=null,n._head=n._head.newer,n._head.older=null):n._length++},get:function(e){var n=this,i=n._map[e];return i?(i===n._head&&i!==n._tail&&(n._head=i.newer,n._head.older=null),i!==n._tail&&(i.older&&(i.older.newer=i.newer,i.newer.older=i.older),i.older=n._tail,i.newer=null,n._tail.newer=i,n._tail=i),i.value):t}}),lt=function(){this._views=[]},lt.prototype={register:function(e,t,n){var i=this._views,r=i[0],o={name:e,type:t,order:n};!r||n<r.order?i.unshift(o):i.push(o)},create:function(e,n){var i,r=this._views,o=r[0];if(n)for(n=n.toLowerCase(),i=0;i<r.length;i++)if(r[i].name===n){o=r[i];break}return o?new o.type(e):(pt.logToConsole("Warning: KendoUI DataViz cannot render. Possible causes:\n- The browser does not support SVG, VML and Canvas. User agent: "+navigator.userAgent+"\n"+"- The kendo.dataviz.(svg|vml|canvas).js scripts are not loaded"),t)}},lt.current=new lt,ct={svg:function(){if(ft.SVGView){var e=this._getModel(),t=new ft.SVGView(e.options);return t.load(e),t.render()}throw Error("Unable to create SVGView. Check that kendo.dataviz.svg.js is loaded.")},imageDataURL:function(){if(ft.CanvasView){if(ft.supportsCanvas()){var e=this._getModel(),t=document.createElement("div"),n=new ft.CanvasView(e.options);return n.load(e),n.renderTo(t).toDataURL()}return pt.logToConsole("Warning: Unable to generate image. The browser does not support Canvas.\nUser agent: "+navigator.userAgent),null}throw Error("Unable to create CanvasView. Check that kendo.dataviz.canvas.js is loaded.")}},r.cache=new st(1e3),r.baselineMarker=e("<div class='"+kt+"baseline-marker' "+"style='display: inline-block; vertical-align: baseline;"+"width: "+St+"px; height: "+St+"px;"+"overflow: hidden;' />")[0],dt=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,Ct)},ft.requestFrame=function(e,t){return dt(e,t)},P._element=ht.createElement("span"),ut=function(e){this.closed=e},ut.prototype=ut.fn={WEIGHT:.333,EXTREMUM_ALLOWED_DEVIATION:.01,process:function(e){var t,n,i,r,o,a,s,l,c=this,d=c.closed,u=e.slice(0),h=u.length,p=[];if(h>2&&(c.removeDuplicates(0,u),h=u.length),2>h||2==h&&u[0].equals(u[1]))return p;for(t=u[0],n=u[1],i=u[2],p.push(t);t.equals(u[h-1]);)d=!0,u.pop(),h--;if(2==h)return s=c.tangent(t,n,un,hn),p.push(c.firstControlPoint(s,t,n,un,hn),c.secondControlPoint(s,t,n,un,hn),n),p;for(d?(t=u[h-1],n=u[0],i=u[1],r=c.controlPoints(t,n,i),o=r[1],a=r[0]):(s=c.tangent(t,n,un,hn),o=c.firstControlPoint(s,t,n,un,hn)),p.push(o),l=0;h-3>=l;l++)c.removeDuplicates(l,u),h=u.length,h>=l+3&&(t=u[l],n=u[l+1],i=u[l+2],r=c.controlPoints(t,n,i),p.push(r[0],n,r[1]));return d?(t=u[h-2],n=u[h-1],i=u[0],r=c.controlPoints(t,n,i),p.push(r[0],n,r[1],a,i)):(s=c.tangent(n,i,un,hn),p.push(c.secondControlPoint(s,n,i,un,hn),i)),p},removeDuplicates:function(e,t){for(;t[e].equals(t[e+1])||t[e+1].equals(t[e+2]);)t.splice(e+1,1)},invertAxis:function(e,t,n){var i,r,o=this,a=!1;return e.x===t.x?a=!0:t.x===n.x?(t.y<n.y&&e.y<=t.y||n.y<t.y&&t.y<=e.y)&&(a=!0):(i=o.lineFunction(e,t),r=o.calculateFunction(i,n.x),e.y<=t.y&&n.y<=r||t.y<=e.y&&n.y>=r||(a=!0)),a},isLine:function(e,t,n){var i=this,r=i.lineFunction(e,t),o=i.calculateFunction(r,n.x);return e.x==t.x&&t.x==n.x||v(o,1)===v(n.y,1)},lineFunction:function(e,t){var n=(t.y-e.y)/(t.x-e.x),i=e.y-n*e.x;return[i,n]},controlPoints:function(e,t,n){var i,r,o,a,s,l,c=this,d=un,u=hn,h=!1,p=!1,f=c.EXTREMUM_ALLOWED_DEVIATION;return c.isLine(e,t,n)?i=c.tangent(e,t,un,hn):(r={x:c.isMonotonicByField(e,t,n,un),y:c.isMonotonicByField(e,t,n,hn)},r.x&&r.y?(i=c.tangent(e,n,un,hn),h=!0):(c.invertAxis(e,t,n)&&(d=hn,u=un),r[d]?i=0:(s=n[u]<e[u]&&e[u]<=t[u]||e[u]<n[u]&&t[u]<=e[u]?c.sign((n[u]-e[u])*(t[d]-e[d])):-c.sign((n[d]-e[d])*(t[u]-e[u])),i=f*s,p=!0))),a=c.secondControlPoint(i,e,t,d,u),p&&(l=d,d=u,u=l),o=c.firstControlPoint(i,t,n,d,u),h&&(c.restrictControlPoint(e,t,a,i),c.restrictControlPoint(t,n,o,i)),[a,o]},sign:function(e){return 0>=e?-1:1},restrictControlPoint:function(e,t,n,i){e.y<t.y?t.y<n.y?(n.x=e.x+(t.y-e.y)/i,n.y=t.y):n.y<e.y&&(n.x=t.x-(t.y-e.y)/i,n.y=e.y):n.y<t.y?(n.x=e.x-(e.y-t.y)/i,n.y=t.y):e.y<n.y&&(n.x=t.x+(e.y-t.y)/i,n.y=e.y)},tangent:function(e,t,n,i){var r,o=t[n]-e[n],a=t[i]-e[i];return r=0===o?0:a/o},isMonotonicByField:function(e,t,n,i){return n[i]>t[i]&&t[i]>e[i]||n[i]<t[i]&&t[i]<e[i]},firstControlPoint:function(e,t,n,i,r){var o=this,a=t[i],s=n[i],l=(s-a)*o.WEIGHT;return o.point(a+l,t[r]+l*e,i,r)},secondControlPoint:function(e,t,n,i,r){var o=this,a=t[i],s=n[i],l=(s-a)*o.WEIGHT;return o.point(s-l,n[r]-l*e,i,r)},point:function(e,t,n,i){var r=E();return r[n]=e,r[i]=t,r},calculateFunction:function(e,t){var n,i=0,r=e.length;for(n=0;r>n;n++)i+=Math.pow(t,n)*e[n];return i}},bt(pt.dataviz,{init:function(e){pt.init(e,pt.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(e){pt.ui.plugin(e,ft.ui)}},AXIS_LABEL_CLICK:At,COORD_PRECISION:Bt,DEFAULT_PRECISION:Ot,DEFAULT_WIDTH:Rt,DEFAULT_HEIGHT:zt,DEFAULT_FONT:Lt,INITIAL_ANIMATION_DURATION:Wt,NOTE_CLICK:Jt,NOTE_HOVER:Kt,CLIP:Mt,DASH_ARRAYS:{dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},Axis:G,AxisLabel:U,Box2D:I,BoxElement:F,ChartElement:R,Color:ot,CurveProcessor:ut,ElementAnimation:Z,ExpandAnimation:K,ExportMixin:ct,ArrowAnimation:it,BarAnimation:tt,BarIndicatorAnimatin:nt,FadeAnimation:J,FadeAnimationDecorator:rt,IDPool:at,LRUCache:st,Matrix:fn,Note:W,NumericAxis:Y,Point2D:E,PinElement:Q,Ring:L,Pin:O,RootElement:V,RotationAnimation:et,Sector:z,ShapeElement:q,Text:H,TextBox:N,Title:j,ViewBase:$,ViewElement:X,ViewFactory:lt,animationDecorator:i,append:f,autoFormat:C,autoMajorUnit:o,boxDiff:c,defined:w,decodeEntities:P,dateComparer:D,getElement:A,getSpacing:n,inArray:h,interpolateValue:y,last:p,limitValue:B,measureText:r,mwDelta:M,rotatePoint:l,round:v,ceil:g,floor:m,supportsCanvas:u,supportsSVG:d,renderTemplate:_t,uniqueId:s,valueOrDefault:b})}(window.kendo.jQuery),function(){var e=window.kendo,t=e.dataviz.ui,n=e.deepExtend,i=1.5,r=.4,o="#000",a="Arial,Helvetica,sans-serif",s="11px "+a,l="12px "+a,c="16px "+a,d="#fff",u={title:{font:c},legend:{labels:{font:l}},seriesDefaults:{visible:!0,labels:{font:s},donut:{margin:1},line:{width:2},vericalLine:{width:2},stepLine:{width:2},vericalStepLine:{width:2},scatterLine:{width:1},area:{opacity:.4,markers:{visible:!1,size:6},line:{opacity:1,width:0}},verticalArea:{opacity:.4,markers:{visible:!1,size:6},line:{opacity:1,width:0}},stepArea:{opacity:.4,markers:{visible:!1,size:6},line:{opacity:1,width:0}},verticalStepArea:{opacity:.4,markers:{visible:!1,size:6},line:{opacity:1,width:0}},radarLine:{width:2,markers:{visible:!1}},radarArea:{opacity:.5,markers:{visible:!1,size:6},line:{opacity:1,width:0}},candlestick:{line:{width:1,color:o},border:{width:1,_brightness:.8},gap:1,spacing:.3,downColor:d,highlight:{line:{width:2},border:{width:2,opacity:1}}},ohlc:{line:{width:1},gap:1,spacing:.3,highlight:{line:{width:3,opacity:1}}},bubble:{opacity:.6,border:{width:0},labels:{background:"transparent"}},bar:{gap:i,spacing:r},column:{gap:i,spacing:r},bullet:{gap:i,spacing:r,target:{color:"#ff0000"}},verticalBullet:{gap:i,spacing:r,target:{color:"#ff0000"}},boxPlot:{outliersField:"",meanField:"",whiskers:{width:1,color:o},mean:{width:1,color:o},median:{width:1,color:o},border:{width:1,_brightness:.8},gap:1,spacing:.3,downColor:d,highlight:{whiskers:{width:2},mean:{width:2},median:{width:2},border:{width:2,opacity:1}}},funnel:{labels:{color:"",background:""}},notes:{icon:{size:7,border:{width:1}},label:{padding:3,font:l},line:{length:10,width:1},visible:!0}},categoryAxis:{majorGridLines:{visible:!0}},axisDefaults:{labels:{font:l},title:{font:c,margin:5},crosshair:{tooltip:{font:l}},notes:{icon:{size:7,border:{width:1}},label:{padding:3,font:l},line:{length:10,width:1},visible:!0}},tooltip:{font:l},navigator:{pane:{height:90,margin:{top:10}}}},h={scale:{labels:{font:l}}},p=t.themes,f=t.registerTheme=function(e,t){var i,r={};r.chart=n({},u,t.chart),r.gauge=n({},h,t.gauge),i=r.chart.seriesDefaults,i.verticalLine=n({},i.line),i.verticalArea=n({},i.area),i.polarArea=n({},i.radarArea),i.polarLine=n({},i.radarLine),p[e]=r};f("black",{chart:{title:{color:d},legend:{labels:{color:d},inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}},seriesDefaults:{labels:{color:d},errorBars:{color:d},notes:{icon:{background:"#3b3b3b",border:{color:"#8e8e8e"}},label:{color:d},line:{color:"#8e8e8e"}},pie:{overlay:{gradient:"sharpBevel"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#3d3d3d"}},scatter:{markers:{background:"#3d3d3d"}},scatterLine:{markers:{background:"#3d3d3d"}},candlestick:{downColor:"#555",line:{color:d},border:{_brightness:1.5,opacity:1},highlight:{border:{color:d,opacity:.2}}},ohlc:{line:{color:d}}},chartArea:{background:"#3d3d3d"},seriesColors:["#0081da","#3aafff","#99c900","#ffeb3d","#b20753","#ff4195"],axisDefaults:{line:{color:"#8e8e8e"},labels:{color:d},majorGridLines:{color:"#545454"},minorGridLines:{color:"#454545"},title:{color:d},crosshair:{color:"#8e8e8e"},notes:{icon:{background:"#3b3b3b",border:{color:"#8e8e8e"}},label:{color:d},line:{color:"#8e8e8e"}}}},gauge:{pointer:{color:"#0070e4"},scale:{rangePlaceholderColor:"#1d1d1d",labels:{color:d},minorTicks:{color:d},majorTicks:{color:d},line:{color:d}}}}),f("blueopal",{chart:{title:{color:"#293135"},legend:{labels:{color:"#293135"},inactiveItems:{labels:{color:"#27A5BA"},markers:{color:"#27A5BA"}}},seriesDefaults:{labels:{color:o,background:d,opacity:.5},errorBars:{color:"#293135"},candlestick:{downColor:"#c4d0d5",line:{color:"#9aabb2"}},notes:{icon:{background:"transparent",border:{color:"#9aabb2"}},label:{color:"#293135"},line:{color:"#9aabb2"}}},seriesColors:["#0069a5","#0098ee","#7bd2f6","#ffb800","#ff8517","#e34a00"],axisDefaults:{line:{color:"#9aabb2"},labels:{color:"#293135"},majorGridLines:{color:"#c4d0d5"},minorGridLines:{color:"#edf1f2"},title:{color:"#293135"},crosshair:{color:"#9aabb2"},notes:{icon:{background:"transparent",border:{color:"#9aabb2"}},label:{color:"#293135"},line:{color:"#9aabb2"}}}},gauge:{pointer:{color:"#005c83"},scale:{rangePlaceholderColor:"#daecf4",labels:{color:"#293135"},minorTicks:{color:"#293135"},majorTicks:{color:"#293135"},line:{color:"#293135"}}}}),f("highcontrast",{chart:{title:{color:"#ffffff"},legend:{labels:{color:"#ffffff"},inactiveItems:{labels:{color:"#66465B"},markers:{color:"#66465B"}}},seriesDefaults:{labels:{color:"#ffffff"},errorBars:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#ffffff"}},label:{color:"#ffffff"},line:{color:"#ffffff"}},pie:{overlay:{gradient:"sharpGlass"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#2c232b"}},scatter:{markers:{background:"#2c232b"}},scatterLine:{markers:{background:"#2c232b"}},area:{opacity:.5},candlestick:{downColor:"#664e62",line:{color:"#ffffff"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:"#ffffff",opacity:1}}},ohlc:{line:{color:"#ffffff"}}},chartArea:{background:"#2c232b"},seriesColors:["#a7008f","#ffb800","#3aafff","#99c900","#b20753","#ff4195"],axisDefaults:{line:{color:"#ffffff"},labels:{color:"#ffffff"},majorGridLines:{color:"#664e62"},minorGridLines:{color:"#4f394b"},title:{color:"#ffffff"},crosshair:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#ffffff"}},label:{color:"#ffffff"},line:{color:"#ffffff"}}}},gauge:{pointer:{color:"#a7008f"},scale:{rangePlaceholderColor:"#2c232b",labels:{color:"#ffffff"},minorTicks:{color:"#2c232b"},majorTicks:{color:"#664e62"},line:{color:"#ffffff"}}}}),f("default",{chart:{title:{color:"#8e8e8e"},legend:{labels:{color:"#232323"},inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}},seriesDefaults:{labels:{color:o,background:d,opacity:.5},errorBars:{color:"#232323"},candlestick:{downColor:"#dedede",line:{color:"#8d8d8d"}},notes:{icon:{background:"transparent",border:{color:"#8e8e8e"}},label:{color:"#232323"},line:{color:"#8e8e8e"}}},seriesColors:["#ff6800","#a0a700","#ff8d00","#678900","#ffb53c","#396000"],axisDefaults:{line:{color:"#8e8e8e"},labels:{color:"#232323"},minorGridLines:{color:"#f0f0f0"},majorGridLines:{color:"#dfdfdf"},title:{color:"#232323"},crosshair:{color:"#8e8e8e"},notes:{icon:{background:"transparent",border:{color:"#8e8e8e"}},label:{color:"#232323"},line:{color:"#8e8e8e"}}}},gauge:{pointer:{color:"#ea7001"},scale:{rangePlaceholderColor:"#dedede",labels:{color:"#2e2e2e"},minorTicks:{color:"#2e2e2e"},majorTicks:{color:"#2e2e2e"},line:{color:"#2e2e2e"}}}}),f("silver",{chart:{title:{color:"#4e5968"},legend:{labels:{color:"#4e5968"},inactiveItems:{labels:{color:"#B1BCC8"},markers:{color:"#B1BCC8"}}},seriesDefaults:{labels:{color:"#293135",background:"#eaeaec",opacity:.5},errorBars:{color:"#4e5968"},notes:{icon:{background:"transparent",border:{color:"#4e5968"}},label:{color:"#4e5968"},line:{color:"#4e5968"}},line:{markers:{background:"#eaeaec"}},scatter:{markers:{background:"#eaeaec"}},scatterLine:{markers:{background:"#eaeaec"}},pie:{connectors:{color:"#A6B1C0"}},donut:{connectors:{color:"#A6B1C0"}},candlestick:{downColor:"#a6afbe"}},chartArea:{background:"#eaeaec"},seriesColors:["#007bc3","#76b800","#ffae00","#ef4c00","#a419b7","#430B62"],axisDefaults:{line:{color:"#a6b1c0"},labels:{color:"#4e5968"},majorGridLines:{color:"#dcdcdf"},minorGridLines:{color:"#eeeeef"},title:{color:"#4e5968"},crosshair:{color:"#a6b1c0"},notes:{icon:{background:"transparent",border:{color:"#4e5968"}},label:{color:"#4e5968"},line:{color:"#4e5968"}}}},gauge:{pointer:{color:"#0879c0"},scale:{rangePlaceholderColor:"#f3f3f4",labels:{color:"#515967"},minorTicks:{color:"#515967"},majorTicks:{color:"#515967"},line:{color:"#515967"}}}}),f("metro",{chart:{title:{color:"#777777"},legend:{labels:{color:"#777777"},inactiveItems:{labels:{color:"#CBCBCB"},markers:{color:"#CBCBCB"}}},seriesDefaults:{labels:{color:o},errorBars:{color:"#777777"},notes:{icon:{background:"transparent",border:{color:"#777777"}},label:{color:"#777777"},line:{color:"#777777"}},candlestick:{downColor:"#c7c7c7",line:{color:"#787878"}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:["#8ebc00","#309b46","#25a0da","#ff6900","#e61e26","#d8e404","#16aba9","#7e51a1","#313131","#ed1691"],axisDefaults:{line:{color:"#c7c7c7"},labels:{color:"#777777"},minorGridLines:{color:"#c7c7c7"},majorGridLines:{color:"#c7c7c7"},title:{color:"#777777"},crosshair:{color:"#c7c7c7"},notes:{icon:{background:"transparent",border:{color:"#777777"}},label:{color:"#777777"},line:{color:"#777777"}}}},gauge:{pointer:{color:"#8ebc00"},scale:{rangePlaceholderColor:"#e6e6e6",labels:{color:"#777"},minorTicks:{color:"#777"},majorTicks:{color:"#777"},line:{color:"#777"}}}}),f("metroblack",{chart:{title:{color:"#ffffff"},legend:{labels:{color:"#ffffff"},inactiveItems:{labels:{color:"#797979"},markers:{color:"#797979"}}},seriesDefaults:{border:{_brightness:1},labels:{color:"#ffffff"},errorBars:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#cecece"}},label:{color:"#ffffff"},line:{color:"#cecece"}},line:{markers:{background:"#0e0e0e"}},bubble:{opacity:.6},scatter:{markers:{background:"#0e0e0e"}},scatterLine:{markers:{background:"#0e0e0e"}},candlestick:{downColor:"#828282",line:{color:"#ffffff"}},overlay:{gradient:"none"}},chartArea:{background:"#0e0e0e"},seriesColors:["#00aba9","#309b46","#8ebc00","#ff6900","#e61e26","#d8e404","#25a0da","#7e51a1","#313131","#ed1691"],axisDefaults:{line:{color:"#cecece"},labels:{color:"#ffffff"},minorGridLines:{color:"#2d2d2d"},majorGridLines:{color:"#333333"},title:{color:"#ffffff"},crosshair:{color:"#cecece"},notes:{icon:{background:"transparent",border:{color:"#cecece"}},label:{color:"#ffffff"},line:{color:"#cecece"}}}},gauge:{pointer:{color:"#00aba9"},scale:{rangePlaceholderColor:"#2d2d2d",labels:{color:"#ffffff"},minorTicks:{color:"#333333"},majorTicks:{color:"#cecece"},line:{color:"#cecece"}}}}),f("moonlight",{chart:{title:{color:"#ffffff"},legend:{labels:{color:"#ffffff"},inactiveItems:{labels:{color:"#A1A7AB"},markers:{color:"#A1A7AB"}}},seriesDefaults:{labels:{color:"#ffffff"},errorBars:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#8c909e"}},label:{color:"#ffffff"},line:{color:"#8c909e"}},pie:{overlay:{gradient:"sharpBevel"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#212a33"}},bubble:{opacity:.6},scatter:{markers:{background:"#212a33"}},scatterLine:{markers:{background:"#212a33"}},area:{opacity:.3},candlestick:{downColor:"#757d87",line:{color:"#ea9d06"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:d,opacity:.2}}},ohlc:{line:{color:"#ea9d06"}}},chartArea:{background:"#212a33"},seriesColors:["#ffca08","#ff710f","#ed2e24","#ff9f03","#e13c02","#a00201"],axisDefaults:{line:{color:"#8c909e"},minorTicks:{color:"#8c909e"},majorTicks:{color:"#8c909e"},labels:{color:"#ffffff"},majorGridLines:{color:"#3e424d"},minorGridLines:{color:"#2f3640"},title:{color:"#ffffff"},crosshair:{color:"#8c909e"},notes:{icon:{background:"transparent",border:{color:"#8c909e"}},label:{color:"#ffffff"},line:{color:"#8c909e"}}}},gauge:{pointer:{color:"#f4af03"},scale:{rangePlaceholderColor:"#2f3640",labels:{color:d},minorTicks:{color:"#8c909e"},majorTicks:{color:"#8c909e"},line:{color:"#8c909e"}}}}),f("uniform",{chart:{title:{color:"#686868"},legend:{labels:{color:"#686868"},inactiveItems:{labels:{color:"#B6B6B6"},markers:{color:"#B6B6B6"}}},seriesDefaults:{labels:{color:"#686868"},errorBars:{color:"#686868"},notes:{icon:{background:"transparent",border:{color:"#9e9e9e"}},label:{color:"#686868"},line:{color:"#9e9e9e"}},pie:{overlay:{gradient:"sharpBevel"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#ffffff"}},bubble:{opacity:.6},scatter:{markers:{background:"#ffffff"}},scatterLine:{markers:{background:"#ffffff"}},area:{opacity:.3},candlestick:{downColor:"#cccccc",line:{color:"#cccccc"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:"#cccccc",opacity:.2}}},ohlc:{line:{color:"#cccccc"}}},chartArea:{background:"#ffffff"},seriesColors:["#527aa3","#6f91b3","#8ca7c2","#a8bdd1","#c5d3e0","#e2e9f0"],axisDefaults:{line:{color:"#9e9e9e"},minorTicks:{color:"#aaaaaa"},majorTicks:{color:"#888888"},labels:{color:"#686868"},majorGridLines:{color:"#dadada"},minorGridLines:{color:"#e7e7e7"},title:{color:"#686868"},crosshair:{color:"#9e9e9e"},notes:{icon:{background:"transparent",border:{color:"#9e9e9e"}},label:{color:"#686868"},line:{color:"#9e9e9e"}}}},gauge:{pointer:{color:"#527aa3"},scale:{rangePlaceholderColor:"#e7e7e7",labels:{color:"#686868"},minorTicks:{color:"#aaaaaa"},majorTicks:{color:"#888888"},line:{color:"#9e9e9e"}}}}),f("bootstrap",{chart:{title:{color:"#333333"},legend:{labels:{color:"#333333"},inactiveItems:{labels:{color:"#999999"},markers:{color:"#9A9A9A"}}},seriesDefaults:{labels:{color:"#333333"},overlay:{gradient:"none"},errorBars:{color:"#343434"},notes:{icon:{background:"#000000",border:{color:"#000000"}},label:{color:"#ffffff"},line:{color:"#000000"}},pie:{overlay:{gradient:"none"}},donut:{overlay:{gradient:"none"}},line:{markers:{background:"#ffffff"}},bubble:{opacity:.6},scatter:{markers:{background:"#ffffff"}},scatterLine:{markers:{background:"#ffffff"}},area:{opacity:.8},candlestick:{downColor:"#d0d0d0",line:{color:"#333333"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:"#b8b8b8",opacity:.2}}},ohlc:{line:{color:"#333333"}}},chartArea:{background:"#ffffff"},seriesColors:["#428bca","#5bc0de","#5cb85c","#f2b661","#e67d4a","#da3b36"],axisDefaults:{line:{color:"#cccccc"},minorTicks:{color:"#ebebeb"},majorTicks:{color:"#cccccc"},labels:{color:"#333333"},majorGridLines:{color:"#cccccc"},minorGridLines:{color:"#ebebeb"},title:{color:"#333333"},crosshair:{color:"#000000"},notes:{icon:{background:"#000000",border:{color:"#000000"}},label:{color:"#ffffff"},line:{color:"#000000"}}}},gauge:{pointer:{color:"#428bca"},scale:{rangePlaceholderColor:"#cccccc",labels:{color:"#333333"},minorTicks:{color:"#ebebeb"},majorTicks:{color:"#cccccc"},line:{color:"#cccccc"}}}}),f("flat",{chart:{title:{color:"#4c5356"},legend:{labels:{color:"#4c5356"},inactiveItems:{labels:{color:"#CBCBCB"},markers:{color:"#CBCBCB"}}},seriesDefaults:{labels:{color:"#4c5356"},errorBars:{color:"#4c5356"},notes:{icon:{background:"transparent",border:{color:"#cdcdcd"}},label:{color:"#4c5356"},line:{color:"#cdcdcd"}},candlestick:{downColor:"#c7c7c7",line:{color:"#787878"}},area:{opacity:.9},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:["#10c4b2","#ff7663","#ffb74f","#a2df53","#1c9ec4","#ff63a5","#1cc47b"],axisDefaults:{line:{color:"#cdcdcd"},labels:{color:"#4c5356"},minorGridLines:{color:"#cdcdcd"},majorGridLines:{color:"#cdcdcd"},title:{color:"#4c5356"},crosshair:{color:"#cdcdcd"},notes:{icon:{background:"transparent",border:{color:"#cdcdcd"}},label:{color:"#4c5356"},line:{color:"#cdcdcd"}}}},gauge:{pointer:{color:"#10c4b2"},scale:{rangePlaceholderColor:"#cdcdcd",labels:{color:"#4c5356"},minorTicks:{color:"#4c5356"},majorTicks:{color:"#4c5356"},line:{color:"#4c5356"}}}})}(window.kendo.jQuery),function(e,t){function n(){this._defaults={}}function i(e){return o(e).min}function r(e){return o(e).max}function o(e){var n,i,r=lr,o=cr,a=e.length;for(n=0;a>n;n++)i=e[n],null!==i&&isFinite(i)&&(r=dn.min(r,i),o=dn.max(o,i));return{min:r===lr?t:r,max:o===cr?t:o}}function a(e,t,n,i){var r,o,a=(i.x-n.x)*(e.y-n.y)-(i.y-n.y)*(e.x-n.x),s=(i.y-n.y)*(t.x-e.x)-(i.x-n.x)*(t.y-e.y);return 0!==s&&(o=a/s,r=new Ln(e.x+o*(t.x-e.x),e.y+o*(t.y-e.y))),r}function s(e,t){var n,i,r,o=e.series,a=o.length,s=e.seriesDefaults,c=xn({},e.seriesDefaults),d=t?xn({},t.seriesDefaults):{},u=xn({},d);for(l(c),l(u),n=0;a>n;n++)i=o[n].type||e.seriesDefaults.type,r=xn({},u,d[i],{tooltip:e.tooltip},c,s[i]),o[n]._defaults=r,o[n]=xn({},r,o[n])}function l(e){delete e.bar,delete e.column,delete e.line,delete e.verticalLine,delete e.pie,delete e.donut,delete e.area,delete e.verticalArea,delete e.scatter,delete e.scatterLine,delete e.bubble,delete e.candlestick,delete e.ohlc,delete e.boxPlot,delete e.bullet,delete e.verticalBullet,delete e.polarArea,delete e.polarLine,delete e.radarArea,delete e.radarLine}function c(e){var t,n,i,r,o=e.series,a=e.seriesColors||[];for(t=0;t<o.length;t++)n=o[t],i=a[t%a.length],n.color=n.color||i,r=n._defaults,r&&(r.color=r.color||i)}function d(e){var t;sn([yi,so,fo,go],function(){t=this+"Axes",e[t]&&(e[this+"Axis"]=e[t],delete e[t])})}function u(t,n){var i=(n||{}).axisDefaults||{};sn([yi,so,fo,go],function(){var n=this+"Axis",r=[].concat(t[n]),o=t.axisDefaults||{};r=e.map(r,function(e){var t=(e||{}).color,r=xn({},i,i[n],o,o[n],{line:{color:t},labels:{color:t},title:{color:t}},e);return delete r[n],r}),t[n]=r.length>1?r:r[0]})}function h(e,t,n){e[t]=(e[t]||0)+n}function p(e){var t,n=e.length,i=0;for(t=0;n>t;t++)i=dn.max(i,e[t].data.length);return i}function f(e){return e*e}function g(e,t){if(null===t)return t;var n=yn(e,!0);return n(t)}function m(e,t){if(null===t)return t;var n="_date_"+e,i=t[n];return i||(i=v(yn(e,!0)(t)),t[n]=i),i}function v(e){var t,n;if(e instanceof Date)t=e;else if(typeof e===qr)t=pn.parseDate(e)||new Date(e);else if(e)if(ln(e))for(t=[],n=0;n<e.length;n++)t.push(v(e[n]));else t=new Date(e);return t}function x(e){return ln(e)?cn(e,x):e?v(e).getTime():t}function y(e,t,n,i){var r,o=e;return e&&(e=v(e),r=e.getHours(),n===mo?o=new Date(e.getFullYear()+t,0,1):n===ur?o=new Date(e.getFullYear(),e.getMonth()+t,1):n===ho?(o=y(w(e,i),7*t,Mi),pn.date.adjustDST(o,r)):n===Mi?(o=new Date(e.getFullYear(),e.getMonth(),e.getDate()+t),pn.date.adjustDST(o,r)):n===Zi?(o=new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()+t),t>0&&D(e,o)&&(o=y(e,t+1,n,i))):n===dr?(o=new Date(e.getTime()+t*Yr),o.setSeconds(0)):n===Or&&(o=new Date(e.getTime()+t*Qr)),o.getMilliseconds()>0&&o.setMilliseconds(0)),o}function w(e,t){var n=e.getDay(),i=0;if(!isNaN(n))for(t=t||0;n!==t;)0===n?n=6:n--,i++;return C(e,-i*$r)}function b(e,t,n){return e=v(e),y(e,0,t,n)}function _(e,t,n){return e=v(e),e&&b(e,t,n).getTime()===e.getTime()?e:y(e,1,t,n)}function k(e,t){var n=e.getTime()-t,i=e.getTimezoneOffset()-t.getTimezoneOffset();return n-i*Yr}function C(e,t){var n=e.getTimezoneOffset(),i=new Date(e.getTime()+t),r=i.getTimezoneOffset()-n;return new Date(i.getTime()+r*Yr)}function A(e,t,n){var i;return i=n===mo?t.getFullYear()-e.getFullYear():n===ur?12*A(e,t,mo)+t.getMonth()-e.getMonth():n===Mi?dn.floor(k(t,e)/$r):dn.floor((t-e)/eo[n])}function S(e){return 1===e.length?e[0]:e}function T(e){var t,n,i,r=e.length;if(r>0)for(n=0;r>n;n++)i=e[n].box,t?t.wrap(i):t=i.clone();return t||Sn()}function P(e,t){return e&&t?e.toLowerCase()===t.toLowerCase():e===t}function D(e,t){return e&&t?x(e)===x(t):e===t}function B(e){for(var t,n=e.length;n--;)if(t=e[n],Gn(t)&&null!==t)return t}function M(e,t){null!==t&&e.push(t)}function E(e,t){for(var n,i,r=0,o=t.length-1;o>=r;)if(n=dn.floor((r+o)/2),i=t[n],e>i)r=n+1;else{if(!(i>e)){for(;D(t[n-1],e);)n--;return n}o=n-1}return t[n]<=e?n:n-1}function I(e){return"number"==typeof e&&!isNaN(e)}function L(e){var t,n,i=e.length,r=0;for(t=0;i>t;t++)n=e[t],I(n)&&r++;return r}function z(e){return L(e)===e.length}function O(e){var t,n,i,r={};for(t=0;t<e.length;t++)n=e[t],i=n.options.name,i&&(r[i]=n.range());return r}function R(e,t,n){var i,r,o,a,s;if(n=n||{},o=n.excluded=n.excluded||[],a=n.defaults=n.defaults||{},s=n.depth=n.depth||0,!(s>sr))for(i in e)!Yn(i,n.excluded)&&e.hasOwnProperty(i)&&(r=e[i],wn(r)?e[i]=ni(r(t),a[i]):typeof r===kr&&(n.defaults=a[i],n.depth++,R(r,t,n),n.depth--))}function V(e,n){var i,r,o,a=[],s=e.groupNameTemplate,l=n.length;for(Gn(s)?(pn.logToConsole("'groupNameTemplate' is obsolete and will be removed in future versions. Specify the group name template as 'series.name'"),s&&(i=bn(s))):(i=bn(e.name||""),0===i._slotCount&&(i=bn(Gn(e.name)?"#= group.value #: #= series.name #":"#= group.value #"))),r=0;l>r;r++)o=xn({},e),o.color=t,o._groupIx=r,a.push(o),i&&(o.name=i({series:o,group:n[r]}));
return a}function F(e,t){var n,i,r=[];for(t=[].concat(t),n=0;n<e.length;n++)i=e[n],Yn(i.type,t)&&r.push(i);return r}function H(t,n){if(t instanceof Date){for(var i=0,r=n.length;r>i;i++)if(D(n[i],t))return i;return-1}return e.inArray(t,n)}function N(e,t){t=t||Wn;for(var n=1,i=e.length;i>n;n++)if(t(e[n],e[n-1])<0){e.sort(t);break}return e}function j(e,t){var n,i=N(e,t),r=i.length,o=r>0?[i[0]]:[];for(t=t||Wn,n=1;r>n;n++)0!==t(i[n],$n(o))&&o.push(i[n]);return o}function U(e,t){var n=e.type,i=t instanceof Date;return!n&&i||P(n,Bi)}function G(e){var t,n,i,r,o=[],a=e.length;for(t=0;a>t;t++)for(n=e[t],r=n.length,i=0;r>i;i++)o[i]=o[i]||[],o[i].push(n[i]);return o}function W(e,t){if(e.indexOf(".")>-1)for(var n,i=e.split("."),r="";i.length>1;)r+=i.shift(),n=pn.getter(r)(t)||{},pn.setter(r)(t,n),r+="."}var q,Q,Y,X,$,Z,J,K,et,tt,nt,it,rt,ot,at,st,lt,ct,dt,ut,ht,pt,ft,gt,mt,vt,xt,yt,wt,bt,_t,kt,Ct,At,St,Tt,Pt,Dt,Bt,Mt,Et,It,Lt,zt,Ot,Rt,Vt,Ft,Ht,Nt,jt,Ut,Gt,Wt,qt,Qt,Yt,Xt,$t,Zt,Jt,Kt,en,tn,nn,rn,on,an,sn=e.each,ln=e.isArray,cn=e.map,dn=Math,un=e.extend,hn=e.proxy,pn=window.kendo,fn=pn.Class,gn=pn.Observable,mn=pn.data.DataSource,vn=pn.ui.Widget,xn=pn.deepExtend,yn=pn.getter,wn=pn.isFunction,bn=pn.template,_n=pn.dataviz,kn=_n.Axis,Cn=_n.AxisLabel,An=_n.BarAnimation,Sn=_n.Box2D,Tn=_n.BoxElement,Pn=_n.ChartElement,Dn=_n.Color,Bn=_n.CurveProcessor,Mn=_n.ElementAnimation,En=_n.Note,In=_n.NumericAxis,Ln=_n.Point2D,zn=_n.RootElement,On=_n.Ring,Rn=_n.ShapeElement,Vn=_n.Text,Fn=_n.TextBox,Hn=_n.Title,Nn=_n.animationDecorator,jn=_n.append,Un=_n.autoFormat,Gn=_n.defined,Wn=_n.dateComparer,qn=_n.getElement,Qn=_n.getSpacing,Yn=_n.inArray,Xn=_n.interpolateValue,$n=_n.last,Zn=_n.limitValue,Jn=_n.mwDelta,Kn=_n.round,ei=_n.renderTemplate,ti=_n.uniqueId,ni=_n.valueOrDefault,ii=".kendoChart",ri="above",oi="area",ai="auto",si="fit",li=_n.AXIS_LABEL_CLICK,ci="bar",di=.8,ui="below",hi="#000",pi="both",fi="bottom",gi="boxPlot",mi="bubble",vi="bullet",xi="candlestick",yi="category",wi="center",bi="change",_i="circle",ki=_n.CLIP,Ci="color",Ai="column",Si=_n.COORD_PRECISION,Ti="cross",Pi="k-",Di="dataBound",Bi="date",Mi="days",Ei=_n.DEFAULT_FONT,Ii=_n.DEFAULT_HEIGHT,Li=_n.DEFAULT_PRECISION,zi=_n.DEFAULT_WIDTH,Oi=4,Ri="donut",Vi=50,Fi="drag",Hi="dragEnd",Ni="dragStart",ji="errorLow",Ui="errorHigh",Gi="xErrorLow",Wi="xErrorHigh",qi="yErrorLow",Qi="yErrorHigh",Yi="fadeIn",Xi="funnel",$i="glass",Zi="hours",Ji=_n.INITIAL_ANIMATION_DURATION,Ki="insideBase",er="insideEnd",tr="interpolate",nr="left",ir="legendItemClick",rr="legendItemHover",or="line",ar=8,sr=5,lr=Number.MAX_VALUE,cr=-Number.MAX_VALUE,dr="minutes",ur="months",hr="mouseleave"+ii,pr="mousemove.tracking",fr="mouseover"+ii,gr="mouseout"+ii,mr="mousemove"+ii,vr=20,xr=150,yr="DOMMouseScroll"+ii+" mousewheel"+ii,wr=_n.NOTE_CLICK,br=_n.NOTE_HOVER,_r="noteText",kr="object",Cr="ohlc",Ar="outsideEnd",Sr="_outline",Tr="pie",Pr=70,Dr="plotAreaClick",Br="pointer",Mr="right",Er="roundedBevel",Ir="roundedGlass",Lr="scatter",zr="scatterLine",Or="seconds",Rr="selectStart",Vr="select",Fr="selectEnd",Hr="seriesClick",Nr="seriesHover",jr="step",Ur="smooth",Gr="stderr",Wr="stddev",qr="string",Qr=1e3,Yr=60*Qr,Xr=60*Yr,$r=24*Xr,Zr=7*$r,Jr=31*$r,Kr=365*$r,eo={years:Kr,months:Jr,weeks:Zr,days:$r,hours:Xr,minutes:Yr,seconds:Qr},to="top",no=150,io=5,ro=100,oo=100,ao="tooltip-inverse",so="value",lo="verticalArea",co="verticalBullet",uo="verticalLine",ho="weeks",po="#fff",fo="x",go="y",mo="years",vo="zero",xo=3,yo="zoomStart",wo="zoom",bo="zoomEnd",_o=[Or,dr,Zi,Mi,ho,ur,mo],ko=[ci,Ai,Cr,xi,gi,vi],Co={seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},Ao=vn.extend({init:function(e,t){var n,i=this;pn.destroy(e),vn.fn.init.call(i,e),n=xn({},i.options,t),i.element.addClass(Pi+n.name.toLowerCase()).css("position","relative"),i._originalOptions=xn({},n),i._initTheme(n),i.bind(i.events,i.options),i.wrapper=i.element,i._initDataSource(t),pn.notify(i,_n.ui)},_initTheme:function(n){var i,r=this,o=_n.ui.themes||{},a=n.theme,s=o[a]||o[a.toLowerCase()],l=a&&s?s.chart:{},u=[],h=n.series||[];for(i=0;i<h.length;i++)u.push(e.extend({},h[i]));n.series=u,d(n),r._applyDefaults(n,l),null===n.seriesColors&&(n.seriesColors=t),r.options=xn({},l,n),c(r.options)},_initDataSource:function(e){var t=this,n=(e||{}).dataSource;t._dataChangeHandler=hn(t._onDataChanged,t),t.dataSource=mn.create(n).bind(bi,t._dataChangeHandler),t._bindCategories(),t._redraw(),t._attachEvents(),n&&t.options.autoBind&&t.dataSource.fetch()},setDataSource:function(e){var t=this;t.dataSource.unbind(bi,t._dataChangeHandler),t.dataSource=t._originalOptions.dataSource=e,e.bind(bi,t._dataChangeHandler),t.options.autoBind&&e.fetch()},events:[Di,Hr,Nr,li,ir,rr,Dr,Ni,Fi,Hi,yo,wo,bo,Rr,Vr,Fr,wr,br],items:function(){return e()},options:{name:"Chart",renderAs:"",theme:"default",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},autoBind:!0,seriesDefaults:{type:Ai,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{}},refresh:function(){var e=this;e._applyDefaults(e.options),c(e.options),e._bindSeries(),e._bindCategories(),e.trigger(Di),e._redraw()},getSize:function(){return pn.dimensions(this.element)},_resize:function(){var e=this.options.transitions;this.options.transitions=!1,this._redraw(),this.options.transitions=e},redraw:function(e){var t,n,i=this;i._applyDefaults(i.options),e?(n=i._model._plotArea,t=n.findPane(e),n.redraw(t)):i._redraw()},_redraw:function(){var e,t=this,n=t._getModel();t._destroyView(),t._model=n,t._plotArea=n._plotArea,e=t._view=_n.ViewFactory.current.create(n.options,t.options.renderAs),e&&(e.load(n),t._viewElement=t._renderView(e),t._tooltip=t._createTooltip(),t._highlight=new Zt(e,t._viewElement),t._setupSelection())},_sharedTooltip:function(){var e=this,t=e.options;return e._plotArea instanceof Nt&&t.tooltip.shared},_createTooltip:function(){var e,t=this,n=t.options,i=t.element;return e=t._sharedTooltip()?new en(i,t._plotArea,n.tooltip):new Kt(i,n.tooltip)},_renderView:function(){var e=this;return e._view.renderTo(e.element[0])},_applyDefaults:function(e,t){u(e,t),s(e,t)},_getModel:function(){var e,t=this,n=t.options,i=new zn(t._modelOptions());return i.parent=t,Hn.buildTitle(n.title,i),e=i._plotArea=t._createPlotArea(),n.legend.visible&&i.append(new $(e.options.legend)),i.append(e),i.reflow(),i},_modelOptions:function(){var e=this,t=e.options,n=e.element,i=dn.floor(n.height()),r=dn.floor(n.width());return xn({width:r||zi,height:i||Ii,transitions:t.transitions},t.chartArea)},_createPlotArea:function(){var e=this,t=e.options;return q.current.create(t.series,t)},_setupSelection:function(){var e,t,n,i,r,o,a=this,s=a._plotArea,l=s.axes,c=a._selections=[];for(a._selectStartHandler||(a._selectStartHandler=hn(a._selectStart,a),a._selectHandler=hn(a._select,a),a._selectEndHandler=hn(a._selectEnd,a)),t=0;t<l.length;t++)n=l[t],o=n.options,n instanceof Z&&o.select&&!o.vertical&&(i=0,r=o.categories.length-1,n instanceof K&&(i=o.categories[i],r=o.categories[r]),o.justified||(n instanceof K?r=y(r,1,o.baseUnit,o.weekStartDay):r++),e=new on(a,n,xn({min:i,max:r},o.select)),e.bind(Rr,a._selectStartHandler),e.bind(Vr,a._selectHandler),e.bind(Fr,a._selectEndHandler),c.push(e))},_selectStart:function(e){return this.trigger(Rr,e)},_select:function(e){return this.trigger(Vr,e)},_selectEnd:function(e){return this.trigger(Fr,e)},_attachEvents:function(){var e=this,t=e.element;t.on(fr,hn(e._mouseover,e)),t.on(gr,hn(e._mouseout,e)),t.on(yr,hn(e._mousewheel,e)),t.on(hr,hn(e._mouseleave,e)),e._shouldAttachMouseMove()&&t.on(mr,hn(e._mousemove,e)),pn.UserEvents&&(e._userEvents=new pn.UserEvents(t,{global:!0,filter:":not(.k-selector)",multiTouch:!1,tap:hn(e._tap,e),start:hn(e._start,e),move:hn(e._move,e),end:hn(e._end,e)}))},_mouseout:function(e){var t=this,n=t._model.modelMap[e.target.getAttribute("data-model-id")];n&&n.leave&&n.leave(t,e)},_start:function(e){var t=this,n=t._events;Gn(n[Ni]||n[Fi]||n[Hi])&&t._startNavigation(e,Ni)},_move:function(e){var t,n,i,r,o,a,s=this,l=s._navState,c={};if(l){for(e.preventDefault(),t=l.axes,n=0;n<t.length;n++)i=t[n],r=i.options.name,r&&(o=i.options.vertical?e.y:e.x,a=o.startLocation-o.location,0!==a&&(c[i.options.name]=i.translateRange(a)));l.axisRanges=c,s.trigger(Fi,{axisRanges:c,originalEvent:e})}},_end:function(e){this._endNavigation(e,Hi)},_mousewheel:function(e){var t,n,i,r,o,a,s=this,l=e.originalEvent,c=Jn(e),d=s._navState,u={};if(d||(t=s._startNavigation(l,yo),t||(d=s._navState)),d){for(n=d.totalDelta||c,d.totalDelta=n+c,i=s._navState.axes,r=0;r<i.length;r++)o=i[r],a=o.options.name,a&&(u[a]=o.scaleRange(n));s.trigger(wo,{delta:c,axisRanges:u,originalEvent:e}),s._mwTimeout&&clearTimeout(s._mwTimeout),s._mwTimeout=setTimeout(function(){s._endNavigation(e,bo)},xr)}},_startNavigation:function(e,t){var n,i,r,o=this,a=o._eventCoordinates(e),s=o._model._plotArea,l=s.findPointPane(a),c=s.axes.slice(0),d=!1;if(l){for(n=0;n<c.length;n++)if(i=c[n],i.box.containsPoint(a)){d=!0;break}!d&&s.backgroundBox().containsPoint(a)&&(r=o.trigger(t,{axisRanges:O(c),originalEvent:e}),r?o._userEvents.cancel():(o._suppressHover=!0,o._unsetActivePoint(),o._navState={pane:l,axes:c}))}},_endNavigation:function(e,t){var n=this;n._navState&&(n.trigger(t,{axisRanges:n._navState.axisRanges,originalEvent:e}),n._suppressHover=!1,n._navState=null)},_getChartElement:function(t){var n,i=this,r=e(t.target).data("modelId"),o=i._model;return r&&(n=o.modelMap[r]),n&&n.aliasFor&&(n=n.aliasFor(t,i._eventCoordinates(t))),n},_eventCoordinates:function(e){var t=this,n=Gn((e.x||{}).client),i=n?e.x.client:e.clientX,r=n?e.y.client:e.clientY;return t._toModelCoordinates(i,r)},_toModelCoordinates:function(t,n){var i=this.element,r=i.offset(),o=parseInt(i.css("paddingLeft"),10),a=parseInt(i.css("paddingTop"),10),s=e(window);return new Ln(t-r.left-o+s.scrollLeft(),n-r.top-a+s.scrollTop())},_tap:function(e){var t=this,n=t._getChartElement(e);t._activePoint===n?t._click(e):(t._startHover(e)||t._unsetActivePoint(),t._click(e))},_click:function(e){for(var t=this,n=t._getChartElement(e);n;)n.click&&n.click(t,e),n=n.parent},_startHover:function(e){var n,i=this,r=i._tooltip,o=i._highlight,a=i.options.tooltip;if(!i._suppressHover&&o&&!Yn(e.target,o._overlays)&&!i._sharedTooltip())return n=i._getChartElement(e),n&&n.hover&&(n.hover(i,e),!e.isDefaultPrevented())?(i._activePoint=n,a=xn({},a,n.options.tooltip),a.visible&&r.show(n),o.show(n),!0):t},_mouseover:function(t){var n=this;n._startHover(t)&&e(document).on(pr,hn(n._mouseMoveTracking,n))},_mouseMoveTracking:function(t){var n,i,r,o=this,a=o.options,s=o._tooltip,l=o._highlight,c=o._eventCoordinates(t),d=o._activePoint;o._plotArea.box.containsPoint(c)?d&&d.series&&Yn(d.series.type,[or,oi])&&(i=d.parent,r=i.getNearestPoint(c.x,c.y,d.seriesIx),r&&r!=d&&(r.hover(o,t),o._activePoint=r,n=xn({},a.tooltip,d.options.tooltip),n.visible&&s.show(r),l.show(r))):(e(document).off(pr),o._unsetActivePoint())},_mousemove:function(e){var t,n=this,i=new Date,r=n._mousemove.timestamp;(!r||i-r>vr)&&(t=n._eventCoordinates(e),n._trackCrosshairs(t),n._sharedTooltip()&&n._trackSharedTooltip(t),n._mousemove.timestamp=i)},_trackCrosshairs:function(e){var t,n,i=this._plotArea.crosshairs;for(t=0;t<i.length;t++)n=i[t],n.box.containsPoint(e)?n.showAt(e):n.hide()},_trackSharedTooltip:function(e){var t,n,i=this,r=i.options,o=i._plotArea,a=o.categoryAxis,s=i._tooltip,l=r.tooltip,c=i._highlight;o.box.containsPoint(e)&&(t=a.pointCategoryIndex(e),t!==i._tooltipCategoryIx&&(n=o.pointsByCategoryIndex(t),n.length>0?(l.visible&&s.showAt(n,e),c.show(n)):s.hide(),i._tooltipCategoryIx=t))},_mouseleave:function(){var e,t=this,n=t._plotArea,i=n.crosshairs,r=t._tooltip,o=t._highlight;for(e=0;e<i.length;e++)i[e].hide();setTimeout(hn(r.hide,r),oo),o.hide(),t._tooltipCategoryIx=null},_unsetActivePoint:function(){var e=this,t=e._tooltip,n=e._highlight;e._activePoint=null,t&&t.hide(),n&&n.hide()},_onDataChanged:function(){var e,t,n=this,i=n.options,r=n._sourceSeries||i.series,o=r.length,a=n.dataSource.view(),s=(n.dataSource.group()||[]).length>0,l=[];for(e=0;o>e;e++)t=r[e],n._isBindable(t)&&s?jn(l,V(t,a)):l.push(t||[]);n._sourceSeries=r,i.series=l,c(n.options),n._bindSeries(),n._bindCategories(),n.trigger(Di),n._redraw()},_bindSeries:function(){var e,t,n,i,r=this,o=r.dataSource.view(),a=r.options.series,s=a.length;for(e=0;s>e;e++)t=a[e],r._isBindable(t)&&(n=t._groupIx,i=Gn(n)?(o[n]||{}).items:o,t.autoBind!==!1&&(t.data=i))},_bindCategories:function(){var e,t,n=this,i=n.dataSource.view()||[],r=(n.dataSource.group()||[]).length>0,o=i,a=n.options,s=[].concat(a.categoryAxis);for(r&&i.length&&(o=i[0].items),e=0;e<s.length;e++)t=s[e],t.autoBind!==!1&&n._bindCategoryAxis(t,o,e)},_bindCategoryAxis:function(e,t,n){var i,r,o,a=(t||[]).length;if(e.field)for(e.categories=[],i=0;a>i;i++)o=t[i],r=g(e.field,o),0===i?(e.categories=[r],e.dataItems=[o]):(e.categories.push(r),e.dataItems.push(o));else this._bindCategoryAxisFromSeries(e,n)},_bindCategoryAxisFromSeries:function(e,t){var n,i,r,o,a,s,l,c,d,u,h,p=this,f=[],v=p.options.series,x=v.length,y={};for(i=0;x>i;i++)if(r=v[i],o=r.categoryAxis===e.name||!r.categoryAxis&&0===t,a=r.data,l=a.length,r.categoryField&&o&&l>0)for(h=U(e,g(r.categoryField,a[0])),u=h?m:g,s=0;l>s;s++)c=a[s],d=u(r.categoryField,c),(h||!y[d])&&(f.push([d,c]),h||(y[d]=!0));f.length>0&&(h&&(f=j(f,function(e,t){return Wn(e[0],t[0])})),n=G(f),e.categories=n[0],e.dataItems=n[1])},_isBindable:function(e){var t,n,i=Q.current.valueFields(e),r=!0;for(n=0;n<i.length;n++)if(t=i[n],t===so?t="field":t+="Field",!Gn(e[t])){r=!1;break}return r},_legendItemClick:function(e,t){var n,i,r,o=this,a=o._plotArea,s=(a.srcSeries||a.series)[e],l=(o._sourceSeries||[])[e]||s;Yn(s.type,[Tr,Ri,Xi])?(r=l.data[t],i=Gn(r.visible)?!r.visible:!1,r.visible=i):(i=!l.visible,l.visible=i,s.visible=i),o.options.transitions&&(o.options.transitions=!1,n=!0),o.redraw(),n&&(o.options.transitions=!0)},_legendItemHover:function(e,t){var n,i,r=this,o=r._plotArea,a=r._highlight,s=(o.srcSeries||o.series)[e];n=Yn(s.type,[Tr,Ri,Xi])?t:e,i=o.pointsBySeriesIndex(n),a.show(i)},_shouldAttachMouseMove:function(){var e=this;return e._plotArea.crosshairs.length||e._tooltip&&e._sharedTooltip()},setOptions:function(t){var n=this;n._originalOptions=xn(n._originalOptions,t),n.options=xn({},n._originalOptions),n._sourceSeries=null,e(document).off(mr),vn.fn.setOptions.call(n,t),n._initTheme(n.options),t.dataSource&&n.setDataSource(mn.create(t.dataSource)),n._shouldAttachMouseMove()&&n.element.on(mr,hn(n._mousemove,n)),n.options.dataSource?n.refresh():n.redraw()},destroy:function(){var t=this,n=t.dataSource;t.element.off(ii),n.unbind(bi,t._dataChangeHandler),e(document).off(pr),t._userEvents&&t._userEvents.destroy(),t._destroyView(),vn.fn.destroy.call(t)},_destroyView:function(){var e=this,t=e._model,n=e._view,i=e._selections;if(t&&(t.destroy(),e._model=null),n&&(n.destroy(),e._view=null),i)for(;i.length>0;)i.shift().destroy()}});xn(Ao.fn,_n.ExportMixin),q=fn.extend({init:function(){this._registry=[]},register:function(e,t){this._registry.push({type:e,seriesTypes:t})},create:function(e,t){var n,i,r,o=this._registry,a=o[0];for(n=0;n<o.length;n++)if(i=o[n],r=F(e,i.seriesTypes),r.length>0){a=i;break}return new a.type(r,t)}}),q.current=new q,Q=fn.extend({init:function(){this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}},register:function(e,n,i){var r,o,a=this;for(n=n||[so],r=0;r<e.length;r++)o=e[r],a._valueFields[o]=n,a._otherFields[o]=i,a._nullValue[o]=a._makeValue(n,null),a._undefinedValue[o]=a._makeValue(n,t)},canonicalFields:function(e){return this.valueFields(e).concat(this.otherFields(e))},valueFields:function(e){return this._valueFields[e.type]||[so]},otherFields:function(e){return this._otherFields[e.type]||[so]},bindPoint:function(e,t){var n,i,r,o,a,s=this,l=e.data,c=l[t],d={valueFields:{value:c}},u=s.valueFields(e),h=s._otherFields[e.type];return null===c?a=s._nullValue[e.type]:Gn(c)?ln(c)?(i=c.slice(u.length),a=s._bindFromArray(c,u),n=s._bindFromArray(i,h)):typeof c===kr&&(r=s.sourceFields(e,u),o=s.sourceFields(e,h),a=s._bindFromObject(c,u,r),n=s._bindFromObject(c,h,o)):a=s._undefinedValue[e.type],Gn(a)&&(1===u.length?d.valueFields.value=a[u[0]]:d.valueFields=a),d.fields=n||{},d},_makeValue:function(e,t){var n,i,r={},o=e.length;for(n=0;o>n;n++)i=e[n],r[i]=t;return r},_bindFromArray:function(e,t){var n,i,r={};if(t)for(i=dn.min(t.length,e.length),n=0;i>n;n++)r[t[n]]=e[n];return r},_bindFromObject:function(e,t,n){var i,r,o,a,s={};if(t)for(r=t.length,n=n||t,i=0;r>i;i++)o=t[i],a=n[i],s[o]=g(a,e);return s},sourceFields:function(e,t){var n,i,r,o,a;if(t)for(i=t.length,o=[],n=0;i>n;n++)r=t[n],a=r===so?"field":r+"Field",o.push(e[a]||r);return o}}),Q.current=new Q,Y=Pn.extend({init:function(e,t){var n=this;Pn.fn.init.call(n,t),n.append(new Fn(e,n.options))},options:{position:Ar,margin:Qn(3),padding:Qn(4),color:hi,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:Yi,delay:Ji},zIndex:1},reflow:function(e){var t=this,n=t.options,i=n.vertical,r=n.aboveAxis,o=t.children[0],a=o.box,s=o.options.padding;o.options.align=i?wi:nr,o.options.vAlign=i?to:wi,n.position==er?i?(o.options.vAlign=to,!r&&a.height()<e.height()&&(o.options.vAlign=fi)):o.options.align=r?Mr:nr:n.position==wi?(o.options.vAlign=wi,o.options.align=wi):n.position==Ki?i?o.options.vAlign=r?fi:to:o.options.align=r?nr:Mr:n.position==Ar&&(i?e=r?new Sn(e.x1,e.y1-a.height(),e.x2,e.y1):new Sn(e.x1,e.y2,e.x2,e.y2+a.height()):(o.options.align=wi,e=r?new Sn(e.x2+a.width(),e.y1,e.x2,e.y2):new Sn(e.x1-a.width(),e.y1,e.x1,e.y2))),i?s.left=s.right=(e.width()-o.contentBox.width())/2:s.top=s.bottom=(e.height()-o.contentBox.height())/2,o.reflow(e)}}),X=Vn.extend({init:function(e,t){var n=this;n.item=e,Vn.fn.init.call(n,e.text,xn({id:ti(),cursor:{style:Br}},t)),n.enableDiscovery()},click:function(e,t){var n=this.eventArgs(t);e.trigger(ir,n)||(t.preventDefault(),e._legendItemClick(n.seriesIndex,n.pointIndex))},hover:function(e,t){var n=this.eventArgs(t);e.trigger(rr,n)||(t.preventDefault(),e._legendItemHover(n.seriesIndex,n.pointIndex))},leave:function(e){e._unsetActivePoint()},eventArgs:function(t){var n=this.item;return{element:e(t.target),text:n.text,series:n.series,seriesIndex:n.series.index,pointIndex:n.pointIndex}}}),$=Pn.extend({init:function(e){var t=this;Pn.fn.init.call(t,e),t.createLabels()},options:{position:Mr,items:[],labels:{},offsetX:0,offsetY:0,margin:Qn(10),padding:Qn(5),border:{color:hi,width:0},background:"",zIndex:1,markers:{border:{width:1}}},createLabels:function(){var e,t,n=this,i=n.options.items,r=i.length;for(e=0;r>e;e++)t=i[e],n.append(new X(t,xn({},n.options.labels,{color:t.labelColor})))},reflow:function(e){var n=this,i=n.options,r=n.children.length;return 0===r?(n.box=e.clone(),t):"custom"==i.position?(n.customLayout(e),t):(i.position==to||i.position==fi?n.horizontalLayout(e):n.verticalLayout(e),t)},getViewElements:function(e){var t,n,i,r,o,a,s,l=this,c=l.children,d=l.options,u=d.items,h=u.length,p=l.markerSize(),f=e.createGroup({zIndex:d.zIndex}),g=d.border||{};for(jn(f.children,Pn.fn.getViewElements.call(l,e)),s=0;h>s;s++)r=u[s].markerColor,o=c[s],n=Sn(),a=o.box,i=i?i.wrap(a):a.clone(),n.x1=a.x1-2*p,n.x2=n.x1+p,n.y1=d.position==to||d.position==fi?a.y1+p/2:a.y1+(a.height()-p)/2,n.y2=n.y1+p,f.children.push(e.createRect(n,{fill:r,stroke:r,strokeWidth:d.markers.border.width,data:{modelId:o.options.modelId},cursor:{style:Br}}));return c.length>0&&(t=Qn(d.padding),t.left+=2*p,i.pad(t),f.children.unshift(e.createRect(i,{stroke:g.width?g.color:"",strokeWidth:g.width,dashType:g.dashType,fill:d.background}))),[f]},verticalLayout:function(e){var t,n,i,r,o,a=this,s=a.options,l=a.children,c=l.length,d=l[0].box.clone(),u=Qn(s.margin),h=2*a.markerSize();for(r=1;c>r;r++)i=a.children[r],i.box.alignTo(a.children[r-1].box,fi),d.wrap(i.box);s.position==nr?(t=e.x1+h+u.left,n=(e.y2-d.height())/2,d.x2+=h+u.left+u.right):(t=e.x2-d.width()-u.right,n=(e.y2-d.height())/2,d.translate(t,n),d.x1-=h+u.left),a.translateChildren(t+s.offsetX,n+s.offsetY),o=d.width(),d.x1=dn.max(e.x1,d.x1),d.x2=d.x1+o,d.y1=e.y1,d.y2=e.y2,a.box=d},horizontalLayout:function(e){var t,n,i,r,o=this,a=o.options,s=o.children,l=s.length,c=s[0].box.clone(),d=3*o.markerSize(),u=Qn(a.margin),h=s[0].box.width()+d,p=e.width(),f=0;for(r=1;l>r;r++)i=s[r],h+=i.box.width()+d,h>p-d?(i.box=Sn(c.x1,c.y2,c.x1+i.box.width(),c.y2+i.box.height()),h=i.box.width()+d,f=i.box.y1):(i.box.alignTo(s[r-1].box,Mr),i.box.y2=f+i.box.height(),i.box.y1=f,i.box.translate(d,0)),c.wrap(i.box);t=(e.width()-c.width()+d)/2,a.position===to?(n=e.y1+u.top,c.y2=e.y1+c.height()+u.top+u.bottom,c.y1=e.y1):(n=e.y2-c.height()-u.bottom,c.y1=e.y2-c.height()-u.top-u.bottom,c.y2=e.y2),o.translateChildren(t+a.offsetX,n+a.offsetY),c.x1=e.x1,c.x2=e.x2,o.box=c},customLayout:function(e){var t,n=this,i=n.options,r=n.children,o=r.length,a=r[0].box.clone(),s=2*n.markerSize();for(t=1;o>t;t++)a=n.children[t].box,a.alignTo(n.children[t-1].box,fi),a.wrap(a);n.translateChildren(i.offsetX+s,i.offsetY),n.box=e},markerSize:function(){var e=this,t=e.children;return t.length>0?t[0].box.height()/2:0}}),Z=kn.extend({init:function(e){var t=this;kn.fn.init.call(t,e),e=t.options,e.categories=e.categories.slice(0),t._ticks={}},options:{type:yi,categories:[],vertical:!1,majorGridLines:{visible:!1,width:1,color:hi},zIndex:1,justified:!1},range:function(){return{min:0,max:this.options.categories.length}},getTickPositions:function(e){var t,n=this,i=n.options,r=i.vertical,o=i.justified,a=n.lineBox(),s=r?a.height():a.width(),l=e-(o?1:0),c=s/l,d=r?go:fo,u=a[d+1],h=[];for(t=0;e>t;t++)h.push(Kn(u,Si)),u+=c;return o||h.push(a[d+2]),i.reverse?h.reverse():h},getMajorTickPositions:function(){return this.getTicks().majorTicks},getMinorTickPositions:function(){return this.getTicks().minorTicks},getTicks:function(){var e,t=this,n=t._ticks,i=t.options,r=i.categories.length,o=i.reverse,a=i.justified,s=t.lineBox();return e=s.getHash()+r+o+a,n._hash!==e&&(n._hash=e,n.majorTicks=t.getTickPositions(r),n.minorTicks=t.getTickPositions(2*r)),n},getSlot:function(e,t){var n,i,r,o=this,a=o.options,s=o.getMajorTickPositions(),l=a.reverse,c=a.justified,d=a.vertical?go:fo,u=o.lineBox(),h=u[d+(l?2:1)],p=u[d+(l?1:2)],f=u.clone(),g=dn.max(1,s.length-(c?0:1));return e=ni(e,0),t=ni(t,e),e=Zn(e,0,g),t=Zn(t-1,e,g),t=dn.max(e,t),n=0===e?h:s[e]||p,i=c?n:s[t],r=t-e,(r>0||e===t)&&(i=s[t+1]||p),c&&(e===g?n=i:i=n),f[d+1]=l?i:n,f[d+2]=l?n:i,f},pointCategoryIndex:function(e){var t,n,i,r,o=this,a=o.options,s=a.reverse,l=a.vertical,c=l?go:fo,d=o.lineBox(),u=d[c+1],h=d[c+2],p=e[c],f=o.getMajorTickPositions(),g=lr;if(u>p||p>h)return null;for(i=0;i<f.length;i++)if(t=f[i],n=f[i+1],Gn(n)||(n=s?u:h),s&&(t=n,n=f[i]),a.justified){if(p===n){r=dn.max(0,l?f.length-i-1:i+1);break}dn.abs(p-t)<g&&(g=p-t,r=i)}else if(p>=t&&n>=p){r=i;break}return r},getCategory:function(e){var t=this.pointCategoryIndex(e);return null===t?null:this.options.categories[t]},categoryIndex:function(e){return H(e,this.options.categories)},translateRange:function(e){var t=this,n=t.options,i=t.lineBox(),r=n.vertical?i.height():i.width(),o=n.categories.length,a=r/o,s=Kn(e/a,Li);return{min:s,max:o+s}},scaleRange:function(e){var t=this,n=t.options,i=n.categories.length,r=e*i;return{min:-r,max:i+r}},labelsCount:function(){return this.options.categories.length},createAxisLabel:function(e,t){var n=this,i=n.options,r=i.dataItems?i.dataItems[e]:null,o=ni(i.categories[e],"");return new Cn(o,e,r,t)},shouldRenderNote:function(e){var t=this.options.categories;return t.length&&t.length>e&&e>=0}}),J=Cn.extend({formatValue:function(e,t){return pn.toString(e,t.format,t.culture)}}),K=Z.extend({init:function(e){var t,n,i=this;e=e||{},e=xn({roundToBaseUnit:!0},e,{categories:v(e.categories),min:v(e.min),max:v(e.max)}),e.categories&&e.categories.length>0?(t=(e.baseUnit||"").toLowerCase(),n=t!==si&&!Yn(t,_o),n&&(e.baseUnit=i.defaultBaseUnit(e)),(t===si||e.baseUnitStep===ai)&&i.autoBaseUnit(e),i.groupCategories(e)):e.baseUnit=e.baseUnit||Mi,Z.fn.init.call(i,e)},options:{type:Bi,labels:{dateFormats:Co},autoBaseUnitSteps:{seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10},shouldRenderNote:function(e){var t=this,n=t.range(),i=t.options.categories||[];return Wn(e,n.min)>=0&&Wn(e,n.max)<=0&&i.length},parseNoteValue:function(e){return v(e)},translateRange:function(e){var t,n,i=this,r=i.options,o=r.baseUnit,a=r.weekStartDay,s=i.lineBox(),l=r.vertical?s.height():s.width(),c=i.range(),d=l/(c.max-c.min),u=Kn(e/d,Li);return c.min&&c.max&&(t=C(r.min||c.min,u),n=C(r.max||c.max,u),c={min:y(t,0,o,a),max:y(n,0,o,a)}),c},scaleRange:function(e){var t,n=this,i=dn.abs(e),r=n.range(),o=r.min,a=r.max;if(r.min&&r.max){for(;i--;)r=k(o,a),t=dn.round(.1*r),0>e?(o=C(o,t),a=C(a,-t)):(o=C(o,-t),a=C(a,t));r={min:o,max:a}}return r},defaultBaseUnit:function(e){var t,n,i,r,o,a=e.categories,s=Gn(a)?a.length:0,l=lr;for(t=0;s>t;t++)n=a[t],n&&r&&(i=k(n,r),i>0&&(l=dn.min(l,i),o=l>=Kr?mo:l>=Jr-3*$r?ur:l>=Zr?ho:l>=$r?Mi:l>=Xr?Zi:l>=Yr?dr:Or)),r=n;return o||Mi},range:function(e){e=e||this.options;var t=e.categories,n=e.baseUnit===si,i=n?_o[0]:e.baseUnit,r=e.baseUnitStep||1,a=x(e.min),s=x(e.max),l=o(t),c=x(l.min),d=x(l.max);return e.roundToBaseUnit?{min:y(a||c,0,i,e.weekStartDay),max:y(s||d,r,i,e.weekStartDay)}:{min:v(a||c),max:v(s||d)}},autoBaseUnit:function(e){for(var t,n,i,r=this,o=r.range(xn({},e,{baseUnitStep:1})),a=e.baseUnit===si,s=0,l=a?_o[s++]:e.baseUnit,c=o.max-o.min,d=c/eo[l],u=d,h=e.maxDateGroups||r.options.maxDateGroups,p=xn({},r.options.autoBaseUnitSteps,e.autoBaseUnitSteps);!n||d>h;)if(t=t||p[l].slice(0),i=t.shift())n=i,d=u/n;else{if(l===$n(_o)){n=dn.ceil(u/h);break}if(!a){d>h&&(n=dn.ceil(u/h));break}l=_o[s++]||$n(_o),u=c/eo[l],t=null}e.baseUnitStep=n,e.baseUnit=l},getMajorTickPositions:function(){var e,t,n,i,r,o,a,s,l,c,d,u,h,p,f,g,m,v=this,x=v.options,y=x.categories,w=[];if(x.roundToBaseUnit||0===y.length)w=Z.fn.getMajorTickPositions.call(v);else{for(n=x.vertical,i=x.reverse,r=v.lineBox(),o=n?r.height():r.width(),a=y[0].getTime(),s=v.range(v.options),l=s.max-s.min,c=o/l,d=y.length,u=(n?-1:1)*(i?-1:1),h=1===u?1:2,p=1===u?2:1,f=r[(n?go:fo)+h],g=r[(n?go:fo)+p],m=f,e=0;d>e;e++)t=y[e]-a,m=f+t*c*u,w.push(Kn(m,Si));$n(w)!==g&&w.push(g)}return w},groupCategories:function(e){var t,n,i=this,o=e.categories,a=v(r(o)),s=e.baseUnit,l=e.baseUnitStep||1,c=i.range(e),d=c.max,u=[];for(t=c.min;d>t&&(u.push(t),n=y(t,l,s,e.weekStartDay),!(n>a)||e.max);t=n);e.roundToBaseUnit||D($n(u),d)||u.push(d),e.srcCategories=o,e.categories=u},createAxisLabel:function(e,t){var n,i=this.options,r=i.dataItems?i.dataItems[e]:null,o=i.categories[e],a=i.baseUnit,s=!0,l=t.dateFormats[a];return i.justified&&(n=b(o,a,i.weekStartDay),s=D(n,o)),t=xn({format:l},t,{visible:s}),new J(o,e,r,t)},categoryIndex:function(e,t){var n,i,r,o=this,a=o.options,s=a.categories,l=s.length-1;return e=v(e),t=t||o.range(),i=a.roundToBaseUnit&&D(t.max,e),!e||e>t.max||e<t.min||i?-1:(r=E(e,s),r!==l||a.justified||a.roundToBaseUnit||(n=y(e,0,a.baseUnit,a.startOfWeek),D(n,e)||r--),r)},getSlot:function(e,t){var n=this;return typeof e===kr&&(e=n.categoryIndex(e)),typeof t===kr&&(t=n.categoryIndex(t)),Z.fn.getSlot.call(n,e,t)}}),et=kn.extend({init:function(e,t,n){var i=this;n=n||{},xn(n,{min:v(n.min),max:v(n.max),axisCrossingValue:v(n.axisCrossingValues||n.axisCrossingValue)}),n=i.applyDefaults(v(e),v(t),n),kn.fn.init.call(i,n)},options:{type:Bi,labels:{dateFormats:Co}},applyDefaults:function(e,n,i){var r=this,o=i.min||e,a=i.max||n,s=i.baseUnit||r.timeUnits(a-o),l=eo[s],c=b(x(o)-1,s)||v(a),d=_(x(a)+1,s),u=i.majorUnit?i.majorUnit:t,h=u||_n.ceil(_n.autoMajorUnit(c.getTime(),d.getTime()),l)/l,p=A(c,d,s),f=_n.ceil(p,h),g=f-p,m=dn.floor(g/2),w=g-m;return i.baseUnit||delete i.baseUnit,xn({baseUnit:s,min:y(c,-m,s),max:y(d,w,s),minorUnit:h/5},i,{majorUnit:h})},range:function(){var e=this.options;return{min:e.min,max:e.max}},getDivisions:function(e){var t=this.options;return dn.floor(A(t.min,t.max,t.baseUnit)/e+1)},getTickPositions:function(e){var t,n=this,i=n.options,r=i.vertical,o=i.reverse,a=n.lineBox(),s=r?a.height():a.width(),l=A(i.min,i.max,i.baseUnit),c=s/l,d=e*c,u=n.getDivisions(e),h=(r?-1:1)*(o?-1:1),p=1===h?1:2,f=a[(r?go:fo)+p],g=[];for(t=0;u>t;t++)g.push(Kn(f,Si)),f+=d*h;return g},getMajorTickPositions:function(){var e=this;return e.getTickPositions(e.options.majorUnit)},getMinorTickPositions:function(){var e=this;return e.getTickPositions(e.options.minorUnit)},getSlot:function(e,t){return In.fn.getSlot.call(this,v(e),v(t))},getValue:function(e){var t=In.fn.getValue.call(this,e);return null!==t?v(t):null},labelsCount:function(){return this.getDivisions(this.options.majorUnit)},createAxisLabel:function(e,t){var n=this.options,i=e*n.majorUnit,r=y(n.min,i,n.baseUnit),o=t.dateFormats[n.baseUnit];return t.format=t.format||o,new J(r,e,null,t)},timeUnits:function(e){var t=Zi;return e>=Kr?t=mo:e>=Jr?t=ur:e>=Zr?t=ho:e>=$r&&(t=Mi),t},translateRange:function(e){var t=this,n=t.options,i=n.baseUnit,r=n.weekStartDay,o=t.lineBox(),a=n.vertical?o.height():o.width(),s=t.range(),l=a/(s.max-s.min),c=Kn(e/l,Li),d=C(n.min,c),u=C(n.max,c);return{min:y(d,0,i,r),max:y(u,0,i,r)}},scaleRange:function(e){for(var t,n,i=this,r=i.options,o=dn.abs(e),a=r.min,s=r.max;o--;)t=k(a,s),n=dn.round(.1*t),0>e?(a=C(a,n),s=C(s,-n)):(a=C(a,-n),s=C(s,n));return{min:a,max:s}},shouldRenderNote:function(e){var t=this.range();return Wn(e,t.min)>=0&&Wn(e,t.max)<=0}}),tt=Pn.extend({options:{vertical:!1,gap:0,spacing:0},reflow:function(e){var t,n,i=this,r=i.options,o=r.vertical,a=o?go:fo,s=i.children,l=r.gap,c=r.spacing,d=s.length,u=d+l+c*(d-1),h=(o?e.height():e.width())/u,p=e[a+1]+h*(l/2);for(n=0;d>n;n++)t=(s[n].box||e).clone(),t[a+1]=p,t[a+2]=p+h,s[n].reflow(t),d-1>n&&(p+=h*c),p+=h}}),nt=Pn.extend({options:{vertical:!0,isReversed:!1},reflow:function(e){var t,n,i,r,o=this,a=o.options,s=a.vertical,l=s?fo:go,c=s?go:fo,d=e[c+2],u=o.children,h=o.box=new Sn,p=u.length;for(t=a.isReversed?s?fi:nr:s?to:Mr,n=0;p>n;n++)i=u[n],r=i.box.clone(),r.snapTo(e,l),i.options&&(i.options.stackBase=d),0===n?h=o.box=r.clone():r.alignTo(u[n-1].box,t),i.reflow(r),h.wrap(r)}}),it={click:function(t,n){var i=this;t.trigger(Hr,{value:i.value,category:i.category,series:i.series,dataItem:i.dataItem,element:e(n.target)})},hover:function(t,n){var i=this;t.trigger(Nr,{value:i.value,category:i.category,series:i.series,dataItem:i.dataItem,element:e(n.target)})}},rt=Pn.extend({init:function(e,t){var n=this;Pn.fn.init.call(n,t),n.value=e,n.options.id=ti(),n.enableDiscovery()},options:{color:po,border:{width:1},vertical:!0,overlay:{gradient:$i},aboveAxis:!0,labels:{visible:!1},animation:{type:ci},opacity:1,notes:{label:{}}},render:function(){var e,t=this,n=t.value,i=t.options,r=i.labels,o=null!==n?n:"";t._rendered||(t._rendered=!0,r.visible&&(r.template?(e=bn(r.template),o=e({dataItem:t.dataItem,category:t.category,value:t.value,series:t.series})):r.format&&(o=Un(r.format,o)),t.label=new Y(o,xn({vertical:i.vertical,id:ti()},i.labels)),t.append(t.label)),t.createNote(),t.errorBar&&t.append(t.errorBar))},createNote:function(){var e,t=this,n=t.options.notes,i=n.label.text;n.visible&&Gn(i)&&null!==i&&(n.label.template?(e=bn(n.label.template),i=e({dataItem:t.dataItem,category:t.category,value:t.value,series:t.series})):n.label.format&&(i=Un(n.label.format,i)),t.note=new En(xn({},n,{label:{text:i}})),t.append(t.note))},reflow:function(e){var t,n,i,r;if(this.render(),t=this,n=t.options,i=t.label,t.box=e,i&&(i.options.aboveAxis=n.aboveAxis,i.reflow(e)),t.note&&t.note.reflow(e),t.errorBars)for(r=0;r<t.errorBars.length;r++)t.errorBars[r].reflow(e)},getViewElements:function(e){var t=this,n=t.options,i=n.vertical,r=n.border.width>0?{stroke:t.getBorderColor(),strokeWidth:n.border.width,strokeOpacity:n.border.opacity,dashType:n.border.dashType}:{},o=t.box,a=xn({id:n.id,fill:n.color,fillOpacity:n.opacity,strokeOpacity:n.opacity,vertical:n.vertical,aboveAxis:n.aboveAxis,stackBase:n.stackBase,animation:n.animation,data:{modelId:n.modelId}},r),s=[];
return o.width()>0&&o.height()>0&&(n.overlay&&(a.overlay=xn({rotation:i?0:90},n.overlay)),s.push(e.createRect(o,a))),jn(s,Pn.fn.getViewElements.call(t,e)),s},highlightOverlay:function(e,t){var n=this,i=n.box;return t=xn({data:{modelId:n.options.modelId}},t),t.id=null,e.createRect(i,t)},getBorderColor:function(){var e=this,t=e.options,n=t.color,i=t.border,r=i.color,o=i._brightness||di;return Gn(r)||(r=new Dn(n).brightness(o).toHex()),r},tooltipAnchor:function(e,t){var n,i,r=this,o=r.options,a=r.box,s=o.vertical,l=o.aboveAxis;return s?(n=a.x2+io,i=l?a.y1:a.y2-t):o.isStacked?(n=l?a.x2-e:a.x1,i=a.y1-t-io):(n=l?a.x2+io:a.x1-e-io,i=a.y1),new Ln(n,i)},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}}),xn(rt.fn,it),ot=function(e,t,n){var i=this;i.errorValue=e,i.initGlobalRanges(e,t,n)},ot.prototype=ot.fn={percentRegex:/percent(?:\w*)\((\d+)\)/,standardDeviationRegex:RegExp("^"+Wr+"(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),initGlobalRanges:function(e,t,n){var i,r,o,a,s,l=this,c=t.data,d=l.standardDeviationRegex.exec(e);d?(l.valueGetter=l.createValueGetter(t,n),i=l.getAverage(c),r=l.getStandardDeviation(c,i,!1),o=d[1]?parseFloat(d[1]):1,a={low:i-r*o,high:i+r*o},l.globalRange=function(){return a}):e.indexOf&&e.indexOf(Gr)>=0&&(l.valueGetter=l.createValueGetter(t,n),s=l.getStandardError(c),l.globalRange=function(e){return{low:e-s,high:e+s}})},createValueGetter:function(e,t){var n,i,r,o=e.data,a=Q.current,s=a.valueFields(e),l=Gn(o[0])?o[0]:{};return ln(l)?(n=t?H(t,s):0,r=yn("["+n+"]")):I(l)?r=yn():typeof l===kr&&(i=a.sourceFields(e,s),r=yn(i[H(t,s)])),r},getErrorRange:function(e){var t,n,i,r,o=this,a=o.errorValue;if(Gn(a)){if(o.globalRange)return o.globalRange(e);if(ln(a))t=e-a[0],n=e+a[1];else if(I(i=parseFloat(a)))t=e-i,n=e+i;else{if(!(i=o.percentRegex.exec(a)))throw Error("Invalid ErrorBar value: "+a);r=e*(parseFloat(i[1])/100),t=e-dn.abs(r),n=e+dn.abs(r)}return{low:t,high:n}}},getStandardError:function(e){return this.getStandardDeviation(e,this.getAverage(e),!0)/dn.sqrt(e.length)},getStandardDeviation:function(e,t,n){var i,r=0,o=e.length,a=n?o-1:o;for(i=0;o>i;i++)r+=dn.pow(this.valueGetter(e[i])-t,2);return dn.sqrt(r/a)},getAverage:function(e){var t,n=0,i=e.length;for(t=0;i>t;t++)n+=this.valueGetter(e[t]);return n/i}},at=Pn.extend({init:function(e,t){var n=this;Pn.fn.init.call(n,t),n.plotArea=e,n.categoryAxis=e.seriesCategoryAxis(t.series[0]),n.valueAxisRanges={},n.points=[],n.categoryPoints=[],n.seriesPoints=[],n.render()},options:{series:[],invertAxes:!1,isStacked:!1},render:function(){var e=this;e.traverseDataPoints(hn(e.addValue,e))},addErrorBar:function(e,t,n){var i,r=this,o=e.value,a=e.series,s=e.seriesIx,l=e.options.errorBars,c=t.fields[ji],d=t.fields[Ui];I(c)&&I(d)?i={low:c,high:d}:l&&Gn(l.value)&&(r.seriesErrorRanges=r.seriesErrorRanges||[],r.seriesErrorRanges[s]=r.seriesErrorRanges[s]||new ot(l.value,a,so),i=r.seriesErrorRanges[s].getErrorRange(o)),i&&(e.low=i.low,e.high=i.high,r.addPointErrorBar(e,n))},addPointErrorBar:function(e,t){var n,i,r=this,o=e.series,a=e.low,s=e.high,l=!r.options.invertAxes,c=e.options.errorBars;r.options.isStacked?(i=r.stackedErrorRange(e,t),a=i.low,s=i.high):(r.updateRange({value:a},t,o),r.updateRange({value:s},t,o)),n=new ht(a,s,l,r,o,c),e.errorBars=[n],e.append(n)},addValue:function(e,t,n,i,r){var o,a=this,s=a.categoryPoints[n],l=a.seriesPoints[r];s||(a.categoryPoints[n]=s=[]),l||(a.seriesPoints[r]=l=[]),a.updateRange(e.valueFields,n,i),o=a.createPoint(e,t,n,i,r),o&&(o.category=t,o.series=i,o.seriesIx=r,o.owner=a,o.dataItem=i.data[n],a.addErrorBar(o,e,n)),a.points.push(o),l.push(o),s.push(o)},evalPointOptions:function(e,t,n,i,r){R(e,{value:t,series:r,dataItem:r.data[i],category:n,index:i},{defaults:r._defaults,excluded:["data","aggregate"]})},updateRange:function(e,t,n){var i=this,r=n.axis,o=e.value,a=i.valueAxisRanges[r];isFinite(o)&&null!==o&&(a=i.valueAxisRanges[r]=a||{min:lr,max:cr},a.min=dn.min(a.min,o),a.max=dn.max(a.max,o))},seriesValueAxis:function(e){var t=this.plotArea,n=e.axis,i=n?t.namedValueAxes[n]:t.valueAxis;if(!i)throw Error("Unable to locate value axis with name "+n);return i},reflow:function(e){var t,n,i,r,o=this,a=0,s=o.categorySlots=[],l=o.points,c=o.categoryAxis;o.traverseDataPoints(function(e,d,u,h){t=o.pointValue(e),n=o.seriesValueAxis(h),i=o.categoryAxisCrossingValue(n),r=l[a++],r&&r.plotValue&&(t=r.plotValue);var p=o.categorySlot(c,u,n),f=o.valueSlot(n,t,i),g=o.pointSlot(p,f),m=n.options.reverse?i>t:t>=i;r&&(r.options.aboveAxis=m,o.reflowPoint(r,g)),s[u]||(s[u]=p)}),o.reflowCategories(s),o.box=e},categoryAxisCrossingValue:function(e){var t=this.categoryAxis,n=e.options,i=[].concat(n.axisCrossingValues||n.axisCrossingValue);return i[t.axisIndex||0]||0},reflowPoint:function(e,t){e.reflow(t)},reflowCategories:function(){},pointSlot:function(e,t){var n=this,i=n.options,r=i.invertAxes,o=r?t:e,a=r?e:t;return new Sn(o.x1,a.y1,o.x2,a.y2)},valueSlot:function(e,t,n){return e.getSlot(t,n)},categorySlot:function(e,t){return e.getSlot(t)},traverseDataPoints:function(e){var t,n,i,r,o,a=this,s=a.options,l=s.series,c=a.categoryAxis.options.categories||[],d=p(l),u=l.length;for(t=0;d>t;t++)for(n=0;u>n;n++)o=l[n],r=c[t],i=Q.current.bindPoint(o,t),e(i,r,t,o,n)},formatPointValue:function(e,t){return Un(t,e.value)},pointValue:function(e){return e.valueFields.value}}),st=at.extend({init:function(e,t){var n=this;n._groupTotals={},n._groups=[],at.fn.init.call(n,e,t)},render:function(){var e=this;at.fn.render.apply(e),e.computeAxisRanges()},pointType:function(){return rt},clusterType:function(){return tt},stackType:function(){return nt},createPoint:function(e,n,i,r){var o,a,s,l,c,d,u=this,h=e.valueFields.value,p=u.options,f=u.children,g=u.options.isStacked,m=xn({},r.labels),v=u.pointType(),x=u.clusterType(),y=u.stackType();return g&&m.position==Ar&&(m.position=er),a=xn({vertical:!p.invertAxes,overlay:r.overlay,labels:m,isStacked:g},r,{color:e.fields.color||t,notes:{label:{text:e.fields.noteText}}}),0>h&&a.negativeColor&&(a.color=a.negativeColor),u.evalPointOptions(a,h,n,i,r),o=new v(h,a),s=f[i],s||(s=new x({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing}),u.append(s)),g?(d=u.getStackWrap(r,s),0===d.children.length?(l=new y({vertical:!p.invertAxes}),c=new y({vertical:!p.invertAxes,isReversed:!0}),d.append(l,c)):(l=d.children[0],c=d.children[1]),h>0?l.append(o):c.append(o)):s.append(o),o},getStackWrap:function(e,t){var n,i,r=t.children,o=e.stack,a=r.length;if(typeof o===qr){for(i=0;a>i;i++)if(r[i]._stackGroup===o){n=r[i];break}}else n=r[0];return n||(n=new Pn,n._stackGroup=o,t.append(n)),n},updateRange:function(e,t,n){var i,r=this,o=e.value,a=r.options.isStacked;Gn(o)&&(a?(i=r.groupTotals(n.stack),h(o>0?i.positive:i.negative,t,o)):at.fn.updateRange.apply(r,arguments))},computeAxisRanges:function(){var e,t,n=this,o=n.options.isStacked;o&&(e=n.options.series[0].axis,t=n.categoryTotals(),n.errorTotals&&(t.negative=t.negative.concat(n.errorTotals.negative),t.positive=t.positive.concat(n.errorTotals.positive)),n.valueAxisRanges[e]={min:i(t.negative.concat(0)),max:r(t.positive.concat(0))})},stackedErrorRange:function(e,t){var n=this,i=n.groupTotals(!0),r=e.value,o=(r>0?i.positive[t]:i.negative[t])-r,a=e.low+o,s=e.high+o;return n.errorTotals=n.errorTotals||{positive:[],negative:[]},0>a&&(n.errorTotals.negative[t]=dn.min(n.errorTotals.negative[t]||0,a)),s>0&&(n.errorTotals.positive[t]=dn.max(n.errorTotals.positive[t]||0,s)),{low:a,high:s}},seriesValueAxis:function(e){var t=this,n=t.options;return at.fn.seriesValueAxis.call(t,n.isStacked?t.options.series[0]:e)},valueSlot:function(e,t,n){return e.getSlot(t,this.options.isStacked?0:n)},categorySlot:function(e,t,n){var i,r,o=this,a=o.options,s=e.getSlot(t);return a.isStacked&&(r=n.getSlot(0,0),i=a.invertAxes?fo:go,s[i+1]=s[i+2]=r[i+1]),s},reflow:function(e){var t=this;t.setStacksDirection(),at.fn.reflow.call(t,e)},setStacksDirection:function(){var e,t,n,i,r,o,a,s,l,c=this,d=c.options,u=d.series,h=p(u),f=c.children,g=u.length;for(t=0;g>t;t++)for(n=u[t],i=c.seriesValueAxis(n),e=0;h>e;e++)r=f[e],o=c.getStackWrap(n,r),a=o.children,s=a[0],l=a[1],s&&l&&(s.options.isReversed=i.options.reverse,l.options.isReversed=!i.options.reverse)},reflowCategories:function(e){var t,n=this,i=n.children,r=i.length;for(t=0;r>t;t++)i[t].reflow(e[t])},groupTotals:function(e){var t,n,i=this;return t=typeof e===qr?e:i._groups[0]||"default",n=i._groupTotals[t],n||(n=i._groupTotals[t]={positive:[],negative:[]},i._groups.push(t)),n},categoryTotals:function(){var e,t,n,i=this,r=i._groups,o=i._groupTotals,a={positive:[],negative:[]},s=r.length;for(n=0;s>n;n++)e=r[n],t=o[e],jn(a.positive,t.positive),jn(a.negative,t.negative);return a}}),lt=at.extend({init:function(e,t){var n=this;n.wrapData(t),at.fn.init.call(n,e,t)},wrapData:function(e){var t,n,i,r=e.series;for(t=0;t<r.length;t++)i=r[t],n=i.data,n&&!ln(n[0])&&typeof n[0]!=kr&&(i.data=[n])},reflowCategories:function(e){var t,n=this,i=n.children,r=i.length;for(t=0;r>t;t++)i[t].reflow(e[t])},createPoint:function(e,t,n,i){var r,o,a,s=this,l=e.valueFields,c=s.options,d=s.children;return o=xn({},{vertical:!c.invertAxes,overlay:i.overlay,categoryIx:n,invertAxes:c.invertAxes},i,{notes:{label:{text:e.fields.noteText}}}),s.evalPointOptions(o,l,t,n,i),r=new ct(l,o),a=d[n],a||(a=new tt({vertical:c.invertAxes,gap:c.gap,spacing:c.spacing}),s.append(a)),a.append(r),r},updateRange:function(e,t,n){var i=this,r=n.axis,o=e.current,a=e.target,s=i.valueAxisRanges[r];Gn(o)&&!isNaN(o)&&Gn(a&&!isNaN(a))&&(s=i.valueAxisRanges[r]=s||{min:lr,max:cr},s.min=dn.min.apply(dn,[s.min,o,a]),s.max=dn.max.apply(dn,[s.max,o,a]))},formatPointValue:function(e,t){return Un(t,e.value.current,e.value.target)},pointValue:function(e){return e.valueFields.current}}),ct=Pn.extend({init:function(e,t){var n=this;Pn.fn.init.call(n,t),n.value=e,n.options.id=ti(),n.enableDiscovery(),n.render()},options:{color:po,border:{width:1},vertical:!1,animation:{type:ci},opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}</br>Target: {1}"}},render:function(){var e=this,t=e.options;Gn(e.value.target)&&(e.target=new dt({id:e.options.id,type:t.target.shape,background:t.target.color||t.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:to,align:Mr}),e.append(e.target)),e.createNote()},createNote:function(){var e,t=this,n=t.options.notes,i=n.label.text;n.visible&&Gn(i)&&null!==i&&(n.label.template?(e=bn(n.label.template),i=e({dataItem:t.dataItem,category:t.category,value:t.value,series:t.series})):n.label.format&&(i=Un(n.label.format,i)),t.note=new En(xn({},n,{label:{text:i}})),t.append(t.note))},reflow:function(e){var t=this,n=t.options,i=t.owner,r=t.target,o=n.invertAxes,a=i.seriesValueAxis(t.options),s=i.categorySlot(i.categoryAxis,n.categoryIx,a),l=i.valueSlot(a,t.value.target,t.value.target),c=o?l:s,d=o?s:l,u=new Sn(c.x1,d.y1,c.x2,d.y2);r&&(r.options.height=o?u.height():n.target.line.width,r.options.width=o?n.target.line.width:u.width(),r.reflow(u)),t.note&&t.note.reflow(e),t.box=e},getViewElements:function(e){var t=this,n=t.options,i=n.vertical,r=n.border.width>0?{stroke:n.border.color||n.color,strokeWidth:n.border.width,dashType:n.border.dashType}:{},o=t.box,a=xn({id:n.id,fill:n.color,fillOpacity:n.opacity,strokeOpacity:n.opacity,vertical:n.vertical,aboveAxis:n.aboveAxis,animation:n.animation,data:{modelId:n.modelId}},r),s=[];return o.width()>0&&o.height()>0&&(n.overlay&&(a.overlay=xn({rotation:i?0:90},n.overlay)),s.push(e.createRect(o,a))),jn(s,Pn.fn.getViewElements.call(t,e)),s},tooltipAnchor:function(e,t){var n,i,r=this,o=r.options,a=r.box,s=o.vertical,l=o.aboveAxis;return s?(n=a.x2+io,i=l?a.y1:a.y2-t):o.isStacked?(n=l?a.x2-e:a.x1,i=a.y1-t-io):(n=l?a.x2+io:a.x1-e-io,i=a.y1),new Ln(n,i)},highlightOverlay:function(e,t){var n=this,i=n.box;return t=xn({data:{modelId:n.options.modelId}},t),t.id=null,e.createRect(i,t)},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}}),xn(ct.fn,it),dt=Rn.extend(),xn(dt.fn,it),ut=Pn.extend({init:function(e,t,n,i,r,o){var a=this;a.low=e,a.high=t,a.isVertical=n,a.chart=i,a.series=r,Pn.fn.init.call(a,o)},getAxis:function(){},reflow:function(e){var t,n=this,i=n.options.endCaps,r=n.isVertical,o=n.getAxis(),a=o.getSlot(n.low,n.high),s=e.center(),l=n.getCapsWidth(e,r),c=r?s.x:s.y,d=c-l,u=c+l;r?(t=[Ln(s.x,a.y1),Ln(s.x,a.y2)],i&&t.push(Ln(d,a.y1),Ln(u,a.y1),Ln(d,a.y2),Ln(u,a.y2))):(t=[Ln(a.x1,s.y),Ln(a.x2,s.y)],i&&t.push(Ln(a.x1,d),Ln(a.x1,u),Ln(a.x2,d),Ln(a.x2,u))),n.linePoints=t},getCapsWidth:function(e,t){var n=t?e.width():e.height(),i=dn.min(dn.floor(n/2),Oi)||Oi;return i},getViewElements:function(e){var t,n=this,i=n.options,r=i.line,o={stroke:i.color||r.color,strokeWidth:r.width,zIndex:r.zIndex,align:!1,dashType:r.dashType},a=n.linePoints,s=[];for(t=0;t<a.length;t+=2)s.push(e.createLine(a[t].x,a[t].y,a[t+1].x,a[t+1].y,o));return s},options:{animation:{type:Yi,delay:Ji},endCaps:!0,line:{width:1,zIndex:1}}}),ht=ut.extend({getAxis:function(){var e=this,t=e.chart,n=e.series,i=t.seriesValueAxis(n);return i}}),pt=ut.extend({getAxis:function(){var e=this,t=e.chart,n=e.series,i=t.seriesAxes(n),r=e.isVertical?i.y:i.x;return r}}),ft=Pn.extend({init:function(e,t){var n,i=this;i.value=e,Pn.fn.init.call(i,t),t=i.options,t.id=ti(),n=t.markers.border,Gn(n.color)||(n.color=t.color),i.enableDiscovery()},options:{aboveAxis:!0,vertical:!0,markers:{visible:!0,background:po,size:ar,type:_i,border:{width:2},opacity:1},labels:{visible:!1,position:ri,margin:Qn(3),padding:Qn(4),animation:{type:Yi,delay:Ji}},notes:{label:{}},highlight:{markers:{border:{}}}},render:function(){var e,t=this,n=t.options,i=n.markers,r=n.labels,o=i.background,a=xn({},i.border),s=t.value;t._rendered||(t._rendered=!0,Gn(a.color)||(a.color=new Dn(o).brightness(di).toHex()),t.marker=new Rn({id:t.options.id,visible:i.visible&&i.size,type:i.type,width:i.size,height:i.size,rotation:i.rotation,background:o,border:a,opacity:i.opacity,zIndex:i.zIndex,animation:i.animation}),t.append(t.marker),r.visible&&(r.template?(e=bn(r.template),s=e({dataItem:t.dataItem,category:t.category,value:t.value,series:t.series})):r.format&&(s=t.formatValue(r.format)),t.label=new Fn(s,xn({id:ti(),align:wi,vAlign:wi,margin:{left:5,right:5}},r)),t.append(t.label)),t.createNote(),t.errorBar&&t.append(t.errorBar))},createNote:function(){var e,t=this,n=t.options.notes,i=n.label.text;n.visible&&Gn(i)&&null!==i&&(n.label.template?(e=bn(n.label.template),i=e({dataItem:t.dataItem,category:t.category,value:t.value,series:t.series})):n.label.format&&(i=Un(n.label.format,i)),t.note=new En(xn({},n,{label:{text:i}})),t.append(t.note))},markerBox:function(){return this.marker.box},reflow:function(e){var t,n,i,r,o=this,a=o.options,s=a.vertical,l=a.aboveAxis;if(o.render(),o.box=e,t=e.clone(),s?l?t.y1-=t.height():t.y2+=t.height():l?t.x1+=t.width():t.x2-=t.width(),o.marker.reflow(t),o.reflowLabel(t),o.errorBars)for(r=0;r<o.errorBars.length;r++)o.errorBars[r].reflow(t);o.note&&(o.marker.options.visible?n=o.marker.box:(i=o.marker.box.center(),n=Sn(i.x,i.y,i.x,i.y)),o.note.reflow(n))},reflowLabel:function(e){var t=this,n=t.options,i=t.marker,r=t.label,o=n.labels.position;r&&(o=o===ri?to:o,o=o===ui?fi:o,r.reflow(e),r.box.alignTo(i.box,o),r.reflow(r.box))},highlightOverlay:function(e,t){var n=this,i=n.options.highlight,r=i.markers,o=n.marker,a=o.options.border.color;return t=xn({data:{modelId:n.options.modelId}},t,{fill:r.color||a,stroke:r.border.color,strokeWidth:r.border.width,strokeOpacity:r.border.opacity||0,fillOpacity:r.opacity||1,visible:r.visible,id:null}),o.getViewElements(e,t)[0]},tooltipAnchor:function(e,t){var n=this,i=n.marker.box,r=n.options.aboveAxis;return Ln(i.x2+io,r?i.y1-t:i.y2)},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}}),xn(ft.fn,it),gt=ft.extend({init:function(e,t){var n=this;ft.fn.init.call(n,e,t),n.category=e.category},options:{labels:{position:wi},highlight:{opacity:1,border:{width:1,opacity:1}}},highlightOverlay:function(e){var t=this,n=t.options,i=n.highlight,r=i.border.width,o=n.markers,a=t.box.center(),s=o.size/2-r/2,l=i.border.color||new Dn(o.background).brightness(di).toHex();return e.createCircle(a,s,{id:null,data:{modelId:t.options.modelId},stroke:l,strokeWidth:r,strokeOpacity:i.border.opacity})},toggleHighlight:function(e){var n,i=this,r=i.options.highlight.opacity;i.highlighted=!i.highlighted,n=i.marker.getViewElements(e,{fillOpacity:i.highlighted?r:t})[0],n.refresh(qn(this.options.id))}}),mt=Pn.extend({init:function(e,t,n){var i=this;Pn.fn.init.call(i),i.linePoints=e,i.series=t,i.seriesIx=n,i.options.id=ti(),i.enableDiscovery()},options:{closed:!1},points:function(e){var t,n,i=this,r=i.linePoints.concat(e||[]),o=[],a=r.length;for(t=0;a>t;t++)n=r[t].markerBox().center(),o.push(Ln(n.x,n.y));return o},getViewElements:function(e){var t=this,n=t.options,i=t.series,r=i._defaults,o=i.color;return Pn.fn.getViewElements.call(t,e),wn(o)&&r&&(o=r.color),[e.createPolyline(t.points(),n.closed,{id:n.id,stroke:o,strokeWidth:i.width,strokeOpacity:i.opacity,fill:"",dashType:i.dashType,data:{modelId:n.modelId},zIndex:-1})]},aliasFor:function(e,t){var n=this,i=n.seriesIx;return n.parent.getNearestPoint(t.x,t.y,i)}}),vt={renderSegments:function(){var e,t,n,i,r,o,a,s=this,l=s.options,c=l.series,d=s.seriesPoints,u=d.length,h=[];for(t=0;u>t;t++){for(e=c[t],n=s.sortPoints(d[t]),a=n.length,i=[],o=0;a>o;o++)r=n[o],r?i.push(r):s.seriesMissingValues(e)!==tr&&(i.length>1&&h.push(s.createSegment(i,e,t,$n(h))),i=[]);i.length>1&&h.push(s.createSegment(i,e,t,$n(h)))}s._segments=h,s.append.apply(s,h)},sortPoints:function(e){return e},seriesMissingValues:function(e){var t=e.missingValues,n=!t&&this.options.isStacked;return n?vo:t||tr},getNearestPoint:function(e,t,n){var i,r,o,a,s,l=this,c=l.options.invertAxes,d=c?go:fo,u=c?t:e,h=l.seriesPoints[n],p=lr,f=h.length;for(s=0;f>s;s++)i=h[s],i&&Gn(i.value)&&null!==i.value&&(r=i.box,o=dn.abs(r.center()[d]-u),p>o&&(a=i,p=o));return a}},xt=at.extend({init:function(e,t){var n=this;n._stackAxisRange={min:lr,max:cr},n._categoryTotals=[],n.enableDiscovery(),at.fn.init.call(n,e,t)},render:function(){var e=this;at.fn.render.apply(e),e.computeAxisRanges(),e.renderSegments()},createPoint:function(e,t,n,i){var r,o,a,s=this,l=e.valueFields.value,c=s.options,d=c.isStacked,u=s.categoryPoints[n],h=s.seriesMissingValues(i),p=0,f=e.fields;if(!Gn(l)||null===l){if(h!==vo)return null;l=0}return a=xn({vertical:!c.invertAxes},i,{color:f.color,notes:{label:{text:e.fields.noteText}}}),s.evalPointOptions(a,l,t,n,i),o=new ft(l,a),d&&(r=B(u),r&&(p=r.plotValue),o.plotValue=l+p),s.append(o),o},updateRange:function(e,t){var n,i=this,r=i.options.isStacked,a=e.value,s=i._stackAxisRange,l=i._categoryTotals;Gn(a)&&(r?(h(l,t,a),n=o(l),s.min=dn.min(s.min,n.min),s.max=dn.max(s.max,n.max)):at.fn.updateRange.apply(i,arguments))},computeAxisRanges:function(){var e,t=this,n=t.options.isStacked;n&&(e=t.options.series[0].axis,t.valueAxisRanges[e]=t._stackAxisRange)},createSegment:function(e,t,n){var i,r=t.style;return i=r===jr?yt:r===Ur?wt:mt,new i(e,t,n)},stackedErrorRange:function(e){var t=this,n=t._stackAxisRange,i=e.plotValue-e.value,r=e.low+i,o=e.high+i;return n.min=dn.min(n.min,r),n.max=dn.max(n.max,o),{low:r,high:o}},getViewElements:function(e){var t=this,n=at.fn.getViewElements.call(t,e),i=e.createGroup({animation:{type:ki}});return i.children=n,[i]}}),xn(xt.fn,vt),yt=mt.extend({points:function(e){var t,n=this;return t=n.calculateStepPoints(n.linePoints),e&&e.length&&(t=t.concat(n.calculateStepPoints(e).reverse())),t},calculateStepPoints:function(e){var t,n,i,r,o,a=this,s=a.parent,l=s.plotArea,c=l.seriesCategoryAxis(a.series),d=s.seriesMissingValues(a.series)===tr,u=e.length,h=c.options.reverse,p=c.options.vertical,f=h?2:1,g=h?1:2,m=[];for(i=1;u>i;i++)t=e[i-1],n=e[i],r=t.markerBox().center(),o=n.markerBox().center(),c.options.justified?(m.push(Ln(r.x,r.y)),m.push(Ln(o.x,r.y)),m.push(Ln(o.x,o.y))):p?(m.push(Ln(r.x,t.box[go+f])),m.push(Ln(r.x,t.box[go+g])),d&&m.push(Ln(o.x,t.box[go+g])),m.push(Ln(o.x,n.box[go+f])),m.push(Ln(o.x,n.box[go+g]))):(m.push(Ln(t.box[fo+f],r.y)),m.push(Ln(t.box[fo+g],r.y)),d&&m.push(Ln(t.box[fo+g],o.y)),m.push(Ln(n.box[fo+f],o.y)),m.push(Ln(n.box[fo+g],o.y)));return m||[]}}),wt=mt.extend({points:function(){var e=this,t=new Bn(e.options.closed),n=mt.fn.points.call(this);return t.process(n)},getViewElements:function(e){var t=this,n=t.options,i=t.series,r=i._defaults,o=i.color;return Pn.fn.getViewElements.call(t,e),wn(o)&&r&&(o=r.color),[e.createCubicCurve(t.points(),{id:n.id,stroke:o,strokeWidth:i.width,strokeOpacity:i.opacity,fill:"",dashType:i.dashType,data:{modelId:n.modelId},zIndex:-1})]}}),bt={points:function(){var e,t,n=this,i=n.parent,r=i.plotArea,o=i.options.invertAxes,a=i.seriesValueAxis(n.series),s=a.lineBox(),l=r.seriesCategoryAxis(n.series),c=l.lineBox(),d=o?c.x1:c.y1,u=n.stackPoints,h=n._linePoints(u),p=o?fo:go;return d=Zn(d,s[p+1],s[p+2]),!n.stackPoints&&h.length>1&&(e=h[0],t=$n(h),o?(h.unshift(Ln(d,e.y)),h.push(Ln(d,t.y))):(h.unshift(Ln(e.x,d)),h.push(Ln(t.x,d)))),h},getViewElements:function(e){var t,n=this,i=n.series,r=i._defaults,o=i.color,a=n._linePoints(),s=n.points();return Pn.fn.getViewElements.call(n,e),wn(o)&&r&&(o=r.color),t=xn({color:o,opacity:i.opacity},i.line),[e.createPolyline(s,!1,{id:n.options.id,fillOpacity:i.opacity,fill:o,stack:i.stack,data:{modelId:n.options.modelId},zIndex:-1}),e.createPolyline(a,!1,{stroke:t.color,strokeWidth:t.width,strokeOpacity:t.opacity,dashType:t.dashType,data:{modelId:n.options.modelId},strokeLineCap:"butt",zIndex:-1,align:!1})]}},_t=mt.extend({init:function(e,t,n,i){var r=this;r.stackPoints=t,mt.fn.init.call(r,e,n,i)},_linePoints:mt.fn.points}),xn(_t.fn,bt),kt=xt.extend({createSegment:function(e,t,n,i){var r,o,a=this,s=a.options,l=s.isStacked,c=(t.line||{}).style;return l&&n>0&&i&&(r=i.linePoints,c!==jr&&(r=r.slice(0).reverse())),c===Ur?new Ct(e,i,l,t,n):(o=c===jr?At:_t,new o(e,r,t,n))},seriesMissingValues:function(e){return e.missingValues||vo}}),Ct=_t.extend({init:function(e,t,n,i,r){var o=this;o.prevSegment=t,o.isStacked=n,mt.fn.init.call(o,e,i,r)},points:function(){var e,t,n=this,i=n.prevSegment,r=new Bn(n.options.closed),o=mt.fn.points.call(this),a=r.process(o);return n.curvePoints=a,n.isStacked&&i?(t=a.slice(0),t.push($n(a)),e=i.curvePoints.slice(0).reverse(),e.unshift(e[0]),t=t.concat(e),t.push($n(e),t[0],t[0])):t=n.curvePoints,t},areaPoints:function(e){var t=this,n=t.parent,i=t.prevSegment,r=n.plotArea,o=n.options.invertAxes,a=n.seriesValueAxis(t.series),s=a.lineBox(),l=r.seriesCategoryAxis(t.series),c=l.lineBox(),d=o?c.x1:c.y1,u=o?fo:go,h=e[0],p=$n(e),f=[];return d=Zn(d,s[u+1],s[u+2]),n.options.isStacked&&i||!(e.length>1)||(o?(f.push(Ln(d,h.y)),f.unshift(Ln(d,p.y))):(f.push(Ln(h.x,d)),f.unshift(Ln(p.x,d)))),f},getViewElements:function(e){var t,n=this,i=n.series,r=i._defaults,o=i.color,a=n.points(),s=n.areaPoints(a),l=[];return Pn.fn.getViewElements.call(n,e),wn(o)&&r&&(o=r.color),t=xn({color:o,opacity:i.opacity},i.line),l.push(e.createCubicCurve(a,{id:n.options.id,fillOpacity:i.opacity,fill:o,stack:i.stack,data:{modelId:n.options.modelId},zIndex:-1},s)),t.width>0&&l.push(e.createCubicCurve(n.curvePoints,{stroke:t.color,strokeWidth:t.width,strokeOpacity:t.opacity,dashType:t.dashType,data:{modelId:n.options.modelId},strokeLineCap:"butt",zIndex:-1})),l}}),At=yt.extend({init:function(e,t,n,i){var r=this;r.stackPoints=t,yt.fn.init.call(r,e,n,i)},_linePoints:yt.fn.points}),xn(At.fn,bt),St=Pn.extend({init:function(e,t){var n=this;Pn.fn.init.call(n,t),n.plotArea=e,n.xAxisRanges={},n.yAxisRanges={},n.points=[],n.seriesPoints=[],n.render()},options:{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"}},render:function(){var e=this;e.traverseDataPoints(hn(e.addValue,e))},addErrorBar:function(e,t,n){var i,r=this,o=e.value[t],a=t+"Value",s=t+"ErrorLow",l=t+"ErrorHigh",c=n.seriesIx,d=n.series,u=e.options.errorBars,h=n[s],p=n[l];I(o)&&(I(h)&&I(p)&&(i={low:h,high:p}),u&&Gn(u[a])&&(r.seriesErrorRanges=r.seriesErrorRanges||{x:[],y:[]},r.seriesErrorRanges[t][c]=r.seriesErrorRanges[t][c]||new ot(u[a],d,t),i=r.seriesErrorRanges[t][c].getErrorRange(o)),i&&r.addPointErrorBar(i,e,t))},addPointErrorBar:function(e,t,n){var i,r=this,o=e.low,a=e.high,s=t.series,l=n===go,c=t.options.errorBars,d={};t[n+"Low"]=o,t[n+"High"]=a,t.errorBars=t.errorBars||[],i=new pt(o,a,l,r,s,c),t.errorBars.push(i),t.append(i),d[n]=o,r.updateRange(d,s),d[n]=a,r.updateRange(d,s)},addValue:function(e,t){var n,i=this,r=e.x,o=e.y,a=t.seriesIx,s=i.seriesPoints[a];i.updateRange(e,t.series),Gn(r)&&null!==r&&Gn(o)&&null!==o&&(n=i.createPoint(e,t),n&&(un(n,t),i.addErrorBar(n,fo,t),i.addErrorBar(n,go,t))),i.points.push(n),s.push(n)},updateRange:function(e,t){var n=this,i=e.x,r=e.y,o=t.xAxis,a=t.yAxis,s=n.xAxisRanges[o],l=n.yAxisRanges[a];Gn(i)&&null!==i&&(s=n.xAxisRanges[o]=s||{min:lr,max:cr},typeof i===qr&&(i=v(i)),s.min=dn.min(s.min,i),s.max=dn.max(s.max,i)),Gn(r)&&null!==r&&(l=n.yAxisRanges[a]=l||{min:lr,max:cr},typeof r===qr&&(r=v(r)),l.min=dn.min(l.min,r),l.max=dn.max(l.max,r))},evalPointOptions:function(e,t,n){var i=n.series;R(e,{value:t,series:i,dataItem:n.dataItem},{defaults:i._defaults,excluded:["data"]})},createPoint:function(e,t){var n,i,r=this,o=t.series;return i=xn({markers:{opacity:o.opacity},tooltip:{format:r.options.tooltip.format},labels:{format:r.options.labels.format}},o,{color:t.color,notes:{label:{text:t.noteText}}}),r.evalPointOptions(i,e,t),n=new ft(e,i),r.append(n),n},seriesAxes:function(e){var t=this.plotArea,n=e.xAxis,i=n?t.namedXAxes[n]:t.axisX,r=e.yAxis,o=r?t.namedYAxes[r]:t.axisY;if(!i)throw Error("Unable to locate X axis with name "+n);if(!o)throw Error("Unable to locate Y axis with name "+r);return{x:i,y:o}},reflow:function(e){var t,n,i=this,r=i.points,o=0;i.traverseDataPoints(function(e,a){t=r[o++],n=i.seriesAxes(a.series);var s=n.x.getSlot(e.x,e.x),l=n.y.getSlot(e.y,e.y),c=i.pointSlot(s,l);t&&t.reflow(c)}),i.box=e},pointSlot:function(e,t){return new Sn(e.x1,t.y1,e.x2,t.y2)},getViewElements:function(e){var t=this,n=Pn.fn.getViewElements.call(t,e),i=e.createGroup({animation:{type:ki}});return i.children=n,[i]},traverseDataPoints:function(e){var t,n,i,r,o,a,s,l=this,c=l.options,d=c.series,u=l.seriesPoints;for(n=0;n<d.length;n++)for(i=d[n],r=u[n],r||(u[n]=[]),t=0;t<i.data.length;t++)o=Q.current.bindPoint(i,t),a=o.valueFields,s=o.fields,e(a,xn({pointIx:t,series:i,seriesIx:n,dataItem:i.data[t],owner:l},s))},formatPointValue:function(e,t){var n=e.value;return Un(t,n.x,n.y)}}),Tt=St.extend({render:function(){var e=this;St.fn.render.call(e),e.renderSegments()},createSegment:function(e,t,n){var i,r=t.style;return i=r===Ur?wt:mt,new i(e,t,n)}}),xn(Tt.fn,vt),Pt=St.extend({options:{tooltip:{format:"{3}"},labels:{format:"{3}"}},addValue:function(e,t){var n,i=this,r=t.series,o=r.negativeValues,a=i.plotArea.options.seriesColors||[],s=!0;n=t.color||r.color||a[t.pointIx%a.length],e.size<0&&(n=o.color||n,s=o.visible),t.color=n,s&&St.fn.addValue.call(this,e,t)},reflow:function(e){var t=this;t.updateBubblesSize(e),St.fn.reflow.call(t,e)},createPoint:function(e,t){var n,i,r=this,o=t.series,a=o.data.length,s=t.pointIx*(Ji/a),l={delay:s,duration:Ji-s,type:mi};return i=xn({tooltip:{format:r.options.tooltip.format},labels:{format:r.options.labels.format,animation:l}},o,{color:t.color,markers:{type:_i,background:t.color,border:o.border,opacity:o.opacity,animation:l},notes:{label:{text:t.noteText}}}),r.evalPointOptions(i,e,t),n=new gt(e,i),r.append(n),n},updateBubblesSize:function(e){var t,n,i,r,o,a,s,l,c,d,u,h,p,f,g,m,v=this,x=v.options,y=x.series,w=dn.min(e.width(),e.height());for(t=0;t<y.length;t++)for(i=y[t],r=v.seriesPoints[t],o=v.maxSize(r),a=i.minSize||dn.max(.02*w,10),s=i.maxSize||.2*w,l=a/2,c=s/2,d=dn.PI*l*l,u=dn.PI*c*c,h=u-d,p=h/o,n=0;n<r.length;n++)f=r[n],g=dn.abs(f.value.size)*p,m=dn.sqrt((d+g)/dn.PI),xn(f.options,{markers:{size:2*m,zIndex:c-m},labels:{zIndex:c-m+1}})},maxSize:function(e){var t,n,i=e.length,r=0;for(t=0;i>t;t++)n=e[t].value.size,r=dn.max(r,dn.abs(n));return r},getViewElements:function(e){var t=this,n=Pn.fn.getViewElements.call(t,e),i=e.createGroup();return i.children=n,[i]},formatPointValue:function(e,t){var n=e.value;return Un(t,n.x,n.y,n.size,e.category)}}),Dt=Pn.extend({init:function(e,t){var n=this;Pn.fn.init.call(n,t),n.value=e,n.options.id=ti(),n.enableDiscovery(),n.createNote()},options:{border:{_brightness:.8},line:{width:2},overlay:{gradient:$i},tooltip:{format:"<table style='text-align: left;'><th colspan='2'>{4:d}</th><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}},reflow:function(e){var t,n,i,r=this,o=r.options,a=r.owner,s=r.value,l=a.seriesValueAxis(o),c=[];n=l.getSlot(s.open,s.close),i=l.getSlot(s.low,s.high),n.x1=i.x1=e.x1,n.x2=i.x2=e.x2,r.realBody=n,t=i.center().x,c.push([Ln(t,i.y1),Ln(t,n.y1)]),c.push([Ln(t,n.y2),Ln(t,i.y2)]),r.lowHighLinePoints=c,r.box=i.clone().wrap(n),r.reflowNote()},reflowNote:function(){var e=this;e.note&&e.note.reflow(e.box)},createNote:function(){var e,t=this,n=t.options.notes,i=n.label.text;n.visible&&Gn(i)&&null!==i&&(n.label.template?(e=bn(n.label.template),i=e({dataItem:t.dataItem,category:t.category,value:t.value,series:t.series})):n.label.format&&(i=Un(n.label.format,i)),t.note=new En(xn({},n,{label:{text:i}})),t.append(t.note))},getViewElements:function(e){var t=this,n=t.options,i=[],r=n.border.width>0?{stroke:t.getBorderColor(),strokeWidth:n.border.width,dashType:n.border.dashType,strokeOpacity:ni(n.border.opacity,n.opacity)}:{},o=xn({fill:n.color,fillOpacity:n.opacity},r),a={strokeOpacity:ni(n.line.opacity,n.opacity),strokeWidth:n.line.width,stroke:n.line.color||n.color,dashType:n.line.dashType,strokeLineCap:"butt"},s=e.createGroup({animation:{type:ki}});return n.overlay&&(o.overlay=xn({rotation:0},n.overlay)),i.push(e.createRect(t.realBody,o)),i.push(e.createPolyline(t.lowHighLinePoints[0],!1,a)),i.push(e.createPolyline(t.lowHighLinePoints[1],!1,a)),i.push(t.createOverlayRect(e,n)),jn(i,Pn.fn.getViewElements.call(t,e)),s.children=i,[s]},getBorderColor:function(){var e=this,t=e.options,n=t.border,i=n.color;return Gn(i)||(i=new Dn(t.color).brightness(n._brightness).toHex()),i},createOverlayRect:function(e,t){return e.createRect(this.box,{data:{modelId:t.modelId},fill:"#fff",fillOpacity:0})},highlightOverlay:function(e,t){var n=this,i=n.options,r=i.highlight,o=r.border,a=n.getBorderColor(),s=r.line,l={data:{modelId:i.modelId}},c=xn({},l,t,{stroke:a,strokeOpacity:o.opacity,strokeWidth:o.width}),d=xn({},l,{stroke:s.color||a,strokeWidth:s.width,strokeOpacity:s.opacity,strokeLineCap:"butt"}),u=e.createGroup();return u.children.push(e.createRect(n.realBody,c)),u.children.push(e.createPolyline(n.lowHighLinePoints[0],!1,d)),u.children.push(e.createPolyline(n.lowHighLinePoints[1],!1,d)),u},tooltipAnchor:function(){var e=this,t=e.box;return new Ln(t.x2+io,t.y1+io)},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}}),xn(Dt.fn,it),Bt=at.extend({options:{},reflowCategories:function(e){var t,n=this,i=n.children,r=i.length;for(t=0;r>t;t++)i[t].reflow(e[t])},addValue:function(e,t,n,i,r){var o,a,s=this,l=s.options,c=e.valueFields,d=s.children,u=e.fields.color||i.color,h=this.splitValue(c),p=z(h),f=s.categoryPoints[n],g=i.data[n];f||(s.categoryPoints[n]=f=[]),p&&(i.type==xi&&c.open>c.close&&(u=e.fields.downColor||i.downColor||i.color),o=s.createPoint(e,t,n,xn({},i,{color:u}))),a=d[n],a||(a=new tt({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing}),s.append(a)),o&&(s.updateRange(c,n,i),a.append(o),o.categoryIx=n,o.category=t,o.series=i,o.seriesIx=r,o.owner=s,o.dataItem=g),s.points.push(o),f.push(o)},pointType:function(){return Dt},createPoint:function(e,t,n,i){var r=this,o=e.valueFields,a=xn({},i,{notes:{label:{text:e.fields.noteText}}}),s=r.pointType();return r.evalPointOptions(a,o,t,n,i),new s(o,a)},splitValue:function(e){return[e.low,e.open,e.close,e.high]
},updateRange:function(e,t,n){var i=this,r=n.axis,o=i.valueAxisRanges[r],a=i.splitValue(e);o=i.valueAxisRanges[r]=o||{min:lr,max:cr},o=i.valueAxisRanges[r]={min:dn.min.apply(dn,a.concat([o.min])),max:dn.max.apply(dn,a.concat([o.max]))}},formatPointValue:function(e,t){var n=e.value;return Un(t,n.open,n.high,n.low,n.close,e.category)}}),Mt=Dt.extend({reflow:function(e){var t,n,i,r,o=this,a=o.options,s=o.owner,l=o.value,c=s.seriesValueAxis(a),d=[],u=[],h=[];r=c.getSlot(l.low,l.high),n=c.getSlot(l.open,l.open),i=c.getSlot(l.close,l.close),n.x1=i.x1=r.x1=e.x1,n.x2=i.x2=r.x2=e.x2,t=r.center().x,d.push(Ln(n.x1,n.y1)),d.push(Ln(t,n.y1)),u.push(Ln(t,i.y1)),u.push(Ln(i.x2,i.y1)),h.push(Ln(t,r.y1)),h.push(Ln(t,r.y2)),o.oPoints=d,o.cPoints=u,o.lhPoints=h,o.box=r.clone().wrap(n.clone().wrap(i)),o.reflowNote()},getViewElements:function(e){var t=this,n=t.options,i=[],r={strokeOpacity:n.opacity,zIndex:-1,strokeWidth:n.width,stroke:n.color,dashType:n.dashType},o=e.createGroup({animation:{type:ki}});return i.push(t.createOverlayRect(e,n)),i.push(e.createPolyline(t.oPoints,!0,r)),i.push(e.createPolyline(t.cPoints,!0,r)),i.push(e.createPolyline(t.lhPoints,!0,r)),jn(i,Pn.fn.getViewElements.call(t,e)),o.children=i,[o]},highlightOverlay:function(e){var t=this,n=t.options,i=n.highlight,r={data:{modelId:n.modelId}},o=xn(r,{strokeWidth:i.line.width,strokeOpacity:i.line.opacity,stroke:i.line.color||t.color}),a=e.createGroup();return a.children.push(e.createPolyline(t.oPoints,!0,o)),a.children.push(e.createPolyline(t.cPoints,!0,o)),a.children.push(e.createPolyline(t.lhPoints,!0,o)),a}}),Et=Bt.extend({pointType:function(){return Mt}}),It=Bt.extend({addValue:function(e,t,n,i,r){var o,a,s=this,l=s.options,c=s.children,d=e.fields.color||i.color,u=e.valueFields,h=s.splitValue(u),p=z(h),f=s.categoryPoints[n],g=i.data[n];f||(s.categoryPoints[n]=f=[]),p&&(o=s.createPoint(e,t,n,xn({},i,{color:d}))),a=c[n],a||(a=new tt({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing}),s.append(a)),o&&(s.updateRange(u,n,i),a.append(o),o.categoryIx=n,o.category=t,o.series=i,o.seriesIx=r,o.owner=s,o.dataItem=g),s.points.push(o),f.push(o)},pointType:function(){return Lt},splitValue:function(e){return[e.lower,e.q1,e.median,e.q3,e.upper]},updateRange:function(e,t,n){var i=this,r=n.axis,o=i.valueAxisRanges[r],a=i.splitValue(e).concat(i.filterOutliers(e.outliers));Gn(e.mean)&&(a=a.concat(e.mean)),o=i.valueAxisRanges[r]=o||{min:lr,max:cr},o=i.valueAxisRanges[r]={min:dn.min.apply(dn,a.concat([o.min])),max:dn.max.apply(dn,a.concat([o.max]))}},formatPointValue:function(e,t){var n=e.value;return Un(t,n.lower,n.q1,n.median,n.q3,n.upper,n.mean,e.category)},filterOutliers:function(e){var t,n,i=(e||[]).length,r=[];for(t=0;i>t;t++)n=e[t],Gn(n)&&M(r,n);return r}}),Lt=Dt.extend({init:function(e,t){var n=this;Pn.fn.init.call(n,t),n.value=e,n.options.id=ti(),n.enableDiscovery(),n.createNote()},options:{border:{_brightness:.8},line:{width:2},mean:{width:2,dashType:"dash"},overlay:{gradient:$i},tooltip:{format:"<table style='text-align: left;'><th colspan='2'>{6:d}</th><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:ar,type:Ti,background:po,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:ar,type:_i,background:po,border:{width:2,opacity:1},opacity:0}},reflow:function(e){var t,n,i,r,o,a=this,s=a.options,l=a.owner,c=a.value,d=l.seriesValueAxis(s),u=[];i=d.getSlot(c.q1,c.q3),a.boxSlot=i,n=d.getSlot(c.lower,c.upper),r=d.getSlot(c.median),i.x1=n.x1=e.x1,i.x2=n.x2=e.x2,c.mean&&(o=d.getSlot(c.mean),a.meanPoints=[Ln(e.x1,o.y1),Ln(e.x2,o.y1)]),t=n.center().x,u.push([[Ln(t-5,n.y1),Ln(t+5,n.y1)],[Ln(t,n.y1),Ln(t,i.y1)]]),u.push([[Ln(t-5,n.y2),Ln(t+5,n.y2)],[Ln(t,i.y2),Ln(t,n.y2)]]),a.whiskerPoints=u,a.medianPoints=[Ln(e.x1,r.y1),Ln(e.x2,r.y1)],a.box=n.clone().wrap(i),a.createOutliers(),a.reflowNote()},createOutliers:function(){var e,t,n,i,r,o=this,a=o.options,s=a.markers||{},l=o.value,c=l.outliers||[],d=o.owner.seriesValueAxis(a),u=3*dn.abs(l.q3-l.q1);for(o.outliers=[],r=0;r<c.length;r++)i=c[r],s=i<l.q3+u&&i>l.q1-u?a.outliers:a.extremes,e=xn({},s.border),Gn(e.color)||(e.color=Gn(o.options.color)?o.options.color:new Dn(s.background).brightness(di).toHex()),n=new Rn({id:o.options.id,type:s.type,width:s.size,height:s.size,rotation:s.rotation,background:s.background,border:e,opacity:s.opacity}),t=d.getSlot(i).move(o.box.center().x),o.box=o.box.wrap(t),n.reflow(t),o.outliers.push(n)},getViewElements:function(e){var t=this,n=e.createGroup({animation:{type:ki}}),i=t.render(e,t.options);return jn(i,Pn.fn.getViewElements.call(t,e)),n.children=i,[n]},render:function(e,t){var n,i,r=this,o=[];if(o.push(r.createBody(e,t)),o.push(r.createWhisker(e,r.whiskerPoints[0],t)),o.push(r.createWhisker(e,r.whiskerPoints[1],t)),o.push(r.createMedian(e,t)),r.meanPoints&&o.push(r.createMean(e,t)),o.push(r.createOverlayRect(e,t)),r.outliers.length)for(n=0;n<r.outliers.length;n++)i=r.outliers[n],o.push(i.getViewElements(e,i.options)[0]);return o},createWhisker:function(e,t,n){return e.createMultiLine(t,{strokeOpacity:ni(n.line.opacity,n.opacity),strokeWidth:n.line.width,stroke:n.line.color||n.color,dashType:n.line.dashType,strokeLineCap:"butt",data:{data:{modelId:n.modelId}}})},createMedian:function(e){var t=this,n=t.options;return e.createPolyline(t.medianPoints,!1,{strokeOpacity:ni(n.median.opacity,n.opacity),strokeWidth:n.median.width,stroke:n.median.color||n.color,dashType:n.median.dashType,strokeLineCap:"butt",data:{data:{modelId:n.modelId}}})},createBody:function(e,t){var n=this,i=t.border.width>0?{stroke:t.color||n.getBorderColor(),strokeWidth:t.border.width,dashType:t.border.dashType,strokeOpacity:ni(t.border.opacity,t.opacity)}:{},r=xn({fill:t.color,fillOpacity:t.opacity,data:{data:{modelId:t.modelId}}},i);return t.overlay&&(r.overlay=xn({rotation:0},t.overlay)),e.createRect(n.boxSlot,r)},createMean:function(e){var t=this,n=t.options;return e.createPolyline(t.meanPoints,!1,{strokeOpacity:ni(n.mean.opacity,n.opacity),strokeWidth:n.mean.width,stroke:n.mean.color||n.color,dashType:n.mean.dashType,strokeLineCap:"butt",data:{data:{modelId:n.modelId}}})},highlightOverlay:function(e){var t=this,n=e.createGroup();return n.children=t.render(e,xn({},t.options.highlight,{border:{color:t.getBorderColor()}})),n}}),xn(Lt.fn,it),zt=Pn.extend({init:function(e,t,n){var i=this;i.value=e,i.sector=t,Pn.fn.init.call(i,n),i.options.id=ti(),i.enableDiscovery()},options:{color:po,overlay:{gradient:Er},border:{width:.5},labels:{visible:!1,distance:35,font:Ei,margin:Qn(.5),align:_i,zIndex:1,position:Ar},animation:{type:Tr},highlight:{visible:!0,border:{width:1}},visible:!0},render:function(){var e,t=this,n=t.options,i=n.labels,r=t.value;t._rendered||t.visible===!1||(t._rendered=!0,i.template?(e=bn(i.template),r=e({dataItem:t.dataItem,category:t.category,value:t.value,series:t.series,percentage:t.percentage})):i.format&&(r=Un(i.format,r)),i.visible&&r&&(t.label=new Fn(r,xn({},i,{id:ti(),align:wi,vAlign:"",animation:{type:Yi,delay:t.animationDelay}})),t.append(t.label)))},reflow:function(e){var t=this;t.render(),t.box=e,t.reflowLabel()},reflowLabel:function(){var e,t,n,i,r=this,o=r.sector.clone(),a=r.options,s=r.label,l=a.labels,c=l.distance,d=o.middle();s&&(i=s.box.height(),n=s.box.width(),l.position==wi?(o.r=dn.abs((o.r-i)/2)+i,e=o.point(d),s.reflow(Sn(e.x,e.y-i/2,e.x,e.y))):l.position==er?(o.r=o.r-i/2,e=o.point(d),s.reflow(Sn(e.x,e.y-i/2,e.x,e.y))):(e=o.clone().expand(c).point(d),e.x>=o.c.x?(t=e.x+n,s.orientation=Mr):(t=e.x-n,s.orientation=nr),s.reflow(Sn(t,e.y-i,e.x,e.y))))},getViewElements:function(e){var t=this,n=t.sector,i=t.options,r=i.border||{},o=r.width>0?{stroke:r.color,strokeWidth:r.width,strokeOpacity:r.opacity,dashType:r.dashType}:{},a=[],s=i.overlay;return s&&(s=xn({},i.overlay,{r:n.r,ir:n.ir,cx:n.c.x,cy:n.c.y,bbox:n.getBBox()})),t.value&&a.push(t.createSegment(e,n,xn({id:i.id,fill:i.color,overlay:s,fillOpacity:i.opacity,strokeOpacity:i.opacity,animation:xn(i.animation,{delay:t.animationDelay}),data:{modelId:i.modelId},zIndex:i.zIndex,singleSegment:1===(t.options.data||[]).length},o))),jn(a,Pn.fn.getViewElements.call(t,e)),a},createSegment:function(e,t,n){return n.singleSegment?e.createCircle(t.c,t.r,n):e.createSector(t,n)},highlightOverlay:function(e,t){var n,i=this,r=i.options.highlight||{},o=r.border||{},a=i.options.id+Sr;return t=xn({},t,{id:a}),0!==i.value&&(n=i.createSegment(e,i.sector,xn({},t,{fill:r.color,fillOpacity:r.opacity,strokeOpacity:o.opacity,strokeWidth:o.width,stroke:o.color,id:null,data:{modelId:i.options.modelId}}))),n},tooltipAnchor:function(e,t){var n=this,i=n.sector.adjacentBox(io,e,t);return new Ln(i.x1,i.y1)},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}}),xn(zt.fn,it),Ot=Pn.extend({init:function(e,t){var n=this;Pn.fn.init.call(n,t),n.plotArea=e,n.points=[],n.legendItems=[],n.render()},options:{startAngle:90,connectors:{width:1,color:"#939393",padding:4},inactiveItems:{markers:{},labels:{}}},render:function(){var e=this;e.traverseDataPoints(hn(e.addValue,e))},traverseDataPoints:function(e){var t,n,i,r,o,a,s,l,c,d,u,h,p=this,f=p.options,g=p.plotArea.options.seriesColors||[],m=g.length,v=f.series,x=v.length,y=ti(),w=0;for(r=0;x>r;r++){for(t=v[r],a=t.data,d=p.pointsTotal(t),s=360/d,u=Gn(t.startAngle)?t.startAngle:f.startAngle,r!=x-1&&t.labels.position==Ar&&(t.labels.position=wi),h=0;h<a.length;h++)n=Q.current.bindPoint(t,h),l=n.valueFields.value,i=n.fields,o=Kn(l*s,Li),c=1!=a.length&&!!i.explode,wn(t.color)||(t.color=i.color||g[h%m]),e(l,new On(null,0,0,u,o),{owner:p,category:i.category||"",index:w,series:t,seriesIx:r,dataItem:a[h],percentage:l/d,explode:c,visibleInLegend:i.visibleInLegend,visible:i.visible,overlay:{id:y+r},zIndex:x-r,animationDelay:p.animationDelay(h,r,x)}),n.fields.visible!==!1&&(u+=o),w++;w=0}},evalSegmentOptions:function(e,t,n){var i=n.series;R(e,{value:t,series:i,dataItem:n.dataItem,category:n.category,percentage:n.percentage},{defaults:i._defaults,excluded:["data"]})},addValue:function(e,t,n){var i,r,o=this;o.createLegendItem(e,n),n.visible!==!1&&(r=xn({},n.series,{index:n.index}),o.evalSegmentOptions(r,e,n),i=new zt(e,t,r),un(i,n),o.append(i),o.points.push(i))},createLegendItem:function(e,t){var n,i,r,o,a=this,s=(a.options.legend||{}).labels||{},l=(a.options.legend||{}).inactiveItems||{};t&&t.visibleInLegend!==!1&&(n=t.category||"",(s||{}).template&&(i=bn(s.template),n=i({text:n,series:t.series,dataItem:t.dataItem,percentage:t.percentage,value:e})),t.visible===!1?(r=(l.markers||{}).color,o=(l.labels||{}).color):(r=(t.series||{}).color,o=s.color),n&&a.legendItems.push({pointIndex:t.index,text:n,series:t.series,markerColor:r,labelColor:o}))},pointsTotal:function(e){var t,n,i,r=e.data,o=r.length,a=0;for(n=0;o>n;n++)i=Q.current.bindPoint(e,n),t=i.valueFields.value,"string"==typeof t&&(t=parseFloat(t)),t&&i.fields.visible!==!1&&(a+=t);return a},reflow:function(e){var t,n,i,r,o,a,s,l,c=this,d=c.options,u=e.clone(),h=5,p=dn.min(u.width(),u.height()),f=p/2,g=p-.85*p,m=ni(d.padding,g),v=Sn(u.x1,u.y1,u.x1+p,u.y1+p),x=v.center(),y=c.seriesConfigs||[],w=u.center(),b=c.points,_=b.length,k=d.series.length,C=[],A=[];for(m=m>f-h?f-h:m,v.translate(w.x-x.x,w.y-x.y),a=f-m,l=Ln(a+v.x1+m,a+v.y1+m),s=0;_>s;s++)r=b[s],o=r.sector,o.r=a,o.c=l,n=r.seriesIx,y.length&&(t=y[n],o.ir=t.ir,o.r=t.r),n==k-1&&r.explode&&(o.c=o.clone().radius(.15*o.r).point(o.middle())),r.reflow(v),i=r.label,i&&i.options.position===Ar&&n==k-1&&(i.orientation===Mr?A.push(i):C.push(i));C.length>0&&(C.sort(c.labelComparator(!0)),c.leftLabelsReflow(C)),A.length>0&&(A.sort(c.labelComparator(!1)),c.rightLabelsReflow(A)),c.box=v},leftLabelsReflow:function(e){var t=this,n=t.distanceBetweenLabels(e);t.distributeLabels(n,e)},rightLabelsReflow:function(e){var t=this,n=t.distanceBetweenLabels(e);t.distributeLabels(n,e)},distanceBetweenLabels:function(e){var t,n,i,r=this,o=r.points,a=o[o.length-1],s=a.sector,l=e[0].box,c=e.length-1,d=s.r+a.options.labels.distance,u=[];for(n=Kn(l.y1-(s.c.y-d-l.height()-l.height()/2)),u.push(n),i=0;c>i;i++)l=e[i].box,t=e[i+1].box,n=Kn(t.y1-l.y2),u.push(n);return n=Kn(s.c.y+d-e[c].box.y2-e[c].box.height()/2),u.push(n),u},distributeLabels:function(e,t){var n,i,r,o,a=this,s=e.length;for(o=0;s>o;o++)for(i=r=o,n=-e[o];n>0&&(i>=0||s>r);)n=a._takeDistance(e,o,--i,n),n=a._takeDistance(e,o,++r,n);a.reflowLabels(e,t)},_takeDistance:function(e,t,n,i){if(e[n]>0){var r=dn.min(e[n],i);i-=r,e[n]-=r,e[t]+=r}return i},reflowLabels:function(e,t){var n,i,r,o,a=this,s=a.points,l=s[s.length-1],c=l.sector,d=t.length,u=l.options.labels,h=u.distance,p=c.c.y-(c.r+h)-t[0].box.height();for(e[0]+=2,o=0;d>o;o++)n=t[o],p+=e[o],r=n.box,i=a.hAlignLabel(r.x2,c.clone().expand(h),p,p+r.height(),n.orientation==Mr),n.orientation==Mr?(u.align!==_i&&(i=c.r+c.c.x+h),n.reflow(Sn(i+r.width(),p,i,p))):(u.align!==_i&&(i=c.c.x-c.r-h),n.reflow(Sn(i-r.width(),p,i,p))),p+=r.height()},getViewElements:function(e){var t,n,i,r,o,s,l,c,d,u,h,p,f,g,m,v=this,x=v.options,y=x.connectors,w=v.points,b=[],_=w.length,k=4;for(c=0;_>c;c++)o=w[c],n=o.sector,i=n.middle(),l=o.label,s={seriesId:o.seriesIx},l&&(r=[],l.options.position===Ar&&0!==o.value&&(p=l.box,f=n.c,g=n.point(i),m=Ln(p.x1,p.center().y),g=n.clone().expand(y.padding).point(i),r.push(g),l.orientation==Mr?(u=Ln(p.x1-y.padding,p.center().y),h=a(f,g,m,u),m=Ln(u.x-k,u.y),h=h||m,h.x=dn.min(h.x,m.x),v.pointInCircle(h,n.c,n.r+k)||h.x<n.c.x?(d=n.c.x+n.r+k,o.options.labels.align!==Ai?d<m.x?r.push(Ln(d,g.y)):r.push(Ln(g.x+2*k,g.y)):r.push(Ln(d,g.y)),r.push(Ln(m.x,u.y))):(h.y=u.y,r.push(h))):(u=Ln(p.x2+y.padding,p.center().y),h=a(f,g,m,u),m=Ln(u.x+k,u.y),h=h||m,h.x=dn.max(h.x,m.x),v.pointInCircle(h,n.c,n.r+k)||h.x>n.c.x?(d=n.c.x-n.r-k,o.options.labels.align!==Ai?d>m.x?r.push(Ln(d,g.y)):r.push(Ln(g.x-2*k,g.y)):r.push(Ln(d,g.y)),r.push(Ln(m.x,u.y))):(h.y=u.y,r.push(h))),r.push(u),t=e.createPolyline(r,!1,{id:ti(),stroke:y.color,strokeWidth:y.width,animation:{type:Yi,delay:o.animationDelay},data:{modelId:o.options.modelId}}),b.push(t)));return jn(b,Pn.fn.getViewElements.call(v,e)),b},labelComparator:function(e){return e=e?-1:1,function(t,n){return t=(Kn(t.parent.sector.middle())+270)%360,n=(Kn(n.parent.sector.middle())+270)%360,(t-n)*e}},hAlignLabel:function(e,t,n,i,r){var o=t.c.x,a=t.c.y,s=t.r,l=dn.min(dn.abs(a-n),dn.abs(a-i));return l>s?e:o+dn.sqrt(s*s-l*l)*(r?1:-1)},pointInCircle:function(e,t,n){return f(t.x-e.x)+f(t.y-e.y)<f(n)},formatPointValue:function(e,t){return Un(t,e.value)},animationDelay:function(e){return e*Pr}}),Rt=zt.extend({options:{overlay:{gradient:Ir},labels:{position:wi},animation:{type:Tr}},reflowLabel:function(){var e,t,n=this,i=n.sector.clone(),r=n.options,o=n.label,a=r.labels,s=i.middle();o&&(t=o.box.height(),a.position==wi?(i.r-=(i.r-i.ir)/2,e=i.point(s),o.reflow(new Sn(e.x,e.y-t/2,e.x,e.y))):zt.fn.reflowLabel.call(n))},createSegment:function(e,t,n){return e.createRing(t,n)}}),xn(Rt.fn,it),Vt=Ot.extend({options:{startAngle:90,connectors:{width:1,color:"#939393",padding:4}},addValue:function(e,t,n){var i,r,o=this;o.createLegendItem(e,n),e&&n.visible!==!1&&(r=xn({},n.series),o.evalSegmentOptions(r,e,n),i=new Rt(e,t,r),un(i,n),o.append(i),o.points.push(i))},reflow:function(e){var t,n,i,r,o,a,s=this,l=s.options,c=e.clone(),d=5,u=dn.min(c.width(),c.height()),h=u/2,p=u-.85*u,f=ni(l.padding,p),g=l.series,m=g.length,v=0,x=0,y=0,w=0;for(s.seriesConfigs=[],f=f>h-d?h-d:f,i=h-f,o=0;m>o;o++)t=g[o],0===o&&Gn(t.holeSize)&&(n=t.holeSize,i-=t.holeSize),Gn(t.size)?i-=t.size:v++,Gn(t.margin)&&o!=m-1&&(i-=t.margin);for(Gn(n)||(w=(h-f)/(m+.75),n=.75*w,i-=n),y=n,o=0;m>o;o++)t=g[o],r=ni(t.size,i/v),y+=x,a=y+r,s.seriesConfigs.push({ir:y,r:a}),x=t.margin||0,y=a;Ot.fn.reflow.call(s,e)},animationDelay:function(e,t,n){return e*Vi+Ji*(t+1)/(n+1)}}),Ft=Tn.extend({init:function(e){var t=this;Tn.fn.init.call(t,e),e=t.options,e.id=ti(),t.title=Hn.buildTitle(e.title,t,Ft.fn.options.title),t.content=new Pn,t.append(t.content),t.axes=[],t.charts=[]},options:{zIndex:-1,shrinkToFit:!0,title:{align:nr},visible:!0},appendAxis:function(e){var t=this;t.content.append(e),t.axes.push(e),e.pane=t},appendChart:function(e){var t=this;t.charts.push(e),t.content.append(e),e.pane=t},empty:function(){var e,t=this,n=t.parent;if(n){for(e=0;e<t.axes.length;e++)n.removeAxis(t.axes[e]);for(e=0;e<t.charts.length;e++)n.removeChart(t.charts[e])}t.axes=[],t.charts=[],t.content.destroy(),t.content.children=[]},reflow:function(e){var t=this;$n(t.children)===t.content&&t.children.pop(),Tn.fn.reflow.call(t,e),t.title&&(t.contentBox.y1+=t.title.box.height())},getViewElements:function(e){var t=this,n=Tn.fn.getViewElements.call(t,e),i=e.createGroup({id:t.options.id}),r=[];return i.children=n.concat(t.renderGridLines(e),t.content.getViewElements(e)),t.view=e,t.options.visible&&(r=[i]),r},renderGridLines:function(e){var t,n,i,r,o,a,s=this,l=s.axes,c=l.concat(s.parent.axes),d=[],u=[];for(n=0;n<l.length;n++)for(r=l[n],o=r.options.vertical,t=o?d:u,i=0;i<c.length;i++)0===t.length&&(a=c[i],o!==a.options.vertical&&jn(t,r.renderGridLines(e,a,r)));return d.concat(u)},refresh:function(){var e=this,t=e.view;t&&t.replace(e)}}),Ht=Pn.extend({init:function(e,t){var n=this;Pn.fn.init.call(n,t),n.series=e,n.setSeriesIndexes(),n.charts=[],n.options.legend.items=[],n.axes=[],n.crosshairs=[],n.options.id=ti(),n.enableDiscovery(),n.createPanes(),n.render(),n.createCrosshairs()},options:{series:[],plotArea:{margin:{}},background:"",border:{color:hi,width:0},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}},setSeriesIndexes:function(){var e,t,n=this.series;for(e=0;e<n.length;e++)t=n[e],t.index=e},createPanes:function(){var e,t,n=this,i=[],r=n.options.panes||[],o=dn.max(r.length,1);for(e=0;o>e;e++)t=new Ft(r[e]),t.paneIndex=e,i.push(t),n.append(t);n.panes=i},destroy:function(){var e,t=this,n=t.charts,i=t.axes;for(e=0;e<n.length;e++)n[e].destroy();for(e=0;e<i.length;e++)i[e].destroy();Pn.fn.destroy.call(t)},createCrosshairs:function(){var e,t,n,i,r,o=this,a=o.panes;for(e=0;e<a.length;e++)for(n=a[e],t=0;t<n.axes.length;t++)i=n.axes[t],i.options.crosshair&&i.options.crosshair.visible&&(r=new tn(i,i.options.crosshair),o.crosshairs.push(r),o.append(r))},findPane:function(e){var t,n,i=this,r=i.panes;for(t=0;t<r.length;t++)if(r[t].options.name===e){n=r[t];break}return n||r[0]},findPointPane:function(e){var t,n,i=this,r=i.panes;for(t=0;t<r.length;t++)if(r[t].box.containsPoint(e)){n=r[t];break}return n},appendAxis:function(e){var t=this,n=t.findPane(e.options.pane);n.appendAxis(e),t.axes.push(e),e.plotArea=t},removeAxis:function(e){var t,n,i=this,r=[];for(t=0;t<i.axes.length;t++)n=i.axes[t],e!==n?r.push(n):n.destroy();i.axes=r},appendChart:function(e,t){var n=this;n.charts.push(e),t?t.appendChart(e):n.append(e)},removeChart:function(e){var t,n,i=this,r=[];for(t=0;t<i.charts.length;t++)n=i.charts[t],n!==e?r.push(n):n.destroy();i.charts=r},addToLegend:function(e){var t,n,i,r,o,a,s,l=e.length,c=[],d=this.options.legend,u=d.labels||{},h=d.inactiveItems||{};for(t=0;l>t;t++)n=e[t],n.visibleInLegend!==!1&&(i=n.name||"",u.template&&(i=bn(u.template)({text:i,series:n})),r=n.color,s=n._defaults,wn(r)&&s&&(r=s.color),n.visible===!1?(o=h.labels.color,a=h.markers.color):(o=u.color,a=r),i&&c.push({text:i,labelColor:o,markerColor:a,series:n,active:n.visible}));jn(d.items,c)},groupAxes:function(e){var t,n,i,r,o=[],a=[];for(i=0;i<e.length;i++)for(t=e[i].axes,r=0;r<t.length;r++)n=t[r],n.options.vertical?a.push(n):o.push(n);return{x:o,y:a,any:o.concat(a)}},groupSeriesByPane:function(){var e,t,n,i=this,r=i.series,o={};for(e=0;e<r.length;e++)n=r[e],t=i.seriesPaneName(n),o[t]?o[t].push(n):o[t]=[n];return o},filterVisibleSeries:function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],n.visible!==!1&&i.push(n);return i},reflow:function(e){var t=this,n=t.options.plotArea,i=t.panes,r=Qn(n.margin);t.box=e.clone().unpad(r),t.reflowPanes(),t.reflowAxes(i),t.reflowCharts(i)},redraw:function(e){var t,n=this;for(e=[].concat(e),t=0;t<e.length;t++)e[t].empty();for(n.render(e),n.reflowAxes(n.panes),n.reflowCharts(e),t=0;t<e.length;t++)e[t].refresh()},axisCrossingValues:function(e,t){var n,i=e.options,r=[].concat(i.axisCrossingValues||i.axisCrossingValue),o=t.length-r.length,a=r[0]||0;for(n=0;o>n;n++)r.push(a);return r},alignAxisTo:function(e,t,n,i){var r=e.getSlot(n,n),o=e.options.reverse?2:1,a=t.getSlot(i,i),s=t.options.reverse?2:1,l=e.box.translate(a[fo+s]-r[fo+o],a[go+s]-r[go+o]);e.pane!==t.pane&&l.translate(0,e.pane.box.y1-t.pane.box.y1),e.reflow(l)},alignAxes:function(e,t){var n,i,r,o,a=this,s=e[0],l=t[0],c=a.axisCrossingValues(s,t),d=a.axisCrossingValues(l,e),u={},h={},p={},f={};for(o=0;o<t.length;o++)r=t[o],n=r.pane,i=n.options.id,a.alignAxisTo(r,s,d[o],c[o]),r.options._overlap||(Kn(r.lineBox().x1)===Kn(s.lineBox().x1)&&(u[i]&&r.reflow(r.box.alignTo(u[i].box,nr).translate(-r.options.margin,0)),u[i]=r),Kn(r.lineBox().x2)===Kn(s.lineBox().x2)&&(r._mirrored||(r.options.labels.mirror=!r.options.labels.mirror,r._mirrored=!0),a.alignAxisTo(r,s,d[o],c[o]),h[i]&&r.reflow(r.box.alignTo(h[i].box,Mr).translate(r.options.margin,0)),h[i]=r),0!==o&&l.pane===r.pane&&r.alignTo(l));for(o=0;o<e.length;o++)r=e[o],n=r.pane,i=n.options.id,a.alignAxisTo(r,l,c[o],d[o]),r.options._overlap||(Kn(r.lineBox().y1)===Kn(l.lineBox().y1)&&(r._mirrored||(r.options.labels.mirror=!r.options.labels.mirror,r._mirrored=!0),a.alignAxisTo(r,l,c[o],d[o]),p[i]&&r.reflow(r.box.alignTo(p[i].box,to).translate(0,-r.options.margin)),p[i]=r),Kn(r.lineBox().y2,Si)===Kn(l.lineBox().y2,Si)&&(f[i]&&r.reflow(r.box.alignTo(f[i].box,fi).translate(0,r.options.margin)),f[i]=r),0!==o&&r.alignTo(s))},shrinkAxisWidth:function(e){var t,n,i,r=this,o=r.groupAxes(e).any,a=T(o),s=0;for(t=0;t<e.length;t++)n=e[t],n.axes.length>0&&(s=dn.max(s,a.width()-n.contentBox.width()));for(t=0;t<o.length;t++)i=o[t],i.options.vertical||i.reflow(i.box.shrink(s,0))},shrinkAxisHeight:function(e){var t,n,i,r,o,a;for(t=0;t<e.length;t++)for(n=e[t],i=n.axes,r=dn.max(0,T(i).height()-n.contentBox.height()),o=0;o<i.length;o++)a=i[o],a.options.vertical&&a.reflow(a.box.shrink(0,r))},fitAxes:function(e){var t,n,i,r,o,a,s,l,c=this,d=c.groupAxes(e).any,u=0;for(s=0;s<e.length;s++)if(o=e[s],t=o.axes,n=o.contentBox,t.length>0)for(i=T(t),u=dn.max(u,n.x1-i.x1),r=dn.max(n.y1-i.y1,n.y2-i.y2),l=0;l<t.length;l++)a=t[l],a.reflow(a.box.translate(0,r));for(s=0;s<d.length;s++)a=d[s],a.reflow(a.box.translate(u,0))},reflowAxes:function(e){var t,n=this,i=n.groupAxes(e);for(t=0;t<e.length;t++)n.reflowPaneAxes(e[t]);i.x.length>0&&i.y.length>0&&(n.alignAxes(i.x,i.y),n.shrinkAxisWidth(e),n.alignAxes(i.x,i.y),n.shrinkAxisHeight(e),n.alignAxes(i.x,i.y),n.fitAxes(e))},reflowPaneAxes:function(e){var t,n=e.axes,i=n.length;if(i>0)for(t=0;i>t;t++)n[t].reflow(e.contentBox)},reflowCharts:function(e){var t,n,i=this,r=i.charts,o=r.length,a=i.box;for(n=0;o>n;n++)t=r[n].pane,(!t||Yn(t,e))&&r[n].reflow(a)},reflowPanes:function(){var e,t,n,i,r,o=this,a=o.box,s=o.panes,l=s.length,c=a.height(),d=l,u=0,h=a.y1;for(e=0;l>e;e++)t=s[e],i=t.options.height,t.options.width=a.width(),t.options.height?(i.indexOf&&i.indexOf("%")&&(r=parseInt(i,10)/100,t.options.height=r*a.height()),t.reflow(a.clone()),c-=t.options.height):u++;for(e=0;l>e;e++)t=s[e],t.options.height||(t.options.height=c/u);for(e=0;l>e;e++)t=s[e],n=a.clone().move(a.x1,h),t.reflow(n),d--,h+=t.options.height},backgroundBox:function(){var e,t,n,i,r,o,a=this,s=a.axes,l=s.length;for(n=0;l>n;n++)for(r=s[n],i=0;l>i;i++)o=s[i],r.options.vertical!==o.options.vertical&&(e=r.lineBox().clone().wrap(o.lineBox()),t=t?t.wrap(e):e);return t||a.box},getViewElements:function(e){var t=this,n=t.backgroundBox(),i=t.options,r=i.plotArea,o=r.border||{},a=Pn.fn.getViewElements.call(t,e);return jn(a,[e.createRect(n,{fill:r.background,fillOpacity:r.opacity,zIndex:-2,strokeWidth:.1}),e.createRect(n,{id:i.id,data:{modelId:i.modelId},stroke:o.width?o.color:"",strokeWidth:o.width,fill:po,fillOpacity:0,zIndex:-1,dashType:o.dashType})]),a},pointsByCategoryIndex:function(e){var t,n,i,r,o,a=this.charts,s=[];if(null!==e)for(t=0;t<a.length;t++)if(o=a[t],"_navigator"!==o.pane.options.name&&(i=a[t].categoryPoints[e],i&&i.length))for(n=0;n<i.length;n++)r=i[n],r&&Gn(r.value)&&null!==r.value&&s.push(r);return s},pointsBySeriesIndex:function(e){var t,n,i,r,o,a=this.charts,s=[];for(i=0;i<a.length;i++)for(o=a[i],t=o.points,r=0;r<t.length;r++)n=t[r],n&&n.options.index===e&&s.push(n);return s},paneByPoint:function(e){var t,n,i=this,r=i.panes;for(n=0;n<r.length;n++)if(t=r[n],t.box.containsPoint(e))return t}}),Nt=Ht.extend({init:function(e,t){var n=this;n.namedCategoryAxes={},n.namedValueAxes={},n.valueAxisRangeTracker=new jt,e.length>0&&(n.invertAxes=Yn(e[0].type,[ci,vi,uo,lo])),Ht.fn.init.call(n,e,t)},options:{categoryAxis:{categories:[]},valueAxis:{}},render:function(e){var t=this;e=e||t.panes,t.createCategoryAxes(e),t.aggregateCategories(e),t.createCharts(e),t.createValueAxes(e)},removeAxis:function(e){var t=this,n=e.options.name;Ht.fn.removeAxis.call(t,e),e instanceof Z?delete t.namedCategoryAxes[n]:(t.valueAxisRangeTracker.reset(n),delete t.namedValueAxes[n]),e===t.categoryAxis&&delete t.categoryAxis,e===t.valueAxis&&delete t.valueAxis},createCharts:function(e){var t,n,i,r,o=this,a=o.groupSeriesByPane();for(t=0;t<e.length;t++)n=e[t],i=a[n.options.name||"default"]||[],o.addToLegend(i),r=o.filterVisibleSeries(i),r&&(o.createAreaChart(F(r,[oi,lo]),n),o.createBarChart(F(r,[Ai,ci]),n),o.createLineChart(F(r,[or,uo]),n),o.createCandlestickChart(F(r,xi),n),o.createBoxPlotChart(F(r,gi),n),o.createOHLCChart(F(r,Cr),n),o.createBulletChart(F(r,[vi,co]),n))},aggregateCategories:function(e){var t,n,i,r,o,a=this,s=a.srcSeries||a.series,l=[];for(t=0;t<s.length;t++)n=s[t],i=a.seriesCategoryAxis(n),r=a.findPane(i.options.pane),o=P(i.options.type,Bi),(o||n.categoryField)&&Yn(r,e)&&(n=a.aggregateSeries(n,i)),l.push(n);a.srcSeries=s,a.series=l},aggregateSeries:function(e,t){var i,r,o,a,s,l=t.options,c=P(t.options.type,Bi),d=l.categories,u=l.srcCategories||d,h=e.data,p=[],f=t.range(),v=xn({},e),x=xn({},e),y=g;for(v.data=a=[],c&&(y=m),i=0;i<h.length;i++)r=e.categoryField?y(e.categoryField,h[i]):u[i],o=t.categoryIndex(r,f),o>-1&&(p[o]=p[o]||[],p[o].push(i));for(s=new an(x,Q.current,n.current),i=0;i<d.length;i++)a[i]=s.aggregatePoints(p[i],d[i]);return v},appendChart:function(e,t){for(var n=this,i=e.options.series,r=n.seriesCategoryAxis(i[0]),o=r.options.categories,a=dn.max(0,p(i)-o.length);a--;)o.push("");n.valueAxisRangeTracker.update(e.valueAxisRanges),Ht.fn.appendChart.call(n,e,t)},seriesPaneName:function(t){var n=this,i=n.options,r=t.axis,o=[].concat(i.valueAxis),a=e.grep(o,function(e){return e.name===r})[0],s=i.panes||[{}],l=(s[0]||{}).name||"default",c=(a||{}).pane||l;return c},seriesCategoryAxis:function(e){var t=this,n=e.categoryAxis,i=n?t.namedCategoryAxes[n]:t.categoryAxis;if(!i)throw Error("Unable to locate category axis with name "+n);return i},createBarChart:function(e,t){if(0!==e.length){var n=this,i=e[0],r=new st(n,{series:e,invertAxes:n.invertAxes,isStacked:i.stack&&e.length>1,gap:i.gap,spacing:i.spacing});n.appendChart(r,t)}},createBulletChart:function(e,t){if(0!==e.length){var n=this,i=e[0],r=new lt(n,{series:e,invertAxes:n.invertAxes,gap:i.gap,spacing:i.spacing});n.appendChart(r,t)}},createLineChart:function(e,t){if(0!==e.length){var n=this,i=e[0],r=new xt(n,{invertAxes:n.invertAxes,isStacked:i.stack&&e.length>1,series:e});n.appendChart(r,t)}},createAreaChart:function(e,t){if(0!==e.length){var n=this,i=e[0],r=new kt(n,{invertAxes:n.invertAxes,isStacked:i.stack&&e.length>1,series:e});n.appendChart(r,t)}},createOHLCChart:function(e,t){if(0!==e.length){var n=this,i=e[0],r=new Et(n,{invertAxes:n.invertAxes,gap:i.gap,series:e,spacing:i.spacing});n.appendChart(r,t)}},createCandlestickChart:function(e,t){if(0!==e.length){var n=this,i=e[0],r=new Bt(n,{invertAxes:n.invertAxes,gap:i.gap,series:e,spacing:i.spacing});n.appendChart(r,t)}},createBoxPlotChart:function(e,t){if(0!==e.length){var n=this,i=e[0],r=new It(n,{invertAxes:n.invertAxes,gap:i.gap,series:e,spacing:i.spacing});n.appendChart(r,t)}},axisRequiresRounding:function(e,t){var n,i,r=this,o=F(r.series,ko);for(n=0;n<o.length;n++)if(i=o[n].categoryAxis||"",i===e||!i&&0===t)return!0},createCategoryAxes:function(e){var t,n,i,r,o,a,s,l,c=this,d=c.invertAxes,u=[].concat(c.options.categoryAxis),h=[];for(t=0;t<u.length;t++)if(n=u[t],i=c.findPane(n.pane),Yn(i,e)){if(a=n.name,r=n.categories||[],o=n.type||"",n=xn({vertical:d,axisCrossingValue:d?lr:0},n),Gn(n.justified)||(n.justified=c.isJustified()),c.axisRequiresRounding(a,t)&&(n.justified=!1,n.roundToBaseUnit=!0),s=U(n,r[0])?new K(n):new Z(n),a){if(c.namedCategoryAxes[a])throw Error("Category axis with name "+a+" is already defined");c.namedCategoryAxes[a]=s}s.axisIndex=t,h.push(s),c.appendAxis(s)}l=c.categoryAxis||h[0],c.categoryAxis=l,d?c.axisY=l:c.axisX=l},isJustified:function(){var e,t,n=this,i=n.series;for(e=0;e<i.length;e++)if(t=i[e],!Yn(t.type,[oi,lo]))return!1;return!0},createValueAxes:function(e){var t,n,i,r,o,a,s,l=this,c=l.valueAxisRangeTracker,d=c.query(),u=[].concat(l.options.valueAxis),h=l.invertAxes,p={vertical:!h},f=[];for(s=0;s<u.length;s++)if(t=u[s],n=l.findPane(t.pane),Yn(n,e)){if(a=t.name,o=c.query(a)||d||{min:0,max:1},0===s&&o&&d&&(o.min=dn.min(o.min,d.min),o.max=dn.max(o.max,d.max)),i=new In(o.min,o.max,xn({},p,t)),a){if(l.namedValueAxes[a])throw Error("Value axis with name "+a+" is already defined");l.namedValueAxes[a]=i}i.axisIndex=s,f.push(i),l.appendAxis(i)}r=l.valueAxis||f[0],l.valueAxis=r,h?l.axisX=r:l.axisY=r},click:function(t,n){var i,r,o,a=this,s=t._eventCoordinates(n),l=new Ln(s.x,s.y),c=a.pointPane(l),d=[],u=[];if(c){for(i=c.axes,r=0;r<i.length;r++)o=i[r],o.getValue?M(u,o.getValue(l)):M(d,o.getCategory(l));0===d.length&&M(d,a.categoryAxis.getCategory(l)),d.length>0&&u.length>0&&t.trigger(Dr,{element:e(n.target),category:S(d),value:S(u)})}},pointPane:function(e){var t,n,i=this,r=i.panes;for(n=0;n<r.length;n++)if(t=r[n],t.contentBox.containsPoint(e))return t}}),jt=fn.extend({init:function(){var e=this;e.axisRanges={}},update:function(e){var t,n,i,r=this,o=r.axisRanges;for(i in e)t=o[i],n=e[i],o[i]=t=t||{min:lr,max:cr},t.min=dn.min(t.min,n.min),t.max=dn.max(t.max,n.max)},reset:function(e){this.axisRanges[e]=t},query:function(e){return this.axisRanges[e]}}),Ut=Ht.extend({init:function(e,t){var n=this;n.namedXAxes={},n.namedYAxes={},n.xAxisRangeTracker=new jt,n.yAxisRangeTracker=new jt,Ht.fn.init.call(n,e,t)},options:{xAxis:{},yAxis:{}},render:function(e){var t,n,i,r,o=this,a=o.groupSeriesByPane();for(e=e||o.panes,t=0;t<e.length;t++)n=e[t],i=a[n.options.name||"default"]||[],o.addToLegend(i),r=o.filterVisibleSeries(i),r&&(o.createScatterChart(F(r,Lr),n),o.createScatterLineChart(F(r,zr),n),o.createBubbleChart(F(r,mi),n));o.createAxes(e)},appendChart:function(e,t){var n=this;n.xAxisRangeTracker.update(e.xAxisRanges),n.yAxisRangeTracker.update(e.yAxisRanges),Ht.fn.appendChart.call(n,e,t)},removeAxis:function(e){var t=this,n=e.options.name;Ht.fn.removeAxis.call(t,e),e.options.vertical?(t.yAxisRangeTracker.reset(n),delete t.namedYAxes[n]):(t.xAxisRangeTracker.reset(n),delete t.namedXAxes[n]),e===t.axisX&&delete t.axisX,e===t.axisY&&delete t.axisY},seriesPaneName:function(t){var n=this,i=n.options,r=t.xAxis,o=[].concat(i.xAxis),a=e.grep(o,function(e){return e.name===r})[0],s=t.yAxis,l=[].concat(i.yAxis),c=e.grep(l,function(e){return e.name===s})[0],d=i.panes||[{}],u=d[0].name||"default",h=(a||{}).pane||(c||{}).pane||u;return h},createScatterChart:function(e,t){var n=this;e.length>0&&n.appendChart(new St(n,{series:e}),t)},createScatterLineChart:function(e,t){var n=this;e.length>0&&n.appendChart(new Tt(n,{series:e}),t)},createBubbleChart:function(e,t){var n=this;e.length>0&&n.appendChart(new Pt(n,{series:e}),t)},createXYAxis:function(e,t,n){var i,r,o,a,s,l,c,d=this,u=e.name,h=t?d.namedYAxes:d.namedXAxes,p=t?d.yAxisRangeTracker:d.xAxisRangeTracker,f=p.query(),g=p.query(u)||f||{min:0,max:1},m=xn({},e,{vertical:t}),v=d.series,x=[m.min,m.max];
for(r=0;r<v.length;r++)if(o=v[r],a=o[t?"yAxis":"xAxis"],a==m.name||0===n&&!a){s=Q.current.bindPoint(o,0).valueFields,x.push(s[t?"y":"x"]);break}for(0===n&&f&&(g.min=dn.min(g.min,f.min),g.max=dn.max(g.max,f.max)),c=0;c<x.length;c++)if(x[c]instanceof Date){l=!0;break}if(i=P(m.type,Bi)||!m.type&&l?new et(g.min,g.max,m):new In(g.min,g.max,m),u){if(h[u])throw Error((t?"Y":"X")+" axis with name "+u+" is already defined");h[u]=i}return d.appendAxis(i),i},createAxes:function(e){var t,n=this,i=n.options,r=[].concat(i.xAxis),o=[],a=[].concat(i.yAxis),s=[];sn(r,function(i){t=n.findPane(this.pane),Yn(t,e)&&o.push(n.createXYAxis(this,!1,i))}),sn(a,function(i){t=n.findPane(this.pane),Yn(t,e)&&s.push(n.createXYAxis(this,!0,i))}),n.axisX=n.axisX||o[0],n.axisY=n.axisY||s[0]},click:function(t,n){var i,r,o,a,s=this,l=t._eventCoordinates(n),c=new Ln(l.x,l.y),d=s.axes,u=d.length,h=[],p=[];for(i=0;u>i;i++)r=d[i],a=r.options.vertical?p:h,o=r.getValue(c),null!==o&&a.push(o);h.length>0&&p.length>0&&t.trigger(Dr,{element:e(n.target),x:S(h),y:S(p)})}}),Gt=Ht.extend({render:function(){var e=this,t=e.series;e.createPieChart(t)},createPieChart:function(e){var t=this,n=e[0],i=new Ot(t,{series:e,padding:n.padding,startAngle:n.startAngle,connectors:n.connectors,legend:t.options.legend});t.appendChart(i)},appendChart:function(e,t){Ht.fn.appendChart.call(this,e,t),jn(this.options.legend.items,e.legendItems)}}),Wt=Gt.extend({render:function(){var e=this,t=e.series;e.createDonutChart(t)},createDonutChart:function(e){var t=this,n=e[0],i=new Vt(t,{series:e,padding:n.padding,connectors:n.connectors,legend:t.options.legend});t.appendChart(i)}}),qt=Mn.extend({options:{easing:"easeOutElastic",duration:Ji},setup:function(){var e,t=this.element,n=t.config;t.options.singleSegment&&(n=t),this.endRadius=n.r,e=this.startRadius=n.ir||0,n.r=e},step:function(e){var t=this,n=t.element,i=t.endRadius,r=n.config,o=t.startRadius;n.options.singleSegment&&(r=n),r.r=Xn(o,i,e)}}),Qt=Mn.extend({options:{easing:"easeOutElastic",duration:Ji},setup:function(){var e=this.element;e.endRadius=e.radius,e.radius=0},step:function(e){var t=this.element,n=t.endRadius;t.radius=Xn(0,n,e)}}),Yt=Nn(ci,An),Xt=Nn(Tr,qt),$t=Nn(mi,Qt),Zt=fn.extend({init:function(e,t,n){var i=this;i.options=xn({},i.options,n),i.view=e,i.viewElement=t,i._overlays=[]},options:{fill:po,fillOpacity:.2,stroke:po,strokeWidth:1,strokeOpacity:.2},show:function(e){var t,n,i,r,o,a=this,s=a.view,l=a.viewElement,c=a._overlays;for(a.hide(),a._points=e=[].concat(e),i=0;i<e.length;i++)r=e[i],r&&(o=r.options,(!o||(o.highlight||{}).visible)&&(r.highlightOverlay&&(t=r.highlightOverlay(s,a.options),t&&(n=s.renderElement(t),l.appendChild(n),c.push(n))),r.toggleHighlight&&r.toggleHighlight(s)))},hide:function(){for(var e,t,n,i,r=this,o=r._points,a=r._overlays;a.length;)e=r._overlays.pop(),e.parentNode.removeChild(e);if(o)for(t=0;t<o.length;t++)n=o[t],n&&(i=n.options,(!i||(i.highlight||{}).visible)&&n.toggleHighlight&&n.toggleHighlight(r.view));r._points=[]}}),Jt=fn.extend({init:function(t,n){var i=this;i.options=xn({},i.options,n),i.chartElement=t,i.chartPadding={top:parseInt(t.css("paddingTop"),10),left:parseInt(t.css("paddingLeft"),10)},i.template=Jt.template,i.template||(i.template=Jt.template=ei("<div class='"+Pi+"tooltip' "+"style='display:none; position: absolute; font: #= d.font #;"+"border: #= d.border.width #px solid;"+"opacity: #= d.opacity #; filter: alpha(opacity=#= d.opacity * 100 #);'>"+"</div>")),i.element=e(i.template(i.options)).appendTo(t),i._moveProxy=hn(i.move,i)},options:{border:{width:1},opacity:1,animation:{duration:no}},move:function(){var e=this,t=e.options,n=e.element,i=e._offset();e.visible||n.css({top:i.top,left:i.left}),n.stop(!0,!0).show().animate({left:i.left,top:i.top},t.animation.duration),e.visible=!0},_offset:function(){var t=this,n=t.element,i=t.anchor,r=t.chartPadding,o=Kn(i.y+r.top),a=Kn(i.x+r.left),s=pn.support.zoomLevel(),l=e(window),c=window.pageYOffset||document.documentElement.scrollTop||0,d=window.pageXOffset||document.documentElement.scrollLeft||0;return c=t.chartElement.offset().top-c,d=t.chartElement.offset().left-d,o+=t._currentPosition(o+c,n.outerHeight(),l.outerHeight()/s),a+=t._currentPosition(a+d,n.outerWidth(),l.outerWidth()/s),{top:o,left:a}},setStyle:function(e){this.element.css({backgroundColor:e.background,borderColor:e.border.color||e.background,font:e.font,color:e.color,opacity:e.opacity,borderWidth:e.border.width})},show:function(){var e=this;e.showTimeout=setTimeout(e._moveProxy,ro)},hide:function(){var e=this;clearTimeout(e.showTimeout),e.visible&&(e._hideElement(),e.point=null,e.visible=!1,e.index=null)},_hideElement:function(){this.element.fadeOut()},_pointContent:function(e){var t,n,i=this,r=xn({},i.options,e.options.tooltip);return Gn(e.value)&&(t=""+e.value),r.template?(n=bn(r.template),t=n({value:e.value,category:e.category,series:e.series,dataItem:e.dataItem,percentage:e.percentage,low:e.low,high:e.high,xLow:e.xLow,xHigh:e.xHigh,yLow:e.yLow,yHigh:e.yHigh})):r.format&&(t=e.formatValue(r.format)),t},_pointAnchor:function(e){var t=this,n=t.element;return e.tooltipAnchor(n.outerWidth(),n.outerHeight())},_currentPosition:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),0>e&&(i=-e),i},_updateStyle:function(e,t){if(Gn(e.background)||(e.background=t.color),!Gn(e.color)){var n=this,i=n.element,r=new Dn(e.background).percBrightness();r>180?i.addClass(Pi+ao):i.removeClass(Pi+ao)}}}),Kt=Jt.extend({show:function(e){var t=this,n=xn({},t.options,e.options.tooltip);e&&(t.element.html(t._pointContent(e)),t.anchor=t._pointAnchor(e),t._updateStyle(n,e.options),t.setStyle(n),Jt.fn.show.call(t,e))}}),en=Jt.extend({init:function(e,t,n){var i=this;Jt.fn.init.call(i,e,n),i.plotArea=t},options:{sharedTemplate:"<table><th colspan='2'>#= categoryText #</th># for(var i = 0; i < points.length; i++) { ## var point = points[i]; #<tr><td>#= point.series.name #:</td><td>#= content(point) #</td></tr># } #</table>",categoryFormat:"{0:d}"},showAt:function(t,n){var i,r=this,o=r.options,a=r.plotArea,s=a.categoryAxis,l=s.pointCategoryIndex(n),c=s.getCategory(n),d=s.getSlot(l);t=e.grep(t,function(e){var t=e.series,n=!!t.name,i=t.tooltip&&t.tooltip.visible===!1;return n&&!i}),t.length>0&&(i=r._content(t,c),r.element.html(i),r.anchor=r._slotAnchor(n,d),r._updateStyle(o,t[0].options),r.setStyle(o),Jt.fn.show.call(r))},_slotAnchor:function(e,t){var n,i=this,r=i.plotArea,o=r.categoryAxis,a=e.y-i.element.height()/2;return n=o.options.vertical?Ln(e.x,a):Ln(t.center().x,a)},_content:function(e,t){var n,i,r=this;return n=pn.template(r.options.sharedTemplate),i=n({points:e,category:t,categoryText:Un(r.options.categoryFormat,t),content:r._pointContent})}}),tn=Pn.extend({init:function(e,t){var n=this;Pn.fn.init.call(n,t),n.axis=e,n.options.id||(n.options.id=ti()),n._visible=!1,n.stickyMode=e instanceof Z},options:{color:hi,width:1,zIndex:-1,tooltip:{visible:!1}},repaint:function(){var e=this,t=e.element;e.getViewElements(e._view),t=e.element,t.refresh(qn(e.options.id))},showAt:function(e){var t=this;t.updateAxisReference(),t._visible=!0,t.point=e,t.repaint(),t.options.tooltip.visible&&(t.tooltip||(t.tooltip=new nn(t,xn({},t.options.tooltip,{stickyMode:t.stickyMode}))),t.tooltip.showAt(e))},hide:function(){var e=this;e._visible&&(e._visible=!1,e.repaint(),e.tooltip&&e.tooltip.hide())},linePoints:function(){var e,t,n,i=this,r=i.axis,o=r.options.vertical,a=i.getBox(),s=i.point,l=o?go:fo;return t=Ln(a.x1,a.y1),n=o?Ln(a.x2,a.y1):Ln(a.x1,a.y2),s&&(i.stickyMode?(e=r.getSlot(r.pointCategoryIndex(s)),t[l]=n[l]=e.center()[l]):t[l]=n[l]=s[l]),i.box=a,[t,n]},getBox:function(){var e,t,n,i=this,r=i.axis,o=r.pane.axes,a=o.length,s=r.options.vertical,l=r.lineBox().clone(),c=s?fo:go;for(n=0;a>n;n++)t=o[n],t.options.vertical!=s&&(e?e.wrap(t.lineBox()):e=t.lineBox().clone());return l[c+1]=e[c+1],l[c+2]=e[c+2],l},getViewElements:function(e){var t=this,n=t.options,i=[];return t.points=t.linePoints(),t.element=e.createPolyline(t.points,!1,{id:n.id,stroke:n.color,strokeWidth:n.width,strokeOpacity:n.opacity,dashType:n.dashType,zIndex:n.zIndex,visible:t._visible}),i.push(t.element),t._view=e,jn(i,Pn.fn.getViewElements.call(t,e)),i},updateAxisReference:function(){var e,t,n=this,i=n.axis,r=i.plotArea,o=r.axes;for(t=0;t<o.length;t++)if(e=o[t],Gn(i.axisIndex)&&i instanceof In!=e instanceof Z&&i.axisIndex===e.axisIndex){n.axis=e;break}}}),nn=Jt.extend({init:function(e,t){var n=this,i=e.axis.getRoot().parent.element;n.crosshair=e,Jt.fn.init.call(n,i,xn({},n.options,{background:e.axis.plotArea.options.seriesColors[0]},t)),n._updateStyle(n.options,{}),n.setStyle(n.options)},options:{padding:10},showAt:function(e){var t=this,n=t.element;t.point=e,t.element.html(t.content(e)),t.anchor=t.getAnchor(n.outerWidth(),n.outerHeight()),t.move()},move:function(){var e=this,t=e.element,n=e._offset();t.css({top:n.top,left:n.left}).show()},content:function(e){var t,n,i,r=this,o=r.options,a=r.crosshair.axis,s=a.options;return n=t=a[o.stickyMode?"getCategory":"getValue"](e),o.template?(i=bn(o.template),t=i({value:n})):o.format?t=Un(o.format,n):s.type===Bi&&(t=Un(s.labels.dateFormats[s.baseUnit],n)),t},getAnchor:function(e,t){var n,i,r=this,o=r.options,a=o.position,s=r.crosshair.axis.options.vertical,l=r.crosshair.points,c=l[0],d=l[1],u=e/2,h=t/2,p=o.padding;return s?a===nr?(n=c.x-e-p,i=c.y-h):(n=d.x+p,i=d.y-h):a===fi?(n=d.x-u,i=d.y+p):(n=c.x-u,i=c.y-t-p),Ln(n,i)},hide:function(){this.element.hide(),this.point=null}}),rn={min:function(e){var t,n,i=lr,r=e.length;for(t=0;r>t;t++)n=e[t],I(n)&&(i=dn.min(i,n));return i===lr?e[0]:i},max:function(e){var t,n,i=cr,r=e.length;for(t=0;r>t;t++)n=e[t],I(n)&&(i=dn.max(i,n));return i===cr?e[0]:i},sum:function(e){var t,n,i=e.length,r=0;for(t=0;i>t;t++)n=e[t],I(n)&&(r+=n);return r},count:function(e){var t,n,i=e.length,r=0;for(t=0;i>t;t++)n=e[t],null!==n&&Gn(n)&&r++;return r},avg:function(e){var t=e[0],n=L(e);return n>0&&(t=rn.sum(e)/n),t},first:function(e){var t,n,i=e.length;for(t=0;i>t;t++)if(n=e[t],null!==n&&Gn(n))return n;return e[0]}},n.prototype={register:function(e,t){for(var n=0;n<e.length;n++)this._defaults[e[n]]=t},query:function(e){return this._defaults[e]}},n.current=new n,on=gn.extend({init:function(t,n,i){var r,o,a=this,s=t.element,l=n.lineBox(),c=a.getValueAxis(n),d=c.lineBox(),u="."+Pi;gn.fn.init.call(a),a.options=xn({},a.options,i),i=a.options,a.chart=t,a.chartElement=s,a.categoryAxis=n,a._dateAxis=a.categoryAxis instanceof K,a.valueAxis=c,a._dateAxis&&xn(i,{min:v(i.min),max:v(i.max),from:v(i.from),to:v(i.to)}),a.template=on.template,a.template||(a.template=on.template=ei("<div class='"+Pi+"selector' "+"style='width: #= d.width #px; height: #= d.height #px;"+" top: #= d.offset.top #px; left: #= d.offset.left #px;'>"+"<div class='"+Pi+"mask'></div>"+"<div class='"+Pi+"mask'></div>"+"<div class='"+Pi+"selection'>"+"<div class='"+Pi+"selection-bg'></div>"+"<div class='"+Pi+"handle "+Pi+"leftHandle'><div></div></div>"+"<div class='"+Pi+"handle "+Pi+"rightHandle'><div></div></div>"+"</div></div>")),o={left:parseInt(s.css("paddingLeft"),10),right:parseInt(s.css("paddingTop"),10)},a.options=xn({},{width:l.width(),height:d.height(),padding:o,offset:{left:d.x2+o.left,top:d.y1+o.right},from:i.min,to:i.max},i),a.options.visible&&(a.wrapper=r=e(a.template(a.options)).appendTo(s),a.selection=r.find(u+"selection"),a.leftMask=r.find(u+"mask").first(),a.rightMask=r.find(u+"mask").last(),a.leftHandle=r.find(u+"leftHandle"),a.rightHandle=r.find(u+"rightHandle"),a.options.selection={border:{left:parseFloat(a.selection.css("border-left-width"),10),right:parseFloat(a.selection.css("border-right-width"),10)}},a.leftHandle.css("top",(a.selection.height()-a.leftHandle.height())/2),a.rightHandle.css("top",(a.selection.height()-a.rightHandle.height())/2),a.set(a._index(i.from),a._index(i.to)),a.bind(a.events,a.options),a.wrapper[0].style.cssText=a.wrapper[0].style.cssText,a.wrapper.on(yr,hn(a._mousewheel,a)),pn.UserEvents?a.userEvents=new pn.UserEvents(a.wrapper,{global:!0,stopPropagation:!0,multiTouch:!0,start:hn(a._start,a),move:hn(a._move,a),end:hn(a._end,a),tap:hn(a._tap,a),gesturestart:hn(a._gesturechange,a),gesturechange:hn(a._gesturechange,a)}):a.leftHandle.add(a.rightHandle).removeClass(Pi+"handle"))},events:[Rr,Vr,Fr],options:{visible:!0,mousewheel:{zoom:pi},min:cr,max:lr},destroy:function(){var e=this,t=e.userEvents;t&&t.destroy()},_rangeEventArgs:function(e){var t=this;return{axis:t.categoryAxis.options,from:t._value(e.from),to:t._value(e.to)}},_start:function(t){var n,i=this,r=i.options,o=e(t.event.target);!i._state&&o&&(i.chart._unsetActivePoint(),i._state={moveTarget:o.parents(".k-handle").add(o).first(),startLocation:t.x?t.x.location:0,range:{from:i._index(r.from),to:i._index(r.to)}},n=i._rangeEventArgs({from:i._index(r.from),to:i._index(r.to)}),i.trigger(Rr,n)&&(i.userEvents.cancel(),i._state=null))},_move:function(e){if(this._state){var t=this,n=t._state,i=t.options,r=t.categoryAxis.options.categories,o=t._index(i.from),a=t._index(i.to),s=t._index(i.min),l=t._index(i.max),c=n.startLocation-e.x.location,d=n.range,u={from:d.from,to:d.to},h=d.to-d.from,p=n.moveTarget,f=t.wrapper.width()/(r.length-1),g=dn.round(c/f);p&&(e.preventDefault(),p.is(".k-selection, .k-selection-bg")?(d.from=dn.min(dn.max(s,o-g),l-h),d.to=dn.min(d.from+h,l)):p.is(".k-leftHandle")?(d.from=dn.min(dn.max(s,o-g),l-1),d.to=dn.max(d.from+1,d.to)):p.is(".k-rightHandle")&&(d.to=dn.min(dn.max(s+1,a-g),l),d.from=dn.min(d.to-1,d.from)),(d.from!==u.from||d.to!==u.to)&&(t.move(d.from,d.to),t.trigger(Vr,t._rangeEventArgs(d))))}},_end:function(){var e=this,t=e._state.range;delete e._state,e.set(t.from,t.to),e.trigger(Fr,e._rangeEventArgs(t))},_gesturechange:function(e){if(this._state){var t=this,n=t.chart,i=t._state,r=t.options,o=t.categoryAxis,a=i.range,s=n._toModelCoordinates(e.touches[0].x.location).x,l=n._toModelCoordinates(e.touches[1].x.location).x,c=dn.min(s,l),d=dn.max(s,l);e.preventDefault(),i.moveTarget=null,a.from=o.pointCategoryIndex(new _n.Point2D(c))||r.min,a.to=o.pointCategoryIndex(new _n.Point2D(d))||r.max,t.move(a.from,a.to)}},_tap:function(e){var t=this,n=t.options,i=t.chart._eventCoordinates(e),r=t.categoryAxis,o=r.pointCategoryIndex(new _n.Point2D(i.x,r.box.y1)),a=t._index(n.from),s=t._index(n.to),l=t._index(n.min),c=t._index(n.max),d=s-a,u=a+d/2,h=dn.round(u-o),p={},f=3===e.event.which;t._state||f||(e.preventDefault(),t.chart._unsetActivePoint(),r.options.justified||h--,p.from=dn.min(dn.max(l,a-h),c-d),p.to=dn.min(p.from+d,c),t._start(e),t._state&&(t._state.range=p,t.trigger(Vr,t._rangeEventArgs(p)),t._end()))},_mousewheel:function(e){var t,n=this,i=n.options,r=Jn(e);n._start({event:{target:n.selection}}),n._state&&(t=n._state.range,e.preventDefault(),e.stopPropagation(),dn.abs(r)>1&&(r*=xo),i.mousewheel.reverse&&(r*=-1),n.expand(r)&&n.trigger(Vr,{axis:n.categoryAxis.options,delta:r,originalEvent:e,from:n._value(t.from),to:n._value(t.to)}),n._mwTimeout&&clearTimeout(n._mwTimeout),n._mwTimeout=setTimeout(function(){n._end()},xr))},_index:function(e){var t=this,n=t.categoryAxis,i=n.options.categories,r=e;return e instanceof Date&&(r=E(e,i),!n.options.justified&&e>$n(i)&&(r+=1)),r},_value:function(e){var t=this,n=this.categoryAxis,i=n.options.categories,r=e;return t._dateAxis&&(r=e>i.length-1?t.options.max:i[e]),r},_slot:function(e){var t=this,n=this.categoryAxis;return n.getSlot(t._index(e))},move:function(e,t){var n,i,r,o,a=this,s=a.options,l=s.offset,c=s.padding,d=s.selection.border;r=a._slot(e),n=Kn(r.x1-l.left+c.left),a.leftMask.width(n),a.selection.css("left",n),r=a._slot(t),i=Kn(s.width-(r.x1-l.left+c.left)),a.rightMask.width(i),o=s.width-i,o!=s.width&&(o+=d.right),a.rightMask.css("left",o),a.selection.width(dn.max(s.width-(n+i)-d.right,0))},set:function(e,t){var n=this,i=n.options,r=n._index(i.min),o=n._index(i.max);e=Zn(n._index(e),r,o),t=Zn(n._index(t),e+1,o),i.visible&&n.move(e,t),i.from=n._value(e),i.to=n._value(t)},expand:function(e){var n=this,i=n.options,r=n._index(i.min),o=n._index(i.max),a=i.mousewheel.zoom,s=n._index(i.from),l=n._index(i.to),c={from:s,to:l},d=xn({},c);return n._state&&(c=n._state.range),a!==Mr&&(c.from=Zn(Zn(s-e,0,l-1),r,o)),a!==nr&&(c.to=Zn(Zn(l+e,c.from+1,o),r,o)),c.from!==d.from||c.to!==d.to?(n.set(c.from,c.to),!0):t},getValueAxis:function(e){var t,n,i=e.pane.axes,r=i.length;for(t=0;r>t;t++)if(n=i[t],n.options.vertical!==e.options.vertical)return n}}),an=function(e,t,n){var i,r,o,a=this,s=t.canonicalFields(e),l=t.valueFields(e),c=t.sourceFields(e,s),d=a._seriesFields=[],u=n.query(e.type),h=e.aggregate||u;for(a._series=e,a._binder=t,i=0;i<s.length;i++){if(o=s[i],typeof h===kr)r=h[o];else{if(0!==i&&!Yn(o,l))break;r=h}r&&d.push({canonicalName:o,name:c[i],transform:wn(r)?r:rn[r]})}},an.prototype={aggregatePoints:function(e,t){var n,i,r,o,a=this,s=a._bindPoints(e||[]),l=a._series,c=a._seriesFields,d=s.dataItems[0],u={};for(ln(d)||(u=un(u,d)),n=0;n<c.length;n++){if(i=c[n],r=a._bindField(s.values,i.canonicalName),o=i.transform(r,l,s.dataItems,t),null!==o&&typeof o===kr&&!Gn(o.length)){u=o;break}Gn(o)&&(W(i.name,u),pn.setter(i.name)(u,o))}return u},_bindPoints:function(e){var t,n,i=this,r=i._binder,o=i._series,a=[],s=[];for(t=0;t<e.length;t++)n=e[t],a.push(r.bindPoint(o,n)),s.push(o.data[n]);return{values:a,dataItems:s}},_bindField:function(e,t){var n,i,r,o,a=[],s=e.length;for(n=0;s>n;n++)i=e[n],o=i.valueFields,r=Gn(o[t])?o[t]:i.fields[t],a.push(r);return a}},un(e.easing,{easeOutElastic:function(e,t,n,i){var r=1.70158,o=0,a=i;return 0===e?n:1===e?n+i:(o||(o=.5),a<dn.abs(i)?(a=i,r=o/4):r=o/(2*dn.PI)*dn.asin(i/a),a*dn.pow(2,-10*e)*dn.sin((1*e-r)*1.1*dn.PI/o)+i+n)}}),_n.ui.plugin(Ao),q.current.register(Nt,[ci,Ai,or,uo,oi,lo,xi,Cr,vi,co,gi]),q.current.register(Ut,[Lr,zr,mi]),q.current.register(Gt,[Tr]),q.current.register(Wt,[Ri]),Q.current.register([ci,Ai,or,uo,oi,lo],[so],[yi,Ci,_r,ji,Ui]),n.current.register([ci,Ai,or,uo,oi,lo],{value:"max",color:"first",noteText:"first",errorLow:"min",errorHigh:"max"}),Q.current.register([Lr,zr,mi],[fo,go],[Ci,_r,Gi,Wi,qi,Qi]),Q.current.register([mi],[fo,go,"size"],[Ci,yi,_r]),Q.current.register([xi,Cr],["open","high","low","close"],[yi,Ci,"downColor",_r]),n.current.register([xi,Cr],{open:"max",high:"max",low:"min",close:"max",color:"first",downColor:"first",noteText:"first"}),Q.current.register([gi],["lower","q1","median","q3","upper","mean","outliers"],[yi,Ci,_r]),n.current.register([gi],{lower:"max",q1:"max",median:"max",q3:"max",upper:"max",mean:"max",outliers:"first",color:"first",noteText:"first"}),Q.current.register([vi,co],["current","target"],[yi,Ci,"visibleInLegend",_r]),n.current.register([vi,co],{current:"max",target:"max",color:"first",noteText:"first"}),Q.current.register([Tr,Ri],[so],[yi,Ci,"explode","visibleInLegend","visible"]),xn(_n,{EQUALLY_SPACED_SERIES:ko,Aggregates:rn,AreaChart:kt,AreaSegment:_t,AxisGroupRangeTracker:jt,Bar:rt,BarAnimationDecorator:Yt,BarChart:st,BarLabel:Y,BubbleAnimationDecorator:$t,BubbleChart:Pt,BulletChart:lt,CandlestickChart:Bt,Candlestick:Dt,CategoricalChart:at,CategoricalErrorBar:ht,CategoricalPlotArea:Nt,CategoryAxis:Z,ClusterLayout:tt,Crosshair:tn,CrosshairTooltip:nn,DateCategoryAxis:K,DateValueAxis:et,DefaultAggregates:n,DonutChart:Vt,DonutPlotArea:Wt,DonutSegment:Rt,ErrorBarBase:ut,ErrorRangeCalculator:ot,Highlight:Zt,SharedTooltip:en,Legend:$,LineChart:xt,LinePoint:ft,LineSegment:mt,Pane:Ft,PieAnimation:qt,PieAnimationDecorator:Xt,PieChart:Ot,PiePlotArea:Gt,PieSegment:zt,PlotAreaBase:Ht,PlotAreaFactory:q,PointEventsMixin:it,ScatterChart:St,ScatterErrorBar:pt,ScatterLineChart:Tt,Selection:on,SeriesAggregator:an,SeriesBinder:Q,ShapeElement:Rn,SplineSegment:wt,SplineAreaSegment:Ct,StackLayout:nt,Tooltip:Kt,OHLCChart:Et,OHLCPoint:Mt,XYPlotArea:Ut,addDuration:y,areNumbers:z,axisGroupBox:T,categoriesCount:p,ceilDate:_,countNumbers:L,duration:A,ensureTree:W,indexOf:H,isNumber:I,floorDate:b,filterSeriesByType:F,lteDateIndex:E,evalOptions:R,singleItemOrArray:S,sortDates:N,sparseArrayLimits:o,startOfWeek:w,transpose:G,toDate:v,toTime:x,uniqueDates:j})}(window.kendo.jQuery),function(e){function t(e,t){return e.value.x-t.value.x}function n(e,t){return 180-b.abs(b.abs(e-t)-180)}var i,r,o,a,s,l,c,d,u,h,p,f,g,m,v,x,y,w,b=Math,_=window.kendo,k=_.deepExtend,C=_.dataviz,A=C.AreaSegment,S=C.Axis,T=C.AxisGroupRangeTracker,P=C.BarChart,D=C.Box2D,B=C.CategoryAxis,M=C.CategoricalChart,E=C.CategoricalPlotArea,I=C.ChartElement,L=C.CurveProcessor,z=C.DonutSegment,O=C.LineChart,R=C.LineSegment,V=C.NumericAxis,F=C.PlotAreaBase,H=C.PlotAreaFactory,N=C.Point2D,j=C.Ring,U=C.ScatterChart,G=C.ScatterLineChart,W=C.SeriesBinder,q=C.SplineSegment,Q=C.SplineAreaSegment,Y=C.append,X=C.getSpacing,$=C.filterSeriesByType,Z=C.limitValue,J=C.round,K="arc",et="#000",tt=C.COORD_PRECISION,nt=.15,it=b.PI/180,rt="plotAreaClick",ot="polarArea",at="polarLine",st="polarScatter",lt="radarArea",ct="radarColumn",dt="radarLine",ut="smooth",ht="x",pt="y",ft="zero",gt=[ot,at,st],mt=[lt,ct,dt],vt={renderGridLines:function(e,t){var n,i,r=this,o=r.options,a=b.abs(r.box.center().y-t.lineBox().y1),s=!1,l=[];return o.majorGridLines.visible&&(n=r.majorGridLineAngles(t),s=!0,l=r.gridLineElements(e,n,a,o.majorGridLines)),o.minorGridLines.visible&&(i=r.minorGridLineAngles(t,s),Y(l,r.gridLineElements(e,i,a,o.minorGridLines))),l},gridLineElements:function(e,t,n,i){var r,o,a,s=this,l=s.box.center(),c=s.plotArea.options.modelId,d=[];for(a={data:{modelId:c},zIndex:-1,strokeWidth:i.width,stroke:i.color,dashType:i.dashType},r=0;r<t.length;r++)o=N.onCircle(l,t[r],n),d.push(e.createLine(l.x,l.y,o.x,o.y,a));return d},gridLineAngles:function(t,n,i){var r=this,o=r.intervals(n,i);return e.map(o,function(e){var n=r.intervalAngle(e);return t.options.visible&&90===n?undefined:n})}},xt=B.extend({options:{startAngle:90,labels:{margin:X(10)},majorGridLines:{visible:!0},justified:!0},range:function(){return{min:0,max:this.options.categories.length}},reflow:function(e){this.box=e,this.reflowLabels()},lineBox:function(){return this.box},reflowLabels:function(){var e,t,n=this,i=new D,r=n.labels;for(t=0;t<r.length;t++)r[t].reflow(i),e=r[t].box,r[t].reflow(n.getSlot(t).adjacentBox(0,e.width(),e.height()))},intervals:function(e,t){var n,i=this,r=i.options,o=r.categories.length,a=0,s=0,l=o/e||1,c=360/l,d=[];for(t&&(s=360/(o/t)),n=0;l>n;n++)a=J(a,tt),0!==a%s&&d.push(a%360),r.reverse?a=360+a-c:a+=c;return d},majorIntervals:function(){return this.intervals(1)},minorIntervals:function(){return this.intervals(.5)},intervalAngle:function(e){return(360+e+this.options.startAngle)%360},majorAngles:function(){return e.map(this.majorIntervals(),e.proxy(this.intervalAngle,this))},renderLine:function(){return[]},majorGridLineAngles:function(e){return this.gridLineAngles(e,1)},minorGridLineAngles:function(e,t){return this.gridLineAngles(e,.5,t?1:0)},renderPlotBands:function(e){var t,n,i,r,o,a,s=this,l=s.options,c=l.plotBands||[],d=[];for(t=0;t<c.length;t++)n=c[t],i=s.plotBandSlot(n),r=s.getSlot(n.from),o=n.from-b.floor(n.from),i.startAngle+=o*r.angle,a=b.ceil(n.to)-n.to,i.angle-=(a+o)*r.angle,d.push(e.createSector(i,{fill:n.color,fillOpacity:n.opacity,strokeOpacity:n.opacity,zIndex:-1}));return d},plotBandSlot:function(e){return this.getSlot(e.from,e.to-1)},getSlot:function(e,t){var n,i,r,o=this,a=o.options,s=a.justified,l=o.box,c=o.majorAngles(),d=c.length,u=360/d;return a.reverse&&!s&&(e=(e+1)%d),e=Z(b.floor(e),0,d-1),i=c[e],s&&(i-=u/2,0>i&&(i+=360)),t=Z(b.ceil(t||e),e,d-1),n=t-e+1,r=u*n,new j(l.center(),0,l.height()/2,i,r)},pointCategoryIndex:function(e){var t,n,i=this,r=null,o=i.options.categories.length;for(t=0;o>t;t++)if(n=i.getSlot(t),n.containsPoint(e)){r=t;break}return r}});k(xt.fn,vt),i=V.extend({options:{majorGridLines:{visible:!0}},renderPlotBands:function(e){var t,n,i,r,o,a=this,s=a.options,l=s.plotBands||[],c=[],d=s.majorGridLines.type,u=a.plotArea.polarAxis,h=u.majorAngles(),p=u.box.center();for(t=0;t<l.length;t++)n=l[t],i={fill:n.color,fillOpacity:n.opacity,strokeOpacity:n.opacity,zIndex:-1},r=a.getSlot(n.from,n.to),o=new j(p,p.y-r.y2,p.y-r.y1,0,360),c.push(d===K?e.createRing(o,i):e.createPolyline(a.plotBandPoints(o,h),!0,i));return c},plotBandPoints:function(e,t){var n,i=[],r=[];for(n=0;n<t.length;n++)i.push(N.onCircle(e.c,t[n],e.ir)),r.push(N.onCircle(e.c,t[n],e.r));return i.reverse(),i.push(i[0]),r.push(r[0]),r.concat(i)},renderGridLines:function(e,t){var n,i=this,r=i.options,o=i.getTickPositions(r.majorUnit),a=t.majorAngles(),s=0,l=t.box.center(),c=[];return r.majorGridLines.visible&&(s=r.majorUnit,c=i.gridLineElements(e,l,o,a,r.majorGridLines)),r.minorGridLines.visible&&(n=i.getTickPositions(r.minorUnit,s),Y(c,i.gridLineElements(e,l,n,a,r.minorGridLines))),c},gridLineElements:function(e,t,n,i,r){var o,a,s,l,c,d=this,u=d.plotArea.options.modelId,h=[];for(o={data:{modelId:u},zIndex:-1,strokeWidth:r.width,stroke:r.color,dashType:r.dashType},l=0;l<n.length;l++)if(s=t.y-n[l],s>0)if(r.type===K)h.push(e.createCircle(t,s,o));else{for(a=[],c=0;c<i.length;c++)a.push(N.onCircle(t,i[c],s));h.push(e.createPolyline(a,!0,o))}return h},getValue:function(e){var t,i,r,o,a,s,l,c=this,d=c.options,u=c.lineBox(),h=c.plotArea.polarAxis,p=h.majorAngles(),f=h.box.center(),g=e.distanceTo(f),m=g;return d.majorGridLines.type!==K&&p.length>1&&(t=e.x-f.x,i=e.y-f.y,r=(b.atan2(i,t)/it+540)%360,p.sort(function(e,t){return n(e,r)-n(t,r)}),o=n(p[0],p[1])/2,a=n(r,p[0]),s=90-o,l=180-a-s,m=g*(b.sin(l*it)/b.sin(s*it))),V.fn.getValue.call(c,new N(u.x1,u.y2-m))}}),r=S.extend({init:function(e){var t=this;S.fn.init.call(t,e),e=t.options,e.minorUnit=e.minorUnit||t.options.majorUnit/2},options:{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:X(10)},majorGridLines:{color:et,visible:!0},minorGridLines:{color:"#aaa"}},getDivisions:function(e){return V.fn.getDivisions.call(this,e)-1},reflow:function(e){this.box=e,this.reflowLabels()},reflowLabels:function(){var e,t,n=this,i=new D,r=n.majorIntervals(),o=n.labels;for(t=0;t<o.length;t++)o[t].reflow(i),e=o[t].box,o[t].reflow(n.getSlot(r[t]).adjacentBox(0,e.width(),e.height()))},lineBox:function(){return this.box},intervals:function(e,t){var n,i=this,r=i.options,o=i.getDivisions(e),a=r.min,s=[];for(t&&(t/=e),n=0;o>n;n++)0!==n%t&&s.push((360+a)%360),a+=e;return s},majorIntervals:function(){return this.intervals(this.options.majorUnit)},minorIntervals:function(){return this.intervals(this.options.minorUnit)},intervalAngle:function(e){return(360+e-this.options.startAngle)%360},majorAngles:xt.fn.majorAngles,renderLine:function(){return[]},majorGridLineAngles:function(e){return this.gridLineAngles(e,this.options.majorUnit)},minorGridLineAngles:function(e,t){return this.gridLineAngles(e,this.options.minorUnit,t?this.options.majorUnit:0)},renderPlotBands:xt.fn.renderPlotBands,plotBandSlot:function(e){return this.getSlot(e.from,e.to)},getSlot:function(e,t){var n,i=this,r=i.options,o=r.startAngle,a=i.box;return e=Z(e,r.min,r.max),t=Z(t||e,e,r.max),r.reverse&&(e*=-1,t*=-1),e=(540-e-o)%360,t=(540-t-o)%360,e>t&&(n=e,e=t,t=n),new j(a.center(),0,a.height()/2,e,t-e)},getValue:function(e){var t=this,n=t.options,i=t.box.center(),r=e.x-i.x,o=e.y-i.y,a=b.round(b.atan2(o,r)/it),s=n.startAngle;return n.reverse||(a*=-1,s*=-1),(a+s+360)%360},labelsCount:V.fn.labelsCount,createAxisLabel:V.fn.createAxisLabel}),k(r.fn,vt),o=I.extend({options:{gap:1,spacing:0},reflow:function(e){var t,n,i=this,r=i.options,o=i.children,a=r.gap,s=r.spacing,l=o.length,c=l+a+s*(l-1),d=e.angle/c,u=e.startAngle+d*(a/2);for(n=0;l>n;n++)t=e.clone(),t.startAngle=u,t.angle=d,o[n].sector&&(t.r=o[n].sector.r),o[n].reflow(t),o[n].sector=t,u+=d+d*s}}),a=I.extend({reflow:function(e){var t,n,i,r=this,o=r.options.isReversed,a=r.children,s=a.length,l=o?s-1:0,c=o?-1:1;for(r.box=new D,i=l;i>=0&&s>i;i+=c)t=a[i].sector,t.startAngle=e.startAngle,t.angle=e.angle,i!==l&&(n=a[o?i+1:i-1].sector,t.ir=n.r,t.r+=t.ir)}}),s=z.extend({init:function(e,t){z.fn.init.call(this,e,null,t)},options:{overlay:{gradient:null},labels:{distance:10}}}),l=P.extend({pointType:function(){return s},clusterType:function(){return o},stackType:function(){return a},valueSlot:function(e,t){return e.getSlot(t)},categorySlot:function(e,t){return e.getSlot(t)},pointSlot:function(e,t){var n=e.clone(),i=e.c.y-t.y1;return n.r=i,n},reflow:M.fn.reflow,reflowPoint:function(e,t){e.sector=t,e.reflow()}}),c=O.extend({pointSlot:function(e,t){var n=e.c.y-t.y1,i=N.onCircle(e.c,e.middle(),n);return new D(i.x,i.y,i.x,i.y)},createSegment:function(e,t,n){var i,r,o=t.style;return r=o==ut?q:R,i=new r(e,t,n),e.length===t.data.length&&(i.options.closed=!0),i}}),d=A.extend({points:function(){return R.fn.points.call(this,this.stackPoints)}}),u=Q.extend({areaPoints:function(){return[]}}),h=c.extend({createSegment:function(e,t,n,i){var r,o,a=this,s=a.options,l=s.isStacked,c=(t.line||{}).style;return c===ut?(o=new u(e,i,l,t,n),o.options.closed=!0):(l&&n>0&&i&&(r=i.linePoints.slice(0).reverse()),e.push(e[0]),o=new d(e,r,t,n)),o},seriesMissingValues:function(e){return e.missingValues||ft}}),p=U.extend({pointSlot:function(e,t){var n=e.c.y-t.y1,i=N.onCircle(e.c,e.startAngle,n);return new D(i.x,i.y,i.x,i.y)}}),f=G.extend({pointSlot:p.fn.pointSlot}),g=A.extend({points:function(){var e=this,t=e.parent,n=t.plotArea,i=n.polarAxis,r=i.box.center(),o=e.stackPoints,a=R.fn.points.call(e,o);return a.unshift(r),a.push(r),a}}),m=Q.extend({areaPoints:function(){var e=this,t=e.parent,n=t.plotArea,i=n.polarAxis,r=i.box.center();return[r]},points:function(){var e,t=this,n=t.parent,i=n.plotArea,r=i.polarAxis,o=r.box.center(),a=new L(!1),s=R.fn.points.call(this);return s.push(o),e=a.process(s),e.splice(e.length-3,e.length-1),t.curvePoints=e,e}}),v=f.extend({createSegment:function(e,t,n){var i,r=(t.line||{}).style;return i=r==ut?new m(e,null,!1,t,n):new g(e,[],t,n)},seriesMissingValues:function(e){return e.missingValues||ft},sortPoints:function(e){return e.sort(t)}}),x=F.extend({init:function(e,t){var n=this;n.valueAxisRangeTracker=new T,F.fn.init.call(n,e,t)},render:function(){var e=this;e.addToLegend(e.series),e.createPolarAxis(),e.createCharts(),e.createValueAxis()},createValueAxis:function(){var e,t,n=this,r=n.valueAxisRangeTracker,o=r.query();e=r.query(name)||o||{min:0,max:1},e&&o&&(e.min=b.min(e.min,o.min),e.max=b.max(e.max,o.max)),t=new i(e.min,e.max,n.valueAxisOptions({roundToMajorUnit:!1})),n.valueAxis=t,n.appendAxis(t)},reflowAxes:function(){var e,t=this,n=t.options.plotArea,i=t.valueAxis,r=t.polarAxis,o=t.box,a=b.min(o.width(),o.height())*nt,s=X(n.padding||{},a),l=o.clone().unpad(s),c=l.clone().shrink(0,l.height()/2);r.reflow(l),i.reflow(c),e=i.lineBox().height()-i.box.height(),i.reflow(i.box.unpad({top:e})),t.axisBox=l,t.alignAxes(l)},alignAxes:function(){var e=this,t=e.valueAxis,n=t.getSlot(t.options.min),i=t.options.reverse?2:1,r=e.polarAxis.getSlot(0).c,o=t.box.translate(r.x-n[ht+i],r.y-n[pt+i]);t.reflow(o)},backgroundBox:function(){return this.box}}),y=x.extend({options:{categoryAxis:{categories:[]},valueAxis:{}},createPolarAxis:function(){var e,t=this;e=new xt(t.options.categoryAxis),t.polarAxis=e,t.categoryAxis=e,t.appendAxis(e)},valueAxisOptions:function(e){var t=this;return t._hasBarCharts&&k(e,{majorGridLines:{type:K},minorGridLines:{type:K}}),k(e,t.options.valueAxis)},appendChart:E.fn.appendChart,createCharts:function(){var e=this,t=e.filterVisibleSeries(e.series),n=e.panes[0];e.createAreaChart($(t,[lt]),n),e.createLineChart($(t,[dt]),n),e.createBarChart($(t,[ct]),n)},createAreaChart:function(e,t){if(0!==e.length){var n=this,i=e[0],r=n.filterVisibleSeries(e),o=new h(n,{isStacked:i.stack&&r.length>1,series:e});n.appendChart(o,t)}},createLineChart:function(e,t){if(0!==e.length){var n=this,i=e[0],r=n.filterVisibleSeries(e),o=new c(n,{isStacked:i.stack&&r.length>1,series:e});n.appendChart(o,t)}},createBarChart:function(e,t){if(0!==e.length){var n=this,i=e[0],r=n.filterVisibleSeries(e),o=new l(n,{isStacked:i.stack&&r.length>1,series:e,gap:i.gap,spacing:i.spacing});n._hasBarCharts=!0,n.appendChart(o,t)}},seriesCategoryAxis:function(){return this.categoryAxis},click:function(t,n){var i,r,o=this,a=t._eventCoordinates(n),s=new N(a.x,a.y);
i=o.categoryAxis.getCategory(s),r=o.valueAxis.getValue(s),null!==i&&null!==r&&t.trigger(rt,{element:e(n.target),category:i,value:r})}}),w=x.extend({options:{xAxis:{},yAxis:{}},createPolarAxis:function(){var e,t=this;e=new r(t.options.xAxis),t.polarAxis=e,t.axisX=e,t.appendAxis(e)},valueAxisOptions:function(e){var t=this;return k(e,{majorGridLines:{type:K},minorGridLines:{type:K}},t.options.yAxis)},createValueAxis:function(){var e=this;x.fn.createValueAxis.call(e),e.axisY=e.valueAxis},appendChart:function(e,t){var n=this;n.valueAxisRangeTracker.update(e.yAxisRanges),F.fn.appendChart.call(n,e,t)},createCharts:function(){var e=this,t=e.filterVisibleSeries(e.series),n=e.panes[0];e.createLineChart($(t,[at]),n),e.createScatterChart($(t,[st]),n),e.createAreaChart($(t,[ot]),n)},createLineChart:function(e,t){if(0!==e.length){var n=this,i=new f(n,{series:e});n.appendChart(i,t)}},createScatterChart:function(e,t){if(0!==e.length){var n=this,i=new p(n,{series:e});n.appendChart(i,t)}},createAreaChart:function(e,t){if(0!==e.length){var n=this,i=new v(n,{series:e});n.appendChart(i,t)}},click:function(t,n){var i,r,o=this,a=t._eventCoordinates(n),s=new N(a.x,a.y);i=o.axisX.getValue(s),r=o.axisY.getValue(s),null!==i&&null!==r&&t.trigger(rt,{element:e(n.target),x:i,y:r})}}),H.current.register(w,gt),H.current.register(y,mt),W.current.register(gt,[ht,pt],["color"]),W.current.register(mt,["value"],["color"]),C.DefaultAggregates.current.register(mt,{value:"max",color:"first"}),k(C,{PolarAreaChart:v,PolarAxis:r,PolarLineChart:f,PolarPlotArea:w,RadarAreaChart:h,RadarBarChart:l,RadarCategoryAxis:xt,RadarClusterLayout:o,RadarLineChart:c,RadarNumericAxis:i,RadarPlotArea:y,SplinePolarAreaSegment:m,SplineRadarAreaSegment:u,RadarStackLayout:a})}(window.kendo.jQuery),function(e){var t=window.kendo,n=t.deepExtend,i=e.extend,r=t.isFunction,o=t.template,a=t.dataviz,s=a.Color,l=a.ChartElement,c=a.PlotAreaBase,d=a.PlotAreaFactory,u=a.Point2D,h=a.Box2D,p=a.SeriesBinder,f=a.TextBox,g=a.append,m=a.autoFormat,v=a.evalOptions,x=a.limitValue,y=a.uniqueId,w="category",b="color",_="funnel",k="value",C="black",A="white",S=c.extend({render:function(){var e=this,t=e.series;e.createFunnelChart(t)},createFunnelChart:function(e){var t=this,n=e[0],i=new T(t,{series:e,legend:t.options.legend,neckRatio:n.neckRatio,dynamicHeight:n.dynamicHeight,dynamicSlope:n.dynamicSlope,segmentSpacing:n.segmentSpacing,highlight:n.highlight});t.appendChart(i)},appendChart:function(e,t){c.fn.appendChart.call(this,e,t),g(this.options.legend.items,e.legendItems)}}),T=l.extend({init:function(e,t){var n=this;l.fn.init.call(n,t),n.plotArea=e,n.points=[],n.labels=[],n.legendItems=[],n.render()},options:{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:"center",position:"center"}},formatPointValue:function(e,t){return m(t,e.value)},render:function(){var e,t,i,o,a,s,l,c=this,d=c.options,u=c.plotArea.options.seriesColors||[],h=u.length,f=d.series[0],g=f.data;if(g)for(a=c.pointsTotal(f),o=0;o<g.length;o++)e=p.current.bindPoint(f,o),i=e.valueFields.value,t=e.fields,r(f.color)||(f.color=t.color||u[o%h]),t=n({index:o,owner:c,series:f,category:t.category,dataItem:g[o],percentage:i/a,visibleInLegend:t.visibleInLegend,visible:t.visible},t),s=c.createSegment(i,t),l=c.createLabel(i,t),s&&l&&s.append(l)},evalSegmentOptions:function(e,t,n){var i=n.series;v(e,{value:t,series:i,dataItem:n.dataItem,index:n.index},{defaults:i._defaults,excluded:["data"]})},createSegment:function(e,t){var r,o,a=this;return a.createLegendItem(e,t),t.visible!==!1?(o=n({},t.series),a.evalSegmentOptions(o,e,t),r=new P(e,o,t),i(r,t),a.append(r),a.points.push(r),r):undefined},createLabel:function(e,t){var i,r,a,l=this,c=t.series,d=t.dataItem,u=n({},l.options.labels,c.labels),h=e;return u.visible&&e?(u.template?(r=o(u.template),h=r({dataItem:d,value:e,percentage:t.percentage,category:t.category,series:c})):u.format&&(h=m(u.format,h)),u.color||"center"!==u.align||(a=new s(c.color).percBrightness(),u.color=a>180?C:A),l.evalSegmentOptions(u,e,t),i=new f(h,n({vAlign:u.position,id:y()},u)),l.labels.push(i),i):undefined},createLegendItem:function(e,t){var n,i,r,a,s=this,l=(s.options.legend||{}).labels||{},c=(s.options.legend||{}).inactiveItems||{};t&&t.visibleInLegend!==!1&&(n=t.category||"",(l||{}).template&&(i=o(l.template),n=i({text:n,series:t.series,dataItem:t.dataItem,percentage:t.percentage,value:e})),t.visible===!1?(r=(c.markers||{}).color,a=(c.labels||{}).color):(r=(t.series||{}).color,a=l.color),n&&s.legendItems.push({pointIndex:t.index,text:n,series:t.series,markerColor:r,labelColor:a}))},pointsTotal:function(e){var t,n,i,r=e.data,o=r.length,a=0;for(n=0;o>n;n++)i=p.current.bindPoint(e,n),t=i.valueFields.value,"string"==typeof t&&(t=parseFloat(t)),t&&i.fields.visible!==!1&&(a+=t);return a},labelPadding:function(){var e,t,n,i,r=this.labels,o={left:0,right:0};for(i=0;i<r.length;i++)e=r[i],t=e.options.align,"center"!==t&&(n=r[i].box.width(),"left"===t?o.left=Math.max(o.left,n):o.right=Math.max(o.right,n));return o},reflow:function(t){var n,i,r,o,a,s,l,c,d,h,p,f,g=this,m=g.options,v=g.points,y=v.length,w=m.neckRatio<=1,b=t.clone().unpad(g.labelPadding()),_=b.width(),k=0,C=w?0:(_-_/m.neckRatio)/2,A=m.segmentSpacing,S=m.dynamicSlope,T=b.height()-A*(y-1),P=w?m.neckRatio*_:_;if(y){if(S)for(l=v[0],c=l,e.each(v,function(e,t){t.percentage>c.percentage&&(c=t)}),r=l.percentage/c.percentage*_,C=(_-r)/2,n=0;y>n;n++)a=v[n].percentage,d=v[n+1],h=d?d.percentage:a,o=v[n].points=[],i=m.dynamicHeight?T*a:T/y,s=(_-r*(h/a))/2,s=x(s,0,_),o.push(u(b.x1+C,b.y1+k)),o.push(u(b.x1+_-C,b.y1+k)),o.push(u(b.x1+_-s,b.y1+i+k)),o.push(u(b.x1+s,b.y1+i+k)),C=s,k+=i+A,r*=h/a,r=x(r,0,_);else for(p=w?_:_-2*C,f=(p-P)/2,n=0;y>n;n++)o=v[n].points=[],a=v[n].percentage,s=m.dynamicHeight?f*a:f/y,i=m.dynamicHeight?T*a:T/y,o.push(u(b.x1+C,b.y1+k)),o.push(u(b.x1+_-C,b.y1+k)),o.push(u(b.x1+_-C-s,b.y1+i+k)),o.push(u(b.x1+C+s,b.y1+i+k)),C+=s,k+=i+A;for(n=0;y>n;n++)v[n].reflow(t)}}}),P=l.extend({init:function(e,t,n){var i=this;l.fn.init.call(i,t),i.value=e,i.options.id=y(),i.options.index=n.index,i.enableDiscovery()},options:{color:A,border:{width:1}},reflow:function(e){var t=this,n=t.points,i=t.children[0];t.box=new h(n[0].x,n[0].y,n[1].x,n[2].y),i&&i.reflow(new h(e.x1,n[0].y,e.x2,n[2].y))},getViewElements:function(e){var t=this,n=t.options,i=n.border,r=[];return r.push(e.createPolyline(t.points,!0,{id:n.id,fill:n.color,fillOpacity:n.opacity,stroke:i.color,strokeOpacity:i.opacity,strokeWidth:i.width,data:{modelId:n.modelId}})),g(r,l.fn.getViewElements.call(t,e)),r},highlightOverlay:function(e,t){var n,r,o,a=this.options,s=a.highlight||{};if(s.visible!==!1)return n=s.border||{},r=i({},t,{fill:s.color,stroke:n.color,strokeOpacity:n.opacity,strokeWidth:n.width,fillOpacity:s.opacity,data:{modelId:a.modelId}}),o=e.createPolyline(this.points,!0,r)},tooltipAnchor:function(e){var t=this.box;return new u(t.center().x-e/2,t.y1)},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}});n(P.fn,a.PointEventsMixin),d.current.register(S,[_]),p.current.register([_],[k],[w,b,"visibleInLegend","visible"]),n(a,{FunnelChart:T})}(window.kendo.jQuery),function(){function e(e,t,n){var i=S(e.from)?e.from:F,r=S(e.to)?e.to:V;return e.from=a.max(a.min(r,i),t),e.to=a.min(a.max(r,i),n),e}var t,n,i,r,o,a=Math,s=window.kendo,l=s.ui.Widget,c=s.deepExtend,d=s.dataviz,u=d.Axis,h=d.Box2D,p=d.ChartElement,f=d.NumericAxis,g=d.Pin,m=d.Ring,v=d.RootElement,x=d.RotationAnimation,y=d.BarIndicatorAnimatin,w=d.ArrowAnimation,b=d.append,_=d.animationDecorator,k=d.autoMajorUnit,C=d.getElement,A=d.getSpacing,S=d.defined,T=d.rotatePoint,P=d.Point2D,D=d.round,B=d.uniqueId,M=150,E="arrow",I="arrowPointer",L="barIndicator",z="#000",O=.05,R=d.COORD_PRECISION,V=Number.MAX_VALUE,F=-Number.MAX_VALUE,H=200,N=.5,j=200,U=60,G=60,W=a.PI/180,q="inside",Q="needle",Y="outside",X="radialPointer",$=90,Z=p.extend({init:function(e,t){var n=this,i=e.options;p.fn.init.call(n,t),t=n.options,t.id||(t.id=B()),t.fill=t.color,n.scale=e,t.value=S(t.value)?a.min(a.max(t.value,i.min),i.max):i.min},options:{color:z},value:function(e){var t=this,n=t.options,i=n.value,r=t.scale.options;return 0===arguments.length?i:(n._oldValue=n.value,n.value=a.min(a.max(e,r.min),r.max),t.repaint(),undefined)}}),J=Z.extend({options:{shape:Q,cap:{size:O},arrow:{width:16,height:14},animation:{type:X,speed:M}},reflow:function(){var e=this,t=e.options,n=e.scale,i=n.ring,r=i.c,o=i.r*t.cap.size;e.box=new h(r.x-o,r.y-o,r.x+o,r.y+o)},repaint:function(){var e=this,t=e.scale,n=e.options,i=e.elements[0],r=n.animation,o=t.slotAngle(t.options.min),a=t.slotAngle(n._oldValue)-o,s=i._animation;i.options.rotation[0]=t.slotAngle(n.value)-o,s&&s.abort(),r.transitions===!1?i.refresh(C(n.id)):(s=i._animation=new x(i,c(r,{startAngle:a,reverse:t.options.reverse})),s.setup(),s.play())},_renderNeedle:function(e,t,n,i){var r=this,o=r.options,a=r.scale,s=a.ring.r*o.cap.size;return[e.createPolyline([T((t.x1+t.x2)/2,t.y1+a.options.minorTicks.size,n.x,n.y,i),T(n.x-s/2,n.y,n.x,n.y,i),T(n.x+s/2,n.y,n.x,n.y,i)],!0,o),e.createCircle(n,s,{fill:o.cap.color||o.color})]},_renderArrow:function(e,t,n,i){var r=this,o=r.options,a=r.scale,s=a.ring.clone(),l=5,c=o.arrow,d=c.height;return s.ir=s.r-l,[e.createPin(new g({origin:T((t.x1+t.x2)/2,t.y1+d,n.x,n.y,i),height:c.height,radius:l,rotation:i,arcAngle:180}),o),e.createRing(s,{fill:o.color})]},renderPointer:function(e){var t,n=this,i=n.scale,r=i.ring,o=r.c,a=r.r,s=n.options,l=new h(o.x-a,o.y-a,o.x+a,o.y+a),d=l.center(),u=i.slotAngle(i.options.min),p=$-u;return s.animation!==!1&&c(s.animation,{startAngle:0,center:d,reverse:i.options.reverse}),c(s,{rotation:[i.slotAngle(s.value)-u,d.x,d.y]}),t=s.shape==E?n._renderArrow(e,l,d,p):n._renderNeedle(e,l,d,p)},getViewElements:function(e){var t=this,n=t.renderPointer(e);return t.elements=n,n}}),K=f.extend({init:function(e){var t=this;t.options=c({},t.options,e),t.options.majorUnit=t.options.majorUnit||k(t.options.min,t.options.max),u.fn.init.call(t,t.options),t.options.minorUnit=t.options.minorUnit||t.options.majorUnit/10},options:{min:0,max:100,majorTicks:{size:15,align:q,color:z,width:N,visible:!0},minorTicks:{size:10,align:q,color:z,width:N,visible:!0},startAngle:-30,endAngle:210,labels:{position:q,padding:2}},reflow:function(e){var t=this,n=t.options,i=e.center(),r=a.min(e.height(),e.width())/2,o=t.ring||new d.Ring(i,r-n.majorTicks.size,r,n.startAngle,n.endAngle-n.startAngle);t.ring=o,t.box=o.getBBox(),t.arrangeLabels()},slotAngle:function(e){var t,n=this.options,i=n.startAngle,r=n.reverse,o=n.endAngle-i,a=n.min,s=n.max;return t=r?n.endAngle-(e-a)/(s-a)*o:(e-a)/(s-a)*o+i},renderTicks:function(e){function t(t,r,o,a,s){var l,c,d,u=n.tickAngles(t,r),h=s/r,p=u.length;if(a)for(l=0;p>l;l++)0!==l%h&&(d=t.point(u[l]),c=t.point(u[l],!0),i.push(e.createLine(c.x,c.y,d.x,d.y,{align:!1,stroke:o.color,strokeWidth:o.width})))}var n=this,i=[],r=n.ring,o=r.clone(),a=n.options,s=a.minorTicks.size;return t(r,a.majorUnit,a.majorTicks,a.majorTicks.visible),a.labels.position==q?o.radius(o.r-s,!0):o.radius(o.ir+s),t(o,a.minorUnit,a.minorTicks,a.minorTicks.visible,a.majorUnit),i},arrangeLabels:function(){var e,t,n,i,r,o,s,l,c,d,u=this,p=u.options,f=u.ring.clone(),g=u.tickAngles(f,p.majorUnit),m=u.labels,v=m.length,x=p.labels,y=x.padding,w=.05*f.r,b=p.rangeSize=p.rangeSize||.1*f.r,_=p.ranges||[];for(undefined!==u.options.rangeDistance?w=u.options.rangeDistance:u.options.rangeDistance=w,x.position===q&&_.length&&(f.r-=b+w,f.ir-=b+w),s=0;v>s;s++)r=m[s],e=r.box.width()/2,t=r.box.height()/2,i=g[s],n=i*W,d=x.position===q,o=f.point(i,d),l=o.x+a.cos(n)*(e+y)*(d?1:-1),c=o.y+a.sin(n)*(t+y)*(d?1:-1),r.reflow(new h(l-e,c-t,l+e,c+t)),u.box.wrap(r.box)},tickAngles:function(e,t){var n,i=this,r=i.options,o=r.reverse,a=r.max-r.min,s=e.angle,l=e.startAngle,c=a/t,d=s/c,u=[];for(o&&(l+=s,d=-d),n=0;c>n;n++)u.push(D(l,R)),l+=d;return D(l)<=r.endAngle&&u.push(l),u},renderRanges:function(e){var t,n,i,r,o,a=this,s=[],l=a.rangeSegments(),c=l.length,d=a.options.reverse;if(c)for(r=a.getRadius(),o=0;c>o;o++)i=l[o],t=a.slotAngle(i[d?"to":"from"]),n=a.slotAngle(i[d?"from":"to"]),0!==n-t&&s.push(e.createRing(new m(a.ring.c,r.inner,r.outer,t,n-t),{fill:i.color,fillOpacity:i.opacity,zIndex:-1}));return s},rangeSegments:function(){function t(e,t,n,i){return{from:e,to:t,color:n,opacity:i}}var n,i,r,o,a,s=this,l=s.options,c=l.ranges||[],d=c.length,u=l.rangePlaceholderColor,h=[],p=l.min,f=l.max;if(d)for(h.push(t(p,f,u)),o=0;d>o;o++)for(n=e(c[o],p,f),i=h.length,a=0;i>a;a++)if(r=h[a],r.from<=n.from&&n.from<=r.to){h.push(t(n.from,n.to,n.color,n.opacity)),r.from<=n.to&&n.to<=r.to&&h.push(t(n.to,r.to,u,n.opacity)),r.to=n.from;break}return h},getRadius:function(){var e,t,n=this,i=n.options,r=i.rangeSize,o=i.rangeDistance,a=n.ring;return i.labels.position===Y?(t=a.ir-o,e=t-r):(t=a.r,e=t-r,a.r-=r+o,a.ir-=r+o),{inner:e,outer:t}},getViewElements:function(e){var t=this,n=p.fn.getViewElements.call(t,e);return b(n,t.renderRanges(e)),b(n,t.renderTicks(e)),n}}),et=p.extend({init:function(e){p.fn.init.call(this,e),this.render()},options:{margin:{},background:"",border:{color:z,width:0},minorTicks:{align:q}},reflow:function(e){var t,n=this,i=n.scale,r=n.pointer;i.reflow(e),t=i.box.clone(),r.scale=i,r.reflow(),t.wrap(r.box),n.box=t,n.fitScale(e),n.alignScale(e)},alignScale:function(e){var t=this,n=t.box.center(),i=e.center(),r=n.x-i.x,o=n.y-i.y,a=t.scale,s=t.pointer;a.ring.c.x-=r,a.ring.c.y-=o,a.reflow(e),s.reflow(),t.box=a.box.clone().wrap(s.box)},fitScale:function(e){for(var t,n,i,r,o=this,s=o.scale,l=s.ring,c=o.box,d=a.abs(o.getDiff(c,e)),u=D(d,R),h=D(-d,R),p=0;!(!(100>p)||(p++,u!=r&&(t=o.getPlotBox(u,e,l),t>=0&&2>=t))||h!=r&&(i=o.getPlotBox(h,e,l),i>=0&&2>=i)||(r=t>0&&i>0?2*u:0>t&&0>i?2*h:D((u+h)/2||1,R),n=o.getPlotBox(r,e,l),n>=0&&2>=n));)n>0?(h=r,i=n):(u=r,t=n)},getPlotBox:function(e,t,n){var i=this,r=i.scale,o=i.pointer;return n=n.clone(),n.r+=e,n.ir+=e,r.ring=n,r.reflow(t),o.scale=r,o.reflow(),i.box=r.box.clone().wrap(o.box),i.getDiff(i.box,t)},getDiff:function(e,t){return a.min(t.width()-e.width(),t.height()-e.height())},render:function(){var e,t=this,n=t.options;e=t.scale=new K(n.scale),t.append(t.scale),t.pointer=new J(e,c({},n.pointer,{animation:{transitions:n.transitions}})),t.append(t.pointer)}}),tt=f.extend({init:function(e){var t=this;t.options=c({},t.options,e),t.options=c({},t.options,{labels:{mirror:t.options.mirror}}),t.options.majorUnit=t.options.majorUnit||k(t.options.min,t.options.max),u.fn.init.call(t,t.options),t.options.minorUnit=t.options.minorUnit||t.options.majorUnit/10},options:{min:0,max:50,majorTicks:{size:15,align:q,color:z,width:N,visible:!0},minorTicks:{size:10,align:q,color:z,width:N,visible:!0},line:{width:N},labels:{position:q,padding:2},mirror:!1,_alignLines:!1},renderRanges:function(t){var n,i,r,o,a,s=this,l=s.options,c=l.min,d=l.max,u=l.ranges||[],p=l.vertical,f=l.labels.mirror,g=[],m=u.length,v=l.rangeSize||l.minorTicks.size/2;if(m)for(o=0;m>o;o++)n=e(u[o],c,d),a=s.getSlot(n.from,n.to),i=p?s.lineBox():a,r=p?a:s.lineBox(),p?i.x1-=v*(f?-1:1):r.y2+=v*(f?-1:1),g.push(t.createRect(new h(i.x1,r.y1,i.x2,r.y2),{fill:n.color,fillOpacity:n.opacity}));return g},getViewElements:function(e){var t=this,n=f.fn.getViewElements.call(t,e);return b(n,t.renderRanges(e)),n}}),nt=Z.extend({init:function(e,t){var n=this;Z.fn.init.call(n,e,t),n.options=c({size:n.pointerSize(),track:{visible:S(t.track)}},n.options)},options:{shape:L,track:{border:{width:1}},color:z,border:{width:1},opacity:1,margin:A(3),animation:{type:L},visible:!0},repaint:function(){var e=this,t=e.scale,n=e.options,i=e.element,r=i._animation;r&&r.abort(),n.animation.transitions===!1?(e.getViewElements(e._view),i.points=e.element.points,i.refresh(C(n.id))):(n.animation=c({},n.animation,{endPosition:t.getSlot(t.options.min,n.value),reverse:t.options.reverse}),r=i._animation=n.shape===E?new w(i,n.animation):new y(i,n.animation),r.setup(),r.play())},reflow:function(){var e,t,n,i=this,r=i.options,o=i.scale,a=o.lineBox(),s=r.track.size||r.size,l=r.size/2,c=o.options.mirror,d=A(r.margin),u=o.options.vertical,p=u?d[c?"left":"right"]:d[c?"bottom":"top"];p=c?-p:p,u?(n=new h(a.x1+p,a.y1,a.x1+p,a.y2),c?n.x1-=s:n.x2+=s,r.shape!==L&&(t=new h(a.x2+p,a.y1-l,a.x2+p,a.y2+l),e=t)):(n=new h(a.x1,a.y1-p,a.x2,a.y1-p),c?n.y2+=s:n.y1-=s,r.shape!==L&&(t=new h(a.x1-l,a.y1-p,a.x2+l,a.y1-p),e=t)),i.trackBox=n,i.pointerRangeBox=t,i.box=e||n.clone().pad(r.border.width)},renderPointer:function(e){var t,n=this,i=n.scale,r=n.options,o=S(r.border)?{stroke:r.border.width?r.border.color||r.color:"",strokeWidth:r.border.width,dashType:r.border.dashType}:{},a=c({fill:r.color,fillOpacity:r.opacity,animation:c(r.animation,{startPosition:i.getSlot(i.options.min,r.value),size:r.size,vertical:i.options.vertical,reverse:i.options.reverse}),id:r.id,zIndex:2,align:!1},o),s=n.pointerShape(r.value);return r.shape===E?(a.animation.type=I,t=e.createPolyline(s,!0,a)):t=e.createRect(s,a),t},pointerShape:function(e){var t,n,i,r=this,o=r.options,a=r.scale,s=a.getSlot(e,a.options.min),l=o.size,c=r.pointerRangeBox,d=a.options.vertical,u=l/2,p=a.options.mirror?-1:1,f=a.options.reverse;return o.shape==E?d?(n=f?"y2":"y1",t=[new P(c.x1,s[n]-u),new P(c.x1-p*l,s[n]),new P(c.x1,s[n]+u)]):(n=f?"x1":"x2",t=[new P(s[n]-u,c.y2),new P(s[n],c.y2+p*l),new P(s[n]+u,c.y2)]):(i=r.trackBox,t=d?new h(i.x1,s.y1,i.x1+l,s.y2):new h(s.x1,i.y1,s.x2,i.y1+l)),t},pointerSize:function(){var e,t=this,n=t.options,i=t.scale,r=i.options.majorTicks.size;return e=n.shape===E?.6*r:.3*r,D(e)},renderTrack:function(e){var t=this,n=t.options,i=n.track,r=i.border||{},o=t.trackBox.clone().pad(r.width||0);return e.createRect(o,{fill:i.color,fillOpacity:i.opacity,stroke:r.width?r.color||i.color:"",strokeWidth:r.width,dashType:r.dashType,align:!1})},getViewElements:function(e){var t=this,n=t.options,i=[];return t.element=t.renderPointer(e),i.push(t.element),!n.track.visible||n.shape!==L&&""!==n.shape||i.push(t.renderTrack(e)),t._view=e,b(i,Z.fn.getViewElements.call(t,e)),i}}),it=p.extend({init:function(e){p.fn.init.call(this,e),this.render()},options:{plotArea:{margin:{},background:"",border:{color:z,width:0}},pointer:{},scale:{}},reflow:function(e){var t=this,n=t.scale,i=t.pointer;n.reflow(e),i.reflow(e),t.box=t.getBox(e),t.alignElements(),t.shrinkElements()},shrinkElements:function(){var e=this,t=e.scale,n=e.pointer,i=t.box.clone(),r=n.box,o=t.options.vertical?"y":"x";i[o+1]+=a.max(i[o+1]-r[o+1],0),i[o+2]-=a.max(r[o+2]-i[o+2],0),t.reflow(i),n.reflow(e.box)},getBox:function(e){var t,n=this,i=n.scale,r=n.pointer,o=e.center(),a=r.box.clone().wrap(i.box);return i.options.vertical?(t=a.width()/2,a=new h(o.x-t,e.y1,o.x+t,e.y2)):(t=a.height()/2,a=new h(e.x1,o.y-t,e.x2,o.y+t)),a},alignElements:function(){var e,t=this,n=t.scale,i=t.pointer,r=n.box,o=i.box.clone().wrap(n.box),a=t.box;n.options.vertical?(e=a.center().x-o.center().x,n.reflow(new h(r.x1+e,a.y1,r.x2+e,a.y2))):(e=a.center().y-o.center().y,n.reflow(new h(a.x1,r.y1+e,a.x2,r.y2+e))),i.reflow(t.box)},render:function(){var e,t=this,n=t.options;e=t.scale=new tt(n.scale),t.append(t.scale),t.pointer=new nt(e,c({},n.pointer,{animation:{transitions:n.transitions}})),t.append(t.pointer)},getViewElements:function(e){var t=this,n=t.options.plotArea,i=p.fn.getViewElements.call(t,e),r=n.border||{},o=[e.createRect(t.box,{fill:n.background,stroke:r.width?r.color:"",strokeWidth:r.width,dashType:r.dashType})];return b(o,i),o}}),rt=l.extend({init:function(e,t){var n,i,r,o,a=this,s=d.ui.themes||{};l.fn.init.call(a,e),a.wrapper=a.element,a._originalOptions=c({},t),n=c({},a.options,t),r=n.theme,o=s[r]||s[r.toLowerCase()],i=r&&o?o.gauge:{},a.options=c({},i,n),a.element.addClass("k-gauge"),a.redraw()},options:{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}},value:function(e){var t=this,n=t._pointers[0];return 0===arguments.length?n.value():(t.options.pointer.value=e,t._view.renderElement?n.value(e):t.redraw(),undefined)},redraw:function(){var e,t=this,n=t.element,i=t._model=t._getModel();t._plotArea=i._plotArea,e=t._view=d.ViewFactory.current.create(i.options,t.options.renderAs),e&&(e.load(i),t._viewElement=e.renderTo(n[0]))},getSize:function(){return this._getSize()},_resize:function(){var e=this.options.transitions;this.options.transitions=!1,this.redraw(),this.options.transitions=e},_createModel:function(){var e=this,t=e.options,n=e._getSize();return new v(c({width:n.width,height:n.height,transitions:t.transitions},t.gaugeArea))},_getSize:function(){var e=this,t=e.element,n=t.width(),i=t.height();return n||(n=j),i||(i=H),{width:n,height:i}}});c(rt.fn,d.ExportMixin),t=rt.extend({init:function(e,t){var n=this;rt.fn.init.call(n,e,t),s.notify(n,d.ui)},options:{name:"RadialGauge",transitions:!0,gaugeArea:{background:""}},_getModel:function(){var e,t=this,n=t.options,i=t._createModel();return e=i._plotArea=new et(n),t._pointers=[e.pointer],i.append(e),i.reflow(),i}}),n=rt.extend({init:function(e,t){var n=this;rt.fn.init.call(n,e,t),s.notify(n,d.ui)},options:{name:"LinearGauge",transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}},_getModel:function(){var e,t=this,n=t.options,i=t._createModel();return e=i._plotArea=new it(n),t._pointers=[e.pointer],i.append(e),i.reflow(),i},_getSize:function(){var e=this,t=e.element,n=t.width(),i=t.height(),r=e.options.scale.vertical;return n||(n=r?U:j),i||(i=r?H:G),{width:n,height:i}}}),i=_(X,x),r=_(I,w),o=_(L,y),d.ui.plugin(t),d.ui.plugin(n),c(d,{Gauge:rt,RadialGaugePlotArea:et,LinearGaugePlotArea:it,RadialPointer:J,LinearPointer:nt,LinearScale:tt,RadialScale:K,RadialPointerAnimationDecorator:i,ArrowPointerAnimationDecorator:r,BarIndicatorAnimationDecorator:o})}(window.kendo.jQuery),function(e,t){function n(e,t,n){return e.substring(t,t+n)}var i,r,o,a,s,l,c=window.kendo,d=e.extend,u=c.deepExtend,h=e.inArray,p=e.isPlainObject,f=c.dataviz,g=c.ui.Widget,m=f.Box2D,v=f.Text,x=300,y=100,w=10,b=/^\d+$/,_=/^[a-z0-9]+$/i,k="Character '{0}' is not valid for symbology {1}",C=c.Class.extend({init:function(e){this.setOptions(e)},setOptions:function(e){var t=this;t.options=d({},t.options,e),t.quietZoneLength=t.options.addQuietZone?2*t.options.quietZoneLength:0},encode:function(e,n,i){var r=this;return e!==t&&(e+=""),r.initValue(e,n,i),r.options.addQuietZone&&r.addQuietZone(),r.addData(),r.options.addQuietZone&&r.addQuietZone(),{baseUnit:r.baseUnit,pattern:r.pattern}},options:{quietZoneLength:w,addQuietZone:!0,addCheckSum:!0},initValue:function(){},addQuietZone:function(){this.pattern.push(this.options.quietZoneLength||w)},addData:function(){},invalidCharacterError:function(e){throw Error(c.format(k,e,this.name))}}),A={},S=C.extend({minBaseUnitLength:.7,addData:function(){var e,t=this,n=t.value;for(t.addStart(),e=0;e<n.length;e++)t.addCharacter(n.charAt(e));t.options.addCheckSum&&t.pushCheckSum(),t.addStop(),t.prepareValues()},addCharacter:function(e){var t=this,n=t.characterMap[e];n||t.invalidCharacterError(e),t.addBase(n)},addBase:function(){}}),T={addCharacter:function(e){var t=this;t.characterMap[e]?t.addBase(t.characterMap[e]):e.charCodeAt(0)>127?t.invalidCharacterError(e):t.addExtended(e.charCodeAt(0))},addExtended:function(e){var n,i,r,o=this;for(i=0;i<o.extendedMappings.length;i++)if(n=o.extendedMappings[i].call(o,e)){for(r=0;r<n.length;r++)o.addBase(n[r]);return o.dataLength+=n.length-1,t}},extendedMappings:[function(e){if(e>=97&&122>=e){var t=this;return[t.characterMap[t.shiftCharacters[0]],t.characterMap[String.fromCharCode(e-32)]]}},function(e){if(e>=33&&58>=e){var t=this;return[t.characterMap[t.shiftCharacters[1]],t.characterMap[String.fromCharCode(e+32)]]}},function(e){if(e>=1&&26>=e){var t=this;return[t.characterMap[t.shiftCharacters[2]],t.characterMap[String.fromCharCode(e+64)]]}},function(e){var t,n,i,r=this;if(r.specialAsciiCodes[e])for(t=[],i=0;i<r.specialAsciiCodes[e].length;i++)t.push(r.characterMap[r.shiftCharacters[3]]),t.push(r.characterMap[r.specialAsciiCodes[e][i]]);else n=6*Math.floor(e/32)+(e-27)%32+64,t=[r.characterMap[r.shiftCharacters[3]],r.characterMap[String.fromCharCode(n)]];return t}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]};A.code39=S.extend({name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",initValue:function(e,t,n){var i=this;i.width=t,i.height=n,i.value=e,i.dataLength=e.length,i.pattern=[],i.patternString=""},prepareValues:function(){var e,t,n=this,i=n.minBaseUnitLength,r=n.maxRatio,o=n.minRatio,a=Math.max(.15*n.width,24);if(n.height<a)throw Error("Insufficient Height. The minimum height for value: "+n.value+" is: "+a);for(;(e=n.getBaseUnit(r))<i&&r>o;)r=parseFloat((r-.1).toFixed(1));if(i>e)throw t=Math.ceil(n.getBaseWidth(o)*i),Error("Insufficient width. The minimum width for value: "+n.value+" is: "+t);n.ratio=r,n.baseUnit=e,n.patternString=n.patternString.substring(0,n.patternString.length-1),n.pattern=n.pattern.concat(n.patternString.replace(/ratio/g,r).split(n.splitCharacter))},getBaseUnit:function(e){return this.width/this.getBaseWidth(e)},getBaseWidth:function(e){var t=this,n=3*(e+2);return t.quietZoneLength+n*(t.dataLength+2)+t.gapWidth*(t.dataLength+1)},addStart:function(){var e=this;e.addPattern(e.characterMap.START.pattern),e.addCharacterGap()},addBase:function(e){this.addPattern(e.pattern),this.addCharacterGap()},addStop:function(){this.addPattern(this.characterMap.START.pattern)},addPattern:function(e){for(var t=0;t<e.length;t++)this.patternString+=this.patternMappings[e.charAt(t)]},addCharacterGap:function(){var e=this;e.patternString+=e.gapWidth+e.splitCharacter},patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}},options:{addCheckSum:!1}}),A.code39extended=A.code39.extend(u({},T,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})),A.code93=S.extend({name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,initValue:function(e,t,n){var i=this;i.value=e,i.width=t,i.height=n,i.pattern=[],i.values=[],i.dataLength=e.length},prepareValues:function(){var e=this,t=Math.max(.15*e.width,24);if(e.height<t)throw Error("Insufficient Height");if(e.setBaseUnit(),e.baseUnit<e.minBaseUnitLength)throw Error("Insufficient Width")},setBaseUnit:function(){var e=this,t=2;e.baseUnit=e.width/(9*(e.dataLength+2+t)+e.quietZoneLength+1)},addStart:function(){var e=this.characterMap.START.pattern;this.addPattern(e)},addStop:function(){var e=this;e.addStart(),e.pattern.push(e.characterMap.TERMINATION_BAR)},addBase:function(e){this.addPattern(e.pattern),this.values.push(e.value)},pushCheckSum:function(){var e,t,n=this,i=n._getCheckValues();for(n.checksum=i.join(""),t=0;t<i.length;t++)e=n.characterMap[n._findCharacterByValue(i[t])],n.addPattern(e.pattern)},_getCheckValues:function(){var e,t,n,i=this,r=i.values,o=r.length,a=0;for(n=o-1;n>=0;n--)a+=i.weightedValue(r[n],o-n,i.cCheckSumTotal);for(e=a%i.checkSumMod,a=i.weightedValue(e,1,i.kCheckSumTotal),n=o-1;n>=0;n--)a+=i.weightedValue(r[n],o-n+1,i.kCheckSumTotal);return t=a%i.checkSumMod,[e,t]},_findCharacterByValue:function(e){for(var t in this.characterMap)if(this.characterMap[t].value===e)return t},weightedValue:function(e,t,n){return(t%n||n)*e},addPattern:function(e){var t,n;for(n=0;n<e.length;n++)t=parseInt(e.charAt(n),10),this.pattern.push(t)},characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}}),A.code93extended=A.code93.extend(u({},T,{name:"Code 93 extended",pushCheckSum:function(){var e,t,n=this,i=n._getCheckValues();for(n.checksum=i.join(""),t=0;t<i.length;t++)e=i[t],n.shiftValuesAsciiCodes[e]?n.addExtended(n.shiftValuesAsciiCodes[e]):n.addPattern(n.characterMap[n._findCharacterByValue(e)].pattern)}})),i=c.Class.extend({init:function(e){this.encoding=e},addStart:function(){},is:function(){},move:function(){},pushState:function(){}}),r=i.extend({FNC4:"FNC4",init:function(e,t){var n=this;n.encoding=e,n.states=t,n._initMoves(t)},addStart:function(){this.encoding.addPattern(this.START)},is:function(e,t){var n=e.charCodeAt(t);return this.isCode(n)},move:function(e){for(var t=this,n=0;!t._moves[n].call(t,e)&&n<t._moves.length;)n++},pushState:function(e){var t,n,i=this,r=i.states,o=e.value,a=o.length;for(h("C",r)>=0&&(n=o.substr(e.index).match(/\d{4,}/g),n&&(a=o.indexOf(n[0],e.index)));(t=e.value.charCodeAt(e.index))>=0&&i.isCode(t)&&e.index<a;)i.encoding.addPattern(i.getValue(t)),e.index++},_initMoves:function(e){var t=this;t._moves=[],h(t.FNC4,e)>=0&&t._moves.push(t._moveFNC),h(t.shiftKey,e)>=0&&t._moves.push(t._shiftState),t._moves.push(t._moveState)},_moveFNC:function(e){return e.fnc?(e.fnc=!1,e.previousState==this.key):t},_shiftState:function(e){var n=this;return e.previousState==n.shiftKey&&(e.index+1>=e.value.length||n.encoding[n.shiftKey].is(e.value,e.index+1))?(n.encoding.addPattern(n.SHIFT),e.shifted=!0,!0):t},_moveState:function(){return this.encoding.addPattern(this.MOVE),!0},SHIFT:98}),o={},o.A=r.extend({key:"A",shiftKey:"B",isCode:function(e){return e>=0&&96>e
},getValue:function(e){return 32>e?e+64:e-32},MOVE:101,START:103}),o.B=r.extend({key:"B",shiftKey:"A",isCode:function(e){return e>=32&&128>e},getValue:function(e){return e-32},MOVE:100,START:104}),o.C=i.extend({key:"C",addStart:function(){this.encoding.addPattern(this.START)},is:function(e,t){var i=n(e,t,4);return(t+4<=e.length||2==e.length)&&b.test(i)},move:function(){this.encoding.addPattern(this.MOVE)},pushState:function(e){for(var t;(t=n(e.value,e.index,2))&&b.test(t)&&2==t.length;)this.encoding.addPattern(parseInt(t,10)),e.index+=2},getValue:function(e){return e},MOVE:99,START:105}),o.FNC4=i.extend({key:"FNC4",dependentStates:["A","B"],init:function(e,t){this.encoding=e,this._initSubStates(t)},addStart:function(e){var t=e.value.charCodeAt(0)-128,n=this._getSubState(t);this.encoding[n].addStart()},is:function(e,t){var n=e.charCodeAt(t);return this.isCode(n)},isCode:function(e){return e>=128&&256>e},pushState:function(e){var t,n=this,i=n._initSubState(e),r=n.encoding,o=i.value.length;if(e.index+=o,3>o)for(;i.index<o;i.index++)t=i.value.charCodeAt(i.index),i.state=n._getSubState(t),i.previousState!=i.state&&(i.previousState=i.state,r[i.state].move(i)),r.addPattern(r[i.state].MOVE),r.addPattern(r[i.state].getValue(t));else i.state!=i.previousState&&r[i.state].move(i),n._pushStart(i),r.pushData(i,n.subStates),e.index<e.value.length&&n._pushStart(i);e.fnc=!0,e.state=i.state},_pushStart:function(e){var t=this;t.encoding.addPattern(t.encoding[e.state].MOVE),t.encoding.addPattern(t.encoding[e.state].MOVE)},_initSubState:function(e){var t=this,n={value:t._getAll(e.value,e.index),index:0};return n.state=t._getSubState(n.value.charCodeAt(0)),n.previousState=e.previousState==t.key?n.state:e.previousState,n},_initSubStates:function(e){var t,n=this;for(n.subStates=[],t=0;t<e.length;t++)h(e[t],n.dependentStates)>=0&&n.subStates.push(e[t])},_getSubState:function(e){var t,n=this;for(t=0;t<n.subStates.length;t++)if(n.encoding[n.subStates[t]].isCode(e))return n.subStates[t]},_getAll:function(e,t){for(var n,i="";(n=e.charCodeAt(t++))&&this.isCode(n);)i+=String.fromCharCode(n-128);return i}}),o.FNC1=i.extend({key:"FNC1",startState:"C",dependentStates:["C","B"],startAI:"(",endAI:")",init:function(e,t){this.encoding=e,this.states=t},addStart:function(){this.encoding[this.startState].addStart()},is:function(){return h(this.key,this.states)>=0},pushState:function(e){var t,n,i,r=this,o=r.encoding,a=e.value.replace(/\s/g,""),s=RegExp("["+r.startAI+r.endAI+"]","g"),l=e.index,c={state:r.startState};for(o.addPattern(r.START);;){if(c.index=0,i=a.charAt(l)===r.startAI?2:0,t=i>0?r.getBySeparator(a,l):r.getByLength(a,l),t.ai.length)n=l+i+t.id.length+t.ai.length;else if(n=a.indexOf(r.startAI,l+1),0>n){if(l+t.ai.max+t.id.length+i<a.length)throw Error("Separators are required after variable length identifiers");n=a.length}if(c.value=a.substring(l,n).replace(s,""),r.validate(t,c.value),o.pushData(c,r.dependentStates),n>=a.length)break;l=n,c.state!=r.startState&&(o[r.startState].move(c),c.state=r.startState),t.ai.length||o.addPattern(r.START)}e.index=e.value.length},validate:function(e,t){var n=t.substr(e.id.length),i=e.ai;if(!i.type&&!b.test(n))throw Error("Application identifier "+e.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"==i.type&&!_.test(n))throw Error("Application identifier "+e.id+" is alphanumeric only but contains non alphanumeric character(s).");if(i.length&&i.length!==n.length)throw Error("Application identifier "+e.id+" must be "+i.length+" characters long.");if(i.min&&i.min>n.length)throw Error("Application identifier "+e.id+" must be at least "+i.min+" characters long.");if(i.max&&i.max<n.length)throw Error("Application identifier "+e.id+" must be at most "+i.max+" characters long.")},getByLength:function(e,t){var i,r,o,a=this;for(o=2;4>=o;o++)if(i=n(e,t,o),r=a.getAI(i)||a.getAI(i.substring(0,i.length-1)))return{id:i,ai:r};a.unsupportedAIError(i)},unsupportedAIError:function(e){throw Error(c.format("'{0}' is not a supported Application Identifier"),e)},getBySeparator:function(e,t){var n=this,i=e.indexOf(n.startAI,t),r=e.indexOf(n.endAI,i),o=e.substring(i+1,r),a=n.getAI(o)||n.getAI(o.substr(o.length-1));return a||n.unsupportedAIError(o),{ai:a,id:o}},getAI:function(e){var t,n,i,r=this.applicationIdentifiers,o=r.multiKey;if(r[e])return r[e];for(t=0;t<o.length;t++){if(o[t].ids&&h(e,o[t].ids)>=0)return o[t].type;if(o[t].ranges)for(n=o[t].ranges,i=0;i<n.length;i++)if(n[i][0]<=e&&e<=n[i][1])return o[t].type}},applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102}),a=C.extend({init:function(e){C.fn.init.call(this,e),this._initStates()},_initStates:function(){var e,t=this;for(e=0;e<t.states.length;e++)t[t.states[e]]=new o[t.states[e]](t,t.states)},initValue:function(e,t,n){var i=this;i.pattern=[],i.value=e,i.width=t,i.height=n,i.checkSum=0,i.totalUnits=0,i.index=0,i.position=1},addData:function(){var e=this,t={value:e.value,index:0,state:""};0!==e.value.length&&(t.state=t.previousState=e.getNextState(t,e.states),e.addStart(t),e.pushData(t,e.states),e.addCheckSum(),e.addStop(),e.setBaseUnit())},pushData:function(e,t){for(var n,i=this;;){if(i[e.state].pushState(e),e.index>=e.value.length)break;e.shifted?(n=e.state,e.state=e.previousState,e.previousState=n,e.shifted=!1):(e.previousState=e.state,e.state=i.getNextState(e,t),i[e.state].move(e))}},addStart:function(e){this[e.state].addStart(e),this.position=1},addCheckSum:function(){var e=this;e.checksum=e.checkSum%103,e.addPattern(e.checksum)},addStop:function(){this.addPattern(this.STOP)},setBaseUnit:function(){var e=this;e.baseUnit=e.width/(e.totalUnits+e.quietZoneLength)},addPattern:function(e){var t,n,i=this,r=""+i.characterMap[e];for(n=0;n<r.length;n++)t=parseInt(r.charAt(n),10),i.pattern.push(t),i.totalUnits+=t;i.checkSum+=e*i.position++},getNextState:function(e,t){for(var n=0;n<t.length;n++)if(this[t[n]].is(e.value,e.index))return t[n];this.invalidCharacterError(e.value.charAt(e.index))},characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106}),A.code128a=a.extend({name:"Code 128 A",states:["A"]}),A.code128b=a.extend({name:"Code 128 B",states:["B"]}),A.code128c=a.extend({name:"Code 128 C",states:["C"]}),A.code128=a.extend({name:"Code 128",states:["C","B","A","FNC4"]}),A["gs1-128"]=a.extend({name:"Code GS1-128",states:["FNC1","C","B"]}),s=C.extend({initValue:function(e,t){var n=this;n.pattern=[],n.value=e,n.checkSumLength=0,n.width=t},setBaseUnit:function(){var e=this,t=7;e.baseUnit=e.width/(12*(e.value.length+e.checkSumLength)+e.quietZoneLength+t)},addData:function(){var e,t=this,n=t.value;for(t.addPattern(t.START),e=0;e<n.length;e++)t.addCharacter(n.charAt(e));t.options.addCheckSum&&t.addCheckSum(),t.addPattern(t.STOP),t.setBaseUnit()},addCharacter:function(e){var t=this,n=t.characterMap[e];n||t.invalidCharacterError(e),t.addPattern(n)},addPattern:function(e){for(var t=0;t<e.length;t++)this.pattern.push(parseInt(e.charAt(t),10))},addCheckSum:function(){var e,t=this,n=t.checkSums[t.checkSumType],i=n.call(t.checkSums,t.value);for(t.checksum=i.join(""),e=0;e<i.length;e++)t.checkSumLength++,t.addPattern(t.characterMap[i[e]])},checkSums:{Modulo10:function(e){var t,n,i,r=[0,""],o=e.length%2;for(t=0;t<e.length;t++)r[(t+o)%2]+=parseInt(e.charAt(t),10);for(i=r[0],n=""+2*r[1],t=0;t<n.length;t++)i+=parseInt(n.charAt(t),10);return[(10-i%10)%10]},Modulo11:function(e){var t,n,i,r=0,o=11,a=e.length;for(i=0;a>i;i++)t=((a-i)%6||6)+1,r+=t*e.charAt(i);return n=(o-r%o)%o,10!=n?[n]:[1,0]},Modulo11Modulo10:function(e){var t,n=this.Modulo11(e);return t=e+n[0],n.concat(this.Modulo10(t))},Modulo10Modulo10:function(e){var t,n=this.Modulo10(e);return t=e+n[0],n.concat(this.Modulo10(t))}},characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:""}),A.msimod10=s.extend({name:"MSI Modulo10",checkSumType:"Modulo10"}),A.msimod11=s.extend({name:"MSI Modulo11",checkSumType:"Modulo11"}),A.msimod1110=s.extend({name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"}),A.msimod1010=s.extend({name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"}),A.code11=C.extend({name:"Code 11",cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221",initValue:function(e,t){var n=this;n.pattern=[],n.value=e,n.width=t,n.totalUnits=0},addData:function(){var e,t=this,n=t.value;for(t.addPattern(t.START),e=0;e<n.length;e++)t.addCharacter(n.charAt(e));t.options.addCheckSum&&t.addCheckSum(),t.addPattern(t.STOP),t.setBaseUnit()},setBaseUnit:function(){var e=this;e.baseUnit=e.width/(e.totalUnits+e.quietZoneLength)},addCheckSum:function(){var e,t=this,n=t.value,i=n.length,r=t.getWeightedSum(n,i,t.cCheckSumTotal)%t.checkSumMod;t.checksum=r+"",t.addPattern(t.characterMap[r]),i++,i>=t.kCheckSumMinLength&&(e=(r+t.getWeightedSum(n,i,t.kCheckSumTotal))%t.checkSumMod,t.checksum+=e,t.addPattern(t.characterMap[e]))},getWeightedSum:function(e,t,n){var i,r=0;for(i=0;i<e.length;i++)r+=this.weightedValue(this.getValue(e.charAt(i)),t,i,n);return r},weightedValue:function(e,t,n,i){var r=(t-n)%i||i;return r*e},getValue:function(e){var t=this;return isNaN(e)?(e!==t.DASH&&t.invalidCharacterError(e),t.DASH_VALUE):parseInt(e,10)},addCharacter:function(e){var t=this,n=t.getValue(e),i=t.characterMap[n];t.addPattern(i)},addPattern:function(e){var t,n;for(n=0;n<e.length;n++)t=parseInt(e.charAt(n),10),this.pattern.push(t),this.totalUnits+=t},characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],options:{addCheckSum:!0}}),A.postnet=C.extend({name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",initValue:function(e,t,n){var i=this;i.height=n,i.width=t,i.baseHeight=n/2,i.value=e.replace(RegExp(i.DIGIT_SEPARATOR,"g"),""),i.pattern=[],i.validate(i.value),i.checkSum=0,i.setBaseUnit()},addData:function(){var e,t=this,n=t.value;for(t.addPattern(t.START),e=0;e<n.length;e++)t.addCharacter(n.charAt(e));t.options.addCheckSum&&t.addCheckSum(),t.addPattern(t.START),t.pattern.pop()},addCharacter:function(e){var t=this,n=t.characterMap[e];t.checkSum+=parseInt(e,10),t.addPattern(n)},addCheckSum:function(){var e=this;e.checksum=(10-e.checkSum%10)%10,e.addCharacter(e.checksum)},setBaseUnit:function(){var e=this,t=3;e.baseUnit=e.width/(10*(e.value.length+1)+t+e.quietZoneLength)},validate:function(e){var t=this;if(b.test(e)||t.invalidCharacterError(e.match(/[^0-9]/)[0]),h(e.length,t.VALID_CODE_LENGTHS)<0)throw Error("Invalid value length. Valid lengths for the Postnet symbology are "+t.VALID_CODE_LENGTHS.join(","))},addPattern:function(e){var t,n,i=this;for(n=0;n<e.length;n++)t=i.height-i.baseHeight*e.charAt(n),i.pattern.push({width:1,y1:t,y2:i.height}),i.pattern.push(1)},characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]}),A.ean13=C.extend({initValue:function(e,t,n){if("number"==typeof e&&(e+=""),12!=e.length||/\D/.test(e))throw Error("Invalid value provided");e.length<12&&(e="");var i=this;i.pattern=[],i.options.height=n,i.baseUnit=t/(95+i.quietZoneLength),i.value=e,i.checksum=i.calculateChecksum(),i.leftKey=e[0],i.leftPart=e.substr(1,6),i.rightPart=e.substr(7)+i.checksum},addData:function(){var e=this;e.addPieces(e.characterMap.start),e.addSide(e.leftPart,e.leftKey),e.addPieces(e.characterMap.middle),e.addSide(e.rightPart),e.addPieces(e.characterMap.start)},addSide:function(e,t){var n,i=this;for(n=0;n<e.length;n++)t&&parseInt(i.keyTable[t].charAt(n),10)?i.addPieces(Array.prototype.slice.call(i.characterMap.digits[e.charAt(n)]).reverse(),!0):i.addPieces(i.characterMap.digits[e.charAt(n)],!0)},addPieces:function(e,t){var n,i=this;for(n=0;n<e.length;n++)t?i.pattern.push({y1:0,y2:.95*i.options.height,width:e[n]}):i.pattern.push(e[n])},calculateChecksum:function(){var e,t,n=0,i=0,r=this.value.split("").reverse().join("");for(e=0;e<r.length;e++)e%2?i+=parseInt(r.charAt(e),10):n+=parseInt(r.charAt(e),10);return t=(10-(3*n+i)%10)%10},keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}}),A.ean8=A.ean13.extend({initValue:function(e,t,n){var i=this;if(7!=e.length||/\D/.test(e))throw Error("Invalid value provided");i.value=e,i.options.height=n,i.checksum=i.calculateChecksum(i.value),i.leftPart=i.value.substr(0,4),i.rightPart=i.value.substr(4)+i.checksum,i.pattern=[],i.baseUnit=t/(67+i.quietZoneLength)}}),l=g.extend({init:function(t,n){var i=this;g.fn.init.call(i,t,n),i.element=e(t),i.wrapper=i.element,i.element.addClass("k-barcode"),i.view=f.ViewFactory.current.create({},i.options.renderAs),i.setOptions(n)},setOptions:function(n){var i=this;if(i.type=(n.type||i.options.type).toLowerCase(),"upca"==i.type&&(i.type="ean13",n.value="0"+n.value),"upce"==i.type&&(i.type="ean8",n.value="0"+n.value),!A[i.type])throw Error("Encoding "+i.type+"is not supported.");i.encoding=new A[i.type],i.options=e.extend(!0,i.options,n),n.value!==t&&i.redraw()},redraw:function(){var e=this,t=e.view;e._redraw(t),t.renderTo(e.element[0])},svg:function(){if(f.SVGView){var e=new f.SVGView;return this._redraw(e),e.render()}throw Error("Unable to create SVGView. Check that kendo.dataviz.svg.js is loaded.")},imageDataURL:function(){if(f.CanvasView){if(f.supportsCanvas()){var e=document.createElement("div"),t=new f.CanvasView;return this._redraw(t),t.renderTo(e).toDataURL()}return c.logToConsole("Warning: Unable to generate image. The browser does not support Canvas.\nUser agent: "+navigator.userAgent),null}throw Error("Unable to create CanvasView. Check that kendo.dataviz.canvas.js is loaded.")},getSize:function(){return c.dimensions(this.element)},_resize:function(){this.redraw()},_redraw:function(e){var n,i,r,o=this,a=o.options,s=a.text,l=o._getSize(),c=a.border||{},d=o.encoding,u=m(0,0,l.width,l.height).unpad(c.width).unpad(a.padding),h=u.height();o.contentBox=u,e.children=[],o._renderBackground(e,l),r=f.measureText(u,{font:a.text.font}).height,s.visible&&(h-=r),n=d.encode(a.value,l.width-(a.padding.left+a.padding.right),h),s.visible&&(i=a.value,a.checksum&&d.checksum!==t&&(i+=" "+d.checksum),o._renderTextElement(e,i)),o.barHeight=h,e.options.width=l.width,e.options.height=l.height,o._renderElements(e,n.pattern,n.baseUnit)},_getSize:function(){var e=this,t=e.element,n={width:x,height:y};return t.width()>0&&(n.width=t.width()),t.height()>0&&(n.height=t.height()),e.options.width&&(n.width=e.options.width),e.options.height&&(n.height=e.options.height),n},value:function(e){var n=this;return e===t?n.options.value:(n.options.value=e+"",n.redraw(),t)},_renderElements:function(e,t,n){var i,r,o,a=this,s=0+a.options.padding.left;for(o=0;o<t.length;o++)r=p(t[o])?t[o]:{width:t[o],y1:0,y2:a.barHeight},i=r.width*n,o%2&&e.children.push(e.createRect(new m(s,r.y1+a.contentBox.y1,s+i,r.y2+a.contentBox.y1),{fill:a.options.color})),s+=i},_renderBackground:function(e,t){var n=this,i=n.options,r=i.border||{},o=m(0,0,t.width,t.height).unpad(r.width/2),a=e.createRect(o,{fill:i.background,stroke:r.width?r.color:"",strokeWidth:r.width,dashType:r.dashType});e.children.push(a)},_renderTextElement:function(e,t){var n=this,i=n.options.text,r=new v(t,{font:i.font,color:i.color,align:"center",vAlign:"bottom"});n.text=r,r.reflow(n.contentBox),r.box.unpad(i.margin),e.children.push(e.createText(t,{baseline:r.baseline,x:r.box.x1,y:r.box.y1,color:i.color,font:i.font}))},options:{name:"Barcode",renderAs:"canvas",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}}}),f.ui.plugin(l),c.deepExtend(f,{encodings:A,Encoding:C})}(window.kendo.jQuery),function(e,t){function n(e){return parseInt(e,2)}function i(e,t){var n=Number(e).toString(2);return n.length<t&&(n=Array(t-n.length+1).join(0)+n),n}function r(e,t){for(var n=[],i=0;i<e.length;)n.push(e.substring(i,i+t)),i+=t;return n}function o(e,t,n,i){for(var r=0;r<e.length;r++)e[r][n][i]=t}function a(e,t,n,i){for(var r=0;r<mt.length;r++)e[r][n][i]=mt[r](n,i)?1^t:parseInt(t,10)}function s(){var e,t;for(t=1;255>t;t++)e=2*rt[t-1],e>255&&(e=285^e),rt[t]=e,it[e]=t;e=285^2*rt[t-1],rt[t]=e,rt[-1]=0}function l(){var e,t,n,i=68;for(e=2;i>=e;e++)t=ot[e-1],n=[e,0],ot[e]=w(t,n)}function c(e,n){var i=[],r=e.length-1;do i[r]=rt[(e[r]+n)%255],r--;while(e[r]!==t);return i}function d(e,t){return parseInt(e.charAt(t),10)}function u(e,t,n,i,r){t[e][i]=(t[e][i]<<1^r)%128,t[e][i]==gt&&(n[e]+=40)}function h(e,t,n,i,r,o){n[e][o]==i?r[e][o]++:(n[e][o]=i,r[e][o]>=5&&(t[e]+=3+r[e][o]-5),r[e][o]=1)}function p(e,t){var n=Math.floor(100*(e/t)),i=n%5,r=Math.abs(n-i-50),o=Math.abs(n+5-i-50),a=10*Math.min(r/5,o/5);return a}var f,g,m,v,x,y,w,b,_,k,C,A,S,T,P,D,B,M,E,I,L,z,O,R,V,F,H,N,j,U,G,W,q,Q,Y=window.kendo,X=e.extend,$=Y.dataviz,Z=Y.ui.Widget,J=$.Box2D,K="0000",et="numeric",tt="alphanumeric",nt="byte",it={1:0},rt={0:1},ot=[[1,0],[1,25,0]],at={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},st=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}],lt=[1,0,1,1,1],ct=[1,0,1],dt={L:"01",M:"00",Q:"11",H:"10"},ut="101010000010010",ht="10100110111",pt="1111100100101",ft=["11101100","00010001"],gt=93,mt=[function(e,t){return 0===(e+t)%2},function(e){return 0===e%2},function(e,t){return 0===t%3},function(e,t){return 0===(e+t)%3},function(e,t){return 0===(Math.floor(e/2)+Math.floor(t/3))%2},function(e,t){return 0===e*t%2+e*t%3},function(e,t){return 0===(e*t%2+e*t%3)%2},function(e,t){return 0===((e+t)%2+e*t%3)%2}],vt=/^\d+/,xt="A-Z0-9 $%*+./:-",yt="A-Z $%*+./:-",wt=RegExp("^["+yt+"]+"),bt=RegExp("^["+xt+"]+"),_t=RegExp("^[^"+xt+"]+"),kt=8,Ct=5,At=8,St=17,Tt=9,Pt=16,Dt=Math.round,Bt=Y.Class.extend({getVersionIndex:function(e){return 10>e?0:e>26?2:1
},getBitsCharacterCount:function(e){var t=this;return t.bitsInCharacterCount[t.getVersionIndex(e||40)]},getModeCountString:function(e,t){var n=this;return n.modeIndicator+i(e,n.getBitsCharacterCount(t))},encode:function(){},getStringBitsLength:function(){},getValue:function(){},modeIndicator:"",bitsInCharacterCount:[]}),Mt={};Mt[et]=Bt.extend({bitsInCharacterCount:[10,12,14],modeIndicator:"0001",getValue:function(e){return parseInt(e,10)},encode:function(e,t){var n,o=this,a=r(e,3),s=o.getModeCountString(e.length,t);for(n=0;n<a.length-1;n++)s+=i(a[n],10);return s+i(a[n],1+3*a[n].length)},getStringBitsLength:function(e,t){var n=e%3;return 4+this.getBitsCharacterCount(t)+10*Math.floor(e/3)+3*n+(0===n?0:1)}}),Mt[tt]=Bt.extend({characters:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:18,J:19,K:20,L:21,M:22,N:23,O:24,P:25,Q:26,R:27,S:28,T:29,U:30,V:31,W:32,X:33,Y:34,Z:35," ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},bitsInCharacterCount:[9,11,13],modeIndicator:"0010",getValue:function(e){return this.characters[e]},encode:function(e,t){var n,o,a=this,s=r(e,2),l=a.getModeCountString(e.length,t);for(o=0;o<s.length-1;o++)n=45*a.getValue(s[o].charAt(0))+a.getValue(s[o].charAt(1)),l+=i(n,11);return n=2==s[o].length?45*a.getValue(s[o].charAt(0))+a.getValue(s[o].charAt(1)):a.getValue(s[o].charAt(0)),l+i(n,1+5*s[o].length)},getStringBitsLength:function(e,t){return 4+this.getBitsCharacterCount(t)+11*Math.floor(e/2)+6*(e%2)}}),Mt[nt]=Bt.extend({bitsInCharacterCount:[8,16,16],modeIndicator:"0100",getValue:function(e){var t=e.charCodeAt(0);if(127>=t||t>=160&&255>=t)return t;throw Error("Unsupported character: "+e)},encode:function(e,t){var n,r=this,o=r.getModeCountString(e.length,t);for(n=0;n<e.length;n++)o+=i(r.getValue(e.charAt(n)),8);return o},getStringBitsLength:function(e,t){return 4+this.getBitsCharacterCount(t)+8*e}}),f={};for(g in Mt)f[g]=new Mt[g];m=function(e){var n=this,i=e.length-1,r=e.length-1,o=r,a=-1,s=0;n.move=function(){i+=a*s,s^=1,r=o-s},n.getNextCell=function(){for(;e[i][r]!==t;)n.move(),(0>i||i>=e.length)&&(a=-a,o-=8!=o?2:3,r=o,i=0>a?e.length-1:0);return{row:i,column:r}},n.getNextRemainderCell=function(){return n.move(),e[i][r]===t?{row:i,column:r}:t}},v=function(e,t){var n,i,r,o,s,l,c=new m(e[0]);for(o=0;o<t.length;o++)for(n=t[o],i=0;n.length>0;){for(s=0;s<n.length;s++)for(l=0;8>l;l++)r=c.getNextCell(),a(e,n[s][i].charAt(l),r.row,r.column);for(i++;n[0]&&i==n[0].length;)n.splice(0,1)}for(;r=c.getNextRemainderCell();)a(e,0,r.row,r.column)},x=function(e,t){for(var n=8*t,i=0,r=0;e.length<n&&i<K.length;)e+=K.charAt(i++);for(0!==e.length%8&&(e+=Array(9-e.length%8).join("0"));e.length<n;)e+=ft[r],r^=1;return e},y=function(e,t){var n,i=[],r=e.length-2;for(n=r;n>=0;n--)i[n]=e[n]^t[n];return i},w=function(e,n){var i,r,o=[];for(i=0;i<e.length;i++)for(r=0;r<n.length;r++)o[i+r]=o[i+r]===t?(e[i]+(n[r]>=0?n[r]:0))%255:it[rt[o[i+r]]^rt[(e[i]+n[r])%255]];return o},s(),l(),b=function(e,t){var n,r,o=ot[t-1],a=Array(t).concat(e),s=Array(a.length-o.length).concat(o),l=e.length,d=[];for(r=0;l>r;r++)n=c(s,it[a[a.length-1]]),s.splice(0,1),a=y(n,a);for(r=a.length-1;r>=0;r--)d[t-1-r]=i(a[r],8);return d},_=function(e,t){var i,r,o,a,s,l,c,d,u=0,h=[],p=[],f=t.groups;for(l=0;l<f.length;l++)for(o=f[l][0],c=0;o>c;c++){for(r=f[l][1],i=[],a=[],d=1;r>=d;d++)s=e.substring(u,u+8),i.push(s),a[r-d]=n(s),u+=8;h.push(i),p.push(b(a,t.errorCodewordsPerBlock))}return[h,p]},k=function(e,t,n,i,r){var o,a,s=vt.exec(e),l=s?s[0]:"",c=wt.exec(e),d=c?c[0]:"",u=bt.exec(e),h=u?u[0]:"";return l&&(l.length>=t||e.length==l.length||l.length>=n&&!bt.test(e.charAt(l.length)))?(o=et,a=l):h&&(e.length==h.length||h.length>=i||r==tt)?(o=tt,a=l||d):(o=nt,a=h?h+_t.exec(e.substring(h.length))[0]:_t.exec(e)[0]),{mode:o,modeString:a}},C=function(e){var t,n,i=[],r=0;for(i.push(k(e,kt,Ct,At,t)),t=i[0].mode,e=e.substr(i[0].modeString.length);e.length>0;)n=k(e,St,Tt,Pt,t),n.mode!=t?(t=n.mode,i.push(n),r++):i[r].modeString+=n.modeString,e=e.substr(n.modeString.length);return i},A=function(e){var t,n,i=0;for(n=0;n<e.length;n++)t=f[e[n].mode],i+=t.getStringBitsLength(e[n].modeString.length);return Math.ceil(i/8)},S=function(e,t){var n=0,i=st.length-1,r=Math.floor(st.length/2);do e<st[r][t].totalDataCodewords?i=r:n=r,r=n+Math.floor((i-n)/2);while(i-n>1);return e<=st[n][t].totalDataCodewords?r+1:i+1},T=function(e,t){var n,i,r="";for(i=0;i<e.length;i++)n=f[e[i].mode],r+=n.encode(e[i].modeString,t);return r},P=function(e){var t,i,r=n(e),o="";if(0===r)return"101010000010010";for(t=D(n(e),ht,15),i=0;i<t.length;i++)o+=t.charAt(i)^ut.charAt(i);return o},D=function(e,t,r){var o=n(t),a=t.length-1,s=e<<a,l=r-a,c=i(e,l),d=B(s,o);return d=c+i(d,a)},B=function(e,t){var n=t.toString(2).length,i=e.toString(2).length;do e^=t<<i-n,i=e.toString(2).length;while(i>=n);return e},M=function(e){var t,n,i=[],r=17+4*e;for(t=0;t<mt.length;t++)for(i[t]=Array(r),n=0;r>n;n++)i[t][n]=Array(r);return i},E=function(e,t){var n,i,r=e[0],a=0,s=t.length;for(n=0,i=8;8>=n;n++)6!==n&&o(e,d(t,s-1-a++),n,i);for(n=8,i=7;i>=0;i--)6!==i&&o(e,d(t,s-1-a++),n,i);for(a=0,i=r.length-1,n=8;i>=r.length-8;i--)o(e,d(t,s-1-a++),n,i);for(o(e,1,r.length-8,8),n=r.length-7,i=8;n<r.length;n++)o(e,d(t,s-1-a++),n,i)},I=function(e){return D(e,pt,18)},L=function(e,t){var n,i,r,a,s=e[0],l=s.length,c=0,u=l-11,h=l-11,p=0;for(a=0;a<t.length;a++)n=Math.floor(a/3),i=a%3,r=d(t,t.length-a-1),o(e,r,c+n,u+i),o(e,r,h+i,p+n)},z=function(e,t,n,i){var r,a,s,l=t.length+2,c=t.length+1;for(a=0;a<t.length;a++)for(s=a;l-a>s;s++)r=t[a],o(e,r,n+s,i+a),o(e,r,n+a,i+s),o(e,r,n+c-s,i+c-a),o(e,r,n+c-a,i+c-s)},O=function(e,t,n,i){var r=n,a=i,s=e[0];do o(e,0,r,i),o(e,0,n,a),r+=t[0],a+=t[1];while(r>=0&&r<s.length)},R=function(e){var t=e[0].length;z(e,lt,0,0),O(e,[-1,-1],7,7),z(e,lt,t-7,0),O(e,[1,-1],t-8,7),z(e,lt,0,t-7),O(e,[-1,1],7,t-8)},V=function(e,n){var i,r,o,a,s,l,c,d,u;if(!(2>n)){for(o=e[0],a=o.length,s=Math.floor(n/7),l=[6],c=0,(i=at[n])?r=(a-13-i)/s:i=r=(a-13)/(s+1),l.push(l[c++]+i);l[c]+r<a;)l.push(l[c++]+r);for(d=0;d<l.length;d++)for(u=0;u<l.length;u++)o[l[d]][l[u]]===t&&z(e,ct,l[d]-2,l[u]-2)}},F=function(e){var t,n=6,i=6,r=1,a=e[0].length;for(t=8;a-8>t;t++)o(e,r,n,t),o(e,r,t,i),r^=1},H=function(e){var t,n,i,r,o,a,s,l=[],c=[],d=[],f=[],g=[],m=0,v=1,x=e[0].length;for(n=0;n<e.length;n++)l[n]=0,d[n]=0,g[n]=[0,0],f[n]=[0,0],c[n]=[];for(n=0;x>n;n++)for(i=0;x>i;i++)for(r=0;r<e.length;r++)t=e[r],d[r]+=parseInt(t[n][i],10),c[r][m]===t[n][i]&&x>n+1&&i-1>=0&&t[n+1][i]==c[r][m]&&t[n+1][i-1]==c[r][m]&&(l[r]+=3),u(r,f,l,m,t[n][i]),u(r,f,l,v,t[i][n]),h(r,l,c,t[n][i],g,m),h(r,l,c,t[i][n],g,v);for(a=x*x,s=Number.MAX_VALUE,n=0;n<l.length;n++)l[n]+=p(d[n],a),l[n]<s&&(s=l[n],o=n);return o},N=function(e,t){this.dataString=e,this.version=t},j=function(){this.getEncodingResult=function(e,t){var n=C(e),i=A(n),r=S(i,t),o=T(n,r);return new N(o,r)}},U=function(){this.mode=f[this.encodingMode]},U.fn=U.prototype={encodingMode:nt,utfBOM:"111011111011101110111111",initialModeCountStringLength:20,getEncodingResult:function(e,t){var n=this,i=n.encode(e),r=n.getDataCodewordsCount(i),o=S(r,t),a=n.mode.getModeCountString(i.length/8,o)+i;return new N(a,o)},getDataCodewordsCount:function(e){var t=this,n=e.length,i=Math.ceil((t.initialModeCountStringLength+n)/8);return i},encode:function(e){var t,n=this,i=n.utfBOM;for(t=0;t<e.length;t++)i+=n.encodeCharacter(e.charCodeAt(t));return i},encodeCharacter:function(e){var t,n,r=this.getBytesCount(e),o=r-1,a="";if(1==r)a=i(e,8);else{for(t=8-r,n=0;o>n;n++)a=i(128|63&e>>6*n,8)+a;a=(e>>6*o|255>>t<<t).toString(2)+a}return a},getBytesCount:function(e){var t,n=this.ranges;for(t=0;t<n.length;t++)if(e<n[t])return t+1},ranges:[128,2048,65536,2097152,67108864]},G=function(e){return e&&e.toLowerCase().indexOf("utf_8")>=0?new U:new j},W=function(e,t,n){var r,o,a,s=new G(n),l=s.getEncodingResult(e,t),c=l.version,d=st[c-1][t],u=x(l.dataString,d.totalDataCodewords),h=_(u,d),p=M(c);return R(p),V(p,c),F(p),c>=7&&L(p,i(0,18)),E(p,i(0,15)),v(p,h),r=H(p),o=p[r],c>=7&&L([o],I(c)),a=dt[t]+i(r,3),E([o],P(a)),o},q={DEFAULT_SIZE:200,QUIET_ZONE_LENGTH:4,DEFAULT_ERROR_CORRECTION_LEVEL:"L",DEFAULT_BACKGROUND:"#fff",DEFAULT_DARK_MODULE_COLOR:"#000",MIN_BASE_UNIT_SIZE:1},Q=Z.extend({init:function(t,n){var i=this;Z.fn.init.call(i,t,n),i.element=e(t),i.wrapper=i.element,i.element.addClass("k-qrcode"),i._view=$.ViewFactory.current.create({},i.options.renderAs),i.setOptions(n)},redraw:function(){var e=this,t=e._view;e._redraw(t),t.renderTo(e.element[0])},svg:function(){if($.SVGView){var e=new $.SVGView;return this._redraw(e),e.render()}throw Error("Unable to create SVGView. Check that kendo.dataviz.svg.js is loaded.")},imageDataURL:function(){if($.CanvasView){if($.supportsCanvas()){var e=document.createElement("div"),t=new $.CanvasView;return this._redraw(t),t.renderTo(e).toDataURL()}return Y.logToConsole("Warning: Unable to generate image. The browser does not support Canvas.\nUser agent: "+navigator.userAgent),null}throw Error("Unable to create CanvasView. Check that kendo.dataviz.canvas.js is loaded.")},getSize:function(){return Y.dimensions(this.element)},_resize:function(){this.redraw()},_redraw:function(e){var t,n,i,r,o,a,s=this,l=s._value,c=s.options.border||{},d=c.width||0;c.width=d,l&&(i=W(l,s.options.errorCorrection,s.options.encoding),r=s._getSize(),a=r-2*d,t=s._calculateBaseUnit(a,i.length),o=i.length*t,n=s._calculateQuietZone(o,a,d),e.children=[],e.options.width=r,e.options.height=r,s._renderBackground(e,r,c),s._renderMatrix(e,i,t,n))},_getSize:function(){var e,t,n,i=this;return i.options.size?e=parseInt(i.options.size,10):(t=i.element,n=Math.min(t.width(),t.height()),e=n>0?n:q.DEFAULT_SIZE),e},_calculateBaseUnit:function(e,t){var n=Math.floor(e/t);if(n<q.MIN_BASE_UNIT_SIZE)throw Error("Insufficient size.");return n*t>=e&&n-1>=q.MIN_BASE_UNIT_SIZE&&n--,n},_calculateQuietZone:function(e,t,n){return n+(t-e)/2},_renderMatrix:function(e,t,n,i){var r,o,a,s,l,c=this,d=[];for(l=0;l<t.length;l++)for(r=i+l*n,s=0;s<t.length;){for(;0===t[l][s]&&s<t.length;)s++;if(s<t.length){for(o=s;1==t[l][s];)s++;a=new J(Dt(i+o*n),Dt(r),Dt(i+s*n),Dt(r+n)),d.push(a.points())}}e.children.push(e.createMultiLine(d,{fill:c.options.color,stroke:c.options.color,strokeWidth:0,align:!1}))},_renderBackground:function(e,t,n){var i=this;e.children.push(e.createRect(J(0,0,t,t).unpad(n.width/2),{fill:i.options.background,stroke:n.color,strokeWidth:n.width,align:!1}))},setOptions:function(e){var n=this;e=e||{},n.options=X(n.options,e),e.value!==t&&(n._value=n.options.value+""),n.redraw()},value:function(e){var n=this;return e===t?n._value:(n._value=e+"",n.redraw(),t)},options:{name:"QRCode",renderAs:"canvas",encoding:"ISO_8859_1",value:"",errorCorrection:q.DEFAULT_ERROR_CORRECTION_LEVEL,background:q.DEFAULT_BACKGROUND,color:q.DEFAULT_DARK_MODULE_COLOR,size:"",border:{color:"",width:0}}}),$.ui.plugin(Q),Y.deepExtend($,{QRCode:Q,QRCodeDefaults:q,QRCodeFunctions:{FreeCellVisitor:m,fillData:v,padDataString:x,generateErrorCodewords:b,xorPolynomials:y,getBlocks:_,multiplyPolynomials:w,chooseMode:k,getModes:C,getDataCodewordsCount:A,getVersion:S,getDataString:T,encodeFormatInformation:P,encodeBCH:D,dividePolynomials:B,initMatrices:M,addFormatInformation:E,encodeVersionInformation:I,addVersionInformation:L,addCentricPattern:z,addFinderSeparator:O,addFinderPatterns:R,addAlignmentPatterns:V,addTimingFunctions:F,scoreMaskMatrixes:H,encodeData:W,UTF8Encoder:U},QRCodeFields:{modes:f,powersOfTwo:it,powersOfTwoResult:rt,generatorPolynomials:ot}})}(window.kendo.jQuery),function(e){function t(){}function n(e){return t.prototype=e,new t}var i,r=window.kendo,o=r.Class,a=r.Observable,s=r.deepExtend,l=Math,c=e.proxy,d=r.dataviz,u=d.defined,h=d.filterSeriesByType,p=r.template,f=d.ui.Chart,g=d.Selection,m=d.addDuration,v=d.last,x=d.limitValue,y=d.lteDateIndex,w=d.renderTemplate,b=d.toDate,_=d.toTime,k=28,C="change",A="k-",S="drag",T="dragEnd",P="_navigator",D=P,B=d.EQUALLY_SPACED_SERIES,M=3,E="zoom",I="zoomEnd",L=f.extend({init:function(t,n){e(t).addClass(A+"chart"),f.fn.init.call(this,t,n)},_applyDefaults:function(e,t){var n=this,i=n.element.width()||d.DEFAULT_WIDTH,r={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:l.floor(i/k)}}};t&&(t=s({},t,r)),n._navigator||z.setup(e,t),f.fn._applyDefaults.call(n,e,t)},_initDataSource:function(e){var t,n,i=e||{},r=i.dataSource,o=r&&r.serverFiltering,a=[].concat(i.categoryAxis)[0],l=i.navigator||{},c=l.select,u=c&&c.from&&c.to;o&&u&&(t=[].concat(r.filter||[]),n=new d.DateCategoryAxis(s({baseUnit:"fit"},a,{categories:[c.from,c.to]})),r.filter=z.buildFilter(n.range().min,c.to).concat(t)),f.fn._initDataSource.call(this,e)},options:{name:"StockChart",dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0,template:"#= kendo.toString(category, 'd') #"},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}},_redraw:function(){var e=this,t=e._navigator;t&&t.dataSource?t.redrawSlaves():(t||(t=e._navigator=new z(e)),t.filterAxes(),f.fn._redraw.call(e),t.redraw())},_onDataChanged:function(){var e=this;f.fn._onDataChanged.call(e),e._dataBound=!0},_bindCategoryAxis:function(e,t,n){var i,r=this,o=r.options.categoryAxis,a=o.length;if(f.fn._bindCategoryAxis.apply(this,arguments),e.name===D)for(;a>n;)i=o[n++],i.pane==P&&(i.categories=e.categories)},_trackSharedTooltip:function(e){var t=this,n=t._plotArea,i=n.paneByPoint(e);i&&i.options.name===P?t._unsetActivePoint():f.fn._trackSharedTooltip.call(t,e)},destroy:function(){var e=this;e._navigator.destroy(),f.fn.destroy.call(e)}}),z=a.extend({init:function(e){var t=this;t.chart=e,t.options=s({},t.options,e.options.navigator),t._initDataSource(),u(t.options.hint.visible)||(t.options.hint.visible=t.options.visible),e.bind(S,c(t._drag,t)),e.bind(T,c(t._dragEnd,t)),e.bind(E,c(t._zoom,t)),e.bind(I,c(t._zoomEnd,t))},options:{},_initDataSource:function(){var e=this,t=e.options,n=t.autoBind,i=t.dataSource;u(n)||(n=e.chart.options.autoBind),e._dataChangedHandler=c(e._onDataChanged,e),i&&(e.dataSource=r.data.DataSource.create(i).bind(C,e._dataChangedHandler),n&&e.dataSource.fetch())},_onDataChanged:function(){var e,t,n,i,r,o=this,a=o.chart,s=a.options.series,l=s.length,c=a.options.categoryAxis,d=c.length,u=o.dataSource.view();for(e=0;l>e;e++)n=s[e],n.axis==D&&a._isBindable(n)&&(n.data=u);for(t=0;d>t;t++)i=c[t],i.pane==P&&(i.name==D?(a._bindCategoryAxis(i,u,t),r=i.categories):i.categories=r);a._model&&(o.redraw(),o.filterAxes(),(!a.options.dataSource||a.options.dataSource&&a._dataBound)&&o.redrawSlaves())},destroy:function(){var e=this,t=e.dataSource;t&&t.unbind(C,e._dataChangeHandler),e.selection&&e.selection.destroy()},redraw:function(){this._redrawSelf();var t=this,r=t.chart,o=t.options,a=t.mainAxis(),s=n(a),l=a.options.categories,c=t.options.select||{},d=t.selection,u=a.range(),h=u.min,p=u.max,f=c.from||h,m=c.to||p;l.length>0&&(d&&(d.destroy(),d.wrapper.remove()),s.box=a.box,d=t.selection=new g(r,s,{min:h,max:p,from:f,to:m,selectStart:e.proxy(t._selectStart,t),select:e.proxy(t._select,t),selectEnd:e.proxy(t._selectEnd,t),mousewheel:{zoom:"left"}}),o.hint.visible&&(t.hint=new i(r.element,{min:h,max:p,template:o.hint.template,format:o.hint.format})))},_redrawSelf:function(e){var t=this.chart._plotArea;t&&t.redraw(v(t.panes),e)},redrawSlaves:function(){var e=this,t=e.chart,n=t._plotArea,i=n.panes.slice(0,-1);n.srcSeries=t.options.series,n.redraw(i)},_drag:function(e){var t,n,i,r=this,o=r.chart,a=o._eventCoordinates(e.originalEvent),s=r.mainAxis(),l=s.range(),c=s.pane.box.containsPoint(a),d=o._plotArea.categoryAxis,u=e.axisRanges[d.options.name],h=r.options.select,p=r.selection;u&&!c&&p&&(t=h.from&&h.to?_(h.to)-_(h.from):_(p.options.to)-_(p.options.from),n=b(x(_(u.min),l.min,_(l.max)-t)),i=b(x(_(n)+t,_(l.min)+t,l.max)),r.options.select={from:n,to:i},r._liveDrag()&&(r.filterAxes(),r.redrawSlaves()),p.set(n,i),r.showHint(n,i))},_dragEnd:function(){var e=this;e.filterAxes(),e.filterDataSource(),e.redrawSlaves(),e.hint&&e.hint.hide()},_liveDrag:function(){var e=r.support,t=e.touch,n=e.browser,i=n.mozilla,o=n.msie&&n.version<9;return!t&&!i&&!o},readSelection:function(){var e=this,t=e.selection,n=t.options,i=e.options.select;i.from=n.from,i.to=n.to},filterAxes:function(){var e,t,n=this,i=n.options.select||{},r=n.chart,o=r.options.categoryAxis,a=i.from,s=i.to;for(e=0;e<o.length;e++)t=o[e],t.pane!==P&&(t.min=b(a),t.max=b(s))},filterDataSource:function(){var e,t=this,n=t.options.select||{},i=t.chart,r=i.dataSource,o=r&&r.options.serverFiltering;t.dataSource&&o&&(e=new d.DateCategoryAxis(s({baseUnit:"fit"},i.options.categoryAxis[0],{categories:[n.from,n.to]})).options,r.filter(z.buildFilter(m(e.min,-e.baseUnitStep,e.baseUnit),m(e.max,e.baseUnitStep,e.baseUnit))))},_zoom:function(e){var t,n,i=this,o=i.chart,a=e.delta,s=o._plotArea.categoryAxis,c=i.options.select,d=i.selection,u=i.mainAxis().options.categories;d&&(t=y(d.options.from,u),n=y(d.options.to,u),e.originalEvent.preventDefault(),l.abs(a)>1&&(a*=M),n-t>1?(d.expand(a),i.readSelection()):(s.options.min=c.from,c.from=s.scaleRange(-e.delta).min),r.support.touch||(i.filterAxes(),i.redrawSlaves()),d.set(c.from,c.to),i.showHint(i.options.select.from,i.options.select.to))},_zoomEnd:function(e){this._dragEnd(e)},showHint:function(e,t){var n=this,i=n.chart,r=i._plotArea;n.hint&&n.hint.show(e,t,r.backgroundBox())},_selectStart:function(e){var t=this.chart;t._selectStart.call(t,e)},_select:function(e){var t=this,n=t.chart;t.showHint(e.from,e.to),n._select.call(n,e)},_selectEnd:function(e){var t=this,n=t.chart;t.hint&&t.hint.hide(),t.readSelection(),t.filterAxes(),t.filterDataSource(),t.redrawSlaves(),n._selectEnd.call(n,e)},mainAxis:function(){var e=this.chart._plotArea;return e?e.namedCategoryAxes[D]:undefined}});z.setup=function(e,t){e=e||{},t=t||{};var n=s({},t.navigator,e.navigator),i=e.panes=[].concat(e.panes),r=s({},n.pane,{name:P});n.visible||(r.visible=!1,r.height=.1),i.push(r),z.attachAxes(e,n),z.attachSeries(e,n,t)},z.attachAxes=function(e,t){var n=t.series||[],i=e.categoryAxis=[].concat(e.categoryAxis),r=e.valueAxis=[].concat(e.valueAxis),o=h(n,B),a=0===o.length,l=s({type:"date",pane:P,roundToBaseUnit:!a,justified:a,tooltip:{visible:!1},labels:{step:1},autoBind:!t.dataSource,autoBaseUnitSteps:{minutes:[1],hours:[1],days:[1],weeks:[],months:[1],years:[1]},_overlap:!1},t.categoryAxis);i.push(s({},l,{name:D,baseUnit:"fit",maxDateGroups:200,baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),s({},l,{name:D+"_labels",maxDateGroups:20,baseUnitStep:"auto",autoBaseUnitSteps:{minutes:[]},majorTicks:{visible:!0}}),s({},l,{name:D+"_ticks",maxDateGroups:200,majorTicks:{visible:!0,width:.5},labels:{visible:!1,mirror:!0}})),r.push({name:D,pane:P,majorGridLines:{visible:!1},visible:!1})},z.attachSeries=function(e,t,n){var i,r=e.series=e.series||[],o=[].concat(t.series||[]),a=n.seriesColors,l=t.seriesDefaults;for(i=0;i<o.length;i++)r.push(s({color:a[i%a.length],categoryField:t.dateField,visibleInLegend:!1,tooltip:{visible:!1}},l,o[i],{axis:D,categoryAxis:D,autoBind:!t.dataSource}))},z.buildFilter=function(e,t){return[{field:"Date",operator:"gte",value:b(e)},{field:"Date",operator:"lt",value:b(t)}]},i=o.extend({init:function(t,n){var i=this;i.options=s({},i.options,n),i.container=t,i.chartPadding={top:parseInt(t.css("paddingTop"),10),left:parseInt(t.css("paddingLeft"),10)},i.template=i.template,i.template||(i.template=i.template=w("<div class='"+A+"navigator-hint' "+"style='display: none; position: absolute; top: 1px; left: 1px;'>"+"<div class='"+A+"tooltip'>&nbsp;</div>"+"<div class='"+A+"scroll' />"+"</div>")),i.element=e(i.template()).appendTo(t)},options:{format:"{0:d} - {1:d}",hideDelay:500},show:function(e,t,n){var i,o=this,a=b(_(e)+_(t-e)/2),s=o.options,l=r.format(o.options.format,e,t),c=o.element.find("."+A+"tooltip"),d=o.element.find("."+A+"scroll"),u=.4*n.width(),h=n.center().x-u,f=n.center().x,g=f-h,m=s.max-s.min,v=g/m,x=a-s.min;o._hideTimeout&&clearTimeout(o._hideTimeout),o._visible||(o.element.stop(!1,!0).css("visibility","hidden").show(),o._visible=!0),s.template&&(i=p(s.template),l=i({from:e,to:t})),c.html(l).css({left:n.center().x-c.outerWidth()/2,top:n.y1}),d.css({width:u,left:h+x*v,top:n.y1+parseInt(c.css("margin-top"),10)+parseInt(c.css("border-top-width"),10)+c.height()/2}),o.element.css("visibility","visible")},hide:function(){var e=this;e._hideTimeout&&clearTimeout(e._hideTimeout),e._hideTimeout=setTimeout(function(){e._visible=!1,e.element.fadeOut("slow")},e.options.hideDelay)}}),d.ui.plugin(L),s(d,{Navigator:z})}(window.kendo.jQuery),function(e){function t(e){return"number"==typeof e?[e]:e}var n=window.kendo,i=n.dataviz,r=i.ui.Chart,o=n.data.ObservableArray,a=i.SharedTooltip,s=n.deepExtend,l=e.isArray,c=i.inArray,d=Math,u="k-",h=150,p=150,f="bar",g="bullet",m="pie",v=[f,g],x=r.extend({init:function(n,i){var a=this,h=a.stage=e("<span />"),p=i||{};n=e(n).addClass(u+"sparkline").empty().append(h),a._initialWidth=d.floor(n.width()),p=t(p),(l(p)||p instanceof o)&&(p={seriesDefaults:{data:p}}),p.series||(p.series=[{data:t(p.data)}]),s(p,{seriesDefaults:{type:p.type}}),(c(p.series[0].type,v)||c(p.seriesDefaults.type,v))&&(p=s({},{categoryAxis:{crosshair:{visible:!1}}},p)),r.fn.init.call(a,n,p)},options:{name:"Sparkline",chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5},_applyDefaults:function(e){var t=this,n=i.ViewFactory.current.create({},e.renderAs);i.CanvasView&&n instanceof i.CanvasView&&s(e,{categoryAxis:{crosshair:{visible:!1}}}),r.fn._applyDefaults.apply(t,arguments)},_modelOptions:function(){var e,t=this,n=t.options,i=t._initialWidth,r=t.stage;return t.stage[0].innerHTML="&nbsp;",e=s({width:i?i:t._autoWidth(),height:r.height(),transitions:n.transitions},n.chartArea,{inline:!0,align:!1}),r.css({width:e.width,height:e.height}),e},_createTooltip:function(){var e,t=this,n=t.options,i=t.element;return e=t._sharedTooltip()?new y(i,t._plotArea,n.tooltip):r.fn._createTooltip.call(t)},_renderView:function(){var e=this;return e.element.empty().append(e.stage),e._view.renderTo(e.stage[0])},_autoWidth:function(){var e,t,n,r=this,o=r.options,a=i.getSpacing(o.chartArea.margin),s=o.series,l=r.dataSource.total(),c=0;for(t=0;t<s.length;t++){if(n=s[t],n.type===f)return h;if(n.type===g)return p;if(n.type===m)return r.stage.height();n.data&&(c=d.max(c,n.data.length))}return e=d.max(l,c)*o.pointWidth,e>0&&(e+=a.left+a.right),e}}),y=a.extend({options:{animation:{duration:0}},_anchor:function(e,t){var n=a.fn._anchor.call(this,e,t);return n.y=-this.element.height()-this.options.offset,n},_hideElement:function(){this.element.hide()}});i.ui.plugin(x),s(i,{})}(window.kendo.jQuery),function(){function e(e){this.view=e}function t(e){this.view=e}function n(e){return l.round(e)+.5}function i(e,t){var n,i,r=[];if(e=e?e.toLowerCase():null,e&&e!=E){for(n=S[e],i=0;i<n.length;i++)r.push(n[i]*(t||1));return"stroke-dasharray='"+r.join(" ")+"' "}return""}var r,o,a=jQuery,s=document,l=Math,c=window.kendo,d=c.Class,u=c.dataviz,h=u.Box2D,p=u.ExpandAnimation,f=u.Point2D,g=u.ViewBase,m=u.ViewElement,v=c.deepExtend,x=u.defined,y=u.round,w=u.renderTemplate,b=u.rotatePoint,_=u.uniqueId,k="butt",C=u.CLIP,A=u.COORD_PRECISION,S=u.DASH_ARRAYS,T=u.DEFAULT_WIDTH,P=u.DEFAULT_HEIGHT,D=u.DEFAULT_FONT,B="none",M="radial",E="solid",I="square",L="http://www.w3.org/2000/svg",z="transparent",O="undefined",R=g.extend({init:function(n){var i=this;g.fn.init.call(i,n),i.decorators.push(new e(i),new t(i)),u.ui.Chart&&i.decorators.push(new u.BarAnimationDecorator(i),new u.PieAnimationDecorator(i),new u.BubbleAnimationDecorator(i)),i.decorators.push(new r(i),new u.FadeAnimationDecorator(i)),u.Gauge&&i.decorators.push(new u.RadialPointerAnimationDecorator(i),new u.ArrowPointerAnimationDecorator(i),new u.BarIndicatorAnimationDecorator(i)),i.defsId=_(),i.template=R.template,i.display=i.options.inline?"inline":"block",i.template||(i.template=R.template=w("<?xml version='1.0' ?><svg xmlns='"+L+"' version='1.1' "+"width='#= d.options.width #px' height='#= d.options.height #px' "+"style='position: relative; display: #= d.display #;'>"+"#= d.renderDefinitions() #"+"#= d.renderContent() #</svg>"))},options:{width:T,height:P},renderTo:function(e){var t,n=this;return n.setupAnimations(),u.renderSVG(e,n.render()),t=e.firstElementChild,n.alignToScreen(t),n.playAnimations(),n._viewElement=t,t},renderDefinitions:function(){var e=this,t=e.defsId,n=g.fn.renderDefinitions.call(e);return"<defs id='"+t+"'>"+n+"</defs>"},renderElement:function(e){var t,n,i=this,r=s.createElement("div"),o=s.getElementById(i.defsId);return u.renderSVG(r,"<?xml version='1.0' ?><svg xmlns='"+L+"' version='1.1'>"+i.renderDefinitions()+e.render()+"</svg>"),t=r.firstElementChild.firstChild,n=r.firstElementChild.lastChild,o&&o.textContent!==t.textContent&&o.parentNode.replaceChild(t,o),n},createGroup:function(e){return this.decorate(new Q(e))},createText:function(e,t){return this.decorate(new V(e,t))},createRect:function(e,t){return this.decorate(new N(e.points(),!0,this.setDefaults(t)))},createCubicCurve:function(e,t,n){return this.decorate(new H(e,t,n))},createLine:function(e,t,n,i,r){return this.decorate(new N([new f(e,t),new f(n,i)],!1,this.setDefaults(r)))},createMultiLine:function(e,t){return this.decorate(new j(e,!1,this.setDefaults(t)))},createPolyline:function(e,t,n){return this.decorate(new N(e,t,this.setDefaults(n)))},createCircle:function(e,t,n){return this.decorate(new q(e,t,n))},createSector:function(e,t){return this.decorate(new W(e,t))},createRing:function(e,t){return this.decorate(new U(e,t))},createPin:function(e,t){return this.decorate(new G(e,t))},createGradient:function(e){return e.type===M?x(e.ir)?new J(e):new Z(e):new $(e)},alignToScreen:function(e){var t,n,i,r;try{t=e.getScreenCTM?e.getScreenCTM():null}catch(o){}t&&(n=-t.e%1,i=-t.f%1,r=e.style,(0!==n||0!==i)&&(r.left=n+"px",r.top=i+"px"))}}),V=m.extend({init:function(e,t){var n=this;m.fn.init.call(n,t),n.content=e,n.template=V.template,n.template||(n.template=V.template=w("<text #= d.renderId() # #= d.renderDataAttributes() # x='#= Math.round(d.options.x) #' y='#= Math.round(d.options.y + d.options.baseline) #' fill-opacity='#= d.options.fillOpacity #' #= d.options.rotation ? d.renderRotation() : '' # style='font: #= d.options.font #; #= d.renderCursor() #' fill='#= d.options.color #'>#= d.content #</text>"))},options:{x:0,y:0,baseline:0,font:D,size:{width:0,height:0},fillOpacity:1,cursor:{}},refresh:function(e){var t=this.options;a(e).attr({"fill-opacity":t.fillOpacity})},clone:function(){var e=this;return new V(e.content,v({},e.options))},renderRotation:function(){var e=this,t=e.options,n=t.size,i=y(t.x+n.normalWidth/2,A),r=y(t.y+n.normalHeight/2,A),o=y(t.x+n.width/2,A),a=y(t.y+n.height/2,A),s=y(o-i,A),l=y(a-r,A);return"transform='translate("+s+","+l+") "+"rotate("+t.rotation+","+i+","+r+")'"}}),F=m.extend({init:function(e){var t=this;m.fn.init.call(t,e),t.template=F.template,t.template||(t.template=F.template=w("<path #= d.renderId() #style='display: #= d.renderDisplay() #; #= d.renderCursor() #' #= d.renderDataAttributes() # d='#= d.renderPoints() #' #= d.renderAttr(\"stroke\", d.options.stroke) # #= d.renderAttr(\"stroke-width\", d.options.strokeWidth) ##= d.renderDashType() # stroke-linecap='#= d.renderLinecap() #' stroke-linejoin='round' fill-opacity='#= d.options.fillOpacity #' stroke-opacity='#= d.options.strokeOpacity #' fill='#= d.renderFill() #'></path>"))},options:{fill:"",fillOpacity:1,strokeOpacity:1,rotation:[0,0,0],strokeLineCap:I,visible:!0,cursor:{}},refresh:function(e){var t=this.options;a(e).attr({d:this.renderPoints(),"fill-opacity":t.fillOpacity,"stroke-opacity":t.strokeOpacity}).css("display",this.renderDisplay())},clone:function(){return new F(v({},this.options))},renderPoints:function(){},renderDashType:function(){var e=this,t=e.options;return i(t.dashType,t.strokeWidth)},renderLinecap:function(){var e=this.options,t=e.dashType,n=e.strokeLineCap;return t&&t!=E?k:n},renderFill:function(){var e=this.options.fill;return e&&e!==z?e:B},renderDisplay:function(){return this.options.visible?"block":"none"},destroy:function(){}}),H=F.extend({init:function(e,t,n){var i=this;F.fn.init.call(i,t),i.areaPoints=n,i.points=e},renderPoints:function(){var e,t=this,n=t.points,i=[],r=t.areaPoints;for(e=0;e<n.length;e++)1==e%3&&i.push("C"),i.push(y(n[e].x,A)+" "+y(n[e].y,A));if(r&&r.length){for(e=0;e<r.length;e++)i.push("L "+r[e].x+" "+r[e].y);i.push("z")}return"M "+i.join(" ")}}),N=F.extend({init:function(e,t,n){var i=this;F.fn.init.call(i,n),i.points=e,i.closed=t},renderPoints:function(){var e=this,t=e.points;return e._renderPoints(t)},_renderPoints:function(e){var t,n=this,i=n.options.rotation,r=new f(i[1],i[2]),o=-i[0],a=[];for(t=0;t<e.length;t++)a.push(n._print(e[t].clone().rotate(r,o)));return n.closed&&a.push("z"),"M"+a.join(" ")},clone:function(){var e=this;return new N(v([],e.points),e.closed,v({},e.options))},_print:function(e){var t=this,i=t.options,r=i.strokeWidth,o=i.align!==!1&&r&&0!==r%2,a=o?n:y;return a(e.x,A)+" "+a(e.y,A)}}),j=N.extend({renderPoints:function(){var e,t=this,n=t.points,i=[];for(e=0;e<n.length;e++)i.push(t._renderPoints(n[e]));return i.join(" ")}}),U=F.extend({init:function(e,t){var n=this;F.fn.init.call(n,t),n.pathTemplate=U.pathTemplate,n.pathTemplate||(n.pathTemplate=U.pathTemplate=w("M #= d.firstOuterPoint.x # #= d.firstOuterPoint.y # A#= d.r # #= d.r # 0 #= d.isReflexAngle ? '1' : '0' #,1 #= d.secondOuterPoint.x # #= d.secondOuterPoint.y # L #= d.secondInnerPoint.x # #= d.secondInnerPoint.y # A#= d.ir # #= d.ir # 0 #= d.isReflexAngle ? '1' : '0' #,0 #= d.firstInnerPoint.x # #= d.firstInnerPoint.y # z")),n.config=e||{}},renderPoints:function(){var e,t,n=this,i=n.config,r=i.startAngle,o=i.angle+r,a=o-r>180,s=l.max(i.r,0),c=l.max(i.ir,0),d=i.c,u=i.point(r),h=i.point(r,!0);return y(r)%360===y(o)%360&&(o-=.05),e=i.point(o),t=i.point(o,!0),n.pathTemplate({firstOuterPoint:u,secondOuterPoint:e,isReflexAngle:a,r:s,ir:c,cx:d.x,cy:d.y,firstInnerPoint:h,secondInnerPoint:t})},clone:function(){var e=this;return new U(v({},e.config),v({},e.options))}}),G=F.extend({init:function(e,t){var n=this;F.fn.init.call(n,t),n.pathTemplate=G.pathTemplate,n.pathTemplate||(n.pathTemplate=G.pathTemplate=w("M #= d.origin.x # #= d.origin.y # #= d.as.x # #= d.as.y # A#= d.r # #= d.r # 0 #= d.isReflexAngle ? '1' : '0' #,0 #= d.ae.x # #= d.ae.y # z")),n.config=e||new u.Pin},renderPoints:function(){var e=this,t=e.config,n=t.radius,i=l.PI/180,r=t.arcAngle,o=n*l.sin(r*i/2),a=t.height-n*(1-l.cos(r*i/2)),s=t.origin,c={x:s.x+o,y:s.y-a},d={x:s.x-o,y:s.y-a},u=function(n,i){var r=e.options.rotation,o=t.rotation;return n=b(n.x,n.y,r[1],r[2],-r[0]),i&&(n=b(n.x,n.y,s.x,s.y,o)),n};return s=u(s),e.pathTemplate({origin:s,as:u(c,!0),ae:u(d,!0),r:n,isReflexAngle:r>180})}}),W=U.extend({init:function(e,t){var n=this;U.fn.init.call(n,e,t),n.pathTemplate=W.pathTemplate,n.pathTemplate||(n.pathTemplate=W.pathTemplate=w("M #= d.firstOuterPoint.x # #= d.firstOuterPoint.y # A#= d.r # #= d.r # 0 #= d.isReflexAngle ? '1' : '0' #,1 #= d.secondOuterPoint.x # #= d.secondOuterPoint.y # L #= d.cx # #= d.cy # z"))},options:{fill:"",fillOpacity:1,strokeOpacity:1,strokeLineCap:I},clone:function(){var e=this;return new W(v({},e.config),v({},e.options))}}),q=m.extend({init:function(e,t,n){var i=this;m.fn.init.call(i,n),i.c=e,i.r=t,i.template=q.template,i.template||(i.template=q.template=w("<circle #= d.renderId() # #= d.renderDataAttributes() #cx='#= d.c.x #' cy='#= d.c.y #' r='#= d.r #' #= d.renderAttr(\"stroke\", d.options.stroke) # #= d.renderAttr(\"stroke-width\", d.options.strokeWidth) #fill-opacity='#= d.options.fillOpacity #' stroke-opacity='#= d.options.strokeOpacity #' fill='#= d.options.fill || \"none\" #'></circle>"))
},options:{fill:"",fillOpacity:1,strokeOpacity:1},refresh:function(e){a(e).attr({r:l.max(0,this.r),"fill-opacity":this.options.fillOpacity})},clone:function(){var e=this;return new q(v({},e.c),e.r,v({},e.options))}}),Q=m.extend({init:function(e){var t=this;m.fn.init.call(t,e),t.template=Q.template,t.template||(t.template=Q.template=w('<g#= d.renderId() ##= d.renderDataAttributes() ##= d.renderAttr("clip-path", d.options.clipPath) #>#= d.renderContent() #</g>'))}}),Y=m.extend({init:function(e){var t=this;m.fn.init.call(t,e),t.template=Y.template,t.template||(t.template=Y.template=w('<clipPath#= d.renderAttr("id", d.options.id) #>#= d.renderContent() #</clipPath>'))}}),X=m.extend({init:function(e){var t=this;m.fn.init.call(t,e)},options:{id:""},renderStops:function(){var e,t,n=this,i=n.options.stops,r=n.stopTemplate,o=i.length,a="";for(e=0;o>e;e++)t=i[e],a+=r(t);return a}}),$=X.extend({init:function(e){var t=this;X.fn.init.call(t,e),t.template=$.template,t.stopTemplate=$.stopTemplate,t.template||(t.template=$.template=w("<linearGradient id='#= d.options.id #' gradientTransform='rotate(#= d.options.rotation #)'> #= d.renderStops() #</linearGradient>"),t.stopTemplate=$.stopTemplate=w("<stop offset='#= Math.round(d.offset * 100) #%' style='stop-color:#= d.color #;stop-opacity:#= d.opacity #' />"))},options:{rotation:0}}),Z=X.extend({init:function(e){var t=this;X.fn.init.call(t,e),t.template=Z.template,t.stopTemplate=Z.stopTemplate,t.template||(t.template=Z.template=w("<radialGradient id='#= d.options.id #' cx='#= d.options.cx #' cy='#= d.options.cy #' fx='#= d.options.cx #' fy='#= d.options.cy #' r='#= d.options.r #' gradientUnits='userSpaceOnUse'>#= d.renderStops() #</radialGradient>"),t.stopTemplate=Z.stopTemplate=w("<stop offset='#= Math.round(d.offset * 100) #%' style='stop-color:#= d.color #;stop-opacity:#= d.opacity #' />"))}}),J=m.extend({init:function(e){var t=this;m.fn.init.call(t,e),t.template=J.template,t.stopTemplate=J.stopTemplate,t.template||(t.template=J.template=w("<radialGradient id='#= d.options.id #' cx='#= d.options.cx #' cy='#= d.options.cy #' fx='#= d.options.cx #' fy='#= d.options.cy #' r='#= d.options.r #' gradientUnits='userSpaceOnUse'>#= d.renderStops() #</radialGradient>"),t.stopTemplate=J.stopTemplate=w("<stop offset='#= d.offset #%' style='stop-color:#= d.color #;stop-opacity:#= d.opacity #' />"))},options:{id:""},renderStops:function(){var e,t,n=this,i=n.options,r=i.stops,o=n.stopTemplate,a=100*(i.ir/i.r),s=r.length,l="";for(t=v({},r[0]),t.offset=a,l+=o(t),e=1;s>e;e++)t=v({},r[e]),t.offset=t.offset*(100-a)+a,l+=o(t);return l}});e.prototype={decorate:function(e){var t,n,i=this,r=i.view,o=e.options,a=o.id;return o.overlay?(e.options.id=_(),t=r.createGroup(),n=e.clone(),t.children.push(e,n),n.options.id=a,n.options.fill=o.overlay,t):e}},t.prototype={decorate:function(e){var t=this,n=e.options;return n.fill=t.getPaint(n.fill),e},getPaint:function(e){var t,n,i,r=this,o=r.view,a=o.definitions;return e&&x(e.gradient)?(t=o.buildGradient(e),t?(n=t.id,i=a[n],i||(i=o.createGradient(t),a[n]=i),"url("+r.baseUrl()+"#"+i.options.id+")"):B):e},baseUrl:function(){var e=s.getElementsByTagName("base")[0],t="",n=s.location.href,i=n.indexOf("#");return e&&!c.support.browser.msie&&(-1!==i&&(n=n.substring(0,i)),t=n),t}},r=d.extend({init:function(e){this.view=e},decorate:function(e){var t,n,i=this,r=i.view,o=i.clipId,a=r.options,s=e.options.animation,l=r.definitions;return s&&s.type===C&&a.transitions&&(o||(i.clipId=o=_()),t=l[o],t||(t=new Y({id:o}),n=r.createRect(new h(0,0,a.width,a.height),{id:_()}),t.children.push(n),l[o]=t,r.animations.push(new p(n,{size:a.width}))),e.options.clipPath="url(#"+o+")"),e}}),o=function(e,t){e.innerHTML=t},function(){var e="<svg xmlns='"+L+"'></svg>",t=s.createElement("div"),n=typeof DOMParser!=O;t.innerHTML=e,n&&t.firstChild.namespaceURI!=L&&(o=function(e,t){var n=new DOMParser,i=n.parseFromString(t,"text/xml"),r=s.adoptNode(i.documentElement);e.innerHTML="",e.appendChild(r)})}(),u.supportsSVG()&&u.ViewFactory.current.register("svg",R,10),v(u,{renderSVG:o,SVGCircle:q,SVGClipAnimationDecorator:r,SVGClipPath:Y,SVGGradientDecorator:t,SVGGroup:Q,SVGLine:N,SVGMultiLine:j,SVGLinearGradient:$,SVGOverlayDecorator:e,SVGPath:F,SVGRadialGradient:Z,SVGDonutGradient:J,SVGRing:U,SVGSector:W,SVGText:V,SVGView:R})}(window.kendo.jQuery),function(){function e(e){this.view=e}function t(e){this.view=e}function n(){return d.support.browser.msie&&!A()&&void 0!==window.performance}function i(e,t,n){var i=new f(e),o=new f(t),a=r(i.r,o.r,n),s=r(i.g,o.g,n),l=r(i.b,o.b,n);return new f(a,s,l).toHex()}function r(e,t,n){return c.round(n*t+(1-n)*e)}function o(e,t){var n,r,o,a=t.stops,s=a.length,l=h({},t);for(l.stops=[],n=0;s>n;n++)r=a[n],o=l.stops[n]=h({},a[n]),o.color=i(e,r.color,r.opacity),o.opacity=0;return l}var a,s=jQuery,l=document,c=Math,d=window.kendo,u=d.Class,h=d.deepExtend,p=d.dataviz,f=p.Color,g=p.Box2D,m=p.Point2D,v=p.ExpandAnimation,x=p.ViewBase,y=p.ViewElement,w=p.defined,b=p.renderTemplate,_=p.uniqueId,k=p.rotatePoint,C=p.round,A=p.supportsSVG,S="#000",T=p.CLIP,P=p.COORD_PRECISION,D=p.DEFAULT_WIDTH,B=p.DEFAULT_HEIGHT,M=p.DEFAULT_FONT,E="object",I="linear",L="radial",z="transparent",O=x.extend({init:function(i){var r=this;x.fn.init.call(r,i),r.decorators.push(new e(r),new t(r)),p.ui.Chart&&r.decorators.push(new p.BarAnimationDecorator(r),new p.PieAnimationDecorator(r),new p.BubbleAnimationDecorator(r)),r.decorators.push(new a(r)),n()||r.decorators.push(new p.FadeAnimationDecorator(r)),p.Gauge&&r.decorators.push(new p.RadialPointerAnimationDecorator(r),new p.ArrowPointerAnimationDecorator(r),new p.BarIndicatorAnimationDecorator(r)),r.template=O.template,r.tagName=r.options.inline?"span":"div",r.template||(r.template=O.template=b("<#= d.tagName # style='width:#= d.options.width #px; height:#= d.options.height #px; position: relative;'>#= d.renderContent() #</#= d.tagName #>"))},options:{width:D,height:B},renderTo:function(e){var t,n=this;return l.namespaces&&l.namespaces.add("kvml","urn:schemas-microsoft-com:vml","#default#VML"),n.setupAnimations(),e.innerHTML=n.render(),n.playAnimations(),t=e.firstChild,n._viewElement=t,t},renderElement:function(e){var t,n=l.createElement("div");return n.style.display="none",l.body.appendChild(n),n.innerHTML=e.render(),t=n.firstChild,l.body.removeChild(n),t},createText:function(e,t){return this.decorate(t&&t.rotation?new V(e,t):new R(e,t))},createRect:function(e,t){return this.decorate(new U(e.points(),!0,this.setDefaults(t)))},createCubicCurve:function(e,t,n){return new j(e,t,n)},createLine:function(e,t,n,i,r){return this.decorate(new U([new m(e,t),new m(n,i)],!1,this.setDefaults(r)))},createMultiLine:function(e,t){return this.decorate(new G(e,!1,this.setDefaults(t)))},createPolyline:function(e,t,n){return this.decorate(new U(e,t,this.setDefaults(n)))},createCircle:function(e,t,n){return this.decorate(new Q(e,t,n))},createSector:function(e,t){return this.decorate(new q(e,t))},createRing:function(e,t){return this.decorate(new W(e,this.setDefaults(t)))},createGroup:function(e){return this.decorate(new Y(this.setDefaults(e)))},createGradient:function(e){var t=w(e.cx)&&w(e.cy)&&w(e.bbox);return e.type===L&&t?new J(e):e.type===I?new Z(e):S}}),R=y.extend({init:function(e,t){var n=this;y.fn.init.call(n,t),n.content=e,n.template=R.template,n.template||(n.template=R.template=b("<kvml:textbox #= d.renderId() # #= d.renderDataAttributes() #style='position: absolute; left: #= d.options.x #px; top: #= d.options.y #px; font: #= d.options.font #; color: #= d.options.color #; visibility: #= d.renderVisibility() #; white-space: nowrap; #= d.renderCursor() #'>#= d.content #</kvml:textbox>"))},options:{x:0,y:0,font:M,color:S,fillOpacity:1,cursor:{}},refresh:function(e){s(e).css("visibility",this.renderVisibility())},clone:function(){var e=this;return new R(e.content,h({},e.options))},renderVisibility:function(){return this.options.fillOpacity>0?"visible":"hidden"},renderCursor:function(){var e=this.options,t="";return w(e.cursor.style)&&(t+="cursor: "+e.cursor.style+";"),t}}),V=y.extend({init:function(e,t){var n=this;y.fn.init.call(n,t),n.content=e,n.template=V.template,n.template||(n.template=V.template=b("<kvml:shape #= d.renderId() # #= d.renderDataAttributes() #style='position: absolute; top: 0px; left: 0px; width: 1px; height: 1px;' stroked='false' coordsize='1,1'>#= d.renderPath() #<kvml:fill color='#= d.options.color #' /><kvml:textpath on='true' style='font: #= d.options.font #;' fitpath='false' string='#= d.content #' /></kvml:shape>"))},options:{x:0,y:0,font:M,color:S,size:{width:0,height:0}},renderPath:function(){var e=this,t=e.options,n=t.size.width,i=t.size.height,r=t.x+n/2,o=t.y+i/2,a=-t.rotation,s=k(t.x,o,r,o,a),l=k(t.x+n,o,r,o,a);return"<kvml:path textpathok='true' v='m "+C(s.x)+","+C(s.y)+" l "+C(l.x)+","+C(l.y)+"' />"}}),F=y.extend({init:function(e){var t=this;y.fn.init.call(t,e),t.template=F.template,t.template||(t.template=F.template=b('<kvml:stroke on=\'#= !!d.options.stroke && !!d.options.strokeWidth #\' #= d.renderAttr("color", d.options.stroke) #weight=\'#= d.options.strokeWidth || 0 #px\' #= d.renderAttr("dashstyle", d.options.dashType) ##= d.renderAttr("opacity", d.options.strokeOpacity) # />'))},refresh:function(e){try{e.opacity=this.options.strokeOpacity}catch(t){}}}),H=y.extend({init:function(e){var t=this;y.fn.init.call(t,e),t.template=H.template,t.template||(t.template=H.template=b('<kvml:fill on=\'#= d.isEnabled() #\' #= d.renderAttr("color", d.options.fill) ##= d.renderAttr("weight", d.options.fillWidth) ##= d.renderAttr("opacity", d.options.fillOpacity) # />'))},isEnabled:function(){var e=this.options.fill;return!!e&&e.toLowerCase()!==z},refresh:function(e){try{e.opacity=this.options.fillOpacity}catch(t){}}}),N=y.extend({init:function(e){var t=this;y.fn.init.call(t,e),t.template=N.template,t.template||(t.template=N.template=b("<kvml:shape #= d.renderId() # #= d.renderDataAttributes() #style='position:absolute; #= d.renderSize() # display:#= d.renderDisplay() #; #= d.renderCursor() #' coordorigin='0 0' #= d.renderCoordsize() #><kvml:path v='#= d.renderPoints() # e' />#= d.fill.render() + d.stroke.render() #</kvml:shape>")),t.stroke=new F(t.options),t.fill=new H(t.options)},options:{fill:"",fillOpacity:1,strokeOpacity:1,rotation:[0,0,0],visible:!0,cursor:{}},renderCoordsize:function(){var e=this.options.align===!1?1e4:1;return"coordsize='"+e+" "+e+"'"},renderSize:function(){var e=this.options.align===!1?100:1;return"width:"+e+"px; height:"+e+"px;"},render:function(){var e=this;return e.fill.options.fillOpacity=e.options.fillOpacity,e.stroke.options.strokeOpacity=e.options.strokeOpacity,y.fn.render.call(e)},renderDisplay:function(){return this.options.visible?"block":"none"},renderPoints:function(){},refresh:function(e){if(e){var t=this,n=s(e),i=n[0].parentNode,r=t.fill,o=t.stroke;i&&(n.find("path")[0].v=this.renderPoints(),r.options=o.options=t.options,r.refresh(n.find("fill")[0]),o.refresh(n.find("stroke")[0]),n.css("display",t.renderDisplay()),i.style.cssText=i.style.cssText)}},renderCursor:function(){var e=this.options,t="";return w(e.cursor.style)&&(t+="cursor: "+e.cursor.style+";"),t}}),j=N.extend({init:function(e,t,n){var i=this;N.fn.init.call(i,t),i.points=e,i.areaPoints=n},renderPoints:function(){var e,t,n,i,r=this,o=r.areaPoints,a=r.points,s=[];for(e=1;e<a.length;e+=3){for(n=[],i=0;3>i;i++)t=a[e+i],n.push(C(t.x)+","+C(t.y));s.push("C "+n.join(" "))}if(o&&o.length){for(e=0;e<o.length;e++)s.push("L "+C(o[e].x)+","+C(o[e].y));s.push("X")}return"M "+c.round(a[0].x)+","+c.round(a[0].y)+" "+s.join(" ")+" E"}}),U=N.extend({init:function(e,t,n){var i=this;N.fn.init.call(i,n),i.points=e,i.closed=t},renderPoints:function(){var e=this,t=e.points;return e._renderPoints(t)},_renderPoints:function(e){var t,n=this,i=e.length,r=function(e){var t=n.options.rotation;return k(e.x,e.y,t[1],t[2],-t[0])},o="m "+n._print(r(e[0]));if(i>1)for(o+=" l ",t=1;i>t;t++)o+=n._print(r(e[t])),i-1>t&&(o+=", ");return n.closed&&(o+=" x"),o},clone:function(){var e=this;return new U(h([],e.points),e.closed,h({},e.options))},_print:function(e){var t=this.options.align===!1?100:1;return c.round(e.x*t)+","+c.round(e.y*t)}}),G=U.extend({renderPoints:function(){var e,t=this,n=t.points,i=[];for(e=0;e<n.length;e++)i.push(t._renderPoints(n[e]));return i.join(" ")}}),W=N.extend({init:function(e,t){var n=this;N.fn.init.call(n,t),n.pathTemplate=W.pathTemplate,n.pathTemplate||(n.pathTemplate=W.pathTemplate=b("M #= d.osp.x #,#= d.osp.y # WA #= d.obb.l #,#= d.obb.t # #= d.obb.r #,#= d.obb.b # #= d.osp.x #,#= d.osp.y # #= d.oep.x #,#= d.oep.y # L #= d.iep.x #,#= d.iep.y # AT #= d.ibb.l #,#= d.ibb.t # #= d.ibb.r #,#= d.ibb.b # #= d.iep.x #,#= d.iep.y # #= d.isp.x #,#= d.isp.y # X E")),n.config=e},renderPoints:function(){function e(e){return new m(C(e.x),C(e.y))}var t,n,i,r,o=this,a=o.config,s=c.max(C(a.r),0),l=c.max(C(a.ir),0),d=C(a.c.x),u=C(a.c.y),h=a.startAngle,p=a.angle+h,f=p-h,g={l:d-s,t:u-s,r:d+s,b:u+s},v={l:d-l,t:u-l,r:d+l,b:u+l};return 1>=f?p+=1-f:f>359&&(p-=1-f),t=e(a.point(h)),n=e(a.point(h,!0)),r=e(a.point(p)),i=e(a.point(p,!0)),o.pathTemplate({obb:g,ibb:v,osp:t,isp:n,oep:r,iep:i,cx:d,cy:u})},clone:function(){var e=this;return new W(h({},e.config),h({},e.options))}}),q=W.extend({init:function(e,t){var n=this;W.fn.init.call(n,e,t),n.pathTemplate=q.pathTemplate,n.pathTemplate||(n.pathTemplate=q.pathTemplate=b("M #= d.osp.x #,#= d.osp.y # WA #= d.obb.l #,#= d.obb.t # #= d.obb.r #,#= d.obb.b # #= d.osp.x #,#= d.osp.y # #= d.oep.x #,#= d.oep.y # L #= d.cx #,#= d.cy # X E"))},clone:function(){var e=this;return new q(h({},e.config),h({},e.options))}}),Q=y.extend({init:function(e,t,n){var i=this;y.fn.init.call(i,n),i.c=e,i.r=t,i.template=Q.template,i.template||(i.template=Q.template=b("<kvml:oval #= d.renderId() # #= d.renderDataAttributes() #style='position:absolute; width:#= d.r * 2 #px; height:#= d.r * 2 #px; top:#= d.c.y - d.r #px; left:#= d.c.x - d.r #px;'>#= d.fill.render() + d.stroke.render() #</kvml:oval>")),i.stroke=new F(i.options),i.fill=new H(i.options)},options:{fill:"",fillOpacity:1},refresh:function(e){var t=this,n=t.c,i=c.max(0,t.r),r=2*i,o=s(e);o.css({width:r,height:r,top:n.y-i,left:n.x-i}),t.fill.options=t.options,t.fill.refresh(o.find("fill")[0])},clone:function(){var e=this;return new Q(h({},e.c),e.r,h({},e.options))}}),Y=y.extend({init:function(e){var t=this;y.fn.init.call(t,e),t.tagName=t.options.inline?"span":"div",t.template=Y.template,t.template||(t.template=Y.template=b("<#= d.tagName # #= d.renderId() ##= d.renderDataAttributes() #style='position: absolute; white-space: nowrap;'>#= d.renderContent() #</#= d.tagName #>"))}}),X=y.extend({init:function(e,t){var n=this;y.fn.init.call(n,t),n.tagName=n.options.inline?"span":"div",n.template=X.template,n.clipTemplate=X.clipTemplate,n.template||(n.template=X.template=b("<#= d.tagName # #= d.renderId() #style='position:absolute; width:#= d.box.width() #px; height:#= d.box.height() #px; top:#= d.box.y1 #px; left:#= d.box.x1 #px; clip:#= d._renderClip() #;' >#= d.renderContent() #</#= d.tagName #>"),n.clipTemplate=X.clipTemplate=b("rect(#= d.points[0].y #px #= d.points[1].x #px #= d.points[2].y #px #= d.points[0].x #px)")),n.box=e,n.points=e.points()},clone:function(){var e=this;return new X(e.box,h({},e.options))},refresh:function(e){e&&(e.style.clip=this._renderClip())},_renderClip:function(){return this.clipTemplate(this)},destroy:function(){s("#"+this.options.id+">*").unwrap()}}),$=y.extend({init:function(e){var t=this;y.fn.init.call(t,e)},options:{opacity:1},renderColors:function(){var e,t,n=this,i=n.options,r=i.stops,o=r.length,a=[],s=c.round;for(t=0;o>t;t++)e=r[t],a.push(s(100*e.offset)+"% "+e.color);return a.join(",")}}),Z=$.extend({init:function(e){var t=this;$.fn.init.call(t,e),t.template=Z.template,t.template||(t.template=Z.template=b("<kvml:fill type='gradient' angle='#= 270 - d.options.rotation #' colors='#= d.renderColors() #' opacity='#= d.options.opacity #' />"))},options:{rotation:0}}),J=$.extend({init:function(e){var t=this;$.fn.init.call(t,e),t.template=J.template,t.template||(t.template=J.template=b("<kvml:fill type='gradienttitle' focus='100%' focusposition='#= d.focusPosition() #'colors='#= d.renderColors() #' color='#= d.firstColor() #' color2='#= d.lastColor() #' opacity='#= d.options.opacity #' />"))},focusPosition:function(){var e=this.options,t=e.bbox,n=e.cx,i=e.cy,r=Math.max(0,Math.min(1,(n-t.x1)/t.width())),o=Math.max(0,Math.min(1,(i-t.y1)/t.height()));return C(r,P)+" "+C(o,P)},firstColor:function(){var e=this.options.stops;return e[0].color},lastColor:function(){var e=this.options.stops;return e[e.length-1].color}});e.prototype={decorate:function(e){var t,n,i=e.options,r=this.view;return i.overlay&&(n=i.overlay.bbox,t=r.buildGradient(h({},i.overlay,{_overlayFill:i.fill,_bboxHash:w(n)?n.getHash():""}))),t?(delete i.overlay,i.fill=h(o(i.fill,t),{opacity:i.fillOpacity}),e):e}},t.prototype={decorate:function(e){var t=this,n=t.view,i=e.options,r=i.fill;return r&&r.supportVML!==!1&&(r.gradient&&(r=n.buildGradient(r)),typeof r===E&&(e.fill=n.createGradient(r))),e}},a=u.extend({init:function(e){this.view=e},decorate:function(e){var t,n=this,i=n.view,r=i.options,o=e.options.animation;return o&&o.type===T&&r.transitions?(t=new X(new g(0,0,r.width,r.height),{id:_(),inline:r.inline}),i.animations.push(new v(t,{size:r.width})),t.children.push(e),t):e}}),d.support.browser.msie&&p.ViewFactory.current.register("vml",O,20),h(p,{VMLCircle:Q,VMLClipAnimationDecorator:a,VMLClipRect:X,VMLFill:H,VMLGroup:Y,VMLLine:U,VMLMultiLine:G,VMLLinearGradient:Z,VMLOverlayDecorator:e,VMLPath:N,VMLRadialGradient:J,VMLRing:W,VMLRotatedText:V,VMLSector:q,VMLStroke:F,VMLText:R,VMLView:O,blendColors:i,blendGradient:o})}(window.kendo.jQuery),function(){function e(e){return(e+540)%360*_}function t(e){return r.round(e)+.5}function n(e,t){var n,i,r,o=t.length;for(n=0;o>n;n++)i=t[n],r=new l(i.color),e.addColorStop(i.offset,"rgba("+r.r+","+r.g+","+r.b+","+i.opacity+")")}var i=jQuery,r=Math,o=window.kendo,a=o.dataviz,s=a.Box2D,l=a.Color,c=a.Point2D,d=a.Ring,u=a.ViewBase,h=a.ViewElement,p=o.deepExtend,f=a.round,g=a.renderTemplate,m="butt",v=a.COORD_PRECISION,x=a.DASH_ARRAYS,y=a.DEFAULT_WIDTH,w=a.DEFAULT_HEIGHT,b=a.DEFAULT_FONT,_=r.PI/180,k=2*r.PI,C="linear",A="radial",S="solid",T="square",P=g("<canvas width='#= d.options.width #px' height='#= d.options.height #px' style='position: relative; display: #= d.display #;'></canvas>"),D=u.extend({init:function(e){var t=this;u.fn.init.call(t,e),t.display=t.options.inline?"inline":"block"},options:{width:y,height:w},renderTo:function(e){var t,n=this,r=n.options;return t=e.firstElementChild,t&&"canvas"===t.tagName.toLowerCase()?(i(t).siblings().remove(),t.width=r.width,t.height=r.height):(e.innerHTML=P(this),t=e.firstElementChild),n._viewElement=t,n.renderContent(t.getContext("2d")),t},replace:function(e){var t,n=this,i=n._viewElement,r=e.box;i&&r&&(t=i.getContext("2d"),t.clearRect(r.x1,r.y1,r.width(),r.height()),e.getViewElements(n)[0].render(t))},renderContent:function(e){var t,n=this,i=n.sortChildren(),r=i.length;for(t=0;r>t;t++)i[t].render(e)},createGroup:function(e){return new B(e)},createText:function(e,t){return new V(e,t)},createRect:function(e,t){return new I(e.points(),!0,this.setDefaults(t))},createCubicCurve:function(e,t,n){return new E(e,t,n)},createLine:function(e,t,n,i,r){return new I([new c(e,t),new c(n,i)],!1,this.setDefaults(r))},createMultiLine:function(e,t){return this.decorate(new L(e,!1,this.setDefaults(t)))},createPolyline:function(e,t,n){return new I(e,t,this.setDefaults(n))},createCircle:function(e,t,n){return new O(e,t,n)},createSector:function(e,t){return new z(e,t)},createRing:function(e,t){return new z(e,t)},createPin:function(e,t){return new R(e,t)}}),B=h.extend({render:function(e){this.renderContent(e)},renderContent:D.fn.renderContent}),M=h.extend({options:{fillOpacity:1,strokeOpacity:1,strokeLineCap:T},render:function(e){var t=this,n=t.options;e.save(),e.beginPath(),t.renderPoints(e),t.setLineDash(e),t.setLineCap(e),n.fill&&"transparent"!==n.fill&&(t.setFill(e),e.globalAlpha=n.fillOpacity,e.fill()),n.stroke&&n.strokeWidth&&(e.strokeStyle=n.stroke,e.lineWidth=n.strokeWidth,e.lineJoin="round",e.globalAlpha=n.strokeOpacity,e.stroke()),t.renderOverlay(e),e.restore()},setLineDash:function(e){var t,n=this.options.dashType;n=n?n.toLowerCase():null,n&&n!=S&&(t=x[n],e.setLineDash?e.setLineDash(t):(e.mozDash=t,e.webkitLineDash=t))},setLineCap:function(e){var t=this.options,n=t.dashType;e.lineCap=n&&n!==S?m:t.strokeLineCap},setFill:function(e){var t=this.options,n=t.fill;e.fillStyle=n},renderOverlay:function(e){var t,n,i=this.options,r=i.overlay;r&&r.gradient&&(n=a.Gradients[r.gradient],t=this.buildGradient(e,n),t&&(e.fillStyle=t,e.fill()))},renderPoints:i.noop,buildGradient:i.noop}),E=M.extend({init:function(e,t,n){var i=this;M.fn.init.call(i,t),i.points=e,i.areaPoints=n},renderPoints:function(e){var t,n=this,i=n.areaPoints,r=n.points;for(e.moveTo(r[0].x,r[0].y),t=1;t<r.length;t+=3)e.bezierCurveTo(f(r[t].x,v),f(r[t].y,v),f(r[t+1].x,v),f(r[t+1].y,v),f(r[t+2].x,v),f(r[t+2].y,v));if(i&&i.length){for(t=0;t<i.length;t++)e.lineTo(f(i[t].x,v),f(i[t].y,v));e.closePath()}}}),I=M.extend({init:function(e,t,n){var i=this;M.fn.init.call(i,n),i.points=e,i.closed=t},options:{rotation:[0,0,0]},renderPoints:function(e){var t=this,n=t.points;t._renderPoints(e,n)},_renderPoints:function(e,n){var i,r,o=this,a=o.options,s=a.strokeWidth,l=a.align!==!1&&s&&0!==s%2,c=l?t:f;if(0!==n.length&&(a.fill||a.stroke)){for(0!==a.rotation[0]&&o.setRotation(e),r=n[0],e.moveTo(c(r.x,v),c(r.y,v)),i=1;i<n.length;i++)r=n[i],e.lineTo(c(r.x,v),c(r.y,v));o.closed&&e.closePath()}},buildGradient:function(e,t){var i,r=this.bbox(),o=this.options.overlay.rotation,a=r.x2,s=r.y1;return 90===o&&(a=r.x1,s=r.y2),t&&t.type===C&&(i=e.createLinearGradient(r.x1,r.y1,a,s),n(i,t.stops)),i},bbox:function(){var e,t=this.points,n=new s;if(t.length>0)for(n.move(t[0].x,t[0].y),e=1;e<t.length;e++)n.wrapPoint(t[e]);return n},setRotation:function(e){var t=this,n=t.options,i=n.rotation,r=i[1],o=i[2];e.translate(r,o),e.rotate(i[0]*_),e.translate(-r,-o)}}),L=I.extend({renderPoints:function(e){var t,n=this,i=n.points;for(t=0;t<i.length;t++)n._renderPoints(e,i[t])}}),z=M.extend({init:function(e,t){var n=this;M.fn.init.call(n,t),n.config=e||{}},options:{strokeLineCap:T},renderPoints:function(t){var n,i,o=this,a=o.config,s=a.startAngle,l=a.angle+s,c=r.max(a.r,0),d=r.max(a.ir,0),u=a.c,h=e(s),p=e(l);h===p&&(s=0,l=360,h=0,p=2*Math.PI),n=a.point(s),i=a.point(l,!0),t.moveTo(n.x,n.y),t.arc(u.x,u.y,c,h,p),d>0?(t.lineTo(i.x,i.y),t.arc(u.x,u.y,d,p,h,!0)):t.lineTo(u.x,u.y)},buildGradient:function(e,t){var i,r=this.config,o=r.c;return t&&t.type===A&&(i=e.createRadialGradient(o.x,o.y,r.ir,o.x,o.y,r.r),n(i,t.stops)),i}}),O=M.extend({init:function(e,t,n){var i=this;M.fn.init.call(i,n),i.config=new d(e,0,t)},renderPoints:function(e){var t=this.config,n=t.c;e.arc(n.x,n.y,t.r,0,k,!1)},buildGradient:z.fn.buildGradient}),R=M.extend({init:function(e,t){var n=this;M.fn.init.call(n,t),n.config=e},renderPoints:function(t){var n=this,i=n.config,o=i.radius,a=r.PI/180,s=i.arcAngle,l=i.height-o*(1-r.cos(s*a/2)),c=i.origin,d=n.options.rotation;t.translate(d[1],d[2]),t.rotate(e(d[0])),t.translate(d[1]-c.x,d[2]-c.y),t.rotate(e(-n.config.rotation)),t.moveTo(0,0),t.arc(0,-l,o,e(90-s/2),e(90+s/2)),t.lineTo(0,0),t.closePath()}}),V=h.extend({init:function(e,t){var n=this;h.fn.init.call(n,t),n.content=e},options:{x:0,y:0,baseline:0,font:b,size:{width:0,height:0},fillOpacity:1},render:function(e){var t=this,n=t.options,i=t.content,r=n.x,o=n.y+n.baseline;e.save(),0!==n.rotation&&t.setRotation(e),e.font=n.font,e.fillStyle=n.color,e.globalAlpha=n.fillOpacity,e.fillText(i,r,o),e.restore()},setRotation:function(e){var t=this,n=t.options,i=n.size,r=n.x+i.normalWidth/2,o=n.y+i.normalHeight/2,a=n.x+i.width/2,s=n.y+i.height/2,l=a-r,c=s-o;e.translate(l,c),e.translate(r,o),e.rotate(n.rotation*_),e.translate(-r,-o)}});a.supportsCanvas()&&a.ViewFactory.current.register("canvas",D,30),p(a,{CanvasCircle:O,CanvasGroup:B,CanvasLine:I,CanvasMultiLine:L,CanvasPath:M,CanvasRing:z,CanvasText:V,CanvasView:D})}(window.kendo.jQuery),function(){function e(e){return typeof e!==v}function t(e,t){var n=h.pow(10,t||0);return h.round(e*n)/n}function n(e,t,n){return h.max(h.min(e,n),t)}function i(e){return e*m}function r(e){return e/m}function o(e){return h.round(e)+.5}function a(e){return"number"==typeof e&&!isNaN(e)}function s(t,n){return e(t)?t:n}function l(t,n){return e(n)?" "+t+"='"+n+"' ":""}function c(e){var t,n="";for(t=0;t<e.length;t++)n+=l(e[t][0],e[t][1]);return n}function d(e){return"string"!=typeof e&&(e+="px"),e}function u(){this.observer&&this.observer.geometryChange()}var h=Math,p=window.kendo,f=p.deepExtend,g=p.dataviz,m=h.PI/180,v="undefined";f(g,{util:{mixins:{geometryChange:u},alignToPixel:o,defined:e,deg:r,isNumber:a,limitValue:n,round:t,rad:i,renderAttr:l,renderAllAttr:c,renderSize:d,valueOrDefault:s}})}(window.kendo.jQuery),function(){var e,t,n,i=Math,r=window.kendo,o=r.Class,a=r.deepExtend,s=r.dataviz,l=s.util,c=l.defined,d=l.rad,u=l.round,h=o.extend({init:function(e,t){this.x=e||0,this.y=t||0,this.observer=null},geometryChange:l.mixins.geometryChange,set:function(e,t){"x"===e?this.x!==t&&(this.x=t,this.geometryChange()):"y"===e&&this.y!==t&&(this.y=t,this.geometryChange())},get:function(e){return"x"===e?this.x:"y"===e?this.y:void 0},equals:function(e){return e&&e.x===this.x&&e.y===this.y},clone:function(){return new h(this.x,this.y)},rotate:function(e,t){var n=d(t),r=i.cos(n),o=i.sin(n),a=e.x,s=e.y,l=this.x,c=this.y;return this.x=a+(l-a)*r+(c-s)*o,this.y=s+(c-s)*r-(l-a)*o,this.geometryChange(),this},multiply:function(e){return this.x*=e,this.y*=e,this.geometryChange(),this},transform:function(e){return this.x=e.a*this.x+e.c*this.y+e.e,this.y=e.b*this.x+e.d*this.y+e.f,this.geometryChange(),this},subtract:function(e){return this.x-=e.x,this.y-=e.y,this},distanceTo:function(e){var t=this.x-e.x,n=this.y-e.y;return i.sqrt(t*t+n*n)},round:function(e){return this.x=u(this.x,e),this.y=u(this.y,e),this}});h.fn.toString=function(e,t){var n=this.x,i=this.y;return c(e)&&(n=u(n,e),i=u(i,e)),t=t||" ",n+t+i},e=o.extend({init:function(e,t){this.p0=e||new h,this.p1=t||new h,this.observer=null,this.p0.observer=this,this.p1.observer=this},geometryChange:l.mixins.geometryChange,width:function(){return this.p1.x-this.p0.x},height:function(){return this.p1.y-this.p0.y}}),t=o.extend({init:function(e,t){this.center=e||new h,this.radius=t||0,this.observer=null,this.center.observer=this},geometryChange:l.mixins.geometryChange,equals:function(e){return e&&e.center.equals(this.center)&&e.radius===this.radius},clone:function(){return new t(this.center.clone(),this.radius)},set:function(e,t){"radius"===e&&this.radius!==t&&(this.radius=t,this.geometryChange())},get:function(){return this.radius},pointAt:function(e){var t=this.center,n=this.radius,r=d(e);return new h(t.x-n*i.cos(r),t.y-n*i.sin(r))}}),n=o.extend({init:function(e,t,n,i,r,o){this.a=e||0,this.b=t||0,this.c=n||0,this.d=i||0,this.e=r||0,this.f=o||0},times:function(e){return new n(this.a*e.a+this.c*e.b,this.b*e.a+this.d*e.b,this.a*e.c+this.c*e.d,this.b*e.c+this.d*e.d,this.a*e.e+this.c*e.f+this.e,this.b*e.e+this.d*e.f+this.f)}}),a(n,{translate:function(e,t){var i=new n;return i.a=1,i.b=0,i.c=0,i.d=1,i.e=e,i.f=t,i},unit:function(){return new n(1,0,0,1,0,0)},rotate:function(e,t,r){var o=new n;return o.a=i.cos(d(e)),o.b=i.sin(d(e)),o.c=-o.b,o.d=o.a,o.e=t-t*o.a+r*o.b||0,o.f=r-r*o.a-t*o.b||0,o},scale:function(e,t){var i=new n;return i.a=e,i.b=0,i.c=0,i.d=t,i.e=0,i.f=0,i}}),a(s,{geometry:{Circle:t,Matrix:n,Point:h,Rect:e}})}(window.kendo.jQuery),function(){var e,t,n,i=jQuery,r=document,o=i.noop,a=Object.prototype.toString,s=window.kendo,l=s.Class,c=s.deepExtend,d=s.dataviz,u=s.Observable.extend({clear:o,destroy:function(){this.clear(),i(this.element).kendoDestroy()},resize:function(e){var t=this.getSize(),n=this._size;(e||!n||t.width!==n.width||t.height!==n.height)&&(this._size=t,this._resize(t))},getSize:function(){return{width:i(this.element).width(),height:i(this.element).height()}},setSize:function(e){i(this.element).css({width:e.width,height:e.height}),this.resize()},_resize:o,_handler:function(e){var t=this;return function(n){var i=n.target._kendoNode;i&&t.trigger(e,{shape:i.srcElement,originalEvent:n})}}});u.create=function(e,t,i){return n.current.create(e,t,i)},e=l.extend({init:function(e){this.childNodes=[],this.parent=null,e&&(this.srcElement=e,e.observer=this)},load:o,append:function(e){this.childNodes.push(e),e.parent=this},remove:function(e,t){for(var n=e;t>n;n++)this.childNodes[n].clear();this.childNodes.splice(e,t),this.parent=null},clear:function(){this.remove(0,this.childNodes.length)},invalidate:function(){this.parent&&this.parent.invalidate()},geometryChange:function(){this.invalidate()},optionsChange:function(){this.invalidate()},childrenChange:function(e){"add"===e.action?this.load(e.items):"remove"===e.action&&this.remove(e.index,e.items.length),this.invalidate()}}),t=l.extend({init:function(e,t){var n,i;this.observer=null,this.prefix=t||"";for(n in e)i=e[n],i=this.wrap(i,n),this[n]=i},optionsChange:function(e){this.observer&&this.observer.optionsChange(e)},get:function(e){return s.getter(e,!0)(this)},set:function(e,t){var n,i=s.getter(e,!0)(this);i!==t&&(n=this._set(e,this.wrap(t,e)),this.observer&&!n&&this.observer.optionsChange({field:this.prefix+e,value:t}))},_set:function(e,n){var i,r,o,a=e.indexOf(".")>=0;if(a)for(r=e.split("."),o="";r.length>1;){if(o+=r.shift(),i=s.getter(o,!0)(this),i||(i=new t({},o+"."),i.observer=this,this[o]=i),i instanceof t)return i.set(r.join("."),n),a;o+="."}return s.setter(e)(this,n),a},wrap:function(e,n){var i=a.call(e);return null!==e&&"[object Object]"===i&&(e instanceof t||(e=new t(e,this.prefix+n+".")),e.observer=this),e}}),n=function(){this._views=[]},n.prototype={register:function(e,t,n){var i=this._views,r=i[0],o={name:e,type:t,order:n};!r||n<r.order?i.unshift(o):i.push(o)},create:function(e,t,n){var i,r=this._views,o=r[0];if(n)for(n=n.toLowerCase(),i=0;i<r.length;i++)if(r[i].name===n){o=r[i];break}return o?new o.type(e,t):(s.logToConsole("Warning: KendoUI DataViz cannot render. Possible causes:\n- The browser does not support SVG, VML and Canvas. User agent: "+navigator.userAgent+"\n"+"- The kendo.dataviz.(svg|vml|canvas).js scripts are not loaded"),void 0)}},n.current=new n,s.support.svg=function(){return r.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}(),s.support.canvas=function(){return!!r.createElement("canvas").getContext}(),c(d,{drawing:{BaseNode:e,OptionsStore:t,Surface:u,SurfaceFactory:n}})}(window.kendo.jQuery),function(){var e=window.kendo,t=e.Class,n=e.deepExtend,i=e.dataviz,r=i.append,o=i.geometry,a=o.Point,s=i.drawing,l=s.OptionsStore,c=i.util,d=c.defined,u=t.extend({init:function(e){var t=this;t.observer=null,t.options=new l(e||{}),t.options.observer=this},optionsChange:function(e){this.observer&&this.observer.optionsChange(e)},visible:function(e){return this.options.set("visible",e),this}}),h=u.extend({init:function(e){this.children=[],u.fn.init.call(this,e)},childrenChange:function(e,t,n){this.observer&&this.observer.childrenChange({action:e,items:t,index:n})},traverse:function(e){var t,n,i=this.children;for(t=0;t<i.length;t++)n=i[t],e(n),n.traverse&&n.traverse(e)},append:function(){r(this.children,arguments),this.childrenChange("add",arguments)},clear:function(){var e=this.children;this.children=[],this.childrenChange("remove",e,0)}}),p=u.extend({geometryChange:c.mixins.geometryChange,fill:function(e,t){return this.options.set("fill.color",e),d(t)&&this.options.set("fill.opacity",t),this},stroke:function(e,t,n){return this.options.set("stroke.color",e),d(t)&&this.options.set("stroke.width",t),d(n)&&this.options.set("stroke.opacity",n),this}}),f=p.extend({init:function(e,t){var n=this;n.content=e,p.fn.init.call(n,t)}}),g=p.extend({init:function(e,t){var n=this;
p.fn.init.call(n,t),n.geometry=e||new o.Circle,n.geometry.observer=this}}),m=t.extend({init:function(e,t,n){var i=this;i.anchor=e||new a,i.anchor.observer=this,i.observer=null,t&&(i.controlIn=t,i.controlIn.observer=this),n&&(i.controlOut=n,i.controlOut.observer=this)},geometryChange:c.mixins.geometryChange}),v=p.extend({init:function(e){var t=this;t.segments=[],t.observer=null,p.fn.init.call(t,e)},moveTo:function(e,t){return this.segments=[],this.lineTo(e,t),this},lineTo:function(e,t){var n=d(t)?new a(e,t):e,i=new m(n);return i.observer=this,this.segments.push(i),this.geometryChange(),this},close:function(){return this.options.closed=!0,this.geometryChange(),this}}),x=p.extend({init:function(e){this.paths=[],p.fn.init.call(this,e)},moveTo:function(e,t){var n=new v;return n.observer=this,this.paths.push(n),n.moveTo(e,t),this},lineTo:function(e,t){return this.paths.length>0&&i.last(this.paths).lineTo(e,t),this},close:function(){return this.paths.length>0&&i.last(this.paths).close(),this}});n(s,{Group:h,Shape:p,Circle:g,Path:v,MultiPath:x,Segment:m,Text:f})}(window.kendo.jQuery),function(e){function t(e){var t,n,i,r;try{t=e.getScreenCTM?e.getScreenCTM():null}catch(o){}t&&(n=-t.e%1,i=-t.f%1,r=e.style,(0!==n||0!==i)&&(r.left=n+"px",r.top=i+"px"))}var n=document,i=window.kendo,r=i.deepExtend,o=i.dataviz,a=o.defined,s=o.renderTemplate,l=o.drawing,c=l.BaseNode,d=o.util,u=d.renderAttr,h=d.renderAllAttr,p=d.renderSize,f="butt",g=o.DASH_ARRAYS,m="none",v="solid",x="square",y="http://www.w3.org/2000/svg",w="transparent",b="undefined",_=l.Surface.extend({init:function(e,t){l.Surface.fn.init.call(this),this.options=r({},this.options,t),this.bind(this.events,this.options),this._root=new C,this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._appendTo(e)},options:{width:"100%",height:"100%"},events:["click","mouseenter","mouseleave"],translate:function(e){var t=i.format("{0} {1} {2} {3}",e.x,e.y,this._size.width,this._size.height);this._offset=e,this.element.setAttribute("viewBox",t)},draw:function(e){this._root.load([e])},clear:function(){this._root.clear()},svg:function(){return this._template(this)},setSize:function(e){this.element.setAttribute("width",p(e.width)),this.element.setAttribute("height",p(e.height)),this.resize()},_resize:function(){this._offset&&this.translate(this._offset)},_template:s("<?xml version='1.0' ?><svg xmlns='"+y+"' version='1.1' "+"width='#= kendo.dataviz.util.renderSize(d.options.width) #' "+"height='#= kendo.dataviz.util.renderSize(d.options.height) #' "+"style='position: absolute;'>#= d._root.render() #</svg>"),_appendTo:function(n){D(n,this._template(this)),this.element=n.firstElementChild,t(this.element),this._root.attachTo(this.element);var i=e(this.element);i.on("click",this._click),i.on("mouseover",this._mouseenter),i.on("mouseout",this._mouseleave),this.resize()}}),k=c.extend({load:function(e){var t,n,i,r,o=this,a=o.element;for(r=0;r<e.length;r++)n=e[r],i=n.children,n instanceof l.Group?t=new A(n):n instanceof l.Path?t=new S(n):n instanceof l.MultiPath?t=new T(n):n instanceof l.Circle&&(t=new P(n)),i&&i.length>0&&t.load(i),o.append(t),a&&t.attachTo(a)},attachTo:function(e){var t,i=n.createElement("div");D(i,"<svg xmlns='"+y+"' version='1.1'>"+this.render()+"</svg>"),t=i.firstChild.firstChild,t&&(e.appendChild(t),this.setElement(t))},setElement:function(e){var t,n,i=this.childNodes;for(this.element&&(this.element._kendoNode=null),this.element=e,e._kendoNode=this,n=0;n<i.length;n++)t=e.childNodes[n],i[n].setElement(t)},template:s("#= d.renderChildren() #"),render:function(){return this.template(this)},renderChildren:function(){var e,t=this.childNodes,n="";for(e=0;e<t.length;e++)n+=t[e].render();return n},clear:function(){var e=this.element;e&&(e.parentNode.removeChild(e),this.element=null),c.fn.clear.call(this)}}),C=k.extend({attachTo:function(e){this.element=e},clear:c.fn.clear}),A=k.extend({template:s("<g>#= d.renderChildren() #</g>")}),S=k.extend({geometryChange:function(){this.attr("d",this.renderData()),this.invalidate()},optionsChange:function(e){switch(e.field){case"fill":this.allAttr(this.mapFill(e.value));break;case"fill.color":this.allAttr(this.mapFill({color:e.value}));break;case"stroke":this.allAttr(this.mapStroke(e.value));break;case"visible":this.attr("visibility",e.value?"visible":"hidden");break;default:var t=this.attributeMap[e.field];t&&this.attr(t,e.value)}this.invalidate()},attributeMap:{"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},attr:function(e,t){this.element&&this.element.setAttribute(e,t)},allAttr:function(e){for(var t=0;t<e.length;t++)this.attr(e[t][0],e[t][1])},renderData:function(){return this.printPath(this.srcElement)},printPath:function(e){var t,n,i,r=e.segments;if(r.length>0){for(i=[],n=0;n<r.length;n++)i.push(r[n].anchor.toString(1));return t="M"+i.join(" "),e.options.closed&&(t+="Z"),t}},mapStroke:function(e){var t=[];return e&&(t.push(["stroke",e.color]),t.push(["stroke-width",e.width]),t.push(["stroke-linecap",this.renderLinecap(e)]),a(e.opacity)&&t.push(["stroke-opacity",e.opacity]),a(e.dashType)&&t.push(["stroke-dasharray",this.renderDashType(e)])),t},renderStroke:function(){return h(this.mapStroke(this.srcElement.options.stroke))},renderDashType:function(e){var t,n,i,r=e.width||1,o=e.dashType;if(o&&o!=v){for(n=g[o.toLowerCase()],i=[],t=0;t<n.length;t++)i.push(n[t]*r);return i.join(" ")}},renderLinecap:function(e){var t=e.dashType,n=e.lineCap||x;return t&&t!=v?f:n},mapFill:function(e){var t=[];return e&&e.color!==w?(t.push(["fill",e.color]),a(e.opacity)&&t.push(["fill-opacity",e.opacity])):t.push(["fill",m]),t},renderFill:function(){return h(this.mapFill(this.srcElement.options.fill))},renderCursor:function(){var e=this.srcElement.options.cursor;return e?"cursor:"+e+";":void 0},renderVisibility:function(){return this.srcElement.options.visible===!1?u("visibility","hidden"):""},template:s("<path #= kendo.dataviz.util.renderAttr('style', d.renderCursor()) # #= d.renderVisibility() # #= kendo.dataviz.util.renderAttr('d', d.renderData()) # #= d.renderStroke() # #= d.renderFill() # stroke-linejoin='round'></path>")}),T=S.extend({renderData:function(){var e,t,n=this.srcElement.paths;if(n.length>0){for(t=[],e=0;e<n.length;e++)t.push(this.printPath(n[e]));return t.join(" ")}}}),P=S.extend({geometryChange:function(){var e=this.srcElement.geometry;this.attr("cx",e.center.x),this.attr("cy",e.center.y),this.attr("r",e.radius),this.invalidate()},template:s("<circle #= kendo.dataviz.util.renderAttr('style', d.renderCursor()) # cx='#= this.srcElement.geometry.center.x #' cy='#= this.srcElement.geometry.center.y #' r='#= this.srcElement.geometry.radius #' #= d.renderVisibility() # #= d.renderStroke() # #= d.renderFill() #></circle>")}),D=function(e,t){e.innerHTML=t};!function(){var e="<svg xmlns='"+y+"'></svg>",t=n.createElement("div"),i=typeof DOMParser!=b;t.innerHTML=e,i&&t.firstChild.namespaceURI!=y&&(D=function(e,t){var i=new DOMParser,r=i.parseFromString(t,"text/xml"),o=n.adoptNode(r.documentElement);e.innerHTML="",e.appendChild(o)})}(),i.support.svg&&l.SurfaceFactory.current.register("svg",_,10),r(l,{svg:{CircleNode:P,GroupNode:A,MultiPathNode:T,Node:k,PathNode:S,RootNode:C,Surface:_}})}(window.kendo.jQuery),function(e){var t=document,n=window.kendo,i=n.deepExtend,r=n.dataviz,o=r.defined,a=r.renderTemplate,s=r.drawing,l=s.BaseNode,c=r.util,d=c.renderAllAttr,u="none",h="transparent",p=s.Surface.extend({init:function(e,t){s.Surface.fn.init.call(this),this.options=i({},this.options,t),this.bind(this.events,this.options),this._root=new g,this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._appendTo(e)},events:["click","mouseenter","mouseleave"],translate:function(e){var t=this.element.style;t.top=-e.y,t.left=-e.x},draw:function(e){var t=this;t._root.load([e]),n.support.browser.version<8&&setTimeout(function(){t.element.style.display="block"},0)},clear:function(){this._root.clear(),n.support.browser.version<8&&(this.element.style.display="none")},_template:a("<div style='width:#= kendo.dataviz.util.renderSize(d.options.width) #; height:#= kendo.dataviz.util.renderSize(d.options.height) #; position: absolute;'><#= d._root.render() #/div>"),_appendTo:function(n){t.namespaces&&t.namespaces.add("kvml","urn:schemas-microsoft-com:vml","#default#VML"),n.innerHTML=this._template(this),this.element=n.firstChild,this._root.attachTo(this.element);var i=e(this.element);i.on("click",this._click),i.on("mouseover",this._mouseenter),i.on("mouseout",this._mouseleave)}}),f=l.extend({load:function(e){var t,n,i,r,o=this,a=o.element;for(r=0;r<e.length;r++)n=e[r],i=n.children,n instanceof s.Group?t=new m(n):n instanceof s.Path?t=new y(n):n instanceof s.MultiPath?t=new w(n):n instanceof s.Circle&&(t=new b(n)),i&&i.length>0&&t.load(i),o.append(t),a&&t.attachTo(a)},attachTo:function(e){var n,i=t.createElement("div");i.style.display="none",t.body.appendChild(i),i.innerHTML=this.render(),n=i.firstChild,n&&(e.appendChild(n),this.setElement(n)),t.body.removeChild(i)},setElement:function(e){var t,n,i=this.childNodes;for(this.element&&(this.element._kendoNode=null),this.element=e,e._kendoNode=this,n=0;n<i.length;n++)t=e.childNodes[n],i[n].setElement(t)},template:a("#= d.renderChildren() #"),render:function(){return this.template(this)},renderChildren:function(){var e,t=this.childNodes,n="";for(e=0;e<t.length;e++)n+=t[e].render();return n},clear:function(){var e=this.element;e&&(e.parentNode.removeChild(e),this.element=null),l.fn.clear.call(this)},attr:function(e,t){this.element&&(this.element[e]=t)},allAttr:function(e){for(var t=0;t<e.length;t++)this.attr(e[t][0],e[t][1])},css:function(e,t){this.element&&(this.element.style[e]=t)}}),g=f.extend({attachTo:function(e){this.element=e},clear:l.fn.clear}),m=f.extend({template:a("<div>#= d.renderChildren() #</div>")}),v=f.extend({optionsChange:function(e){if("stroke"===e.field)this.allAttr(this.mapStroke(e.value));else{var t=this.attributeMap[e.field];t&&this.attr(t,e.value)}this.invalidate()},attributeMap:{"stroke.color":"color","stroke.width":"weight","stroke.opacity":"opacity","stroke.dashType":"dashstyle"},mapStroke:function(e){var t=[];return e?(t.push(["on","true"]),t.push(["color",e.color]),t.push(["weight",e.width+"px"]),o(e.opacity)&&t.push(["opacity",e.opacity]),o(e.dashType)&&t.push(["dashstyle",e.dashType])):t.push(["on","false"]),t},renderStroke:function(){return d(this.mapStroke(this.srcElement.options.stroke))},template:a("<kvml:stroke #= d.renderStroke() #></kvml:stroke>")}),x=f.extend({optionsChange:function(e){switch(e.field){case"fill":this.allAttr(this.mapFill(e.value));break;case"fill.color":this.allAttr(this.mapFill({color:e.value}));break;default:var t=this.attributeMap[e.field];t&&this.attr(t,e.value)}this.invalidate()},attributeMap:{"fill.opacity":"opacity"},mapFill:function(e){var t=[];return e&&e.color!==h?(t.push(["on","true"]),t.push(["color",e.color]),o(e.opacity)&&t.push(["opacity",e.opacity])):t.push(["on","false"]),t},renderFill:function(){return d(this.mapFill(this.srcElement.options.fill))},template:a("<kvml:fill #= d.renderFill() #></kvml:fill>")}),y=f.extend({init:function(e){this.fill=new x(e),this.stroke=new v(e),f.fn.init.call(this,e),this.append(this.fill),this.append(this.stroke)},geometryChange:function(){this.attr("v",this.renderData()),this.invalidate()},optionsChange:function(e){"visible"===e.field?this.css("display",e.value?"block":"none"):0===e.field.indexOf("fill")?this.fill.optionsChange(e):0===e.field.indexOf("stroke")&&this.stroke.optionsChange(e),this.invalidate()},renderData:function(){return this.printPath(this.srcElement)},printPath:function(e,t){var n,i,r,o=e.segments;if(o.length>0){for(r=[],i=0;i<o.length;i++)r.push(o[i].anchor.toString(0,","));return n="m "+r.shift()+" l "+r.join(" "),e.options.closed&&(n+=" x"),t!==!0&&(n+=" e"),n}},mapFill:function(e){var t=[];return e&&e.color!==h?(t.push(["fill",e.color]),o(e.opacity)&&t.push(["fill-opacity",e.opacity])):t.push(["fill",u]),t},renderCursor:function(){var e=this.srcElement.options.cursor;return e?"cursor:"+e+";":""},renderVisibility:function(){return this.srcElement.options.visible===!1?"display:none;":""},renderCoordsize:function(){var e=this.srcElement.options.align===!1?1e4:1;return"coordsize='"+e+" "+e+"'"},renderSize:function(){var e=this.srcElement.options.align===!1?100:1;return"width:"+e+"px;height:"+e+"px;"},template:a("<kvml:shape style='position:absolute;#= d.renderSize() # #= d.renderVisibility() # #= d.renderCursor() #' coordorigin='0 0' #= d.renderCoordsize() #>#= d.renderChildren() #<kvml:path #= kendo.dataviz.util.renderAttr('v', d.renderData()) # /></kvml:shape>")}),w=y.extend({renderData:function(){var e,t,n,i=this.srcElement.paths;if(i.length>0){for(n=[],e=0;e<i.length;e++)t=e<i.length-1,n.push(this.printPath(i[e],t));return n.join(" ")}}}),b=y.extend({geometryChange:function(){var e=this.radius(),t=this.center(),n=2*e;this.css("left",t.x-e+"px"),this.css("top",t.y-e+"px"),this.css("width",n+"px"),this.css("height",n+"px"),this.invalidate()},center:function(){return this.srcElement.geometry.center},radius:function(){return this.srcElement.geometry.radius},template:a("<kvml:oval style='position:absolute;#= d.renderVisibility() ##= d.renderCursor() #width:#= d.radius() * 2 #px;height:#= d.radius() * 2 #px;top:#= d.center().y - d.radius() #px;left:#= d.center().x - d.radius() #px;'>#= d.renderChildren() #</kvml:oval>")});n.support.browser.msie&&s.SurfaceFactory.current.register("vml",p,20),i(s,{vml:{CircleNode:b,FillNode:x,GroupNode:m,MultiPathNode:w,Node:f,PathNode:y,RootNode:g,StrokeNode:v,Surface:p}})}(window.kendo.jQuery),function(){var e,t=Math,n=t.max,i=t.min,r=window.kendo,o=r.Class,a=r.dataviz,s=r.deepExtend,l=a.util,c=l.round,d=l.valueOrDefault,u=o.extend({init:function(e,t){1===arguments.length?(this.lat=e[0],this.lng=e[1]):(this.lat=e,this.lng=t)},FORMAT:"{0:N6},{1:N6}",toArray:function(){return[this.lat,this.lng]},equals:function(e){return e&&e.lat===this.lat&&e.lng===this.lng},round:function(e){return this.lng=c(this.lng,e),this.lat=c(this.lat,e),this},wrap:function(){return this.lng=this.lng%180,this.lat=this.lat%90,this}});u.fn.toString=function(){return r.format(this.FORMAT,this.lng,this.lat)},u.fromLngLat=function(e){return new u(e[1],e[0])},u.fromLatLng=function(e){return new u(e[0],e[1])},u.create=function(e,t){return e instanceof u?e:1===arguments.length&&2===e.length?u.fromLatLng(e):new u(e,t)},e=o.extend({init:function(e,t){this.nw=e,this.se=t},contains:function(e){var t=this.nw,n=this.se,i=d(e.lng,e[0]),r=d(e.lat,e[1]);return e&&i+180>=t.lng+180&&i+180<=n.lng+180&&r+90>=n.lat+90&&r+90<=t.lat+90},containsAny:function(e){var t,n=!1;for(t=0;t<e.length;t++)n=n||this.contains(e[t]);return n},include:function(e){var t=this.nw,r=this.se,o=d(e.lng,e[0]),a=d(e.lat,e[1]);t.lng=i(t.lng,o),t.lat=n(t.lat,a),r.lng=n(r.lng,o),r.lat=i(r.lat,a)},includeAll:function(e){for(var t=0;t<e.length;t++)this.include(e[t])},edges:function(){var e=this.nw,t=this.se;return[e,new u(e.lat,t.lng),t,new u(e.lng,t.lat)]},overlaps:function(e){return this.containsAny(e.edges())||e.containsAny(this.edges())}}),s(a,{map:{Extent:e,Location:u}})}(window.kendo.jQuery),function(e){function t(e){return n.format('<button class="k-button k-compass-{0}"><span class="k-icon k-i-arrow-{0}"/></button>',e)}var n=window.kendo,i=n.ui.Widget,r=".kendoCompass",o=t("n")+t("e")+t("s")+t("w"),a=i.extend({init:function(t,n){i.fn.init.call(this,t,n),this._initOptions(n),this.element.addClass("k-widget k-header k-shadow k-compass").append(o).on("click"+r,".k-button",e.proxy(this,"_click"))},options:{name:"Compass",panStep:1},events:["pan"],_click:function(t){var n=0,i=0,r=this.options.panStep,o=e(t.currentTarget);o.is(".k-compass-n")?i=1:o.is(".k-compass-s")?i=-1:o.is(".k-compass-e")?n=1:o.is(".k-compass-w")&&(n=-1),this.trigger("pan",{x:n*r,y:i*r})}});n.dataviz.ui.plugin(a)}(jQuery),function(){var e=window.kendo,t=e.ui.Widget,n=t.extend({init:function(e,n){t.fn.init.call(this,e,n),this._initOptions(n),this.element.addClass("k-widget k-attribution")},options:{name:"Attribution",items:[]},add:function(e){this.element.append(e)},clear:function(){this.element.empty()}});e.dataviz.ui.plugin(n)}(jQuery),function(){var e=Math,t=e.atan,n=e.exp,i=e.pow,r=e.sin,o=e.log,a=e.tan,s=window.kendo,l=s.Class,c=s.dataviz,d=c.Matrix,u=s.deepExtend,h=c.geometry,p=h.Point,f=c.map,g=f.Location,m=c.util,v=m.rad,x=m.deg,y=m.limitValue,w=e.PI,b=w/2,_=w/4,k=w/180,C={a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149},A=l.extend({init:function(e){this._initOptions(e)},MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12,options:{centralMeridian:0,datum:C},forward:function(e,t){var n=this,i=n.options,r=i.datum,o=r.a,a=i.centralMeridian,s=y(e.lat,-n.MAX_LAT,n.MAX_LAT),l=t?y(e.lng,-n.MAX_LNG,n.MAX_LNG):e.lng,c=v(l-a)*o,d=n._projectLat(s);return new p(c,d)},_projectLat:function(e){var t=this.options.datum,n=t.e,s=t.a,l=v(e),c=a(_+l/2),d=n*r(l),u=i((1-d)/(1+d),n/2);return s*o(c*u)},inverse:function(e,t){var n=this,i=n.options,r=i.datum,o=r.a,a=i.centralMeridian,s=e.x/(k*o)+a,l=y(n._inverseY(e.y),-n.MAX_LAT,n.MAX_LAT);return t&&(s=y(s,-n.MAX_LNG,n.MAX_LNG)),new g(l,s)},_inverseY:function(o){var a,s,l,c,d=this,u=d.options.datum,h=u.a,p=u.e,f=p/2,g=n(-o/h),m=b-2*t(g);for(a=0;a<=d.INVERSE_ITERATIONS&&(s=p*r(m),l=i((1-s)/(1+s),f),c=b-2*t(g*l)-m,m+=c,!(e.abs(c)<=d.INVERSE_CONVERGENCE));a++);return x(m)}}),S=A.extend({MAX_LAT:85.0511287798,_projectLat:function(e){var t=this.options.datum.a,n=v(e),i=a(_+n/2);return t*o(i)},_inverseY:function(e){var i=this.options.datum.a,r=n(-e/i);return x(b-2*t(r))}}),T=l.extend({forward:function(e){return new p(e.lng,e.lat)},inverse:function(e){return new g(e.y,e.x)}}),P=l.extend({init:function(){var e=this,t=e._proj=new S,n=this.c=2*w*t.options.datum.a;this._tm=d.translate(.5,.5).times(d.scale(1/n,-1/n)),this._itm=d.scale(n,-n).times(d.translate(-.5,-.5))},toPoint:function(e,t,n){var i=this._proj.forward(e,n);return i.transform(this._tm).multiply(t||1)},toLocation:function(e,t,n){return e=e.clone().multiply(1/(t||1)).transform(this._itm),this._proj.inverse(e,n)}}),D=l.extend({init:function(){this._proj=new A},toPoint:function(e){return this._proj.forward(e)},toLocation:function(e){return this._proj.inverse(e)}}),B=l.extend({init:function(){this._proj=new T},toPoint:function(e){return this._proj.forward(e)},toLocation:function(e){return this._proj.inverse(e)}});u(c,{map:{crs:{EPSG3395:D,EPSG3857:P,EPSG4326:B},datums:{WGS84:C},projections:{Equirectangular:T,Mercator:A,SphericalMercator:S}}})}(window.kendo.jQuery),function(e){var t=e.proxy,n=window.kendo,i=n.Class,r=n.data.DataSource,o=n.dataviz,a=n.deepExtend,s=o.geometry,l=o.drawing,c=l.Group,d=o.map,u=d.Location,h=i.extend({init:function(i,r){this._initOptions(r),this.map=i,this.element=e("<div class='k-layer'></div>").appendTo(i.scrollElement),this.movable=new n.ui.Movable(this.element),this.surface=l.Surface.create(this.element[0],{width:i.scrollElement.width(),height:i.scrollElement.height()}),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseenter=this._handler("shapeMouseEnter"),this.surface.bind("mouseenter",this._mouseenter),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave),i.bind("reset",t(this.reset,this)),i.bind("resize",t(this.resize,this)),i.bind("panEnd",t(this._panEnd,this)),this._loader=new p(this.map,this.options.style,this),this._initDataSource()},options:{autoBind:!0,dataSource:{}},reset:function(){this._updateAttribution(),this.surface.translate({x:0,y:0}),this.movable.moveTo({x:0,y:0}),this._data&&this._load(this._data)},resize:function(){this.surface.setSize(this.map.getSize())},_updateAttribution:function(){this.map.attribution.add(this.options.attribution)},polygon:function(e,t){this.surface.draw(this._buildPolygon(e,t))},_initDataSource:function(){var e=this.options.dataSource;this._dataChange=t(this._dataChange,this),this.dataSource=r.create(e).bind("change",this._dataChange),e&&this.options.autoBind&&this.dataSource.fetch()},_dataChange:function(e){this._load(e.items)},_load:function(e){var t,n;for(this._data=e,this._clearMarkers(),this.surface.clear(),t=0;t<e.length;t++)n=this._loader.parse(e[t]),n&&this.surface.draw(n)},shapeCreated:function(e){var t,n=!1;return e instanceof l.Circle&&(n=!this._createMarker(e)),n||(t={layer:this,shape:e},n=this.map.trigger("shapeCreated",t)),n},_createMarker:function(e){var t,n,i=e.dataItem,r=d.Marker.create({location:e.location.toArray()},this.map.options.markerDefaults);return r.dataItem=i,t={marker:r},n=this.map.trigger("markerCreated",t),n||(this.map.markers.add(r),this._markers.push(r)),n},_clearMarkers:function(){for(var e=0;e<this._markers.length;e++)this.map.markers.remove(this._markers[e]);this._markers=[]},_panEnd:function(){var e=this.map,t=e.locationToView(e.extent().nw);this.surface.translate(t),this.movable.moveTo(t)},_handler:function(e){var t=this;return function(n){if(n.shape){var i={layer:t,shape:n.shape,originalEvent:n.originalEvent};t.map.trigger(e,i)}}}}),p=i.extend({init:function(e,t,n){this.observer=n,this.locator=e,this.style=t},parse:function(e){var t=new c;return"Feature"===e.type?this._loadGeometryTo(t,e.geometry,e):this._loadGeometryTo(t,e,e),t.children.length<2&&(t=t.children[0]),t},_shapeCreated:function(e){var t=!1;return this.observer&&this.observer.shapeCreated&&(t=this.observer.shapeCreated(e)),t},_loadGeometryTo:function(e,t,n){var i,r,o=t.coordinates;switch(t.type){case"LineString":r=this._loadPolygon(e,[o],n),r.options.fill=null;break;case"MultiLineString":for(i=0;i<o.length;i++)r=this._loadPolygon(e,[o[i]],n),r.options.fill=null;break;case"Polygon":this._loadPolygon(e,o,n);break;case"MultiPolygon":for(i=0;i<o.length;i++)this._loadPolygon(e,o[i],n);break;case"Point":this._loadPoint(e,o,n);break;case"MultiPoint":for(i=0;i<o.length;i++)this._loadPoint(e,o[i],n)}},_loadShape:function(e,t){return this._shapeCreated(t)||e.append(t),t},_loadPolygon:function(e,t,n){var i=this._buildPolygon(t);return i.dataItem=n,this._loadShape(e,i)},_buildPolygon:function(e){var t,n,i,r=e.length>1?l.MultiPath:l.Path,o=new r(this.style);for(t=0;t<e.length;t++)for(n=0;n<e[t].length;n++)i=this.locator.locationToView(u.fromLngLat(e[t][n])),0===n?o.moveTo(i.x,i.y):o.lineTo(i.x,i.y);return o},_loadPoint:function(e,t,n){var i=u.fromLngLat(t),r=this.locator.locationToView(i),o=new s.Circle(r,1),a=new l.Circle(o);return a.dataItem=n,a.location=i,this._loadShape(e,a)}});a(n.data,{schemas:{geojson:{type:"json",data:function(e){return"FeatureCollection"===e.type?e.features:"GeometryCollection"===e.type?e.geometries:e}}},transports:{geojson:{read:{dataType:"json"}}}}),a(o,{map:{layers:{shape:h,ShapeLayer:h},GeoJSONLoader:p}})}(window.kendo.jQuery),function(e){function t(e){return new u(l(e.x),l(e.y))}var n=Math,i=e.proxy,r=window.kendo,o=r.Class,a=r.template,s=r.dataviz,l=s.round,c=r.deepExtend,d=s.geometry,u=d.Point,h=s.util,p=h.renderSize,f=h.limitValue,g=600,m=400,v=o.extend({init:function(t,n){var o=this,a=o._viewType();n=c({},n,{width:t.element.width()||g,height:t.element.height()||m}),o._initOptions(n),o.map=t,o.element=e("<div class='k-layer'></div>").css({zIndex:o.options.zIndex,opacity:o.options.opacity}).appendTo(t.scrollElement),o._view=new a(o.element,o.options),t.bind("reset",i(o.reset,o)),t.bind("resize",i(this.resize,this)),r.support.mobileOS?t.bind("panEnd",i(o._render,o)):t.bind("pan",i(o._pan,o))},opitons:{settingsUrl:"http://dev.virtualearth.net/REST/v1/Imagery/Metadata/#= mapType #?output=json&jsonp=bingTileParams&include=ImageryProviders&key=#= key #"},_viewType:function(){return y},_updateView:function(){var e=this._view,t=this.map,n=t.extent(),i={nw:t.locationToLayer(n.nw).round(),se:t.locationToLayer(n.se).round()};e.center(t.locationToLayer(t.center())),e.extent(i),e.zoom(t.zoom())},destroy:function(){this._view.destroy(),this._view=null},reset:function(){this._updateAttribution(),this._updateView(),this._view.clear(),this._view.reset()},resize:function(){this._render()},_updateAttribution:function(){this.map.attribution.add(this.options.attribution)},_pan:function(){var e=this,t=new Date,n=e._pan.timestamp;(!n||t-n>100)&&(this._render(),e._pan.timestamp=t)},_render:function(){this._updateView(),this._view.render()}}),x=v.extend({init:function(t,n){this._initOptions(n);var r=a(this.options.settingsUrl),o=r({key:this.options.key,mapType:this.options.mapType});this.map=t,e.ajax({url:o,type:"get",dataType:"jsonp",jsonpCallback:"bingTileParams",success:i(this._success,this)})},options:{settingsUrl:"http://dev.virtualearth.net/REST/v1/Imagery/Metadata/#= mapType #?output=json&jsonp=bingTileParams&include=ImageryProviders&key=#= key #",mapType:"road"},_success:function(e){var t=e.resourceSets[0].resources[0];v.fn.init.call(this,this.map,{urlTemplate:t.imageUrl.replace("{subdomain}","#= subdomain #").replace("{quadkey}","#= quadkey #").replace("{culture}","#= culture #"),subdomains:t.imageUrlSubdomains,maxZoom:t.zoomMax,minZoom:t.zoomMin}),this.reset()},_viewType:function(){return w}}),y=o.extend({init:function(e,t){this.element=e,this._initOptions(t),this.pool=new _},options:{tileSize:256,subdomains:["a","b","c"],urlTemplate:""},center:function(e){this._center=e},extent:function(e){this._extent=e},zoom:function(e){this._zoom=e},pointToTileIndex:function(e){return new u(n.floor(e.x/this.options.tileSize),n.floor(e.y/this.options.tileSize))},clear:function(){this.pool.empty()},tileCount:function(){var e=this.size(),t=this.pointToTileIndex(this._extent.nw),i=this.indexToPoint(t).subtract(this._extent.nw);return{x:n.ceil((n.abs(i.x)+e.width)/this.options.tileSize),y:n.ceil((n.abs(i.y)+e.height)/this.options.tileSize)}},size:function(){var e=this._extent.nw,t=this._extent.se,n=t.clone().subtract(e);return{width:n.x,height:n.y}},indexToPoint:function(e){var t=e.x,n=e.y;return new u(t*this.options.tileSize,n*this.options.tileSize)},subdomainText:function(){var e=this.options.subdomains;return e[this.subdomainIndex++%e.length]},destroy:function(){this.element.empty(),this.pool.empty()},reset:function(){this.subdomainIndex=0,this.basePoint=this._extent.nw,this.render()},render:function(){var e,t,n,i=this.tileCount(),r=this.pointToTileIndex(this._extent.nw);for(t=0;t<i.x;t++)for(n=0;n<i.y;n++)e=this.createTile({x:r.x+t,y:r.y+n}),e.visible||(this.element.append(e.element),e.visible=!0)},createTile:function(e){var n=this.wrapIndex(e),i=this.indexToPoint(e),r=i.clone().subtract(this.basePoint),o=a(this.options.urlTemplate),s={index:n,currentIndex:e,point:i,offset:t(r),zoom:this._zoom,url:o(this.tileUrlOptions(n))};return this.pool.get(this._center,s)},tileUrlOptions:function(e){return{zoom:this._zoom,x:e.x,y:e.y,subdomain:this.subdomainText()}},wrapIndex:function(e){var t=n.pow(2,this._zoom);return{x:this.wrapValue(e.x,t),y:f(e.y,0,t-1)}},wrapValue:function(e,t){var i=n.abs(e)%t;return e=e>=0?i:t-(0===i?t:i)}}),w=y.extend({options:{culture:"en-Us"},tileUrlOptions:function(e){return{quadkey:this.tileQuadKey(e),subdomain:this.subdomainText(),culture:this.options.culture}},tileQuadKey:function(e){var t,n,i,r="";for(i=this._zoom;i>0;i--)t=0,n=1<<i-1,0!==(e.x&n)&&t++,0!==(e.y&n)&&(t+=2),r+=t;return r}}),b=o.extend({init:function(t){this.element=e("<img style='position: absolute; display: block; visibility: visible;' unselectable='on'></img>"),this.load(t),this.visible=!1},load:function(e){var t=this.element[0];t.style.visibility="visible",t.style.display="block",t.setAttribute("src",e.url),this.url=e.url,t.style.top=p(e.offset.y),t.style.left=p(e.offset.x),this.offset=e.offset,this.point=e.point,this.index=e.index,this.currentIndex=e.currentIndex,this.id="x:"+this.currentIndex.x+"y:"+this.currentIndex.y+"zoom:"+e.zoom,this.visible=!0},destroy:function(){this.element&&(this.element.remove(),this.element=null)}}),_=o.extend({init:function(){this._items=[]},options:{maxSize:100},get:function(e,t){var n,i=this;return n=i._items.length>=i.options.maxSize?i._update(e,t):i._create(t)},empty:function(){var e,t=this._items;for(e=0;e<t.length;e++)t[e].destroy();this._items=[]},_create:function(e){var t,n,i,r,o=this,a=o._items,s=o._tileId(e);for(n=0;n<a.length;n++)i=a[n],i.id===s&&(t=i,r=t);return t?t.load(e):(r=new b(e),this._items.push(r)),r},_tileId:function(e){return"x:"+e.currentIndex.x+"y:"+e.currentIndex.y+"zoom:"+e.zoom},_update:function(e,t){var n,i,r,o,a=this,s=a._items,l=-Number.MAX_VALUE,c=a._tileId(t);for(r=0;r<s.length;r++){if(o=s[r],n=o.point.clone().distanceTo(e),o.id===c)return s[r];n>l&&(i=r,l=n)}return s[i].load(t),s[i]}});c(s,{map:{layers:{tile:v,TileLayer:v,bing:x,BingLayer:x,ImageTile:b,TilePool:_,TileView:y,BingView:w}}})}(window.kendo.jQuery),function(e){var t=document,n=Math,i=e.inArray,r=e.proxy,o=window.kendo,a=o.Class,s=o.ui.Tooltip,l=o.dataviz,c=o.deepExtend,d=l.map,u=d.Location,h=a.extend({init:function(t,n){this._initOptions(n),this.items=[],this.map=t,this.element=e("<div class='k-layer'></div>").css("zIndex",this.options.zIndex).appendTo(t.scrollElement),this.reset=r(this.reset,this),t.bind("reset",this.reset)},dispose:function(){this.map.unbind("reset",this.reset),this.clear()},options:{zIndex:1e3},add:function(t){if(!e.isArray(t))return this._addOne(t);for(var n=0;n<t.length;n++)this._addOne(t[n])},_addOne:function(e){var t=p.create(e,this.options.markerDefaults);return t.addTo(this),t},remove:function(e){e.dispose();var t=i(e,this.items);t>-1&&this.items.splice(t,1)},clear:function(){for(var e=0;e<this.items.length;e++)this.items[e].dispose();this.items=[]},update:function(e){var t=e.options.location;t&&(t=u.create(t),e.showAt(this.map.locationToView(t)))},reset:function(){var e,t=this.items;for(e=0;e<t.length;e++)this.update(t[e])}}),p=a.extend({init:function(e){this.options=e||{}},addTo:function(e){this.layer=e.markers||e,this.layer.items.push(this),this.layer.update(this)},setLocation:function(e){this.options.location=u.create(e),this.layer&&this.layer.update(this)},showAt:function(e){this.render(),this.element.css({left:n.round(e.x),top:n.round(e.y)}),this.tooltip&&this.tooltip.popup&&this.tooltip.popup._position()},hide:function(){this.element&&(this.element.remove(),this.element=null),this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)},dispose:function(){this.layer=null,this.hide()},render:function(){var n,i;this.element||(n=this.options,i=this.layer,this.element=e(t.createElement("span")).addClass("k-marker k-marker-"+o.toHyphens(n.shape||"pin")).attr("alt",n.title).css("zIndex",n.zIndex),i&&i.element.append(this.element),this.renderTooltip())},renderTooltip:function(){var e,t,n=this,i=n.options.tooltip;i&&s&&(e=i.template,e&&(t=o.template(e),i.content=function(e){return e.location=n.options.location,e.marker=n,t(e)}),(i.content||i.contentUrl)&&(this.tooltip=new s(this.element,i),this.tooltip.marker=this))}});p.create=function(e,t){return e instanceof p?e:new p(c({},e,t))},c(l,{map:{layers:{marker:h,MarkerLayer:h},Marker:p}})}(window.kendo.jQuery),function(e){var t=document,n=Math,i=n.min,r=n.pow,o=e.proxy,a=window.kendo,s=a.ui.Widget,l=a.deepExtend,c=a.dataviz,d=c.ui.Compass,u=c.ui.Attribution,h=c.defined,p=c.geometry,f=c.map,g=f.Extent,m=f.Location,v=f.crs.EPSG3857,x=c.util,y=x.limitValue,w=x.valueOrDefault,b="k-",_=.9,k=.93,C="DOMMouseScroll mousewheel",A=5,S=s.extend({init:function(e,n){a.destroy(e),s.fn.init.call(this,e),this._initOptions(n),this.bind(this.events,n),this.crs=new v,this.element.addClass(b+this.options.name.toLowerCase()).css("position","relative").empty().append(t.createElement("div")),this._viewOrigin=this._getOrigin(),this._initScroller(),this._initLayers(),this._initMarkers(),this._initControls(),this._reset(),this._mousewheel=o(this._mousewheel,this),this.element.bind("click",o(this._click,this)),this.element.bind(C,this._mousewheel)
},options:{name:"Map",controls:{navigator:{panStep:100},attribution:{visible:!0}},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}}},center:[0,0],zoom:3,minSize:256,minZoom:1,maxZoom:18,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{autoHide:!1,position:"top",showOn:"click"}},wraparound:!0},events:["click","reset","pan","panEnd","shapeClick","shapeCreated","shapeMouseEnter","shapeMouseLeave","zoomStart","zoomEnd"],destroy:function(){this.scroller.destroy(),s.fn.destroy.call(this)},zoom:function(e){var t=this.options;return h(e)?(e=y(e,t.minZoom,t.maxZoom),t.zoom!==e&&(t.zoom=e,this._reset()),this):t.zoom},center:function(e){return e?(this.options.center=m.create(e).toArray(),this._reset(),this):m.create(this.options.center)},extent:function(){var e,t=this._getOrigin(),n=this.locationToLayer(t),i=this.viewSize();return n.x+=i.width,n.y+=i.height,e=this.layerToLocation(n),new g(t,e)},setOptions:function(e){s.fn.setOptions.call(this,e),this._reset()},locationToLayer:function(e,t){var n=!this.options.wraparound;return e=m.create(e),this.crs.toPoint(e,this._layerSize(t),n)},layerToLocation:function(e,t){var n=!this.options.wraparound;return this.crs.toLocation(e,this._layerSize(t),n)},locationToView:function(e){var t,n;return e=m.create(e),t=this.locationToLayer(this._viewOrigin),n=this.locationToLayer(e),n.subtract(t)},viewToLocation:function(e,t){var n=this.locationToLayer(this._getOrigin(),t);return e=e.clone(),e.x+=n.x,e.y+=n.y,this.layerToLocation(e,t)},eventToView:function(e){var t=this.element.offset(),n=e.originalEvent||e,i=w(n.pageX,n.clientX)-t.left,r=w(n.pageY,n.clientY)-t.top;return new p.Point(i,r)},eventToLayer:function(e){return this.locationToLayer(this.eventToLocation(e))},eventToLocation:function(e){return this.viewToLocation(this.eventToView(e))},viewSize:function(){var e=this.element,t=this._layerSize(),n=e.width();return this.options.wraparound||(n=i(t,n)),{width:n,height:i(t,e.height())}},_setOrigin:function(e,t){var n,i=this.viewSize();return e=this._origin=m.create(e),n=this.locationToLayer(e,t),n.x+=i.width/2,n.y+=i.height/2,this.options.center=this.layerToLocation(n,t).toArray(),this},_getOrigin:function(e){var t,n=this.viewSize();return(e||!this._origin)&&(t=this.locationToLayer(this.center()),t.x-=n.width/2,t.y-=n.height/2,this._origin=this.layerToLocation(t)),this._origin},_zoomAround:function(e,t){this._setOrigin(this.layerToLocation(e,t),t),this.zoom(t)},_initControls:function(){var e=this.options.controls;d&&e.navigator&&!a.support.mobileOS&&this._createCompass(e.navigator),u&&e.attribution&&this._createAttribution(e.attribution)},_createCompass:function(n){var i=e(t.createElement("div")).appendTo(this.element),r=this.compass=new d(i,n);this._compassPan=o(this._compassPan,this),r.bind("pan",this._compassPan),this._compassCenter=o(this._compassCenter,this),r.bind("center",this._compassCenter)},_compassPan:function(e){var t=this,n=t.scroller,i=n.scrollLeft+e.x,r=n.scrollTop-e.y,o=this._virtualSize,a=this.element.height(),s=this.element.width();i=y(i,o.x.min,o.x.max-s),r=y(r,o.y.min,o.y.max-a),t.scroller.one("scroll",function(e){t._scrollEnd(e)}),t.scroller.scrollTo(-i,-r)},_compassCenter:function(){this.center(this.options.center)},_createAttribution:function(n){var i=e(t.createElement("div")).appendTo(this.element);this.attribution=new u(i,n)},_initScroller:function(){var e=a.support.mobileOS?k:_,t=this.scroller=new a.mobile.ui.Scroller(this.element.children(0),{friction:e,velocityMultiplier:A,zoom:!0});t.bind("scroll",o(this._scroll,this)),t.bind("scrollEnd",o(this._scrollEnd,this)),t.userEvents.bind("gestureend",o(this._scale,this)),this.scrollElement=t.scrollElement},_initLayers:function(){var e,t,n,i,r,o=this.options.layers,a=this.layers=[];for(e=0;e<o.length;e++)t=o[e],n=t.type||"shape",i=this.options.layerDefaults[n],r=c.map.layers[n],a.push(new r(this,l({},i,t)))},_initMarkers:function(){this.markers=new f.layers.MarkerLayer(this,{markerDefaults:this.options.markerDefaults}),this.markers.add(this.options.markers)},_scroll:function(e){var t=this.locationToLayer(this._viewOrigin).round(),n=e.sender.movable,i=new p.Point(n.x,n.y).multiply(-1).multiply(1/n.scale);t.x+=i.x,t.y+=i.y,this._setOrigin(this.layerToLocation(t)),this.trigger("pan",{originalEvent:e,origin:this._getOrigin(),center:this.center()})},_scrollEnd:function(e){this.trigger("panEnd",{originalEvent:e,origin:this._getOrigin(),center:this.center()})},_scale:function(e){var t=this.scroller.movable.scale,n=this._scaleToZoom(t),i=new p.Point(e.center.x,e.center.y),r=this.viewToLocation(i,n),o=this.locationToLayer(r,n),a=o.subtract(i);this._zoomAround(a,n)},_scaleToZoom:function(e){var t=this._layerSize()*e,i=t/this.options.minSize,r=n.log(i)/n.log(2);return n.round(r)},_reset:function(){this.attribution&&this.attribution.clear(),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.trigger("reset")},_resetScroller:function(){var e,t,n,i=this.scroller,o=i.dimensions.x,a=i.dimensions.y,s=this._layerSize(),l=20*s,c=this.extent().nw,d=this.locationToLayer(c).round();i.reset(),i.userEvents.cancel(),e=this.options.maxZoom-this.zoom(),i.dimensions.maxScale=r(2,e),i.movable.round=!0,o.makeVirtual(),a.makeVirtual(),t={min:-d.x,max:s-d.x},this.options.wraparound&&(t.min=-l,t.max=l),o.virtualSize(t.min,t.max),n={min:-d.y,max:s-d.y},a.virtualSize(n.min,n.max),this._virtualSize={x:t,y:n}},_renderLayers:function(){var e,t,n,i,r,o=this.options.layers,a=this.layers=[],s=this.scrollWrap;for(s.empty(),e=0;e<o.length;e++)t=o[e],n=t.type||"shape",i=this.options.layerDefaults[n],r=c.map.layers[n],a.push(new r(this,l({},i,t)))},_layerSize:function(e){return e=w(e,this.options.zoom),this.options.minSize*r(2,e)},_click:function(e){var t=this.eventToView(e);this.trigger("click",{originalEvent:e,location:this.viewToLocation(t)})},_mousewheel:function(e){var t,n,i,r,o,a,s,l;e.preventDefault(),t=c.mwDelta(e)>0?-1:1,n=this.options,i=this.zoom(),r=y(i+t,n.minZoom,n.maxZoom),r!==i&&(this.trigger("zoomStart",{originalEvent:e}),o=this.eventToView(e),a=this.viewToLocation(o),s=this.locationToLayer(a,r),l=s.subtract(o),this._zoomAround(l,r),this.trigger("zoomEnd",{originalEvent:e}))}});c.ui.plugin(S)}(window.kendo.jQuery);return window.kendo})}(typeof define=="function"&&define.amd?define:function(deps,body){return body()});
//@ sourceMappingURL=kendo.dataviz.min.js.map