text: self.webpackChunkRemoteClient([1,77],{135:function(e,t,i){"use strict";var s=i(13),a=(i(3),i(2),i(5),i(15)),r=i(59),l=i(18),n=(i(21),i(36),i(37),i(55)),o=i(531);const u=new r.a({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary"},{ignoreUnknown:!0});let c=class extends n.a{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};Object(s.a)([Object(a.b)({type:o.a,json:{write:!0}})],c.prototype,"authoringInfo",void 0),Object(s.a)([Object(a.b)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],c.prototype,"type",void 0),c=Object(s.a)([Object(l.a)("esri.renderers.Renderer")],c);var p=c;t.a=p},187:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(6)),l=i(0),n=i(2),o=i(5),u=i(15),c=i(77),p=i(59),b=i(58),y=i(57),d=i(18),h=i(56),m=(i(21),i(36),i(37),i(204)),j=i(74),f=i(122),O=i(221),v=i(135),g=i(208),w=i(470),V=i(338);const S=n.a.getLogger("esri.renderers.ClassBreaksRenderer"),x="percent-of-total",I="field",z=new p.a({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:x,esriNormalizeByField:I}),E=Object(o.m)(w.a);let F=s=class extends(Object(g.a)(v.a)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map(e=>{const t=new w.a;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t})}writeClassBreakInfos(e,t,i,s){const a=e.map(e=>e.write({},s));this._areClassBreaksConsecutive()&&a.forEach(e=>delete e.classMinValue),t[i]=a}castField(e){return null==e?e:"function"==typeof e?(S.error(".field: field must be a string value"),null):Object(o.l)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=(t?I:i&&x)||null,t&&i&&S.warn("warning: both normalizationField and normalizationTotal are set!")):e!==I&&e!==x||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new w.a({minValue:e,maxValue:t,symbol:Object(f.a)(i)}):E(Object(r.a)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&(Object(l.g)(t)||Object(l.g)(t.arcade))&&S.warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&(Object(l.g)(t)||Object(l.g)(t.arcade))&&(i={...i,arcade:await Object(m.e)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&(Object(l.g)(t)||Object(l.g)(t.arcade)))return void S.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&(Object(l.g)(t)||Object(l.g)(t.arcade))){const e=await Object(m.e)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol)}),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((e,t)=>e+t.getAttributeHash(),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce((e,t)=>e+t.getMeshHash(),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:Object(r.a)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:Object(r.a)(this.visualVariables),legendOptions:Object(r.a)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map(i=>i.collectRequiredFields(e,t)),Object(j.a)(e,t,this.valueExpression)];Object(j.b)(e,t,this.field),Object(j.b)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:a,arcade:r}=Object(l.o)(t,{});let n=this._compiledValueExpression.valueExpression===this.valueExpression?this._compiledValueExpression.compiledFunction:null;const o=Object(l.n)(r).arcadeUtils;if(!n){const e=o.createSyntaxTree(this.valueExpression);n=o.createFunction(e),this._compiledValueExpression.compiledFunction=n}this._compiledValueExpression.valueExpression=this.valueExpression;const u=o.executeFunction(n,o.createExecContext(e,o.getViewInfo({viewingMode:i,scale:s,spatialReference:a})));return this._getBreakIndexfromInfos(u)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let a=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(i[this.normalizationField]);if("log"===s)a=Math.log(a)*Math.LOG10E;else if(s!==x||isNaN(e)){if(s===I&&!isNaN(t)){if(isNaN(a)||isNaN(t))return-1;a/=t}}else a=a/e*100}return this._getBreakIndexfromInfos(a)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};Object(a.a)([Object(u.b)(V.a)],F.prototype,"backgroundFillSymbol",void 0),Object(a.a)([Object(u.b)({type:[w.a]})],F.prototype,"classBreakInfos",void 0),Object(a.a)([Object(y.a)("classBreakInfos")],F.prototype,"readClassBreakInfos",null),Object(a.a)([Object(h.a)("classBreakInfos")],F.prototype,"writeClassBreakInfos",null),Object(a.a)([Object(u.b)({type:String,json:{write:!0}})],F.prototype,"defaultLabel",void 0),Object(a.a)([Object(u.b)(V.b)],F.prototype,"defaultSymbol",void 0),Object(a.a)([Object(u.b)({type:String,json:{write:!0}})],F.prototype,"field",void 0),Object(a.a)([Object(c.a)("field")],F.prototype,"castField",null),Object(a.a)([Object(u.b)({type:Boolean})],F.prototype,"isMaxInclusive",void 0),Object(a.a)([Object(u.b)({type:O.a,json:{write:!0}})],F.prototype,"legendOptions",void 0),Object(a.a)([Object(u.b)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],F.prototype,"minValue",null),Object(a.a)([Object(u.b)({type:String,json:{write:!0}})],F.prototype,"normalizationField",void 0),Object(a.a)([Object(u.b)({type:Number,cast:e=>Object(o.i)(e),json:{write:!0}})],F.prototype,"normalizationTotal",void 0),Object(a.a)([Object(u.b)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write}})],F.prototype,"normalizationType",null),Object(a.a)([Object(b.a)({classBreaks:"class-breaks"})],F.prototype,"type",void 0),Object(a.a)([Object(u.b)({type:String,json:{write:!0}})],F.prototype,"valueExpression",void 0),Object(a.a)([Object(u.b)({type:String,json:{write:!0}})],F.prototype,"valueExpressionTitle",void 0),F=s=Object(a.a)([Object(d.a)("esri.renderers.ClassBreaksRenderer")],F);var _=F;t.a=_},200:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(6)),l=i(9),n=i(0),o=i(2),u=i(5),c=i(15),p=i(77),b=i(58),y=i(57),d=i(18),h=i(56),m=i(16),j=(i(21),i(36),i(37),i(89)),f=i(204),O=i(74),v=i(79),g=i(165),w=i(122),V=i(221),S=i(135),x=i(208),I=i(338),z=i(238),E=i(514),F=i(358);const _=o.a.getLogger("esri.renderers.UniqueValueRenderer"),k=Object(u.m)(E.a);let T=s=class extends(Object(x.a)(S.a)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this.type="unique-value",this.backgroundFillSymbol=null,this.field=null,this.field2=null,this.field3=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.fieldDelimiter=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let a=0;a<t.length;a++){const r=e.find(e=>e.value===t[a].value);r?Object(z.a)(r,t[a])?(s.changed.push({type:"complete",oldValue:r,newValue:t[a]}),i=!0):s.unchanged.push({oldValue:r,newValue:t[a]}):(s.added.push(t[a]),i=!0)}for(let a=0;a<e.length;a++)t.find(t=>t.value===e[a].value)||(s.removed.push(e[a]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[])}get _cache(){return{compiledFunc:null}}castField(e){return null==e||"function"==typeof e?e:Object(u.l)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s&&s.messages?s.messages.push(new m.a("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):_.error(".field: cannot write field to JSON since it's not a string value")}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}readPortal(e,t,i){return i.portal||v.a.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=Object(j.a)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=Object(j.e)(e.styleUrl,s))}set uniqueValueInfos(e){this.styleOrigin?_.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void _.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?k(e):new E.a({value:e,symbol:Object(w.a)(t)}),this.uniqueValueInfos.push(i),this._valueInfoMap[i.value]=i}removeUniqueValueInfo(e){if(this.styleOrigin)_.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");else for(let t=0;t<this.uniqueValueInfos.length;t++)if(this.uniqueValueInfos[t].value===e+""){delete this._valueInfoMap[e],this.uniqueValueInfos.splice(t,1);break}}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&(Object(n.g)(t)||Object(n.g)(t.arcade))&&(i={...i,arcade:await Object(f.e)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&(Object(n.g)(t)||Object(n.g)(t.arcade)))return void _.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i&&i.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&(Object(n.g)(i)||Object(n.g)(i.arcade))){const e=await Object(f.e)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s&&s.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos)t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((e,t)=>e+t.getAttributeHash(),"")}getMeshHash(){return`${JSON.stringify(this.backgroundFillSymbol)}.${JSON.stringify(this.defaultSymbol)}.${this.uniqueValueInfos.reduce((e,t)=>e+t.getMeshHash(),"")}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new s({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:Object(r.a)(this.defaultSymbol),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:Object(r.a)(this.visualVariables),legendOptions:Object(r.a)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:Object(r.a)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=Object(r.a)(this.uniqueValueInfos);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze(Object(r.a)(this.styleOrigin))),Object.freeze(t)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map(i=>i.collectRequiredFields(e,t)),Object(O.a)(e,t,this.valueExpression)];Object(O.b)(e,t,this.field),Object(O.b)(e,t,this.field2),Object(O.b)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return Object(F.fetchStyle)(this.styleOrigin,{portal:this.portal}).then(e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach(i=>{const s=new g.a({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const a=new E.a({value:i.name,symbol:s});t.push(a),this._valueInfoMap[i.name]=a}),this._set("uniqueValueInfos",Object.freeze(t)),!this.defaultSymbol&&this.uniqueValueInfos.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateValueInfoMap(){this._valueInfoMap={},this.uniqueValueInfos.forEach(e=>this._valueInfoMap[e.value+""]=e)}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:a,arcade:r}=Object(n.o)(t,{});let l=this._cache.compiledFunc;const o=Object(n.n)(r).arcadeUtils;if(!l){const e=o.createSyntaxTree(this.valueExpression);l=o.createFunction(e),this._cache.compiledFunc=l}const u=o.executeFunction(l,o.createExecContext(e,o.getViewInfo({viewingMode:i,scale:s,spatialReference:a})));return this._valueInfoMap[u+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if("function"!=typeof t&&this.field2){const e=this.field2,a=this.field3,r=[];t&&r.push(i[t]),e&&r.push(i[e]),a&&r.push(i[a]),s=r.join(this.fieldDelimiter||"")}else"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t&&t.portal||v.a.getDefault());const a=i.populateFromStyle();return a.catch(t=>{_.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)}),a}static fromStyleUrl(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const a=i.populateFromStyle();return a.catch(t=>{_.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),a}};Object(a.a)([Object(c.b)({readOnly:!0})],T.prototype,"_cache",null),Object(a.a)([Object(b.a)({uniqueValue:"unique-value"})],T.prototype,"type",void 0),Object(a.a)([Object(c.b)(I.a)],T.prototype,"backgroundFillSymbol",void 0),Object(a.a)([Object(c.b)({json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],T.prototype,"field",void 0),Object(a.a)([Object(p.a)("field")],T.prototype,"castField",null),Object(a.a)([Object(h.a)("field")],T.prototype,"writeField",null),Object(a.a)([Object(c.b)({type:String,json:{write:!0}})],T.prototype,"field2",void 0),Object(a.a)([Object(c.b)({type:String,json:{write:!0}})],T.prototype,"field3",void 0),Object(a.a)([Object(c.b)({type:String,json:{write:!0}})],T.prototype,"valueExpression",void 0),Object(a.a)([Object(c.b)({type:String,json:{write:!0}})],T.prototype,"valueExpressionTitle",void 0),Object(a.a)([Object(c.b)({type:V.a,json:{write:!0}})],T.prototype,"legendOptions",void 0),Object(a.a)([Object(c.b)({type:String,json:{write:!0}})],T.prototype,"defaultLabel",void 0),Object(a.a)([Object(c.b)(Object(l.a)({...I.b},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],T.prototype,"defaultSymbol",null),Object(a.a)([Object(c.b)({type:String,json:{write:!0}})],T.prototype,"fieldDelimiter",void 0),Object(a.a)([Object(c.b)({type:v.a,readOnly:!0})],T.prototype,"portal",void 0),Object(a.a)([Object(y.a)("portal",["styleName"])],T.prototype,"readPortal",null),Object(a.a)([Object(c.b)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],T.prototype,"styleOrigin",void 0),Object(a.a)([Object(y.a)("styleOrigin",["styleName","styleUrl"])],T.prototype,"readStyleOrigin",null),Object(a.a)([Object(h.a)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],T.prototype,"writeStyleOrigin",null),Object(a.a)([Object(c.b)({type:[E.a],json:{write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],T.prototype,"uniqueValueInfos",null),T=s=Object(a.a)([Object(d.a)("esri.renderers.UniqueValueRenderer")],T);var N=T;t.a=N},208:function(e,t,i){"use strict";i.d(t,"a",(function(){return M}));var s,a=i(13),r=(i(3),i(2)),l=i(5),n=i(15),o=i(57),u=i(18),c=i(56),p=(i(21),i(36),i(37),i(74)),b=i(337),y=i(328);let d=s=class extends b.a{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};Object(a.a)([Object(n.b)({readOnly:!0})],d.prototype,"cache",null),Object(a.a)([Object(n.b)({type:["color"],json:{type:["colorInfo"]}})],d.prototype,"type",void 0),Object(a.a)([Object(n.b)({type:String,json:{write:!0}})],d.prototype,"normalizationField",void 0),Object(a.a)([Object(n.b)({type:[y.a],json:{write:!0}})],d.prototype,"stops",null),d=s=Object(a.a)([Object(u.a)("esri.renderers.visualVariables.ColorVariable")],d);var h,m=d,j=i(55),f=i(153);let O=h=class extends j.a{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return Object(f.b)(t.transparency)}writeOpacity(e,t,i){t[i]=Object(f.a)(e)}clone(){return new h({label:this.label,opacity:this.opacity,value:this.value})}};Object(a.a)([Object(n.b)({type:String,json:{write:!0}})],O.prototype,"label",void 0),Object(a.a)([Object(n.b)({type:Number,json:{type:l.a,write:{target:"transparency"}}})],O.prototype,"opacity",void 0),Object(a.a)([Object(o.a)("opacity",["transparency"])],O.prototype,"readOpacity",null),Object(a.a)([Object(c.a)("opacity")],O.prototype,"writeOpacity",null),Object(a.a)([Object(n.b)({type:Number,json:{write:!0}})],O.prototype,"value",void 0),O=h=Object(a.a)([Object(u.a)("esri.renderers.visualVariables.support.OpacityStop")],O);var v,g=O;let w=v=class extends b.a{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new v({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};Object(a.a)([Object(n.b)({readOnly:!0})],w.prototype,"cache",null),Object(a.a)([Object(n.b)({type:["opacity"],json:{type:["transparencyInfo"]}})],w.prototype,"type",void 0),Object(a.a)([Object(n.b)({type:String,json:{write:!0}})],w.prototype,"normalizationField",void 0),Object(a.a)([Object(n.b)({type:[g],json:{write:!0}})],w.prototype,"stops",null),w=v=Object(a.a)([Object(u.a)("esri.renderers.visualVariables.OpacityVariable")],w);var V=w,S=i(469),x=i(321),I=i(59),z=i(40),E=i(25);const F=r.a.getLogger("esri.renderers.visualVariables.VisualVariableFactory"),_={color:m,size:x.a,opacity:V,rotation:S.a},k=new I.a({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),T=/^\[([^\]]+)\]$/i;let N=class extends E.a{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter(e=>!!e))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some(e=>!!e.target)&&e.sort((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i});for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:a}=t,r=s&&s.match(T),l=r&&r[1];if(l&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:a,field:l})),e)return e.map(e=>{const t=k.read(e.type),s=_[t];s||(F.warn("Unknown variable type: "+t),i&&i.messages&&i.messages.push(new z.a("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const a=new s;return a.read(e,i),a})}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};Object(a.a)([Object(n.b)()],N.prototype,"visualVariables",null),N=Object(a.a)([Object(u.a)("esri.renderers.visualVariables.VisualVariableFactory")],N);var q=N;const D={base:b.a,key:"type",typeMap:{opacity:V,color:m,rotation:S.a,size:x.a}},M=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new q}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?!!this.getVisualVariablesForType(e,t):!!(this.getVisualVariablesForType("size",t)||this.getVisualVariablesForType("color",t)||this.getVisualVariablesForType("opacity",t)||this.getVisualVariablesForType("rotation",t))}getVisualVariablesForType(e,t){const i=this.visualVariables;if(!i)return;const s=i.filter(i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target));return s&&0===s.length?void 0:s}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&Object(p.b)(e,t,s.field),s.normalizationField&&Object(p.b)(e,t,s.normalizationField),s.valueExpression&&await Object(p.a)(e,t,s.valueExpression))}};return Object(a.a)([Object(n.b)({types:[D],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),Object(a.a)([Object(o.a)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),Object(a.a)([Object(c.a)("visualVariables")],t.prototype,"writeVisualVariables",null),t=Object(a.a)([Object(u.a)("esri.renderers.mixins.VisualVariablesMixin")],t),t}},221:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(2),i(5),i(15)),l=i(18),n=(i(21),i(36),i(37),i(55));let o=s=class extends n.a{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};Object(a.a)([Object(r.b)({type:String,json:{write:!0}})],o.prototype,"title",void 0),o=s=Object(a.a)([Object(l.a)("esri.renderers.support.LegendOptions")],o);var u=o;t.a=u},274:function(e,t,i){"use strict";i.d(t,"a",(function(){return j})),i.d(t,"b",(function(){return m}));var s=i(16),a=i(127),r=i(165),l=i(122),n=i(113),o=i(196),u=i(197),c=i(173),p=i(198),b=i(185),y=i(145),d=i(154),h=i(171);function m(e,t,i,m){const j=function(e,t,i){if(!e)return null;if(i&&"web-scene"===i.origin&&!(e instanceof a.a)&&!(e instanceof r.a)){const a="cim"!==e.type?function(e,t=!1,i=!1,a=!0){if(!e)return{symbol:null};let m;if(Object(l.c)(e)||e instanceof r.a)m=e.clone();else if("cim"===e.type)m=p.a.fromCIMSymbol(e);else if(e instanceof n.a)m=u.a.fromSimpleLineSymbol(e);else if(e instanceof d.a)m=p.a.fromSimpleMarkerSymbol(e);else if(e instanceof c.a)m=p.a.fromPictureMarkerSymbol(e);else if(e instanceof y.a)m=b.a.fromSimpleFillSymbol(e);else{if(!(e instanceof h.a))return{error:new s.a("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};m=a?o.a.fromTextSymbol(e):p.a.fromTextSymbol(e)}if(t&&(m.id=e.id),i&&Object(l.c)(m))for(let e=0;e<m.symbolLayers.length;++e)m.symbolLayers.getItemAt(e)._ignoreDrivers=!0;return{symbol:m}}(e):{symbol:null,error:new s.a("symbol-conversion:unsupported-cim-symbol","CIM symbol is unsupported in web scenes",{symbol:e})};return a.symbol?a.symbol.write(t,i):(i.messages&&i.messages.push(new s.a("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:i,error:a.error})),null)}return i&&"web-map"===i.origin&&"web-style"===e.type?(i.messages&&i.messages.push(new s.a("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in webmaps. Use CIMSymbol instead when working with WebMap in MapView.`,{symbol:e,context:i})),null):e.write(t,i)}(e,{},m);j&&(t[i]=j)}function j(e,t){return Object(l.d)(e,null,t)}},321:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(2)),l=i(15),n=i(77),o=i(59),u=i(57),c=i(18),p=i(56),b=i(16),y=(i(21),i(36),i(37),i(65)),d=i(337),h=i(513),m=(i(5),i(512));let j=s=class extends m.a{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};Object(a.a)([Object(l.b)({type:[Number],json:{write:!0}})],j.prototype,"customValues",void 0),j=s=Object(a.a)([Object(c.a)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],j);var f,O=j,v=i(106),g=i(155);const w=r.a.getLogger("esri.renderers.visualVariables.SizeVariable"),V=new o.a({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new o.a({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function x(e){if(null!=e)return"string"==typeof e||"number"==typeof e?Object(y.e)(e):"size"===e.type?Object(v.c)(e)?e:(delete(e={...e}).type,new z(e)):void 0}function I(e,t,i){if("object"!=typeof e)return e;const s=new z;return s.read(e,i),s}let z=f=class extends d.a{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:g.g.test(this.valueExpression)}}set expression(e){w.warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){Object(v.c)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),Object(v.c)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return Object(v.a)(this)}set maxDataValue(e){e&&this.stops&&(w.warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(w.warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return x(e)}readMaxSize(e,t,i){return I(e,0,i)}set minDataValue(e){e&&this.stops&&(w.warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(w.warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return x(e)}readMinSize(e,t,i){return I(e,0,i)}get arcadeRequired(){return!!this.valueExpression||this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value):e&&(w.warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return Object(v.b)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s&&s.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new b.a("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new f({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:Object(v.c)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:Object(v.c)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if("clamped-linear"===this.transformationType){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if("stops"===this.transformationType){const e=this.stops,t=e.map(e=>e.size).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};Object(a.a)([Object(l.b)({readOnly:!0})],z.prototype,"cache",null),Object(a.a)([Object(l.b)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],z.prototype,"axis",void 0),Object(a.a)([Object(l.b)({type:String,value:null,json:{read:!1}})],z.prototype,"expression",null),Object(a.a)([Object(l.b)()],z.prototype,"index",null),Object(a.a)([Object(l.b)({type:String,readOnly:!0})],z.prototype,"inputValueType",null),Object(a.a)([Object(l.b)({type:O,json:{write:!0}})],z.prototype,"legendOptions",void 0),Object(a.a)([Object(l.b)({type:Number,value:null,json:{write:!0}})],z.prototype,"maxDataValue",null),Object(a.a)([Object(l.b)({type:Number,value:null,json:{write:!0}})],z.prototype,"maxSize",null),Object(a.a)([Object(n.a)("maxSize")],z.prototype,"castMaxSize",null),Object(a.a)([Object(u.a)("maxSize")],z.prototype,"readMaxSize",null),Object(a.a)([Object(l.b)({type:Number,value:null,json:{write:!0}})],z.prototype,"minDataValue",null),Object(a.a)([Object(l.b)({type:Number,value:null,json:{write:!0}})],z.prototype,"minSize",null),Object(a.a)([Object(n.a)("minSize")],z.prototype,"castMinSize",null),Object(a.a)([Object(u.a)("minSize")],z.prototype,"readMinSize",null),Object(a.a)([Object(l.b)({type:String,json:{write:!0}})],z.prototype,"normalizationField",void 0),Object(a.a)([Object(l.b)({readOnly:!0})],z.prototype,"arcadeRequired",null),Object(a.a)([Object(l.b)({type:String})],z.prototype,"scaleBy",void 0),Object(a.a)([Object(l.b)({type:[h.a],value:null,json:{write:!0}})],z.prototype,"stops",null),Object(a.a)([Object(l.b)({type:["outline"],json:{write:!0}})],z.prototype,"target",void 0),Object(a.a)([Object(l.b)({type:String,readOnly:!0})],z.prototype,"transformationType",null),Object(a.a)([Object(l.b)({type:["size"],json:{type:["sizeInfo"]}})],z.prototype,"type",void 0),Object(a.a)([Object(l.b)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],z.prototype,"useSymbolValue",void 0),Object(a.a)([Object(l.b)({type:String,json:{write:!0}})],z.prototype,"valueExpression",void 0),Object(a.a)([Object(u.a)("valueExpression",["valueExpression","expression"])],z.prototype,"readValueExpression",null),Object(a.a)([Object(p.a)("web-scene","valueExpression")],z.prototype,"writeValueExpressionWebScene",null),Object(a.a)([Object(l.b)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],z.prototype,"valueRepresentation",void 0),Object(a.a)([Object(l.b)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],z.prototype,"valueUnit",void 0),Object(a.a)([Object(u.a)("valueUnit")],z.prototype,"readValueUnit",null),z=f=Object(a.a)([Object(c.a)("esri.renderers.visualVariables.SizeVariable")],z);var E=z;t.a=E},328:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(2),i(5)),l=i(15),n=i(18),o=i(56),u=(i(21),i(36),i(37),i(55)),c=i(62);let p=s=class extends u.a{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=null==e?0:e}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};Object(a.a)([Object(l.b)({type:c.a,json:{type:[r.a],write:!0}})],p.prototype,"color",void 0),Object(a.a)([Object(l.b)({type:String,json:{write:!0}})],p.prototype,"label",void 0),Object(a.a)([Object(l.b)({type:Number,json:{write:{allowNull:!0}}})],p.prototype,"value",void 0),Object(a.a)([Object(o.a)("value")],p.prototype,"writeValue",null),p=s=Object(a.a)([Object(n.a)("esri.renderers.visualVariables.support.ColorStop")],p);var b=p;t.a=b},337:function(e,t,i){"use strict";var s=i(13),a=(i(3),i(2)),r=i(5),l=i(15),n=i(77),o=i(59),u=i(18),c=(i(21),i(36),i(37),i(55)),p=i(512);const b=a.a.getLogger("esri.renderers.visualVariables.VisualVariable"),y=new o.a({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let d=class extends c.a{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(b.error(".field: field must be a string value"),null):Object(r.l)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};Object(s.a)([Object(l.b)()],d.prototype,"index",void 0),Object(s.a)([Object(l.b)({type:y.apiValues,readOnly:!0,json:{read:y.read,write:y.write}})],d.prototype,"type",void 0),Object(s.a)([Object(l.b)({type:String,json:{write:!0}})],d.prototype,"field",void 0),Object(s.a)([Object(n.a)("field")],d.prototype,"castField",null),Object(s.a)([Object(l.b)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),Object(s.a)([Object(l.b)({type:String,json:{write:!0}})],d.prototype,"valueExpressionTitle",void 0),Object(s.a)([Object(l.b)({readOnly:!0})],d.prototype,"arcadeRequired",null),Object(s.a)([Object(l.b)({type:p.a,json:{write:!0}})],d.prototype,"legendOptions",void 0),d=Object(s.a)([Object(u.a)("esri.renderers.visualVariables.VisualVariable")],d);var h=d;t.a=h},338:function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return n}));var s=i(94),a=i(185),r=i(122),l=i(274);const n={types:r.i,json:{write:{writer:l.b},origins:{"web-scene":{types:r.j,write:{writer:l.b}}}}},o={types:{base:s.a,key:"type",typeMap:{"simple-fill":r.e.typeMap["simple-fill"],"picture-fill":r.e.typeMap["picture-fill"],"polygon-3d":r.e.typeMap["polygon-3d"]}},json:{write:{writer:l.b},origins:{"web-scene":{type:a.a,write:{writer:l.b}}}}}},358:function(e,t,i){"use strict";i.r(t),i.d(t,"fetchStyle",(function(){return f})),i.d(t,"fetchSymbolFromStyle",(function(){return v})),i.d(t,"resolveWebStyleSymbol",(function(){return O})),i.d(t,"styleNameFromItem",(function(){return w}));var s=i(16),a=i(21),r=i(89),l=i(54),n=i(230),o=i(79),u=i(281),c=i(231),p=i(122),b=i(274),y=i(382),d=i(3);function h(e){return!!Object(d.a)("enable-feature:"+e)}const m={};function j(e,t,i){const a=t.portal||o.a.getDefault();let r;const l=`${a.url} - ${a.user&&a.user.username} - ${e}`;return m[l]||(m[l]=function(e,t,i){return t.load(i).then(()=>{const s=new n.a({disableExtraQuery:!0,query:`owner:${S} AND type:${x} AND typekeywords:"${e}"`});return t.queryItems(s,i)}).then(({results:t})=>{let a=null;const r=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t)if(e.typeKeywords.some(e=>e.toLowerCase()===r)&&e.type===x&&e.owner===S){a=e;break}if(!a)throw new s.a("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return a.load(i)})}(e,a,i).then(e=>(r=e,e.fetchData())).then(t=>({data:t,baseUrl:r.itemUrl,styleName:e}))),m[l]}function f(e,t,i){return e.styleUrl?function(e,t){return V(e,t).then(t=>({data:t.data,baseUrl:Object(a.E)(e),styleUrl:e}))}(e.styleUrl,i):e.styleName?j(e.styleName,t,i):Promise.reject(new s.a("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function O(e,t,i,r){return e.name?e.styleName&&"Esri2DPointSymbolsStyle"===e.styleName?function(e,t,i){const s=I.replace(/\{SymbolName\}/gi,e.name);return V(s,i).then(e=>{const i=g(e.data);return Object(b.a)(i,{portal:t.portal,url:Object(a.I)(Object(a.E)(s)),origin:"portal-item"})})}(e,t,r):f(e,t,r).then(s=>v(s,e.name,t,i,r)):Promise.reject(new s.a("symbolstyleutils:style-symbol-reference-name-missing","Missing name in style symbol reference"))}function v(e,t,i,l,n){const o=e.data,d={portal:i.portal,url:Object(a.I)(e.baseUrl),origin:"portal-item"},m=o.items.find(e=>e.name===t);if(!m){const e=`The symbol name '${t}' could not be found`;return Promise.reject(new s.a("symbolstyleutils:symbol-name-not-found",e,{symbolName:t}))}let j=Object(r.a)(function(e,t){if("cimRef"===t)return e.cimRef;if(e.formatInfos&&!h("force-wosr"))for(const t of e.formatInfos)if("gltf"===t.type)return t.href;return e.webRef}(m,l),d),f=m.thumbnail&&m.thumbnail.href;const O=m.thumbnail&&m.thumbnail.imageData;Object(y.b)()&&(j=Object(y.a)(j),f=Object(y.a)(f));const v={portal:i.portal,url:Object(a.I)(Object(a.E)(j)),origin:"portal-item"};return V(j,n).then(s=>{const a="cimRef"===l?g(s.data):s.data,n=Object(b.a)(a,v);if(n&&Object(p.c)(n)){if(f){const e=Object(r.a)(f,d);n.thumbnail=new c.a({url:e})}else O&&(n.thumbnail=new c.a({url:"data:image/png;base64,"+O}));e.styleUrl?n.styleOrigin=new u.a({portal:i.portal,styleUrl:e.styleUrl,name:t}):e.styleName&&(n.styleOrigin=new u.a({portal:i.portal,styleName:e.styleName,name:t}))}return n})}function g(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function w(e){for(const t of e.typeKeywords)if(/^Esri.*Style$/.test(t)&&"Esri Style"!==t)return t}function V(e,t){const i={responseType:"json",query:{f:"json"},...t};return Object(l.default)(Object(a.B)(e),i)}const S="esri_en",x="Style",I="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},381:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return l}));var s=i(467),a=i(468),r=i(511);const l={key:"type",base:s.a,typeMap:{algorithmic:a.a,multipart:r.a}};function n(e){return e&&e.type?"algorithmic"===e.type?a.a.fromJSON(e):"multipart"===e.type?r.a.fromJSON(e):null:null}},382:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return a}));var s=i(1);function a(e){return e=e||s.a.location.hostname,c.some(t=>{var i;return null!=(null==(i=e)?void 0:i.match(t))})}function r(e,t){return e&&(t=t||s.a.location.hostname)?null!=t.match(l)||null!=t.match(o)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(n)||null!=t.match(u)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e}const l=/^devext.arcgis.com$/,n=/^qaext.arcgis.com$/,o=/^[\w-]*\.mapsdevext.arcgis.com$/,u=/^[\w-]*\.mapsqa.arcgis.com$/,c=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local.esri.com$/,l,n,/^jsapps.esri.com$/,o,u]},467:function(e,t,i){"use strict";var s=i(13),a=(i(3),i(2),i(5),i(15)),r=i(18),l=(i(21),i(36),i(37),i(55));let n=class extends l.a{constructor(e){super(e),this.type=null}};Object(s.a)([Object(a.b)({readOnly:!0,json:{read:!1,write:!0}})],n.prototype,"type",void 0),n=Object(s.a)([Object(r.a)("esri.tasks.support.ColorRamp")],n);var o=n;t.a=o},468:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(6)),l=(i(2),i(5)),n=i(15),o=i(58),u=i(18),c=(i(21),i(36),i(37),i(62)),p=i(467);let b=s=class extends p.a{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:Object(r.a)(this.fromColor),toColor:Object(r.a)(this.toColor),algorithm:this.algorithm})}};Object(a.a)([Object(o.a)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],b.prototype,"algorithm",void 0),Object(a.a)([Object(n.b)({type:c.a,json:{type:[l.a],write:!0}})],b.prototype,"fromColor",void 0),Object(a.a)([Object(n.b)({type:c.a,json:{type:[l.a],write:!0}})],b.prototype,"toColor",void 0),Object(a.a)([Object(n.b)({type:["algorithmic"]})],b.prototype,"type",void 0),b=s=Object(a.a)([Object(u.a)("esri.tasks.support.AlgorithmicColorRamp")],b);var y=b;t.a=y},469:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(2),i(5),i(15)),l=i(18),n=i(56),o=i(16),u=(i(21),i(36),i(37),i(337));let c=s=class extends u.a{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s&&s.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new o.a("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};Object(a.a)([Object(r.b)({readOnly:!0})],c.prototype,"cache",null),Object(a.a)([Object(r.b)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],c.prototype,"axis",void 0),Object(a.a)([Object(r.b)({type:["rotation"],json:{type:["rotationInfo"]}})],c.prototype,"type",void 0),Object(a.a)([Object(r.b)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],c.prototype,"rotationType",void 0),Object(a.a)([Object(r.b)({type:String,json:{write:!0}})],c.prototype,"valueExpressionTitle",void 0),Object(a.a)([Object(n.a)("web-scene","valueExpressionTitle")],c.prototype,"writeValueExpressionTitleWebScene",null),c=s=Object(a.a)([Object(l.a)("esri.renderers.visualVariables.RotationVariable")],c);var p=c;t.a=p},470:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(2),i(5),i(15)),l=i(18),n=(i(21),i(36),i(37),i(55)),o=i(122),u=i(274);let c=s=class extends n.a{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};Object(a.a)([Object(r.b)({type:String,json:{write:!0}})],c.prototype,"description",void 0),Object(a.a)([Object(r.b)({type:String,json:{write:!0}})],c.prototype,"label",void 0),Object(a.a)([Object(r.b)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],c.prototype,"minValue",void 0),Object(a.a)([Object(r.b)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],c.prototype,"maxValue",void 0),Object(a.a)([Object(r.b)({types:o.i,json:{origins:{"web-scene":{types:o.j,write:u.b}},write:u.b}})],c.prototype,"symbol",void 0),c=s=Object(a.a)([Object(l.a)("esri.renderers.support.ClassBreakInfo")],c);var p=c;t.a=p},511:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(6)),l=(i(2),i(5),i(15)),n=i(18),o=(i(21),i(36),i(37),i(467)),u=i(468);let c=s=class extends o.a{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:Object(r.a)(this.colorRamps)})}};Object(a.a)([Object(l.b)({type:[u.a],json:{write:!0}})],c.prototype,"colorRamps",void 0),Object(a.a)([Object(l.b)({type:["multipart"]})],c.prototype,"type",void 0),c=s=Object(a.a)([Object(n.a)("esri.tasks.support.MultipartColorRamp")],c);var p=c;t.a=p},512:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(2),i(5),i(15)),l=i(18),n=(i(21),i(36),i(37),i(221));let o=s=class extends n.a{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};Object(a.a)([Object(r.b)({type:Boolean,json:{write:!0}})],o.prototype,"showLegend",void 0),o=s=Object(a.a)([Object(l.a)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],o);var u=o;t.a=u},513:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(2),i(5),i(15)),l=i(18),n=(i(21),i(36),i(37),i(55)),o=i(65);let u=s=class extends n.a{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};Object(a.a)([Object(r.b)({type:String,json:{write:!0}})],u.prototype,"label",void 0),Object(a.a)([Object(r.b)({type:Number,cast:o.e,json:{write:!0}})],u.prototype,"size",void 0),Object(a.a)([Object(r.b)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),u=s=Object(a.a)([Object(l.a)("esri.renderers.visualVariables.support.SizeStop")],u);var c=u;t.a=c},514:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(2),i(5),i(15)),l=i(18),n=(i(21),i(36),i(37),i(55)),o=i(122),u=i(274);let c=s=class extends n.a{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};Object(a.a)([Object(r.b)({type:String,json:{write:!0}})],c.prototype,"description",void 0),Object(a.a)([Object(r.b)({type:String,json:{write:!0}})],c.prototype,"label",void 0),Object(a.a)([Object(r.b)({types:o.i,json:{origins:{"web-scene":{types:o.j,write:u.b}},write:u.b}})],c.prototype,"symbol",void 0),Object(a.a)([Object(r.b)({type:[String,Number],json:{type:String,write:{writer:(e,t)=>{t.value=null==e?void 0:e.toString()}}}})],c.prototype,"value",void 0),c=s=Object(a.a)([Object(l.a)("esri.renderers.support.UniqueValueInfo")],c);var p=c;t.a=p},531:function(e,t,i){"use strict";var s,a=i(13),r=(i(3),i(6)),l=(i(2),i(5)),n=i(15),o=i(59),u=i(57),c=i(18),p=(i(21),i(36),i(37),i(55));let b=s=class extends p.a{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};Object(a.a)([Object(n.b)({type:Number,json:{write:!0}})],b.prototype,"minValue",void 0),Object(a.a)([Object(n.b)({type:Number,json:{write:!0}})],b.prototype,"maxValue",void 0),b=s=Object(a.a)([Object(c.a)("esri.renderer.support.AuthoringInfoClassBreakInfo")],b);var y,d=b;let h=y=class extends p.a{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new y({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:Object(r.a)(this.classBreakInfos)})}};Object(a.a)([Object(n.b)({type:String,json:{write:!0}})],h.prototype,"field",void 0),Object(a.a)([Object(n.b)({type:String,json:{write:!0}})],h.prototype,"normalizationField",void 0),Object(a.a)([Object(n.b)({type:String,json:{write:!0}})],h.prototype,"label",void 0),Object(a.a)([Object(n.b)({type:[d],json:{write:!0}})],h.prototype,"classBreakInfos",void 0),h=y=Object(a.a)([Object(c.a)("esri.renderers.support.AuthoringInfoFieldInfo")],h);var m,j=h,f=i(77);const O=new o.a({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new o.a({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],V=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],S=["seconds","minutes","hours","days","months","years"];let x=m=class extends p.a{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};Object(a.a)([Object(n.b)({types:g,json:{write:!0}})],x.prototype,"endTime",void 0),Object(a.a)([Object(f.a)("endTime")],x.prototype,"castEndTime",null),Object(a.a)([Object(n.b)({type:String,json:{write:!0}})],x.prototype,"field",void 0),Object(a.a)([Object(n.b)({type:Number,json:{write:!0}})],x.prototype,"maxSliderValue",void 0),Object(a.a)([Object(n.b)({type:Number,json:{write:!0}})],x.prototype,"minSliderValue",void 0),Object(a.a)([Object(n.b)({types:g,json:{write:!0}})],x.prototype,"startTime",void 0),Object(a.a)([Object(f.a)("startTime")],x.prototype,"castStartTime",null),Object(a.a)([Object(n.b)({type:O.apiValues,value:null,json:{type:O.jsonValues,read:O.read,write:O.write}})],x.prototype,"style",null),Object(a.a)([Object(n.b)({type:V,value:null,json:{type:V,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.indexOf(e)>-1&&(t.theme=e)}}}},write:!0}})],x.prototype,"theme",null),Object(a.a)([Object(n.b)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],x.prototype,"type",void 0),Object(a.a)([Object(n.b)({type:S,json:{type:S,write:!0}})],x.prototype,"units",void 0),x=m=Object(a.a)([Object(c.a)("esri.renderers.support.AuthoringInfoVisualVariable")],x);var I,z=x,E=i(381);const F=new o.a({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),_=new o.a({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),k=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let T=I=class extends p.a{constructor(e){super(e),this.colorRamp=null,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){if(e)return Object(E.a)(e)}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new I({classificationMethod:this.classificationMethod,colorRamp:Object(r.a)(this.colorRamp),fields:this.fields&&this.fields.slice(0),field1:Object(r.a)(this.field1),field2:Object(r.a)(this.field2),focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(e=>e.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme})}};Object(a.a)([Object(n.b)({type:F.apiValues,value:null,json:{type:F.jsonValues,read:F.read,write:F.write,origins:{"web-document":{default:"manual",type:F.jsonValues,read:F.read,write:F.write}}}})],T.prototype,"classificationMethod",null),Object(a.a)([Object(n.b)({types:E.b,json:{write:!0}})],T.prototype,"colorRamp",void 0),Object(a.a)([Object(u.a)("colorRamp")],T.prototype,"readColorRamp",null),Object(a.a)([Object(n.b)({type:[String],value:null,json:{write:!0}})],T.prototype,"fields",null),Object(a.a)([Object(n.b)({type:j,value:null,json:{write:!0}})],T.prototype,"field1",null),Object(a.a)([Object(n.b)({type:j,value:null,json:{write:!0}})],T.prototype,"field2",null),Object(a.a)([Object(n.b)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],T.prototype,"focus",null),Object(a.a)([Object(n.b)({type:Number,value:null,json:{type:l.a,write:!0}})],T.prototype,"numClasses",null),Object(a.a)([Object(n.b)({type:k,json:{type:k,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],T.prototype,"lengthUnit",void 0),Object(a.a)([Object(n.b)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],T.prototype,"maxSliderValue",void 0),Object(a.a)([Object(n.b)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],T.prototype,"minSliderValue",void 0),Object(a.a)([Object(n.b)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],T.prototype,"statistics",null),Object(a.a)([Object(n.b)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],T.prototype,"standardDeviationInterval",null),Object(a.a)([Object(n.b)({type:_.apiValues,value:null,json:{type:_.jsonValues,read:_.read,write:_.write}})],T.prototype,"type",null),Object(a.a)([Object(n.b)({type:[z],json:{write:!0}})],T.prototype,"visualVariables",void 0),Object(a.a)([Object(n.b)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],T.prototype,"univariateSymbolStyle",null),Object(a.a)([Object(n.b)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],T.prototype,"univariateTheme",null),T=I=Object(a.a)([Object(c.a)("esri.renderers.support.AuthoringInfo")],T);var N=T;t.a=N}});