{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/widgets/Legend/styles/Card.js","webpack:///./node_modules/arcgis-js-api/core/colorUtils.js","webpack:///./node_modules/arcgis-js-api/symbols/support/symbolUtils.js","webpack:///./node_modules/arcgis-js-api/symbols/support/previewUtils.js","webpack:///./node_modules/arcgis-js-api/symbols/support/svgUtils.js","webpack:///./node_modules/arcgis-js-api/symbols/support/renderUtils.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/support/heatmapRampUtils.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/support/clusterUtils.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/support/relationshipRampUtils.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/support/sizeRampUtils.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/support/utils.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/styles/Classic.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend.js","webpack:///./node_modules/arcgis-js-api/symbols/support/previewSymbol3D.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/LegendViewModel.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/support/ActiveLayerInfo.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/support/styleUtils.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/support/colorRampUtils.js","webpack:///./node_modules/arcgis-js-api/widgets/Legend/styles/support/utils.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAAe,CAAC,2BAAuB,CAAC,2BAA2B,CAAC,2BAA0C,CAAC,2BAAmC,CAAC,2BAAc,CAAC,2BAAiB,CAAC,2BAAuB,CAAC,2BAAsB,CAAC,mCAAE,kCAAkC,aAA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,cAAc,uBAAuB,sBAAsB,QAAQ,eAAe,uBAAuB,sBAAsB,QAAQ,cAAc,QAAQ,iBAAiB,QAAQ,gBAAgB,QAAQ,cAAc,uBAAuB,wBAAwB,QAAQ,eAAe,uBAAuB,aAAa;AAAA,oGAAE,C","file":"js/chunk-2425b13a.259769d5.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../intl\",\"../../../core/Handles\",\"../../../core/screenUtils\",\"../../../core/accessorSupport/decorators\",\"../../../symbols/support/svgUtils\",\"../../Widget\",\"./support/utils\",\"../support/styleUtils\",\"../../support/widget\"],(function(e,t,s,r,i,a,n,o,l,c,d,p){\"use strict\";var h=\"esri-legend--card__carousel-indicator--activated\",y=\"esri-legend--card\",_=\"esri-legend--stacked\",g=\"esri-legend--card__carousel-title\",u=\"esri-legend--card__carousel-indicator\",m=\"esri-legend--card__interval-separator\",v=\"esri-legend--card__imagery-layer-image--stretched\",f=\"esri-legend--card__image-label\",x=\"esri-legend--card__layer-caption\",b=\"esri-legend--card__label-element\",L=\"esri-legend--card__layer-row\",w=\"esri-legend--card__label-cell\",S=\"esri-legend--card__message\",I=\"esri-legend--card__ramp-label\",N=\"esri-legend--card__section\",k=\"esri-legend--card__relationship-section\",T=\"esri-legend--card__service-caption-text\",F=\"esri-legend--card__service-content\",C=\"esri-legend--card__service\",E=\"esri-legend--card__group-layer\",z=\"esri-legend--card__group-layer-child\",R=\"esri-legend--card__symbol\",A=\"esri-legend--card__size-ramp-row\",M=\"esri-legend--card__symbol-row\",O=\"esri-legend--card__symbol-cell\",B=\"esri-legend--card__carousel-indicator-container\",P=\"esri-legend--card__interval-separators-container\",U=\"esri-legend--card__relationship-label-container\",H=\"esri-legend--card__label-container\",W=\"esri-legend--card__service-caption-container\",Z=\"esri-legend--card__symbol-container\",q=\"esri-legend--card__size-ramp-container\",G=\"esri-legend--card__size-ramp-preview\",V=\"esri-widget__heading\",j=\"esri-legend--card__\",D=window.devicePixelRatio;return function(e){function t(t,s){var r=e.call(this,t,s)||this;return r._handles=new i,r._hasIndicators=!1,r._selectedSectionName=null,r._sectionNames=[],r._sectionMap=new Map,r.activeLayerInfos=null,r.layout=\"stack\",r.messages=null,r.messagesCommon=null,r.type=\"card\",r.view=null,r}return s.__extends(t,e),t.prototype.initialize=function(){var e=this;this.own([this.watch(\"activeLayerInfos\",(function(t){e._handles.removeAll(),e._watchForSectionChanges(t)}))])},t.prototype.destroy=function(){this._handles.destroy(),this._handles=null},t.prototype.render=function(){var e,t=this;this._hasIndicators=\"auto\"===this.layout&&this.view.container.clientWidth<=768||\"stack\"===this.layout;var s=this.activeLayerInfos,i=s&&s.toArray().map((function(e){return t._renderLegendForLayer(e)})).filter((function(e){return!!e}));this._hasIndicators?this._selectedSectionName&&-1!==this._sectionNames.indexOf(this._selectedSectionName)||(this._selectedSectionName=this._sectionNames&&this._sectionNames[0]):this._selectedSectionName=null;var a=this._sectionNames.length,n=this._sectionNames.map((function(e,s){var i,n=r.substitute(t.messagesCommon.pagination.pageText,{index:s+1,total:a});return p.tsx(\"div\",{key:e,\"aria-label\":n,title:n,tabIndex:0,onclick:t._selectSection,onkeydown:t._selectSection,bind:t,class:t.classes(u,(i={},i[h]=t._selectedSectionName===e,i)),\"data-section-name\":e})})),o=this._hasIndicators&&a>1?p.tsx(\"div\",{class:B,key:\"carousel-navigation\"},n):null,l=this._hasIndicators?this._sectionMap.get(this._selectedSectionName):i&&i.length?i:null,c=((e={})[_]=this._hasIndicators,e);return p.tsx(\"div\",{class:this.classes(y,c)},o,l||p.tsx(\"div\",{class:S},this.messages.noLegend))},t.prototype._selectSection=function(e){var t=e.target.getAttribute(\"data-section-name\");t&&(this._selectedSectionName=t)},t.prototype._watchForSectionChanges=function(e){var t=this;if(this._generateSectionNames(),e){e.forEach((function(e){var s=\"activeLayerInfo-\"+e.layer.uid+\"-version-change\";t._handles.remove(s),t._watchForSectionChanges(e.children),t._handles.add(e.watch(\"version\",(function(){return t._generateSectionNames()})),s)}));var s=\"activeLayerInfos-collection-change\";this._handles.remove(s),this._handles.add(e.on(\"change\",(function(){return t._watchForSectionChanges(e)})),s)}},t.prototype._generateSectionNames=function(){this._sectionNames.length=0,this.activeLayerInfos&&this.activeLayerInfos.forEach(this._generateSectionNamesForActiveLayerInfo,this)},t.prototype._generateSectionNamesForActiveLayerInfo=function(e){var t=this;e.children.forEach(this._generateSectionNamesForActiveLayerInfo,this),e.legendElements&&e.legendElements.forEach((function(s,r){t._sectionNames.push(\"\"+j+e.layer.uid+\"-type-\"+s.type+\"-\"+r)}))},t.prototype._renderLegendForLayer=function(e){var t,s=this;if(!e.ready)return null;if(e.children.length){var r=e.children.map((function(e){return s._renderLegendForLayer(e)})).toArray();return p.tsx(\"div\",{key:e.layer.uid,class:this.classes(C,E)},p.tsx(\"div\",{class:W},e.title),r)}var i=e.legendElements;if(i&&!i.length)return null;var a=i.some((function(e){return\"relationship-ramp\"===e.type})),n=i.map((function(t,r){return s._renderLegendForElement(t,e,r,a)})).filter((function(e){return!!e}));if(!n.length)return null;var o=((t={})[z]=!!e.parent,t);return p.tsx(\"div\",{key:e.layer.uid,class:this.classes(C,o)},p.tsx(\"div\",{class:W},p.tsx(\"div\",{class:T},e.title)),p.tsx(\"div\",{class:F},n))},t.prototype._renderLegendForElement=function(e,t,s,r){var i,a=this;void 0===r&&(r=!1);var n=\"color-ramp\"===e.type,o=\"opacity-ramp\"===e.type,l=\"size-ramp\"===e.type,h=t.layer,y=e.title,_=null;if(\"string\"==typeof y)_=y;else if(y){var u=d.getTitle(this.messages,y,n||o);_=y.title?y.title+\" (\"+u+\")\":u}var m=\"\"+j+h.uid+\"-type-\"+e.type+\"-\"+s,v=this._hasIndicators?p.tsx(\"div\",null,p.tsx(\"h3\",{class:this.classes(V,g)},t.title),p.tsx(\"h4\",{class:this.classes(V,x)},_)):_?p.tsx(\"h4\",{class:this.classes(V,x)},_):null,f=null;if(\"symbol-table\"===e.type){var b=e.infos.map((function(s,r){return a._renderLegendForElementInfo(s,t,e.legendType,r)})).filter((function(e){return!!e}));if(b.length){var L=b[0].properties.classes&&b[0].properties.classes[M],w=((i={})[H]=!L&&!r,i[U]=r,i);f=p.tsx(\"div\",{key:m,class:N},v,p.tsx(\"div\",{class:this.classes(w)},b))}}else\"color-ramp\"===e.type||\"opacity-ramp\"===e.type||\"heatmap-ramp\"===e.type?f=p.tsx(\"div\",{key:m,class:N},v,this._renderLegendForRamp(e,h.opacity)):l?f=p.tsx(\"div\",{key:m,class:N},v,this._renderSizeRamp(e,h.opacity)):\"relationship-ramp\"===e.type&&(f=p.tsx(\"div\",{key:m,class:this.classes(N,k)},v,c.renderRelationshipRamp(e,this.id,h.opacity)));return f?(this._sectionMap.set(m,f),f):null},t.prototype._renderLegendForElementInfo=function(e,t,s,r){var i,a,n,o,l,c=t.layer;if(e.type)return this._renderLegendForElement(e,t,r);var h=d.isImageryStretchedLegend(c,s);if(e.symbol&&e.preview){if(-1===e.symbol.type.indexOf(\"simple-fill\")){if(!e.label)return p.tsx(\"div\",{key:r,bind:e.preview,afterCreate:d.attachToNode});var y=((i={})[O]=this._hasIndicators,i);return p.tsx(\"div\",{key:r,class:this.classes(L,(a={},a[M]=this._hasIndicators,a))},p.tsx(\"div\",{class:this.classes(y),bind:e.preview,afterCreate:d.attachToNode}),p.tsx(\"div\",{class:this.classes(f,(n={},n[w]=this._hasIndicators,n))},d.getTitle(this.messages,e.label,!1)||\"\"))}var _=255,g=255,u=255,m=0,v=255,x=255,S=255,I=0,N=e.symbol.color&&e.symbol.color.a,k=e.symbol.outline&&e.symbol.outline.color&&e.symbol.outline.color.a;N&&(_=e.symbol.color.r,g=e.symbol.color.g,u=e.symbol.color.b,m=e.symbol.color.a*c.opacity),k&&(v=e.symbol.outline.color.r,x=e.symbol.outline.color.g,S=e.symbol.outline.color.b,I=e.symbol.outline.color.a*c.opacity);var T=null===(l=null===(o=e.symbol.color)||void 0===o?void 0:o.isBright)||void 0===l||l,F=T?\"rgba(255, 255, 255, .6)\":\"rgba(0, 0, 0, .6)\",C={background:N?\"rgba(\"+_+\", \"+g+\", \"+u+\", \"+m+\")\":\"none\",color:T?\"black\":\"white\",textShadow:\"-1px -1px 0 \"+F+\",\\n 1px -1px 0 \"+F+\",\\n -1px 1px 0 \"+F+\",\\n 1px 1px 0 \"+F,border:k?\"1px solid rgba(\"+v+\", \"+x+\", \"+S+\", \"+I+\")\":\"none\"};return p.tsx(\"div\",{key:r,class:L},p.tsx(\"div\",{class:b,styles:C},\" \",e.label,\" \"))}if(e.src){var E=this._renderImage(e,c,h);return p.tsx(\"div\",{key:r,class:L},E,p.tsx(\"div\",{class:f},e.label||\"\"))}},t.prototype._renderImage=function(e,t,s){var r,i=e.label,a=e.src,n=e.opacity,o=((r={})[v]=s,r[R]=!s,r),l={opacity:\"\"+(null!=n?n:t.opacity)};return p.tsx(\"img\",{alt:d.getTitle(this.messages,i,!1),src:a,border:0,width:e.width,height:e.height,class:this.classes(o),styles:l})},t.prototype._renderSizeRampLines=function(e){var t=e.infos,s=t[0],r=t[t.length-1],i=s.symbol,n=this._hasIndicators,o=a.pt2px(s.size+s.outlineSize)*D,l=a.pt2px(r.size+r.outlineSize)*D,c=n?o:o+50*D,h=n?o/2+50*D:o,y=function(e){if(e){if(e.type.indexOf(\"3d\")>-1){var t=e.symbolLayers&&e.symbolLayers.length;if(!t)return;var s=e.symbolLayers.getItemAt(t-1).get(\"resource.primitive\");return\"triangle\"===s||\"cone\"===s||\"tetrahedron\"===s}return\"triangle\"===e.style}}(i),_=function(e){if(e){if(e.type.indexOf(\"3d\")>-1){var t=e.symbolLayers&&e.symbolLayers.length;if(!t)return;var s=e.symbolLayers.getItemAt(t-1),r=s.resource&&s.resource.primitive;return\"circle\"===r||\"cross\"===r||\"kite\"===r||\"sphere\"===r||\"cube\"===r||\"diamond\"===r}var i=e.style;return\"circle\"===i||\"diamond\"===i||\"cross\"===i}}(i),g=document.createElement(\"canvas\");g.width=c,g.height=h,g.style.width=g.width/D+\"px\",g.style.height=g.height/D+\"px\";var u=g.getContext(\"2d\");if(n){u.beginPath();var m=c/2-l/2,v=h;u.moveTo(0,0),u.lineTo(m,v);var f=c,x=c/2+l/2,b=h;u.moveTo(f,0),u.lineTo(x,b)}else{u.beginPath();var L=h/2-l/2,w=c;u.moveTo(0,L),u.lineTo(w,0);var S=h/2+l/2,I=c,N=h;u.moveTo(0,S),u.lineTo(I,N)}return u.strokeStyle=\"#ddd\",u.stroke(),p.tsx(\"div\",{bind:g,afterCreate:d.attachToNode,styles:n?{display:\"flex\",marginTop:\"-\"+(y?0:_?o/2:0)+\"px\",marginBottom:\"-\"+(y?l:_?l/2:0)+\"px\"}:{display:\"flex\",marginRight:\"-\"+(y?0:_?o/2:0)+\"px\",marginLeft:\"-\"+(y?0:_?l/2:0)+\"px\"}})},t.prototype._renderSizeRamp=function(e,t){var s,r=e.infos,i=r[0].label,a=r[r.length-1].label,n=r[0].preview,o=r[r.length-1].preview,l=this._hasIndicators,c={\"flex-direction\":l?\"column\":\"row-reverse\"};n&&((n=n.cloneNode(!0)).style.display=\"flex\"),o&&((o=o.cloneNode(!0)).style.display=\"flex\");var h={opacity:null!=t?\"\"+t:\"\"};return p.tsx(\"div\",{class:this.classes(L,(s={},s[A]=l,s))},p.tsx(\"div\",{class:I},l?i:a),p.tsx(\"div\",{class:q,styles:c},p.tsx(\"div\",{bind:n,afterCreate:d.attachToNode,class:G,styles:h}),this._renderSizeRampLines(e),p.tsx(\"div\",{bind:o,afterCreate:d.attachToNode,class:q,styles:h})),p.tsx(\"div\",{class:I},l?a:i))},t.prototype._renderLegendForRamp=function(e,t){var s=e.infos,r=\"heatmap-ramp\"===e.type,i=s.length-1,a=i>2&&!r?25*i:100,n=a+20,l=s.slice(0).reverse();l.forEach((function(e,t){e.offset=r?e.ratio:t/i}));var c=l.length-1,d=l.length%2!=0&&l[l.length/2|0],h=d&&p.tsx(\"div\",{class:P},p.tsx(\"div\",{class:m},\"|\"),p.tsx(\"div\",{class:I},d.label)),y=s[s.length-1].label,_=s[0].label,g=null;null!=t&&(g=\"opacity: \"+t);var u=[[{shape:{type:\"path\",path:\"M0 12.5 L10 0 L10 25 Z\"},fill:l[0].color,stroke:{width:0}},{shape:{type:\"rect\",x:10,y:0,width:a,height:25},fill:{type:\"linear\",x1:10,y1:0,x2:a+10,y2:0,colors:l},stroke:{width:0}},{shape:{type:\"path\",path:\"M\"+(a+10)+\" 0 L\"+n+\" 12.5 L\"+(a+10)+\" 25 Z\"},fill:l[c].color,stroke:{width:0}}]],v=o.renderSVG(u,n,25),f=this.messages;return p.tsx(\"div\",{class:L},p.tsx(\"div\",{class:I},r?f[y]:y),p.tsx(\"div\",{class:Z},p.tsx(\"div\",{style:g},v),h),p.tsx(\"div\",{class:I},r?f[_]:_))},s.__decorate([p.renderable(),n.property()],t.prototype,\"activeLayerInfos\",void 0),s.__decorate([n.property()],t.prototype,\"layout\",void 0),s.__decorate([n.property(),p.renderable(),p.messageBundle(\"esri/widgets/Legend/t9n/Legend\")],t.prototype,\"messages\",void 0),s.__decorate([n.property(),p.renderable(),p.messageBundle(\"esri/t9n/common\")],t.prototype,\"messagesCommon\",void 0),s.__decorate([n.property({readOnly:!0})],t.prototype,\"type\",void 0),s.__decorate([n.property()],t.prototype,\"view\",void 0),s.__decorate([p.accessibleHandler()],t.prototype,\"_selectSection\",null),t=s.__decorate([n.subclass(\"esri.widgets.Legend.styles.Card\")],t)}(l)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\"],(function(n,r){\"use strict\";function t(n){return\"h\"in n&&\"s\"in n&&\"v\"in n}function a(n){return\"l\"in n&&\"a\"in n&&\"b\"in n}function u(n){return\"l\"in n&&\"c\"in n&&\"h\"in n}function o(n){return\"x\"in n&&\"y\"in n&&\"z\"in n}Object.defineProperty(r,\"__esModule\",{value:!0}),r.darken=r.toXYZ=r.toLCH=r.toLAB=r.toHSV=r.toRGB=void 0;var e=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],i=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function c(n,r){var t,a,u=[];if(n[0].length!==r.length)throw\"dimensions do not match\";var o=n.length,e=n[0].length,i=0;for(t=0;tMath.pow(6/29,3)?Math.pow(n,1/3):1/3*Math.pow(29/6,2)*n+4/29}));return{l:116*r[1]-16,a:500*(r[0]-r[1]),b:200*(r[1]-r[2])}}function M(n){var r=n.l,t=[(r+16)/116+n.a/500,(r+16)/116,(r+16)/116-n.b/200].map((function(n){return n>6/29?Math.pow(n,3):3*Math.pow(6/29,2)*(n-4/29)}));return{x:95.047*t[0],y:100*t[1],z:108.883*t[2]}}function s(n){return b(h(n))}function v(n){return f(M(n))}function g(n){return function(n){var r=n.l,t=n.a,a=n.b,u=Math.sqrt(t*t+a*a),o=Math.atan2(a,t);return{l:r,c:u,h:o=o>0?o:o+2*Math.PI}}(b(h(n)))}function l(n){return f(M(function(n){var r=n.l,t=n.c,a=n.h;return{l:r,a:t*Math.cos(a),b:t*Math.sin(a)}}(n)))}function d(n){return function(n){return\"r\"in n&&\"g\"in n&&\"b\"in n}(n)?n:u(n)?l(n):a(n)?v(n):o(n)?f(n):t(n)?function(n){var r,t=(n.h+360)%360/60,a=n.s/100,u=n.v/100*255,o=u*a,e=o*(1-Math.abs(t%2-1));switch(Math.floor(t)){case 0:r={r:o,g:e,b:0};break;case 1:r={r:e,g:o,b:0};break;case 2:r={r:0,g:o,b:e};break;case 3:r={r:0,g:e,b:o};break;case 4:r={r:e,g:0,b:o};break;case 5:case 6:r={r:o,g:0,b:e};break;default:r={r:0,g:0,b:0}}return r.r=Math.round(r.r+u-o),r.g=Math.round(r.g+u-o),r.b=Math.round(r.b+u-o),r}(n):n}r.toRGB=d,r.toHSV=function(n){return t(n)?n:function(n){var r=n.r,t=n.g,a=n.b,u=Math.max(r,t,a),o=u-Math.min(r,t,a),e=u,i=0===o?0:u===r?(t-a)/o%6:u===t?(a-r)/o+2:(r-t)/o+4,c=0===o?0:o/e;return i<0&&(i+=6),{h:i*=60,s:c*=100,v:e*=100/255}}(d(n))},r.toLAB=function(n){return a(n)?n:s(d(n))},r.toLCH=function(n){return u(n)?n:g(d(n))},r.toXYZ=function(n){return o(n)?n:h(d(n))},r.darken=function(n,r){var t=s(n);return t.l*=1-r,v(t)}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../core/compilerUtils\",\"../../core/maybe\",\"../../support/arcadeOnDemand\",\"./utils\",\"@dojo/framework/shim/Promise\"],(function(e,r,t,i,l,a,n){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.getDisplayedSymbol=r.renderPreviewHTML=r.renderColorRampPreviewHTML=r.renderDotDensityPreviewHTML=void 0;var o=null;function s(e,r){return Math.floor(Math.random()*(r-e+1)+e)}r.renderDotDensityPreviewHTML=function(e,r,t){var i=e.backgroundColor,l=e.outline,a=e.dotSize,n=t&&t.swatchSize||22,c=Math.round(n*n/Math.pow(a,2)*.8),u=window.devicePixelRatio,d=document.createElement(\"canvas\"),h=n*u;d.width=h,d.height=h,d.style.width=d.width/u+\"px\",d.style.height=d.height/u+\"px\";var p=d.getContext(\"2d\");if(i&&(p.fillStyle=i.toCss(!0),p.fillRect(0,0,h,h),p.fill()),p.fillStyle=r.toCss(!0),o&&o.length/2===c)for(var y=0;y<2*c;y+=2){var m=o[y],v=o[y+1];p.fillRect(m,v,a*u,a*u),p.fill()}else{o=[];for(y=0;y<2*c;y+=2){m=s(0,h),v=s(0,h);o.push(m,v),p.fillRect(m,v,a*u,a*u),p.fill()}}l&&(l.color&&(p.strokeStyle=l.color.toCss(!0)),p.lineWidth=l.width,p.strokeRect(0,0,h,h));var b=new Image(n,n);return b.src=d.toDataURL(),b},r.renderColorRampPreviewHTML=function(e,r){void 0===r&&(r={});var t=\"horizontal\"===r.align,i=t?75:24,l=t?24:75,a=r.width,n=void 0===a?i:a,o=r.height,s=void 0===o?l:o,c=r.gradient,u=void 0===c||c,d=window.devicePixelRatio,h=n*d,p=s*d,y=document.createElement(\"canvas\");y.width=h,y.height=p,y.style.width=n+\"px\",y.style.height=s+\"px\";var m=y.getContext(\"2d\"),v=t?h:0,b=t?0:p;if(u){var f=m.createLinearGradient(0,0,v,b),w=1/(e.length-1);e.forEach((function(e,r){return f.addColorStop(r*w,e.toString())})),m.fillStyle=f,m.fillRect(0,0,h,p)}else for(var g=t?h/e.length:h,S=t?p:p/e.length,C=0,P=0,R=0,x=e;R1&&(t*=1.25),[{type:\"path\",path:[{command:\"M\",values:[22,0]},{command:\"L\",values:[19.25,0]},{command:\"L\",values:[0,t-11]},{command:\"L\",values:[e-11,t-11]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[22,0]},{command:\"L\",values:[22,2.75]},{command:\"L\",values:[e-11,22]},{command:\"L\",values:[e-11,t-11]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[e-11,t-11]},{command:\"L\",values:[0,t-11]},{command:\"L\",values:[0,22]},{command:\"L\",values:[e-11,22]},{command:\"Z\",values:[]}]}]},e.getExtrudeSymbolShapes=function(a){var e=.5*a;return[{type:\"path\",path:[{command:\"M\",values:[0,22*.7*.5]},{command:\"L\",values:[6.6,22*.7]},{command:\"L\",values:[6.6,22*.7+e]},{command:\"L\",values:[0,22*.7+e-22*.7*.5]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[6.6,22*.7]},{command:\"L\",values:[6.6,22*.7+e]},{command:\"L\",values:[22,e]},{command:\"L\",values:[22,0]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[6.6,0]},{command:\"L\",values:[22,0]},{command:\"L\",values:[6.6,22*.7]},{command:\"L\",values:[0,22*.7*.5]},{command:\"Z\",values:[]}]}]},e.getWaterSymbolShapes=function(){return[{type:\"path\",path:\"M80,80.2v-27c-1.5,0.7-2.8,1.6-3.9,2.8c-1.8,2.1-4.4,3.3-7.1,3.5c-2.7-0.1-5.3-1.4-7.1-3.4c-2.2-2.3-4.7-3.6-7.4-3.6s-5.1,1.3-7.3,3.6c-1.8,2.1-4.4,3.3-7.2,3.4c-2.7-0.1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-3.6-7.4-3.6s-5.1,1.3-7.3,3.6S42.5,9.9,40,9.9s-5-1.3-7.1-3.4s-4.7-3.6-7.4-3.6s-5.1,1.3-7.3,3.6c-1.8,2.1-4.4,3.3-7.2,3.4c-2.5,0-5-1.3-7.1-3.4C2.8,5.3,1.4,4.3,0,3.6v25.6c1.5,0.7,2.8,1.6,3.9,2.8C5.7,34.1,8.3,35.3,11,35.4z\"}]},e.getCubeShapes=function(a,e){var t=e?20:a,m=e?4:6,p=(t-=t<=22?.5*m:m,e?.35*t:.5*t);return[{type:\"path\",path:[{command:\"M\",values:[.5*t,0]},{command:\"L\",values:[t,.5*p]},{command:\"L\",values:[.5*t,p]},{command:\"L\",values:[0,.5*p]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[0,.5*p]},{command:\"L\",values:[.5*t,p]},{command:\"L\",values:[.5*t,a]},{command:\"L\",values:[0,a-.5*p]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[.5*t,p]},{command:\"L\",values:[.5*t,a]},{command:\"L\",values:[t,a-.5*p]},{command:\"L\",values:[t,.5*p]},{command:\"Z\",values:[]}]}]},e.getCylinderShapes=function(a,e){var t=e?20:a,m=e?4:6,p=.5*(t-=t<=22?.5*m:m),c=.15*t,L=a-c;return[{type:\"ellipse\",cx:.5*t,cy:L,rx:p,ry:c},{type:\"path\",path:[{command:\"M\",values:[0,c]},{command:\"L\",values:[0,L]},{command:\"L\",values:[t,L]},{command:\"L\",values:[t,c]},{command:\"Z\",values:[]}]},{type:\"ellipse\",cx:.5*t,cy:c,rx:p,ry:c}]},e.getConeShapes=function(a,e){var t=e?20:a,m=e?4:6,p=.15*(t-=t<=22?.5*m:m),c=a-p;return[{type:\"ellipse\",cx:.5*t,cy:c,rx:.5*t,ry:p},{type:\"path\",path:[{command:\"M\",values:[.5*t,0]},{command:\"L\",values:[t,c]},{command:\"L\",values:[0,c]},{command:\"Z\",values:[]}]}]},e.getInvertedConeShapes=function(a){var e=a,t=.15*(e-=e<22?3:6);return[{type:\"path\",path:[{command:\"M\",values:[0,0]},{command:\"L\",values:[e,0]},{command:\"L\",values:[.5*e,a-t]},{command:\"Z\",values:[]}]},{type:\"ellipse\",cx:.5*e,cy:0,rx:.5*e,ry:t}]},e.getDiamondShapes=function(a){var e=a,t=a,m=e-=e<22?2:4,p=t,c=Math.floor(a/10)-1||1;return[{type:\"path\",path:[{command:\"M\",values:[.45*m,0]},{command:\"L\",values:[m,.5*p-c]},{command:\"L\",values:[.45*m-c,.5*p+c]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[.45*m,0]},{command:\"L\",values:[.45*m-c,.5*p+c]},{command:\"L\",values:[0,.5*p-c]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[0,.5*p-c]},{command:\"L\",values:[.45*m-c,.5*p+c]},{command:\"L\",values:[.45*m,t]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[.45*m,t]},{command:\"L\",values:[m,.5*p-c]},{command:\"L\",values:[.45*m-c,.5*p+c]},{command:\"Z\",values:[]}]}]},e.getTetrahedronShapes=function(a){var e=a;return[{type:\"path\",path:[{command:\"M\",values:[.45*a,0]},{command:\"L\",values:[a,e-=e<22?1:2]},{command:\"L\",values:[.45*a,.6*e]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[.45*a,0]},{command:\"L\",values:[.45*a,.6*e]},{command:\"L\",values:[0,e]},{command:\"Z\",values:[]}]},{type:\"path\",path:[{command:\"M\",values:[0,e]},{command:\"L\",values:[.45*a,.6*e]},{command:\"L\",values:[a,e]},{command:\"Z\",values:[]}]}]}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../Color\",\"../../core/has\",\"../../core/libs/gl-matrix-2/mat2df32\",\"../../core/libs/gl-matrix-2/math/mat2d\",\"../../widgets/support/widget\"],(function(t,e,r,i,n,a,o){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.renderSVG=e.getTransformMatrix=e.computeBBox=e.getBoundingBox=e.renderDef=e.generateTextAttributes=e.generateStrokeAttributes=e.generateFillAttributes=e.renderShape=void 0;var l=0,s=0,h=i(\"android\"),d=i(\"chrome\")||h&&h>=4?\"auto\":\"optimizeLegibility\",f={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,z:0},c=/([A-DF-Za-df-z])|([-+]?\\d*[.]?\\d+(?:[eE][-+]?\\d+)?)/g,y={},u={},g={solid:\"none\",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]};function x(t){return t.map((function(t){return t.command+\" \"+t.values.join(\" \")})).join(\" \").trim()}function p(t,e,r,i){if(t){if(\"circle\"===t.type)return o.tsx(\"circle\",{fill:e,\"fill-rule\":\"evenodd\",stroke:r.color,\"stroke-width\":r.width,\"stroke-linecap\":r.cap,\"stroke-linejoin\":r.join,\"stroke-dasharray\":r.dashArray,\"stroke-miterlimit\":\"4\",cx:t.cx,cy:t.cy,r:t.r});if(\"ellipse\"===t.type)return o.tsx(\"ellipse\",{fill:e,\"fill-rule\":\"evenodd\",stroke:r.color,\"stroke-width\":r.width,\"stroke-linecap\":r.cap,\"stroke-linejoin\":r.join,\"stroke-dasharray\":r.dashArray,\"stroke-miterlimit\":\"4\",cx:t.cx,cy:t.cy,rx:t.rx,ry:t.ry});if(\"rect\"===t.type)return o.tsx(\"rect\",{fill:e,\"fill-rule\":\"evenodd\",stroke:r.color,\"stroke-width\":r.width,\"stroke-linecap\":r.cap,\"stroke-linejoin\":r.join,\"stroke-dasharray\":r.dashArray,\"stroke-miterlimit\":\"4\",x:t.x,y:t.y,width:t.width,height:t.height});if(\"image\"===t.type)return o.tsx(\"image\",{href:t.src,x:t.x,y:t.y,width:t.width,height:t.height,preserveAspectRatio:\"none\"});if(\"path\"===t.type){var n=\"string\"!=typeof t.path?x(t.path):t.path;return o.tsx(\"path\",{fill:e,\"fill-rule\":\"evenodd\",stroke:r.color,\"stroke-width\":r.width,\"stroke-linecap\":r.cap,\"stroke-linejoin\":r.join,\"stroke-dasharray\":r.dashArray,\"stroke-miterlimit\":\"4\",d:n})}if(\"text\"===t.type)return o.tsx(\"text\",{fill:e,\"fill-rule\":\"evenodd\",stroke:r.color,\"stroke-width\":r.width,\"stroke-linecap\":r.cap,\"stroke-linejoin\":r.join,\"stroke-dasharray\":r.dashArray,\"stroke-miterlimit\":\"4\",\"text-anchor\":i.align,\"text-decoration\":i.decoration,kerning:i.kerning,rotate:i.rotate,\"text-rendering\":d,\"font-style\":i.font.style,\"font-variant\":i.font.variant,\"font-weight\":i.font.weight,\"font-size\":i.font.size,\"font-family\":i.font.family,x:t.x,y:t.y},t.text)}return null}function m(t){var e={fill:\"none\",pattern:null,linearGradient:null};if(t)if(\"type\"in t&&\"pattern\"===t.type){var i=\"patternId-\"+ ++l;e.fill=\"url(#\"+i+\")\",e.pattern={id:i,x:t.x,y:t.y,width:t.width,height:t.height,image:{x:0,y:0,width:t.width,height:t.height,href:t.src}}}else if(\"type\"in t&&\"linear\"===t.type){i=\"linearGradientId-\"+ ++s;e.fill=\"url(#\"+i+\")\",e.linearGradient={id:i,x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stops:t.colors.map((function(t){return{offset:t.offset,color:t.color&&new r(t.color).toString()}}))}}else if(t){var n=new r(t);e.fill=n.toString()}return e}function w(t){var e={color:\"none\",width:1,cap:\"butt\",join:\"4\",dashArray:\"none\"};if(t&&(null!=t.width&&(e.width=t.width),t.cap&&(e.cap=t.cap),t.join&&(e.join=t.join.toString()),t.color&&(e.color=new r(t.color).toString()),t.style)){var i=null;if(t.style in g&&(i=g[t.style]),Array.isArray(i)){i=i.slice(0);for(var n=0;nt&&(y.left=t),y.righte&&(y.top=e),y.bottom=n&&(i={action:t,args:e.slice(0,e.length-e.length%n)},r.push(i),j(i)):(i={action:t,args:[]},r.push(i),j(i)))}function N(t){var e={x:0,y:0,width:0,height:0};if(\"circle\"===t.type)e.x=t.cx-t.r,e.y=t.cy-t.r,e.width=2*t.r,e.height=2*t.r;else if(\"ellipse\"===t.type)e.x=t.cx-t.rx,e.y=t.cy-t.ry,e.width=2*t.rx,e.height=2*t.ry;else if(\"image\"===t.type||\"rect\"===t.type)e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height;else if(\"path\"===t.type){var r=function(t){var e=(\"string\"!=typeof t.path?x(t.path):t.path).match(c),r=[];if(y={},u={},!e)return null;for(var i=\"\",n=[],a=e.length,o=0;or?e:r,p=1,m=1;isNaN(x)||(g>1?(p=x/d,m=x/g/f):(m=x/f,p=x*g/d)),a.multiply(y,y,b(c,p,m,s,h)),u=!0}var w=t.x+(d-i)/2,v=t.y+(f-i)/2,k=s-w,A=h-v;if(a.multiply(y,y,function(t,e,r){return a.translate(t,a.identity(t),[e,r])}(c,k,A)),!u&&(d>e||f>r)){var j=d/e>f/r,S=(j?e:r)/(j?d:f);a.multiply(y,y,b(c,S,S,w,v))}return l&&a.multiply(y,y,function(t,e,r,i){var n=e%360*Math.PI/180;a.rotate(t,a.identity(t),n);var o=Math.cos(n),l=Math.sin(n),s=t[4],h=t[5];return t[4]=s*o-h*l+i*l-r*o+r,t[5]=h*o+s*l-r*l-i*o+i,t}(c,l,w,v)),\"matrix(\"+y[0]+\",\"+y[1]+\",\"+y[2]+\",\"+y[3]+\",\"+y[4]+\",\"+y[5]+\")\"}e.renderShape=p,e.generateFillAttributes=m,e.generateStrokeAttributes=w,e.generateTextAttributes=v,e.renderDef=k,e.getBoundingBox=N,e.computeBBox=I,e.getTransformMatrix=M,e.renderSVG=function(t,e,r,i){for(var n=[],a=[],l=0,s=t;l-1)return o.getSymbolLayerFill(t.symbolLayers.getItemAt(0));if(\"simple-line\"===l)return(e=r.getStroke(t))&&e.color;if(\"simple-marker\"===t.type)if(\"x\"===t.style||\"cross\"===t.style)return(e=r.getStroke(t))&&e.color;return r.getFill(t)}}function n(t){var e=l[t];return t&&null==e&&(e=l.HH),e||0}e.getRelationshipRampElement=function(t){var e=t.focus,r=t.infos,o=t.numClasses,l=s[o],a={};r.forEach((function(t){a[t.value]={label:t.label,fill:i(t.symbol)}}));for(var u=[],H=0;H=l)o=s;else{o=(e-t)/(l-t)*(s-i)+i}return o}(e,r,o)})),u=s.round(u),c=1,n.label=2;case 2:return c0&&t<1&&(b=Math.pow(10,m),t*=b,p=s.numDigits(t).integer),d=p-1,n.label=3;case 3:return d>=0?(v=Math.pow(10,d),_=Math.floor(t/v)*v,S=Math.ceil(t/v)*v,null!=b&&(_/=b,S/=b),g=(_+S)/2,I=s.round([_,g,S],{indexes:[1]}),g=I[1],[4,y(e,r,_,i,o)]):[3,8];case 4:return w=n.sent(),[4,y(e,r,S,i,o)];case 5:return L=n.sent(),[4,y(e,r,g,i,o)];case 6:if(z=n.sent(),E=s.percentChange(a,w,u,null),R=s.percentChange(a,L,u,null),D=s.percentChange(a,z,u,null),M=E.previous<=f,V=R.previous<=f,M&&V&&(E.previous<=R.previous?(M=!0,V=!1):(V=!0,M=!1)),M?h=[_,w]:V?h=[S,L]:D.previous<=f&&(h=[g,z]),h)return[3,8];n.label=7;case 7:return d--,[3,3];case 8:return[2,h]}}))}))}function y(r,t,l,i,s){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(n){switch(n.label){case 0:return[4,new Promise((function(r,n){e([\"../../../renderers/visualVariables/support/visualVariableUtils\"],r,n)}))];case 1:return[2,(0,n.sent().getSize)(r,l,{scale:i,view:s,shape:\"simple-marker\"===t.type?t.style:null})]}}))}))}r.getRampStops=function(e,b,h,d,v,_){return n.__awaiter(this,void 0,void 0,(function(){var S,g,w,L,z,E,R,D,M,V,I,O,x,A,C,k,W=this;return n.__generator(this,(function(Z){switch(Z.label){case 0:return S=b.legendOptions,g=S&&S.customValues,w=function(e,r){var n=null,i=null;if(\"simple\"===e.type)n=e.symbol;else if(\"class-breaks\"===e.type){var s=e.classBreakInfos;n=s&&s[0]&&s[0].symbol,i=s.length>1}else if(\"unique-value\"===e.type){s=e.uniqueValueInfos;n=s&&s[0]&&s[0].symbol,i=s.length>1}if(!n||function(e){if(e){return l.isSymbol3D(e)?!!e.symbolLayers&&e.symbolLayers.some((function(e){return e&&\"fill\"===e.type})):-1!==e.type.indexOf(\"fill\")}return!1}(n))return null;n=n.clone(),(r||i)&&(n.type.indexOf(\"3d\")>-1?function(e){a.isVolumetricSymbol(e)||(\"line-3d\"===e.type?e.symbolLayers.forEach((function(e){e.material={color:f}})):e.symbolLayers.forEach((function(e){\"icon\"!==e.type||e.resource&&e.resource.href?e.material={color:m}:(e.material={color:c},e.outline={color:f,size:1.5})})))}(n):function(e){\"cim\"===e.type?o.applyCIMSymbolColor(e,new t(m)):-1!==e.type.indexOf(\"line\")?e.color=f:(e.color=c,\"simple-marker\"===e.type&&(e.outline={color:f,width:1.5}))}(n));return n}(e,h),L=!!w,z=!!g,E=null!=b.minSize&&null!=b.maxSize,R=b.stops&&b.stops.length>1,D=!!b.target,L&&(z||E||R&&!D)?(M=a.isVolumetricSymbol(w),V=null,I=null,O=null,!M||R?[3,1]:(I=s.round([b.minDataValue,b.maxDataValue]),[3,4])):[2,void 0];case 1:return(x=g)?[3,3]:[4,p(b,w,d,v)];case 2:x=Z.sent(),Z.label=3;case 3:I=x,Z.label=4;case 4:return!I&&R&&(I=b.stops.map((function(e){return e.value})),(V=b.stops.some((function(e){return!!e.label})))&&(O=b.stops.map((function(e){return e.label})))),M&&I&&I.length>2&&(I=[I[0],I[I.length-1]]),I?(A=[r.REAL_WORLD_MIN_SIZE,r.REAL_WORLD_MAX_SIZE],C=a.getSymbolOutlineSize(w),k=V?null:function(e,r){var n=e.length-1;return e.map((function(e,t){return u.createStopLabel(e,t,n,r)}))}(I,_),[4,i.all(I.map((function(e,r){return n.__awaiter(W,void 0,void 0,(function(){var t,i,s,o;return n.__generator(this,(function(n){switch(n.label){case 0:return M?(s=A[r],[3,3]):[3,1];case 1:return[4,y(b,w,e,d,v)];case 2:s=n.sent(),n.label=3;case 3:return i=function(e,r){var n=e.clone();if(l.isSymbol3D(n))a.isVolumetricSymbol(n)||n.symbolLayers.forEach((function(e){\"fill\"!==e.type&&(e.size=r)}));else if(\"esri.symbols.SimpleMarkerSymbol\"===n.declaredClass)n.size=r;else if(function(e){return\"esri.symbols.PictureMarkerSymbol\"===e.declaredClass}(n)){var t=n.width,i=n.height;n.height=r,n.width=r*(t/i)}else!function(e){return\"esri.symbols.SimpleLineSymbol\"===e.declaredClass}(n)?function(e){return\"esri.symbols.TextSymbol\"===e.declaredClass}(n)&&n.font&&(n.font.size=r):n.width=r;return n}(w,t=s),o=V?O[r]:k[r],[2,{value:e,symbol:i,label:o,size:t,outlineSize:C}]}}))}))})))]):[2,null];case 5:return[2,Z.sent().reverse()]}}))}))}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../intl/date\",\"../../../renderers/support/numberUtils\"],(function(A,e,a,t){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.RGB_IMG_SOURCE=e.createStopLabel=void 0;var r=a.convertDateFormatToIntlOptions(\"short-date\");e.createStopLabel=function(A,e,o,i){var I=\"\";return 0===e?I=\"< \":e===o&&(I=\"> \"),I+(i?a.formatDate(A,r):t.format(A))},e.RGB_IMG_SOURCE=[\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwcdIkqhiWn5fHwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu6JrzFUAAAAASUVORK5CYII=\",\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwaeIkqhiWl5/HwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu6sKxboAAAAASUVORK5CYII=\",\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAANUlEQVQ4jWPMy8v7z0BFwMLAwMAwadJEqhiWl5fPwEQVk5DAqIGjBo4aOGrgqIEQwEjtKgAATl0Hu75+IUcAAAAASUVORK5CYII=\"]}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../intl\",\"../../../core/accessorSupport/decorators\",\"../../Widget\",\"./support/utils\",\"../support/styleUtils\",\"../../support/widget\"],(function(e,r,t,s,l,i,a,n,o){\"use strict\";var d=\"esri-legend__service\",p=\"esri-legend__service-label\",c=\"esri-legend__layer\",g=\"esri-legend__group-layer\",y=\"esri-legend__group-layer-child\",_=\"esri-legend__layer-table\",u=\"esri-legend__layer-table--size-ramp\",m=\"esri-legend__layer-child-table\",h=\"esri-legend__layer-caption\",v=\"esri-legend__layer-body\",f=\"esri-legend__layer-row\",b=\"esri-legend__layer-cell esri-legend__layer-cell--info\",x=\"esri-legend__imagery-layer-image--stretched\",L=\"esri-legend__imagery-layer-info--stretched\",w=\"esri-legend__layer-cell esri-legend__layer-cell--symbols\",F=\"esri-legend__symbol\",I=\"esri-legend__ramps\",S=\"esri-legend__size-ramp\",T=\"esri-legend__color-ramp\",E=\"esri-legend__opacity-ramp\",R=\"esri-legend__ramp-labels\",N=\"esri-legend__ramp-label\",z=\"esri-legend__message\",C=\"esri-widget__heading\";return function(e){function r(r,t){var s=e.call(this,r,t)||this;return s.activeLayerInfos=null,s.messages=null,s.type=\"classic\",s}return t.__extends(r,e),r.prototype.render=function(){var e=this,r=this.activeLayerInfos,t=r&&r.toArray().map((function(r){return e._renderLegendForLayer(r)})).filter((function(e){return!!e}));return o.tsx(\"div\",null,t&&t.length?t:o.tsx(\"div\",{class:z},this.messages.noLegend))},r.prototype._renderLegendForLayer=function(e){var r,t=this;if(!e.ready)return null;var s=!!e.children.length,l=\"esri-legend__\"+e.layer.uid+\"-version-\"+e.version,i=e.title?o.tsx(\"h3\",{class:this.classes(C,p)},e.title):null;if(s){var a=e.children.map((function(e){return t._renderLegendForLayer(e)})).toArray();return o.tsx(\"div\",{key:l,class:this.classes(d,g)},i,a)}var n=e.legendElements;if(n&&!n.length)return null;var _=n.map((function(r){return t._renderLegendForElement(r,e.layer)})).filter((function(e){return!!e}));if(!_.length)return null;var u=((r={})[y]=!!e.parent,r);return o.tsx(\"div\",{key:l,class:this.classes(d,u)},i,o.tsx(\"div\",{class:c},_))},r.prototype._renderLegendForElement=function(e,r,t){var s,l=this,i=\"color-ramp\"===e.type,d=\"opacity-ramp\"===e.type,p=\"size-ramp\"===e.type,c=null;if(\"symbol-table\"===e.type||p){var g=e.infos.map((function(t){return l._renderLegendForElementInfo(t,r,p,e.legendType)})).filter((function(e){return!!e}));g.length&&(c=o.tsx(\"div\",{class:v},g))}else\"color-ramp\"===e.type||\"opacity-ramp\"===e.type||\"heatmap-ramp\"===e.type||\"stretch-ramp\"===e.type?c=this._renderLegendForRamp(e,r.opacity):\"relationship-ramp\"===e.type&&(c=a.renderRelationshipRamp(e,this.id,r.opacity));if(!c)return null;var y=e.title,f=null;if(\"string\"==typeof y)f=y;else if(y){var b=n.getTitle(this.messages,y,i||d);f=n.isRendererTitle(y,i||d)&&y.title?y.title+\" (\"+b+\")\":b}var x=t?m:_,L=f?o.tsx(\"div\",{class:h},f):null,w=((s={})[u]=p||!t,s);return o.tsx(\"div\",{class:this.classes(x,w)},L,c)},r.prototype._renderLegendForRamp=function(e,r){var t=this,s=e.infos,l=\"opacity-ramp\"===e.type,i=\"heatmap-ramp\"===e.type,a=\"stretch-ramp\"===e.type,d=e.preview,p=l?E:\"\";d.className=T+\" \"+p,null!=r&&(d.style.opacity=r.toString());var c=s.map((function(e){return o.tsx(\"div\",{class:e.label?N:null},i?t.messages[e.label]:a?t._getStretchStopLabel(e):e.label)})),g={width:\"24px\"},y={height:d.style.height};return o.tsx(\"div\",{class:f},o.tsx(\"div\",{class:w,styles:g},o.tsx(\"div\",{class:I,bind:d,afterCreate:n.attachToNode})),o.tsx(\"div\",{class:b},o.tsx(\"div\",{class:R,styles:y},c)))},r.prototype._getStretchStopLabel=function(e){return e.label?this.messages[e.label]+\": \"+s.formatNumber(e.value,{style:\"decimal\",notation:e.value.toString().indexOf(\"e\")>-1?\"scientific\":\"standard\"}):\"\"},r.prototype._renderLegendForElementInfo=function(e,r,t,s){var l,i;if(e.type)return this._renderLegendForElement(e,r,!0);var a=null,d=n.isImageryStretchedLegend(r,s);if(e.symbol&&e.preview?a=o.tsx(\"div\",{class:F,bind:e.preview,afterCreate:n.attachToNode}):e.src&&(a=this._renderImage(e,r,d)),!a)return null;var p=((l={})[L]=d,l),c=((i={})[L]=d,i[S]=!d&&t,i);return o.tsx(\"div\",{class:f},o.tsx(\"div\",{class:this.classes(w,c)},a),o.tsx(\"div\",{class:this.classes(b,p)},n.getTitle(this.messages,e.label,!1)||\"\"))},r.prototype._renderImage=function(e,r,t){var s,l=e.label,i=e.src,a=e.opacity,d=((s={})[x]=t,s[F]=!t,s),p={opacity:\"\"+(null!=a?a:r.opacity)};return o.tsx(\"img\",{alt:n.getTitle(this.messages,l,!1),src:i,border:0,width:e.width,height:e.height,class:this.classes(d),styles:p})},t.__decorate([o.renderable(),l.property()],r.prototype,\"activeLayerInfos\",void 0),t.__decorate([l.property(),o.renderable(),o.messageBundle(\"esri/widgets/Legend/t9n/Legend\")],r.prototype,\"messages\",void 0),t.__decorate([l.property({readOnly:!0})],r.prototype,\"type\",void 0),r=t.__decorate([l.subclass(\"esri.widgets.Legend.styles.Classic\")],r)}(i)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../core/Handles\",\"../core/watchUtils\",\"../core/accessorSupport/decorators\",\"../core/accessorSupport/decorators/cast\",\"./Widget\",\"./Legend/LegendViewModel\",\"./Legend/styles/Card\",\"./Legend/styles/Classic\",\"./support/widget\"],(function(e,r,t,i,n,o,s,a,d,l,c,p){\"use strict\";var y=\"esri-legend\",f=\"esri-widget\",v=\"esri-widget--panel\",u=\"esri-icon-layer-list\";return function(e){function r(r,t){var n=e.call(this,r,t)||this;return n._handles=new i,n.activeLayerInfos=null,n.basemapLegendVisible=!1,n.groundLegendVisible=!1,n.keepCacheOnDestroy=!1,n.respectLayerVisibility=!0,n.iconClass=u,n.label=void 0,n.layerInfos=null,n.messages=null,n.style=new c,n.view=null,n.viewModel=new d,n}return t.__extends(r,e),r.prototype.initialize=function(){var e=this;this.own(n.on(this,\"activeLayerInfos\",\"change\",(function(){return e._refreshActiveLayerInfos(e.activeLayerInfos)})),n.init(this,\"style\",(function(r,t){t&&r!==t&&t.destroy(),r&&(r.activeLayerInfos=e.activeLayerInfos,\"card\"===r.type&&(r.view=e.view))})))},r.prototype.destroy=function(){this._handles.destroy(),this._handles=null},r.prototype.castStyle=function(e){if(e instanceof l||e instanceof c)return e;if(\"string\"==typeof e)return\"card\"===e?new l:new c;if(e&&\"string\"==typeof e.type){var r=t.__assign({},e);return delete r.type,new(\"card\"===e.type?l:c)(r)}return new c},r.prototype.render=function(){return p.tsx(\"div\",{class:this.classes(y,f,this.style instanceof c?v:null)},this.style.render())},r.prototype._refreshActiveLayerInfos=function(e){var r=this;this._handles.removeAll(),e.forEach((function(e){return r._renderOnActiveLayerInfoChange(e)})),this.scheduleRender()},r.prototype._renderOnActiveLayerInfoChange=function(e){var r=this,t=n.init(e,\"version\",(function(){return r.scheduleRender()}));this._handles.add(t,\"version_\"+e.layer.uid);var i=n.on(e,\"children\",\"change\",(function(){e.children.forEach((function(e){return r._renderOnActiveLayerInfoChange(e)}))}));this._handles.add(i,\"children_\"+e.layer.uid),e.children.forEach((function(e){return r._renderOnActiveLayerInfoChange(e)}))},t.__decorate([o.aliasOf(\"viewModel.activeLayerInfos\"),p.renderable()],r.prototype,\"activeLayerInfos\",void 0),t.__decorate([o.aliasOf(\"viewModel.basemapLegendVisible\"),p.renderable()],r.prototype,\"basemapLegendVisible\",void 0),t.__decorate([o.aliasOf(\"viewModel.groundLegendVisible\"),p.renderable()],r.prototype,\"groundLegendVisible\",void 0),t.__decorate([o.aliasOf(\"viewModel.keepCacheOnDestroy\")],r.prototype,\"keepCacheOnDestroy\",void 0),t.__decorate([o.aliasOf(\"viewModel.respectLayerVisibility\"),p.renderable()],r.prototype,\"respectLayerVisibility\",void 0),t.__decorate([o.property()],r.prototype,\"iconClass\",void 0),t.__decorate([o.property({aliasOf:{source:\"messages.widgetLabel\",overridable:!0}})],r.prototype,\"label\",void 0),t.__decorate([o.aliasOf(\"viewModel.layerInfos\"),p.renderable()],r.prototype,\"layerInfos\",void 0),t.__decorate([o.property(),p.renderable(),p.messageBundle(\"esri/widgets/Legend/t9n/Legend\")],r.prototype,\"messages\",void 0),t.__decorate([o.property(),p.renderable()],r.prototype,\"style\",void 0),t.__decorate([s.cast(\"style\")],r.prototype,\"castStyle\",null),t.__decorate([o.aliasOf(\"viewModel.view\"),p.renderable()],r.prototype,\"view\",void 0),t.__decorate([o.property(),p.renderable([\"view.size\"])],r.prototype,\"viewModel\",void 0),r=t.__decorate([o.subclass(\"esri.widgets.Legend\")],r)}(a)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../assets\",\"../../core/colorUtils\",\"../../core/compilerUtils\",\"../../core/Error\",\"../../core/Logger\",\"../../core/maybe\",\"../../core/promiseUtils\",\"../../core/screenUtils\",\"./gfxUtils\",\"./IconSymbol3DLayerResource\",\"./ObjectSymbol3DLayerResource\",\"./previewUtils\",\"./renderUtils\",\"./styleUtils\",\"./utils\"],(function(e,t,a,r,s,l,i,o,n,h,u,p,c,m,f,y,v,d){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.previewSymbol3D=t.getPatternDescriptor=t.getSymbolLayerFill=void 0;var b=r.getAssetUrl(\"esri/symbols/patterns/\"),g=r.getAssetUrl(\"esri/images/Legend/legend3dsymboldefault.png\"),x=o.getLogger(\"esri.symbols.support.previewSymbol3D\");function w(e){var t=e.outline,a=n.isSome(e.material)?e.material.color:null,r=n.isSome(a)?a.toRgba().toString():null;if(n.isNone(t))return\"fill\"===e.type&&\"255,255,255,1\"===r?{color:\"#bdc3c7\",width:.75}:null;var s=u.pt2px(t.size)||0;return{color:\"rgba(\"+(n.isSome(t.color)?t.color.toRgba():\"255,255,255,1\")+\")\",width:Math.min(s,80)}}function S(e,t){void 0===t&&(t=1);var a=e.a,r=s.toHSV(e),l=r.h,i=r.s/t,o=100-(100-r.v)/t,n=s.toRGB({h:l,s:i,v:o});return[n.r,n.g,n.b,a]}function M(e,t){return Math.round(Math.min(Math.max(e+255*t*.75,0),255))}function k(e){return\"water\"===e.type?n.isNone(e.color)?null:e.color:n.isNone(e.material)||n.isNone(e.material.color)?null:e.material.color}function L(e,t){void 0===t&&(t=0);var a=k(e);if(!a){var r=M(p.defaultThematicColor.r,t);return[r,r,r,100]}for(var s=a.toRgba(),l=0;l<3;l++)s[l]=M(s[l],t);return s}function z(e,t){return a.__awaiter(this,void 0,void 0,(function(){var r;return a.__generator(this,(function(a){switch(a.label){case 0:return\"none\"===(r=e.style)?[2,null]:[4,p.getPatternUrlWithColor(\"\"+b+r+\".png\",t.toCss(!0))];case 1:return[2,{type:\"pattern\",x:0,y:0,src:a.sent(),width:5,height:5}]}}))}))}function _(e){return e.outline?w(e):{color:\"rgba(0, 0, 0, 1)\",width:1.5}}function U(e,t){var a=k(e);if(!a)return null;var r=\"rgba(\";return r+=M(a.r,t)+\",\",r+=M(a.g,t)+\",\",(r+=M(a.b,t)+\",\")+a.a+\");\"}function D(e,t){var a=U(e,t);return a?{color:a,width:Math.min(e.size?u.pt2px(e.size):.75,80)}:{}}function j(e,t,a){var r=.75*a;return{type:\"linear\",x1:r?.25*r:0,y1:r?.5*r:0,x2:r||4,y2:r?.5*r:4,colors:[{color:e,offset:0},{color:t,offset:1}]}}function P(e,t){var a,r=t&&t.size?u.pt2px(t.size):null,s=t&&t.maxSize?u.pt2px(t.maxSize):null,i=t&&t.disableUpsampling,o=e.symbolLayers,n=[],p=0,b=0,S=o.getItemAt(o.length-1);return S&&\"icon\"===S.type&&(a=S.size&&u.pt2px(S.size)),o.forEach((function(o){if(\"icon\"===o.type||\"object\"===o.type){var x=\"icon\"===o.type?o.size&&u.pt2px(o.size):0,S=r||x?Math.ceil(Math.min(r||x,s||120)):22;if(o&&o.resource&&o.resource.href){var M=function(e,t){var a=t&&t.resource,r=a&&a.href;return e.thumbnail&&e.thumbnail.url?h.resolve(e.thumbnail.url):r&&\"object\"!==t.type?h.resolve(d.getIconHref(e,t)):e.styleOrigin&&(e.styleOrigin.styleName||e.styleOrigin.styleUrl)?v.resolveWebStyleSymbol(e.styleOrigin,{portal:e.styleOrigin.portal},\"webRef\").catch((function(e){return e})).then((function(e){return e&&e.thumbnail&&e.thumbnail.url||g})):h.resolve(g)}(e,o).then((function(e){var t=o.get(\"material.color\"),a=function(e){return\"icon\"===e.type?\"multiply\":\"tint\"}(o);return y.tintImageWithColor(e,S,t,a,i)})).then((function(e){var t=e.width,a=e.height;return p=Math.max(p,t),b=Math.max(b,a),[{shape:{type:\"image\",x:0,y:0,width:t,height:a,src:e.url},fill:null,stroke:null}]}));n.push(M)}else{var k=S;\"icon\"===o.type&&a&&r&&(k=S*(x/a));var z=t&&\"tall\"===t.symbolConfig||\"object\"===o.type&&function(e){var t=e.depth,a=e.height,r=e.width;return r&&t&&a&&r===t&&r20?2*u:40;c=Math.max(c,u),p=Math.max(p,m),g.width=u,s.push({shape:{type:\"path\",path:[{command:\"M\",values:[0,.5*c]},{command:\"L\",values:[p,.5*c]}]},stroke:g});break;case\"path\":var y=Math.min(o||22,n),v=L(e,0),d=L(e,-.2),b=U(e,-.4),g=b?{color:b,width:1}:{};if(\"quad\"===e.profile){var x=e.width||e.size,w=e.height||e.size,S=x&&w?x/w:1,M=f.getPathSymbolShapes(S),k=a.__assign(a.__assign({},g),{join:\"bevel\"});s.push({shape:M[0],fill:d,stroke:k}),s.push({shape:M[1],fill:d,stroke:k}),s.push({shape:M[2],fill:v,stroke:k})}else s.push({shape:f.shapes.pathSymbol3DLayer[0],fill:d,stroke:g}),s.push({shape:f.shapes.pathSymbol3DLayer[1],fill:v,stroke:g});c=Math.max(c,y),p=c}l.push(s)}})),h.resolve(y.renderSymbol(l,[p,c],{node:t&&t.node,scale:i,opacity:t&&t.opacity}))}(e,t);break;case\"polygon-3d\":case\"mesh-3d\":r=function(e,t){return a.__awaiter(this,void 0,void 0,(function(){var r,s,l,i,o,p,c,m,v,d,b,g,x,M,_,U,j,P,C,R,I,O,N,A,E,W,q,H,T,Z;return a.__generator(this,(function(F){switch(F.label){case 0:r=e.type,s=\"mesh-3d\"===r,l=e.symbolLayers,i=t&&t.size?u.pt2px(t.size):null,o=t&&t.maxSize?u.pt2px(t.maxSize):null,p=i||22,c=[],m=0,v=0,d=!1,b=0,F.label=1;case 1:if(!(b-1&&(this._layerViewByLayerId[e.layer.uid]=e,!0)},r.prototype._generateActiveLayerInfo=function(e){var r=this;this._isLayerActive(e)?this._buildActiveLayerInfo(e):(this._handles.remove(e.uid),this._handles.add(o.watch(e,\"legendEnabled, layer.legendEnabled\",(function(){return r._layerActiveHandle(e)})),e.uid))},r.prototype._layerActiveHandle=function(e){this._isLayerActive(e)&&(this._handles.remove(e.uid),this._buildActiveLayerInfo(e))},r.prototype._isLayerActive=function(e){return!this.respectLayerVisibility||e.legendEnabled&&e.get(\"layer.legendEnabled\")},r.prototype._buildActiveLayerInfo=function(e){var r,t=this,i=e.layer,a=e.uid,n=this._layerInfosByLayerViewId[a],s=this._activeLayerInfosByLayerViewId[a];if(!s){var y=n&&void 0!==n.title&&n.layer.uid===i.uid;s=new l({layer:i,layerView:e,title:y?n.title:i.title,view:this.view,respectLayerVisibility:this.respectLayerVisibility,keepCacheOnDestroy:this.keepCacheOnDestroy,sublayerIds:n&&n.sublayerIds||[]}),this._activeLayerInfosByLayerViewId[a]=s}var d=i.parent&&\"uid\"in i.parent&&this._layerViewByLayerId[null===(r=i.parent)||void 0===r?void 0:r.uid];if(s.parent=this._activeLayerInfosByLayerViewId[null==d?void 0:d.uid],!this._handles.has(a)){var c=[o.watch(i,\"title\",(function(e){return t._titleHandle(e,s)})),o.watch(i,\"renderer?, opacity\",(function(){return t._constructLegendElements(s)})),o.whenTrue(this.view,\"stationary\",(function(){return t._scaleHandle(s)})),o.watch(e,\"_effectiveRenderer\",(function(){return t._constructLegendElements(s)}))];if(this.respectLayerVisibility){var h=o.watch(e,\"legendEnabled\",(function(e){return t._legendEnabledHandle(e,s)})),u=o.watch(i,\"legendEnabled\",(function(e){return t._legendEnabledHandle(e,s)}));c.push(h,u)}this._handles.add(c,a)}s.isScaleDriven||this._constructLegendElements(s),this._addActiveLayerInfo(s)},r.prototype._titleHandle=function(e,r){r.title=e,this._constructLegendElements(r)},r.prototype._legendEnabledHandle=function(e,r){e?this._addActiveLayerInfo(r):this._removeActiveLayerInfo(r)},r.prototype._scaleHandle=function(e){e.isScaleDriven&&this._constructLegendElements(e)},r.prototype._addActiveLayerInfo=function(e){var r,t=this,i=e.layerView,a=e.layer;if(this._isLayerActive(i)&&-1===this.activeLayerInfos.indexOf(e)){var n=e.parent;if(n)-1===n.children.indexOf(e)&&n.children.push(e),this._sortActiveLayerInfos(n.children);else{var s=null===(r=this.layerInfos)||void 0===r?void 0:r.some((function(e){return e.layer.uid===a.uid}));a.parent&&\"uid\"in a.parent&&!s?this._activeLayerInfosWithNoParent.add(e):(this.activeLayerInfos.add(e),this._sortActiveLayerInfos(this.activeLayerInfos))}if(this._activeLayerInfosWithNoParent.length){var o=[];this._activeLayerInfosWithNoParent.forEach((function(e){var r=e.layer.parent,i=r&&\"uid\"in r&&t._layerViewByLayerId[null==r?void 0:r.uid],a=t._activeLayerInfosByLayerViewId[null==i?void 0:i.uid];a&&(o.push(e),e.parent=a)})),o.length&&(this._activeLayerInfosWithNoParent.removeMany(o),o.forEach((function(e){return t._addActiveLayerInfo(e)})))}}},r.prototype._removeActiveLayerInfo=function(e){var r=e.parent;r?r.children.remove(e):this.activeLayerInfos.remove(e)},r.prototype._constructLegendElements=function(e){var r=this,t=e.layer;\"featureCollections\"in t&&t.featureCollections?e.buildLegendElementsForFeatureCollections(t.featureCollections):\"renderer\"in t&&t.renderer?e.buildLegendElementsForRenderer(t.renderer):\"url\"in t&&t.url?e.buildLegendElementsForTools():e.children.forEach((function(e){return r._constructLegendElements(e)}))},t.__decorate([y.property({type:f})],r.prototype,\"activeLayerInfos\",void 0),t.__decorate([y.property()],r.prototype,\"basemapLegendVisible\",void 0),t.__decorate([y.property()],r.prototype,\"groundLegendVisible\",void 0),t.__decorate([y.property()],r.prototype,\"keepCacheOnDestroy\",void 0),t.__decorate([y.property()],r.prototype,\"respectLayerVisibility\",void 0),t.__decorate([y.property()],r.prototype,\"layerInfos\",void 0),t.__decorate([y.property({dependsOn:[\"view.ready\"],readOnly:!0})],r.prototype,\"state\",null),t.__decorate([y.property()],r.prototype,\"view\",void 0),r=t.__decorate([y.subclass(\"esri.widgets.Legend.LegendViewModel\")],r)}(a)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../Color\",\"../../../request\",\"../../../symbols\",\"../../../core/Accessor\",\"../../../core/addTokenParameter\",\"../../../core/arrayUtils\",\"../../../core/Collection\",\"../../../core/Handles\",\"../../../core/jsonMap\",\"../../../core/Logger\",\"../../../core/maybe\",\"../../../core/promiseUtils\",\"../../../core/screenUtils\",\"../../../core/urlUtils\",\"../../../core/watchUtils\",\"../../../core/accessorSupport/decorators\",\"../../../layers/support/ExportImageParameters\",\"../../../layers/support/fieldUtils\",\"../../../renderers/support/jsonUtils\",\"../../../renderers/visualVariables/support/SizeVariableLegendOptions\",\"../../../symbols/support/cimSymbolUtils\",\"../../../symbols/support/symbolUtils\",\"../../../symbols/support/utils\",\"./clusterUtils\",\"./colorRampUtils\",\"./heatmapRampUtils\",\"./relationshipRampUtils\",\"./sizeRampUtils\",\"./utils\",\"@dojo/framework/shim/Promise\"],(function(e,t,r,n,i,l,a,s,o,u,c,d,y,p,h,f,m,b,g,_,v,S,w,L,E,R,C,I,F,T,V,z){\"use strict\";var M=y.getLogger(\"esri.widgets.Legend.support.ActiveLayerInfo\"),O=/^\\s*(return\\s+)?\\$view\\.scale\\s*(;)?\\s*$/i,x=new d.default({esriGeometryPoint:\"point\",esriGeometryMultipoint:\"multipoint\",esriGeometryPolyline:\"polyline\",esriGeometryPolygon:\"polygon\",esriGeometryMultiPatch:\"multipatch\"}),P={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34e38,34e38],f64:[-Number.MAX_VALUE,Number.MAX_VALUE]},D=new l.SimpleMarkerSymbol({size:6,outline:{color:[128,128,128,.5],width:.5}}),A=new l.SimpleFillSymbol({style:\"solid\"});function k(e){return\"vector-field\"===e.type}function B(e){return\"raster-colormap\"===e.type}function U(e){return\"raster-stretch\"===e.type}function N(e){return\"raster-shaded-relief\"===e.type}function W(e){return\"esri.renderers.SimpleRenderer\"===e.declaredClass}function j(e){return\"esri.renderers.ClassBreaksRenderer\"===e.declaredClass}function q(e){return\"esri.renderers.UniqueValueRenderer\"===e.declaredClass}function G(e){return\"esri.renderers.HeatmapRenderer\"===e.declaredClass}function H(e){return\"esri.renderers.PointCloudClassBreaksRenderer\"===e.declaredClass}function J(e){return\"esri.renderers.PointCloudStretchRenderer\"===e.declaredClass}function X(e){return\"esri.renderers.PointCloudUniqueValueRenderer\"===e.declaredClass}function $(e){return\"esri.renderers.DotDensityRenderer\"===e.declaredClass}function Z(e){return\"esri.layers.BuildingSceneLayer\"===e.declaredClass}function Q(e){return\"esri.layers.MapImageLayer\"===e.declaredClass}function K(e){return\"esri.layers.ImageryLayer\"===e.declaredClass}function Y(e){return\"esri.layers.WCSLayer\"===e.declaredClass}var ee=new l.SimpleMarkerSymbol({style:\"path\",path:\"M10,5 L5,0 0,5 M5,0 L5,15\",size:15,outline:{width:1,color:[85,85,85,1]}}),te={};return function(t){function a(e){var r=t.call(this,e)||this;return r._handles=new c,r._hasColorRamp=!1,r._hasOpacityRamp=!1,r._hasSizeRamp=!1,r._webStyleSymbolCache=new Map,r._dotDensityUrlCache=new Map,r._scaleDrivenSizeVariable=null,r._hasClusterSizeVariable=!1,r.children=new u,r.layerView=null,r.layer=null,r.legendElements=[],r.parent=null,r.keepCacheOnDestroy=!1,r.respectLayerVisibility=!0,r.sublayerIds=[],r.title=null,r.view=null,r}return r.__extends(a,t),a.prototype.initialize=function(){var e=this,t=function(){return e.notifyChange(\"ready\")};this._handles.add([b.on(this,\"children\",\"change\",(function(r){var n=r.added,i=r.removed,l=e._handles;n.map((function(e){var r=\"activeLayerInfo-ready-watcher-\"+e.layer.uid;l.add(b.init(e,\"ready\",t),r)})),i.forEach((function(e){return l.remove(e.layer.uid)})),t()}))]),this.keepCacheOnDestroy||(te={})},a.prototype.destroy=function(){this._handles.destroy(),this._handles=null,this._webStyleSymbolCache=null,this._dotDensityUrlCache=null,this._scaleDrivenSizeVariable=null,this.keepCacheOnDestroy||(te=null)},Object.defineProperty(a.prototype,\"opacity\",{get:function(){var e,t=this.layer.opacity,r=null===(e=this.parent)||void 0===e?void 0:e.opacity,n=this.layer.parent,i=n&&\"uid\"in n?this._getParentLayerOpacity(n):null;return null!=r?r*t:null!=i?i*t:t},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"ready\",{get:function(){return null===this.layer||(this.children.length>0?this._isGroupActive():this.legendElements.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"scale\",{get:function(){return this.view&&this.view.scale},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"isScaleDriven\",{get:function(){var e=this,t=this.layer;if(null===t)return!1;if(\"featureReduction\"in t&&t.featureReduction&&\"cluster\"===t.featureReduction.type)return!0;if(\"renderer\"in t&&t.renderer){if(\"dot-density\"===t.renderer.type)return!0;var r=t.get(\"renderer.valueExpression\");if(O.test(r))return!0;var n=t.get(\"renderer.visualVariables\");if(n)return n.some((function(t){return e._isScaleDrivenSizeVariable(t)}))}return this._isLayerScaleDriven(this.layer)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"version\",{get:function(){return this._get(\"version\")+1},enumerable:!1,configurable:!0}),a.prototype.buildLegendElementsForFeatureCollections=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n=this;return r.__generator(this,(function(r){return this.legendElements=[],t=e.map((function(e){if(\"esri.layers.FeatureLayer\"===e.declaredClass)return n._buildRendererLegendElements(e.renderer,{title:e.title,mode:0});if(e.featureSet&&e.featureSet.features.length){var t=e.layerDefinition,r=t&&t.drawingInfo,i=r&&S.fromJSON(r.renderer),l=x.read(t.geometryType);return i?n._buildRendererLegendElements(i,{title:e.name,mode:0,geometryType:l}):(M.warn(\"drawingInfo not available!\"),null)}return null})),[2,h.eachAlways(t).then((function(){}))]}))}))},a.prototype.buildLegendElementsForRenderer=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this._buildRendererLegendElements(e)]}))}))},a.prototype.buildLegendElementsForTools=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,t=this;return r.__generator(this,(function(r){switch(r.label){case 0:return function(e){return\"esri.layers.WMTSLayer\"===e.declaredClass}(e=this.layer)?(this._constructLegendElementsForWMTSlayer(),[3,8]):[3,1];case 1:return function(e){return\"esri.layers.WMSLayer\"===e.declaredClass}(e)?(this._constructLegendElementsForWMSSublayers(),[3,8]):[3,2];case 2:return Z(e)?[4,this._constructLegendElementsForBuildingSceneLayer()]:[3,4];case 3:return r.sent(),[3,8];case 4:return Q(e)||function(e){return\"esri.layers.TileLayer\"===e.declaredClass}(e)||Z(e)?[4,this._constructLegendElementsForSublayers()]:[3,6];case 5:return r.sent(),[3,8];case 6:return this._handles.remove(\"imageryLayers-watcher\"),[4,this._getLegendLayers().then((function(r){t.legendElements=[],r.forEach((function(r){if(K(e)){var n=e.watch(\"renderingRule, bandIds\",(function(){te.default=null,t.buildLegendElementsForTools()}));t._handles.add(n,\"imageryLayers-watcher\")}var i=t._generateSymbolTableElementForLegendLayer(r);i&&i.infos.length&&(K(e)&&(i.title=e.title),t.legendElements.push(i)),t.notifyChange(\"ready\")})),t.notifyChange(\"ready\")})).catch((function(e){M.warn(\"Request to server for legend has failed!\",e)}))];case 7:r.sent(),r.label=8;case 8:return[2]}}))}))},a.prototype._getParentLayerOpacity=function(e){var t=1,r=e.parent;return r&&\"uid\"in r&&(t=this._getParentLayerOpacity(r)),e.opacity*t},a.prototype._isGroupActive=function(){var e=this.children;return!!e.length&&e.some((function(e){return e.ready}))},a.prototype._isScaleDrivenSizeVariable=function(e){if(e&&\"size\"!==e.type)return!1;var t=e,r=t.minSize,n=t.maxSize;return\"object\"==typeof r&&r?this._isScaleDrivenSizeVariable(r):\"object\"==typeof n&&n?this._isScaleDrivenSizeVariable(n):!!t.expression||O.test(t.valueExpression)},a.prototype._isLayerScaleDriven=function(e){var t=this;if(\"minScale\"in e&&e.minScale>0||\"maxScale\"in e&&e.maxScale>0)return!0;if(\"sublayers\"in e&&e.sublayers)return e.sublayers.some((function(e){return t._isLayerScaleDriven(e)}));var r=e.parent;if(!1===e.loaded&&r&&Q(r)&&\"source\"in e&&e.source&&\"map-layer\"===e.source.type)for(var n=0,i=r.sourceJSON.layers;n0||l.maxScale>0))return!0}return!1},a.prototype._buildRendererLegendElements=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){var n,i;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this._getRendererLegendElements(e,{title:t.title,geometryType:t.geometryType})];case 1:return n=r.sent(),0===t.mode?Array.prototype.push.apply(this.legendElements,n):this.legendElements=n,this.notifyChange(\"ready\"),[3,3];case 2:return i=r.sent(),M.warn(\"error while building legend for layer!\",i),[3,3];case 3:return[2]}}))}))},a.prototype._constructLegendElementsForWMTSlayer=function(){var e=this;this.legendElements=[],this._handles.remove(\"wmts-activeLayer-watcher\");var t=this.layer.activeLayer;if(this._handles.add(b.watch(this.layer,\"activeLayer\",(function(){return e._constructLegendElementsForWMTSlayer()})),\"wmts-activeLayer-watcher\"),t.styleId&&t.styles){var r=null;t.styles.some((function(e){return t.styleId===e.id&&(r=e.legendUrl,!0)})),r&&(this.legendElements=[{type:\"symbol-table\",title:t.title,infos:[{src:r,opacity:this.opacity}]}])}this.notifyChange(\"ready\")},a.prototype._constructLegendElementsForWMSSublayers=function(){var e=this;this.legendElements=[],this._handles.remove(\"wms-sublayers-watcher\");var t=this.layer,n=null;(t.customParameters||t.customLayerParameters)&&(n=r.__assign(r.__assign({},t.customParameters),t.customLayerParameters)),this._handles.add(b.watch(this.layer,\"sublayers\",(function(){return e._constructLegendElementsForWMSSublayers()})),\"wms-sublayers-watcher\"),this.legendElements=this._generateLegendElementsForWMSSublayers(t.sublayers,n),this.notifyChange(\"ready\")},a.prototype._generateLegendElementsForWMSSublayers=function(e,t){var r=this,n=[];return this._handles.add(e.on(\"change\",(function(){return r._constructLegendElementsForWMSSublayers()})),\"wms-sublayers-watcher\"),e.forEach((function(e){var i=e.watch(\"title, visible, legendEnabled\",(function(){return r._constructLegendElementsForWMSSublayers()}));if(r._handles.add(i,\"wms-sublayers-watcher\"),e.visible&&e.legendEnabled){var l=r._generateSymbolTableElementForWMSSublayer(e,t);l&&l.infos.length&&n.unshift(l)}})),n},a.prototype._generateSymbolTableElementForWMSSublayer=function(e,t){if(!e.legendUrl&&e.sublayers){var r=this._generateLegendElementsForWMSSublayers(e.sublayers,t).filter((function(e){return e}));return{type:\"symbol-table\",title:e.title,infos:r}}return this._generateSymbolTableElementForLegendUrl(e,t)},a.prototype._generateSymbolTableElementForLegendUrl=function(e,t){var r=e.legendUrl;if(r){var n={type:\"symbol-table\",title:e.title||e.name||e.id&&e.id+\"\",infos:[]};return t&&(r+=\"?\"+m.objectToQuery(t)),n.infos.push({src:r,opacity:e.layer&&e.layer.opacity}),n}},a.prototype._getLegendLayers=function(e){var t=e&&e.hasDynamicLayers?e.dynamicLayers:null,r=t||\"default\",n=te&&te[r];return n?h.resolve(n):this._legendRequest(t).then((function(e){var t=e.layers;return te[r]=t,t}))},a.prototype._legendRequest=function(e){var t=this.layer,n={f:\"json\",dynamicLayers:e};if(K(t)){var l=t.exportImageServiceParameters.renderingRule;if(l&&(n.renderingRule=JSON.stringify(l.toJSON())),t.bandIds&&(n.bandIds=t.bandIds.join()),t.raster||t.viewId){var a=t.raster,s=t.viewId;n=r.__assign({raster:a,viewId:s},n)}}var o=t.url.replace(/(\\/)+$/,\"\");if(\"version\"in t&&t.version>=10.01){var u=o.indexOf(\"?\");u>-1?o=o.substring(0,u)+\"/legend\"+o.substring(u):o+=\"/legend\"}else{var c=o.toLowerCase().indexOf(\"/rest/\"),d=o.substring(0,c)+o.substring(c+5,o.length);o=\"https://utility.arcgis.com/sharing/tools/legend?soapUrl=\"+encodeURI(d)+\"&returnbytes=true\"}return i(o,{query:n}).then((function(e){return e.data}))},a.prototype._constructLegendElementsForBuildingSceneLayer=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,t,n,i=this;return r.__generator(this,(function(r){switch(r.label){case 0:this.legendElements=[],this._handles.remove(\"sublayers-watcher\"),e=this.layer,this._handles.add(b.watch(e,\"sublayers\",(function(){return i._constructLegendElementsForBuildingSceneLayer()})),\"sublayers-watcher\"),r.label=1;case 1:return r.trys.push([1,3,,4]),t=this,[4,this._generateLegendElementsForBuildingSublayers(e.sublayers,this.opacity)];case 2:return t.legendElements=r.sent(),this.notifyChange(\"ready\"),[3,4];case 3:return n=r.sent(),M.warn(\"Request to server for legend has failed!\",n),[3,4];case 4:return[2]}}))}))},a.prototype._generateLegendElementsForBuildingSublayers=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,l,a,s,o,u,c,d,y,p,h=this;return r.__generator(this,(function(f){switch(f.label){case 0:n=[],this._handles.add(e.on(\"change\",(function(){return h._constructLegendElementsForBuildingSceneLayer()})),\"sublayers-watcher\"),i=e.toArray(),l=0,a=i,f.label=1;case 1:return l0)}))]}}))}))},a.prototype._constructLegendElementsForSublayers=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,t,n,i=this;return r.__generator(this,(function(r){switch(r.label){case 0:this.legendElements=[],this._handles.remove(\"sublayers-watcher\"),e=this.layer,this._handles.add(b.watch(e,\"sublayers\",(function(){return i._constructLegendElementsForSublayers})),\"sublayers-watcher\"),r.label=1;case 1:return r.trys.push([1,3,,4]),t=this,[4,this._generateLegendElementsForSublayers(e.sublayers,this.opacity)];case 2:return t.legendElements=r.sent(),this.notifyChange(\"ready\"),[3,4];case 3:return n=r.sent(),M.warn(\"Request to server for legend has failed!\",n),[3,4];case 4:return[2]}}))}))},a.prototype._generateLegendElementsForSublayers=function(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,l,a,s,o,u,c,d,y,p,h=this;return r.__generator(this,(function(f){switch(f.label){case 0:i=[],this._handles.add(e.on(\"change\",(function(){return h._constructLegendElementsForSublayers()})),\"sublayers-watcher\"),l=e.toArray(),!n&&this.sublayerIds&&this.sublayerIds.length&&(a=this.layer,l=this.sublayerIds.map((function(e){return a.findSublayerById(e)})).filter(Boolean)),s=new _.ExportImageParameters({layer:this.layer}),o=s.hasDynamicLayers&&s.dynamicLayers||\"default\",s.destroy(),u=function(e){var l,a,s,u,d;return r.__generator(this,(function(y){switch(y.label){case 0:return l=e.watch(\"renderer, opacity, title, visible, legendEnabled\",(function(t,r,i){var l=te&&te[o];l&&!n&&(n=new Map,l.forEach((function(e){return n.set(e.layerId,e)})));var a=null==n?void 0:n.get(e.id);(\"renderer\"!==i||e.originIdOf(\"renderer\")>2||!a)&&h._constructLegendElementsForSublayers()})),c._handles.add(l,\"sublayers-watcher\"),e.visible&&e.legendEnabled?(a=e&&null!=e.opacity?e.opacity:null,s=null!=a?a*t:t,e.renderer&&!e.sublayers&&e.originIdOf(\"renderer\")>2?c.respectLayerVisibility&&!c._isSublayerInScale(e)?[3,3]:[4,e.load()]:[3,4]):[3,6];case 1:return y.sent(),[4,c._getRendererLegendElements(e.renderer,{title:e.title,opacity:s,sublayer:e})];case 2:u=y.sent(),i=r.__spreadArrays(u,i),y.label=3;case 3:return[3,6];case 4:return[4,c._generateSymbolTableElementForSublayer(e,s,n)];case 5:(d=y.sent())&&i.unshift(d),y.label=6;case 6:return[2]}}))},c=this,d=0,y=l,f.label=1;case 1:return d0)}))]}}))}))},a.prototype._generateSymbolTableElementForSublayer=function(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,l,a;return r.__generator(this,(function(r){switch(r.label){case 0:if(n)return[3,4];n=new Map,i=new _.ExportImageParameters({layer:this.layer}),r.label=1;case 1:return r.trys.push([1,,3,4]),[4,this._getLegendLayers(i)];case 2:return r.sent().forEach((function(e){return n.set(e.layerId,e)})),[3,4];case 3:return i.destroy(),[7];case 4:return(l=n.get(e.id))||!e.sublayers?[3,6]:[4,this._generateLegendElementsForSublayers(e.sublayers,t,n)];case 5:return a=r.sent(),[2,{type:\"symbol-table\",title:e.title,infos:a}];case 6:return[2,this._generateSymbolTableElementForLegendLayer(l,e,t)]}}))}))},a.prototype._generateSymbolTableElementForLegendLayer=function(e,t,r){var n=this;if(!e||!e.legend||this.respectLayerVisibility&&!this._isLegendLayerInScale(e,t))return null;var i=t&&t.renderer,l=t&&t.title||e.layerName;if(i){var a=t&&t.title||this._getRendererTitle(i,t);a&&(l&&(a.title=l),l=a)}var o={type:\"symbol-table\",title:l,infos:[]};e.legendType&&(o.legendType=e.legendType);var u=t?this._sanitizeLegendForSublayer(e.legend.slice(),t):e.legend;return o.infos=u.map((function(t){var i=t.url;if(t.imageData&&t.imageData.length>0)i=\"data:image/png;base64,\"+t.imageData;else{if(0===i.indexOf(\"http\"))return null;i=s.addTokenParameter(n.layer.url+\"/\"+e.layerId+\"/images/\"+i)}return{label:t.label,src:i,opacity:null==r?n.opacity:r,width:t.width,height:t.height}})).filter((function(e){return!!e})),o.infos.length?o:null},a.prototype._isSublayerInScale=function(e){var t=e.minScale||0,r=e.maxScale||0;return!(t>0&&tthis.scale)},a.prototype._isLegendLayerInScale=function(e,t){var r=t||this.layer,n=null,i=null,l=!0;return!r.minScale&&0!==r.minScale||!r.maxScale&&0!==r.maxScale?(0===e.minScale&&r.tileInfo&&(n=r.tileInfo.lods[0].scale),0===e.maxScale&&r.tileInfo&&(i=r.tileInfo.lods[r.tileInfo.lods.length-1].scale)):(n=Math.min(r.minScale,e.minScale)||r.minScale||e.minScale,i=Math.max(r.maxScale,e.maxScale)),(n>0&&nthis.scale)&&(l=!1),l},a.prototype._sanitizeLegendForSublayer=function(e,t){if(\"version\"in this.layer&&this.layer.version<10.1||0===e.length)return e;var r=t.renderer,n=e.some((function(e){return e.values})),i=null,l=null;return n&&e.some((function(e,t){return e.values||(i=t,(l=e).label||(l.label=\"others\")),null!=l})),r?\"unique-value\"===r.type?l&&(e.splice(i,1),e.push(l)):\"class-breaks\"===r.type&&(l&&e.splice(i,1),e.reverse(),l&&e.push(l)):l&&(e.splice(i,1),e.push(l)),e},a.prototype._getRendererLegendElements=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return function(e){return W(e)||j(e)||q(e)||U(e)||B(e)||G(e)||H(e)||J(e)||X(e)||$(e)||k(e)||N(e)}(e)?function(e){return H(e)||J(e)||X(e)||function(e){return\"esri.renderers.PointCloudRGBRenderer\"===e.declaredClass}(e)}(e)?[2,this._constructPointCloudRendererLegendElements(e,t)]:$(e)?[2,this._constructDotDensityRendererLegendElements(e)]:[2,this._constructRendererLegendElements(e,t)]:(M.warn(\"Renderer not supported!\"),[2,[]])}))}))},a.prototype._getPointCloudRendererTitle=function(e){return e.legendOptions&&e.legendOptions.title||e.field},a.prototype._constructPointCloudRendererLegendElements=function(e,t){var r=this;void 0===t&&(t={});var n=t.title,i=[],l=null,a=null;if(H(e))l={type:\"symbol-table\",title:n||this._getPointCloudRendererTitle(e),infos:[]},e.colorClassBreakInfos.forEach((function(e){l.infos.unshift({label:e.label||e.minValue+\" - \"+e.maxValue,value:[e.minValue,e.maxValue],symbol:r._getAppliedCloneSymbol(D,e.color)})}));else if(J(e)){var s=e.stops,o=null;if(s.length&&(1===s.length&&(o=s[0].color),!o)){var u=s[0].value,c=s[s.length-1].value;if(null!=u&&null!=c){var d=u+(c-u)/2;o=I.getColorFromPointCloudStops(d,s)}}l={type:\"symbol-table\",title:null,infos:[{label:null,value:null,symbol:this._getAppliedCloneSymbol(D,o||D.color)}]};var y=I.getRampStopsForPointCloud(e.stops);a={type:\"color-ramp\",title:n||this._getPointCloudRendererTitle(e),infos:y,preview:E.renderColorRampPreviewHTML(y.map((function(e){return e.color})))}}else X(e)&&(l={type:\"symbol-table\",title:n||this._getPointCloudRendererTitle(e),infos:[]},e.colorUniqueValueInfos.forEach((function(e){l.infos.push({label:e.label||e.values.join(\", \"),value:e.values.join(\", \"),symbol:r._getAppliedCloneSymbol(D,e.color)})})));l&&l.infos.length&&i.push(l),a&&a.infos.length&&i.push(a);var p=i.reduce((function(e,t){return e.concat(t.infos)}),[]).filter((function(e){return!!e.symbol})).map((function(e){return r._getSymbolPreview(e,r.opacity)}));return h.eachAlways(p).then((function(){return i}))},a.prototype._getElementInfoForDotDensity=function(e,t){var r=e.backgroundColor,n=e.outline,i=e.dotSize+\"-\"+t+\"-\"+r+\"-\"+(n&&JSON.stringify(n.toJSON())),l=this._dotDensityUrlCache,a=l.has(i)?l.get(i):E.renderDotDensityPreviewHTML(e,t);return l.set(i,a),{opacity:1,src:a.src,preview:a,width:a.width,height:a.height}},a.prototype._constructDotDensityRendererLegendElements=function(e){var t=this,r=e.calculateDotValue(this.view.scale),n=e.legendOptions&&e.legendOptions.unit,i={type:\"symbol-table\",title:{value:r&&Math.round(r),unit:n||\"\"},infos:[]};return e.attributes.forEach((function(r){var n=t._getElementInfoForDotDensity(e,r.color);n.label=r.label||r.valueExpressionTitle||r.field,i.infos.push(n)})),h.resolve([i])},a.prototype._constructRendererLegendElements=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){var n,i,a,s,o,u,c,d,y,f,m,b,g,_,v,S,w,L,R,C,I,V,z,M,O,x,P,D,H,J,X,$,Z,Q,te,re,ne,ie,le,ae,se,oe=this;return r.__generator(this,(function(r){switch(r.label){case 0:return n=t.title,i=t.sublayer,a=i||this.layer,[4,this._loadRenderer(e)];case 1:return s=r.sent(),this._hasColorRamp=!1,this._hasOpacityRamp=!1,this._hasSizeRamp=!1,this._scaleDrivenSizeVariable=null,[4,this._getVisualVariableLegendElements(s,a)];case 2:return o=r.sent()||[],u={type:\"symbol-table\",title:n||this._getRendererTitle(s,a),infos:[]},c=null,d=!1,y=new Set,G(s)?(f=F.getHeatmapRampStops(s),o.push({type:\"heatmap-ramp\",title:n,infos:f,preview:E.renderColorRampPreviewHTML(f.map((function(e){return e.color})))}),[3,12]):[3,3];case 3:if(!q(s))return[3,4];if(m=s&&s.authoringInfo,m&&\"relationship\"===m.type){if(b=m.focus,g=m.numClasses,_=m.field1,v=m.field2,g&&_&&v){for(S=[_,v],w=T.getRotationAngleForFocus(b)||0,L=0,R=S;L=3?te&&te.length>=$.bandCount?D.bandIds&&3===D.bandIds.length?(X=D.bandIds.map((function(e){return te[e].BandName})),u.infos=this._createSymbolTableElementMultiBand(X)):\"lerc\"===D.format?(X=[0,1,2].map((function(e){return te[e].BandName})),u.infos=this._createSymbolTableElementMultiBand(X)):this.buildLegendElementsForTools():\"lerc\"===D.format?(X=[\"band1\",\"band2\",\"band3\"],u.infos=this._createSymbolTableElementMultiBand(X)):this.buildLegendElementsForTools():this.buildLegendElementsForTools(),r.label=10;case 10:return[3,12];case 11:if(B(s))s.colormapInfos.forEach((function(e){u.infos.push({label:e.label,value:e.value,symbol:oe._getAppliedCloneSymbol(A,e.color)})}));else if(W(s)){switch(re=s.symbol,t.geometryType){case\"point\":re=\"pointSymbol\"in a&&a.pointSymbol;break;case\"polyline\":re=\"lineSymbol\"in a&&a.lineSymbol;break;case\"polygon\":re=\"polygonSymbol\"in a&&a.polygonSymbol}s.symbol&&!this._hasSizeRamp&&u.infos.push({label:s.label,symbol:re})}else k(s)?(s.outputUnit&&(this.title=\"(\"+s.toJSON().outputUnit+\")\"),u.title=s.attributeField,(null==(ne=s.getClassBreakInfos())?void 0:ne.length)?ne.forEach((function(e){u.infos.push({label:e.minValue+\" - \"+e.maxValue,symbol:e.symbol})})):u.infos.push({label:s.attributeField,symbol:s.getDefaultSymbol()})):N(s)&&o.push(this._getStretchLegendElements(s,{min:0,max:255}));r.label=12;case 12:return!(ie=s.defaultSymbol)||d||W(s)||c&&!this._hasColorRamp&&!this._hasSizeRamp&&!this._hasOpacityRamp||o.push({type:\"symbol-table\",infos:[{label:s.defaultLabel||\"others\",symbol:ie}]}),u.infos.length&&o.unshift(u),le=null==t.opacity?this.opacity:t.opacity,ae=this._getSymbolConfig(\"visualVariables\"in s&&s.visualVariables),se=o.reduce((function(e,t){return e.concat(t.infos)}),[]).filter((function(e){return!(!e||!e.symbol)})).map((function(e){return oe._getSymbolPreview(e,le,{applyScaleDrivenSize:!y.has(e.symbol),symbolConfig:ae})})),s=null,[4,h.eachAlways(se)];case 13:return r.sent(),[2,o]}}))}))},a.prototype._constructTileImageryStretchRendererElements=function(e){var t,r,n,i=this.layer,l=i.rasterInfo,a=l.bandCount||e.statistics.length,s=l.keyProperties&&l.keyProperties.BandProperties;if(e.statistics&&e.statistics.length)t=void 0!==e.statistics[0].min?e.statistics[0].min:e.statistics[0][0],r=e.statistics[0].max||e.statistics[0][1];else if(Y(i)){var o=P[i.rasterInfo.pixelType.toLowerCase()];t=o[0],r=o[1]}if(1===l.bandCount)return this._getStretchLegendElements(e,{min:t,max:r});function u(e){var t,r=((null===(t=null==i?void 0:i.bandIds)||void 0===t?void 0:t.length)===l.bandCount?i.bandIds:Array.from(Array(Math.min(l.bandCount,3)).keys())).map((function(t){return e&&e[t]&&e[t].BandName||\"band\"+(t+1)}));return r.length<3?r.push(r[1]):r.length>3&&r.splice(3),r}return n=s&&s.length>=a?u(s):u(),this._createSymbolTableElementMultiBand(n)},a.prototype._getStretchLegendElements=function(e,t){var r=e.colorRamp,n=I.getStrectchRampStops(r,t);return{type:\"stretch-ramp\",title:\"\",infos:n,preview:E.renderColorRampPreviewHTML(n.map((function(e){return e.color})))}},a.prototype._createSymbolTableElementMultiBand=function(e){var t=[],r=[\"red\",\"green\",\"blue\"];return e.forEach((function(e,n){t.push({label:{colorName:r[n],bandName:e},src:z.RGB_IMG_SOURCE[n],opacity:1})})),t},a.prototype._updateInfosforClassedSizeRenderer=function(e,t){var r=e.authoringInfo&&\"class-breaks-size\"===e.authoringInfo.type,n=e.classBreakInfos.some((function(e){return R.isVolumetricSymbol(e.symbol)}));if(r&&n){var i=V.REAL_WORLD_MAX_SIZE,l=V.REAL_WORLD_MIN_SIZE,a=e.classBreakInfos.length,s=(i-l)/(a>1?a-1:a);t.forEach((function(e,t){e.size=i-s*t}))}},a.prototype._getSymbolConfig=function(e){var t=!1,r=!1;if(e)for(var n=0;n-1?this._applyColorTo3dSymbol(r,i):\"cim\"===r.type?L.applyCIMSymbolColor(r,t):r.color&&(r.color=new n(i||r.color)),r},a.prototype._applyColorTo3dSymbol=function(e,t){t&&e.symbolLayers.forEach((function(e){e&&(e.material||(e.material={}),e.material.color=new n(t))}))},a.prototype._getVisualVariableLegendElements=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,l,a,s,o,u,c,d,y,f,m,b=this;return r.__generator(this,(function(g){switch(g.label){case 0:if(!(\"visualVariables\"in e&&e.visualVariables&&\"vector-field\"!==e.type))return[2,null];for(n=e.visualVariables,i=[],l=[],a=[],s=0,o=n;s-1?\"water\"===(m=d.symbolLayers.getItemAt(0)).type?p.isSome(m.color)&&(y=m.color):p.isSome(m.material)&&p.isSome(m.material.color)&&(y=m.material.color):d.url||(y=d.color)),[4,h.all(c.map((function(n){return r.__awaiter(b,void 0,void 0,(function(){var i,l,a,s,o,u,c,d;return r.__generator(this,(function(r){switch(r.label){case 0:return n.legendOptions&&!1===n.legendOptions.showLegend?[3,10]:(i=this._getRampTitle(n,t),l=null,a=\"getField\"in t&&t.getField&&t.getField(n.field),s=a&&v.isDateField(a),\"color\"!==n.type?[3,2]:[4,I.getRampStops(n,null,s)]);case 1:return d=r.sent(),l={type:\"color-ramp\",title:i,infos:d,preview:E.renderColorRampPreviewHTML(d.map((function(e){return e.color})))},this._hasColorRamp||(this._hasColorRamp=!(null==l.infos||!l.infos.length)),[3,9];case 2:return\"size\"!==n.type||\"outline\"===n.target?[3,7]:O.test(n.valueExpression)?(this._hasClusterSizeVariable||(this._scaleDrivenSizeVariable=n),[3,6]):[3,3];case 3:return o={type:\"size-ramp\",title:this._hasClusterSizeVariable?this._getClusterTitle(n):i},u=V.getRampStops,c=[e,n],[4,this._getMedianColor(e)];case 4:return[4,u.apply(void 0,c.concat([r.sent(),this.scale,this.view,s]))];case 5:o.infos=r.sent(),l=o,this._hasSizeRamp||(this._hasSizeRamp=!(null==l.infos||!l.infos.length)),r.label=6;case 6:return[3,9];case 7:return\"opacity\"!==n.type?[3,9]:[4,I.getRampStops(n,y,s)];case 8:d=r.sent(),l={type:\"opacity-ramp\",title:i,infos:d,preview:E.renderColorRampPreviewHTML(d.map((function(e){return e.color})))},this._hasOpacityRamp||(this._hasOpacityRamp=!(null==l.infos||!l.infos.length)),r.label=9;case 9:return[2,l&&l.infos?l:null];case 10:return[2,void 0]}}))}))})))];case 1:return[2,g.sent().filter((function(e){return!!e}))]}}))}))},a.prototype._getDomainName=function(e,t,r){if(e&&\"function\"!=typeof e){var n=\"getField\"in r&&r.getField&&r.getField(e),i=n&&\"getFieldDomain\"in r&&r.getFieldDomain?r.getFieldDomain(n.name):null;return i&&\"coded-value\"===i.type?i.getName(t):null}return null},a.prototype._getClusterTitle=function(e){var t=this.layer,r=e.field;if(\"featureReduction\"in t&&t.featureReduction&&\"cluster\"===t.featureReduction.type){var n=t.featureReduction,i=\"popupTemplate\"in n&&n.popupTemplate,l=i&&i.fieldInfos;if(l)for(var a=0,s=l;a=10.3&&\"esri.layers.ImageryLayer\"===e.declaredClass)}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../Color\",\"../../../core/promiseUtils\",\"./utils\",\"@dojo/framework/shim/Promise\"],(function(e,r,t,n,o,l){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.getStrectchRampStops=r.getColorFromPointCloudStops=r.getRampStopsForPointCloud=r.getRampStops=void 0;var u=new n([64,64,64]);function a(e,r){var t=[],n=e.length-1;return 5===e.length?t.push(0,2,4):t.push(0,n),e.map((function(e,o){return t.indexOf(o)>-1?l.createStopLabel(e,o,n,r):null}))}function i(r,o,l){return void 0===l&&(l=u),t.__awaiter(this,void 0,void 0,(function(){var u,a;return t.__generator(this,(function(t){switch(t.label){case 0:return u=new n(l),[4,new Promise((function(r,t){e([\"../../../renderers/visualVariables/support/visualVariableUtils\"],r,t)}))];case 1:return null!=(a=t.sent().getOpacity(o,r))&&(u.a=a),[2,u]}}))}))}function s(e,r){var t=function(e,r){var t=0,n=r.length-1;return r.some((function(r,o){return e