// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
require({cache:{"widgets/GridOverlay/GridSetting":function(){define("dojo/_base/declare dojo/dom-class dojo/on dojo/json dojo/_base/array dojo/_base/lang dojo/_base/Color jimu/BaseWidget jimu/utils dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/registry ./lib/GridOverlay jimu/dijit/Message dojo/i18n!./setting/nls/strings dojo/text!./GridSetting.html dojo/keys dojo/string dojo/dom-attr dijit/form/HorizontalSlider dijit/form/NumberSpinner jimu/dijit/ColorPicker dijit/form/CheckBox".split(" "),
function(F,f,e,t,k,a,c,h,g,r,p,b,d,v,C,G,L,l,x){var u=function(m,q){q instanceof c||(q=new c(q));var n=q.toHex();q=128<.2126*q.r+.7152*q.g+.0722*q.b?new c([0,0,0]):new c([255,255,255]);m.innerHTML=g.sanitizeHTML("\x3cdiv class\x3d'grid-overlay-setting-color-picker-text' style\x3d'color:"+(q+";'\x3e")+n+"\x3c/div\x3e")},B=function(m,q,n,z){isNaN(z)?(m.value=5,m.setDisplayedValue(5)):4<z&&73>z&&q.setFontSize(n,z)},y=function(m,q,n,z){isNaN(z)?(m.value=1,m.setDisplayedValue(1)):0<z&&11>z&&q.setLineWidth(n,
z)};return F([h,r,p],{templateString:G,baseClass:"grid-overlay-setting",verticalLabelsClicked:!1,horizontalLabelsClicked:!1,map:null,config:null,nls:null,gridOverlayCtrl:null,constructor:function(m){this.map=m.map;this.config=m.config;this.nls=C},postMixInProperties:function(){this.inherited(arguments);this.isRenderIdForAttrs=!0},postCreate:function(){this.setConfig(this.config);var m=this,q=new d(a.mixin({map:this.map,enabled:!0},this.config));this.gridOverlayCtrl=q;this.minIntervalSpacing.onChange=
a.hitch(this,function(n){this.minIntervalSpacingVal.innerHTML=g.sanitizeHTML(window.isRTL?"px"+n:n+"px");q.setMinIntervalSpacing(n)});this.lineOpacity.onChange=a.hitch(this,function(n){this.lineOpacityVal.innerHTML=window.isRTL?g.sanitizeHTML("%"+Math.round(100*n)):g.sanitizeHTML(Math.round(100*n)+"%");q.setLineOpacity(n)});this.labelOpacity.onChange=a.hitch(this,function(n){this.labelOpacityVal.innerHTML=window.isRTL?g.sanitizeHTML("%"+Math.round(100*n)):g.sanitizeHTML(Math.round(100*n)+"%");q.setLabelOpacity(n)});
this.colorPicker0.onChange=function(n){u(this.domNode,n);q.setColor(0,n.toHex())};this.colorPicker1.onChange=function(n){u(this.domNode,n);q.setColor(1,n.toHex())};this.colorPicker2.onChange=function(n){u(this.domNode,n);q.setColor(2,n.toHex())};this.colorPicker3.onChange=function(n){u(this.domNode,n);q.setColor(3,n.toHex())};this.colorPicker4.onChange=function(n){u(this.domNode,n);q.setColor(4,n.toHex())};this.colorPicker5.onChange=function(n){u(this.domNode,n);q.setColor(5,n.toHex())};this.fontSize0.onChange=
function(n){B(this,q,0,n)};this.fontSize1.onChange=function(n){B(this,q,1,n)};this.fontSize2.onChange=function(n){B(this,q,2,n)};this.fontSize3.onChange=function(n){B(this,q,3,n)};this.fontSize4.onChange=function(n){B(this,q,4,n)};this.fontSize5.onChange=function(n){B(this,q,5,n)};this.lineSize0.onChange=function(n){y(this,q,0,n)};this.lineSize1.onChange=function(n){y(this,q,1,n)};this.lineSize2.onChange=function(n){y(this,q,2,n)};this.lineSize3.onChange=function(n){y(this,q,3,n)};this.lineSize4.onChange=
function(n){y(this,q,4,n)};this.lineSize5.onChange=function(n){y(this,q,5,n)};this.verticalLabels.onclick=function(){m.verticalLabelsClicked=!0;m.horizontalLabelsClicked=!1;m._toggleHorzVertOptions(!1);q.setVerticalLabels(m.verticalLabelsClicked)};this.horizontalLabels.onclick=function(){m.verticalLabelsClicked=!1;m.horizontalLabelsClicked=!0;m._toggleHorzVertOptions(!0);q.setVerticalLabels(!m.horizontalLabelsClicked)};this.verticalLabels.onkeydown=function(n){if(n.keyCode===L.SPACE||n.keyCode===
L.ENTER)n.stopPropagation(),n.preventDefault(),m.verticalLabelsClicked=!0,m.horizontalLabelsClicked=!1,m._toggleHorzVertOptions(!1),q.setVerticalLabels(m.verticalLabelsClicked)};this.horizontalLabels.onkeydown=function(n){if(n.keyCode===L.SPACE||n.keyCode===L.ENTER)n.stopPropagation(),n.preventDefault(),m.verticalLabelsClicked=!1,m.horizontalLabelsClicked=!0,m._toggleHorzVertOptions(!0),q.setVerticalLabels(!m.horizontalLabelsClicked)};this._formatNumberTolocale(1E5,this.nls.gsid,this.gsidNode);this._formatNumberTolocale(1E4,
this.nls.grid10k,this.grid10kNode);this._formatNumberTolocale(1E3,this.nls.grid1k,this.grid1kNode)},startup:function(){this.inherited(arguments)},setConfig:function(m){this.config=void 0!==m?m:this._setConfig();this.minIntervalSpacing.set("value",this.config.minIntervalSpacing);this.minIntervalSpacingVal.innerHTML=window.isRTL?g.sanitizeHTML("px"+this.config.minIntervalSpacing):g.sanitizeHTML(this.config.minIntervalSpacing+"px");this.lineOpacity.set("value",this.config.lineOpacity);this.lineOpacityVal.innerHTML=
window.isRTL?g.sanitizeHTML("%"+Math.round(100*this.config.lineOpacity)):g.sanitizeHTML(Math.round(100*this.config.lineOpacity)+"%");this.labelOpacity.set("value",this.config.labelOpacity);this.labelOpacityVal.innerHTML=window.isRTL?g.sanitizeHTML("%"+Math.round(100*this.config.labelOpacity)):g.sanitizeHTML(Math.round(100*this.config.labelOpacity)+"%");for(m=0;6>m;m++)this["colorPicker"+m].setColor(new c(this.config.colors[m])),this["colorPicker"+m].picker.setColor(this.config.colors[m]),u(this["colorPicker"+
m].domNode,this.config.colors[m]);this.fontSize0.setValue(this.config.fontSizes[0]);this.fontSize1.setValue(this.config.fontSizes[1]);this.fontSize2.setValue(this.config.fontSizes[2]);this.fontSize3.setValue(this.config.fontSizes[3]);this.fontSize4.setValue(this.config.fontSizes[4]);this.fontSize5.setValue(this.config.fontSizes[5]);this.lineSize0.setValue(this.config.lineWidths[0]);this.lineSize1.setValue(this.config.lineWidths[1]);this.lineSize2.setValue(this.config.lineWidths[2]);this.lineSize3.setValue(this.config.lineWidths[3]);
this.lineSize4.setValue(this.config.lineWidths[4]);this.lineSize5.setValue(this.config.lineWidths[5]);this._toggleHorzVertOptions(!this.config.verticalLabels);this.config.enableGridOnClose?this.cbxShowGrid.set("checked",!0):this.cbxShowGrid.set("checked",!1)},getConfig:function(){if(this._checkValidValues())return new v({message:this.nls.errorMessage}),!1;this.config=this.gridOverlayCtrl.getSettings();this.config.enableGridOnClose=this.cbxShowGrid.getValue();return this.config},alterToggleSwitch:function(){this.checkBoxLabel.innerHTML=
this.nls.checkBoxLabelDashboard;this.own(e(this.cbxShowGrid,"change",a.hitch(this,function(){this.cbxShowGrid.checked?this.gridOverlayCtrl.enable():this.gridOverlayCtrl.disable()})))},_saveConfig:function(){window.localStorage.setItem("storedGridSettings",t.stringify(this.getConfig()))},_setConfig:function(){var m=t.parse(window.localStorage.getItem("storedGridSettings"));return null!==m?m:this.config},_checkValidValues:function(){return k.some([this.fontSize0,this.fontSize1,this.fontSize2,this.fontSize3,
this.fontSize4,this.fontSize5,this.lineSize0,this.lineSize1,this.lineSize2,this.lineSize3,this.lineSize4,this.lineSize5],function(m){if((m=b.byId(m))&&(m.value<m.constraints.min||m.value>m.constraints.max))return!0},this)},_toggleHorzVertOptions:function(m){m?(f.remove(this.horizontalLabels,"image-labels horizontalLabel"),f.add(this.horizontalLabels,"image-labels horizontalLabelClicked"),f.remove(this.verticalLabels,"image-labels verticalLabelClicked"),f.add(this.verticalLabels,"image-labels verticalLabel")):
(f.remove(this.horizontalLabels,"image-labels horizontalLabelClicked"),f.add(this.horizontalLabels,"image-labels horizontalLabel"),f.remove(this.verticalLabels,"image-labels verticalLabel"),f.add(this.verticalLabels,"image-labels verticalLabelClicked"))},_toggleLabelPlacement:function(m,q){if(m){var n=m.className.replace("image-labels","").trim();q?(f.remove(m,"image-labels "+n),f.add(m,"image-labels "+n+"Clicked")):(q=n.substring(0,n.indexOf("Clicked")),f.remove(m,"image-labels "+n),f.add(m,"image-labels "+
q))}},_formatNumberTolocale:function(m,q,n){m=l.substitute(q,{number:g.localizeNumber(m)});x.set(n,"innerHTML",m)}})})},"widgets/GridOverlay/lib/GridOverlay":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array ./mgrs-utils esri/layers/GraphicsLayer esri/geometry/geometryEngine esri/geometry/Extent esri/geometry/ScreenPoint esri/Color esri/geometry/webMercatorUtils jimu/utils xstyle/css!./GridOverlay.css".split(" "),function(F,f,e,t,k,a,c,h,g,r,p){Math.log10||(Math.log10=function(b){return Math.log(b)/
Math.LN10});return F(null,{minIntervalSpacing:150,currentInterval:0,levelOfDetail:"default",labelPlacement:null,verticalLabels:!0,cornerLabelXOffset:10,cornerLabelYOffset:10,intervalLabelXOffset:30,intervalLabelYOffset:30,colors:null,lineWidths:null,fontSizes:null,lineOpacity:.8,labelOpacity:1,centerLabelOpacity:.4,centerLabelScaleFactor:3,fontFamily:"Arial, Helvetica, sans-serif",map:null,_lineGraphics:null,_labelGraphics:null,constructor:function(b){b=b||{};b.map||console.warn("Before the grid will draw, you must use the 'setMap' method to define which map object to draw on");
b.hasOwnProperty("enabled")?this.enabled=b.enabled:this.enabled=!0;this._lineGraphicsLayer=new k;this._labelGraphicsLayer=new k({className:"gridOverlay"});this._centerLabelGraphicsLayer=new k({className:"gridOverlay"});this.enable=f.hitch(this,this.enable);this.disable=f.hitch(this,this.disable);this.clearGrid=f.hitch(this,this.clearGrid);this.drawGrid=f.hitch(this,this.drawGrid);this.getLayers=f.hitch(this,function(){return[this._lineGraphicsLayer,this._labelGraphicsLayer,this._centerLabelGraphicsLayer]});
this.labelPlacement={lowerLeft:!0,lowerRight:!0,upperLeft:!0,upperRight:!0,center:!0};this.colors="#FA5858 #F7FE2E #2EFE2E #2EFEF7 #FFF #BDBDBD #000".split(" ");this.lineWidths=[3,2,1,1,1,1,1];this.fontSizes=[29,27,19,16,15,13,11];this.map=b.map||{};this._lineGraphics=[];this._labelGraphics=[];this._lineGraphicsLayer.setOpacity(this.lineOpacity);this._labelGraphicsLayer.setOpacity(this.labelOpacity);this._centerLabelGraphicsLayer.setOpacity(this.centerLabelOpacity);for(var d=0;d<this.colors.length;d++)this.colors[d]=
new g(this.colors[d]);this.setProperties(b)},setProperties:function(b){b.lineWidths&&this.setLineWidths(b.lineWidths);b.minIntervalSpacing&&this.setMinIntervalSpacing(b.minIntervalSpacing);b.levelOfDetail&&this.setLevelOfDetail(b.levelOfDetail);b.labelPlacement&&this.setLabelPlacement(b.labelPlacement);b.hasOwnProperty("verticalLabels")&&this.setVerticalLabels(b.verticalLabels);b.cornerLabelXOffset&&this.setCornerLabelXOffset(b.cornerLabelXOffset);b.cornerLabelYOffset&&this.setCornerLabelYOffset(b.cornerLabelYOffset);
b.intervalLabelXOffset&&this.setIntervalLabelXOffset(b.intervalLabelXOffset);b.intervalLabelYOffset&&this.setIntervalLabelYOffset(b.intervalLabelYOffset);b.colors&&this.setColors(b.colors);b.lineWidths&&this.setLineWidths(b.lineWidths);b.fontSizes&&this.setFontSizes(b.fontSizes);b.lineOpacity&&this.setLineOpacity(b.lineOpacity);b.labelOpacity&&this.setLabelOpacity(b.labelOpacity);b.centerLabelOpacity&&this.setCenterLabelOpacity(b.centerLabelOpacity);b.centerLabelScaleFactor&&this.setCenterLabelScaleFactor(b.centerLabelScaleFactor);
b.fontFamily&&this.setFontFamily(b.fontFamily);if(this.enabled&&this.map.loaded)this.enable();else if(this.enabled&&this.map.on)this.map.on("load",f.hitch(this,this.enable))},getMinIntervalSpacing:function(){return this.minIntervalSpacing},setMinIntervalSpacing:function(b){"number"===typeof b&&(this.minIntervalSpacing=b,this.drawGrid())},setLevelOfDetail:function(b){if("string"!==typeof b)return null;b=b.toLowerCase();switch(b){case "more":case "best":case "high":case "maximum":case "max":this.levelOfDetail=
"more";break;case "less":case "low":case "minimum":case "mim":this.levelOfDetail="less";break;default:this.levelOfDetail="default"}this.drawGrid()},getLevelOfDetail:function(){return this.levelOfDetail},getLabelPlacement:function(){return this.labelPlacement},setLabelPlacement:function(b,d){if("object"===typeof b&&b.length)for(this.labelPlacement={lowerLeft:!1,lowerRight:!1,upperLeft:!1,upperRight:!1,center:!1},d=0;d<b.length;d++)this.setLabelPlacement(b[d],!0);else if("object"===typeof b)this.labelPlacement=
b;else if("undefined"===typeof d?(this.labelPlacement={lowerLeft:!1,lowerRight:!1,upperLeft:!1,upperRight:!1,center:!1},d=!0):d=!0===d,b.toLowerCase){switch(b.toLowerCase()){case "center":case "middle":this.labelPlacement.center=d;break;case "top":case "upper":this.labelPlacement.upperLeft=d;this.labelPlacement.upperRight=d;break;case "bottom":case "lower":this.labelPlacement.lowerLeft=d;this.labelPlacement.lowerRight=d;break;case "left":this.labelPlacement.lowerLeft=d;this.labelPlacement.upperLeft=
d;break;case "right":this.labelPlacement.lowerRight=d;this.labelPlacement.upperRight=d;break;case "lower-left":case "bottom-left":this.labelPlacement.lowerLeft=d;break;case "upper-left":case "top-left":this.labelPlacement.upperLeft=d;break;case "lower-right":case "bottom-right":this.labelPlacement.lowerRight=d;break;case "upper-right":case "top-right":this.labelPlacement.upperRight=d;break;case "all":this.labelPlacement.lowerLeft=d;this.labelPlacement.lowerRight=d;this.labelPlacement.upperLeft=d;
this.labelPlacement.upperRight=d;this.labelPlacement.center=d;break;default:this.labelPlacement.lowerLeft=d,this.labelPlacement.lowerRight=d,this.labelPlacement.upperLeft=d,this.labelPlacement.upperRight=d}this.drawGrid()}},getVerticalLabels:function(){return this.verticalLabels},setVerticalLabels:function(b){"boolean"===typeof b&&(this.verticalLabels=b,this.drawGrid())},getCornerLabelXOffset:function(){return this.cornerLabelXOffset},setCornerLabelXOffset:function(b){"number"===typeof b&&(this.cornerLabelXOffset=
b,this.drawGrid())},getCornerLabelYOffset:function(){return this.cornerLabelYOffset},setCornerLabelYOffset:function(b){"number"===typeof b&&(this.cornerLabelYOffset=b,this.drawGrid())},getIntervalLabelXOffset:function(){return this.intervalLabelXOffset},setIntervalLabelXOffset:function(b){"number"===typeof b&&(this.intervalLabelXOffset=b,this.drawGrid())},getIntervalLabelYOffset:function(){return this.intervalLabelYOffset},setIntervalLabelYOffset:function(b){"number"===typeof b&&(this.intervalLabelYOffset=
b,this.drawGrid())},getColor:function(b){return"number"!==typeof b||0>b||b>this.colors.length-1?null:this.colors[b]},setColor:function(b,d){if("number"!==typeof b||0>b||b>this.colors.length-1)return null;this.colors[b]=new g(d);this.drawGrid()},setColors:function(b){if("object"!==typeof b||!b.length)return null;for(var d,v=0;v<this.colors.length;v++)d=b.length>v?v:b.length-1,this.colors[v]=new g(b[d]);this.drawGrid()},getLineWidth:function(b){return"number"!==typeof b||0>b||b>this.lineWidths.length-
1?null:this.lineWidths[b]},setLineWidth:function(b,d){if("number"!==typeof b||"number"!==typeof d||0>b||b>this.lineWidths.length-1)return null;this.lineWidths[b]=d;this.drawGrid()},setLineWidths:function(b){if("object"!==typeof b||!b.length)return null;for(var d,v=0;v<this.lineWidths.length;v++)d=b.length>v?v:b.length-1,"number"===typeof b[d]&&(this.lineWidths[v]=b[d]);this.drawGrid()},getFontSize:function(b){return"number"!==typeof b||0>b||b>this.fontSizes.length-1?null:this.fontSizes[b]},setFontSize:function(b,
d){if("number"!==typeof b||"number"!==typeof d||0>b||b>this.fontSizes.length-1)return null;this.fontSizes[b]=d;this.drawGrid()},setFontSizes:function(b){if("object"!==typeof b||!b.length)return null;for(var d,v=0;v<this.fontSizes.length;v++)d=b.length>v?v:b.length-1,"number"===typeof b[d]&&(this.fontSizes[v]=b[d]);this.drawGrid()},getCenterLabelScaleFactor:function(){return this.centerLabelScaleFactor},setCenterLabelScaleFactor:function(b){"number"===typeof b&&(this.centerLabelScaleFactor=b,this.drawGrid())},
getCenterLabelOpacity:function(){return this.centerLabelOpacity},setCenterLabelOpacity:function(b){"number"===typeof b&&(this.centerLabelOpacity=b,this._centerLabelGraphicsLayer.setOpacity(b),this.drawGrid())},getFontFamily:function(){return this.fontFamily},setFontFamily:function(b){"string"===typeof b&&(this.fontFamily=b,this.drawGrid())},getInterval:function(){return this.currentInterval},setInterval:function(){this.currentInterval=t.getInterval(this.getMinIntervalSpacing(),this.map,this.getLevelOfDetail())},
getMap:function(){return this.map},setMap:f.hitch(this,function(b){this.map.loaded&&this.clearGrid();this.map=b;if(this.enabled&&this.map.loaded)this.enable();else if(this.enabled)this.map.on("load",f.hitch(this,this.enable))}),getLineOpacity:function(){return this.lineOpacity},setLineOpacity:function(b){"number"===typeof b&&(this.lineOpacity=b,this._lineGraphicsLayer.setOpacity(b))},getLabelOpacity:function(){return this.labelOpacity},setLabelOpacity:function(b){"number"===typeof b&&(this.labelOpacity=
b,this._labelGraphicsLayer.setOpacity(b))},getSettings:function(){return{minIntervalSpacing:this.minIntervalSpacing,levelOfDetail:this.levelOfDetail,labelPlacement:this.labelPlacement,verticalLabels:this.verticalLabels,cornerLabelXOffset:this.cornerLabelXOffset,cornerLabelYOffset:this.cornerLabelYOffset,intervalLabelXOffset:this.intervalLabelXOffset,intervalLabelYOffset:this.intervalLabelYOffset,colors:e.map(this.colors,function(b){return b.toHex()}),lineWidths:this.lineWidths,fontSizes:this.fontSizes,
lineOpacity:this.lineOpacity,labelOpacity:this.labelOpacity,centerLabelOpacity:this.centerLabelOpacity,centerLabelScaleFactor:this.centerLabelScaleFactor,fontFamily:this.fontFamily}},enable:function(){var b=this.getMap();this.enabled=!0;b.addLayers(this.getLayers());this._drawEvent=b.on("extent-change",f.hitch(this,function(){this._drawGrid()}));this._drawGrid()},disable:function(){var b=this.getMap();this.enabled=!1;this._drawEvent&&(this._drawEvent.remove(),this._drawEvent=null);this.clearGrid();
for(var d=this.getLayers(),v=0;v<d.length;v++)b.removeLayer(d[v])},clearGrid:function(){var b=this.getMap();if(!b.loaded)var d=b.on("load",f.hitch(this,function(){d.remove();this.clearGrid()}));this._lineGraphicsLayer.clear();this._labelGraphicsLayer.clear();this._centerLabelGraphicsLayer.clear();this._lineGraphics=[];this._labelGraphics=[];this._centerLabelGraphics=[]},drawGrid:function(){this._drawing&&this._drawGrid()},_createExtentFromScreen:function(b,d,v,C){var G=this.map.toScreen(b);d=this.map.toMap(new h(G.x+
d,G.y+v));return new c(b.x,b.y,d.x,d.y,C)},_performOverlapCheck:function(b){for(var d=0;d<b.length;d++)for(var v=d+1;v<b.length;v++)this._doLabelsOverlap(b[d],b[v])&&b[d].symbol.setOffset(0,40)},_doLabelsOverlap:function(b,d){return b&&d?(b=this._createExtentFromScreen(b.geometry,b.symbol.getWidth(),b.symbol.getHeight(),this.map.spatialReference),d=this._createExtentFromScreen(d.geometry,d.symbol.getWidth(),d.symbol.getHeight(),this.map.spatialReference),a.intersects(b,d)):!1},_drawGrid:function(){var b=
this.getMap(),d,v;this._drawing&&clearTimeout(this._drawing);this._drawing=setTimeout(f.hitch(this,function(){if(b.loaded&&this.enabled){v=t.zonesFromExtent(this);this._zoneCount=v.length;this.clearGrid();this.setInterval();this._lineGraphics=[];this._lineGraphics0=[];this._lineGraphics1=[];this._lineGraphics2=[];this._lineGraphics3=[];this._lineGraphics4=[];this._lineGraphics5=[];t.processZonePolygons(v,this);for(d=0;d<this._centerLabelGraphics.length;d++)this._centerLabelGraphicsLayer.add(this._centerLabelGraphics[d]);
e.forEach([this._lineGraphics5,this._lineGraphics4,this._lineGraphics3,this._lineGraphics2,this._lineGraphics1,this._lineGraphics0],function(L){this._lineGraphics=this._lineGraphics.concat(L)},this);for(d=0;d<this._lineGraphics.length;d++)this._lineGraphics[d].geometry=r.project(this._lineGraphics[d].geometry,this._lineGraphicsLayer.spatialReference),this._lineGraphicsLayer.add(this._lineGraphics[d]);this._performOverlapCheck(this._labelGraphics);for(d=0;d<this._labelGraphics.length;d++){this._labelGraphics[d].geometry=
r.project(this._labelGraphics[d].geometry,this._lineGraphicsLayer.spatialReference);this._labelGraphicsLayer.add(this._labelGraphics[d]);var C=this._labelGraphics[d].getNode();if(C){var G=this._labelGraphics[d].symbol.color;G=128<.2126*G.r+.7152*G.g+.0722*G.b?"black":"white";p.has("ie")||p.has("edge")?C.className+=" text-symbol-halo-"+G:C.classList.add("text-symbol-halo-"+G)}}delete this._lineGraphics;delete this._lineGraphics0;delete this._lineGraphics1;delete this._lineGraphics2;delete this._lineGraphics3;
delete this._lineGraphics4;delete this._lineGraphics5}}),50)}})})},"widgets/GridOverlay/lib/mgrs-utils":function(){define("dojo/json ./constants ./geometry-utils ./labeling-utils ./mgrs ./NonPolarGridZone ./VisibleGridZone ./GridPolygon esri/geometry/geometryEngine esri/graphic esri/geometry/Point esri/geometry/Polyline esri/geometry/Polygon esri/symbols/SimpleLineSymbol esri/symbols/TextSymbol esri/symbols/Font esri/Color".split(" "),function(F,f,e,t,k,a,c,h,g,r,p,b,d,v,C,G,L){return{_ZonesDictionary:function(){var l,
x,u,B="CDEFGHJKLMNPQRSTUVWX".split(""),y={};for(l=1;60>=l;l++)for(x=0;x<B.length;x++){var m=u=void 0,q=void 0,n=void 0;u=void 0;var z=l+B[x];"32X"===z||"34X"===z||"36X"===z?u=null:("31V"===z?u={xmin:0,ymin:56,xmax:3,ymax:64,id:z}:"32V"===z?u={xmin:3,ymin:56,xmax:12,ymax:64,id:z}:"31X"===z?u={xmin:0,ymin:72,xmax:9,ymax:84,id:z}:"33X"===z?u={xmin:9,ymin:72,xmax:21,ymax:84,id:z}:"35X"===z?u={xmin:21,ymin:72,xmax:33,ymax:84,id:z}:"37X"===z?u={xmin:33,ymin:72,xmax:42,ymax:84,id:z}:(n=(l-1)*f.ZONE_WIDTH_DEGREES-
180,q=l*f.ZONE_WIDTH_DEGREES-180,m=x*f.ZONE_HEIGHT_DEGREES+f.MIN_MGRS_LATITUDE,u=(x+1)*f.ZONE_HEIGHT_DEGREES+f.MIN_MGRS_LATITUDE,n=180===n?f.POSITIVE_180:n,n=-180===n?f.NEGATIVE_180:n,q=180===q?f.POSITIVE_180:q,q=-180===q?f.NEGATIVE_180:q,80===u&&(u=f.MAX_MGRS_LATITUDE),u={xmin:n,ymin:m,xmax:q,ymax:u,id:z}),u=new a(u));u&&(y[u.id]=u)}return y}(),getInterval:function(l,x,u){var B=0;var y=x.getResolutionInMeters()*l;var m=x.extent.getCenter();var q=x.toMap(x.toScreen(m).offset(0,l/2));for(y=x.toMap(x.toScreen(m).offset(0,
-l/2));84<=q.getLatitude()||84<=y.getLatitude();)B++,q=x.toMap(x.toScreen(m).offset(0,l/2+B*l)),y=x.toMap(x.toScreen(m).offset(0,-l/2+B*l));for(;-80>=q.getLatitude()||-80>=y.getLatitude();)B++,q=x.toMap(x.toScreen(m).offset(0,l/2-B*l)),y=x.toMap(x.toScreen(m).offset(0,-l/2-B*l));l=q.getLatitude();x=q.getLongitude();q=y.getLatitude();B=y.getLongitude();y=k.getZoneNumber(l,x);y=Math.abs(k.LLtoUTM(l,x,y)[1]-k.LLtoUTM(q,B,y)[1]);l=Math.log10(y);switch(u){case "more":u=Math.floor(l);break;case "less":case "strict":u=
Math.ceil(l);break;default:u=Math.round(l)}u=Math.pow(10,u);y>2*u&&(u*=10);return 1E5<u?!1:u},zonesFromExtent:function(l){var x;var u=l.map.extent;var B=u.spatialReference.isWebMercator()?f.WEBMERCATOR_360:f.GEOGRAPHIC_360,y={xOffset:l.getCornerLabelXOffset(),yOffset:l.getCornerLabelYOffset(),rotation:0,color:l.getColor(0),fontFamily:l.getFontFamily(),fontSize:l.getFontSize(0)},m="CDEFGHJKLMNPQRSTUVWX".split(""),q=[];if(u.xmax-u.xmin>B)return q;B=e.extentToPolygon(u);B=e.toWebMercator(B);var n=e.pointToGeographic(new p([u.xmin,
u.ymin],u.spatialReference)),z=e.pointToGeographic(new p([u.xmax,u.ymax],u.spatialReference));u=n.y;var J=z.y;var O=n.offsetX;var H=z.offsetX;for(var A=O;A<=H;A++){var I=A>O?f.NEGATIVE_180:n.x;var E=A<H?f.POSITIVE_180:z.x;var D=Math.min(Math.max(Math.floor((u+80)/f.ZONE_HEIGHT_DEGREES),0),19);var M=Math.min(Math.floor((J+80)/f.ZONE_HEIGHT_DEGREES),19);I=Math.floor((I+180)/f.ZONE_WIDTH_DEGREES);for(E=Math.min(Math.floor((E+180)/f.ZONE_WIDTH_DEGREES)+2,60);I<=E;I++)for(var Q=D;Q<=M;Q++){var N=m[Q];
N=I+N;if(this._ZonesDictionary[N]){var P=F.parse(F.stringify(this._ZonesDictionary[N]._rings));for(x=0;x<P[0].length;x++)P[0][x][0]+=A*f.GEOGRAPHIC_360;x=new d({rings:P});var w=new b({paths:P});if(P=g.intersect(e.toWebMercator(x),B))x=g.intersect(e.toWebMercator(w),B),q.push(new c({map:l.map,polyline:x,polygon:P,offset:A,nonPolarGridZone:this._ZonesDictionary[N],labelParameters:y}))}}}return q},processZonePolygons:function(l,x){for(var u={},B=x.getInterval(),y=0;y<l.length;y++){var m=l[y];m&&(this.handleZonePolygon(m,
x),B&&(u[m.nonPolarGridZone.utmZone]?u[m.nonPolarGridZone.utmZone].polygon=g.union([e.toWebMercator(m.polygon),u[m.nonPolarGridZone.utmZone].polygon]):u[m.nonPolarGridZone.utmZone]={polygon:e.toWebMercator(m.polygon),offset:m.offset}))}if(B)for(l=Object.keys(u),y=0;y<l.length;y++){m=l[y];var q=u[m].polygon,n=u[m].offset,z=e.toGeographic(q.getExtent()),J=k.LLtoUTM(z.ymin,z.xmin,m),O=k.LLtoUTM(z.ymin,z.xmax,m),H=k.LLtoUTM(z.ymax,z.xmax,m);z=k.LLtoUTM(z.ymax,z.xmin,m);m={minE:Math.min(J[0],O[0],H[0],
z[0]),maxE:Math.max(J[0],O[0],H[0],z[0]),minN:Math.min(J[1],O[1],H[1],z[1]),maxN:Math.max(J[1],O[1],H[1],z[1]),utmZone:m,polygon:q,offset:n,grid:x};this.handle100kGrids(m);1E5>B&&this.handleIntervals(m)}},handleZonePolygon:function(l,x){var u=l.polyline;var B=x.getColor(0);var y=x.getLineWidth(0);x._lineGraphics0.push(new r(u,new v(v.STYLE_SOLID,new L(B),y)));36978596<x.map.getScale()||x._labelGraphics.push(l.getCenterLabel(!0))},handle100kGrids:function(l){var x=l.polygon,u=l.offset,B=l.utmZone,
y=l.minE,m=l.maxE,q=l.minN,n=l.maxN;l=l.grid;var z=l.getColor(1),J=l.getLineWidth(1),O=l.getMap(),H,A;for(q=1E5*Math.floor(q/1E5);q<n;q+=1E5)for(H=1E5*Math.floor(y/1E5);H<m;H+=1E5){var I=k.findGridLetters(B,0>q+5E4?1E7+(q+5E4):q+5E4,H+5E4);var E=[];for(A=H;A<=H+1E5;A+=1E4){var D=k.UTMtoLL(q,A,B);E.push([D.lon,D.lat])}for(A=q;A<q+1E5;A+=1E4)D=k.UTMtoLL(A,H+1E5,B),E.push([D.lon,D.lat]);for(A=H+1E5;A>=H;A-=1E4)D=k.UTMtoLL(q+1E5,A,B),E.push([D.lon,D.lat]);for(A=q+1E5;A>=q;A-=1E4)D=k.UTMtoLL(A,H,B),E.push([D.lon,
D.lat]);for(A=0;A<E.length;A++)E[A][0]+=u*f.GEOGRAPHIC_360;E=new d([E]);A=e.polygonToPolyline(E);D=g.intersect(e.toWebMercator(E),e.toWebMercator(x));A=g.intersect(e.toWebMercator(A),e.toWebMercator(x));if(D&&(I={clippedPolygon:D,unclippedPolygon:E,map:O,xmin:H%1E6,ymin:q%1E6,xmax:(H+1E5)%1E6,ymax:(q+1E5)%1E6,minMaxType:"utm",utmZone:B,text:I,labelParameters:{xOffset:10,yOffset:10,rotation:0,color:l.getColor(1),fontFamily:l.getFontFamily(),fontSize:l.getFontSize(1)}},I=new h(I),!(4622324<l.map.getScale())))for(I=
[I.getCenterLabel(!0)],A&&l._lineGraphics1.push(new r(A,new v(v.STYLE_SOLID,new L(z),J))),A=0;A<I.length;A++)l._labelGraphics.push(I[A])}},handleIntervals:function(l){var x=l.polygon,u=l.utmZone,B=l.offset,y=l.minE,m=l.maxE,q=l.minN,n=l.maxN;l=l.grid;var z=l.getFontFamily(),J=l.getIntervalLabelXOffset(),O=l.getIntervalLabelYOffset(),H=l.getInterval(),A=l.getMap(),I=l.getVerticalLabels(),E;for(E=Math.floor(q/H)*H;E<=n;E+=H)if(0!==E%1E5){if(0===E%1E4){var D=2;var M=l._lineGraphics2}else 0===E%1E3?(D=
3,M=l._lineGraphics3):0===E%100?(D=4,M=l._lineGraphics4):(D=5,M=l._lineGraphics5);var Q=l.getColor(D);var N=l.getLineWidth(D);D=l.getFontSize(D);var P=new G(D,G.STYLE_NORMAL,G.VARIANT_NORMAL,G.WEIGHT_BOLD,z);var w=[];var K=k.UTMtoLL(E,y,u);var R=k.UTMtoLL(E,m,u);for(K=0;K<m;K+=1E4){var S=k.UTMtoLL(E,y+K,u);w.push([S.lon,S.lat])}w.push([R.lon,R.lat]);for(K=0;K<w.length;K++)w[K][0]+=B*f.GEOGRAPHIC_360;if(R=g.intersect(e.toWebMercator(new b([w])),e.toWebMercator(x))){N=new r(R,new v(v.STYLE_SOLID,new L(Q),
N));M.push(N);M=t.padZero((0>q?1E7+E:E)%1E5/H,5-Math.log10(H));w=R.paths[0];K=new p({x:w[0][0]+.001,y:w[0][1],spatialReference:R.spatialReference});R=new p({x:w[w.length-1][0]-.001,y:w[w.length-1][1],spatialReference:R.spatialReference});N=t.screenDistanceBetweenPoints(K,R,A).horizontal;w=t.distanceFromMapEdge(K,A).horizontal;if(2>w||200<w&&300<N)w=(new C(M)).setAngle(0).setColor(Q).setOffset(J,-(D/1.333)/2).setAlign("start").setFont(P),w=new r(K,w),l._labelGraphics.push(w);w=t.distanceFromMapEdge(R,
A).horizontal;if(2>w||200<w&&300<N)w=(new C(M)).setAngle(0).setColor(Q).setOffset(-J,-(D/1.333)/2).setAlign("end").setFont(P),w=new r(R,w),l._labelGraphics.push(w)}}for(y=Math.floor(y/H)*H;y<=m;y+=H)if(0!==y%1E5){0===y%1E4?(D=2,M=l._lineGraphics2):0===y%1E3?(D=3,M=l._lineGraphics3):0===y%100?(D=4,M=l._lineGraphics4):(D=5,M=l._lineGraphics5);Q=l.getColor(D);N=l.getLineWidth(D);D=l.getFontSize(D);P=new G(D,G.STYLE_NORMAL,G.VARIANT_NORMAL,G.WEIGHT_BOLD,z);w=[];E=k.UTMtoLL(q-1E4,y,u);J=k.UTMtoLL(n+1E4,
y,u);w.push([E.lon,E.lat]);w.push([J.lon,J.lat]);for(K=0;K<w.length;K++)w[K][0]+=B*f.GEOGRAPHIC_360;if(J=g.intersect(e.toWebMercator(new b([w])),e.toWebMercator(x))){E=new r(J,new v(v.STYLE_SOLID,new L(Q),N));M.push(E);M=t.padZero(y%1E5/H,5-Math.log10(H));w=J.paths[0];E=new p({x:w[0][0],y:w[0][1]+.001,spatialReference:{wkid:102100}});J=new p({x:w[w.length-1][0],y:w[w.length-1][1]-.001,spatialReference:{wkid:102100}});N=t.screenDistanceBetweenPoints(E,J,A).vertical;w=t.distanceFromMapEdge(E,A).vertical;
if(2>w||200<w&&300<N)w=(new C(M)).setAngle(I?90:0).setColor(Q).setOffset(I?-(D/1.333)/2:0,O).setAlign(I?"end":"middle").setFont(P),w=new r(E,w),l._labelGraphics.push(w);w=t.distanceFromMapEdge(J,A).vertical;if(2>w||200<w&&300<N)w=(new C(M)).setAngle(I?90:0).setColor(Q).setOffset(I?-(D/1.333)/2:0,I?-O:-O-D/1.333).setAlign(I?"start":"middle").setFont(P),w=new r(J,w),l._labelGraphics.push(w)}}}}})},"widgets/GridOverlay/lib/constants":function(){define([],function(){return{ZONE_WIDTH_DEGREES:6,ZONE_HEIGHT_DEGREES:8,
MIN_MGRS_LATITUDE:-80,MAX_MGRS_LATITUDE:84,POSITIVE_180:179.99999999,NEGATIVE_180:-179.99999999,WEST_GEOGRAPHIC_LIMIT:-180,EAST_GEOGRAPHIC_LIMIT:180,GEOGRAPHIC_360:360,WEST_WEBMERCATOR_LIMIT:-2.0037508342789244E7,EAST_WEBMERCATOR_LIMIT:2.0037508342789244E7,WEBMERCATOR_360:4.007501668557849E7,DEGREES_PER_RADIAN:57.29577951308232,RADIANS_PER_DEGREE:.017453292519943295,WGS84_EQUATORIAL_RADIUS:6378137,WGS84_HALF_EQUATORIAL_RADIUS:3189068.5,HALF_PI:1.5707963267948966}})},"widgets/GridOverlay/lib/geometry-utils":function(){define(["./constants",
"esri/geometry/webMercatorUtils","esri/geometry/Polyline","esri/geometry/Polygon"],function(F,f,e,t){return{toGeographic:function(k){return k.spatialReference.isWebMercator()?f.webMercatorToGeographic(k):k},toWebMercator:function(k){return k.spatialReference.isWebMercator()?k:f.geographicToWebMercator(k)},_latitudeToWebMercatorY:function(k){return F.GEOGRAPHIC_360/2*(F.HALF_PI-2*Math.atan(Math.exp(-1*k/F.WGS84_EQUATORIAL_RADIUS)))/Math.PI},_longitudeToWebMercatorX:function(k){var a=F.GEOGRAPHIC_360,
c=F.GEOGRAPHIC_360/2,h=F.WGS84_EQUATORIAL_RADIUS;return k/h*c/Math.PI-Math.floor((k/h*c/Math.PI+c)/a)*a},pointToGeographic:function(k){for(var a=k.x,c=k.y,h=(k=k.spatialReference.isWebMercator())?F.WEST_WEBMERCATOR_LIMIT:F.WEST_GEOGRAPHIC_LIMIT,g=k?F.EAST_WEBMERCATOR_LIMIT:F.EAST_GEOGRAPHIC_LIMIT,r=k?F.WEBMERCATOR_360:F.GEOGRAPHIC_360,p=0;a<=h;)a+=r,--p;for(;a>g;)a-=r,p+=1;k&&(a=this._longitudeToWebMercatorX(a),c=this._latitudeToWebMercatorY(c));return{x:a,y:c,offsetX:p}},extentToPolygon:function(k){return new t({rings:[[[k.xmin,
k.ymin],[k.xmax,k.ymin],[k.xmax,k.ymax],[k.xmin,k.ymax],[k.xmin,k.ymin]]],spatialReference:k.spatialReference})},polygonToPolyline:function(k){return new e({paths:k.rings,spatialReference:{wkid:k.spatialReference.wkid}})}}})},"widgets/GridOverlay/lib/labeling-utils":function(){define(["./mgrs","esri/geometry/Point"],function(F,f){var e=document.createElement("canvas").getContext("2d");return{getWidthOfText:function(t,k,a){e.font=a+"px "+k;return e.measureText(t).width},padZero:function(t,k){for(t=
t.toString();t.length<k;)t="0"+t;return t},getScreenSize:function(t,k){var a=t.getExtent();t=new f([a.xmin,a.ymin],a.spatialReference);a=new f([a.xmax,a.ymax],a.spatialReference);t=k.toScreen(t);k=k.toScreen(a);return{width:Math.abs(k.x-t.x),height:Math.abs(k.y-t.y)}},distanceFromMapEdge:function(t,k){var a=k.toScreen(t);"undefined"===typeof F&&(F=!0);var c=Math.min(Math.abs(k.width-a.x),Math.abs(a.x));k=Math.min(Math.abs(k.height-a.y),Math.abs(a.y));F&&(t=Math.round(1E4*t.getLatitude())/1E4,84===
t||-80===t)&&(k=0);return{horizontal:c,vertical:k,total:Math.sqrt(c*c+k*k)}},screenDistanceBetweenPoints:function(t,k,a){t=a.toScreen(t);a=a.toScreen(k);k=Math.abs(t.x-a.x);t=Math.abs(t.y-a.y);return{horizontal:k,vertical:t,total:Math.sqrt(k*k+t*t)}}}})},"widgets/GridOverlay/lib/mgrs":function(){define(["esri/geometry/Point"],function(F){var f=6378137;var e=.00669437999;var t=e/(1-e);var k=(1-Math.sqrt(1-e))/(1+Math.sqrt(1-e));return{setSpheroid:function(a){a=a.toUpperCase();switch(a){case "AIRY 1830":f=
6377563.396;e=.00667053999998536;break;case "AIRY MODIFIED":f=6377340.189;e=.00667053999998536;break;case "AVERAGE TERRESTRIAL SYSTEM 1977":f=6378135;e=.00669438499958795;break;case "AUSTRALIAN NATIONAL":f=6378160;e=.00669454185458764;break;case "BESSEL 1841":f=6377397.155;e=.00667437223180214;break;case "BESSEL MODIFIED":f=6377492.018;e=.00667437223180214;break;case "BESSEL NAMIBIA":f=6377483.865;e=.00667437223180214;break;case "CLARKE 1858":f=6378293.639;e=.00678514600473303;break;case "NAD27":case "CLARKE 1866":f=
6378206.4;e=.00676865799760964;break;case "CLARKE 1866 MICHIGAN":f=6378450.047;e=.00676865830738507;break;case "CLARKE 1880":f=6378249.138;e=.00680348101883452;break;case "CLARKE 1880 (ARC)":f=6378249.145;e=.00680348101883452;break;case "CLARKE 1880 (BENOIT)":f=6378300.79;e=.00680348271028565;break;case "CLARKE 1880 (IGN)":f=6378249.2;e=.00680348767623919;break;case "CLARKE 1880 (RGS)":f=6378249.145;e=.00680351128284906;break;case "CLARKE 1880 (SGA)":f=6378249.2;e=.00680348860198551;break;case "EVEREST 1830 (DEFINITION)":f=
6377299.36;e=.00663784663019969;break;case "EVEREST 1830 (MODIFIED)":f=6377304.063;e=.00663784663019969;break;case "EVEREST (ADJUSTMENT 1937)":f=6377276.345;e=.00663784663019969;break;case "EVEREST (DEFINITION 1962)":f=6377301.243;e=.00663784606842344;break;case "EVEREST (DEFINITION 1967)":f=6377298.556;e=.00663784663019969;break;case "EVEREST (DEFINITION 1975)":f=6377299.151;e=.00663784606842344;break;case "NAD83":case "GEM GRAVITY POTENTIAL MODEL":case "GRS 1980":f=6378137;e=.00669438002290079;
break;case "GRS 1967 \x3d INTERNATIONAL 1967":f=6378160;e=.00669460532856765;break;case "HELMERT 1906":f=6378200;e=.00669342162296594;break;case "INDONESIAN NATIONAL":f=6378160;e=.0066946090804091;break;case "INTERNATIONAL 1924":f=6378388;e=.00672267002233332;break;case "INTERNATIONAL 1967":f=6378160;e=.00669454185458764;break;case "KRASOVSKY 1940":f=6378245;e=.00669342162296594;break;case "TRANSIT PRECISE EPHEMERIS":f=6378145;e=.00669454185458764;break;case "OSU 1986 GEOIDAL MODEL":f=6378136.2;e=
.00669438006997852;break;case "OSU 1991 GEOIDAL MODEL":f=6378136.3;e=.00669438006997852;break;case "PLESSIS 1817":f=6376523;e=.00646954373789485;break;case "STRUVE 1860":f=6378298.3;e=.00677435980080942;break;case "WAR OFFICE":f=6378300.583;e=.00674534331628926;break;case "NWL-10D \x3d\x3d WGS 1972":f=6378135;e=.00669431777826672;break;case "WGS 1972":f=6378135;e=.00669431777826672;break;case "WGS84":case "WGS 1984":f=6378137;e=.00669437999014132;break;case "WGS 1966":f=6378145;e=.00669454185458764;
break;case "FISCHER 1960":f=6378166;e=.00669342162296594;break;case "FISCHER 1968":f=6378150;e=.00669342162296594;break;case "FISCHER MODIFIED":f=6378155;e=.00669342162296594;break;case "HOUGH 1960":f=6378270;e=.00672267002233332;break;case "EVEREST MODIFIED 1969":f=6377295.664;e=.00663784663019969;break;case "WALBECK":f=6376896;e=.00659454809414964;break;case "GRS 1967 TRUNCATED":f=6378160,e=.00669454185458764}t=e/(1-e);k=(1-Math.sqrt(1-e))/(1+Math.sqrt(1-e))},getSpheroidList:function(){return"AIRY 1830;AIRY MODIFIED;AUSTRALIAN NATIONAL;AVERAGE TERRESTRIAL SYSTEM 1977;BESSEL 1841;BESSEL MODIFIED;BESSEL NAMIBIA;CLARKE 1858;CLARKE 1866 MICHIGAN;CLARKE 1866;CLARKE 1880 (ARC);CLARKE 1880 (BENOIT);CLARKE 1880 (IGN);CLARKE 1880 (RGS);CLARKE 1880 (SGA);CLARKE 1880;EVEREST (ADJUSTMENT 1937);EVEREST (DEFINITION 1962);EVEREST (DEFINITION 1967);EVEREST (DEFINITION 1975);EVEREST 1830 (DEFINITION);EVEREST 1830 (MODIFIED);EVEREST MODIFIED 1969;FISCHER 1960;FISCHER 1968;FISCHER MODIFIED;GEM GRAVITY POTENTIAL MODEL;GRS 1967 \x3d INTERNATIONAL 1967;GRS 1967 TRUNCATED;GRS 1980;HELMERT 1906;HOUGH 1960;INDONESIAN NATIONAL;INTERNATIONAL 1924;INTERNATIONAL 1967;KRASOVSKY 1940;NWL-10D \x3d\x3d WGS 1972;OSU 1986 GEOIDAL MODEL;OSU 1991 GEOIDAL MODEL;PLESSIS 1817;STRUVE 1860;TRANSIT PRECISE EPHEMERIS;WALBECK;WAR OFFICE;WGS 1966;WGS 1972;WGS 1984".split(";")},
getZoneNumber:function(a,c){a=parseFloat(a);c=parseFloat(c);if(360<c||-180>c){for(;-180>c;)c+=360;for(;180<c;)c-=360}(360<c||-180>c||90<a||-90>a)&&console.error("Bad input. lat: "+a+" lon: "+c);c=c+180-360*Math.floor((c+180)/360)-180;var h=Math.floor((c+180)/6)+1;56<=a&&64>a&&3<=c&&12>c&&(h=32);72<=a&&84>a&&(0<=c&&9>c?h=31:9<=c&&21>c?h=33:21<=c&&33>c?h=35:33<=c&&42>c&&(h=37));return h},LLtoUTM:function(a,c,h){a=parseFloat(a);c=parseFloat(c);if(84<a||-80>a)return"undefined, ensure 84N \x3e Lat \x3e 80S";
if(360<c||-180>c){for(;-180>c;)c+=360;for(;180<c;)c-=360}(360<c||-180>c||90<a||-90>a)&&console.error("Bad input. lat: "+a+" lon: "+c);var g=c+180-360*Math.floor((c+180)/360)-180;var r=a*Math.PI/180;g=g*Math.PI/180;c=h?h:this.getZoneNumber(a,c);h=(6*(c-1)-180+3)*Math.PI/180;this.UTMLetterDesignator(a);a=f/Math.sqrt(1-e*Math.sin(r)*Math.sin(r));var p=Math.tan(r)*Math.tan(r);var b=t*Math.cos(r)*Math.cos(r);g=Math.cos(r)*(g-h);return[.9996*a*(g+(1-p+b)*g*g*g/6+(5-18*p+p*p+72*b-58*t)*g*g*g*g*g/120)+5E5,
.9996*(f*((1-e/4-3*e*e/64-5*e*e*e/256)*r-(3*e/8+3*e*e/32+45*e*e*e/1024)*Math.sin(2*r)+(15*e*e/256+45*e*e*e/1024)*Math.sin(4*r)-35*e*e*e/3072*Math.sin(6*r))+a*Math.tan(r)*(g*g/2+(5-p+9*b+4*b*b)*g*g*g*g/24+(61-58*p+p*p+600*b-330*t)*g*g*g*g*g*g/720)),c]},LLtoUSNG:function(a,c,h,g){h=h||5;var r=g?g:this.getZoneNumber(a,c);a=parseFloat(a);c=parseFloat(c);var p=this.LLtoUTM(a,c,r);g=p[0];var b=p[1];0>a&&(b+=1E7);p=this.findGridLetters(r,b,g);r=Math.round(b)%1E5;g=Math.round(g)%1E5;r=Math.floor(r/Math.pow(10,
5-h));g=Math.floor(g/Math.pow(10,5-h));a=this.getZoneNumber(a,c)+this.UTMLetterDesignator(a)+" "+p+" ";for(c=String(g).length;c<h;c++)a+="0";a+=g+" ";for(c=String(r).length;c<h;c++)a+="0";return a+r},UTMLetterDesignator:function(a){a=parseFloat(a);return 84>=a&&72<=a?"X":72>a&&64<=a?"W":64>a&&56<=a?"V":56>a&&48<=a?"U":48>a&&40<=a?"T":40>a&&32<=a?"S":32>a&&24<=a?"R":24>a&&16<=a?"Q":16>a&&8<=a?"P":8>a&&0<=a?"N":0>a&&-8<=a?"M":-8>a&&-16<=a?"L":-16>a&&-24<=a?"K":-24>a&&-32<=a?"J":-32>a&&-40<=a?"H":-40>
a&&-48<=a?"G":-48>a&&-56<=a?"F":-56>a&&-64<=a?"E":-64>a&&-72<=a?"D":-72>a&&-80<=a?"C":"Z"},findSet:function(a){a=parseInt(a,10);switch(a%6){case 0:return 6;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;default:return-1}},findGridLetters:function(a,c,h){a=parseInt(a,10);c=parseFloat(c);h=parseFloat(h);var g=1;for(c=Math.round(c);1E5<=c;)c-=1E5,g++;g%=20;c=0;for(h=Math.round(h);1E5<=h;)h-=1E5,c++;c%=8;return this.lettersHelper(this.findSet(a),g,c)},lettersHelper:function(a,
c,h){0===c?c=19:c--;0===h?h=7:h--;switch(a){case 1:return a="ABCDEFGHJKLMNPQRSTUV","ABCDEFGH".charAt(h)+a.charAt(c);case 2:return a="FGHJKLMNPQRSTUVABCDE","JKLMNPQR".charAt(h)+a.charAt(c);case 3:return a="ABCDEFGHJKLMNPQRSTUV","STUVWXYZ".charAt(h)+a.charAt(c);case 4:return a="FGHJKLMNPQRSTUVABCDE","ABCDEFGH".charAt(h)+a.charAt(c);case 5:return a="ABCDEFGHJKLMNPQRSTUV","JKLMNPQR".charAt(h)+a.charAt(c);case 6:return a="FGHJKLMNPQRSTUVABCDE","STUVWXYZ".charAt(h)+a.charAt(c)}},UTMtoLL:function(a,c,h){c=
parseFloat(c)-5E5;a=parseFloat(a);h=parseInt(h,10);a=a/.9996/(f*(1-e/4-3*e*e/64-5*e*e*e/256));a=a+(3*k/2-27*k*k*k/32)*Math.sin(2*a)+(21*k*k/16-55*k*k*k*k/32)*Math.sin(4*a)+151*k*k*k/96*Math.sin(6*a);var g=f/Math.sqrt(1-e*Math.sin(a)*Math.sin(a)),r=Math.tan(a)*Math.tan(a),p=t*Math.cos(a)*Math.cos(a),b=c/(.9996*g);c=a-g*Math.tan(a)/(f*(1-e)/Math.pow(1-e*Math.sin(a)*Math.sin(a),1.5))*(b*b/2-(5+3*r+10*p-4*p*p-9*t)*b*b*b*b/24+(61+90*r+298*p+45*r*r-252*t-3*p*p)*b*b*b*b*b*b/720);c=180*c/Math.PI;a=(b-(1+
2*r+p)*b*b*b/6+(5-2*p+28*r-3*p*p+8*t+24*r*r)*b*b*b*b*b/120)/Math.cos(a);a=6*(h-1)-180+3+180*a/Math.PI;h={};h.lat=c;h.lon=a;return h},USNGtoUTM:function(a,c,h,g,r,p){h=1+"ABCDEFGHJKLMNPQRSTUVWXYZ".indexOf(h)%8;var b="CDEFGHJKLMNPQRSTUVWX".indexOf(c);g=a%2?"ABCDEFGHJKLMNPQRSTUV".indexOf(g):"FGHJKLMNPQRSTUVABCDE".indexOf(g);g=Number([0,2,2,2,4,4,6,6,8,8,0,0,0,2,2,4,4,6,6,6][b])+g/10;g<[1.1,2,2.9,3.8,4.7,5.6,6.5,7.3,8.2,9.1,0,.8,1.7,2.6,3.5,4.4,5.3,6.2,7,7.9][b]&&(g+=2);b={};b.N=1E6*g+Number(p)*Math.pow(10,
5-p.length);b.E=1E5*h+Number(r)*Math.pow(10,5-r.length);b.zone=a;b.letter=c;return b},USNGtoLL:function(a){a=this.parseUSNG_str(a);var c=this.USNGtoUTM(a.zone,a.ltr,a.sq1,a.sq2,a.east,a.north);"N">a.ltr&&(c.N-=1E7);c=this.UTMtoLL(c.N,c.E,a.zone);return[c.lat,c.lon]},parseUSNG_str:function(a){var c=[];a=a.toUpperCase();c=/%20/g;c=a.replace(c,"");c=/ /g;c=a.replace(c,"");if(7>c.length)return 0;a={};var h=0;a.zone=10*c.charAt(h++)+1*c.charAt(h++);a.ltr=c.charAt(h++);a.sq1=c.charAt(h++);a.sq2=c.charAt(h++);
a.precision=(c.length-h)/2;a.east="";a.north="";for(var g=0;g<a.precision;g++)a.east+=c.charAt(h++);" "===c[h]&&h++;for(g=0;g<a.precision;g++)a.north+=c.charAt(h++);return a},isUSNG:function(a){a=a.toUpperCase();var c=/%20/g;a=a.replace(c,"");c=/ /g;a=a.replace(c,"");if(15<a.length)return 0;c=/^[0-9]{2}[CDEFGHJKLMNPQRSTUVWX]$/;if(a.match(c))return 0;c=/^[0-9]{2}[CDEFGHJKLMNPQRSTUVWX][ABCDEFGHJKLMNPQRSTUVWXYZ][ABCDEFGHJKLMNPQRSTUV]([0-9][0-9]){0,5}/;return!a.match(c)||7>a.length?0:a},LLtoMGRS:function(a,
c,h){return this.LLtoUSNG(a,c,h||5).replace(/ /g,"")},USNGtoPoint:function(a){a=this.USNGtoLL(a);return new F(a[1],a[0])},pointToUSNG:function(a,c){var h=a.getLatitude();a=a.getLongitude();return this.LLtoUSNG(h,a,c)},LLtoUSNG_nad27:function(a,c,h){return this.LLtoUSNG(a,c,h||5)+" (NAD27)"}}})},"widgets/GridOverlay/lib/NonPolarGridZone":function(){define("dojo/_base/declare dojo/json ./constants esri/geometry/Polygon esri/geometry/Polyline esri/geometry/Extent".split(" "),function(F,f,e,t,k,a){return F(null,
{extent:null,id:null,utmZone:null,latitudeZone:null,_rings:[],constructor:function(c){var h=c.id.match(/(\d+)|([A-Za-z]+)/g);this.id=c.id;this.utmZone=1*h[0];this.latitudeZone=h[1];this.extent=new a({xmin:c.xmin,ymin:c.ymin,xmax:c.xmax,ymax:c.ymax,spatialReference:c.spatialReference||{wkid:4326}});c=[this.extent.xmin,this.extent.ymin];this._rings=[[c,[this.extent.xmax,this.extent.ymin],[this.extent.xmax,this.extent.ymax],[this.extent.xmin,this.extent.ymax],c]]},toPolygon:function(c){var h=f.parse(f.stringify(this._rings));
if(c)for(var g=0;g<h[0].length;g++)h[0][g][0]+=c*e.GEOGRAPHIC_360;return new t({rings:h,spatialReference:this.spatialReference})},toPolyline:function(c){var h=f.parse(f.stringify(this._rings));if(c)for(var g=0;g<h[0].length;g++)h[0][g][0]+=c*e.GEOGRAPHIC_360;return new k({paths:h,spatialReference:this.spatialReference})}})})},"widgets/GridOverlay/lib/VisibleGridZone":function(){define(["dojo/_base/declare","./GridPolygon"],function(F,f){return F(null,{polyline:null,polygon:null,offset:null,nonPolarGridZone:null,
map:null,constructor:function(e){this.offset=Math.round(e.offset);this.polyline=e.polyline;this.polygon=e.polygon;this.nonPolarGridZone=e.nonPolarGridZone;this.map=e.map;e={clippedPolygon:this.polygon,unclippedPolygon:this.nonPolarGridZone.toPolygon(e.offset),map:this.map,xmin:this.nonPolarGridZone.extent.xmin,ymin:this.nonPolarGridZone.extent.ymin,xmax:this.nonPolarGridZone.extent.xmax,ymax:this.nonPolarGridZone.extent.ymax,minMaxType:"degrees",utmZone:0,text:this.nonPolarGridZone.id,labelParameters:e.labelParameters};
this.gridPolygon=new f(e)},getLabels:function(){return this.gridPolygon.getLabels(!0)},getCenterLabel:function(){return this.gridPolygon.getCenterLabel(!0)}})})},"widgets/GridOverlay/lib/GridPolygon":function(){define(["dojo/_base/declare","./mgrs","./labeling-utils","./LabelElement","esri/geometry/Point"],function(F,f,e,t,k){return F(null,{clippedPolygon:null,unclippedPolygon:null,map:null,xmin:0,ymin:0,xmax:0,ymax:0,minMaxType:"",utmZone:0,text:"",color:null,labelParameters:null,_centerLabelSet:!1,
_centerLabel:null,_labelsSet:!1,_labels:[],_cornerLabels:[],_borderLabels:[],_interiorLabels:[],candidatePoint:null,constructor:function(a){this.unclippedPolygon=a.unclippedPolygon;this.clippedPolygon=a.clippedPolygon;this.map=a.map;this.xmin=a.xmin;this.ymin=a.ymin;this.xmax=a.xmax;this.ymax=a.ymax;this.minMaxType=a.minMaxType;this.utmZone=Math.round(a.utmZone);this.text=a.text;this.labelParameters=a.labelParameters;this._cornerLabels=[];this._borderLabels=[];this._interiorLabels=[];this._centerLabel=
null;this._labelsSet=this._centerLabelSet=!1},getLabels:function(a){a=a||!1;this._labelsSet||(this._cornerLabels=this.setLabels(a),this._labelsSet=!0);a=0<this._cornerLabels.length?this._cornerLabels:0<this._borderLabels.length?this._borderLabels:this._interiorLabels;for(var c=0;c<a.length;c++)a[c]=a[c].getLabelGraphic();return a},getCenterLabel:function(a){this._centerLabelSet||(this.setCenterLabel(a),this._centerLabelSet=!0);return this._centerLabel.getLabelGraphic()},setCenterLabel:function(a){a=
a?this.clippedPolygon:this.unclippedPolygon;var c={xOffset:0,yOffset:0,rotation:0,color:this.labelParameters.color,fontFamily:this.labelParameters.fontFamily,fontSize:this.labelParameters.fontSize};this._centerLabel=new t({map:this.map,point:a.getCentroid(),labelParameters:c,text:this.text,verticalAlign:"middle",horizontalAlign:"middle"});c=new t({map:this._centerLabel.map,point:this._centerLabel.point,labelParameters:c,text:"utm"===this.minMaxType?"WW":"22W",verticalAlign:"middle",horizontalAlign:"middle"});
c.shrinkToFit(a,12);this._centerLabel.font.setSize(c.font.size);this._centerLabel.setExtent()},setLabels:function(a){a=a||!1;for(var c=this.clippedPolygon.rings,h=e.getScreenSize(this.clippedPolygon.getExtent(),this.map),g={xmin:Math.round(1E3*this.xmin)/1E3,ymin:Math.round(1E3*this.ymin)/1E3,xmax:Math.round(1E3*this.xmax)/1E3,ymax:Math.round(1E3*this.ymax)/1E3,map_xmin:this.map.extent.xmin,map_ymin:this.map.extent.ymin,map_xmax:this.map.extent.xmax,map_ymax:this.map.extent.ymax},r,p,b={"lower-left":{label:null,
priority:99,hidden:!1},"lower-right":{label:null,priority:99,hidden:!1},"upper-left":{label:null,priority:99,hidden:!1},"upper-right":{label:null,priority:99,hidden:!1}},d=0;d<c.length;d++){r=null;for(var v=0;v<c[d].length-1;v++){this.candidatePoint=new k(c[d][v],this.clippedPolygon.spatialReference);p=new k(c[d][v+1],this.clippedPolygon.spatialReference);if(0===v){var C=new k(c[d][c[d].length-2],this.clippedPolygon.spatialReference);r=this._findAngle(C,this.candidatePoint)}p=this._findAngle(this.candidatePoint,
p);if(p!==r&&(C="",0===p&&90===r?C="lower-right":270===p&&180===r?C="lower-right":0===p&&270===r?C="lower-left":90===p&&180===r?C="lower-left":90===p&&0===r?C="upper-left":180===p&&270===r?C="upper-left":180===p&&90===r?C="upper-right":270===p&&0===r&&(C="upper-right"),C)){r=this._findType(this.candidatePoint,g);var G=r.priority,L=new t({map:this.map,point:this.candidatePoint,labelParameters:this.labelParameters,text:this.text,verticalAlign:C.split("-")[0],horizontalAlign:C.split("-")[1]});b[C].priority>
G&&(b[C].label=L,b[C].priority=G,b[C].xOffset=r.xOffset,b[C].yOffset=r.yOffset)}r=p}}c=b["lower-left"];g=b["upper-left"];d=b["lower-right"];b=b["upper-right"];300>h.width&&(c.priority>d.priority&&(c.hidden=!0),d.priority>c.priority&&(d.hidden=!0),g.priority>b.priority&&(g.hidden=!0),b.priority>g.priority&&(b.hidden=!0));200>h.height&&(c.priority>g.priority&&(c.hidden=!0),d.priority>b.priority&&(d.hidden=!0),g.priority>c.priority&&(g.hidden=!0),b.priority>d.priority&&(b.hidden=!0));"utm"===this.minMaxType&&
(c.xOffset&&(c.label.xOffset=70),g.xOffset&&(g.label.xOffset=70),b.xOffset&&(b.label.xOffset=70),d.xOffset&&(d.label.xOffset=70),c.yOffset&&(c.label.yOffset=40),g.yOffset&&(g.label.yOffset=40),b.yOffset&&(b.label.yOffset=40),d.yOffset&&(d.label.yOffset=40));h=[];!c.hidden&&c.label&&h.push(c.label);!g.hidden&&g.label&&h.push(g.label);!b.hidden&&b.label&&h.push(b.label);!d.hidden&&d.label&&h.push(d.label);a=a?this.unclippedPolygon:this.clippedPolygon;for(b=0;b<h.length;b++)(new t({map:this.map,point:h[b].point,
labelParameters:this.labelParameters,text:"utm"===this.minMaxType?"WW":"22W",verticalAlign:h[b].verticalAlign,horizontalAlign:h[b].horizontalAlign})).fitsInPolygon(a)||(h.splice(b,1),b--);return h},_findXY:function(a){var c=a.getLongitude();a=a.getLatitude();"utm"===this.minMaxType?(a=f.LLtoUTM(a,c,this.utmZone),c=100*Math.round(a[0]/100),a=100*Math.round(a[1]/100),c%=1E6,a%=1E6):(c=Math.round(1E3*c)/1E3,a=Math.round(1E3*a)/1E3);return{x:c,y:a}},_findAngle:function(a,c){for(a=-(180*Math.atan2(c.y-
a.y,c.x-a.x)/Math.PI)+90;0>a;)a+=360;for(;360<=a;)a-=360;15>a||345<a?a=0:105>a&&75<a?a=90:195>a&&165<a?a=180:285>a&&255<a&&(a=270);return a},_findType:function(a,c){var h=this._findXY(this.candidatePoint),g=h.x;h=h.y;var r=!1,p=!1,b=0;a.x===c.map_xmin||a.x===c.map_xmax?(r=!0,b+=2):g===c.xmin||g===c.xmax?console.warn():b+=1;a.y===c.map_ymin||a.y===c.map_ymax?(p=!0,b+=2):h===c.ymin||h===c.ymax?console.warn():b+=1;return{priority:b,xOffset:r,yOffset:p}}})})},"widgets/GridOverlay/lib/LabelElement":function(){define("dojo/_base/declare ./geometry-utils ./labeling-utils esri/geometry/geometryEngine esri/geometry/screenUtils esri/graphic esri/geometry/Point esri/geometry/Extent esri/symbols/Font esri/symbols/TextSymbol".split(" "),
function(F,f,e,t,k,a,c,h,g,r){return F(null,{map:null,point:null,xOffset:0,yOffset:0,text:"",verticalAlign:"",horizontalAlign:"",rotation:0,color:null,fontFamily:"",fontSize:0,font:null,constructor:function(p){this.map=p.map;this.point=p.point;this.xOffset=p.labelParameters.xOffset||0;this.yOffset=p.labelParameters.yOffset||0;this.text=p.text;this.verticalAlign=p.verticalAlign||"bottom";this.verticalAlign.toLowerCase();this.horizontalAlign=p.horizontalAlign||"middle";this.horizontalAlign.toLowerCase();
this.rotation=p.labelParameters.rotation||0;this.rotation=90*Math.round(this.rotation/90);this.color=p.labelParameters.color;this.font=(new g).setFamily(p.labelParameters.fontFamily||"Arial, Helvetica, sans-serif").setSize(p.labelParameters.fontSize||0).setWeight(g.WEIGHT_BOLD)},getPixelWidth:function(){return 0!==this.rotation%180?this.font.size:e.getWidthOfText(this.text,this.font.family,this.font.size)},getPixelHeight:function(){return 0!==this.rotation%180?e.getWidthOfText(this.text,this.font.family,
this.font.size):this.font.size},decreaseFontSize:function(p){0!==this.font.size&&(this.font.setSize(this.font.size-(p||1)),this.setExtent())},setExtent:function(){var p=this.map,b=p.toScreen(this.point),d=this.getPixelWidth(),v=this.getPixelHeight()/1.3333;switch(this.horizontalAlign){case "left":b=b.offset(this.xOffset,0);var C=b.x;var G=b.x+d;break;case "middle":case "center":C=b.x-d/2;G=b.x+d/2;break;case "right":b=b.offset(-this.xOffset,0),C=b.x-d,G=b.x}switch(this.verticalAlign){case "bottom":case "lower":b=
b.offset(0,-this.yOffset);var L=b.y;var l=b.y-v;break;case "middle":case "center":L=b.y+v/2;l=b.y-v/2;break;case "upper":case "top":b=b.offset(0,this.yOffset),L=b.y+v,l=b.y}b=new h({xmin:C,ymin:L,xmax:G,ymax:l});this.extent=f.toWebMercator(k.toMapGeometry(p.extent,p.width,p.height,b))},getExtent:function(){this.extent||this.setExtent();return this.extent},fitsInPolygon:function(p){var b=this.getExtent();b=f.toWebMercator(b);p=f.toWebMercator(p);return t.contains(p,b)},fitsInExtent:function(p){var b=
this.getExtent();b=f.toWebMercator(b);p=f.toWebMercator(p);return t.contains(p,b)},shrinkToFit:function(p,b){b=b||0;!this.fitsInPolygon(p)&&0<this.font.size&&(this.font.setSize(this.font.size-1),this.font.size<b&&this.font.setSize(0),this.setExtent(),this.shrinkToFit(p,b))},getLabelGraphic:function(){var p=(new r(this.text)).setColor(this.color).setAlign(r.ALIGN_START).setFont(this.font),b=this.getExtent(),d=this.map.toScreen(this.point);b=this.map.toScreen(new c([b.xmin,b.ymin],b.spatialReference));
p.setOffset(b.x-d.x,-(b.y-d.y));return new a(this.point,p)}})})},"widgets/GridOverlay/_build-generate_module":function(){define(["dojo/text!./Widget.html","dojo/text!./css/style.css","dojo/i18n!./nls/strings"],function(){})},"url:widgets/GridOverlay/GridSetting.html":'\x3cdiv style\x3d"width:100%;height:100%;overflow:hidden;" class\x3d"nihilo"\x3e\r\n  \x3cdiv class\x3d\'neo\'\x3e\r\n    \x3ctable class\x3d"settings-section"\x3e\r\n      \x3ctbody\x3e\r\n        \x3ctr\x3e\r\n          \x3ctd class\x3d\'sectionTitle\' aria-label\x3d\'${nls.minIntSpacingLabel}\' colspan\x3d"2" tabindex\x3d"0"\x3e\r\n            ${nls.minIntSpacingLabel}\x3c/td\x3e\r\n        \x3c/tr\x3e\r\n        \x3ctr\x3e\r\n          \x3ctd\x3e\r\n            \x3cdiv class\x3d\'grid-overlay-setting-slider\' data-dojo-attach-point\x3d"minIntervalSpacing"\r\n              data-dojo-type\x3d"dijit/form/HorizontalSlider"\r\n              data-dojo-props\x3d"value:100, minimum: 50, maximum:250, discreteValues:41, intermediateChanges:true, showButtons:false"\x3e\r\n            \x3c/div\x3e\r\n          \x3c/td\x3e\r\n          \x3ctd\x3e\r\n            \x3cdiv class\x3d"grid-overlay-setting-slider-value"\x3e\x3cspan class\x3d\'sliderValue\'\r\n                data-dojo-attach-point\x3d"minIntervalSpacingVal"\x3epx\x3c/span\x3e\r\n            \x3c/div\x3e\r\n          \x3c/td\x3e\r\n        \x3c/tr\x3e\r\n        \x3ctr\x3e\r\n          \x3ctd class\x3d\'sectionTitle\' aria-label\x3d\'${nls.lineOpacityLabel}\' colspan\x3d"2" tabindex\x3d"0"\x3e${nls.lineOpacityLabel}\r\n          \x3c/td\x3e\r\n        \x3c/tr\x3e\r\n        \x3ctr\x3e\r\n          \x3ctd\x3e\r\n            \x3cdiv class\x3d\'grid-overlay-setting-slider\' data-dojo-attach-point\x3d"lineOpacity"\r\n              data-dojo-type\x3d"dijit/form/HorizontalSlider"\r\n              data-dojo-props\x3d"value:100, minimum: 0.05, maximum:1, discreteValues:20, intermediateChanges:true, showButtons:false"\x3e\r\n            \x3c/div\x3e\r\n          \x3c/td\x3e\r\n          \x3ctd\x3e\r\n            \x3cdiv class\x3d"grid-overlay-setting-slider-value"\x3e\x3cspan class\x3d\'sliderValue\'\r\n                data-dojo-attach-point\x3d"lineOpacityVal"\x3e%\x3c/span\x3e\x3c/div\x3e\r\n          \x3c/td\x3e\r\n        \x3c/tr\x3e\r\n        \x3ctr\x3e\r\n          \x3ctd class\x3d\'sectionTitle\' aria-label\x3d\'${nls.labelOpacityLabel}\' tabindex\x3d"0"\x3e${nls.labelOpacityLabel}\x3c/td\x3e\r\n        \x3c/tr\x3e\r\n        \x3ctr\x3e\r\n          \x3ctd\x3e\r\n            \x3cdiv class\x3d\'grid-overlay-setting-slider\' data-dojo-attach-point\x3d"labelOpacity"\r\n              data-dojo-type\x3d"dijit/form/HorizontalSlider"\r\n              data-dojo-props\x3d"value:100, minimum: 0.05, maximum:1, discreteValues:20, intermediateChanges:true, showButtons:false"\x3e\r\n            \x3c/div\x3e\r\n          \x3c/td\x3e\r\n          \x3ctd\x3e\r\n            \x3cdiv class\x3d"grid-overlay-setting-slider-value"\x3e\x3cspan class\x3d\'sliderValue\'\r\n                data-dojo-attach-point\x3d"labelOpacityVal"\x3e%\x3c/span\x3e\x3c/div\x3e\r\n          \x3c/td\x3e\r\n        \x3c/tr\x3e\r\n        \x3ctr\x3e\r\n          \x3ctd class\x3d\'sectionTitle\' aria-label\x3d\'${nls.verticalLineLabels}\' tabindex\x3d"0"\x3e${nls.verticalLineLabels}\x3c/td\x3e\r\n        \x3c/tr\x3e\r\n        \x3ctr\x3e\r\n          \x3ctd class\x3d\'verticalLineSection\'\x3e\r\n            \x3cdiv class\x3d\'image-labels horizontalLabel\' title\x3d\'${nls.horizontalLabel}\' tabindex\x3d\'0\' role\x3d\'button\'\r\n              aria-label\x3d\'${nls.horizontalLabel}\' data-dojo-attach-point\x3d"horizontalLabels"\x3e\x3c/div\x3e\r\n            \x3cdiv class\x3d\'image-labels verticalLabel\' title\x3d\'${nls.verticalLabel}\' tabindex\x3d\'0\' role\x3d\'button\'\r\n              aria-label\x3d\'${nls.verticalLabel}\' data-dojo-attach-point\x3d"verticalLabels"\x3e\x3c/div\x3e\r\n          \x3c/td\x3e\r\n        \x3c/tr\x3e\r\n      \x3c/tbody\x3e\r\n    \x3c/table\x3e\r\n    \x3cdiv class\x3d"table-options jimu-ellipsis"\x3e\r\n      \x3cul\x3e\r\n        \x3cli\x3e\r\n          \x3cinput class\x3d"switch-toggle" aria-label\x3d\'${nls.checkBoxLabel}\' data-dojo-type\x3d"dijit/form/CheckBox"\r\n            data-dojo-attach-point\x3d"cbxShowGrid" label\x3d"${nls.checkBoxLabel}" /\x3e\r\n          \x3clabel data-dojo-attach-point\x3d"checkBoxLabel" aria-label\x3d\'${nls.checkBoxLabel}\'\r\n            tabindex\x3d"0"\x3e${nls.checkBoxLabel}\x3c/label\x3e\r\n        \x3c/li\x3e\r\n      \x3c/ul\x3e\r\n    \x3c/div\x3e\r\n\r\n    \x3cdiv class\x3d"grid-overlay-setting-style"\x3e\r\n      \x3cdiv class\x3d\'sectionTitle\' aria-label\x3d\'${nls.styleHeaderLabel}\' tabindex\x3d"0"\x3e${nls.styleHeaderLabel}\x3c/div\x3e\r\n      \x3cdiv style\x3d"clear: both;" class\x3d"esriCTFullWidth esriCTDartThemePadding"\x3e\r\n        \x3c!-- 1. --\x3e\r\n        \x3cdiv class\x3d"esriCTFullWidth esriCTBorder"\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTTitle" data-a11y-label-id\x3d"gzd"\x3e${nls.gzd}\x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"color"\x3e${nls.colorHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"fontSize"\x3e${nls.fontSizeHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"lineWidth"\x3e${nls.lineWidthHeaderLabel}\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv data-dojo-attach-point\x3d"colorPicker0" class\x3d"grid-overlay-setting-color-picker"\r\n                  data-a11y-label-by\x3d"gzd color" data-dojo-type\x3d"jimu/dijit/ColorPicker"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"gzd fontSize" data-dojo-attach-point\x3d"fontSize0"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:5,max:72}, value:15"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"gzd lineWidth" data-dojo-attach-point\x3d"lineSize0"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:1,max:10}, value:2"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n\r\n\r\n        \x3c!-- 2. --\x3e\r\n        \x3cdiv class\x3d"esriCTFullWidth esriCTBorder"\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTTitle" data-a11y-label-id\x3d"gsid" data-dojo-attach-point\x3d"gsidNode"\x3e\x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"color"\x3e${nls.colorHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"fontSize"\x3e${nls.fontSizeHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"lineWidth"\x3e${nls.lineWidthHeaderLabel}\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv data-dojo-attach-point\x3d"colorPicker1" class\x3d"grid-overlay-setting-color-picker"\r\n                  data-a11y-label-by\x3d"gsid color" data-dojo-type\x3d"jimu/dijit/ColorPicker"\r\n                  data-a11y-label-by\x3d"gsid color"\x3e\r\n                \x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"gsid fontSize" data-dojo-attach-point\x3d"fontSize1"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:5,max:72}, value:15"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"gsid lineWidth" data-dojo-attach-point\x3d"lineSize1"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:1,max:10}, value:2"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n\r\n\r\n        \x3c!-- 3. --\x3e\r\n        \x3cdiv class\x3d"esriCTFullWidth esriCTBorder"\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTTitle" data-a11y-label-id\x3d"grid10k" data-dojo-attach-point\x3d"grid10kNode"\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"color"\x3e${nls.colorHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"fontSize"\x3e${nls.fontSizeHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"lineWidth"\x3e${nls.lineWidthHeaderLabel}\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv data-dojo-attach-point\x3d"colorPicker2" class\x3d"grid-overlay-setting-color-picker"\r\n                  data-a11y-label-by\x3d"grid10k color" data-dojo-type\x3d"jimu/dijit/ColorPicker"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"grid10k fontSize" data-dojo-attach-point\x3d"fontSize2"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:5,max:72}, value:15"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"grid10k lineWidth" data-dojo-attach-point\x3d"lineSize2"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:1,max:10}, value:2"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n\r\n\r\n        \x3c!-- 4. --\x3e\r\n        \x3cdiv class\x3d"esriCTFullWidth esriCTBorder"\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTTitle" data-a11y-label-id\x3d"grid1k" data-dojo-attach-point\x3d"grid1kNode"\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"color"\x3e${nls.colorHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"fontSize"\x3e${nls.fontSizeHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"lineWidth"\x3e${nls.lineWidthHeaderLabel}\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv data-dojo-attach-point\x3d"colorPicker3" class\x3d"grid-overlay-setting-color-picker"\r\n                  data-a11y-label-by\x3d"grid1k color" data-dojo-type\x3d"jimu/dijit/ColorPicker"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"grid1k fontSize" data-dojo-attach-point\x3d"fontSize3"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:5,max:72}, value:15"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"grid1k lineWidth" data-dojo-attach-point\x3d"lineSize3"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:1,max:10}, value:2"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n\r\n        \x3c!-- 5. --\x3e\r\n        \x3cdiv class\x3d"esriCTFullWidth esriCTBorder"\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTTitle" data-a11y-label-id\x3d"grid100m"\x3e${nls.grid100m}\x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"color"\x3e${nls.colorHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"fontSize"\x3e${nls.fontSizeHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"lineWidth"\x3e${nls.lineWidthHeaderLabel}\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv data-dojo-attach-point\x3d"colorPicker4" class\x3d"grid-overlay-setting-color-picker"\r\n                  data-a11y-label-by\x3d"grid100m color" data-dojo-type\x3d"jimu/dijit/ColorPicker"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"grid100m fontSize" data-dojo-attach-point\x3d"fontSize4"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:5,max:72}, value:15"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"grid100m lineWidth" data-dojo-attach-point\x3d"lineSize4"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:1,max:10}, value:2"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n\r\n\r\n        \x3c!-- 6. --\x3e\r\n        \x3cdiv class\x3d"esriCTFullWidth esriCTBorder"\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTTitle" data-a11y-label-id\x3d"grid10m"\x3e${nls.grid10m}\x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"color"\x3e${nls.colorHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"fontSize"\x3e${nls.fontSizeHeaderLabel}\x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width esriCTColumnTitle" data-a11y-label-id\x3d"lineWidth"\x3e${nls.lineWidthHeaderLabel}\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv class\x3d"esriCTFullWidth esriCTPadding"\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv data-dojo-attach-point\x3d"colorPicker5" class\x3d"grid-overlay-setting-color-picker"\r\n                  data-a11y-label-by\x3d"grid10m color" data-dojo-type\x3d"jimu/dijit/ColorPicker"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"grid10m fontSize" data-dojo-attach-point\x3d"fontSize5"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:5,max:72}, value:15"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv class\x3d"esriCT33Width"\x3e\r\n              \x3cdiv\x3e\r\n                \x3cdiv class\x3d"font-size" data-a11y-label-by\x3d"grid10m lineWidth" data-dojo-attach-point\x3d"lineSize5"\r\n                  data-dojo-type\x3d"dijit/form/NumberSpinner"\r\n                  data-dojo-props\x3d"intermediateChanges:true, constraints:{min:1,max:10}, value:2"\x3e\x3c/div\x3e\r\n              \x3c/div\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e',
"url:widgets/GridOverlay/Widget.html":"\x3cdiv\x3e\r\n  \x3cdiv\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d\"gridOverlayNode\" /\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d\"btnContainer\"\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d'resetButton' tabindex\x3d'0'  role\x3d'button' class\x3d'jimu-btn' /\x3e\r\n  \x3c/div\x3e  \r\n\x3c/div\x3e","url:widgets/GridOverlay/css/style.css":'.grid-overlay-setting .grid-overlay-setting-style {padding-top: 10px;}.grid-overlay-setting .grid-overlay-setting-style table {color: #333333; width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px;}.grid-overlay-setting .esriCTColumnTitle {font-size: 13.5px; color: #000000; word-break: break-all; padding: 0 2px 0 2px;}.grid-overlay-setting .grid-overlay-setting-style tr {background-color: #ffffff;}.grid-overlay-setting .grid-overlay-setting-style td {padding: 5px;}.grid-overlay-setting .settings-section {padding-bottom: 0px;}.grid-overlay-setting .label-section {padding-bottom: 0px;}.grid-overlay-setting .labelHeaderGridCompCol {width: 40%;}.grid-overlay-setting .labelHeaderColorCol {width: 20%;}.grid-overlay-setting .labelHeaderFontSizeCol {width: 20%;}.grid-overlay-setting .labelHeaderLineWidthCol {width: 20%;}.grid-overlay-setting .settings-section tr {vertical-align: middle;}.grid-overlay-setting .settings-section\x3etbody\x3etr\x3etd:first-child {width: 100%;}.grid-overlay-setting .settings-section\x3etbody\x3etr:nth-child(2n) {padding-left: 5px; font-size: 12px; letter-spacing: 0.33px;}.grid-overlay-setting .settings-section\x3etbody\x3etr:nth-child(2n+1) {width: 100px; font-size: 14px; letter-spacing: 0.39px;}.grid-overlay-setting .font-size,.line-size {width: 70%; font-style: normal;}.grid-overlay-setting .grid-overlay-setting-color-picker {width: 70%; height: 30px;}.grid-overlay-setting .grid-overlay-setting-color-picker-text {text-align: center; position: relative; top: 50%; transform: translateY(-50%); font-size: 14px;}.grid-overlay-setting .grid-overlay-setting-interval-width {border-color: #000; border-style: hidden solid solid solid; border-width: 1px; height: 10px; margin: auto;}.grid-overlay-setting .grid-overlay-setting-style-map {width: 60%; height: 100%; float: left; padding: 0 5px;}.jimu-rtl .grid-overlay-setting .grid-overlay-setting-style-map {float: right; width: 60%;}.grid-overlay-setting .grid-overlay-setting-slider {width: 100%;}.grid-overlay-setting .grid-overlay-setting-slider-value {width: 50px;}.grid-overlay-setting .neo {float: left; height: 100%; overflow: hidden;}.jimu-rtl .grid-overlay-setting .neo {float: right;}.grid-overlay-setting .sectionTitle {color: #353535; letter-spacing: 0.39px; padding-bottom: 7px; font-size: 14px;}.grid-overlay-setting .sliderValue {font-size: 13px; color: #353535; letter-spacing: 0.39px;}.grid-overlay-setting .gridPlacementSection {width: 80%; margin: auto; display: inline-flex;}.grid-overlay-setting .verticalLineSection {width: 80%; margin: auto; display: inline-flex;}.grid-overlay-setting .image-labels {background-repeat: no-repeat; background-color: transparent; width: 24px; height: 24px; margin-right: 10px; border: 1px solid #CCCCCC;}.grid-overlay-setting .horizontalLabel {background: url("../images/Horizontal.png");}.grid-overlay-setting .horizontalLabelClicked {background: url("../images/Horizontal_selected.png"); border: 1px solid #008B9C;}.grid-overlay-setting .horizontalLabel:hover {background: url("../images/Horizontal_selected.png"); border: 1px solid #008B9C; cursor: pointer;}.grid-overlay-setting .verticalLabel {background: url("../images/Vertical.png");}.grid-overlay-setting .verticalLabelClicked {background: url("../images/Vertical_selected.png"); border: 1px solid #008B9C;}.grid-overlay-setting .verticalLabel:hover {background: url("../images/Vertical_selected.png"); border: 1px solid #008B9C; cursor: pointer;}.grid-overlay-setting .upperLeftLabel {background: url("../images/Upper_Left.png");}.grid-overlay-setting .upperLeftLabelClicked,.upperLeftLabel:hover {background: url("../images/Upper_Left_selected.png"); border: 1px solid #008B9C; cursor: pointer;}.grid-overlay-setting .upperRightLabel {background: url("../images/Upper_Right.png");}.grid-overlay-setting .upperRightLabelClicked,.upperRightLabel:hover {background: url("../images/Upper_Right_selected.png"); border: 1px solid #008B9C; cursor: pointer;}.grid-overlay-setting .lowerLeftLabel {background: url("../images/Lower_Left.png");}.grid-overlay-setting .lowerLeftLabelClicked,.lowerLeftLabel:hover {background: url("../images/Lower_Left_selected.png"); border: 1px solid #008B9C; cursor: pointer;}.grid-overlay-setting .lowerRightLabel {background: url("../images/Lower_Right.png");}.grid-overlay-setting .lowerRightLabelClicked,.lowerRightLabel:hover {background: url("../images/Lower_Right_selected.png"); border: 1px solid #008B9C; cursor: pointer;}.grid-overlay-setting .centerLabel {background: url("../images/Center.png");}.grid-overlay-setting .centerLabelClicked,.centerLabel:hover {background: url("../images/Center_selected.png"); border: 1px solid #008B9C; cursor: pointer;}.grid-overlay-setting .table-options ul {list-style-type: none; padding: 0;}.grid-overlay-setting .jimu-checkbox {margin-right: 20px; width: 100%;}.grid-overlay-setting .switch-toggle-group {padding: 5px;}.grid-overlay-setting .switch-toggle-group .checkbox-inline {padding-left: 36px; vertical-align: top;}.grid-overlay-setting .switch-toggle-group .switch-toggle.dijitCheckBox {margin-left: -36px;}.grid-overlay-setting .switch-toggle.dijitCheckBox {height: 16px; width: 28px; border: 0 none; background: #adadad; position: relative; display: inline-block; cursor: pointer; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; margin-left: 2px;}.grid-overlay-setting .switch-toggle.dijitCheckBox:before {content: ""; background: #f8f8f8; position: absolute; padding: 0; height: 12px; width: 12px; left: auto; right: 14px; top: 2px; z-index: 1; -webkit-transition: right 0.3s; -moz-transition: right 0.3s; -o-transition: right 0.3s; transition: right 0.3s; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%;}.grid-overlay-setting .switch-toggle.dijitCheckBox input {width: 100%; height: 100%; position: absolute; left: 0; z-index: 2;}.grid-overlay-setting .switch-toggle.dijitCheckBox.dijitCheckBoxChecked {background: #50ad4e;}.grid-overlay-setting .switch-toggle.dijitCheckBox.dijitCheckBoxChecked:before {right: 2px;}.grid-overlay-setting .basemapButton {position: absolute; right: 22px; top: 2px; z-Index: 999;}.jimu-rtl .grid-overlay-setting .basemapButton {left: 10px; right: auto;}.grid-overlay-setting .mapContentPane {width: 400px; height: 280px; overflow: auto;}.grid-overlay-setting .esriCTFullWidth {width: 100%; overflow: hidden;}.grid-overlay-setting .esriCT33Width {width: 33.33%; float: left;}.jimu-rtl .esriCT33Width {float: right;}.grid-overlay-setting .esriCTBorder {border: 1px solid black; padding: 10px; margin-bottom: 10px;}.grid-overlay-setting .esriCTTitle {margin-bottom: 10px; text-align: center;}.grid-overlay-setting .esriCTPadding {padding-left: 20px;}.jimu-rtl .grid-overlay-setting .esriCTPadding {padding-right: 20px; padding-left: 0px;}.jimu-rtl .grid-overlay-setting .esriCTPaddingRight {padding-left: 10px;} .grid-overlay-setting .esriCTPaddingRight {padding-right: 10px;}.grid-overlay-widget {position: relative;}.grid-overlay-widget .btnContainer {text-align: center; margin: 6px 0 6px 0; padding-right: 10px;}.grid-overlay-widget .neo {width: 100%;}',
"*now":function(F){F(['dojo/i18n!*preload*widgets/GridOverlay/nls/Widget*["ar","bs","ca","cs","da","de","en","el","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt-br","pt-pt","ro","ru","sk","sl","sr","sv","th","tr","zh-cn","uk","vi","zh-hk","zh-tw","ROOT"]'])},"*noref":1}});
define("dojo/_base/declare dojo/_base/lang dojo/dom-construct dojo/on jimu/BaseWidget jimu/utils ./GridSetting dojo/dom-attr dojo/keys dojo/query dijit/registry dijit/focus".split(" "),function(F,f,e,t,k,a,c,h,g,r,p,b){return F([k],{baseClass:"grid-overlay-widget",name:"GridOverlayWidget",postCreate:function(){this.inherited(arguments);this.openAtStartAysn=!0;this.gridSetting=new c({map:this.map,config:this.config,uid:this.uid});e.place(this.gridSetting.domNode,this.gridOverlayNode);this.gridSetting.startup();
this.resetButton.title=window.jimuNls.common.reset;this.resetButton.innerText=window.jimuNls.common.reset;h.set(this.resetButton,"aria-label",window.jimuNls.common.reset);this.own(t(this.resetButton,"click",f.hitch(this,function(){this.gridSetting.setConfig(this.config)})));this.own(t(this.resetButton,"keydown",f.hitch(this,function(d){d.keyCode!==g.SPACE&&d.keyCode!==g.ENTER||this.gridSetting.setConfig(this.config)})))},constructor:function(d){this.uid=d.id||p.getUniqueId("go")},destroy:function(){this.inherited(arguments);
this.gridSetting.gridOverlayCtrl.disable()},startup:function(){this.inherited(arguments);this._setTheme()},onOpen:function(){this.gridSetting.gridOverlayCtrl.enable();this.gridSetting.setConfig();if("DashboardTheme"===this.appConfig.theme.name&&!this.hasOwnProperty("closeable")||this.isOnScreen)this.gridSetting.alterToggleSwitch(),this.gridSetting.cbxShowGrid.set("checked",!0);this._support508Accessibility()},onClose:function(){this.gridSetting._saveConfig();this.gridSetting.getConfig().enableGridOnClose||
this.gridSetting.gridOverlayCtrl.disable()},_removeStyleFile:function(d,v){var C=null;C="js"===v?"src":"css"===v?"href":"none";v=document.getElementsByTagName("js"===v?"script":"css"===v?"link":"none");for(var G=v.length;0<=G;G--)v[G]&&null!==v[G].getAttribute(C)&&-1!==v[G].getAttribute(C).indexOf(d)&&v[G].parentNode.removeChild(v[G])},_setTheme:function(){"DartTheme"===this.appConfig.theme.name?a.loadStyleLink("dartOverrideCSS",this.folderUrl+"css/dartTheme.css",null):this._removeStyleFile(this.folderUrl+
"css/dartTheme.css","css");"BoxTheme"===this.appConfig.theme.name?a.loadStyleLink("boxOverrideCSS",this.folderUrl+"css/boxTheme.css",null):this._removeStyleFile(this.folderUrl+"css/boxTheme.css","css");"DashboardTheme"===this.appConfig.theme.name?a.loadStyleLink("dashboardOverrideCSS",this.folderUrl+"css/dashboardTheme.css",null):this._removeStyleFile(this.folderUrl+"css/dashboardTheme.css","css");"LaunchpadTheme"===this.appConfig.theme.name?a.loadStyleLink("launchpadOverrideCSS",this.folderUrl+"css/launchpadTheme.css",
null):this._removeStyleFile(this.folderUrl+"css/launchpadTheme.css","css");"FoldableTheme"!==this.appConfig.theme.name||this.isOnScreen?this._removeStyleFile(this.folderUrl+"css/foldableTheme.css","css"):a.loadStyleLink("foldableOverrideCSS",this.folderUrl+"css/foldableTheme.css",null);"JewelryBoxTheme"===this.appConfig.theme.name?a.loadStyleLink("jewelryBoxOverrideCSS",this.folderUrl+"css/jewelryBoxTheme.css",null):this._removeStyleFile(this.folderUrl+"css/jewelryBoxTheme.css","css");"PlateauTheme"===
this.appConfig.theme.name?a.loadStyleLink("plateauOverrideCSS",this.folderUrl+"css/plateauTheme.css",null):this._removeStyleFile(this.folderUrl+"css/plateauTheme.css","css");"TabTheme"===this.appConfig.theme.name?a.loadStyleLink("tabOverrideCSS",this.folderUrl+"css/tabTheme.css",null):this._removeStyleFile(this.folderUrl+"css/tabTheme.css","css");"PocketTheme"===this.appConfig.theme.name?a.loadStyleLink("pocketOverrideCSS",this.folderUrl+"css/pocketTheme.css",null):this._removeStyleFile(this.folderUrl+
"css/pocketTheme.css","css")},_support508Accessibility:function(){var d=r(".sectionTitle")[0];a.initFirstFocusNode(this.domNode,d);a.isAutoFocusFirstNodeWidget(this)&&b.focus(d);a.initLastFocusNode(this.domNode,this.resetButton)}})});