var earthjs=function(){"use strict";var t=function(){function t(t){var n=t[0]/2*h,e=u(n),o=s(n),a=t[1]/2*h,r=u(a),i=s(a),l=t[2]/2*h,c=u(l),d=s(l);return[o*i*d+e*r*c,e*i*d-o*r*c,o*r*d+e*i*c,o*i*c-e*r*d]}function n(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function e(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}var o=Math.acos,a=Math.asin,r=Math.atan2,s=Math.cos,i=Math.max,l=Math.min,c=Math.PI,u=Math.sin,d=Math.sqrt,h=c/180,p=180/c;return t.cartesian=function(t){var n=t[0]*h,e=t[1]*h,o=s(e);return[o*s(n),o*u(n),u(e)]},t.rotation=function(t){return[r(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*p,a(i(-1,l(1,2*(t[0]*t[2]-t[3]*t[1]))))*p,r(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*p]},t.delta=function(t,a){var r=n(t,a),c=d(e(r,r));if(!c)return[1,0,0,0];var h=o(i(-1,l(1,e(t,a))))/2,p=u(h);return[s(h),r[2]/c*p,-r[1]/c*p,r[0]/c*p]},t.multiply=function(t,n){return[t[0]*n[0]-t[1]*n[1]-t[2]*n[2]-t[3]*n[3],t[0]*n[1]+t[1]*n[0]+t[2]*n[3]-t[3]*n[2],t[0]*n[2]-t[1]*n[3]+t[2]*n[0]+t[3]*n[1],t[0]*n[3]+t[1]*n[2]-t[2]*n[1]+t[3]*n[0]]},t}(),n=function n(){function e(t,n){t[n]&&(a[n][t.name]=t[n],a[n+"Keys"]=Object.keys(a[n]))}var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};clearInterval(n.ticker),o=Object.assign({transparent:!1,select:"#earth",rotate:130},o);var a={onCreate:{},onCreateKeys:[],onRefresh:{},onRefreshKeys:[],onResize:{},onResizeKeys:[],onInterval:{},onIntervalKeys:[],ready:null,promeses:[],loadingData:null,recreateSvgOrCanvas:function(){return a.onCreateKeys.forEach(function(t){a.onCreate[t].call(c)}),c}};window.__=a;var r=d3.selectAll(o.select),s=r.attr("width"),i=r.attr("height");s&&i||(s=o.width||700,i=o.height||500,r.attr("width",s).attr("height",i));var l=[s/2,i/2];Object.defineProperty(o,"width",{get:function(){return s},set:function(t){s=t,l[0]=t/2}}),Object.defineProperty(o,"height",{get:function(){return i},set:function(t){i=t,l[1]=t/2}});var c={_:{svg:r,drag:!1,versor:t,center:l,options:o},$slc:{},ready:function(t){if(t&&a.promeses.length>0){var n=d3.queue();a.loadingData=!0,a.promeses.forEach(function(t){t.urls.forEach(function(t){var e=t.split(".").pop();"geojson"===e&&(e="json"),n.defer(d3[e],t)})}),n.await(function(){var n=[].slice.call(arguments),e=n.shift();a.promeses.forEach(function(t){var o=t.urls.length,a=n.slice(0,o),r=c[t.name].ready;a.unshift(e),r?r.apply(c,a):t.onReady.apply(c,a),n=n.slice(o)}),a.loadingData=!1,t.call(c)})}else if(0===arguments.length)return a.loadingData},register:function(t){var n={};return c[t.name]=n,Object.keys(t).forEach(function(e){-1===["urls","onReady","onInit","onCreate","onRefresh","onResize","onInterval"].indexOf(e)&&"function"==typeof t[e]&&(n[e]=function(){return t[e].apply(c,arguments)})}),t.onInit&&t.onInit.call(c),e(t,"onCreate"),e(t,"onResize"),e(t,"onRefresh"),e(t,"onInterval"),t.urls&&t.onReady&&a.promeses.push({name:t.name,urls:t.urls,onReady:t.onReady}),c}},u=[],d=null,h=c._;return c.create=function(t){return u=t||[],a.recreateSvgOrCanvas(),u.forEach(function(t){t.create(null)}),null===d&&u!==[]&&h.ticker(),c},c.$slc.defs=h.svg.append("defs"),h.ticker=function(t){var e=h.interval;return t=t||50,d=setInterval(function(){e.call(c),u.forEach(function(t){t._.interval.call(t)})},t),n.ticker=d,c},h.scale=function(t){return h.proj.scale(t),h.resize(),h.refresh(),c},h.rotate=function(t){return h.proj.rotate(t),h.refresh(),c},h.interval=function(){return a.onIntervalKeys.forEach(function(t){a.onInterval[t].call(c)}),c},h.refresh=function(t){return(t?a.onRefreshKeys.filter(function(n){return t.test(n)}):a.onRefreshKeys).forEach(function(t){a.onRefresh[t].call(c)}),c},h.resize=function(){return a.onResizeKeys.forEach(function(t){a.onResize[t].call(c)}),c},h.orthoGraphic=function(){return d3.geoOrthographic().rotate([h.options.rotate,0]).scale(h.options.width/3.5).translate(h.center).precision(.1).clipAngle(90)},h.proj=h.orthoGraphic(),h.path=d3.geoPath().projection(h.proj),c},e=function(){function t(){function t(t){var n=t[0]-l[0];t[0]=n+this._.proj.rotate()[0],t[0]>=180&&(t[0]-=360),this._.rotate(t)}function e(){i=s.cartesian(r.proj.invert(d3.mouse(this))),l=r.proj.rotate(),c=s(l),r.drag=null,r.refresh(),n.mouse=null}function o(){var t=this,e=d3.mouse(this),o=s.cartesian(r.proj.rotate(l).invert(e)),a=s.multiply(c,s.delta(i,o)),u=s.rotation(a);r.rotate(u),r.drag=!0,n.mouse=e,n.onDragKeys.forEach(function(o){n.onDrag[o].call(t,e)})}function a(){var e=r.proj.rotate();n.sync.forEach(function(n){t.call(n,e)}),r.drag=!1,r.refresh(),n.mouse=null}var r=this._,s=r.versor;n.svg.call(d3.drag().on("start",e).on("end",a).on("drag",o));var i=void 0,l=void 0,c=void 0}var n={svg:null,q:null,sync:[],mouse:null,onDrag:{},onDragKeys:[]};return{name:"versorDragPlugin",onInit:function(){n.svg=this._.svg,t.call(this)},selectAll:function(e){return e&&(n.q=e,n.svg.call(d3.drag().on("start",null).on("end",null).on("drag",null)),n.svg=d3.selectAll(e),t.call(this)),n.svg},sync:function(t){n.sync=t},mouse:function(){return n.mouse},onDrag:function(t){Object.assign(n.onDrag,t),n.onDragKeys=Object.keys(n.onDrag)}}},o=function(){function t(){var t=this._;n.svg.on("wheel",function(){var e=d3.event.deltaY+t.proj.scale();e=e<20?20:e>999?1e3:e,t.scale(e),n.sync.forEach(function(t){t._.scale.call(t,e)})})}var n={svg:null,q:null,sync:[]};return{name:"wheelZoomPlugin",onInit:function(){n.svg=this._.svg,t.call(this)},selectAll:function(e){return e&&(n.q=e,n.svg.on("wheel",null),n.svg=d3.selectAll(e),t.call(this)),n.svg},sync:function(t){n.sync=t}}},a=function(){function t(){setTimeout(function(){n.renderer.render(n.scene,n.camera)},1)}var n={renderer:null,scene:null,camera:null,scale:null};return{name:"threejsPlugin",onInit:function(){var e=this._.options.width,o=this._.options.height;n.scene=new THREE.Scene,n.yAxis=new THREE.Vector3(0,1,0),n.camera=new THREE.OrthographicCamera(-e/2,e/2,o/2,-o/2,.1,1e4),n.camera.position.z=500,this._.camera=n.camera,n.renderer=new THREE.WebGLRenderer({antialias:!0}),n.renderer.domElement.id="three-js",n.renderer.setClearColor("white",1),n.renderer.setSize(e,o),document.body.appendChild(n.renderer.domElement),this.renderThree=t},onRefresh:function(){t.call(this)},addObject:function(t){n.scene.add(t)}}},r=function(){function t(){var t=this._;if(t.options.showCanvas){if(!e.canvas){var o=t.svg.append("g").attr("class","canvas").append("foreignObject").attr("x",0).attr("y",0).attr("width",t.options.width).attr("height",t.options.height),a=o.append("xhtml:body").style("margin","0px").style("padding","0px").style("background-color","none").style("width",t.options.width+"px").style("height",t.options.height+"px");e.canvas=a.append("canvas")}e.canvas.attr("x",0).attr("y",0).attr("width",t.options.width).attr("height",t.options.height)}e.canvas&&n.call(this)}function n(){var t=this._.options,n=t.width,o=t.height;e.canvas.each(function(){this.getContext("2d").clearRect(0,0,n,o)})}var e={canvas:null,path:null,q:null};return{name:"canvasPlugin",onInit:function(){this._.options.showCanvas=!0,e.path=d3.geoPath().projection(this._.proj)},onCreate:function(){t.call(this)},onRefresh:function(){n.call(this)},selectAll:function(t){return t&&(e.q=t,e.canvas=d3.selectAll(t)),e.canvas},render:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=this._;if(a.options.showCanvas){var r=!1,s=a.proj,i=s.rotate(),l=this;e.canvas.each(function(a,c){if(!n||n.indexOf(c)>-1){var u=o[c]||{};u.rotate?(r=!0,s.rotate([i[0]+u.rotate,i[1],i[2]])):r&&(r=!1,s.rotate(i));var d=this.getContext("2d");t.call(l,d,e.path.context(d))}}),r&&(r=!1,s.rotate(i))}}}},s=function(){function t(){if(this.worldCanvas){var t=this.worldCanvas.data(),e=t.world;e&&(n.countries=topojson.feature(e,e.objects.countries))}var o=this._,a=function(){var t=this,e=d3.event;e.sourceEvent&&(e=e.sourceEvent);var a=[e.clientX,e.clientY],r=o.proj.invert(d3.mouse(this));n.pos=r,n.dot=null,n.mouse=a,n.country=null,o.options.showDots&&n.addSelectCircleEventKeys.forEach(function(e){n.dot=n.addSelectCircleEvent[e].call(t,n.mouse,r)}),o.options.showLand&&n.countries&&!n.dot&&(n.country=n.countries.features.find(function(t){return t.geometry.coordinates.find(function(t){return d3.polygonContains(t,r)||t.find(function(t){return d3.polygonContains(t,r)})})}),n.addSelectCountryEventKeys.forEach(function(e){n.addSelectCountryEvent[e].call(t,n.mouse,n.country)}))};o.svg.on("mousemove",a),this.versorDragPlugin&&this.versorDragPlugin.onDrag({hoverCanvas:a})}var n={mouse:null,country:null,countries:null,addSelectCircleEvent:{},addSelectCircleEventKeys:[],addSelectCountryEvent:{},addSelectCountryEventKeys:[]};return{name:"hoverCanvas",onInit:function(){t.call(this)},addSelectCircleEvent:function(t){Object.assign(n.addSelectCircleEvent,t),n.addSelectCircleEventKeys=Object.keys(n.addSelectCircleEvent)},addSelectCountryEvent:function(t){Object.assign(n.addSelectCountryEvent,t),n.addSelectCountryEventKeys=Object.keys(n.addSelectCountryEvent)},world:function(t){n.countries=topojson.feature(t,t.objects.countries)},data:function(){return{pos:n.pos,dot:n.dot,mouse:n.mouse,country:n.country}}}},i=function(){function t(){if(o.svg.selectAll("#ocean,.ocean").remove(),this._.options.showOcean){var t=o.oceanColor,a=this.$slc.defs.append("radialGradient").attr("id","ocean").attr("cx","75%").attr("cy","25%");"number"==typeof t?(t=e[t],a.append("stop").attr("offset","5%").attr("stop-color",t[0])):"string"==typeof t&&(t=[t,t]),a.append("stop").attr("offset","100%").attr("stop-color",t[1]),o.ocean=o.svg.append("g").attr("class","ocean").append("circle").attr("cx",this._.center[0]).attr("cy",this._.center[1]).attr("class","noclicks"),n.call(this)}}function n(){o.ocean&&this._.options.showOcean&&o.ocean.attr("r",this._.proj.scale()+o.scale)}var e={0:["rgba(221, 221, 255, 0.6)","rgba(153, 170, 187,0.8)"],1:["rgba(159, 240, 232, 0.6)","rgba( 5, 242, 219,0.8)"],2:["rgba(152, 234, 242, 0.6)","rgba( 5, 219, 242,0.8)"],3:["rgba(114, 162, 181, 0.6)","rgba( 4, 138, 191,0.8)"],4:["rgba( 96, 123, 148, 0.6)","rgba( 10, 93, 166,0.8)"],5:["rgba( 87, 102, 131, 0.6)","rgba( 8, 52, 140,0.8)"]},o={svg:null,q:null,scale:0,oceanColor:0};return{name:"oceanSvg",onInit:function(){this._.options.showOcean=!0,Object.defineProperty(this._.options,"oceanColor",{get:function(){return o.oceanColor},set:function(t){o.oceanColor=t}}),o.svg=this._.svg},onCreate:function(){t.call(this)},onResize:function(){n.call(this)},selectAll:function(t){return t&&(o.q=t,o.svg=d3.selectAll(t)),o.svg},scale:function(t){if(!t)return o.scale;o.scale=t,n.call(this)},recreate:function(){t.call(this)}}},l=function(){return{name:"configPlugin",set:function(t){if(t){if(Object.assign(this._.options,t),void 0!==t.spin){var n=this.autorotatePlugin;t.spin?n.start():n.stop()}this.create()}return Object.assign({},this._.options)}}},c=function(){function t(){var t=this._;t.options.showGraticule&&((t.options.transparent||t.options.transparentGraticule)&&t.proj.clipAngle(180),this.canvasPlugin.render(function(t,o){t.beginPath(),o(n),t.lineWidth=.3,t.strokeStyle=e.style.line||"rgba(119,119,119,0.4)",t.stroke()},e.drawTo),(t.options.transparent||t.options.transparentGraticule)&&t.proj.clipAngle(90))}var n=d3.geoGraticule()(),e={style:{},drawTo:null};return{name:"graticuleCanvas",onInit:function(){this._.options.transparentGraticule=!1,this._.options.showGraticule=!0},onCreate:function(){t.call(this)},onRefresh:function(){t.call(this)},style:function(t){return t&&(e.style=t),e.style},drawTo:function(t){e.drawTo=t}}},u=function(){function t(){e.svg.selectAll(".graticule").remove(),this._.options.showGraticule&&(o.graticule=e.svg.append("g").attr("class","graticule").append("path").datum(e.graticule).attr("class","noclicks"),n.call(this))}function n(){var t=this._;o.graticule&&t.options.showGraticule&&(t.options.transparent||t.options.transparentGraticule?(t.proj.clipAngle(180),o.graticule.attr("d",this._.path),t.proj.clipAngle(90)):o.graticule.attr("d",this._.path))}var e={svg:null,q:null,graticule:d3.geoGraticule()},o={};return{name:"graticuleSvg",onInit:function(){this._.options.showGraticule=!0,e.svg=this._.svg},onCreate:function(){t.call(this)},onRefresh:function(){n.call(this)},selectAll:function(t){return t&&(e.q=t,e.svg=d3.selectAll(t)),e.svg}}},d=function(){function t(){var t=this._;if(e.svg.selectAll("#drop_shadow,.drop_shadow").remove(),t.options.showDropShadow){var a=this.$slc.defs.append("radialGradient").attr("id","drop_shadow").attr("cx","50%").attr("cy","50%");a.append("stop").attr("offset","20%").attr("stop-color","#000").attr("stop-opacity",".5"),a.append("stop").attr("offset","100%").attr("stop-color","#000").attr("stop-opacity","0"),o.dropShadow=e.svg.append("g").attr("class","drop_shadow").append("ellipse").attr("cx",t.center[0]).attr("class","noclicks").style("fill","url(#drop_shadow)"),n.call(this)}}function n(){var t=this._.proj.scale();o.dropShadow.attr("cy",t+this._.center[1]).attr("rx",.9*t).attr("ry",.25*t)}var e={svg:null,q:null},o={};return{name:"dropShadowSvg",onInit:function(){this._.options.showDropShadow=!0,e.svg=this._.svg},onCreate:function(){t.call(this)},onResize:function(){o.dropShadow&&this._.options.showDropShadow&&n.call(this)},selectAll:function(t){return t&&(e.q=t,e.svg=d3.selectAll(t)),e.svg}}},h=function(){function t(){n.call(this),e.call(this)}function n(){var t=this._;if(o.svg.selectAll("#shading,.shading").remove(),t.options.showGlobeShading){var n=this.$slc.defs.append("radialGradient").attr("id","shading").attr("cx","50%").attr("cy","40%");n.append("stop").attr("offset","50%").attr("stop-color","#9ab").attr("stop-opacity","0"),n.append("stop").attr("offset","100%").attr("stop-color","#3e6184").attr("stop-opacity","0.3"),a.globeShading=o.svg.append("g").attr("class","shading").append("circle").attr("cx",t.center[0]).attr("cy",t.center[1]).attr("r",t.proj.scale()).attr("class","noclicks").style("fill","url(#shading)")}}function e(){var t=this._;if(o.svg.selectAll("#hilight,.hilight").remove(),t.options.showGlobeHilight){var n=this.$slc.defs.append("radialGradient").attr("id","hilight").attr("cx","75%").attr("cy","25%");n.append("stop").attr("offset","5%").attr("stop-color","#ffd").attr("stop-opacity","0.6"),n.append("stop").attr("offset","100%").attr("stop-color","#ba9").attr("stop-opacity","0.2"),a.globeHilight=o.svg.append("g").attr("class","hilight").append("circle").attr("cx",t.center[0]).attr("cy",t.center[1]).attr("r",t.proj.scale()).attr("class","noclicks").style("fill","url(#hilight)")}}var o={svg:null,q:null},a={};return{name:"fauxGlobeSvg",onInit:function(){var t=this._.options;t.showGlobeShading=!0,t.showGlobeHilight=!0,o.svg=this._.svg},onCreate:function(){t.call(this)},onResize:function(){var t=this._,n=t.options,e=t.proj.scale();a.globeShading&&n.showGlobeShading&&a.globeShading.attr("r",e),a.globeHilight&&n.showGlobeHilight&&a.globeHilight.attr("r",e)},selectAll:function(t){return t&&(o.q=t,o.svg=d3.selectAll(t)),o.svg}}},p=function(t){function n(t){var n=this._.proj.rotate();n[0]+=e.degree*t,this._.rotate(n)}var e={lastTick:new Date,degree:t/1e3,sync:[]};return{name:"autorotatePlugin",onInit:function(){this._.options.spin=!0},onInterval:function(){var t=new Date;if(this._.options.spin&&!this._.drag){var o=t-e.lastTick;n.call(this,o),e.sync.forEach(function(t){return n.call(t,o)})}e.lastTick=t},speed:function(t){e.degree=t/1e3},start:function(){this._.options.spin=!0},stop:function(){this._.options.spin=!1},sync:function(t){e.sync=t}}},f=function(){var t=d3.select("body").append("div").attr("class","dotTooltip");return{name:"dotTooltipCanvas",onInit:function(){var n=this,e=function(e,o){o?(n.dotTooltipCanvas.onShow&&(o=n.dotTooltipCanvas.onShow.call(n,o,t)),n.dotTooltipCanvas.show(o.properties).style("display","block").style("opacity",1).style("left",e[0]+7+"px").style("top",e[1]-15+"px")):t.style("opacity",0).style("display","none")};this.dotsCanvas.addSelectDotEvent({dotTooltipCanvas:e})},show:function(n){var e=Object.keys(n).map(function(t){return t+": "+n[t]}).join("<br/>");return t.html(e)}}},g=function(){function t(t){return e.style("left",t[0]+7+"px").style("top",t[1]-15+"px")}function n(){e.style("opacity",0).style("display","none")}var e=d3.select("body").append("div").attr("class","countryTooltip");return{name:"countryTooltipCanvas",onInit:function(){var e=this,o=function(){var o=e.hoverCanvas.data(),a=o.country,r=o.mouse;if(a&&e._.options.showCountryTooltip){var s=e.worldCanvas.countryName(a);!s||e.barTooltipSvg&&e.barTooltipSvg.visible()?n():t(r).style("display","block").style("opacity",1).text(s.name)}else n()};this.hoverCanvas.addSelectCountryEvent({countryTooltipCanvas:o}),this.versorDragPlugin&&this.versorDragPlugin.onDrag({countryTooltipCanvas:o}),this._.options.showCountryTooltip=!0},onRefresh:function(){this._.drag&&t(this.versorDragPlugin.mouse())}}};return n.plugins={versorDragPlugin:e,wheelZoomPlugin:o,threejsPlugin:a,canvasPlugin:r,hoverCanvas:s,oceanSvg:i,configPlugin:l,graticuleCanvas:c,graticuleSvg:u,dropShadowSvg:d,fauxGlobeSvg:h,autorotatePlugin:p,dotTooltipCanvas:f,countryTooltipCanvas:g,countryTooltipSvg:function(){function t(){var t=this;this.worldSvg.$countries().on("mouseover",function(o){if(t._.options.showCountryTooltip){e.show=!0;var a=t.worldSvg.countryName.call(t,o);n().style("display","block").style("opacity",1).text(a.name)}}).on("mouseout",function(){e.show=!1,o.style("opacity",0).style("display","none")}).on("mousemove",function(){t._.options.showCountryTooltip&&n()})}function n(t){return t||(t=[d3.event.pageX,d3.event.pageY]),o.style("left",t[0]+7+"px").style("top",t[1]-15+"px")}var e={show:!1},o=d3.select("body").append("div").attr("class","countryTooltip");return{name:"countryTooltipSvg",onInit:function(){this._.options.showCountryTooltip=!0},onCreate:function(){t.call(this)},onRefresh:function(){this._.drag&&e.show&&n(this.versorDragPlugin.mouse())}}},barTooltipSvg:function(){function t(){var t=this;this.barSvg.$bar().on("mouseover",function(){if(t._.options.showBarTooltip){e.visible=!0,e.mouseXY=[d3.event.pageX+7,d3.event.pageY-15];var a=+this.dataset.index,r=t.barSvg.data().features[a];t.barTooltipSvg.onShow&&(r=t.barTooltipSvg.onShow.call(this,r,o)),t.barTooltipSvg.show(r).style("display","block").style("opacity",1),n()}}).on("mouseout",function(){e.visible=!1,o.style("opacity",0).style("display","none")}).on("mousemove",function(){t._.options.showBarTooltip&&(e.mouseXY=[d3.event.pageX+7,d3.event.pageY-15],n())})}function n(){o.style("left",e.mouseXY[0]+7+"px").style("top",e.mouseXY[1]-15+"px")}var e={mouseXY:[0,0],visible:!1},o=d3.select("body").append("div").attr("class","barTooltip");return{name:"barTooltipSvg",onInit:function(){this._.options.showBarTooltip=!0},onCreate:function(){t.call(this)},onResize:function(){t.call(this),o.style("opacity",0).style("display","none")},onRefresh:function(){n.call(this)},show:function(t){var n=t.properties,e=Object.keys(n).map(function(t){return t+": "+n[t]}).join("<br/>");return o.html(e)},visible:function(){return e.visible}}},placesSvg:function(t){function n(){s.svg.selectAll(".points,.labels").remove(),s.places&&this._.options.showPlaces&&(o.call(this),a.call(this),e.call(this))}function e(){i.placePoints&&(i.placePoints.attr("d",this._.path),r.call(this))}function o(){i.placePoints=s.svg.append("g").attr("class","points").selectAll("path").data(s.places.features).enter().append("path").attr("class","point")}function a(){i.placeLabels=s.svg.append("g").attr("class","labels").selectAll("text").data(s.places.features).enter().append("text").attr("class","label").text(function(t){return t.properties.name})}function r(){var t=this,n=this._.proj.invert(this._.center);i.placeLabels.attr("text-anchor",function(n){var e=t._.proj(n.geometry.coordinates)[0];return e<t._.center[0]-20?"end":e<t._.center[0]+20?"middle":"start"}).attr("transform",function(n){var e=t._.proj(n.geometry.coordinates),o=e[0],a=e[1];return"translate("+(o+(o<t._.center[0]?-5:5))+","+(a-2)+")"}).style("display",function(t){return d3.geoDistance(t.geometry.coordinates,n)>1.57?"none":"inline"})}var s={svg:null,q:null,places:null},i={};return{name:"placesSvg",urls:t&&[t],onReady:function(t,n){s.places=n},onInit:function(){this._.options.showPlaces=!0,s.svg=this._.svg},onCreate:function(){n.call(this)},onRefresh:function(){e.call(this)},selectAll:function(t){return t&&(s.q=t,s.svg=d3.selectAll(t)),s.svg},data:function(t){if(!t)return{places:s.places};var n=t.placesSvg.data();s.places=n.places}}},worldCanvas:function(t,n){function e(){var t=this._;if(i.world&&t.options.showLand&&((t.options.transparent||t.options.transparentLand)&&(t.proj.clipAngle(180),this.canvasPlugin.render(function(t,n){t.beginPath(),n(i.land),t.fillStyle=i.style.backLand||"rgba(119,119,119,0.2)",t.fill()},i.drawTo,i.options),t.proj.clipAngle(90)),o.call(this),t.drag||(t.options.showCountries&&a.call(this),t.options.showLakes&&r.call(this)),this.hoverCanvas&&t.options.showCountrySelected)){var n=this.hoverCanvas.data(),e=n.country;this.canvasPlugin.render(function(t,n){t.beginPath(),n(e),t.fillStyle="rgba(117, 0, 0, 0.4)",t.fill()},i.drawTo,i.options)}}function o(){this.canvasPlugin.render(function(t,n){var e=i.landColor;t.beginPath(),n(i.land),t.fillStyle=i.style.land||"number"==typeof e?s[e]:e,t.fill()},i.drawTo,i.options)}function a(){this.canvasPlugin.render(function(t,n){t.beginPath(),n(i.countries),t.lineWidth=.1,t.strokeStyle=i.style.countries||"rgb(239, 237, 234)",t.stroke()},i.drawTo,i.options)}function r(){this.canvasPlugin.render(function(t,n){t.beginPath(),n(i.lakes),t.fillStyle=i.style.lakes||"rgba(80, 87, 97, 0.4)",t.fill()},i.drawTo,i.options)}var s={0:"rgba(117, 87, 57, 0.6)",1:"rgba(138, 96, 56, 0.6)",2:"rgba(140,104, 63, 0.6)",3:"rgba(149,114, 74, 0.6)",4:"rgba(153,126, 87, 0.6)",5:"rgba(155,141,115, 0.6)"},i={world:null,countryNames:null,style:{},drawTo:null,options:{},landColor:0},l=null;return t&&(l=[t],n&&l.push(n)),{name:"worldCanvas",urls:l,onReady:function(t,n,e){this.worldCanvas.data({world:n,countryNames:e}),Object.defineProperty(this._.options,"landColor",{get:function(){return i.landColor},set:function(t){i.landColor=t}})},onInit:function(){var t=this._.options;t.showLand=!0,t.showLakes=!0,t.showCountries=!0,t.transparentLand=!1,t.showCountrySelected=!0,t.landColor=0},onCreate:function(){var t=this;if(e.call(this),this.hoverCanvas){var n=function(){t._.options.spin||t._.refresh()};this.hoverCanvas.addSelectCountryEvent({worldCanvas:n})}},onRefresh:function(){e.call(this)},data:function(t){return t&&(i.world=t.world,i.countryNames=t.countryNames,i.land=topojson.feature(i.world,i.world.objects.land),i.lakes=topojson.feature(i.world,i.world.objects.ne_110m_lakes),i.countries=topojson.feature(i.world,i.world.objects.countries)),{world:i.world,countryNames:i.countryNames}},countryName:function(t){var n="";return i.countryNames&&(n=i.countryNames.find(function(n){return n.id==t.id})),n},style:function(t){return t&&(i.style=t),i.style},drawTo:function(t){i.drawTo=t},options:function(t){i.options=t}}},worldSvg:function(t,n){function e(){var t=this._;l.svg.selectAll(".landbg,.land,.lakes,.countries").remove(),t.options.showLand&&(l.world&&((t.options.transparent||t.options.transparentLand)&&l.svgAddWorldBg.call(this),!t.drag&&t.options.showCountries?l.svgAddCountries.call(this):l.svgAddWorld.call(this),!t.drag&&t.options.showLakes&&l.svgAddLakes.call(this)),o.call(this))}function o(){var t=this._;l.world&&t.options.showLand&&((t.options.transparent||t.options.transparentLand)&&(t.proj.clipAngle(180),c.worldBg.attr("d",t.path),t.proj.clipAngle(90)),t.options.showCountries?c.countries.attr("d",t.path):c.world.attr("d",t.path),t.options.showLakes&&c.lakes.attr("d",t.path))}function a(){c.worldBg=l.svg.append("g").attr("class","landbg").append("path").datum(l.land).attr("fill","rgba(119,119,119,0.2)")}function r(){c.world=l.svg.append("g").attr("class","land").append("path").datum(l.land)}function s(){c.countries=l.svg.append("g").attr("class","countries").selectAll("path").data(l.countries.features).enter().append("path").attr("id",function(t){return"x"+t.id})}function i(){c.lakes=l.svg.append("g").attr("class","lakes").append("path").datum(l.lakes)}var l={svg:null,q:null,world:null,countryNames:null},c={},u=null;return t&&(u=[t],n&&u.push(n)),{name:"worldSvg",urls:u,onReady:function(t,n,e){this.worldSvg.data({world:n,countryNames:e})},onInit:function(){var t=this._,n=t.options;n.showLand=!0,n.showLakes=!0,n.showCountries=!0,n.transparentLand=!1,l.svgAddCountries=s,l.svgAddWorldBg=a,l.svgAddLakes=i,l.svgAddWorld=r,l.svg=t.svg},onCreate:function(){e.call(this)},onRefresh:function(){o.call(this)},countries:function(){return l.countries.features},data:function(t){return t&&(l.world=t.world,l.countryNames=t.countryNames,l.land=topojson.feature(l.world,l.world.objects.land),l.lakes=topojson.feature(l.world,l.world.objects.ne_110m_lakes),l.countries=topojson.feature(l.world,l.world.objects.countries)),{world:l.world,countryNames:l.countryNames}},countryName:function(t){var n="";return l.countryNames&&(n=l.countryNames.find(function(n){return n.id==t.id})),n},selectAll:function(t){return t&&(l.q=t,l.svg=d3.selectAll(t)),l.svg},$countries:function(){return c.countries}}},worldThreejs:function(){function t(){if(!e.sphereObject){var t=this,o=new THREE.Group;(new THREE.TextureLoader).load("./d/world.jpg",function(a){var r=new THREE.SphereGeometry(200,20,20),s=new THREE.MeshBasicMaterial({map:a,overdraw:.5});e.sphereObject=new THREE.Mesh(r,s),o.add(e.sphereObject),n.call(t)}),t.threejsPlugin.addObject(o)}}function n(){var t=this._.proj.rotate();t[0]-=90;var n=this._.versor(t),o=new THREE.Quaternion(-n[2],n[1],n[3],n[0]);e.sphereObject.setRotationFromQuaternion(o)}var e={sphereObject:null};return{name:"worldThreejs",onInit:function(){t.call(this)},onRefresh:function(){e.sphereObject&&n.call(this)}}},centerPlugin:function(){function t(t,n){n=n.replace("x","");for(var e=0,o=t.length;e<o;e++)if(t[e].id==n)return t[e]}function n(t){var n=this;d3.transition().duration(2500).tween("rotate",function(){var e=d3.interpolate(n._.proj.rotate(),[-t[0],-t[1],0]);return function(t){n._.rotate(e(t))}})}function e(){var e=this;this.worldSvg.$countries().on("click",function(){if(e._.options.enableCenter){var a=this.id.replace("x",""),r=e.worldSvg.countries(),s=t(r,a),i=d3.geoCentroid(s);n.call(e,i),"function"==typeof o.focused&&o.focused.call(e)}})}var o={focused:null,svgAddCountriesOld:null};return{name:"centerPlugin",onInit:function(){this._.options.enableCenter=!0},onCreate:function(){e.call(this)},go:function(e){var o=this.worldSvg.countries(),a=t(o,e),r=d3.geoCentroid(a);n.call(this,r)},focused:function(t){o.focused=t}}},flattenPlugin:function(){function t(){var n=this;return n._.svg.transition().duration(10500).tween("projection",function(){return function(e){t.alpha(e),n._.refresh()}})}function n(n,e){function o(t,o){var a=n([t*=180/Math.PI,o*=180/Math.PI]),s=e([t,o]);return[(1-r)*a[0]+r*s[0],(r-1)*a[1]-r*s[1]]}var a=d3.geoProjection(o).scale(1),r=void 0;return t.alpha=function(t){if(!arguments.length)return r;r=+t;var o=n.center(),s=e.center(),i=n.translate(),l=e.translate();return a.center([(1-r)*o[0]+r*s[0],(1-r)*o[1]+r*s[1]]),a.translate([(1-r)*i[0]+r*l[0],(1-r)*i[1]+r*l[1]]),a},t.alpha(0),a}function e(){var t=this._;return d3.transition().duration(1500).tween("rotate",function(){t.rotate(t.proj.rotate());var n=d3.interpolate(t.proj.rotate(),[0,0,0]);return function(e){t.rotate(n(e))}})}var o={};return{name:"flattenPlugin",onInit:function(){var t=this._.proj,n=d3.geoEquirectangular().scale(this._.options.width/6.3).translate(this._.center);o.g1=t,o.g2=n},toMap:function(){var a=this;e.call(this).on("end",function(){var e=n(o.g1,o.g2);a._.path=d3.geoPath().projection(e),t.call(a).on("end",function(){a._.options.enableCenter=!1})})},toGlobe:function(){var e=this;this._.rotate([0,0,0]);var a=n(o.g2,o.g1);this._.path=d3.geoPath().projection(a),t.call(this).on("end",function(){e._.path=d3.geoPath().projection(e._.proj),e._.options.enableCenter=!0,e._.refresh()})}}},barSvg:function(t){function n(){var t=this._;if(o.call(this),a.svg.selectAll(".bar").remove(),a.bars&&t.options.showBars){var n=a.svg.append("g").attr("class","bar"),s=n.append("mask").attr("id","edge");s.append("rect").attr("x",0).attr("y",0).attr("width","100%").attr("height","100%").attr("fill","white"),s.append("use").attr("xlink:href","#edgeCircle").attr("fill","black"),a.max=d3.max(a.bars.features,function(t){return parseInt(t.geometry.value)});var i=t.proj.scale();a.lengthScale=d3.scaleLinear().domain([0,a.max]).range([i,i+50]),r.bar=n.selectAll("line").data(a.bars.features).enter().append("line").attr("stroke","red").attr("stroke-width","2").attr("data-index",function(t,n){return n}),e.call(this)}}function e(){var t=this._;if(a.bars&&t.options.showBars){var n=t.proj,e=a.lengthScale,o=a.barProjection,s=n.invert(t.center);r.bar.each(function(t){var a=t.geometry.coordinates;o.scale(e(t.geometry.value));var r=d3.geoDistance(a,s),i=n(a),l=o(a);d3.select(this).attr("x1",i[0]).attr("y1",i[1]).attr("x2",l[0]).attr("y2",l[1]).attr("mask",r<1.57?null:"url(#edge)")})}}function o(){var t=this._;this.$slc.defs.selectAll("clipPath").remove(),this.$slc.defs.append("clipPath").append("circle").attr("id","edgeCircle").attr("cx",t.center[0]).attr("cy",t.center[1]).attr("r",t.proj.scale())}var a={svg:null,barProjection:null,q:null,bars:null,valuePath:null},r={};return{name:"barSvg",urls:t&&[t],onReady:function(t,n){this.barSvg.data(n)},onInit:function(){var t=this._;t.options.showBars=!0,a.barProjection=t.orthoGraphic(),a.svg=t.svg},onCreate:function(){n.call(this)},onRefresh:function(){a.barProjection.rotate(this._.proj.rotate()),e.call(this)},onResize:function(){n.call(this)},selectAll:function(t){return t&&(a.q=t,a.svg=d3.selectAll(t)),a.svg},valuePath:function(t){a.valuePath=t},data:function(t){var n=this;if(!t)return a.bars;if(a.valuePath){var o=a.valuePath.split(".");t.features.forEach(function(t){var n=t;o.forEach(function(t){return n=n[t]}),t.geometry.value=n})}a.bars=t,setTimeout(function(){return e.call(n)},1)},$bar:function(){return r.bar}}},dotsSvg:function(t){function n(){var t=this._;if(a.svg.selectAll(".dot").remove(),a.dataDots&&t.options.showDots){var n=[];if(a.circles.forEach(function(t){n.push(t.circle)}),r.dots=a.svg.append("g").attr("class","dot").selectAll("path").data(n).enter().append("path"),a.dataDots.geometry){var o=a.dataDots.geometry||{};r.dots.style("stroke-width",o.lineWidth||.2).style("fill",o.fillStyle||"rgba(100,0,0,.4)").style("stroke",o.strokeStyle||"rgba(119,119,119,.4)")}e.call(this)}}function e(){var t=this._,n=void 0,e=void 0;if(r.dots&&t.options.showDots){var o=a.dataDots.geometry||{};t.options.transparent||t.options.transparentDots?(t.proj.clipAngle(180),r.dots.style("display","inline"),r.dots.style("fill",function(a,r){return n=a.coordinates[0][r],e=d3.geoDistance(n,t.proj.invert(t.center)),e>1.57?"none":o.fillStyle||"rgba(100,0,0,.4)"}),r.dots.attr("d",t.path),t.proj.clipAngle(90)):(r.dots.style("display",function(o,a){return n=o.coordinates[0][a],e=d3.geoDistance(n,t.proj.invert(t.center)),e>1.57?"none":"inline"}),r.dots.style("fill",o.fillStyle||"rgba(100,0,0,.4)"),r.dots.attr("d",t.path))}}function o(){var t=d3.geoCircle(),n=a.dataDots.geometry||{},e=n.radius||.5;a.circles=a.dataDots.features.map(function(n){var o=n.geometry.coordinates,a=n.geometry.radius||e;return{coordinates:o,circle:t.center(o).radius(a)()}})}var a={dataDots:null,radiusPath:null},r={};return{name:"dotsSvg",urls:t&&[t],onReady:function(t,n){this.dotsSvg.data(n)},onInit:function(){this._.options.showDots=!0,a.svg=this._.svg},onCreate:function(){n.call(this)},onRefresh:function(){e.call(this)},radiusPath:function(t){a.radiusPath=t},data:function(t){var n=this;if(!t)return a.dataDots;if(a.radiusPath){var r=a.radiusPath.split("."),s=t.features.map(function(t){var n=t;return r.forEach(function(t){return n=n[t]}),n}).sort(),i=d3.scaleLinear().domain([s[0],s.pop()]).range([.5,2]) ;t.features.forEach(function(t){var n=t;r.forEach(function(t){return n=n[t]}),t.geometry.radius=i(n)})}a.dataDots=t,o(),setTimeout(function(){return e.call(n)},1)},selectAll:function(t){return t&&(a.q=t,a.svg=d3.selectAll(t)),a.svg}}},dotsCanvas:function(t){function n(){if(a.dataDots&&this._.options.showDots){var t=this._,n=this._.proj,e=a.dataDots.geometry||{},o=n.invert(this._.center),r=[],s=[];a.circles.forEach(function(t){d3.geoDistance(t.coordinates,o)>1.57?r.push(t.circle):s.push(t.circle)}),(t.options.transparent||t.options.transparentDots)&&(t.proj.clipAngle(180),this.canvasPlugin.render(function(t,n){t.beginPath(),n({type:"GeometryCollection",geometries:r}),t.lineWidth=.2,t.strokeStyle="rgba(119,119,119,.4)",t.stroke(),t.closePath()},a.drawTo),t.proj.clipAngle(90)),this.canvasPlugin.render(function(t,n){t.beginPath(),n({type:"GeometryCollection",geometries:s}),t.lineWidth=e.lineWidth||.2,t.fillStyle=e.fillStyle||"rgba(100,0,0,.4)",t.strokeStyle=e.strokeStyle||"rgba(100,0,0,.6)",t.fill(),t.stroke(),t.closePath()},a.drawTo)}}function e(){var t=d3.geoCircle(),n=a.dataDots.geometry||{},e=n.radius||.5;a.circles=a.dataDots.features.map(function(n){var o=n.geometry.coordinates,a=n.properties,r=n.geometry.radius||e;return{properties:a,coordinates:o,circle:t.center(o).radius(r)()}})}function o(){var t=this,n=function(n,e){var o=null;return a.circles.forEach(function(t){n&&!o&&d3.geoDistance(t.coordinates,e)<=.02&&(o=t)}),a.onDotKeys.forEach(function(e){a.onDot[e].call(t,n,o)}),o};this.hoverCanvas.addSelectCircleEvent({dotsCanvas:n})}var a={dataDots:null,circles:[],radiusPath:null,onDot:{},onDotKeys:[]};return{name:"dotsCanvas",urls:t&&[t],onReady:function(t,n){this.dotsCanvas.data(n)},onInit:function(){o.call(this),this._.options.transparentDots=!1,this._.options.showDots=!0},onCreate:function(){n.call(this)},onRefresh:function(){n.call(this)},radiusPath:function(t){a.radiusPath=t},data:function(t){var o=this;if(!t)return a.dataDots;if(a.radiusPath){var r=a.radiusPath.split("."),s=t.features.map(function(t){var n=t;return r.forEach(function(t){return n=n[t]}),n}).sort(),i=d3.scaleLinear().domain([s[0],s.pop()]).range([.5,2]);t.features.forEach(function(t){var n=t;r.forEach(function(t){return n=n[t]}),t.geometry.radius=i(n)})}a.dataDots=t,e(),setTimeout(function(){return n.call(o)},1)},drawTo:function(t){a.drawTo=t},addSelectDotEvent:function(t){Object.assign(a.onDot,t),a.onDotKeys=Object.keys(a.onDot)}}},pingsCanvas:function(){var t={dataPings:null,pings:[]};return{name:"pingsCanvas",onInit:function(){this._.options.showPings=!0},onInterval:function(){if(!this._.drag&&this._.options.showPings){var n=void 0,e=this._.proj;if(t.pings.length<=7){n=this._.proj.invert(this._.center);var o=t.dataPings.features.filter(function(t){return d3.geoDistance(t.geometry.coordinates,n)<=1.57}),a=o[Math.floor(Math.random()*(o.length-1))];t.pings.push({r:2.5,l:a.geometry.coordinates})}var r=t.pings[0];d3.geoDistance(r.l,this._.proj.invert(this._.center))>1.57?t.pings.shift():(this._.options.spin||this._.refresh(/anvas/),this.canvasPlugin.render(function(n){if(n.beginPath(),n.fillStyle="#F80",n.arc(e(r.l)[0],e(r.l)[1],r.r,0,2*Math.PI),n.fill(),n.closePath(),r.r=r.r+.2,r.r>5)t.pings.shift();else if(t.pings.length>1){var o=t.pings.shift();t.pings.push(o)}},t.drawTo))}},data:function(n){t.dataPings=n},drawTo:function(n){t.drawTo=n}}},pingsSvg:function(){function t(){if(o.svg.selectAll(".pings").remove(),o.dataPings&&this._.options.showPings){var t=o.svg.append("g").attr("class","pings");a.ping2=t.selectAll(".ping-2").data(o.dataPings.features).enter().append("circle").attr("class","ping-2").attr("id",function(t,n){return"ping-"+n}),a.pings=t.selectAll(".ping-2"),e.call(this),n.call(this)}}function n(){var t=a.ping2.nodes().filter(function(t){return"inline"==t.style.display});t.length>0&&d3.select("#"+t[Math.floor(Math.random()*(t.length-1))].id).attr("r",2).attr("stroke","#F00").attr("stroke-opacity",1).attr("stroke-width","10px").transition().duration(1e3).attr("r",30).attr("fill","none").attr("stroke-width","0.1px")}function e(){if(null==this._.drag)a.pings.style("display","none");else if(!this._.drag&&a.pings&&this._.options.showPings){var t=this._.proj,n=this._.proj.invert(this._.center);a.pings.attr("cx",function(n){return t(n.geometry.coordinates)[0]}).attr("cy",function(n){return t(n.geometry.coordinates)[1]}).style("display",function(t){return d3.geoDistance(t.geometry.coordinates,n)>1.57?"none":"inline"})}}var o={svg:null,dataPings:null},a={};return{name:"pingsSvg",onInit:function(){var t=this;this._.options.showPings=!0,setInterval(function(){return n.call(t)},3e3),o.svg=this._.svg},onCreate:function(){t.call(this)},onRefresh:function(){e.call(this)},data:function(t){o.dataPings=t},selectAll:function(t){return t&&(o.q=t,o.svg=d3.selectAll(t)),o.svg}}},debugThreejs:function(){function t(){if(!e.sphereObject){var t=this._.proj.scale(),o=new THREE.SphereGeometry(t,100,100),a=new THREE.MeshNormalMaterial({wireframe:!1}),r=new THREE.Mesh(o,a),s=new THREE.SphereGeometry(30,10,10),i=new THREE.SphereGeometry(30,10,10),l=new THREE.SphereGeometry(30,10,10);s.translate(0,0,t),i.translate(t,0,0),l.translate(0,-t,0);var c=new THREE.MeshBasicMaterial({color:"blue"}),u=new THREE.MeshBasicMaterial({color:"red"}),d=new THREE.MeshBasicMaterial({color:"green"}),h=new THREE.Mesh(s,c),p=new THREE.Mesh(i,u),f=new THREE.Mesh(l,d);e.sphereObject=new THREE.Object3D,e.sphereObject.add(r,h,p,f),n.call(this),this.threejsPlugin.addObject(e.sphereObject)}}function n(){var t=this._.proj.rotate();t[0]-=90;var n=this._.versor(t),o=new THREE.Quaternion(-n[2],n[1],n[3],n[0]);e.sphereObject.setRotationFromQuaternion(o)}var e={sphereObject:null};return{name:"debugThreejs",onInit:function(){this._.options.showDebugSpahre=!0,t.call(this)},onRefresh:function(){e.sphereObject&&n.call(this)}}},commonPlugins:function(t,n){function e(){var e=this,o=this.register,a=earthjs.plugins;o(a.configPlugin()),o(a.wheelZoomPlugin()),o(a.versorDragPlugin()),o(a.autorotatePlugin(10)),o(a.dropShadowSvg()),o(a.oceanSvg()),o(a.canvasPlugin()),o(a.graticuleCanvas()),o(a.worldCanvas(t,n)),this._.options.oceanColor=2,this._.options.transparent=!0,this.canvasPlugin.selectAll(".canvas"),this.graticuleCanvas.drawTo([1]),this.worldCanvas.drawTo([0]),r.options=this.configPlugin.set(),r.buttonClick=function(t){var n=t.split(":"),o=n[2],a={},r=e.configPlugin.set();r[o]=!r[o],a[o]=r[o],"transparent"==o?((r.transparentGraticule||r.transparentLand)&&(a.transparent=!1),a.transparentGraticule=!1,a.transparentLand=!1):"showCountries"==o||"showLakes"==o?a.showLand=!0:"transparentGraticule"!=o&&"transparentLand"!=o||(r.transparent&&(a.transparentGraticule=!1,a.transparentLand=!1),a.transparent=!1),e.configPlugin.set(a)}}function o(t,n,e,o,a,r,s){t.append("br"),t.append("input").attr("id",n).attr("type","range").attr("min",e).attr("max",o).attr("step",a).attr("value",r).on("input",s)}function a(){var t=this,n=this,e=d3.select(".set-options"),a=d3.select(".set-options2");if(e.selectAll("button, input, br").remove(),a.selectAll("button, input, br").remove(),this._.options.showControll){e.selectAll("button").data(r.checker).enter().append("button").text(function(t){return t[1]}).on("click",function(n){return r.buttonClick.call(t,n.join(":"))}),o(a,"pan",0,400,1,r.pan,function(){r.pan=+this.value;for(var t=1;t<s.length;t++)s[t].style.left=r.pan*t+"px"}),o(a,"ocn",0,20,1,r.ocn,function(){r.ocn=this.value,n.oceanSvg.scale(-r.ocn)}),o(a,"spd",10,200,10,r.spd,function(){r.spd=this.value,n.autorotatePlugin.speed(r.spd)});var s=d3.selectAll(".ea-layer").nodes();window.nodes=s,o(a,"clr",0,5,1,n._.options.oceanColor,function(){n._.options.oceanColor=+this.value,n.oceanSvg.recreate()})}}var r={checker:[],ocn:0,spd:10,pan:0,clr:0};return r.checker=[":Shadow:showDropShadow",":Ocean:showOcean",":Graticule:showGraticule",":Land:showLand",":Country:showCountries",":Lakes:showLakes",":Transparent:transparent",":Canvas:showCanvas",":Spin:spin"].map(function(t){return t.split(":")}),{name:"commonPlugins",onInit:function(){e.call(this),this._.options.showControll=!0},onCreate:function(){a.call(this)},addChecker:function(t){r.checker.push(t),r.options=this.configPlugin.set(),a.call(this)}}}},n}();