EOS/obj/Release/Package/PackageTmp/Scripts/kendo/2013.3.1324/kendo.dataviz.map.min.js
Nidhi Bhargava f0c1ab20e1 code push
2025-09-04 16:25:07 +05:30

12 lines
50 KiB
JavaScript

/*
* Kendo UI Complete v2013.3.1324 (http://kendoui.com)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI Complete commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial license terms.
*/
!function(){function t(t){return typeof t!==y}function e(t,e){var i=p.pow(10,e||0);return p.round(t*i)/i}function i(t,e,i){return p.max(p.min(t,i),e)}function n(t){return t*g}function o(t){return t/g}function r(t){return p.round(t)+.5}function s(t){return"number"==typeof t&&!isNaN(t)}function a(e,i){return t(e)?e:i}function h(e,i){return t(i)?" "+e+"='"+i+"' ":""}function l(t){var e,i="";for(e=0;e<t.length;e++)i+=h(t[e][0],t[e][1]);return i}function u(t){return"string"!=typeof t&&(t+="px"),t}function c(t){var e,i,n=[];if(t)for(e=m.toHyphens(t).split("-"),i=0;i<e.length;i++)n.push("k-pos-"+e[i]);return n.join(" ")}function d(){this.observer&&this.observer.geometryChange()}var p=Math,m=window.kendo,f=m.deepExtend,v=m.dataviz,g=p.PI/180,y="undefined";f(v,{util:{mixins:{geometryChange:d},alignToPixel:r,defined:t,deg:o,isNumber:s,limitValue:i,round:e,rad:n,renderAttr:h,renderAllAttr:l,renderPos:c,renderSize:u,valueOrDefault:a}})}(window.kendo.jQuery),function(){var t,e,i,n=Math,o=window.kendo,r=o.Class,s=o.deepExtend,a=o.dataviz,h=a.util,l=h.defined,u=h.rad,c=h.round,d=r.extend({init:function(t,e){this.x=t||0,this.y=e||0,this.observer=null},geometryChange:h.mixins.geometryChange,set:function(t,e){"x"===t?this.x!==e&&(this.x=e,this.geometryChange()):"y"===t&&this.y!==e&&(this.y=e,this.geometryChange())},get:function(t){return"x"===t?this.x:"y"===t?this.y:void 0},equals:function(t){return t&&t.x===this.x&&t.y===this.y},clone:function(){return new d(this.x,this.y)},rotate:function(t,e){var i=u(e),o=n.cos(i),r=n.sin(i),s=t.x,a=t.y,h=this.x,l=this.y;return this.x=s+(h-s)*o+(l-a)*r,this.y=a+(l-a)*o-(h-s)*r,this.geometryChange(),this},multiply:function(t){return this.x*=t,this.y*=t,this.geometryChange(),this},transform:function(t){return this.x=t.a*this.x+t.c*this.y+t.e,this.y=t.b*this.x+t.d*this.y+t.f,this.geometryChange(),this},add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this},distanceTo:function(t){var e=this.x-t.x,i=this.y-t.y;return n.sqrt(e*e+i*i)},round:function(t){return this.x=c(this.x,t),this.y=c(this.y,t),this}});d.fn.toString=function(t,e){var i=this.x,n=this.y;return l(t)&&(i=c(i,t),n=c(n,t)),e=e||" ",i+e+n},t=r.extend({init:function(t,e){this.p0=t||new d,this.p1=e||new d,this.observer=null,this.p0.observer=this,this.p1.observer=this},geometryChange:h.mixins.geometryChange,width:function(){return this.p1.x-this.p0.x},height:function(){return this.p1.y-this.p0.y}}),e=r.extend({init:function(t,e){this.center=t||new d,this.radius=e||0,this.observer=null,this.center.observer=this},geometryChange:h.mixins.geometryChange,equals:function(t){return t&&t.center.equals(this.center)&&t.radius===this.radius},clone:function(){return new e(this.center.clone(),this.radius)},set:function(t,e){"radius"===t&&this.radius!==e&&(this.radius=e,this.geometryChange())},get:function(){return this.radius},pointAt:function(t){var e=this.center,i=this.radius,o=u(t);return new d(e.x-i*n.cos(o),e.y-i*n.sin(o))}}),i=r.extend({init:function(t,e,i,n,o,r){this.a=t||0,this.b=e||0,this.c=i||0,this.d=n||0,this.e=o||0,this.f=r||0},times:function(t){return new i(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)}}),s(i,{translate:function(t,e){var n=new i;return n.a=1,n.b=0,n.c=0,n.d=1,n.e=t,n.f=e,n},unit:function(){return new i(1,0,0,1,0,0)},rotate:function(t,e,o){var r=new i;return r.a=n.cos(u(t)),r.b=n.sin(u(t)),r.c=-r.b,r.d=r.a,r.e=e-e*r.a+o*r.b||0,r.f=o-o*r.a-e*r.b||0,r},scale:function(t,e){var n=new i;return n.a=t,n.b=0,n.c=0,n.d=e,n.e=0,n.f=0,n}}),s(a,{geometry:{Circle:e,Matrix:i,Point:d,Rect:t}})}(window.kendo.jQuery),function(){var t,e,i,n=jQuery,o=document,r=n.noop,s=Object.prototype.toString,a=window.kendo,h=a.Class,l=a.deepExtend,u=a.dataviz,c=a.Observable.extend({clear:r,destroy:function(){this.clear(),n(this.element).kendoDestroy()},resize:function(t){var e=this.getSize(),i=this._size;(t||!i||e.width!==i.width||e.height!==i.height)&&(this._size=e,this._resize(e))},getSize:function(){return{width:n(this.element).width(),height:n(this.element).height()}},setSize:function(t){n(this.element).css({width:t.width,height:t.height}),this.resize()},_resize:r,_handler:function(t){var e=this;return function(i){var n=i.target._kendoNode;n&&e.trigger(t,{shape:n.srcElement,originalEvent:i})}}});c.create=function(t,e,n){return i.current.create(t,e,n)},t=h.extend({init:function(t){this.childNodes=[],this.parent=null,t&&(this.srcElement=t,t.observer=this)},load:r,append:function(t){this.childNodes.push(t),t.parent=this},remove:function(t,e){for(var i=t;e>i;i++)this.childNodes[i].clear();this.childNodes.splice(t,e),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(t){"add"===t.action?this.load(t.items):"remove"===t.action&&this.remove(t.index,t.items.length),this.invalidate()}}),e=h.extend({init:function(t,e){var i,n;this.observer=null,this.prefix=e||"";for(i in t)n=t[i],n=this.wrap(n,i),this[i]=n},optionsChange:function(t){this.observer&&this.observer.optionsChange(t)},get:function(t){return a.getter(t,!0)(this)},set:function(t,e){var i,n=a.getter(t,!0)(this);n!==e&&(i=this._set(t,this.wrap(e,t)),this.observer&&!i&&this.observer.optionsChange({field:this.prefix+t,value:e}))},_set:function(t,i){var n,o,r,s=t.indexOf(".")>=0;if(s)for(o=t.split("."),r="";o.length>1;){if(r+=o.shift(),n=a.getter(r,!0)(this),n||(n=new e({},r+"."),n.observer=this,this[r]=n),n instanceof e)return n.set(o.join("."),i),s;r+="."}return a.setter(t)(this,i),s},wrap:function(t,i){var n=s.call(t);return null!==t&&"[object Object]"===n&&(t instanceof e||(t=new e(t,this.prefix+i+".")),t.observer=this),t}}),i=function(){this._views=[]},i.prototype={register:function(t,e,i){var n=this._views,o=n[0],r={name:t,type:e,order:i};!o||i<o.order?n.unshift(r):n.push(r)},create:function(t,e,i){var n,o=this._views,r=o[0];if(i)for(i=i.toLowerCase(),n=0;n<o.length;n++)if(o[n].name===i){r=o[n];break}return r?new r.type(t,e):(a.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)}},i.current=new i,a.support.svg=function(){return o.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}(),a.support.canvas=function(){return!!o.createElement("canvas").getContext}(),l(u,{drawing:{BaseNode:t,OptionsStore:e,Surface:c,SurfaceFactory:i}})}(window.kendo.jQuery),function(){var t=window.kendo,e=t.Class,i=t.deepExtend,n=t.dataviz,o=n.append,r=n.geometry,s=r.Point,a=n.drawing,h=a.OptionsStore,l=n.util,u=l.defined,c=e.extend({init:function(t){var e=this;e.observer=null,e.options=new h(t||{}),e.options.observer=this},optionsChange:function(t){this.observer&&this.observer.optionsChange(t)},visible:function(t){return this.options.set("visible",t),this}}),d=c.extend({init:function(t){this.children=[],c.fn.init.call(this,t)},childrenChange:function(t,e,i){this.observer&&this.observer.childrenChange({action:t,items:e,index:i})},traverse:function(t){var e,i,n=this.children;for(e=0;e<n.length;e++)i=n[e],t(i),i.traverse&&i.traverse(t)},append:function(){o(this.children,arguments),this.childrenChange("add",arguments)},clear:function(){var t=this.children;this.children=[],this.childrenChange("remove",t,0)}}),p=c.extend({geometryChange:l.mixins.geometryChange,fill:function(t,e){return this.options.set("fill.color",t),u(e)&&this.options.set("fill.opacity",e),this},stroke:function(t,e,i){return this.options.set("stroke.color",t),u(e)&&this.options.set("stroke.width",e),u(i)&&this.options.set("stroke.opacity",i),this}}),m=p.extend({init:function(t,e){var i=this;i.content=t,p.fn.init.call(i,e)}}),f=p.extend({init:function(t,e){var i=this;p.fn.init.call(i,e),i.geometry=t||new r.Circle,i.geometry.observer=this}}),v=e.extend({init:function(t,e,i){var n=this;n.anchor=t||new s,n.anchor.observer=this,n.observer=null,e&&(n.controlIn=e,n.controlIn.observer=this),i&&(n.controlOut=i,n.controlOut.observer=this)},geometryChange:l.mixins.geometryChange}),g=p.extend({init:function(t){var e=this;e.segments=[],e.observer=null,p.fn.init.call(e,t)},moveTo:function(t,e){return this.segments=[],this.lineTo(t,e),this},lineTo:function(t,e){var i=u(e)?new s(t,e):t,n=new v(i);return n.observer=this,this.segments.push(n),this.geometryChange(),this},close:function(){return this.options.closed=!0,this.geometryChange(),this}}),y=p.extend({init:function(t){this.paths=[],p.fn.init.call(this,t)},moveTo:function(t,e){var i=new g;return i.observer=this,this.paths.push(i),i.moveTo(t,e),this},lineTo:function(t,e){return this.paths.length>0&&n.last(this.paths).lineTo(t,e),this},close:function(){return this.paths.length>0&&n.last(this.paths).close(),this}});i(a,{Group:d,Shape:p,Circle:f,Path:g,MultiPath:y,Segment:v,Text:m})}(window.kendo.jQuery),function(t){function e(t){var e,i,n,o;try{e=t.getScreenCTM?t.getScreenCTM():null}catch(r){}e&&(i=-e.e%1,n=-e.f%1,o=t.style,(0!==i||0!==n)&&(o.left=i+"px",o.top=n+"px"))}var i=document,n=window.kendo,o=n.deepExtend,r=n.dataviz,s=r.defined,a=r.renderTemplate,h=r.drawing,l=h.BaseNode,u=r.util,c=u.renderAttr,d=u.renderAllAttr,p=u.renderSize,m="butt",f=r.DASH_ARRAYS,v="none",g="solid",y="square",_="http://www.w3.org/2000/svg",w="transparent",x="undefined",b=h.Surface.extend({init:function(t,e){h.Surface.fn.init.call(this),this.options=o({},this.options,e),this.bind(this.events,this.options),this._root=new z,this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._appendTo(t)},options:{width:"100%",height:"100%"},events:["click","mouseenter","mouseleave"],translate:function(t){var e=n.format("{0} {1} {2} {3}",t.x,t.y,this._size.width,this._size.height);this._offset=t,this.element.setAttribute("viewBox",e)},draw:function(t){this._root.load([t])},clear:function(){this._root.clear()},svg:function(){return this._template(this)},setSize:function(t){this.element.setAttribute("width",p(t.width)),this.element.setAttribute("height",p(t.height)),this.resize()},_resize:function(){this._offset&&this.translate(this._offset)},_template:a("<?xml version='1.0' ?><svg xmlns='"+_+"' 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(i){L(i,this._template(this)),this.element=i.firstElementChild,e(this.element),this._root.attachTo(this.element);var n=t(this.element);n.on("click",this._click),n.on("mouseover",this._mouseenter),n.on("mouseout",this._mouseleave),this.resize()}}),k=l.extend({load:function(t){var e,i,n,o,r=this,s=r.element;for(o=0;o<t.length;o++)i=t[o],n=i.children,i instanceof h.Group?e=new T(i):i instanceof h.Path?e=new C(i):i instanceof h.MultiPath?e=new S(i):i instanceof h.Circle&&(e=new E(i)),n&&n.length>0&&e.load(n),r.append(e),s&&e.attachTo(s)},attachTo:function(t){var e,n=i.createElement("div");L(n,"<svg xmlns='"+_+"' version='1.1'>"+this.render()+"</svg>"),e=n.firstChild.firstChild,e&&(t.appendChild(e),this.setElement(e))},setElement:function(t){var e,i,n=this.childNodes;for(this.element&&(this.element._kendoNode=null),this.element=t,t._kendoNode=this,i=0;i<n.length;i++)e=t.childNodes[i],n[i].setElement(e)},template:a("#= d.renderChildren() #"),render:function(){return this.template(this)},renderChildren:function(){var t,e=this.childNodes,i="";for(t=0;t<e.length;t++)i+=e[t].render();return i},clear:function(){var t=this.element;t&&(t.parentNode.removeChild(t),this.element=null),l.fn.clear.call(this)}}),z=k.extend({attachTo:function(t){this.element=t},clear:l.fn.clear}),T=k.extend({template:a("<g>#= d.renderChildren() #</g>")}),C=k.extend({geometryChange:function(){this.attr("d",this.renderData()),this.invalidate()},optionsChange:function(t){switch(t.field){case"fill":this.allAttr(this.mapFill(t.value));break;case"fill.color":this.allAttr(this.mapFill({color:t.value}));break;case"stroke":this.allAttr(this.mapStroke(t.value));break;case"visible":this.attr("visibility",t.value?"visible":"hidden");break;default:var e=this.attributeMap[t.field];e&&this.attr(e,t.value)}this.invalidate()},attributeMap:{"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},attr:function(t,e){this.element&&this.element.setAttribute(t,e)},allAttr:function(t){for(var e=0;e<t.length;e++)this.attr(t[e][0],t[e][1])},renderData:function(){return this.printPath(this.srcElement)},printPath:function(t){var e,i,n,o=t.segments;if(o.length>0){for(n=[],i=0;i<o.length;i++)n.push(o[i].anchor.toString(1));return e="M"+n.join(" "),t.options.closed&&(e+="Z"),e}},mapStroke:function(t){var e=[];return t&&(e.push(["stroke",t.color]),e.push(["stroke-width",t.width]),e.push(["stroke-linecap",this.renderLinecap(t)]),s(t.opacity)&&e.push(["stroke-opacity",t.opacity]),s(t.dashType)&&e.push(["stroke-dasharray",this.renderDashType(t)])),e},renderStroke:function(){return d(this.mapStroke(this.srcElement.options.stroke))},renderDashType:function(t){var e,i,n,o=t.width||1,r=t.dashType;if(r&&r!=g){for(i=f[r.toLowerCase()],n=[],e=0;e<i.length;e++)n.push(i[e]*o);return n.join(" ")}},renderLinecap:function(t){var e=t.dashType,i=t.lineCap||y;return e&&e!=g?m:i},mapFill:function(t){var e=[];return t&&t.color!==w?(e.push(["fill",t.color]),s(t.opacity)&&e.push(["fill-opacity",t.opacity])):e.push(["fill",v]),e},renderFill:function(){return d(this.mapFill(this.srcElement.options.fill))},renderCursor:function(){var t=this.srcElement.options.cursor;return t?"cursor:"+t+";":void 0},renderVisibility:function(){return this.srcElement.options.visible===!1?c("visibility","hidden"):""},template:a("<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>")}),S=C.extend({renderData:function(){var t,e,i=this.srcElement.paths;if(i.length>0){for(e=[],t=0;t<i.length;t++)e.push(this.printPath(i[t]));return e.join(" ")}}}),E=C.extend({geometryChange:function(){var t=this.srcElement.geometry;this.attr("cx",t.center.x),this.attr("cy",t.center.y),this.attr("r",t.radius),this.invalidate()},template:a("<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>")}),L=function(t,e){t.innerHTML=e};!function(){var t="<svg xmlns='"+_+"'></svg>",e=i.createElement("div"),n=typeof DOMParser!=x;e.innerHTML=t,n&&e.firstChild.namespaceURI!=_&&(L=function(t,e){var n=new DOMParser,o=n.parseFromString(e,"text/xml"),r=i.adoptNode(o.documentElement);t.innerHTML="",t.appendChild(r)})}(),n.support.svg&&h.SurfaceFactory.current.register("svg",b,10),o(h,{svg:{CircleNode:E,GroupNode:T,MultiPathNode:S,Node:k,PathNode:C,RootNode:z,Surface:b}})}(window.kendo.jQuery),function(t){var e=document,i=window.kendo,n=i.deepExtend,o=i.dataviz,r=o.defined,s=o.renderTemplate,a=o.drawing,h=a.BaseNode,l=o.util,u=l.renderAllAttr,c="none",d="transparent",p=a.Surface.extend({init:function(t,e){a.Surface.fn.init.call(this),this.options=n({},this.options,e),this.bind(this.events,this.options),this._root=new f,this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._appendTo(t)},events:["click","mouseenter","mouseleave"],draw:function(t){var e=this;e._root.load([t]),i.support.browser.version<8&&setTimeout(function(){e.element.style.display="block"},0)},clear:function(){this._root.clear(),i.support.browser.version<8&&(this.element.style.display="none")},_template:s("<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(i){e.namespaces&&e.namespaces.add("kvml","urn:schemas-microsoft-com:vml","#default#VML"),i.innerHTML=this._template(this),this.element=i.firstChild,this._root.attachTo(this.element);var n=t(this.element);n.on("click",this._click),n.on("mouseover",this._mouseenter),n.on("mouseout",this._mouseleave)}}),m=h.extend({load:function(t){var e,i,n,o,r=this,s=r.element;for(o=0;o<t.length;o++)i=t[o],n=i.children,i instanceof a.Group?e=new v(i):i instanceof a.Path?e=new _(i):i instanceof a.MultiPath?e=new w(i):i instanceof a.Circle&&(e=new x(i)),n&&n.length>0&&e.load(n),r.append(e),s&&e.attachTo(s)},attachTo:function(t){var i,n=e.createElement("div");n.style.display="none",e.body.appendChild(n),n.innerHTML=this.render(),i=n.firstChild,i&&(t.appendChild(i),this.setElement(i)),e.body.removeChild(n)},setElement:function(t){var e,i,n=this.childNodes;for(this.element&&(this.element._kendoNode=null),this.element=t,t._kendoNode=this,i=0;i<n.length;i++)e=t.childNodes[i],n[i].setElement(e)},template:s("#= d.renderChildren() #"),render:function(){return this.template(this)},renderChildren:function(){var t,e=this.childNodes,i="";for(t=0;t<e.length;t++)i+=e[t].render();return i},clear:function(){var t=this.element;t&&(t.parentNode.removeChild(t),this.element=null),h.fn.clear.call(this)},attr:function(t,e){this.element&&(this.element[t]=e)},allAttr:function(t){for(var e=0;e<t.length;e++)this.attr(t[e][0],t[e][1])},css:function(t,e){this.element&&(this.element.style[t]=e)}}),f=m.extend({attachTo:function(t){this.element=t},clear:h.fn.clear}),v=m.extend({template:s("<div>#= d.renderChildren() #</div>")}),g=m.extend({optionsChange:function(t){if("stroke"===t.field)this.allAttr(this.mapStroke(t.value));else{var e=this.attributeMap[t.field];e&&this.attr(e,t.value)}this.invalidate()},attributeMap:{"stroke.color":"color","stroke.width":"weight","stroke.opacity":"opacity","stroke.dashType":"dashstyle"},mapStroke:function(t){var e=[];return t?(e.push(["on","true"]),e.push(["color",t.color]),e.push(["weight",t.width+"px"]),r(t.opacity)&&e.push(["opacity",t.opacity]),r(t.dashType)&&e.push(["dashstyle",t.dashType])):e.push(["on","false"]),e},renderStroke:function(){return u(this.mapStroke(this.srcElement.options.stroke))},template:s("<kvml:stroke #= d.renderStroke() #></kvml:stroke>")}),y=m.extend({optionsChange:function(t){switch(t.field){case"fill":this.allAttr(this.mapFill(t.value));break;case"fill.color":this.allAttr(this.mapFill({color:t.value}));break;default:var e=this.attributeMap[t.field];e&&this.attr(e,t.value)}this.invalidate()},attributeMap:{"fill.opacity":"opacity"},mapFill:function(t){var e=[];return t&&t.color!==d?(e.push(["on","true"]),e.push(["color",t.color]),r(t.opacity)&&e.push(["opacity",t.opacity])):e.push(["on","false"]),e},renderFill:function(){return u(this.mapFill(this.srcElement.options.fill))},template:s("<kvml:fill #= d.renderFill() #></kvml:fill>")}),_=m.extend({init:function(t){this.fill=new y(t),this.stroke=new g(t),m.fn.init.call(this,t),this.append(this.fill),this.append(this.stroke)},geometryChange:function(){this.attr("v",this.renderData()),this.invalidate()},optionsChange:function(t){"visible"===t.field?this.css("display",t.value?"block":"none"):0===t.field.indexOf("fill")?this.fill.optionsChange(t):0===t.field.indexOf("stroke")&&this.stroke.optionsChange(t),this.invalidate()},renderData:function(){return this.printPath(this.srcElement)},printPath:function(t,e){var i,n,o,r=t.segments;if(r.length>0){for(o=[],n=0;n<r.length;n++)o.push(r[n].anchor.toString(0,","));return i="m "+o.shift()+" l "+o.join(" "),t.options.closed&&(i+=" x"),e!==!0&&(i+=" e"),i}},mapFill:function(t){var e=[];return t&&t.color!==d?(e.push(["fill",t.color]),r(t.opacity)&&e.push(["fill-opacity",t.opacity])):e.push(["fill",c]),e},renderCursor:function(){var t=this.srcElement.options.cursor;return t?"cursor:"+t+";":""},renderVisibility:function(){return this.srcElement.options.visible===!1?"display:none;":""},renderCoordsize:function(){var t=this.srcElement.options.align===!1?1e4:1;return"coordsize='"+t+" "+t+"'"},renderSize:function(){var t=this.srcElement.options.align===!1?100:1;return"width:"+t+"px;height:"+t+"px;"},template:s("<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=_.extend({renderData:function(){var t,e,i,n=this.srcElement.paths;if(n.length>0){for(i=[],t=0;t<n.length;t++)e=t<n.length-1,i.push(this.printPath(n[t],e));return i.join(" ")}}}),x=_.extend({geometryChange:function(){var t=this.radius(),e=this.center(),i=2*t;this.css("left",e.x-t+"px"),this.css("top",e.y-t+"px"),this.css("width",i+"px"),this.css("height",i+"px"),this.invalidate()},center:function(){return this.srcElement.geometry.center},radius:function(){return this.srcElement.geometry.radius},template:s("<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>")});i.support.browser.msie&&a.SurfaceFactory.current.register("vml",p,20),n(a,{vml:{CircleNode:x,FillNode:y,GroupNode:v,MultiPathNode:w,Node:m,PathNode:_,RootNode:f,StrokeNode:g,Surface:p}})}(window.kendo.jQuery),function(){var t,e=Math,i=e.max,n=e.min,o=window.kendo,r=o.Class,s=o.dataviz,a=o.deepExtend,h=s.util,l=h.defined,u=h.round,c=h.valueOrDefault,d=r.extend({init:function(t,e){1===arguments.length?(this.lat=t[0],this.lng=t[1]):(this.lat=t,this.lng=e)},FORMAT:"{0:N6},{1:N6}",toArray:function(){return[this.lat,this.lng]},equals:function(t){return t&&t.lat===this.lat&&t.lng===this.lng},clone:function(){return new d(this.lat,this.lng)},round:function(t){return this.lng=u(this.lng,t),this.lat=u(this.lat,t),this},wrap:function(){return this.lng=this.lng%180,this.lat=this.lat%90,this}});d.fn.toString=function(){return o.format(this.FORMAT,this.lng,this.lat)},d.fromLngLat=function(t){return new d(t[1],t[0])},d.fromLatLng=function(t){return new d(t[0],t[1])},d.create=function(t,e){return l(t)?t instanceof d?t.clone():1===arguments.length&&2===t.length?d.fromLatLng(t):new d(t,e):undefined},t=r.extend({init:function(t,e){this.nw=d.create(t),this.se=d.create(e)},contains:function(t){var e=this.nw,i=this.se,n=c(t.lng,t[1]),o=c(t.lat,t[0]);return t&&n+180>=e.lng+180&&n+180<=i.lng+180&&o+90>=i.lat+90&&o+90<=e.lat+90},center:function(){var t=this.nw,e=this.se,i=t.lng+(e.lng-t.lng)/2,n=t.lat+(e.lat-t.lat)/2;return new d(n,i)},containsAny:function(t){var e,i=!1;for(e=0;e<t.length;e++)i=i||this.contains(t[e]);return i},include:function(t){var e=this.nw,o=this.se,r=c(t.lng,t[1]),s=c(t.lat,t[0]);e.lng=n(e.lng,r),e.lat=i(e.lat,s),o.lng=i(o.lng,r),o.lat=n(o.lat,s)},includeAll:function(t){for(var e=0;e<t.length;e++)this.include(t[e])},edges:function(){var t=this.nw,e=this.se;return[t,new d(t.lat,e.lng),e,new d(t.lng,e.lat)]},overlaps:function(t){return this.containsAny(t.edges())||t.containsAny(this.edges())}}),a(s,{map:{Extent:t,Location:d}})}(window.kendo.jQuery),function(t){function e(t){return i.format('<button class="k-button k-navigator-{0}"><span class="k-icon k-i-arrow-{0}"/></button>',t)}var i=window.kendo,n=i.ui.Widget,o=".kendoNavigator",r=e("n")+e("e")+e("s")+e("w"),s=n.extend({init:function(e,i){n.fn.init.call(this,e,i),this._initOptions(i),this.element.addClass("k-widget k-header k-shadow k-navigator").append(r).on("click"+o,".k-button",t.proxy(this,"_click"))},options:{name:"Navigator",panStep:1},events:["pan"],_click:function(e){var i=0,n=0,o=this.options.panStep,r=t(e.currentTarget);r.is(".k-navigator-n")?n=1:r.is(".k-navigator-s")?n=-1:r.is(".k-navigator-e")?i=1:r.is(".k-navigator-w")&&(i=-1),this.trigger("pan",{x:i*o,y:n*o})}});i.dataviz.ui.plugin(s)}(jQuery),function(){var t=window.kendo,e=t.ui.Widget,i=t.template,n=t.dataviz,o=n.util.valueOrDefault,r=e.extend({init:function(t,i){e.fn.init.call(this,t,i),this._initOptions(i),this.items=[],this.element.addClass("k-widget k-attribution")},options:{name:"Attribution",separator:"&nbsp;|&nbsp;",itemTemplate:"#= text #"},filter:function(t,e){this._extent=t,this._zoom=e,this._render()},add:function(t){t&&("string"==typeof t&&(t={text:t}),this.items.push(t),this._render())},remove:function(t){var e,i,n=[];for(e=0;e<this.items.length;e++)i=this.items[e],i.text!==t&&n.push(i);this.items=n,this._render()},clear:function(){this.items=[],this.element.empty()},_render:function(){var t,e,n,o,r=[];for(this.element.empty(),t=i(this.options.itemTemplate),e=0;e<this.items.length;e++)n=this.items[e],o=this._itemText(n),""!==o&&r.push(t({text:o}));this.element.append(r.join(this.options.separator))},_itemText:function(t){var e="",i=this._inZoomLevel(t.minZoom,t.maxZoom),n=this._inArea(t.extent);return i&&n&&(e+=t.text),e},_inZoomLevel:function(t,e){var i=!0;return t=o(t,-Number.MAX_VALUE),e=o(e,Number.MAX_VALUE),i=this._zoom>t&&this._zoom<e},_inArea:function(t){var e=!0;return t&&(e=t.contains(this._extent)),e}});t.dataviz.ui.plugin(r)}(jQuery),function(t){function e(t,e){return i.format('<button class="k-button k-zoom-{0}" title="zoom-{0}">{1}</button>',t,e)}var i=window.kendo,n=i.ui.Widget,o=".kendoZoomControl",r=e("in","+")+e("out","-"),s=n.extend({init:function(e,i){n.fn.init.call(this,e,i),this._initOptions(i),this.element.addClass("k-widget k-zoom-control k-button-wrap k-buttons-horizontal").append(r).on("click"+o,".k-button",t.proxy(this,"_click"))},options:{name:"ZoomControl",zoomStep:1},events:["change"],_click:function(e){var i=this.options.zoomStep,n=t(e.currentTarget),o=1;n.is(".k-zoom-out")&&(o=-1),this.trigger("change",{delta:o*i})}});i.dataviz.ui.plugin(s)}(jQuery),function(){var t=Math,e=t.atan,i=t.exp,n=t.pow,o=t.sin,r=t.log,s=t.tan,a=window.kendo,h=a.Class,l=a.dataviz,u=l.Matrix,c=a.deepExtend,d=l.geometry,p=d.Point,m=l.map,f=m.Location,v=l.util,g=v.rad,y=v.deg,_=v.limitValue,w=t.PI,x=w/2,b=w/4,k=w/180,z={a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149},T=h.extend({init:function(t){this._initOptions(t)},MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12,options:{centralMeridian:0,datum:z},forward:function(t,e){var i=this,n=i.options,o=n.datum,r=o.a,s=n.centralMeridian,a=_(t.lat,-i.MAX_LAT,i.MAX_LAT),h=e?_(t.lng,-i.MAX_LNG,i.MAX_LNG):t.lng,l=g(h-s)*r,u=i._projectLat(a);return new p(l,u)},_projectLat:function(t){var e=this.options.datum,i=e.e,a=e.a,h=g(t),l=s(b+h/2),u=i*o(h),c=n((1-u)/(1+u),i/2);return a*r(l*c)},inverse:function(t,e){var i=this,n=i.options,o=n.datum,r=o.a,s=n.centralMeridian,a=t.x/(k*r)+s,h=_(i._inverseY(t.y),-i.MAX_LAT,i.MAX_LAT);return e&&(a=_(a,-i.MAX_LNG,i.MAX_LNG)),new f(h,a)},_inverseY:function(r){var s,a,h,l,u=this,c=u.options.datum,d=c.a,p=c.e,m=p/2,f=i(-r/d),v=x-2*e(f);for(s=0;s<=u.INVERSE_ITERATIONS&&(a=p*o(v),h=n((1-a)/(1+a),m),l=x-2*e(f*h)-v,v+=l,!(t.abs(l)<=u.INVERSE_CONVERGENCE));s++);return y(v)}}),C=T.extend({MAX_LAT:85.0511287798,_projectLat:function(t){var e=this.options.datum.a,i=g(t),n=s(b+i/2);return e*r(n)},_inverseY:function(t){var n=this.options.datum.a,o=i(-t/n);return y(x-2*e(o))}}),S=h.extend({forward:function(t){return new p(t.lng,t.lat)},inverse:function(t){return new f(t.y,t.x)}}),E=h.extend({init:function(){var t=this,e=t._proj=new C,i=this.c=2*w*e.options.datum.a;this._tm=u.translate(.5,.5).times(u.scale(1/i,-1/i)),this._itm=u.scale(i,-i).times(u.translate(-.5,-.5))},toPoint:function(t,e,i){var n=this._proj.forward(t,i);return n.transform(this._tm).multiply(e||1)},toLocation:function(t,e,i){return t=t.clone().multiply(1/(e||1)).transform(this._itm),this._proj.inverse(t,i)}}),L=h.extend({init:function(){this._proj=new T},toPoint:function(t){return this._proj.forward(t)},toLocation:function(t){return this._proj.inverse(t)}}),A=h.extend({init:function(){this._proj=new S},toPoint:function(t){return this._proj.forward(t)},toLocation:function(t){return this._proj.inverse(t)}});c(l,{map:{crs:{EPSG3395:L,EPSG3857:E,EPSG4326:A},datums:{WGS84:z},projections:{Equirectangular:S,Mercator:T,SphericalMercator:C}}})}(window.kendo.jQuery),function(t){var e=t.proxy,i=window.kendo,n=i.Class,o=i.data.DataSource,r=i.dataviz,s=i.deepExtend,a=r.last,h=r.geometry,l=r.drawing,u=l.Group,c=r.map,d=c.Location,p=n.extend({init:function(n,o){this._initOptions(o),this.map=n,this.element=t("<div class='k-layer'></div>").appendTo(n.scrollElement),this.surface=l.Surface.create(this.element[0],{width:n.scrollElement.width(),height:n.scrollElement.height()}),this.movable=new i.ui.Movable(this.surface.element),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),n.bind("reset",e(this.reset,this)),n.bind("resize",e(this.resize,this)),n.bind("panEnd",e(this._panEnd,this)),this._loader=new m(this.map,this.options.style,this),this._initDataSource(),this._updateAttribution()},options:{autoBind:!0,dataSource:{}},_updateAttribution:function(){var t=this.map.attribution;t&&t.add(this.options.attribution)},reset:function(){this.surface.translate&&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())},polygon:function(t,e){this.surface.draw(this._buildPolygon(t,e))},_initDataSource:function(){var t=this.options.dataSource;this._dataChange=e(this._dataChange,this),this.dataSource=o.create(t).bind("change",this._dataChange),t&&this.options.autoBind&&this.dataSource.fetch()},_dataChange:function(t){this._load(t.items)},_load:function(t){var e,i;for(this._data=t,this._clearMarkers(),this.surface.clear(),e=0;e<t.length;e++)i=this._loader.parse(t[e]),i&&this.surface.draw(i)},shapeCreated:function(t){var e,i=!1;return t instanceof l.Circle&&(i=!this._createMarker(t)),i||(e={layer:this,shape:t},i=this.map.trigger("shapeCreated",e)),i},_createMarker:function(t){var e,i,n=t.dataItem,o=c.Marker.create({location:t.location.toArray()},this.map.options.markerDefaults);return o.dataItem=n,e={marker:o},i=this.map.trigger("markerCreated",e),i||(this.map.markers.add(o),this._markers.push(o)),i},_clearMarkers:function(){for(var t=0;t<this._markers.length;t++)this.map.markers.remove(this._markers[t]);this._markers=[]},_panEnd:function(){var t=this.map,e=t.locationToView(t.extent().nw);this.surface.translate&&(this.surface.translate(e),this.movable.moveTo(e))},_handler:function(t){var e=this;return function(i){if(i.shape){var n={layer:e,shape:i.shape,originalEvent:i.originalEvent};e.map.trigger(t,n)}}}}),m=n.extend({init:function(t,e,i){this.observer=i,this.locator=t,this.style=e},parse:function(t){var e=new u;return"Feature"===t.type?this._loadGeometryTo(e,t.geometry,t):this._loadGeometryTo(e,t,t),e.children.length<2&&(e=e.children[0]),e},_shapeCreated:function(t){var e=!1;return this.observer&&this.observer.shapeCreated&&(e=this.observer.shapeCreated(t)),e},_loadGeometryTo:function(t,e,i){var n,o,r=e.coordinates;switch(e.type){case"LineString":o=this._loadPolygon(t,[r],i),this._setLineFill(o);break;case"MultiLineString":for(n=0;n<r.length;n++)o=this._loadPolygon(t,[r[n]],i),this._setLineFill(o);break;case"Polygon":this._loadPolygon(t,r,i);break;case"MultiPolygon":for(n=0;n<r.length;n++)this._loadPolygon(t,r[n],i);break;case"Point":this._loadPoint(t,r,i);break;case"MultiPoint":for(n=0;n<r.length;n++)this._loadPoint(t,r[n],i)}},_setLineFill:function(t){var e=t.segments;
(e.length<4||!e[0].anchor.equals(a(e).anchor))&&(t.options.fill=null)},_loadShape:function(t,e){return this._shapeCreated(e)||t.append(e),e},_loadPolygon:function(t,e,i){var n=this._buildPolygon(e);return n.dataItem=i,this._loadShape(t,n)},_buildPolygon:function(t){var e,i,n,o=t.length>1?l.MultiPath:l.Path,r=new o(this.style);for(e=0;e<t.length;e++)for(i=0;i<t[e].length;i++)n=this.locator.locationToView(d.fromLngLat(t[e][i])),0===i?r.moveTo(n.x,n.y):r.lineTo(n.x,n.y);return r},_loadPoint:function(t,e,i){var n=d.fromLngLat(e),o=this.locator.locationToView(n),r=new h.Circle(o,10),s=new l.Circle(r,this.style);return s.dataItem=i,s.location=n,this._loadShape(t,s)}});s(i.data,{schemas:{geojson:{type:"json",data:function(t){return"FeatureCollection"===t.type?t.features:"GeometryCollection"===t.type?t.geometries:t}}},transports:{geojson:{read:{dataType:"json"}}}}),s(r,{map:{layers:{shape:p,ShapeLayer:p},GeoJSONLoader:m}})}(window.kendo.jQuery),function(t){function e(t){return new d(l(t.x),l(t.y))}function i(t,e){return"x:"+t.x+"y:"+t.y+"zoom:"+e}var n=Math,o=t.proxy,r=window.kendo,s=r.Class,a=r.template,h=r.dataviz,l=h.round,u=r.deepExtend,c=h.geometry,d=c.Point,p=h.map.Extent,m=h.map.Location,f=h.util,v=f.renderSize,g=f.limitValue,y=600,_=400,w=s.extend({init:function(e,i){var n=this,s=n._viewType();i=u({},i,{width:e.element.width()||y,height:e.element.height()||_}),n._initOptions(i),n.map=e,n.element=t("<div class='k-layer'></div>").css({zIndex:n.options.zIndex,opacity:n.options.opacity}).appendTo(e.scrollElement),"string"==typeof n.options.subdomains&&(n.options.subdomains=n.options.subdomains.split("")),n._view=new s(n.element,n.options),e.bind("reset",o(n.reset,n)),e.bind("resize",o(this.resize,n)),r.support.mobileOS?e.bind("panEnd",o(n._render,n)):e.bind("pan",o(n._pan,n)),this._updateAttribution()},_updateAttribution:function(){var t=this.map.attribution;t&&t.add(this.options.attribution)},_viewType:function(){return b},_updateView:function(){var t=this._view,e=this.map,i=e.extent(),n={nw:e.locationToLayer(i.nw).round(),se:e.locationToLayer(i.se).round()};t.center(e.locationToLayer(e.center())),t.extent(n),t.zoom(e.zoom())},destroy:function(){this._view.destroy(),this._view=null},reset:function(){this._updateView(),this._view.clear(),this._view.reset()},resize:function(){this._render()},_pan:function(){var t=this,e=new Date,i=t._pan.timestamp;(!i||e-i>100)&&(this._render(),t._pan.timestamp=e)},_render:function(){this._updateView(),this._view.render()}}),x=w.extend({init:function(e,i){this._initOptions(i);var n=a(this.options.settingsUrl),r=n({key:this.options.key,mapType:this.options.mapType});this.map=e,t.ajax({url:r,type:"get",dataType:"jsonp",jsonpCallback:"bingTileParams",success:o(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(t){if(t&&t.resourceSets.length){var e=this.resource=t.resourceSets[0].resources[0];w.fn.init.call(this,this.map,{urlTemplate:e.imageUrl.replace("{subdomain}","#= subdomain #").replace("{quadkey}","#= quadkey #").replace("{culture}","#= culture #"),subdomains:e.imageUrlSubdomains,maxZoom:e.zoomMax,minZoom:e.zoomMin}),this._addAttribution(),this.reset()}},_viewType:function(){return k},_addAttribution:function(){var t,e,i,n,o,r=this.map.attribution;if(r&&(t=this.resource.imageryProviders))for(e=0;e<t.length;e++)for(i=t[e],n=0;n<i.coverageAreas.length;n++)o=i.coverageAreas[n],r.add({text:i.attribution,minZoom:o.zoomMin,maxZoom:o.zoomMax,extent:new p(new m(o.bbox[2],o.bbox[1]),new m(o.bbox[0],o.bbox[3]))})}}),b=s.extend({init:function(t,e){this.element=t,this._initOptions(e),this.pool=new T},options:{tileSize:256,subdomains:["a","b","c"],urlTemplate:""},center:function(t){this._center=t},extent:function(t){this._extent=t},zoom:function(t){this._zoom=t},pointToTileIndex:function(t){return new d(n.floor(t.x/this.options.tileSize),n.floor(t.y/this.options.tileSize))},clear:function(){this.pool.empty()},tileCount:function(){var t=this.size(),e=this.pointToTileIndex(this._extent.nw),i=this.indexToPoint(e).subtract(this._extent.nw);return{x:n.ceil((n.abs(i.x)+t.width)/this.options.tileSize),y:n.ceil((n.abs(i.y)+t.height)/this.options.tileSize)}},size:function(){var t=this._extent.nw,e=this._extent.se,i=e.clone().subtract(t);return{width:i.x,height:i.y}},indexToPoint:function(t){var e=t.x,i=t.y;return new d(e*this.options.tileSize,i*this.options.tileSize)},subdomainText:function(){var t=this.options.subdomains;return t[this.subdomainIndex++%t.length]},destroy:function(){this.element.empty(),this.pool.empty()},reset:function(){this.subdomainIndex=0,this.basePoint=this._extent.nw,this.render()},render:function(){var t,e,i,n=this.tileCount(),o=this.pointToTileIndex(this._extent.nw);for(e=0;e<n.x;e++)for(i=0;i<n.y;i++)t=this.createTile({x:o.x+e,y:o.y+i}),t.options.visible||(this.element.append(t.element),t.options.visible=!0)},createTile:function(t){var e=this.tileOptions(t);return this.pool.get(this._center,e)},tileOptions:function(t){var i=this.wrapIndex(t),n=this.indexToPoint(t),o=n.clone().subtract(this.basePoint);return{index:i,currentIndex:t,point:n,offset:e(o),zoom:this._zoom,subdomain:this.subdomainText(),urlTemplate:this.options.urlTemplate,errorUrlTemplate:this.options.errorUrlTemplate}},wrapIndex:function(t){var e=n.pow(2,this._zoom);return{x:this.wrapValue(t.x,e),y:g(t.y,0,e-1)}},wrapValue:function(t,e){var i=n.abs(t)%e;return t=t>=0?i:e-(0===i?e:i)}}),k=b.extend({options:{culture:"en-Us"},tileOptions:function(t){var e=b.fn.tileOptions.call(this,t);return e.culture=this.options.culture,e.quadkey=this.tileQuadKey(this.wrapIndex(t)),e},tileQuadKey:function(t){var e,i,n,o="";for(n=this._zoom;n>0;n--)e=0,i=1<<n-1,0!==(t.x&i)&&e++,0!==(t.y&i)&&(e+=2),o+=e;return o}}),z=s.extend({init:function(t){this._initOptions(t),this.createElement(),this.load(),this.options.visible=!1},options:{urlTemplate:"",errorUrlTemplate:"",visible:!1},createElement:function(){this.element=t("<img style='position: absolute; display: block; visibility: visible;' unselectable='on'></img>").error(o(function(t){t.target.setAttribute("src",this.errorUrl())},this))},load:function(t){this.options=u({},this.options,t);var e=this.element[0];e.style.visibility="visible",e.style.display="block",e.style.top=v(this.options.offset.y),e.style.left=v(this.options.offset.x),e.setAttribute("src",this.url()),this.options.id=i(this.options.currentIndex,this.options.zoom),this.options.visible=!0},url:function(){var t=a(this.options.urlTemplate);return t(this.urlOptions())},errorUrl:function(){var t=a(this.options.errorUrlTemplate);return t(this.urlOptions())},urlOptions:function(){var t=this.options;return{zoom:t.zoom,subdomain:t.subdomain,z:t.zoom,x:t.index.x,y:t.index.y,s:t.subdomain,quadkey:t.quadkey,q:t.quadkey,culture:t.culture,c:t.culture}},destroy:function(){this.element&&(this.element.remove(),this.element=null)}}),T=s.extend({init:function(){this._items=[]},options:{maxSize:100},get:function(t,e){var i,n=this;return i=n._items.length>=n.options.maxSize?n._update(t,e):n._create(e)},empty:function(){var t,e=this._items;for(t=0;t<e.length;t++)e[t].destroy();this._items=[]},_create:function(t){var e,n,o,r,s=this,a=s._items,h=i(t.currentIndex,t.zoom);for(n=0;n<a.length;n++)o=a[n],o.options.id===h&&(e=o,r=e);return e?e.load(t):(r=new z(t),this._items.push(r)),r},_update:function(t,e){var n,o,r,s,a=this,h=a._items,l=-Number.MAX_VALUE,u=i(e.currentIndex,e.zoom);for(r=0;r<h.length;r++){if(s=h[r],n=s.options.point.clone().distanceTo(t),s.options.id===u)return h[r];n>l&&(o=r,l=n)}return h[o].load(e),h[o]}});u(h,{map:{layers:{tile:w,TileLayer:w,bing:x,BingLayer:x,ImageTile:z,TilePool:T,TileView:b,BingView:k}}})}(window.kendo.jQuery),function(t){var e=document,i=Math,n=t.inArray,o=t.proxy,r=window.kendo,s=r.Class,a=r.ui.Tooltip,h=r.dataviz,l=r.deepExtend,u=h.map,c=u.Location,d=s.extend({init:function(e,i){this._initOptions(i),this.items=[],this.map=e,this.element=t("<div class='k-layer'></div>").css("zIndex",this.options.zIndex).appendTo(e.scrollElement),this.reset=o(this.reset,this),e.bind("reset",this.reset)},destroy:function(){this.map.unbind("reset",this.reset),this.clear()},options:{zIndex:1e3},add:function(e){if(!t.isArray(e))return this._addOne(e);for(var i=0;i<e.length;i++)this._addOne(e[i])},_addOne:function(t){var e=p.create(t,this.options.markerDefaults);return e.addTo(this),e},remove:function(t){t.destroy();var e=n(t,this.items);e>-1&&this.items.splice(e,1)},clear:function(){for(var t=0;t<this.items.length;t++)this.items[t].destroy();this.items=[]},update:function(t){var e=t.options.location;e&&(e=c.create(e),t.showAt(this.map.locationToView(e)))},reset:function(){var t,e=this.items;for(t=0;t<e.length;t++)this.update(e[t])}}),p=s.extend({init:function(t){this.options=t||{}},addTo:function(t){this.layer=t.markers||t,this.layer.items.push(this),this.layer.update(this)},setLocation:function(t){this.options.location=c.create(t),this.layer&&this.layer.update(this)},showAt:function(t){this.render(),this.element.css({left:i.round(t.x),top:i.round(t.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)},destroy:function(){this.layer=null,this.hide()},render:function(){var i,n;this.element||(i=this.options,n=this.layer,this.element=t(e.createElement("span")).addClass("k-marker k-marker-"+r.toHyphens(i.shape||"pin")).attr("alt",i.title).css("zIndex",i.zIndex),n&&n.element.append(this.element),this.renderTooltip())},renderTooltip:function(){var t,e,i=this,n=i.options.tooltip;n&&a&&(t=n.template,t&&(e=r.template(t),n.content=function(t){return t.location=c.create(i.options.location),t.marker=i,e(t)}),(n.content||n.contentUrl)&&(this.tooltip=new a(this.element,n),this.tooltip.marker=this))}});p.create=function(t,e){return t instanceof p?t:new p(l({},e,t))},l(h,{map:{layers:{marker:d,MarkerLayer:d},Marker:p}})}(window.kendo.jQuery),function(t){var e=document,i=Math,n=i.min,o=i.pow,r=t.proxy,s=window.kendo,a=s.ui.Widget,h=s.deepExtend,l=s.dataviz,u=l.ui.Attribution,c=l.ui.Navigator,d=l.ui.ZoomControl,p=l.defined,m=l.geometry,f=l.map,v=f.Extent,g=f.Location,y=f.crs.EPSG3857,_=l.util,w=_.limitValue,x=_.renderPos,b=_.valueOrDefault,k="k-",z=.9,T=.93,C="DOMMouseScroll mousewheel",S=5,E=a.extend({init:function(t,i){s.destroy(t),a.fn.init.call(this,t),this._initOptions(i),this.bind(this.events,i),this.crs=new y,this.element.addClass(k+this.options.name.toLowerCase()).css("position","relative").empty().append(e.createElement("div")),this._viewOrigin=this._getOrigin(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset(),this._mousewheel=r(this._mousewheel,this),this.element.bind("click",r(this._click,this)),this.element.bind(C,this._mousewheel)},options:{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}}},center:[0,0],zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{autoHide:!1,position:"top",showOn:"click"}},wraparound:!0},events:["click","reset","pan","panEnd","markerCreated","shapeClick","shapeCreated","shapeMouseEnter","shapeMouseLeave","zoomStart","zoomEnd"],destroy:function(){this.scroller.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),a.fn.destroy.call(this)},zoom:function(t){var e=this.options;return p(t)?(t=w(t,e.minZoom,e.maxZoom),e.zoom!==t&&(e.zoom=t,this._reset()),this):e.zoom},center:function(t){return t?(this.options.center=g.create(t).toArray(),this._reset(),this):g.create(this.options.center)},extent:function(){var t,e=this._getOrigin(),i=this.locationToLayer(e),n=this.viewSize();return i.x+=n.width,i.y+=n.height,t=this.layerToLocation(i),new v(e,t)},setOptions:function(t){a.fn.setOptions.call(this,t),this._reset()},locationToLayer:function(t,e){var i=!this.options.wraparound;return t=g.create(t),this.crs.toPoint(t,this._layerSize(e),i)},layerToLocation:function(t,e){var i=!this.options.wraparound;return this.crs.toLocation(t,this._layerSize(e),i)},locationToView:function(t){var e,i;return t=g.create(t),e=this.locationToLayer(this._viewOrigin),i=this.locationToLayer(t),i.subtract(e)},viewToLocation:function(t,e){var i=this.locationToLayer(this._getOrigin(),e);return t=t.clone().add(i),this.layerToLocation(t,e)},eventOffset:function(t){var e=this.element.offset(),i=t.originalEvent||t,n=b(i.pageX,i.clientX)-e.left,o=b(i.pageY,i.clientY)-e.top;return new m.Point(n,o)},eventToView:function(t){var e=this.eventOffset(t);return this.locationToView(this.viewToLocation(e))},eventToLayer:function(t){return this.locationToLayer(this.eventToLocation(t))},eventToLocation:function(t){var e=this.eventOffset(t);return this.viewToLocation(e)},viewSize:function(){var t=this.element,e=this._layerSize(),i=t.width();return this.options.wraparound||(i=n(e,i)),{width:i,height:n(e,t.height())}},_setOrigin:function(t,e){var i,n=this.viewSize();return t=this._origin=g.create(t),i=this.locationToLayer(t,e),i.x+=n.width/2,i.y+=n.height/2,this.options.center=this.layerToLocation(i,e).toArray(),this},_getOrigin:function(t){var e,i=this.viewSize();return(t||!this._origin)&&(e=this.locationToLayer(this.center()),e.x-=i.width/2,e.y-=i.height/2,this._origin=this.layerToLocation(e)),this._origin},_zoomAround:function(t,e){this._setOrigin(this.layerToLocation(t,e),e),this.zoom(e)},_initControls:function(){var t=this.options.controls;u&&t.attribution&&this._createAttribution(t.attribution),s.support.mobileOS||(c&&t.navigator&&this._createNavigator(t.navigator),d&&t.zoom&&this._createZoomControl(t.zoom))},_createControlElement:function(e,i){var n=e.position||i,o="."+x(n).replace(" ","."),r=t(".k-map-controls"+o,this.element);return 0===r.length&&(r=t("<div>").addClass("k-map-controls "+x(n)).appendTo(this.element)),t("<div>").appendTo(r)},_createAttribution:function(t){var e=this._createControlElement(t,"bottomRight");this.attribution=new u(e,t)},_createNavigator:function(t){var e=this._createControlElement(t,"topLeft"),i=this.navigator=new c(e,t);this._navigatorPan=r(this._navigatorPan,this),i.bind("pan",this._navigatorPan),this._navigatorCenter=r(this._navigatorCenter,this),i.bind("center",this._navigatorCenter)},_navigatorPan:function(t){var e=this,i=e.scroller,n=i.scrollLeft+t.x,o=i.scrollTop-t.y,r=this._virtualSize,s=this.element.height(),a=this.element.width();n=w(n,r.x.min,r.x.max-a),o=w(o,r.y.min,r.y.max-s),e.scroller.one("scroll",function(t){e._scrollEnd(t)}),e.scroller.scrollTo(-n,-o)},_navigatorCenter:function(){this.center(this.options.center)},_createZoomControl:function(t){var e=this._createControlElement(t,"topLeft"),i=this.zoomControl=new d(e,t);this._zoomControlChange=r(this._zoomControlChange,this),i.bind("change",this._zoomControlChange)},_zoomControlChange:function(t){this.trigger("zoomStart",{originalEvent:t})||(this.zoom(this.zoom()+t.delta),this.trigger("zoomEnd",{originalEvent:t}))},_initScroller:function(){var t=s.support.mobileOS?T:z,e=this.options.zoomable!==!1,i=this.scroller=new s.mobile.ui.Scroller(this.element.children(0),{friction:t,velocityMultiplier:S,zoom:e});i.bind("scroll",r(this._scroll,this)),i.bind("scrollEnd",r(this._scrollEnd,this)),i.userEvents.bind("gesturestart",r(this._scaleStart,this)),i.userEvents.bind("gestureend",r(this._scale,this)),this.scrollElement=i.scrollElement},_initLayers:function(){var t,e,i,n,o,r=this.options.layers,s=this.layers=[];for(t=0;t<r.length;t++)e=r[t],i=e.type||"shape",n=this.options.layerDefaults[i],o=l.map.layers[i],s.push(new o(this,h({},n,e)))},_initMarkers:function(){this.markers=new f.layers.MarkerLayer(this,{markerDefaults:this.options.markerDefaults}),this.markers.add(this.options.markers)},_scroll:function(t){var e=this.locationToLayer(this._viewOrigin).round(),i=t.sender.movable,n=new m.Point(i.x,i.y).multiply(-1).multiply(1/i.scale);e.x+=n.x,e.y+=n.y,this._setOrigin(this.layerToLocation(e)),this.trigger("pan",{originalEvent:t,origin:this._getOrigin(),center:this.center()})},_scrollEnd:function(t){this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()})},_scaleStart:function(t){if(this.trigger("zoomStart",{originalEvent:t})){var e=t.touches[1];e&&e.cancel()}},_scale:function(t){var e=this.scroller.movable.scale,i=this._scaleToZoom(e),n=new m.Point(t.center.x,t.center.y),o=this.viewToLocation(n,i),r=this.locationToLayer(o,i),s=r.subtract(n);this._zoomAround(s,i),this.trigger("zoomEnd",{originalEvent:t})},_scaleToZoom:function(t){var e=this._layerSize()*t,n=e/this.options.minSize,o=i.log(n)/i.log(2);return i.round(o)},_reset:function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.trigger("reset")},_resetScroller:function(){var t,e,i,n,r=this.scroller,s=r.dimensions.x,a=r.dimensions.y,h=this._layerSize(),l=20*h,u=this.extent().nw,c=this.locationToLayer(u).round();r.reset(),r.userEvents.cancel(),t=this.options.maxZoom-this.zoom(),r.dimensions.maxScale=o(2,t),r.movable.round=!0,e={min:-c.x,max:h-c.x},i={min:-c.y,max:h-c.y},this.options.wraparound&&(e.min=-l,e.max=l),this.options.pannable===!1&&(n=this.viewSize(),e.min=i.min=0,e.max=n.width,i.max=n.height),s.makeVirtual(),a.makeVirtual(),s.virtualSize(e.min,e.max),a.virtualSize(i.min,i.max),this._virtualSize={x:e,y:i}},_renderLayers:function(){var t,e,i,n,o,r=this.options.layers,s=this.layers=[],a=this.scrollWrap;for(a.empty(),t=0;t<r.length;t++)e=r[t],i=e.type||"shape",n=this.options.layerDefaults[i],o=l.map.layers[i],s.push(new o(this,h({},n,e)))},_layerSize:function(t){return t=b(t,this.options.zoom),this.options.minSize*o(2,t)},_click:function(t){var e=this.eventOffset(t);this.trigger("click",{originalEvent:t,location:this.viewToLocation(e)})},_mousewheel:function(t){var e,i,n,o,r,s,a,h;t.preventDefault(),e=l.mwDelta(t)>0?-1:1,i=this.options,n=this.zoom(),o=w(n+e,i.minZoom,i.maxZoom),i.zoomable!==!1&&o!==n&&(this.trigger("zoomStart",{originalEvent:t})||(r=this.eventOffset(t),s=this.viewToLocation(r),a=this.locationToLayer(s,o),h=a.subtract(r),this._zoomAround(h,o),this.trigger("zoomEnd",{originalEvent:t})))}});l.ui.plugin(E)}(window.kendo.jQuery);/*
//@ sourceMappingURL=kendo.dataviz.map.min.js.map
*/