/**
* Copyright 2015 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function(f,define){define([],f)})(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?"+$kendoHtmlEncode("+i+")+":";"+e+";$kendoOutput+="}function o(e,t,n){return e+="",t=t||2,n=t-e.length,n?Y[t].substring(0,n)+e:e}function a(e){var t=e.css(gt.support.transitions.css+"box-shadow")||e.css("box-shadow"),n=t?t.match(St)||[0,0,0,0,0]:[0,0,0,0,0],i=kt.max(+n[3],+(n[4]||0));return{left:-n[1]+i,right:+n[1]+i,bottom:+n[2]+i}}function s(t,n){var i,r,o,s,l,u,c,d,f=Tt.browser,p="rtl"==t.css("direction");return t.parent().hasClass("k-animation-container")?(c=t.parent(".k-animation-container"),d=c[0].style,c.is(":hidden")&&c.show(),i=Mt.test(d.width)||Mt.test(d.height),i||c.css({width:t.outerWidth(),height:t.outerHeight(),boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"})):(r=a(t),o=t[0].style.width,s=t[0].style.height,l=Mt.test(o),u=Mt.test(s),f.opera&&(r.left=r.right=r.bottom=5),i=l||u,!l&&(!n||n&&o)&&(o=t.outerWidth()),!u&&(!n||n&&s)&&(s=t.outerHeight()),t.wrap(e("
").addClass("k-animation-container").css({width:o,height:s,marginLeft:r.left*(p?1:-1),paddingLeft:r.left,paddingRight:r.right,paddingBottom:r.bottom})),i&&t.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})),f.msie&&kt.floor(f.version)<=7&&(t.css({zoom:1}),t.children(".k-menu").width(t.width())),t.parent()}function l(e){var t=1,n=arguments.length;for(t=1;n>t;t++)u(e,arguments[t]);return e}function u(e,t){var n,i,r,o,a,s=gt.data.ObservableArray,l=gt.data.LazyObservableArray,c=gt.data.DataSource,d=gt.data.HierarchicalDataSource;for(n in t)i=t[n],r=typeof i,o=r===At&&null!==i?i.constructor:null,o&&o!==Array&&o!==s&&o!==l&&o!==c&&o!==d?i instanceof Date?e[n]=new Date(i.getTime()):F(i.clone)?e[n]=i.clone():(a=e[n],e[n]=typeof a===At?a||{}:{},u(e[n],i)):r!==Pt&&(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 f(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})}function p(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[f(t)]})),gt.size(r)||(r=i),r}function m(e){return"visible"!=p(e,["overflow"]).overflow}function h(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&"toJSON"!=t&&n++;return n}function g(e,n,i){n||(n="offset");var r=e[n]();return Tt.browser.msie&&(Tt.pointers||Tt.msPointers)&&!i&&(r.top-=t.pageYOffset-document.documentElement.scrollTop,r.left-=t.pageXOffset-document.documentElement.scrollLeft),r}function v(e){var t={};return _t("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function _(e){return new gt.effects.Element(e)}function y(e,t,n,i){return typeof e===zt&&(F(t)&&(i=t,t=400,n=!1),F(n)&&(i=n,n=!1),typeof t===Et&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),vt({effects:{},duration:400,reverse:!1,init:bt,teardown:bt,hide:!1},e,{completeCallback:e.complete,complete:bt})}function w(t,n,i,r,o){for(var a,s=0,l=t.length;l>s;s++)a=e(t[s]),a.queue(function(){L.promise(a,y(n,i,r,o))});return t}function b(e,t,n,i){return t&&(t=t.split(" "),_t(t,function(t,n){e.toggleClass(n,i)})),e}function k(e){return(""+e).replace(B,"&").replace($,"<").replace(J,">").replace(j,""").replace(q,"'")}function x(e,t){var i;return 0===t.indexOf("data")&&(t=t.substring(4),t=t.charAt(0).toLowerCase()+t.substring(1)),t=t.replace(it,"-$1"),i=e.getAttribute("data-"+gt.ns+t),null===i?i=n:"null"===i?i=null:"true"===i?i=!0:"false"===i?i=!1:Ct.test(i)?i=parseFloat(i):tt.test(i)&&!nt.test(i)&&(i=Function("return ("+i+")")()),i}function T(t,i){var r,o,a={};for(r in i)o=x(t,r),o!==n&&(et.test(r)&&(o=gt.template(e("#"+o).html())),a[r]=o);return a}function M(t,n){return e.contains(t,n)?-1:1}function D(){var t=e(this);return e.inArray(t.attr("data-"+gt.ns+"role"),["slider","rangeslider"])>-1||t.is(":visible")}function S(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&C(e)}function C(t){return!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")||e.expr.filters.hidden(this)}).length}function O(e,t){return new O.fn.init(e,t)}var z,F,A,H,E,P,N,I,V,W,R,Y,U,L,B,$,j,q,J,G,K,Q,Z,X,et,tt,nt,it,rt,ot,at,st,lt,ut,ct,dt,ft,pt,mt,ht,gt=t.kendo=t.kendo||{cultures:{}},vt=e.extend,_t=e.each,yt=e.isArray,wt=e.proxy,bt=e.noop,kt=Math,xt=t.JSON||{},Tt={},Mt=/%/,Dt=/\{(\d+)(:[^\}]+)?\}/g,St=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i,Ct=/^(\+|-?)\d+(\.?)\d*$/,Ot="function",zt="string",Ft="number",At="object",Ht="null",Et="boolean",Pt="undefined",Nt={},It={},Vt=[].slice,Wt=t.Globalize;gt.version="$KENDO_VERSION",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]=null!=e[t]&&e[t].constructor===Object?vt(!0,{},i.prototype[t],e[t]):e[t];return n.constructor=o,o.extend=r.extend,o},i.prototype._initOptions=function(e){this.options=l({},this.options,e)},F=gt.isFunction=function(e){return"function"==typeof e},A=function(){this._defaultPrevented=!0},H=function(){return this._defaultPrevented===!0},E=i.extend({init:function(){this._events={}},bind:function(e,t,i){var r,o,a,s,l,u=this,c=typeof e===zt?[e]:e,d=typeof t===Ot;if(t===n){for(r in e)u.bind(r,e[r]);return u}for(r=0,o=c.length;o>r;r++)e=c[r],s=d?t:t[e],s&&(i&&(a=s,s=function(){u.unbind(e,s),a.apply(u,arguments)},s.original=a),l=u._events[e]=u._events[e]||[],l.push(s));return u},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,i,r,o,a=this,s=typeof e===zt?[e]:e,l=typeof t===Ot;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=A,t.isDefaultPrevented=H,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[i].original===t)&&o.splice(i,1);else r._events[e]=[];return r}}),P=/^\w+/,N=/\$\{([^}]*)\}/g,I=/\\\}/g,V=/__CURLY__/g,W=/\\#/g,R=/__SHARP__/g,Y=["","0","00","000","0000"],z={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(e,t){var n,i,o,a=vt({},this,t),s=a.paramName,l=s.match(P)[0],u=a.useWithBlock,c="var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;";if(F(e))return e;for(c+=u?"with("+s+"){":"",c+="$kendoOutput=",i=e.replace(I,"__CURLY__").replace(N,"#=$kendoHtmlEncode($1)#").replace(V,"}").replace(W,"__SHARP__").split("#"),o=0;i.length>o;o++)c+=r(i[o],o%2===0);c+=u?";}":";",c+="return $kendoOutput;",c=c.replace(R,"#");try{return n=Function(l,c),n._slotCount=Math.floor(i.length/2),n}catch(d){throw Error(gt.format("Invalid template:'{0}' Generated code:'{1}'",e,c))}}},function(){function e(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=s[e];return typeof t===zt?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function t(o,a){var s,u,c,d,f,p,m=n,h=a[o];if(h&&typeof h===At&&typeof h.toJSON===Ot&&(h=h.toJSON(o)),typeof r===Ot&&(h=r.call(a,o,h)),p=typeof h,p===zt)return e(h);if(p===Ft)return isFinite(h)?h+"":Ht;if(p===Et||p===Ht)return h+"";if(p===At){if(!h)return Ht;if(n+=i,f=[],"[object Array]"===l.apply(h)){for(d=h.length,s=0;d>s;s++)f[s]=t(s,h)||Ht;return c=0===f.length?"[]":n?"[\n"+n+f.join(",\n"+n)+"\n"+m+"]":"["+f.join(",")+"]",n=m,c}if(r&&typeof r===At)for(d=r.length,s=0;d>s;s++)typeof r[s]===zt&&(u=r[s],c=t(u,h),c&&f.push(e(u)+(n?": ":":")+c));else for(u in h)Object.hasOwnProperty.call(h,u)&&(c=t(u,h),c&&f.push(e(u)+(n?": ":":")+c));return c=0===f.length?"{}":n?"{\n"+n+f.join(",\n"+n)+"\n"+m+"}":"{"+f.join(",")+"}",n=m,c}}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!==Ot&&(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 xt.stringify!==Ot&&(xt.stringify=function(e,o,a){var s;if(n="",i="",typeof a===Ft)for(s=0;a>s;s+=1)i+=" ";else typeof a===zt&&(i=a);if(r=o,o&&typeof o!==Ot&&(typeof o!==At||typeof o.length!==Ft))throw Error("JSON.stringify");return t("",{"":e})})}(),function(){function t(e){if(e){if(e.numberFormat)return e;if(typeof e===zt){var t=gt.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function i(e){return e&&(e=t(e)),e||gt.cultures.current}function r(e){e.groupSizes=e.groupSize,e.percent.groupSizes=e.percent.groupSize,e.currency.groupSizes=e.currency.groupSize}function a(e,t,r){r=i(r);var a=r.calendars.standard,s=a.days,l=a.months;return t=a.patterns[t]||t,t.replace(c,function(t){var i,r,u;return"d"===t?r=e.getDate():"dd"===t?r=o(e.getDate()):"ddd"===t?r=s.namesAbbr[e.getDay()]:"dddd"===t?r=s.names[e.getDay()]:"M"===t?r=e.getMonth()+1:"MM"===t?r=o(e.getMonth()+1):"MMM"===t?r=l.namesAbbr[e.getMonth()]:"MMMM"===t?r=l.names[e.getMonth()]:"yy"===t?r=o(e.getFullYear()%100):"yyyy"===t?r=o(e.getFullYear(),4):"h"===t?r=e.getHours()%12||12:"hh"===t?r=o(e.getHours()%12||12):"H"===t?r=e.getHours():"HH"===t?r=o(e.getHours()):"m"===t?r=e.getMinutes():"mm"===t?r=o(e.getMinutes()):"s"===t?r=e.getSeconds():"ss"===t?r=o(e.getSeconds()):"f"===t?r=kt.floor(e.getMilliseconds()/100):"ff"===t?(r=e.getMilliseconds(),r>99&&(r=kt.floor(r/10)),r=o(r)):"fff"===t?r=o(e.getMilliseconds(),3):"tt"===t?r=e.getHours()<12?a.AM[0]:a.PM[0]:"zzz"===t?(i=e.getTimezoneOffset(),u=0>i,r=(""+kt.abs(i/60)).split(".")[0],i=kt.abs(i)-60*r,r=(u?"+":"-")+o(r),r+=":"+o(i)):("zz"===t||"z"===t)&&(r=e.getTimezoneOffset()/60,u=0>r,r=(""+kt.abs(r)).split(".")[0],r=(u?"+":"-")+("zz"===t?o(r):r)),r!==n?r:t.slice(1,t.length-1)})}function s(e,t,r){r=i(r);var o,a,s,u,c,w,b,k,x,T,M,D,S,C,O,z,F,A,H,E,P,N,I,V=r.numberFormat,W=V.groupSize[0],R=V[g],Y=V[h],U=V.decimals,L=V.pattern[0],B=[],$=0>e,j=m,q=m,J=-1;if(e===n)return m;if(!isFinite(e))return e;if(!t)return r.name.length?e.toLocaleString():""+e;if(c=d.exec(t)){if(t=c[1].toLowerCase(),a="c"===t,s="p"===t,(a||s)&&(V=a?V.currency:V.percent,W=V.groupSize[0],R=V[g],Y=V[h],U=V.decimals,o=V.symbol,L=V.pattern[$?0:1]),u=c[2],u&&(U=+u),"e"===t)return u?e.toExponential(U):e.toExponential();if(s&&(e*=100),e=l(e,U),$=0>e,e=e.split(h),w=e[0],b=e[1],$&&(w=w.substring(1)),q=w,k=w.length,k>=W)for(q=m,T=0;k>T;T++)T>0&&(k-T)%W===0&&(q+=R),q+=w.charAt(T);if(b&&(q+=Y+b),"n"===t&&!$)return q;for(e=m,T=0,M=L.length;M>T;T++)D=L.charAt(T),e+="n"===D?q:"$"===D||"%"===D?o:D;return e}if($&&(e=-e),(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1)&&(t=t.replace(f,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return B.push(n),y})),t=t.split(";"),$&&t[1])t=t[1],C=!0;else if(0===e){if(t=t[2]||t[0],-1==t.indexOf(v)&&-1==t.indexOf(_))return t}else t=t[0];if(E=t.indexOf("%"),P=t.indexOf("$"),s=-1!=E,a=-1!=P,s&&(e*=100),a&&"\\"===t[P-1]&&(t=t.split("\\").join(""),a=!1),(a||s)&&(V=a?V.currency:V.percent,W=V.groupSize[0],R=V[g],Y=V[h],U=V.decimals,o=V.symbol),S=t.indexOf(g)>-1,S&&(t=t.replace(p,m)),O=t.indexOf(h),M=t.length,-1!=O?(b=(""+e).split("e"),b=b[1]?l(e,Math.abs(b[1])):b[0],b=b.split(h)[1]||m,F=t.lastIndexOf(_)-O,z=t.lastIndexOf(v)-O,A=F>-1,H=z>-1,T=b.length,A||H||(t=t.substring(0,O)+t.substring(O+1),M=t.length,O=-1,T=0),A&&F>z?T=F:z>F&&(H&&T>z?T=z:A&&F>T&&(T=F)),T>-1&&(e=l(e,T))):e=l(e),z=t.indexOf(v),N=F=t.indexOf(_),J=-1==z&&-1!=F?F:-1!=z&&-1==F?z:z>F?F:z,z=t.lastIndexOf(v),F=t.lastIndexOf(_),I=-1==z&&-1!=F?F:-1!=z&&-1==F?z:z>F?z:F,J==M&&(I=J),-1!=J){if(q=(""+e).split(h),w=q[0],b=q[1]||m,k=w.length,x=b.length,$&&-1*e>=0&&($=!1),S)if(k===W&&O-N>k)w=R+w;else if(k>W){for(q=m,T=0;k>T;T++)T>0&&(k-T)%W===0&&(q+=R),q+=w.charAt(T);w=q}for(e=t.substring(0,J),$&&!C&&(e+="-"),T=J;M>T;T++){if(D=t.charAt(T),-1==O){if(k>I-T){e+=w;break}}else if(-1!=F&&T>F&&(j=m),k>=O-T&&O-T>-1&&(e+=w,T=O),O===T){e+=(b?Y:m)+b,T+=I-O+1;continue}D===_?(e+=D,j=D):D===v&&(e+=j)}if(I>=J&&(e+=t.substring(I+1)),a||s){for(q=m,T=0,M=e.length;M>T;T++)D=e.charAt(T),q+="$"===D||"%"===D?o:D;e=q}if(M=B.length)for(T=0;M>T;T++)e=e.replace(y,B[T])}return e}var l,u,c=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|"[^"]*"|'[^']*'/g,d=/^(n|c|p|e)(\d*)$/i,f=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,p=/\,/g,m="",h=".",g=",",v="#",_="0",y="??",w="en-US",b={}.toString;gt.cultures["en-US"]={name:w,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}}},gt.culture=function(e){var i,o=gt.cultures;return e===n?o.current:(i=t(e)||o[w],i.calendar=i.calendars.standard,o.current=i,Wt&&!Wt.load&&r(i.numberFormat),n)},gt.findCulture=t,gt.getCulture=i,gt.culture(w),l=function(e,t){return t=t||0,e=(""+e).split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t))),e=(""+e).split("e"),e=+(e[0]+"e"+(e[1]?+e[1]-t:-t)),e.toFixed(t)},u=function(e,t,i){if(t){if("[object Date]"===b.call(e))return a(e,t,i);if(typeof e===Ft)return s(e,t,i)}return e!==n?e:""},Wt&&!Wt.load&&(u=function(t,n,i){return e.isPlainObject(i)&&(i=i.name),Wt.format(t,n,i)}),gt.format=function(e){var t=arguments;return e.replace(Dt,function(e,n,i){var r=t[parseInt(n,10)+1];return u(r,i?i.substring(1):"")})},gt._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},gt._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},gt._round=l,gt.toString=u}(),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,u,c,d,m,h,g,_,y,w,b,k,x,T=function(e){for(var t=0;i[N]===e;)t++,N++;return t>0&&(N-=1),t},M=function(t){var n=v[t]||RegExp("^\\d{1,"+t+"}"),i=e.substr(I,t).match(n);return i?(i=i[0],I+=i.length,parseInt(i,10)):null},D=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(I,r),n&&(o=o.toLowerCase()),o==i)return I+=r,a+1;return null},S=function(){var t=!1;return e.charAt(I)===i[N]&&(I++,t=!0),t},C=a.calendars.standard,O=null,z=null,F=null,A=null,H=null,E=null,P=null,N=0,I=0,V=!1,W=new Date,R=C.twoDigitYearMax||2029,Y=W.getFullYear();for(i||(i="d"),d=C.patterns[i],d&&(i=d),i=i.split(""),c=i.length;c>N;N++)if(l=i[N],V)"'"===l?V=!1:S();else if("d"===l){if(u=T("d"),C._lowerDays||(C._lowerDays=s(C.days)),F=3>u?M(2):D(C._lowerDays[3==u?"namesAbbr":"names"],!0),null===F||t(F,1,31))return null}else if("M"===l){if(u=T("M"),C._lowerMonths||(C._lowerMonths=s(C.months)),z=3>u?M(2):D(C._lowerMonths[3==u?"namesAbbr":"names"],!0),null===z||t(z,1,12))return null;z-=1}else if("y"===l){if(u=T("y"),O=M(u),null===O)return null;2==u&&("string"==typeof R&&(R=Y+parseInt(R,10)),O=Y-Y%100+O,O>R&&(O-=100))}else if("h"===l){if(T("h"),A=M(2),12==A&&(A=0),null===A||t(A,0,11))return null}else if("H"===l){if(T("H"),A=M(2),null===A||t(A,0,23))return null}else if("m"===l){if(T("m"),H=M(2),null===H||t(H,0,59))return null}else if("s"===l){if(T("s"),E=M(2),null===E||t(E,0,59))return null}else if("f"===l){if(u=T("f"),x=e.substr(I,u).match(v[3]),P=M(u),null!==P&&(x=x[0].length,3>x&&(P*=Math.pow(10,3-x)),u>3&&(P=parseInt((""+P).substring(0,3),10))),null===P||t(P,0,999))return null}else if("t"===l){if(u=T("t"),_=C.AM,y=C.PM,1===u&&(_=r(_),y=r(y)),m=D(y),!m&&!D(_))return null}else if("z"===l){if(h=!0,u=T("z"),"Z"===e.substr(I,1)){S();continue}if(g=e.substr(I,6).match(u>2?p:f),!g)return null;if(g=g[0].split(":"),w=g[0],b=g[1],!b&&w.length>3&&(I=w.length-2,b=w.substring(I),w=w.substring(0,I)),w=parseInt(w,10),t(w,-12,13))return null;if(u>2&&(b=parseInt(b,10),isNaN(b)||t(b,0,59)))return null}else if("'"===l)V=!0,S();else if(!S())return null;return k=null!==A||null!==H||E||null,null===O&&null===z&&null===F&&k?(O=Y,z=W.getMonth(),F=W.getDate()):(null===O&&(O=Y),null===F&&(F=1)),m&&12>A&&(A+=12),h?(w&&(A+=-w),b&&(H+=-b),e=new Date(Date.UTC(O,z,F,A,H,E,P))):(e=new Date(O,z,F,A,H,E,P),o(e,A)),100>O&&e.setFullYear(O),e.getDate()!==F&&h===n?null:e}function u(e){var t="-"===e.substr(0,1)?-1:1;return e=e.substring(1),e=60*parseInt(e.substr(0,2),10)+parseInt(e.substring(2),10),t*e}var c=/\u00A0/g,d=/[eE][\-+]?[0-9]+/,f=/[+|\-]\d{1,2}/,p=/[+|\-]\d{1,2}:?\d{2}/,m=/^\/Date\((.*?)\)\/$/,h=/[+-]\d*/,g=["G","g","d","F","D","y","m","T","t"],v={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},_={}.toString;gt.parseDate=function(e,t,n){var i,r,o,a,s;if("[object Date]"===_.call(e))return e;if(i=0,r=null,e&&0===e.indexOf("/D")&&(r=m.exec(e)))return r=r[1],s=h.exec(r.substring(1)),r=new Date(parseInt(r,10)),s&&(s=u(s[0]),r=gt.timezone.apply(r,0),r=gt.timezone.convert(r,0,-1*s)),r;if(n=gt.getCulture(n),!t){for(t=[],a=n.calendar.patterns,o=g.length;o>i;i++)t[i]=a[g[i]];i=0,t=["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:mm:ss.fffffff","yyyy-MM-ddTHH:mm:ss.fff","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","HH:mm:ss","HH:mm"].concat(t)}for(t=yt(t)?t:[t],o=t.length;o>i;i++)if(r=l(e,t[i],n))return r;return r},gt.parseInt=function(e,t){var n=gt.parseFloat(e,t);return n&&(n=0|n),n},gt.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===Ft)return e;e=""+e,t=gt.getCulture(t);var i,r,o=t.numberFormat,a=o.percent,s=o.currency,l=s.symbol,u=a.symbol,f=e.indexOf("-");return d.test(e)?(e=parseFloat(e.replace(o["."],".")),isNaN(e)&&(e=null),e):f>0?null:(f=f>-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],""),f=!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:f&&(e*=-1),e&&r&&(e/=100),e)},Wt&&!Wt.load&&(gt.parseDate=function(e,t,n){return"[object Date]"===_.call(e)?e:Wt.parseDate(e,t,n)},gt.parseFloat=function(t,i){return typeof t===Ft?t:t===n||null===t?null:(e.isPlainObject(i)&&(i=i.name),t=Wt.parseFloat(t,i),isNaN(t)?null:t)})}(),function(){var i,r,o,a,s,l,u;Tt._scrollbar=n,Tt.scrollbar=function(e){if(isNaN(Tt._scrollbar)||e){var t,n=document.createElement("div");return n.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",n.innerHTML=" ",document.body.appendChild(n),Tt._scrollbar=t=n.offsetWidth-n.scrollWidth,document.body.removeChild(n),t}return Tt._scrollbar},Tt.isRtl=function(t){return e(t).closest(".k-rtl").length>0},i=document.createElement("table");try{i.innerHTML=" |
",Tt.tbodyInnerHtml=!0}catch(d){Tt.tbodyInnerHtml=!1}Tt.touch="ontouchstart"in t,Tt.msPointers=t.MSPointerEvent,Tt.pointers=t.PointerEvent,r=Tt.transitions=!1,o=Tt.transforms=!1,a="HTMLElement"in t?HTMLElement.prototype:[],Tt.hasHW3D="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix||"MozPerspective"in document.documentElement.style||"msPerspective"in document.documentElement.style,_t(["Moz","webkit","O","ms"],function(){var e,t=""+this,a=typeof i.style[t+"Transition"]===zt;return a||typeof i.style[t+"Transform"]===zt?(e=t.toLowerCase(),o={css:"ms"!=e?"-"+e+"-":"",prefix:t,event:"o"===e||"webkit"===e?e:""},a&&(r=o,r.event=r.event?r.event+"TransitionEnd":"transitionend"),!1):n}),i=null,Tt.transforms=o,Tt.transitions=r,Tt.devicePixelRatio=t.devicePixelRatio===n?1:t.devicePixelRatio;try{Tt.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth,Tt.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(d){Tt.screenWidth=t.screen.availWidth,Tt.screenHeight=t.screen.availHeight}Tt.detectOS=function(e){var n,i,r=!1,o=[],a=!/mobile safari/i.test(e),s={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,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+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},l={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},u={tablet:/playbook|ipad|fire/i},d={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(i in s)if(s.hasOwnProperty(i)&&(o=e.match(s[i]))){if("windows"==i&&"plugins"in navigator)return!1;r={},r.device=i,r.tablet=c(i,u,!1),r.browser=c(e,d,"default"),r.name=c(i,l),r[r.name]=!0,r.majorVersion=o[2],r.minorVersion=o[3].replace("_","."),n=r.minorVersion.replace(".","").substr(0,2),r.flatVersion=r.majorVersion+n+Array(3-(3>n.length?n.length:2)).join("0"),r.cordova=typeof t.PhoneGap!==Pt||typeof t.cordova!==Pt,r.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||r.cordova,r.android&&(1.5>Tt.devicePixelRatio&&400>r.flatVersion||a)&&(Tt.screenWidth>800||Tt.screenHeight>800)&&(r.tablet=i);break}return r},s=Tt.mobileOS=Tt.detectOS(navigator.userAgent),Tt.wpDevicePixelRatio=s.wp?screen.width/320:0,Tt.kineticScrollNeeded=s&&(Tt.touch||Tt.msPointers||Tt.pointers),Tt.hasNativeScrolling=!1,(s.ios||s.android&&s.majorVersion>2||s.wp)&&(Tt.hasNativeScrolling=s),Tt.mouseAndTouchPresent=Tt.touch&&!(Tt.mobileOS.ios||Tt.mobileOS.android),Tt.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().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||i[2],10);break}return n},Tt.browser=Tt.detectBrowser(navigator.userAgent),Tt.zoomLevel=function(){var e,n,i;try{return e=Tt.browser,n=0,i=document.documentElement,e.msie&&11==e.version&&i.scrollHeight>i.clientHeight&&!Tt.touch&&(n=Tt.scrollbar()),Tt.touch?i.clientWidth/t.innerWidth:e.msie&&e.version>=10?((top||t).document.documentElement.offsetWidth+n)/(top||t).innerWidth:1}catch(r){return 1}},Tt.cssBorderSpacing=n!==document.documentElement.style.borderSpacing&&!(Tt.browser.msie&&8>Tt.browser.version),function(t){var n="",i=e(document.documentElement),r=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&&(n="k-"+n+" k-"+n+r),Tt.mobileOS&&(n+=" k-mobile"),i.addClass(n)}(Tt.browser),Tt.eventCapture=document.documentElement.addEventListener,l=document.createElement("input"),Tt.placeholder="placeholder"in l,Tt.propertyChangeEvent="onpropertychange"in l,Tt.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],l.setAttribute("type",e),l.value=i,r[e.replace("-","")]="text"!==l.type&&l.value!==i;return r}(),l.style.cssText="float:left;",Tt.cssFloat=!!l.style.cssFloat,l=null,Tt.stableSort=function(){var e,t=513,n=[{index:0,field:"b"}];for(e=1;t>e;e++)n.push({index:e,field:"a"});return n.sort(function(e,t){return e.field>t.field?1:t.field>e.field?-1:0}),1===n[0].index}(),Tt.matchesSelector=a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.matchesSelector||a.matches||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},Tt.pushState=t.history&&t.history.pushState,u=document.documentMode,Tt.hashChange="onhashchange"in t&&!(Tt.browser.msie&&(!u||8>=u))}(),U={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},L={},e.extend(L,{enabled:!0,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()},disable:function(){this.enabled=!1,this.promise=this.promiseShim},enable:function(){this.enabled=!0,this.promise=this.animatedPromise}}),L.promiseShim=L.promise,"kendoAnimate"in e.fn||vt(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,i){return w(this,e,t,n,i)},kendoAddClass:function(e,t){return gt.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return gt.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return gt.toggleClass(this,e,t,n)}}),B=/&/g,$=//g,G=function(e){return e.target},Tt.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},_t(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(t,n){e.fn[n]=function(e){return this.bind(n,e)}})),Tt.touch?Tt.mobileOS?(Tt.mousedown="touchstart",Tt.mouseup="touchend",Tt.mousemove="touchmove",Tt.mousecancel="touchcancel",Tt.click="touchend",Tt.resize="orientationchange"):(Tt.mousedown="mousedown touchstart",Tt.mouseup="mouseup touchend",Tt.mousemove="mousemove touchmove",Tt.mousecancel="mouseleave touchcancel",Tt.click="click",Tt.resize="resize"):Tt.pointers?(Tt.mousemove="pointermove",Tt.mousedown="pointerdown",Tt.mouseup="pointerup",Tt.mousecancel="pointercancel",Tt.click="pointerup",Tt.resize="orientationchange resize"):Tt.msPointers?(Tt.mousemove="MSPointerMove",Tt.mousedown="MSPointerDown",Tt.mouseup="MSPointerUp",Tt.mousecancel="MSPointerCancel",Tt.click="MSPointerUp",Tt.resize="orientationchange resize"):(Tt.mousemove="mousemove",Tt.mousedown="mousedown",Tt.mouseup="mouseup",Tt.mousecancel="mouseleave",Tt.click="click",Tt.resize="resize"),K=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,vt(gt,{ui:gt.ui||{},fx:gt.fx||_,effects:gt.effects||L,mobile:gt.mobile||{},data:gt.data||{},dataviz:gt.dataviz||{},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,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110},support:gt.support||Tt,animate:gt.animate||w,ns:"",attr:function(e){return"data-"+gt.ns+e},getShadows:a,wrap:s,deepExtend:l,getComputedStyles:p,isScrollable:m,size:h,toCamelCase:f,toHyphens:d,getOffset:gt.getOffset||g,parseEffects:gt.parseEffects||v,toggleClass:gt.toggleClass||b,directions:gt.directions||U,Observable:E,Class:i,Template:z,template:wt(z.compile,z),render:wt(z.render,z),stringify:wt(xt.stringify,xt),eventTarget:G,htmlEncode:k,isLocalUrl:function(e){return e&&!Q.test(e)},expr:function(e,t,n){return e=e||"",typeof t==zt&&(n=t,t=!1),n=n||"d",e&&"["!==e.charAt(0)&&(e="."+e),t?(e=e.replace(/"([^.]*)\.([^"]*)"/g,'"$1_$DOT$_$2"'),e=e.replace(/'([^.]*)\.([^']*)'/g,"'$1_$DOT$_$2'"),e=K(e.split("."),n),e=e.replace(/_\$DOT\$_/g,".")):e=n+e,e},getter:function(e,t){var n=e+t;return Nt[n]=Nt[n]||Function("d","return "+gt.expr(e,t))},setter:function(e){return It[e]=It[e]||Function("d,value",gt.expr(e)+"=value")},accessor:function(e){return{get:gt.getter(e),set:gt.setter(e)}},guid:function(){var e,t,n="";for(e=0;32>e;e++)t=16*kt.random()|0,(8==e||12==e||16==e||20==e)&&(n+="-"),n+=(12==e?4:16==e?3&t|8:t).toString(16);return n},roleSelector:function(e){return e.replace(/(\S+)/g,"["+gt.attr("role")+"=$1],").slice(0,-1)},directiveSelector:function(e){var t,n=e.split(" ");if(n)for(t=0;n.length>t;t++)"view"!=n[t]&&(n[t]=n[t].replace(/(\w*)(view|bar|strip|over)$/,"$1-$2"));return n.join(" ").replace(/(\S+)/g,"kendo-mobile-$1,").slice(0,-1)},triggeredByInput:function(e){return/^(label|input|textarea|select)$/i.test(e.target.tagName)},logToConsole:function(e){var i=t.console;!gt.suppressLog&&n!==i&&i.log&&i.log(e)}}),Z=E.extend({init:function(e,t){var n,i=this;i.element=gt.jQuery(e).handler(i),i.angular("init",t),E.fn.init.call(i),n=t?t.dataSource:null,n&&(t=vt({},t,{dataSource:{}})),t=i.options=vt(!0,{},i.options,t),n&&(t.dataSource=n),i.element.attr(gt.attr("role"))||i.element.attr(gt.attr("role"),(t.name||"").toLowerCase()),i.element.data("kendo"+t.prefix+t.name,i),i.bind(i.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){this._setEvents(t),e.extend(this.options,t)},_setEvents:function(e){for(var t,n=this,i=0,r=n.events.length;r>i;i++)t=n.events[i],n.options[t]&&e[t]&&n.unbind(t,n.options[t]);n.bind(n.events,e)},resize:function(e){var t=this.getSize(),n=this._size;(e||(t.width>0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this._size=t,this._resize(t,e),this.trigger("resize",t))},getSize:function(){return gt.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()},angular:function(){}}),X=Z.extend({dataItems:function(){return this.dataSource.flatView()},_angularItems:function(t){var n=this;n.angular(t,function(){return{elements:n.items(),data:e.map(n.dataItems(),function(e){return{dataItem:e}
})}})}}),gt.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},gt.notify=bt,et=/template$/i,tt=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,nt=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]*\]$/,it=/([A-Z])/g,gt.initWidget=function(i,r,o){var a,s,l,u,c,d,f,p,m,h,g,v,_;if(o?o.roles&&(o=o.roles):o=gt.ui.roles,i=i.nodeType?i:i[0],d=i.getAttribute("data-"+gt.ns+"role")){m=-1===d.indexOf("."),l=m?o[d]:gt.getter(d)(t),g=e(i).data(),v=l?"kendo"+l.fn.options.prefix+l.fn.options.name:"",h=m?RegExp("^kendo.*"+d+"$","i"):RegExp("^"+v+"$","i");for(_ in g)if(_.match(h)){if(_!==v)return g[_];a=g[_]}if(l){for(p=x(i,"dataSource"),r=e.extend({},T(i,l.fn.options),r),p&&(r.dataSource=typeof p===zt?gt.getter(p)(t):p),u=0,c=l.fn.events.length;c>u;u++)s=l.fn.events[u],f=x(i,s),f!==n&&(r[s]=gt.getter(f)(t));return a?e.isEmptyObject(r)||a.setOptions(r):a=new l(i,r),a}}},gt.rolesFromNamespaces=function(e){var t,n,i=[];for(e[0]||(e=[gt.ui,gt.dataviz.ui]),t=0,n=e.length;n>t;t++)i[t]=e[t].roles;return vt.apply(null,[{}].concat(i.reverse()))},gt.init=function(t){var n=gt.rolesFromNamespaces(Vt.call(arguments,1));e(t).find("[data-"+gt.ns+"role]").addBack().each(function(){gt.initWidget(this,{},n)})},gt.destroy=function(t){e(t).find("[data-"+gt.ns+"role]").addBack().each(function(){var t,n=e(this).data();for(t in n)0===t.indexOf("kendo")&&typeof n[t].destroy===Ot&&n[t].destroy()})},gt.resize=function(t,n){var i,r=e(t).find("[data-"+gt.ns+"role]").addBack().filter(D);r.length&&(i=e.makeArray(r),i.sort(M),e.each(i,function(){var t=gt.widgetInstance(e(this));t&&t.resize(n)}))},gt.parseOptions=T,vt(gt.ui,{Widget:Z,DataBoundWidget:X,roles:{},progress:function(t,n){var i,r,o,a,s=t.find(".k-loading-mask"),l=gt.support,u=l.browser;n?s.length||(i=l.isRtl(t),r=i?"right":"left",a=t.scrollLeft(),o=u.webkit&&i?t[0].scrollWidth-t.width()-2*a:0,s=e("").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||gt.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===zt?(r=Vt.call(arguments,1),this.each(function(){var t,s,l=e.data(this,a);if(!l)throw Error(gt.format("Cannot call method '{0}' of {1} before it is initialized",i,a));if(t=l[i],typeof t!==Ot)throw Error(gt.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[a].widget=t,e.fn[o]=function(){return this.data(a)}}}),rt={bind:function(){return this},nullObject:!0,options:{}},ot=Z.extend({init:function(e,t){Z.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){Z.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var e=this.element.closest(gt.roleSelector("view splitview modalview drawer"));return gt.widgetInstance(e,gt.mobile.ui)||rt},viewHasNativeScrolling:function(){var e=this.view();return e&&e.options.useNativeScrolling},container:function(){var e=this.element.closest(gt.roleSelector("view layout modalview drawer splitview"));return gt.widgetInstance(e.eq(0),gt.mobile.ui)||rt}}),vt(gt.mobile,{init:function(e){gt.init(e,gt.mobile.ui,gt.ui,gt.dataviz.ui)},appLevelNativeScrolling:function(){return gt.mobile.application&>.mobile.application.options&>.mobile.application.options.useNativeScrolling},roles:{},ui:{Widget:ot,DataBoundWidget:X.extend(ot.prototype),roles:{},plugin:function(e){gt.ui.plugin(e,gt.mobile.ui,"Mobile")}}}),l(gt.dataviz,{init:function(e){gt.init(e,gt.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(e){gt.ui.plugin(e,gt.dataviz.ui)}},roles:{}}),gt.touchScroller=function(t,n){return e(t).map(function(t,i){return i=e(i),Tt.kineticScrollNeeded&>.mobile.ui.Scroller&&!i.data("kendoMobileScroller")?(i.kendoMobileScroller(n),i.data("kendoMobileScroller")):!1})[0]},gt.preventDefault=function(e){e.preventDefault()},gt.widgetInstance=function(e,n){var i,r,o,a,s=e.data(gt.ns+"role"),l=[];if(s){if("content"===s&&(s="scroller"),n)if(n[0])for(i=0,r=n.length;r>i;i++)l.push(n[i].roles[s]);else l.push(n.roles[s]);else l=[gt.ui.roles[s],gt.dataviz.ui.roles[s],gt.mobile.ui.roles[s]];for(s.indexOf(".")>=0&&(l=[gt.getter(s)(t)]),i=0,r=l.length;r>i;i++)if(o=l[i],o&&(a=e.data("kendo"+o.fn.options.prefix+o.fn.options.name)))return a}},gt.onResize=function(n){var i=n;return Tt.mobileOS.android&&(i=function(){setTimeout(n,600)}),e(t).on(Tt.resize,i),i},gt.unbindResize=function(n){e(t).off(Tt.resize,n)},gt.attrValue=function(e,t){return e.data(gt.ns+t)},gt.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 S(t,!isNaN(n)&&n>-1)}}),at=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],st="label, input, [data-rel=external]",lt={setupMouseMute:function(){var t,n=0,i=at.length,r=document.documentElement;if(!lt.mouseTrap&&Tt.eventCapture)for(lt.mouseTrap=!0,lt.bustClick=!1,lt.captureMouse=!1,t=function(t){lt.captureMouse&&("click"===t.type?lt.bustClick&&!e(t.target).is(st)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};i>n;n++)r.addEventListener(at[n],t,!0)},muteMouse:function(e){lt.captureMouse=!0,e.data.bustClick&&(lt.bustClick=!0),clearTimeout(lt.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(lt.mouseTrapTimeoutID),lt.mouseTrapTimeoutID=setTimeout(function(){lt.captureMouse=!1,lt.bustClick=!1},400)}},ut={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},Tt.touch&&(Tt.mobileOS.ios||Tt.mobileOS.android)?ut={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:Tt.pointers?ut={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:Tt.msPointers&&(ut={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),!Tt.msPointers||"onmspointerenter"in t||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}}}),ct=function(e){return ut[e]||e},dt=/([^ ]+)/g,gt.applyEventMap=function(e,t){return e=e.replace(dt,ct),t&&(e=e.replace(dt,"$1."+t)),e},ft=e.fn.on,vt(!0,O,e),O.fn=O.prototype=new e,O.fn.constructor=O,O.fn.init=function(t,n){return n&&n instanceof e&&!(n instanceof O)&&(n=O(n)),e.fn.init.call(this,t,n,pt)},O.fn.init.prototype=O.fn,pt=O(document),vt(O.fn,{handler:function(e){return this.data("handler",e),this},autoApplyNS:function(e){return this.data("kendoNS",e||gt.guid()),this},on:function(){var e,t,n,i,r,o,a=this,s=a.data("kendoNS");return 1===arguments.length?ft.call(a,arguments[0]):(e=a,t=Vt.call(arguments),typeof t[t.length-1]===Pt&&t.pop(),n=t[t.length-1],i=gt.applyEventMap(t[0],s),Tt.mouseAndTouchPresent&&i.search(/mouse|click/)>-1&&this[0]!==document.documentElement&&(lt.setupMouseMute(),r=2===t.length?null:t[1],o=i.indexOf("click")>-1&&i.indexOf("touchend")>-1,ft.call(this,{touchstart:lt.muteMouse,touchend:lt.unMuteMouse},r,{bustClick:o})),typeof n===zt&&(e=a.data("handler"),n=e[n],t[t.length-1]=function(t){n.call(e,t)}),t[0]=i,ft.apply(a,t),a)},kendoDestroy:function(e){return e=e||this.data("kendoNS"),e&&this.off("."+e),this}}),gt.jQuery=O,gt.eventMap=ut,gt.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,c[o]+1,1,s[0]-24,s[1],s[2],0)),i=d[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,c[o],a.substr(5),s[0],s[1],s[2],0)),i=d[a.substr(0,3)],r=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-r+(r>i?7:0))):n=new Date(Date.UTC(e,c[o],a,s[0],s[1],s[2],0)),l[e]=n)}function t(t,n,i){var r,o,a,s;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=+e(a,t)),"number"!=typeof n&&(n=+e(a,n)),t-n}),s=n[jQuery.inArray(t,n)-1]||n[n.length-1],isNaN(s)?s:null):(r=i.split(":"),o=0,r.length>1&&(o=60*r[0]+ +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!=Ft&&(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,gt.parseFloat(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==zt&&(t=this.offset(e,t)),typeof n==zt&&(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 u(e){return this.apply(new Date(e),"Etc/UTC")}var c={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},d={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:u}}(),gt.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+=g),i=s(e),r>i&&(i+=g),r>o&&(o+=g),i>=r&&o>=i):!0}function u(e,t,n){var i,r=t.getTime(),o=n.getTime();return r>=o&&(o+=g),i=e.getTime(),i>=r&&o>=i}function c(t,n){var i=t.getHours();return t=new Date(t),d(t,n*g),e(t,i),t}function d(e,t,n){var i,r=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-r,e.setTime(e.getTime()+i*h))}function f(){return o(new Date)}function p(e){return o(e).getTime()==f().getTime()}function m(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 h=6e4,g=864e5;return{adjustDST:e,dayOfWeek:n,setDayOfWeek:t,getDate:o,isInDateRange:u,isInTimeRange:l,isToday:p,nextDay:function(e){return c(e,1)},previousDay:function(e){return c(e,-1)},toUtcTime:a,MS_PER_DAY:g,MS_PER_HOUR:60*h,MS_PER_MINUTE:h,setTime:d,addDays:c,today:f,toInvariantTime:m,firstDayOfMonth:i,lastDayOfMonth:r,getMilliseconds:s}}(),gt.stripWhitespace=function(e){var t,n,i;if(document.createNodeIterator)for(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);else for(n=0;e.childNodes.length>n;n++)i=e.childNodes[n],3!=i.nodeType||/\S/.test(i.nodeValue)||(e.removeChild(i),n--),1==i.nodeType&>.stripWhitespace(i)},mt=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},gt.animationFrame=function(e){mt.call(t,e)},ht=[],gt.queueAnimation=function(e){ht[ht.length]=e,1===ht.length&>.runNextAnimation()},gt.runNextAnimation=function(){gt.animationFrame(function(){ht[0]&&(ht.shift()(),ht[0]&>.runNextAnimation())})},gt.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},gt.elementUnderCursor=function(e){return n!==e.x.client?document.elementFromPoint(e.x.client,e.y.client):n},gt.wheelDeltaY=function(e){var t,i=e.originalEvent,r=i.wheelDeltaY;return i.wheelDelta?(r===n||r)&&(t=i.wheelDelta):i.detail&&i.axis===i.VERTICAL_AXIS&&(t=10*-i.detail),t},gt.throttle=function(e,t){var i,r,o=0;return!t||0>=t?e:(r=function(){function r(){e.apply(a,l),o=+new Date}var a=this,s=+new Date-o,l=arguments;return o?(i&&clearTimeout(i),s>t?r():i=setTimeout(r,t-s),n):r()},r.cancel=function(){clearTimeout(i)},r)},gt.caret=function(t,i,r){var o,a,s,l,u=i!==n;if(r===n&&(r=i),t[0]&&(t=t[0]),!u||!t.disabled){try{t.selectionStart!==n?u?(t.focus(),t.setSelectionRange(i,r)):i=[t.selectionStart,t.selectionEnd]:document.selection&&(e(t).is(":visible")&&t.focus(),o=t.createTextRange(),u?(o.collapse(!0),o.moveStart("character",i),o.moveEnd("character",r-i),o.select()):(a=o.duplicate(),o.moveToBookmark(document.selection.createRange().getBookmark()),a.setEndPoint("EndToStart",o),s=a.text.length,l=s+o.text.length,i=[s,l]))}catch(c){i=[]}return i}},gt.compileMobileDirective=function(e,n){var i=t.angular;return e.attr("data-"+gt.ns+"role",e[0].tagName.toLowerCase().replace("kendo-mobile-","").replace("-","")),i.element(e).injector().invoke(["$compile",function(t){t(e)(n),/^\$(digest|apply)$/.test(n.$$phase)||n.$digest()}]),gt.widgetInstance(e,gt.mobile.ui)},gt.antiForgeryTokens=function(){var t={},i=e("meta[name=csrf-token],meta[name=_csrf]").attr("content"),r=e("meta[name=csrf-param],meta[name=_csrf_header]").attr("content");return e("input[name^='__RequestVerificationToken']").each(function(){t[this.name]=this.value}),r!==n&&i!==n&&(t[r]=i),t},function(){function n(t,n,i,r){var o,a,s=e("