@arcgis/core 6.0.0-next.1 → 6.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/analysis/DimensionSimpleStyle.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/01803f76bc0d9f2cd566.js +1 -0
  4. package/assets/esri/core/workers/chunks/{a7325ebb7edf3273bb34.js → 12b84262dedc6b393136.js} +1 -1
  5. package/assets/esri/core/workers/chunks/261fea092ee7d27608a0.js +1 -0
  6. package/assets/esri/core/workers/chunks/{8af92bcc075e03e3e902.js → 512628db534605a2a93e.js} +22 -22
  7. package/assets/esri/core/workers/chunks/5e4d6c283c2fa28db022.js +1 -0
  8. package/assets/esri/core/workers/chunks/64770e2cf41211b63fd2.js +1 -0
  9. package/assets/esri/core/workers/chunks/{ffb3728e6ac428f62af1.js → 71103472c45928bd730c.js} +1 -1
  10. package/assets/esri/core/workers/chunks/73a87fb270818aa75fc5.js +1 -0
  11. package/assets/esri/core/workers/chunks/7ef182e24cad50815b4e.js +1 -0
  12. package/assets/esri/core/workers/chunks/8313c626596a76c7449d.js +1 -0
  13. package/assets/esri/core/workers/chunks/84e9258a57d8c365f361.js +1 -0
  14. package/assets/esri/core/workers/chunks/{b0cfec11c758eed8095f.js → 87b4e916b2668203a6b0.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{aa1054834738aef48bda.js → a0356702f2d3f787aeac.js} +1 -1
  16. package/assets/esri/core/workers/chunks/ac4cc49104d26c384e98.js +1 -0
  17. package/assets/esri/core/workers/chunks/ec28e18275d36e71b438.js +1 -0
  18. package/assets/esri/core/workers/chunks/{050c4b212f2b5691db34.js → f762f70e7d39634ce797.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{32d08b571bbd996d4e6d.js → fb4ff0ac2bc445fec413.js} +1 -1
  20. package/chunks/RibbonLine.glsl.js +9 -11
  21. package/config.js +1 -1
  22. package/core/screenUtils.js +1 -1
  23. package/kernel.js +1 -1
  24. package/package.json +2 -2
  25. package/smartMapping/renderers/support/spikeUtils.js +3 -3
  26. package/symbols/LineSymbol3DLayer.js +1 -1
  27. package/symbols/callouts/LineCallout3D.js +1 -1
  28. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  29. package/symbols/edges/Edges3D.js +1 -1
  30. package/symbols/support/Symbol3DIconOutline.js +1 -1
  31. package/symbols/support/Symbol3DOutline.js +1 -1
  32. package/symbols/support/Symbol3DTextBorder.js +1 -1
  33. package/symbols/support/defaults3D.js +1 -1
  34. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  35. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +2 -0
  36. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  37. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  38. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +2 -0
  39. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
  40. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  41. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  42. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
  43. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  44. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  45. package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
  46. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  47. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
  48. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  49. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  50. package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +1 -1
  51. package/views/3d/analysis/Viewshed/placementUtils.js +1 -1
  52. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  53. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  54. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  55. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  56. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  57. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  58. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  59. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  60. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +3 -3
  61. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +23 -9
  62. package/views/draw/support/PluginContext.js +1 -1
  63. package/views/draw/support/managers/TooltipManager.js +1 -1
  64. package/views/interactive/snapping/SnappingVisualizer.js +1 -1
  65. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  66. package/widgets/Editor/workflowUtils.js +1 -1
  67. package/widgets/support/SelectionList/FeatureItem.d.ts +9 -2
  68. package/assets/esri/core/workers/chunks/084222c00d263a534952.js +0 -1
  69. package/assets/esri/core/workers/chunks/37a636f61cfe89c6bfd1.js +0 -1
  70. package/assets/esri/core/workers/chunks/4848f195eb93cc93dd15.js +0 -1
  71. package/assets/esri/core/workers/chunks/750a9f3cdb96b966274a.js +0 -1
  72. package/assets/esri/core/workers/chunks/897fc8e78a0d54a5ff5a.js +0 -1
  73. package/assets/esri/core/workers/chunks/9432feca48ca3e5849bd.js +0 -1
  74. package/assets/esri/core/workers/chunks/956a40f40bde416efe93.js +0 -1
  75. package/assets/esri/core/workers/chunks/985b3f18cee87c3fe022.js +0 -1
  76. package/assets/esri/core/workers/chunks/ca7fb75e2c62e7d37122.js +0 -1
  77. package/assets/esri/core/workers/chunks/e7c60bd85abbd36cdc64.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[564],{60999(e,t,i){i.d(t,{DZ:()=>h,Ke:()=>y,QA:()=>m,Tj:()=>p,UT:()=>f,aD:()=>b,jJ:()=>u});var l=i(32198),s=i(69622),r=i(97768),o=i(17676),n=i(10107),a=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,l)=>t.apply(i,[e,l])))}async function p(e,t,i){return(await(0,o.Lx)(e.map((e,l)=>t.apply(i,[e,l])))).map(e=>e.value)}function d(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return d(await e)}catch(e){return c(e)}}async function h(e){try{return d(await e)}catch(e){return(0,o.QP)(e),c(e)}}function m(e){if(!0===e.ok)return e.value;throw e.error}function f(e,t){return new g(e,t)}let g=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=d(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.xt)(this._abortHandle),this._abortController=null}};(0,l.Cg)([(0,n.MZ)()],g.prototype,"value",null),(0,l.Cg)([(0,n.MZ)()],g.prototype,"error",null),(0,l.Cg)([(0,n.MZ)()],g.prototype,"finished",null),(0,l.Cg)([(0,n.MZ)()],g.prototype,"promise",void 0),(0,l.Cg)([(0,n.MZ)()],g.prototype,"_result",void 0),g=(0,l.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],g);class b{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,l.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,l.hk)(t)}}}},92438(e,t,i){i.d(t,{A:()=>u});var l=i(32198),s=i(66552),r=i(25482),o=i(91429),n=i(30943);const a=new s.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let u=class extends r.o{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];let t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}get symbols(){return[]}get arcadeRequired(){return!1}};(0,l.Cg)([(0,o.MZ)({type:n.A,json:{write:!0}})],u.prototype,"authoringInfo",void 0),(0,l.Cg)([(0,o.MZ)({type:a.apiValues,readOnly:!0,json:{type:a.jsonValues,read:!1,write:{writer:a.write,ignoreOrigin:!0,isRequired:!0}}})],u.prototype,"type",void 0),u=(0,l.Cg)([(0,o.$K)("esri.renderers.Renderer")],u)},93618(e,t,i){i.d(t,{A:()=>N});var l=i(32198),s=i(4718),r=i(53966),o=i(93637),n=i(36708),a=i(91429),u=i(6797),p=i(78888),d=i(30524),c=i(20655),y=i(92438),h=i(63988),m=i(49849),f=i(20061),g=i(80911),b=i(69540),v=i(25482);let w=class extends((0,b.OU)(v.o)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,l.Cg)([(0,a.MZ)(m.Ug)],w.prototype,"value",void 0),(0,l.Cg)([(0,a.MZ)(m.Ug)],w.prototype,"value2",void 0),(0,l.Cg)([(0,a.MZ)(m.Ug)],w.prototype,"value3",void 0),w=(0,l.Cg)([(0,a.$K)("esri.renderers.support.UniqueValue")],w);var S=i(4576),V=i(40863);let C=class extends((0,b.OU)(v.o)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.alternateSymbols=null}get values(){return this._get("values")}set values(e){if(null!=e){let t=typeof(e=Array.isArray(e)?e:[e])[0];e="string"===t||"number"===t?e.map(e=>new w({value:e})):"object"===t?e[0]instanceof w?e:e.map(e=>new w(e)):null}this._set("values",e)}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],C.prototype,"description",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],C.prototype,"label",void 0),(0,l.Cg)([(0,a.MZ)(m.z4)],C.prototype,"symbol",void 0),(0,l.Cg)([(0,a.MZ)({type:[V.A],json:{write:!0,origins:{"web-scene":{write:!1}}}})],C.prototype,"alternateSymbols",void 0),(0,l.Cg)([(0,a.MZ)({json:{type:[[String]],read:{reader:e=>e?e.map(e=>new w({value:e[0],value2:e[1],value3:e[2]})):null},write:{writer:(e,t)=>{let i=[];for(let t of e){let e=[t.value,t.value2,t.value3].filter(S.Ru).map(e=>e.toString());i.push(e)}t.values=i}}}})],C.prototype,"values",null),C=(0,l.Cg)([(0,a.$K)("esri.renderers.support.UniqueValueClass")],C);let M=class extends((0,b.OU)(v.o)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],M.prototype,"heading",void 0),(0,l.Cg)([(0,a.MZ)({type:[C],json:{write:{isRequired:!0}}})],M.prototype,"classes",void 0),M=(0,l.Cg)([(0,a.$K)("esri.renderers.support.UniqueValueGroup")],M);var x,_=i(94833),z=i(43668),A=i(97159),j=i(29169),q=i(85594),I=i(33910),Z=i(59923),F=i(93223),U=i(43937),D=i(36005);const E="uvInfos-watcher",R="uvGroups-watcher",O=(0,p.dp)(_.A);function k(e){return null==e||""===e||"string"==typeof e&&(""===e.trim()||"<null>"===e.toLowerCase())?null:e}function T(e,t){return t&&"string"==typeof e?e.split(t).map(e=>k(e)??"").join(t):`${k(e)}`}let N=x=class extends((0,h.h)(y.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=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,l={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let s=0;s<t.length;s++){let r=e.find(e=>e.value===t[s].value);r?(0,u.Ui)(r,t[s])?(l.changed.push({type:"complete",oldValue:r,newValue:t[s]}),i=!0):l.unchanged.push({oldValue:r,newValue:t[s]}):(l.added.push(t[s]),i=!0)}for(let s=0;s<e.length;s++)t.find(t=>t.value===e[s].value)||(l.removed.push(e[s]),i=!0);return i?l:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,p.GX)(e)}writeField(e,t,i,l){"string"==typeof e?t[i]=e:l?.messages?(0,Z.qt)(l,"UniqueValueRenderer.field","set to a function cannot be written to JSON"):r.A.getLogger(this).error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||c.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){let e=(0,A.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,l){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,A.t)(e.styleUrl,l))}set uniqueValueGroups(e){this.styleOrigin?r.A.getLogger(this).error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?r.A.getLogger(this).error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void r.A.getLogger(this).error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?O(e):new _.A({value:e,symbol:(0,I.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[T(i.value,this.fieldDelimiter)]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void r.A.getLogger(this).error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){let l=t[i];if(String(l.value)===String(e)){delete this._valueInfoMap[T(e,this.fieldDelimiter)],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,z.l)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void r.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");let i=this._getUniqueValueInfo(e,t);return(0,g.c)(i,t?.scale)??this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){let e=await(0,z.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}let l=this._getUniqueValueInfo(e,i);return(0,g.c)(l,i?.scale)??this.defaultSymbol}get symbols(){let e=[];if(this._isInfosSource)for(let t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[]);else for(let t of this.uniqueValueGroups??[])for(let i of t.classes??[])i.symbol&&e.push(i.symbol),e.push(...i.alternateSymbols??[]);return this.defaultSymbol&&e.push(this.defaultSymbol),e}clone(){let e=new x({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,s.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,s.o8)(this.visualVariables),legendOptions:(0,s.o8)(this.legendOptions),authoringInfo:(0,s.o8)(this.authoringInfo),backgroundFillSymbol:(0,s.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);let t=(0,s.o8)(this.uniqueValueInfos),i=(0,s.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,s.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){let i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){let i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,d.Dx)(e,t,null,this.valueExpression)];(0,d.rq)(e,t,this.field),(0,d.rq)(e,t,this.field2),(0,d.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,q.cF)(this.styleOrigin,{portal:this.portal}).then(e=>{let t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach(i=>{let l=new j.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});!this.defaultSymbol&&i.name===e.data.defaultItem&&(this.defaultSymbol=l,this._isDefaultSymbolDerived=!0);let s=new _.A({value:i.name,symbol:l});t.push(s),this._valueInfoMap[T(i.name)]=s}),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};let{uniqueValueInfos:e}=this;if(e)for(let t of e)this._valueInfoMap[T(t.value,this.fieldDelimiter)]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(E);let{uniqueValueInfos:e}=this;if(e){let t=[];for(let i of e)t.push((0,n.wB)(()=>({symbol:i.symbol,alternateSymbols:i.alternateSymbols,value:i.value,label:i.label,description:i.description}),(e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,E)}}_watchUniqueValueGroups(){this.removeHandles(R);let{uniqueValueGroups:e}=this;if(e){let t=[];for(let i of e){t.push((0,n.wB)(()=>({classes:i.classes}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(let e of i.classes??[])t.push((0,n.wB)(()=>({symbol:e.symbol,alternateSymbols:e.alternateSymbols,values:e.values,label:e.label,description:e.description}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();let e=[],{field:t,field2:i,field3:l,fieldDelimiter:s,uniqueValueGroups:r,valueExpression:o}=this;if(!t&&!o)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();let n=!(!t||!i);for(let t of r)for(let r of t.classes??[]){let{alternateSymbols:t,symbol:o,label:a,values:u,description:p}=r;for(let r of u??[]){let{value:u,value2:d,value3:c}=r,y=[u];i&&y.push(d),l&&y.push(c);let h=n?y.join(s||""):y[0]??void 0;e.push(new _.A({alternateSymbols:t,symbol:o,label:a,value:h,description:p}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();let{field:t,field2:i,valueExpression:l,fieldDelimiter:s,uniqueValueInfos:r}=this;if(!t&&!l||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();let o=!(!t||!i),n=r.map(e=>{let{alternateSymbols:t,symbol:i,label:l,value:r,description:n}=e,[a,u,p]=o?r?.toString()?.split(s||"")||[]:[r];return new C({alternateSymbols:t,symbol:i,label:l,description:n,values:[new w({value:a,value2:u,value3:p})]})}),a=[new M({classes:n})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){let{viewingMode:i,scale:l,spatialReference:s,arcade:r,timeZone:o}=t??{},n=this._cache.compiledFunc,a=r.arcadeUtils;if(!n){let e=a.createSyntaxTree(this.valueExpression);n=a.createFunction(e),this._cache.compiledFunc=n}let u=a.executeFunction(n,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:l,spatialReference:s}),o));return this._valueInfoMap[T(u)]}_getUnqiueValueInfoForFields(e){let t,i=this.field,l=e.attributes;if(this.field2){let e=this.field2,s=this.field3,r=[];i&&r.push(l[i]),e&&r.push(l[e]),s&&r.push(l[s]),t=r.join(this.fieldDelimiter||"")}else i&&(t=l[i]);return this._valueInfoMap[T(t,this.fieldDelimiter)]}static fromPortalStyle(e,t){let i=new x(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||c.A.getDefault());let l=i.populateFromStyle();return l.catch(t=>{r.A.getLogger(this.prototype).error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)}),l}static fromStyleUrl(e,t){let i=new x(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));let l=i.populateFromStyle();return l.catch(t=>{r.A.getLogger(this.prototype).error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),l}};(0,l.Cg)([(0,a.MZ)({readOnly:!0})],N.prototype,"_cache",null),(0,l.Cg)([(0,F.e)({uniqueValue:"unique-value"})],N.prototype,"type",void 0),(0,l.Cg)([(0,a.MZ)(m.As)],N.prototype,"backgroundFillSymbol",void 0),(0,l.Cg)([(0,a.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],N.prototype,"field",null),(0,l.Cg)([(0,a.wg)("field")],N.prototype,"castField",null),(0,l.Cg)([(0,U.K)("field")],N.prototype,"writeField",null),(0,l.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"field2",null),(0,l.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"field3",null),(0,l.Cg)([(0,a.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],N.prototype,"orderByClassesEnabled",void 0),(0,l.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"valueExpression",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],N.prototype,"valueExpressionTitle",void 0),(0,l.Cg)([(0,a.MZ)({type:f.A,json:{write:!0}})],N.prototype,"legendOptions",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],N.prototype,"defaultLabel",void 0),(0,l.Cg)([(0,a.MZ)((0,o.$N)({...m.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],N.prototype,"defaultSymbol",null),(0,l.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"fieldDelimiter",null),(0,l.Cg)([(0,a.MZ)({type:c.A,readOnly:!0})],N.prototype,"portal",void 0),(0,l.Cg)([(0,D.w)("portal",["styleName"])],N.prototype,"readPortal",null),(0,l.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],N.prototype,"styleOrigin",void 0),(0,l.Cg)([(0,D.w)("styleOrigin",["styleName","styleUrl"])],N.prototype,"readStyleOrigin",null),(0,l.Cg)([(0,U.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],N.prototype,"writeStyleOrigin",null),(0,l.Cg)([(0,a.MZ)({type:[M],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){let{field1:t,field2:i,field3:l,fieldDelimiter:s,uniqueValueInfos:r,valueExpression:o}=e,n=!(!t||!i);return[{classes:(r??[]).map(e=>{let{alternateSymbols:r,symbol:a,label:u,value:p,description:d}=e,[c,y,h]=n?p?.toString()?.split(s||"")||[]:[p],m=[];return(t||o)&&m.push(c),i&&m.push(y),l&&m.push(h),{alternateSymbols:r,symbol:a,label:u,values:[m],description:d}})}]}(t)).map(e=>M.fromJSON(e,i))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],N.prototype,"uniqueValueGroups",null),(0,l.Cg)([(0,a.MZ)({type:[_.A],json:{read:!1,write:{isRequired:!0,overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0,isRequired:!0}}}}})],N.prototype,"uniqueValueInfos",null),N=x=(0,l.Cg)([(0,a.$K)("esri.renderers.UniqueValueRenderer")],N)},63988(e,t,i){i.d(t,{h:()=>C});var l=i(32198),s=i(91429),r=i(30524),o=i(2024),n=i(62724),a=i(23461),u=i(48940),p=i(2795),d=i(69622),c=i(66552),y=i(53966),h=i(59923);const m={color:o.A,size:u.A,opacity:n.A,rotation:a.A},f=new c.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),g=/^\[([^\]]+)\]$/i;let b=class extends d.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e?.filter(e=>!!e),e?.length){for(let 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){let{rotationExpression:l,rotationType:s}=t,r=l?.match(g)?.[1];if(r&&(e||=[],e.push({type:"rotationInfo",rotationType:s,field:r})),e)return e.map(e=>{let t=f.read(e.type),l=m[t];l||(y.A.getLogger(this).warn(`Unknown variable type: ${t}`),(0,h.Yc)(i,"warning","visual-variable",`visualVariable of type '${t}' is not supported`,{definition:e}));let s=new l;return s.read(e,i),s})}writeVariables(e,t){let i=[];for(let l of e){let e=l.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,l.Cg)([(0,s.MZ)()],b.prototype,"visualVariables",null),b=(0,l.Cg)([(0,s.$K)("esri.renderers.visualVariables.VisualVariableFactory")],b);var v=i(69309),w=i(36005),S=i(43937);const V={base:p.A,key:"type",typeMap:{opacity:n.A,color:o.A,rotation:a.A,size:u.A}},C=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this._vvFactory=new b}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,l){t[i]=this._vvFactory.writeVariables(e,l)}get arcadeRequiredForVisualVariables(){return this.visualVariables?.some(({arcadeRequired:e})=>e)??!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){return this.visualVariables?.filter(i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))??[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(let l of i)l&&(l.field&&(0,r.rq)(e,t,l.field),l.normalizationField&&(0,r.rq)(e,t,l.normalizationField),l.valueExpression&&(M(l.valueExpression,e,t)||await(0,r.Dx)(e,t,null,l.valueExpression)))}};return(0,l.Cg)([(0,s.MZ)({types:[V],value:null,json:{write:!0}})],i.prototype,"visualVariables",null),(0,l.Cg)([(0,w.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],i.prototype,"readVisualVariables",null),(0,l.Cg)([(0,S.K)("visualVariables")],i.prototype,"writeVisualVariables",null),i=(0,l.Cg)([(0,s.$K)("esri.renderers.mixins.VisualVariablesMixin")],i),i};function M(e,t,i){let l=(0,v.D)(e);return null!=l&&((0,r.rq)(t,i,l),!0)}},30943(e,t,i){i.d(t,{A:()=>U});var l,s=i(32198),r=i(66552),o=i(25482),n=i(4718),a=i(91429),u=i(78888);let p=l=class extends o.o{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new l({minValue:this.minValue,maxValue:this.maxValue})}};(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"minValue",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"maxValue",void 0),p=l=(0,s.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoClassBreakInfo")],p);const d=p;var c;let y=c=class extends o.o{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new c({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,n.o8)(this.classBreakInfos)})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,s.Cg)([(0,a.MZ)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=c=(0,s.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoFieldInfo")],y);const h=y;var m,f=i(79901);let g=m=class extends o.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"size",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=m=(0,s.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoSizeStop")],g);const b=g;var v;const w=new r.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),S=new r.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),V={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},C=["high-to-low","above-and-below","centered-on","extremes"],M=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size","spike"])],x=["seconds","minutes","hours","days","months","years"];let _=v=class extends o.o{constructor(e){super(e),this.dataSeriesName=null,this.dataSeriesCalculationName=null,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}get normalizationField(){return"reference-size"===this.theme||"spike"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}get spikeSymbolStyle(){return"spike"===this.theme?this._get("spikeSymbolStyle"):null}set spikeSymbolStyle(e){this._set("spikeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme||"spike"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}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 v({dataSeriesCalculationName:this.dataSeriesCalculationName,dataSeriesName:this.dataSeriesName,endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,spikeSymbolStyle:this.spikeSymbolStyle,sizeStops:(0,n.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],_.prototype,"dataSeriesName",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],_.prototype,"dataSeriesCalculationName",void 0),(0,s.Cg)([(0,a.MZ)({types:V,json:{write:!0}})],_.prototype,"endTime",void 0),(0,s.Cg)([(0,f.w)("endTime")],_.prototype,"castEndTime",null),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"field",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"maxSliderValue",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"minSliderValue",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"normalizationField",null),(0,s.Cg)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"referenceSizeScale",null),(0,s.Cg)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"referenceSizeSymbolStyle",null),(0,s.Cg)([(0,a.MZ)({type:["triangle-closed-outline","triangle-gradient-fill-closed","triangle-gradient-fill-closed-outline","triangle-gradient-fill-open","triangle-gradient-fill-open-outline","triangle-open-outline","triangle-solid-fill-closed","triangle-solid-fill-closed-outline","triangle-solid-fill-open","triangle-solid-fill-open-outline"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"spikeSymbolStyle",null),(0,s.Cg)([(0,a.MZ)({types:V,json:{write:!0}})],_.prototype,"startTime",void 0),(0,s.Cg)([(0,f.w)("startTime")],_.prototype,"castStartTime",null),(0,s.Cg)([(0,a.MZ)({type:[b],json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"sizeStops",null),(0,s.Cg)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],_.prototype,"style",null),(0,s.Cg)([(0,a.MZ)({type:M,value:null,json:{type:M,origins:{"web-scene":{type:C,write:{writer:(e,t)=>{C.includes(e)&&(t.theme=e)}}}},write:!0}})],_.prototype,"theme",null),(0,s.Cg)([(0,a.MZ)({type:S.apiValues,json:{type:S.jsonValues,read:S.read,write:S.write}})],_.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:x,json:{type:x,write:!0}})],_.prototype,"units",void 0),_=v=(0,s.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoVisualVariable")],_);const z=_;var A,j=i(95349),q=i(36005);const I=new r.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),Z=new r.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers"];let U=A=class extends o.o{constructor(e){super(e),this.colorRamp=null,this.dataSeriesName=null,this.dataSeriesCalculationName=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){let 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){return e?(0,j.r)(e):void 0}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 flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",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(){let 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 A({classificationMethod:this.classificationMethod,colorRamp:(0,n.o8)(this.colorRamp),dataSeriesCalculationName:this.dataSeriesCalculationName,dataSeriesName:this.dataSeriesName,fadeRatio:(0,n.o8)(this.fadeRatio),fields:this.fields?.slice(),field1:(0,n.o8)(this.field1),field2:(0,n.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,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,flowTheme:this.flowTheme})}};(0,s.Cg)([(0,a.MZ)({type:I.apiValues,value:null,json:{type:I.jsonValues,read:I.read,write:I.write,origins:{"web-document":{default:"manual",type:I.jsonValues,read:I.read,write:I.write}}}})],U.prototype,"classificationMethod",null),(0,s.Cg)([(0,a.MZ)({types:j.g,json:{write:!0}})],U.prototype,"colorRamp",void 0),(0,s.Cg)([(0,q.w)("colorRamp")],U.prototype,"readColorRamp",null),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"dataSeriesName",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"dataSeriesCalculationName",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"fadeRatio",void 0),(0,s.Cg)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],U.prototype,"fields",null),(0,s.Cg)([(0,a.MZ)({type:h,value:null,json:{write:!0}})],U.prototype,"field1",null),(0,s.Cg)([(0,a.MZ)({type:h,value:null,json:{write:!0}})],U.prototype,"field2",null),(0,s.Cg)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],U.prototype,"flowTheme",null),(0,s.Cg)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],U.prototype,"focus",null),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],U.prototype,"isAutoGenerated",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],U.prototype,"numClasses",null),(0,s.Cg)([(0,a.MZ)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],U.prototype,"lengthUnit",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"maxSliderValue",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"minSliderValue",void 0),(0,s.Cg)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"statistics",null),(0,s.Cg)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],U.prototype,"standardDeviationInterval",null),(0,s.Cg)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write}})],U.prototype,"type",null),(0,s.Cg)([(0,a.MZ)({type:[z],json:{write:!0}})],U.prototype,"visualVariables",void 0),(0,s.Cg)([(0,a.MZ)({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}}}})],U.prototype,"univariateSymbolStyle",null),(0,s.Cg)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],U.prototype,"univariateTheme",null),U=A=(0,s.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfo")],U)},20061(e,t,i){var l,s=i(32198),r=i(69540),o=i(66552),n=i(25482),a=i(91429),u=i(78888),p=i(93223);const d=(0,o.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let c=l=class extends((0,r.OU)(n.o)){static from(e){return(0,u.PZ)(l,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,s.Cg)([(0,p.e)(d)],c.prototype,"order",void 0),c=l=(0,s.Cg)([(0,a.$K)("esri.renderers.support.RendererLegendOptions")],c);const y=c;i.d(t,["A",0,y])},94833(e,t,i){i.d(t,{A:()=>u});var l,s=i(32198),r=i(25482),o=i(91429),n=i(49849),a=i(40863);let u=l=class extends r.o{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}get alternateSymbols(){return this._get("alternateSymbols")??null}set alternateSymbols(e){e?this._set("alternateSymbols",e.map(e=>e instanceof a.A?e:(delete e.type,new a.A(e)))):this._set("alternateSymbols",null)}clone(){return new l({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,s.Cg)([(0,o.MZ)(n.Wp)],u.prototype,"symbol",void 0),(0,s.Cg)([(0,o.MZ)({type:[a.A],useTypeForAutocast:!1,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",null),(0,s.Cg)([(0,o.MZ)(n.Ug)],u.prototype,"value",void 0),u=l=(0,s.Cg)([(0,o.$K)("esri.renderers.support.UniqueValueInfo")],u)},49849(e,t,i){var l=i(93637),s=i(90360),r=i(65365),o=i(20378),n=i(73838),a=i(33910);const u={types:a.xK,json:{write:{writer:n.M9},origins:{"web-scene":{types:a.On,write:{writer:n.M9},read:{reader:(0,s.C)({types:a.On})}}}}},p=(0,l.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),d={types:{base:o.A,key:"type",typeMap:{"simple-fill":a.Es.typeMap["simple-fill"],"picture-fill":a.Es.typeMap["picture-fill"],"polygon-3d":a.Es.typeMap["polygon-3d"],cim:a.Es.typeMap.cim}},json:{write:{writer:n.M9},origins:{"web-scene":{type:r.A,write:{writer:n.M9}}}}},c={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}};i.d(t,["As",0,d,"Ug",0,c,"Wp",0,p,"z4",0,u])},80911(e,t,i){function l(e,t){if(null==e)return null;if(null==t||null!=e.symbol&&s(e.symbol,t))return e.symbol;for(let i of e.alternateSymbols??[])if(s(i,t))return i;return null}function s(e,t){if("cim"!==e.type)return!0;let i=e.data?.minScale??0,l=e.data?.maxScale??0;return(!l||t>l)&&(!i||t<=i)}i.d(t,{c:()=>l})},2024(e,t,i){i.d(t,{A:()=>a});var l,s=i(32198),r=i(91429),o=i(2795),n=i(72500);let a=l=class extends o.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 l({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,s.Cg)([(0,r.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,s.Cg)([(0,r.MZ)({type:["color"],json:{type:["colorInfo"]}})],a.prototype,"type",void 0),(0,s.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"normalizationField",void 0),(0,s.Cg)([(0,r.MZ)({type:[n.A],json:{write:!0}})],a.prototype,"stops",null),a=l=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.ColorVariable")],a)},62724(e,t,i){i.d(t,{A:()=>m});var l,s=i(32198),r=i(91429),o=i(2795),n=i(25482),a=i(78888),u=i(78553),p=i(36005),d=i(43937);let c=l=class extends n.o{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,u.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,u.p)(e)}clone(){return new l({label:this.label,opacity:this.opacity,value:this.value})}};(0,s.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s.Cg)([(0,r.MZ)({type:Number,json:{type:a.jz,write:{target:"transparency",isRequired:!0}}})],c.prototype,"opacity",void 0),(0,s.Cg)([(0,p.w)("opacity",["transparency"])],c.prototype,"readOpacity",null),(0,s.Cg)([(0,d.K)("opacity")],c.prototype,"writeOpacity",null),(0,s.Cg)([(0,r.MZ)({type:Number,json:{write:{isRequired:!0}}})],c.prototype,"value",void 0),c=l=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.support.OpacityStop")],c);const y=c;var h;let m=h=class extends o.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 h({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,s.Cg)([(0,r.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,s.Cg)([(0,r.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],m.prototype,"type",void 0),(0,s.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],m.prototype,"normalizationField",void 0),(0,s.Cg)([(0,r.MZ)({type:[y],json:{write:!0}})],m.prototype,"stops",null),m=h=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.OpacityVariable")],m)},23461(e,t,i){i.d(t,{A:()=>n});var l,s=i(32198),r=i(91429),o=i(2795);let n=l=class extends o.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic"}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}clone(){return new l({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,s.Cg)([(0,r.MZ)({readOnly:!0})],n.prototype,"cache",null),(0,s.Cg)([(0,r.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],n.prototype,"axis",void 0),(0,s.Cg)([(0,r.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],n.prototype,"type",void 0),(0,s.Cg)([(0,r.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],n.prototype,"rotationType",void 0),n=l=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.RotationVariable")],n)},48940(e,t,i){i.d(t,{A:()=>x});var l=i(32198),s=i(66552),r=i(53966),o=i(91429),n=i(2795),a=i(90629),u=i(12330),p=i(41078);let d=class extends p.A{constructor(e){super(e),this.customValues=null}};(0,l.Cg)([(0,o.MZ)({type:[Number],json:{write:!0}})],d.prototype,"customValues",void 0),d=(0,l.Cg)([(0,o.$K)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],d);const c=d;var y,h,m=i(98205),f=i(29266),g=i(59923),b=i(36005),v=i(43937);const w=new s.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new s.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});function V(e){if(null!=e){if("string"==typeof e||"number"==typeof e)return t=e,(0,a.cr)(t);if("size"===e.type)return(0,m.of)(e)?e:(delete(e={...e}).type,new x(e))}var t}function C(e,t,i){if("object"!=typeof e)return e;if("web-scene"===i.origin)return;let l=new x;return l.read(e,i),l}function M(e,t,i,l){"number"==typeof e?t[i]=e:"web-scene"===l?.origin?(0,g.Yc)(l,"error","property",`Size variable '${i}' can only be a number in web scenes.`):t[i]=e.toJSON(l)}let x=h=class extends n.A{static{y=m.uY}constructor(e){super(e),this[y]=!0,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:null!=this.valueExpression&&f.RV.test(this.valueExpression)}}set index(e){(0,m.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,m.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,m.eh)(this)}set maxDataValue(e){e&&this.stops&&(r.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}get maxSize(){return this._get("maxSize")}set maxSize(e){e&&this.stops&&(r.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",V(e))}readMaxSize(e,t,i){return C(e,0,i)}writeMaxSize(e,t,i,l){return M(e,t,i,l)}set minDataValue(e){e&&this.stops&&(r.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}get minSize(){return this._get("minSize")}set minSize(e){e&&this.stops&&(r.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",V(e))}readMinSize(e,t,i){return C(e,0,i)}writeMinSize(e,t,i,l){return M(e,t,i,l)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=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&&=(r.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),null),this._set("stops",e)}get transformationType(){return(0,m.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,l){if(f.RV.test(e)){if(l?.messages){let e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;(0,g.qt)(l,`visualVariables[${t}].valueExpression`,"SizeVariable with '$view.scale' valueExpression is not supported in Web Scene. Please remove this property to save the Web Scene.")}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new h({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,m.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,m.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if("clamped-linear"===this.transformationType){let{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if("stops"===this.transformationType){let e=this.stops;if(!e)return this;let t=e.map(e=>e.size).reverse(),i=e.length;for(let l=0;l<i;l++)e[l].size=t[l];return this}return this}_interpolateData(){return this.stops?.map(e=>e.value||0)}};(0,l.Cg)([(0,o.MZ)({readOnly:!0})],x.prototype,"cache",null),(0,l.Cg)([(0,o.MZ)({type:w.apiValues,json:{type:w.jsonValues,origins:{"web-map":{read:!1}},read:w.read,write:w.write}})],x.prototype,"axis",void 0),(0,l.Cg)([(0,o.MZ)()],x.prototype,"index",null),(0,l.Cg)([(0,o.MZ)({type:String,readOnly:!0})],x.prototype,"inputValueType",null),(0,l.Cg)([(0,o.MZ)({type:c,json:{write:!0}})],x.prototype,"legendOptions",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],x.prototype,"maxDataValue",null),(0,l.Cg)([(0,o.MZ)({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],x.prototype,"maxSize",null),(0,l.Cg)([(0,b.w)("maxSize")],x.prototype,"readMaxSize",null),(0,l.Cg)([(0,v.K)("maxSize")],x.prototype,"writeMaxSize",null),(0,l.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],x.prototype,"minDataValue",null),(0,l.Cg)([(0,o.MZ)({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],x.prototype,"minSize",null),(0,l.Cg)([(0,b.w)("minSize")],x.prototype,"readMinSize",null),(0,l.Cg)([(0,v.K)("minSize")],x.prototype,"writeMinSize",null),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],x.prototype,"normalizationField",void 0),(0,l.Cg)([(0,o.MZ)({readOnly:!0})],x.prototype,"arcadeRequired",null),(0,l.Cg)([(0,o.MZ)({type:String})],x.prototype,"scaleBy",void 0),(0,l.Cg)([(0,o.MZ)({type:[u.A],value:null,json:{write:!0}})],x.prototype,"stops",null),(0,l.Cg)([(0,o.MZ)({type:["outline"],json:{write:!0}})],x.prototype,"target",void 0),(0,l.Cg)([(0,o.MZ)({type:String,readOnly:!0})],x.prototype,"transformationType",null),(0,l.Cg)([(0,o.MZ)({type:["size"],json:{type:["sizeInfo"]}})],x.prototype,"type",void 0),(0,l.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],x.prototype,"useSymbolValue",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],x.prototype,"valueExpression",void 0),(0,l.Cg)([(0,b.w)("valueExpression",["valueExpression","expression"])],x.prototype,"readValueExpression",null),(0,l.Cg)([(0,v.K)("web-scene","valueExpression")],x.prototype,"writeValueExpressionWebScene",null),(0,l.Cg)([(0,o.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],x.prototype,"valueRepresentation",void 0),(0,l.Cg)([(0,o.MZ)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],x.prototype,"valueUnit",void 0),(0,l.Cg)([(0,b.w)("valueUnit")],x.prototype,"readValueUnit",null),x=h=(0,l.Cg)([(0,o.$K)("esri.renderers.visualVariables.SizeVariable")],x)},2795(e,t,i){i.d(t,{A:()=>d});var l=i(32198),s=i(66552),r=i(25482),o=i(53966),n=i(91429),a=i(78888),u=i(41078);const p=new s.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let d=class extends r.o{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?(o.A.getLogger(this).error(".field: field must be a string value"),null):(0,a.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}};(0,l.Cg)([(0,n.MZ)()],d.prototype,"index",void 0),(0,l.Cg)([(0,n.MZ)({type:p.apiValues,readOnly:!0,json:{read:p.read,write:{writer:p.write,isRequired:!0}}})],d.prototype,"type",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,l.Cg)([(0,n.wg)("field")],d.prototype,"castField",null),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"valueExpressionTitle",void 0),(0,l.Cg)([(0,n.MZ)({readOnly:!0})],d.prototype,"arcadeRequired",null),(0,l.Cg)([(0,n.MZ)({type:u.A,json:{write:!0}})],d.prototype,"legendOptions",void 0),d=(0,l.Cg)([(0,n.$K)("esri.renderers.visualVariables.VisualVariable")],d)},72500(e,t,i){var l,s=i(32198),r=i(68197),o=i(25482),n=i(91429),a=i(78888),u=i(43937);let p=l=class extends o.o{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new l({color:this.color&&this.color.clone(),label:this.label,value:this.value})}equals(e){return this===e||this.value===e.value&&this.label===e.label&&(this.color===e.color||null!=this.color&&null!=e.color&&this.color.equals(e.color))}};(0,s.Cg)([(0,n.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,s.Cg)([(0,u.K)("value")],p.prototype,"writeValue",null),p=l=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.support.ColorStop")],p);const d=p;i.d(t,["A",0,d])},12330(e,t,i){i.d(t,{A:()=>a});var l,s=i(32198),r=i(25482),o=i(90629),n=i(91429);let a=l=class extends r.o{constructor(e){super(e),this.label=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}get size(){return this._get("size")}set size(e){this._set("size",e)}clone(){return new l({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"label",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,cast:o.cr,json:{write:{isRequired:!0}}})],a.prototype,"size",null),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:{isRequired:!0}}})],a.prototype,"value",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!1}})],a.prototype,"useMinValue",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!1}})],a.prototype,"useMaxValue",void 0),a=l=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.support.SizeStop")],a)},41078(e,t,i){var l=i(32198),s=i(69540),r=i(25482),o=i(91429);let n=class extends((0,s.OU)(r.o)){constructor(e){super(e),this.showLegend=null,this.title=null}};(0,l.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],n.prototype,"showLegend",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],n.prototype,"title",void 0),n=(0,l.Cg)([(0,o.$K)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],n);const a=n;i.d(t,["A",0,a])},29266(e,t,i){i.d(t,{UT:()=>d,Yz:()=>b}),i(68197);var l=i(52106),s=i(53966),r=i(31756),o=i(98205);const n=()=>s.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),a=e=>n().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),u=()=>n().error("Use of arcade expressions requires an arcade context"),p=(new l.A,Math.PI);function d(e,t,i){return function(e,t,i){let l="visualVariables"in e?e.visualVariables?.find(e=>"rotation"===e.type):e;if(!l)return;if("esri.renderers.visualVariables.RotationVariable"!==l.declaredClass)return void a("RotationVariable");let s=l.axis||"heading",r="heading"===s&&"arithmetic"===l.rotationType?90:0,o="heading"===s&&"arithmetic"===l.rotationType?-1:1,n=l.field,{hasExpression:u}=l.cache;if(!n&&!u)return;let p=c(l,t,i),d=p;return d="number"!=typeof d||isNaN(d)?null:r+o*d,new g(l,d,p)}(e,t,i)?.output}function c(e,t,i){let{hasExpression:l}=e.cache;if("number"==typeof t)return t;let s=t?.attributes,r=e.field;if(!l)return s?.[r];if(null==i?.arcade)return void u();let o={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},n=i.arcade.arcadeUtils,a=n.getViewInfo(o),p=n.createExecContext(t,a,i.timeZone);if(!e.cache.compiledFunc){let t=n.createSyntaxTree(e.valueExpression);e.cache.compiledFunc=n.createFunction(t)}return n.executeFunction(e.cache.compiledFunc,p)}function y(e,t,i){let l="number"==typeof t,s=l?null:t,r=s?.attributes,n=l?t:null,{isScaleDriven:a}=e.cache,p=e.cache.compiledFunc;if(a){let t=i?.scale,l=i?.view;n=null==t||"3d"===l?function(e){let t=null,i=null,l=e.stops;return l?(t=l[0].value,i=l[l.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!l)switch(e.inputValueType){case"expression":{if(null==i?.arcade)return void u();let t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},l=i.arcade.arcadeUtils,r=l.getViewInfo(t),o=l.createExecContext(s,r,i.timeZone);if(!p){let t=l.createSyntaxTree(e.valueExpression);p=l.createFunction(t),e.cache.compiledFunc=p}n=l.executeFunction(p,o);break}case"field":r&&(n=r[e.field]);break;case"unknown":n=null}return(0,o.gf)(n)?n:null}function h(e,t,i){return function(e,t,i){let l="visualVariables"in e?e.visualVariables?.find(e=>"size"===e.type):e;if(!l)return;if("esri.renderers.visualVariables.SizeVariable"!==l.declaredClass)return void a("SizeVariable");let s=y(l,t,i),n=s;if(null!=n&&"number"!=typeof t&&t&&l.normalizationField){let e=t.attributes,i=parseFloat(e?.[l.normalizationField]);if(!(0,o.gf)(i)||0===i)return;n/=i}let u=function(e,t,i,l,s){switch(t.transformationType){case"additive":return function(e,t,i,l){let s=m(t.minSize,i,l)||t.minDataValue;return null==e&&null==s?null:(e??0)+(s??0)}(e,t,i,l);case"constant":return function(e,t,i){let l=e.stops,s=l?.length&&l[0].size;return s??=e.minSize,m(s,t,i)}(t,i,l);case"clamped-linear":return function(e,t,i,l){let s=m(t.minSize,i,l);if(null==e)return s;let{minDataValue:r,maxDataValue:o}=t;if(null==r||null==o)return null;let n=(e-r)/(o-r),a=m(t.maxSize,i,l),u=l?.shape;if(e<=r)return s;if(e>=o)return a;if(null==s||null==a)return null;if("area"===t.scaleBy&&u){let e="circle"===u,t=e?p*(s/2)**2:s*s,i=t+n*((e?p*(a/2)**2:a*a)-t);return e?2*Math.sqrt(i/p):Math.sqrt(i)}return s+n*(a-s)}(e,t,i,l);case"proportional":return function(e,t,i,l){let s=m(t.minSize,i,l);if(null==e||null==s)return s;let r=l?.shape,{minDataValue:o}=t;if(null==o)return null;let n=e/o,a=m(t.maxSize,i,l),u=null;return u="circle"===r?2*Math.sqrt(n*(s/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(n*s**2):n*s,f(u,s,a)}(e,t,i,l);case"stops":return function(e,t,i,l,s){if(null==e)return null;let[r,o,n]=function(e,t){if(!t)return;let i=0,l=t.length-1;return t.some((t,s)=>e<t?(l=s,!0):(i=s,!1)),[i,l,(e-t[i])/(t[l]-t[i])]}(e,s);if(r===o)return m(t.stops?.[r].size,i,l);{let e=m(t.stops?.[r].size,i,l),s=m(t.stops?.[o].size,i,l);return null==e||null==s?null:e+(s-e)*n}}(e,t,i,l,s);case"real-world-size":return function(e,t,i,l){let s=(l?.resolution??1)*r.j[t.valueUnit],o=m(t.minSize,i,l),n=m(t.maxSize,i,l),{valueRepresentation:a}=t;if(null==e)return o;let u=null;return u="area"===a?2*Math.sqrt(e/p)/s:"radius"===a||"distance"===a?2*e/s:e/s,f(u,o,n)}(e,t,i,l);case"identity":return e;case"unknown":return null}}(n,l,t,i,l.cache.ipData);return new g(l,null==u||isNaN(u)?void 0:u,s)}(e,t,i)?.output}function m(e,t,i){return null==e?null:(0,o.of)(e)?h(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}class g{get type(){return this.variable.type}constructor(e,t,i){this.variable=e,this.output=t,this.input=i}}function b(e,t,i){let l=["proportional","proportional","proportional"];for(let s of e){let e=s.useSymbolValue?"symbol-value":h(s,t,i)??"proportional";switch(s.axis){case"width":l[0]=e;break;case"depth":l[1]=e;break;case"height":l[2]=e;break;case"width-and-depth":l[0]=e,l[1]=e;break;case"all":case void 0:case null:l[0]=e,l[1]=e,l[2]=e;break;default:s.axis}}return l}i.d(t,["RV",0,/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i])},2485(e,t,i){i.d(t,{A:()=>d});var l,s=i(32198),r=i(68197),o=i(4718),n=i(91429),a=i(78888),u=i(72606),p=i(93223);let d=l=class extends u.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new l({fromColor:(0,o.o8)(this.fromColor),toColor:(0,o.o8)(this.toColor),algorithm:this.algorithm})}};(0,s.Cg)([(0,p.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,s.Cg)([(0,n.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],d.prototype,"fromColor",void 0),(0,s.Cg)([(0,n.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],d.prototype,"toColor",void 0),(0,s.Cg)([(0,n.MZ)({type:["algorithmic"],json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),d=l=(0,s.Cg)([(0,n.$K)("esri.rest.support.AlgorithmicColorRamp")],d)},72606(e,t,i){i.d(t,{A:()=>o});var l=i(32198),s=i(25482),r=i(91429);let o=class extends s.o{constructor(e){super(e),this.type=null}};(0,l.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,l.Cg)([(0,r.$K)("esri.rest.support.ColorRamp")],o)},1626(e,t,i){i.d(t,{A:()=>d});var l,s=i(32198),r=i(4718),o=i(91429),n=i(2485),a=i(72606),u=i(43937),p=i(36005);let d=l=class extends a.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart",this.weights=void 0}writeColorRamps(e,t,i,l){let s=e?.map(e=>e.toJSON(l)),{weights:r}=this;if(s&&r?.length&&s.length===r?.length){let e=100/r.reduce((e,t)=>e+t),t=0;s.forEach((i,l)=>{i.start=t,t+=r[l]*e,i.stop=t})}t.colorRamps=s}readWeights(e,t){let i=t.colorRamps?.map(({start:e,stop:t})=>null==e||null==t?-1:t-e);if(!i?.some(e=>e<0))return i}clone(){return new l({colorRamps:(0,r.o8)(this.colorRamps)})}};(0,s.Cg)([(0,o.MZ)({type:[n.A],json:{write:{isRequired:!0}}})],d.prototype,"colorRamps",void 0),(0,s.Cg)([(0,u.K)("colorRamps")],d.prototype,"writeColorRamps",null),(0,s.Cg)([(0,o.MZ)({type:["multipart"],json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:[Number]})],d.prototype,"weights",void 0),(0,s.Cg)([(0,p.w)("weights",["colorRamps"])],d.prototype,"readWeights",null),d=l=(0,s.Cg)([(0,o.$K)("esri.rest.support.MultipartColorRamp")],d)},95349(e,t,i){i.d(t,{r:()=>n});var l=i(2485),s=i(72606),r=i(1626);const o={key:"type",base:s.A,typeMap:{algorithmic:l.A,multipart:r.A}};function n(e){return e?.type?"algorithmic"===e.type?l.A.fromJSON(e):"multipart"===e.type?r.A.fromJSON(e):null:null}i.d(t,["g",0,o])},59868(e,t,i){var l=i(94985),s=i(31593),r=i(53930),o=i(68249),n=i(93470);const a=r.A.fromJSON(n.Cb),u=s.A.fromJSON(n.yM),p=l.A.fromJSON(n.WR),d=o.A.fromJSON(n.JZ);r.A.fromJSON(n.nC),s.A.fromJSON(n.HW),l.A.fromJSON(n.b6),i.d(t,["A7",0,u,"Cx",0,p,"Hk",0,d,"UK",0,a])},73838(e,t,i){i.d(t,{rS:()=>D,M9:()=>I,oO:()=>Z});var l=i(93637),s=i(77548),r=i(29169),o=i(49186),n=i(13313),a=i(97887),u=i(68548),p=i(58592),d=i(75981),c=i(65365),y=i(94985),h=i(31593),m=i(53930),f=i(68249),g=i(68197),b=i(7762),v=i(90629),w=i(27845),S=i(11506),V=i(39065),C=i(59868),M=i(93470);d.A.fromSimpleMarkerSymbol(C.UK),a.A.fromSimpleLineSymbol(C.A7),c.A.fromSimpleFillSymbol(C.Cx),new u.A({symbolLayers:new b.A([new w.A({material:{color:M.fT},edges:new V.A({size:(0,v.PN)(1),color:new g.A(M.JR)})})])});const x=new a.A({symbolLayers:new b.A([new S.A({material:{color:new g.A([0,0,0])},size:(0,v.PN)(1)})])}),_=new c.A({symbolLayers:new b.A([new w.A({outline:{color:new g.A([0,0,0]),size:(0,v.PN)(1)}})])});var z=i(33910);const A="#useCIMFallbackSymbology()",j={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};var q=i(59923);function I(e,t,i,s){let r=U(e,{},{context:s,isLabelSymbol:!1});null!=r&&(0,l.sM)(i,r,t)}function Z(e,t,i,l){let s=U(e,{},{context:l,isLabelSymbol:!0});null!=s&&(t[i]=s)}function F(e){return(0,z.wk)(e)||e instanceof r.A}function U(e,t,i){if(null==e)return null;let{context:l,isLabelSymbol:g}=i,b=l?.origin;if("web-scene"===b&&!F(e)){let i=function(e,t=j){if(!e)return{symbol:null};let{retainId:i=j.retainId,ignoreDrivers:l=j.ignoreDrivers,hasLabelingContext:s=j.hasLabelingContext,retainCIM:g=j.retainCIM,cimFallbackEnabled:b=j.cimFallbackEnabled}=t,v=null;if((0,z.wk)(e))v=e.clone();else if("web-style"===e.type)v=e.clone();else if("cim"===e.type){let i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":v=g?e.clone():d.A.fromCIMSymbol(e);break;case"CIMLineSymbol":b&&(v=x.clone(),t?.logWarning?.(A,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":b&&(v=_.clone(),t?.logWarning?.(A,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!v)return{error:new o.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof h.A)v=a.A.fromSimpleLineSymbol(e);else if(e instanceof m.A)v=d.A.fromSimpleMarkerSymbol(e);else if(e instanceof p.A)v=d.A.fromPictureMarkerSymbol(e);else if(e instanceof y.A)v=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):c.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new o.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};v=s?n.A.fromTextSymbol(e):d.A.fromTextSymbol(e)}return i&&v&&"cim"!==v.type&&(v.id=e.id),l&&"cim"!==v.type&&!(v instanceof r.A)&&v.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:v}}(e,{retainCIM:!0,hasLabelingContext:g});return null==i.symbol?((0,q.bA)(l,e,"Use 3D symbology instead when working with WebScene and SceneView",{error:i.error}),null):i.symbol.write(t,l)}return(0,s.TU)(l?.layer)&&function(e){return"polygon-3d"===e?.type||"line-3d"===e?.type}(e)?((0,q.bA)(l,e,`unsupported in layers of type ${l?.layer?.declaredClass}`),null):("web-map"===b||"portal-item"===b&&!(0,s.TU)(l?.layer))&&F(e)?((0,q.bA)(l,e,"Use 2D symbology and CIMSymbol instead when working with MapView"),null):e.write(t,l)}function D(e,t){return(0,z.Bu)(e,null,t)}},85594(e,t,i){i.d(t,{jg:()=>b,cF:()=>d,bo:()=>c,yA:()=>m,o5:()=>y});var l=i(56507),s=i(49186),r=i(44208),o=i(17676),n=i(84952),a=i(20655),u=i(16405);const p=new Map;function d(e,t,i){return null==e?.styleUrl?null==e?.styleName?Promise.reject(new s.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style")):function(e,t,i){let l,r=null==t.portal?a.A.getDefault():t.portal,o=`${r.url} - ${r.user?.username} - ${e}`,n=p.get(o);if(n)return n;let d=function(e,t,i){return t.load(i).then(()=>{let l=new u.A({disableExtraQuery:!0,query:`owner:${f} AND type:${g} AND typekeywords:"${e}"`});return t.queryItems(l,i)}).then(({results:t})=>{let l=null,r=e.toLowerCase();if(t&&Array.isArray(t))for(let e of t)if(e.typeKeywords?.some(e=>e.toLowerCase()===r)&&e.type===g&&e.owner===f){l=e;break}if(!l)throw new s.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return l.load(i)})}(e,r,i).then(e=>(l=e,e.fetchData())).then(t=>({data:t,baseUrl:l.itemUrl??"",styleName:e}));return p.set(o,d),d}(e.styleName,t,i):async function(e,t){try{return{data:(await m(e,t)).data,baseUrl:(0,n.nM)(e),styleUrl:e}}catch(e){return(0,o.QP)(e),null}}(e.styleUrl,i)}function c(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function y(e,t){for(let i of t)switch(i){case"cim":if(e.cimRef)return{format:i,url:encodeURI(e.cimRef)};break;case"web-gltf-basisu":{let t=h(e,"gltf_basisu");if(t)return{format:i,url:t};break}case"web-gltf":{let t=h(e,"gltf");if(t)return{format:i,url:t};break}case"web":{let t=h(e,"gltf");if(t)return{format:"web-gltf",url:t};if(e.webRef)return{format:i,url:encodeURI(e.webRef)};break}}}function h(e,t){if(!(0,r.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function m(e,t){let i={responseType:"json",query:{f:"json"},...t};return(0,l.A)((0,n.S8)(e),i)}const f="esri_en",g="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[564],{60999(e,t,i){i.d(t,{DZ:()=>h,Ke:()=>y,QA:()=>m,Tj:()=>p,UT:()=>f,aD:()=>b,jJ:()=>u});var l=i(32198),s=i(69622),r=i(97768),o=i(17676),n=i(10107),a=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,l)=>t.apply(i,[e,l])))}async function p(e,t,i){return(await(0,o.Lx)(e.map((e,l)=>t.apply(i,[e,l])))).map(e=>e.value)}function d(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return d(await e)}catch(e){return c(e)}}async function h(e){try{return d(await e)}catch(e){return(0,o.QP)(e),c(e)}}function m(e){if(!0===e.ok)return e.value;throw e.error}function f(e,t){return new g(e,t)}let g=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=d(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.xt)(this._abortHandle),this._abortController=null}};(0,l.Cg)([(0,n.MZ)()],g.prototype,"value",null),(0,l.Cg)([(0,n.MZ)()],g.prototype,"error",null),(0,l.Cg)([(0,n.MZ)()],g.prototype,"finished",null),(0,l.Cg)([(0,n.MZ)()],g.prototype,"promise",void 0),(0,l.Cg)([(0,n.MZ)()],g.prototype,"_result",void 0),g=(0,l.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],g);class b{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,l.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,l.hk)(t)}}}},92438(e,t,i){i.d(t,{A:()=>u});var l=i(32198),s=i(66552),r=i(25482),o=i(91429),n=i(30943);const a=new s.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let u=class extends r.o{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];let t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}get symbols(){return[]}get arcadeRequired(){return!1}};(0,l.Cg)([(0,o.MZ)({type:n.A,json:{write:!0}})],u.prototype,"authoringInfo",void 0),(0,l.Cg)([(0,o.MZ)({type:a.apiValues,readOnly:!0,json:{type:a.jsonValues,read:!1,write:{writer:a.write,ignoreOrigin:!0,isRequired:!0}}})],u.prototype,"type",void 0),u=(0,l.Cg)([(0,o.$K)("esri.renderers.Renderer")],u)},93618(e,t,i){i.d(t,{A:()=>N});var l=i(32198),s=i(4718),r=i(53966),o=i(93637),n=i(36708),a=i(91429),u=i(6797),p=i(78888),d=i(30524),c=i(20655),y=i(92438),h=i(63988),m=i(49849),f=i(20061),g=i(80911),b=i(69540),v=i(25482);let w=class extends((0,b.OU)(v.o)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,l.Cg)([(0,a.MZ)(m.Ug)],w.prototype,"value",void 0),(0,l.Cg)([(0,a.MZ)(m.Ug)],w.prototype,"value2",void 0),(0,l.Cg)([(0,a.MZ)(m.Ug)],w.prototype,"value3",void 0),w=(0,l.Cg)([(0,a.$K)("esri.renderers.support.UniqueValue")],w);var S=i(4576),V=i(40863);let C=class extends((0,b.OU)(v.o)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.alternateSymbols=null}get values(){return this._get("values")}set values(e){if(null!=e){let t=typeof(e=Array.isArray(e)?e:[e])[0];e="string"===t||"number"===t?e.map(e=>new w({value:e})):"object"===t?e[0]instanceof w?e:e.map(e=>new w(e)):null}this._set("values",e)}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],C.prototype,"description",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],C.prototype,"label",void 0),(0,l.Cg)([(0,a.MZ)(m.z4)],C.prototype,"symbol",void 0),(0,l.Cg)([(0,a.MZ)({type:[V.A],json:{write:!0,origins:{"web-scene":{write:!1}}}})],C.prototype,"alternateSymbols",void 0),(0,l.Cg)([(0,a.MZ)({json:{type:[[String]],read:{reader:e=>e?e.map(e=>new w({value:e[0],value2:e[1],value3:e[2]})):null},write:{writer:(e,t)=>{let i=[];for(let t of e){let e=[t.value,t.value2,t.value3].filter(S.Ru).map(e=>e.toString());i.push(e)}t.values=i}}}})],C.prototype,"values",null),C=(0,l.Cg)([(0,a.$K)("esri.renderers.support.UniqueValueClass")],C);let M=class extends((0,b.OU)(v.o)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],M.prototype,"heading",void 0),(0,l.Cg)([(0,a.MZ)({type:[C],json:{write:{isRequired:!0}}})],M.prototype,"classes",void 0),M=(0,l.Cg)([(0,a.$K)("esri.renderers.support.UniqueValueGroup")],M);var x,_=i(94833),z=i(43668),A=i(97159),j=i(29169),q=i(85594),I=i(33910),Z=i(59923),F=i(93223),U=i(43937),D=i(36005);const E="uvInfos-watcher",R="uvGroups-watcher",O=(0,p.dp)(_.A);function k(e){return null==e||""===e||"string"==typeof e&&(""===e.trim()||"<null>"===e.toLowerCase())?null:e}function T(e,t){return t&&"string"==typeof e?e.split(t).map(e=>k(e)??"").join(t):`${k(e)}`}let N=x=class extends((0,h.h)(y.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=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,l={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let s=0;s<t.length;s++){let r=e.find(e=>e.value===t[s].value);r?(0,u.Ui)(r,t[s])?(l.changed.push({type:"complete",oldValue:r,newValue:t[s]}),i=!0):l.unchanged.push({oldValue:r,newValue:t[s]}):(l.added.push(t[s]),i=!0)}for(let s=0;s<e.length;s++)t.find(t=>t.value===e[s].value)||(l.removed.push(e[s]),i=!0);return i?l:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,p.GX)(e)}writeField(e,t,i,l){"string"==typeof e?t[i]=e:l?.messages?(0,Z.qt)(l,"UniqueValueRenderer.field","set to a function cannot be written to JSON"):r.A.getLogger(this).error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||c.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){let e=(0,A.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,l){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,A.t)(e.styleUrl,l))}set uniqueValueGroups(e){this.styleOrigin?r.A.getLogger(this).error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?r.A.getLogger(this).error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void r.A.getLogger(this).error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?O(e):new _.A({value:e,symbol:(0,I.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[T(i.value,this.fieldDelimiter)]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void r.A.getLogger(this).error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){let l=t[i];if(String(l.value)===String(e)){delete this._valueInfoMap[T(e,this.fieldDelimiter)],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,z.l)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void r.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");let i=this._getUniqueValueInfo(e,t);return(0,g.c)(i,t?.scale)??this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){let e=await(0,z.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}let l=this._getUniqueValueInfo(e,i);return(0,g.c)(l,i?.scale)??this.defaultSymbol}get symbols(){let e=[];if(this._isInfosSource)for(let t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[]);else for(let t of this.uniqueValueGroups??[])for(let i of t.classes??[])i.symbol&&e.push(i.symbol),e.push(...i.alternateSymbols??[]);return this.defaultSymbol&&e.push(this.defaultSymbol),e}clone(){let e=new x({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,s.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,s.o8)(this.visualVariables),legendOptions:(0,s.o8)(this.legendOptions),authoringInfo:(0,s.o8)(this.authoringInfo),backgroundFillSymbol:(0,s.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);let t=(0,s.o8)(this.uniqueValueInfos),i=(0,s.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,s.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){let i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){let i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,d.Dx)(e,t,null,this.valueExpression)];(0,d.rq)(e,t,this.field),(0,d.rq)(e,t,this.field2),(0,d.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,q.cF)(this.styleOrigin,{portal:this.portal}).then(e=>{let t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach(i=>{let l=new j.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});!this.defaultSymbol&&i.name===e.data.defaultItem&&(this.defaultSymbol=l,this._isDefaultSymbolDerived=!0);let s=new _.A({value:i.name,symbol:l});t.push(s),this._valueInfoMap[T(i.name)]=s}),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};let{uniqueValueInfos:e}=this;if(e)for(let t of e)this._valueInfoMap[T(t.value,this.fieldDelimiter)]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(E);let{uniqueValueInfos:e}=this;if(e){let t=[];for(let i of e)t.push((0,n.wB)(()=>({symbol:i.symbol,alternateSymbols:i.alternateSymbols,value:i.value,label:i.label,description:i.description}),(e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,E)}}_watchUniqueValueGroups(){this.removeHandles(R);let{uniqueValueGroups:e}=this;if(e){let t=[];for(let i of e){t.push((0,n.wB)(()=>({classes:i.classes}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(let e of i.classes??[])t.push((0,n.wB)(()=>({symbol:e.symbol,alternateSymbols:e.alternateSymbols,values:e.values,label:e.label,description:e.description}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();let e=[],{field:t,field2:i,field3:l,fieldDelimiter:s,uniqueValueGroups:r,valueExpression:o}=this;if(!t&&!o)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();let n=!(!t||!i);for(let t of r)for(let r of t.classes??[]){let{alternateSymbols:t,symbol:o,label:a,values:u,description:p}=r;for(let r of u??[]){let{value:u,value2:d,value3:c}=r,y=[u];i&&y.push(d),l&&y.push(c);let h=n?y.join(s||""):y[0]??void 0;e.push(new _.A({alternateSymbols:t,symbol:o,label:a,value:h,description:p}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();let{field:t,field2:i,valueExpression:l,fieldDelimiter:s,uniqueValueInfos:r}=this;if(!t&&!l||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();let o=!(!t||!i),n=r.map(e=>{let{alternateSymbols:t,symbol:i,label:l,value:r,description:n}=e,[a,u,p]=o?r?.toString()?.split(s||"")||[]:[r];return new C({alternateSymbols:t,symbol:i,label:l,description:n,values:[new w({value:a,value2:u,value3:p})]})}),a=[new M({classes:n})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){let{viewingMode:i,scale:l,spatialReference:s,arcade:r,timeZone:o}=t??{},n=this._cache.compiledFunc,a=r.arcadeUtils;if(!n){let e=a.createSyntaxTree(this.valueExpression);n=a.createFunction(e),this._cache.compiledFunc=n}let u=a.executeFunction(n,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:l,spatialReference:s}),o));return this._valueInfoMap[T(u)]}_getUnqiueValueInfoForFields(e){let t,i=this.field,l=e.attributes;if(this.field2){let e=this.field2,s=this.field3,r=[];i&&r.push(l[i]),e&&r.push(l[e]),s&&r.push(l[s]),t=r.join(this.fieldDelimiter||"")}else i&&(t=l[i]);return this._valueInfoMap[T(t,this.fieldDelimiter)]}static fromPortalStyle(e,t){let i=new x(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||c.A.getDefault());let l=i.populateFromStyle();return l.catch(t=>{r.A.getLogger(this.prototype).error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)}),l}static fromStyleUrl(e,t){let i=new x(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));let l=i.populateFromStyle();return l.catch(t=>{r.A.getLogger(this.prototype).error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),l}};(0,l.Cg)([(0,a.MZ)({readOnly:!0})],N.prototype,"_cache",null),(0,l.Cg)([(0,F.e)({uniqueValue:"unique-value"})],N.prototype,"type",void 0),(0,l.Cg)([(0,a.MZ)(m.As)],N.prototype,"backgroundFillSymbol",void 0),(0,l.Cg)([(0,a.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],N.prototype,"field",null),(0,l.Cg)([(0,a.wg)("field")],N.prototype,"castField",null),(0,l.Cg)([(0,U.K)("field")],N.prototype,"writeField",null),(0,l.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"field2",null),(0,l.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"field3",null),(0,l.Cg)([(0,a.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],N.prototype,"orderByClassesEnabled",void 0),(0,l.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"valueExpression",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],N.prototype,"valueExpressionTitle",void 0),(0,l.Cg)([(0,a.MZ)({type:f.A,json:{write:!0}})],N.prototype,"legendOptions",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],N.prototype,"defaultLabel",void 0),(0,l.Cg)([(0,a.MZ)((0,o.$N)({...m.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],N.prototype,"defaultSymbol",null),(0,l.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"fieldDelimiter",null),(0,l.Cg)([(0,a.MZ)({type:c.A,readOnly:!0})],N.prototype,"portal",void 0),(0,l.Cg)([(0,D.w)("portal",["styleName"])],N.prototype,"readPortal",null),(0,l.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],N.prototype,"styleOrigin",void 0),(0,l.Cg)([(0,D.w)("styleOrigin",["styleName","styleUrl"])],N.prototype,"readStyleOrigin",null),(0,l.Cg)([(0,U.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],N.prototype,"writeStyleOrigin",null),(0,l.Cg)([(0,a.MZ)({type:[M],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){let{field1:t,field2:i,field3:l,fieldDelimiter:s,uniqueValueInfos:r,valueExpression:o}=e,n=!(!t||!i);return[{classes:(r??[]).map(e=>{let{alternateSymbols:r,symbol:a,label:u,value:p,description:d}=e,[c,y,h]=n?p?.toString()?.split(s||"")||[]:[p],m=[];return(t||o)&&m.push(c),i&&m.push(y),l&&m.push(h),{alternateSymbols:r,symbol:a,label:u,values:[m],description:d}})}]}(t)).map(e=>M.fromJSON(e,i))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],N.prototype,"uniqueValueGroups",null),(0,l.Cg)([(0,a.MZ)({type:[_.A],json:{read:!1,write:{isRequired:!0,overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0,isRequired:!0}}}}})],N.prototype,"uniqueValueInfos",null),N=x=(0,l.Cg)([(0,a.$K)("esri.renderers.UniqueValueRenderer")],N)},63988(e,t,i){i.d(t,{h:()=>C});var l=i(32198),s=i(91429),r=i(30524),o=i(2024),n=i(62724),a=i(23461),u=i(48940),p=i(2795),d=i(69622),c=i(66552),y=i(53966),h=i(59923);const m={color:o.A,size:u.A,opacity:n.A,rotation:a.A},f=new c.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),g=/^\[([^\]]+)\]$/i;let b=class extends d.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e?.filter(e=>!!e),e?.length){for(let 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){let{rotationExpression:l,rotationType:s}=t,r=l?.match(g)?.[1];if(r&&(e||=[],e.push({type:"rotationInfo",rotationType:s,field:r})),e)return e.map(e=>{let t=f.read(e.type),l=m[t];l||(y.A.getLogger(this).warn(`Unknown variable type: ${t}`),(0,h.Yc)(i,"warning","visual-variable",`visualVariable of type '${t}' is not supported`,{definition:e}));let s=new l;return s.read(e,i),s})}writeVariables(e,t){let i=[];for(let l of e){let e=l.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,l.Cg)([(0,s.MZ)()],b.prototype,"visualVariables",null),b=(0,l.Cg)([(0,s.$K)("esri.renderers.visualVariables.VisualVariableFactory")],b);var v=i(69309),w=i(36005),S=i(43937);const V={base:p.A,key:"type",typeMap:{opacity:n.A,color:o.A,rotation:a.A,size:u.A}},C=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this._vvFactory=new b}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,l){t[i]=this._vvFactory.writeVariables(e,l)}get arcadeRequiredForVisualVariables(){return this.visualVariables?.some(({arcadeRequired:e})=>e)??!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){return this.visualVariables?.filter(i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))??[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(let l of i)l&&(l.field&&(0,r.rq)(e,t,l.field),l.normalizationField&&(0,r.rq)(e,t,l.normalizationField),l.valueExpression&&(M(l.valueExpression,e,t)||await(0,r.Dx)(e,t,null,l.valueExpression)))}};return(0,l.Cg)([(0,s.MZ)({types:[V],value:null,json:{write:!0}})],i.prototype,"visualVariables",null),(0,l.Cg)([(0,w.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],i.prototype,"readVisualVariables",null),(0,l.Cg)([(0,S.K)("visualVariables")],i.prototype,"writeVisualVariables",null),i=(0,l.Cg)([(0,s.$K)("esri.renderers.mixins.VisualVariablesMixin")],i),i};function M(e,t,i){let l=(0,v.D)(e);return null!=l&&((0,r.rq)(t,i,l),!0)}},30943(e,t,i){i.d(t,{A:()=>U});var l,s=i(32198),r=i(66552),o=i(25482),n=i(4718),a=i(91429),u=i(78888);let p=l=class extends o.o{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new l({minValue:this.minValue,maxValue:this.maxValue})}};(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"minValue",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"maxValue",void 0),p=l=(0,s.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoClassBreakInfo")],p);const d=p;var c;let y=c=class extends o.o{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new c({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,n.o8)(this.classBreakInfos)})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,s.Cg)([(0,a.MZ)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=c=(0,s.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoFieldInfo")],y);const h=y;var m,f=i(79901);let g=m=class extends o.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"size",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=m=(0,s.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoSizeStop")],g);const b=g;var v;const w=new r.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),S=new r.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),V={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},C=["high-to-low","above-and-below","centered-on","extremes"],M=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size","spike"])],x=["seconds","minutes","hours","days","months","years"];let _=v=class extends o.o{constructor(e){super(e),this.dataSeriesName=null,this.dataSeriesCalculationName=null,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}get normalizationField(){return"reference-size"===this.theme||"spike"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}get spikeSymbolStyle(){return"spike"===this.theme?this._get("spikeSymbolStyle"):null}set spikeSymbolStyle(e){this._set("spikeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme||"spike"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}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 v({dataSeriesCalculationName:this.dataSeriesCalculationName,dataSeriesName:this.dataSeriesName,endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,spikeSymbolStyle:this.spikeSymbolStyle,sizeStops:(0,n.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],_.prototype,"dataSeriesName",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],_.prototype,"dataSeriesCalculationName",void 0),(0,s.Cg)([(0,a.MZ)({types:V,json:{write:!0}})],_.prototype,"endTime",void 0),(0,s.Cg)([(0,f.w)("endTime")],_.prototype,"castEndTime",null),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"field",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"maxSliderValue",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"minSliderValue",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"normalizationField",null),(0,s.Cg)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"referenceSizeScale",null),(0,s.Cg)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"referenceSizeSymbolStyle",null),(0,s.Cg)([(0,a.MZ)({type:["triangle-closed-outline","triangle-gradient-fill-closed","triangle-gradient-fill-closed-outline","triangle-gradient-fill-open","triangle-gradient-fill-open-outline","triangle-open-outline","triangle-solid-fill-closed","triangle-solid-fill-closed-outline","triangle-solid-fill-open","triangle-solid-fill-open-outline"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"spikeSymbolStyle",null),(0,s.Cg)([(0,a.MZ)({types:V,json:{write:!0}})],_.prototype,"startTime",void 0),(0,s.Cg)([(0,f.w)("startTime")],_.prototype,"castStartTime",null),(0,s.Cg)([(0,a.MZ)({type:[b],json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"sizeStops",null),(0,s.Cg)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],_.prototype,"style",null),(0,s.Cg)([(0,a.MZ)({type:M,value:null,json:{type:M,origins:{"web-scene":{type:C,write:{writer:(e,t)=>{C.includes(e)&&(t.theme=e)}}}},write:!0}})],_.prototype,"theme",null),(0,s.Cg)([(0,a.MZ)({type:S.apiValues,json:{type:S.jsonValues,read:S.read,write:S.write}})],_.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:x,json:{type:x,write:!0}})],_.prototype,"units",void 0),_=v=(0,s.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoVisualVariable")],_);const z=_;var A,j=i(95349),q=i(36005);const I=new r.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),Z=new r.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers"];let U=A=class extends o.o{constructor(e){super(e),this.colorRamp=null,this.dataSeriesName=null,this.dataSeriesCalculationName=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){let 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){return e?(0,j.r)(e):void 0}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 flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",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(){let 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 A({classificationMethod:this.classificationMethod,colorRamp:(0,n.o8)(this.colorRamp),dataSeriesCalculationName:this.dataSeriesCalculationName,dataSeriesName:this.dataSeriesName,fadeRatio:(0,n.o8)(this.fadeRatio),fields:this.fields?.slice(),field1:(0,n.o8)(this.field1),field2:(0,n.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,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,flowTheme:this.flowTheme})}};(0,s.Cg)([(0,a.MZ)({type:I.apiValues,value:null,json:{type:I.jsonValues,read:I.read,write:I.write,origins:{"web-document":{default:"manual",type:I.jsonValues,read:I.read,write:I.write}}}})],U.prototype,"classificationMethod",null),(0,s.Cg)([(0,a.MZ)({types:j.g,json:{write:!0}})],U.prototype,"colorRamp",void 0),(0,s.Cg)([(0,q.w)("colorRamp")],U.prototype,"readColorRamp",null),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"dataSeriesName",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"dataSeriesCalculationName",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"fadeRatio",void 0),(0,s.Cg)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],U.prototype,"fields",null),(0,s.Cg)([(0,a.MZ)({type:h,value:null,json:{write:!0}})],U.prototype,"field1",null),(0,s.Cg)([(0,a.MZ)({type:h,value:null,json:{write:!0}})],U.prototype,"field2",null),(0,s.Cg)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],U.prototype,"flowTheme",null),(0,s.Cg)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],U.prototype,"focus",null),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],U.prototype,"isAutoGenerated",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],U.prototype,"numClasses",null),(0,s.Cg)([(0,a.MZ)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],U.prototype,"lengthUnit",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"maxSliderValue",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"minSliderValue",void 0),(0,s.Cg)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"statistics",null),(0,s.Cg)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],U.prototype,"standardDeviationInterval",null),(0,s.Cg)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write}})],U.prototype,"type",null),(0,s.Cg)([(0,a.MZ)({type:[z],json:{write:!0}})],U.prototype,"visualVariables",void 0),(0,s.Cg)([(0,a.MZ)({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}}}})],U.prototype,"univariateSymbolStyle",null),(0,s.Cg)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],U.prototype,"univariateTheme",null),U=A=(0,s.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfo")],U)},20061(e,t,i){var l,s=i(32198),r=i(69540),o=i(66552),n=i(25482),a=i(91429),u=i(78888),p=i(93223);const d=(0,o.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let c=l=class extends((0,r.OU)(n.o)){static from(e){return(0,u.PZ)(l,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,s.Cg)([(0,p.e)(d)],c.prototype,"order",void 0),c=l=(0,s.Cg)([(0,a.$K)("esri.renderers.support.RendererLegendOptions")],c);const y=c;i.d(t,["A",0,y])},94833(e,t,i){i.d(t,{A:()=>u});var l,s=i(32198),r=i(25482),o=i(91429),n=i(49849),a=i(40863);let u=l=class extends r.o{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}get alternateSymbols(){return this._get("alternateSymbols")??null}set alternateSymbols(e){e?this._set("alternateSymbols",e.map(e=>e instanceof a.A?e:(delete e.type,new a.A(e)))):this._set("alternateSymbols",null)}clone(){return new l({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,s.Cg)([(0,o.MZ)(n.Wp)],u.prototype,"symbol",void 0),(0,s.Cg)([(0,o.MZ)({type:[a.A],useTypeForAutocast:!1,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",null),(0,s.Cg)([(0,o.MZ)(n.Ug)],u.prototype,"value",void 0),u=l=(0,s.Cg)([(0,o.$K)("esri.renderers.support.UniqueValueInfo")],u)},49849(e,t,i){var l=i(93637),s=i(90360),r=i(65365),o=i(20378),n=i(73838),a=i(33910);const u={types:a.xK,json:{write:{writer:n.M9},origins:{"web-scene":{types:a.On,write:{writer:n.M9},read:{reader:(0,s.C)({types:a.On})}}}}},p=(0,l.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),d={types:{base:o.A,key:"type",typeMap:{"simple-fill":a.Es.typeMap["simple-fill"],"picture-fill":a.Es.typeMap["picture-fill"],"polygon-3d":a.Es.typeMap["polygon-3d"],cim:a.Es.typeMap.cim}},json:{write:{writer:n.M9},origins:{"web-scene":{type:r.A,write:{writer:n.M9}}}}},c={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}};i.d(t,["As",0,d,"Ug",0,c,"Wp",0,p,"z4",0,u])},80911(e,t,i){function l(e,t){if(null==e)return null;if(null==t||null!=e.symbol&&s(e.symbol,t))return e.symbol;for(let i of e.alternateSymbols??[])if(s(i,t))return i;return null}function s(e,t){if("cim"!==e.type)return!0;let i=e.data?.minScale??0,l=e.data?.maxScale??0;return(!l||t>l)&&(!i||t<=i)}i.d(t,{c:()=>l})},2024(e,t,i){i.d(t,{A:()=>a});var l,s=i(32198),r=i(91429),o=i(2795),n=i(72500);let a=l=class extends o.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 l({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,s.Cg)([(0,r.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,s.Cg)([(0,r.MZ)({type:["color"],json:{type:["colorInfo"]}})],a.prototype,"type",void 0),(0,s.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"normalizationField",void 0),(0,s.Cg)([(0,r.MZ)({type:[n.A],json:{write:!0}})],a.prototype,"stops",null),a=l=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.ColorVariable")],a)},62724(e,t,i){i.d(t,{A:()=>m});var l,s=i(32198),r=i(91429),o=i(2795),n=i(25482),a=i(78888),u=i(78553),p=i(36005),d=i(43937);let c=l=class extends n.o{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,u.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,u.p)(e)}clone(){return new l({label:this.label,opacity:this.opacity,value:this.value})}};(0,s.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s.Cg)([(0,r.MZ)({type:Number,json:{type:a.jz,write:{target:"transparency",isRequired:!0}}})],c.prototype,"opacity",void 0),(0,s.Cg)([(0,p.w)("opacity",["transparency"])],c.prototype,"readOpacity",null),(0,s.Cg)([(0,d.K)("opacity")],c.prototype,"writeOpacity",null),(0,s.Cg)([(0,r.MZ)({type:Number,json:{write:{isRequired:!0}}})],c.prototype,"value",void 0),c=l=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.support.OpacityStop")],c);const y=c;var h;let m=h=class extends o.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 h({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,s.Cg)([(0,r.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,s.Cg)([(0,r.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],m.prototype,"type",void 0),(0,s.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],m.prototype,"normalizationField",void 0),(0,s.Cg)([(0,r.MZ)({type:[y],json:{write:!0}})],m.prototype,"stops",null),m=h=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.OpacityVariable")],m)},23461(e,t,i){i.d(t,{A:()=>n});var l,s=i(32198),r=i(91429),o=i(2795);let n=l=class extends o.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic"}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}clone(){return new l({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,s.Cg)([(0,r.MZ)({readOnly:!0})],n.prototype,"cache",null),(0,s.Cg)([(0,r.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],n.prototype,"axis",void 0),(0,s.Cg)([(0,r.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],n.prototype,"type",void 0),(0,s.Cg)([(0,r.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],n.prototype,"rotationType",void 0),n=l=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.RotationVariable")],n)},48940(e,t,i){i.d(t,{A:()=>x});var l=i(32198),s=i(66552),r=i(53966),o=i(91429),n=i(2795),a=i(90629),u=i(12330),p=i(41078);let d=class extends p.A{constructor(e){super(e),this.customValues=null}};(0,l.Cg)([(0,o.MZ)({type:[Number],json:{write:!0}})],d.prototype,"customValues",void 0),d=(0,l.Cg)([(0,o.$K)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],d);const c=d;var y,h,m=i(98205),f=i(29266),g=i(59923),b=i(36005),v=i(43937);const w=new s.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new s.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});function V(e){if(null!=e){if("string"==typeof e||"number"==typeof e)return t=e,(0,a.cr)(t);if("size"===e.type)return(0,m.of)(e)?e:(delete(e={...e}).type,new x(e))}var t}function C(e,t,i){if("object"!=typeof e)return e;if("web-scene"===i.origin)return;let l=new x;return l.read(e,i),l}function M(e,t,i,l){"number"==typeof e?t[i]=e:"web-scene"===l?.origin?(0,g.Yc)(l,"error","property",`Size variable '${i}' can only be a number in web scenes.`):t[i]=e.toJSON(l)}let x=h=class extends n.A{static{y=m.uY}constructor(e){super(e),this[y]=!0,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:null!=this.valueExpression&&f.RV.test(this.valueExpression)}}set index(e){(0,m.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,m.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,m.eh)(this)}set maxDataValue(e){e&&this.stops&&(r.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}get maxSize(){return this._get("maxSize")}set maxSize(e){e&&this.stops&&(r.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",V(e))}readMaxSize(e,t,i){return C(e,0,i)}writeMaxSize(e,t,i,l){return M(e,t,i,l)}set minDataValue(e){e&&this.stops&&(r.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}get minSize(){return this._get("minSize")}set minSize(e){e&&this.stops&&(r.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",V(e))}readMinSize(e,t,i){return C(e,0,i)}writeMinSize(e,t,i,l){return M(e,t,i,l)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=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&&=(r.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),null),this._set("stops",e)}get transformationType(){return(0,m.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,l){if(f.RV.test(e)){if(l?.messages){let e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;(0,g.qt)(l,`visualVariables[${t}].valueExpression`,"SizeVariable with '$view.scale' valueExpression is not supported in Web Scene. Please remove this property to save the Web Scene.")}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new h({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,m.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,m.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if("clamped-linear"===this.transformationType){let{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if("stops"===this.transformationType){let e=this.stops;if(!e)return this;let t=e.map(e=>e.size).reverse(),i=e.length;for(let l=0;l<i;l++)e[l].size=t[l];return this}return this}_interpolateData(){return this.stops?.map(e=>e.value||0)}};(0,l.Cg)([(0,o.MZ)({readOnly:!0})],x.prototype,"cache",null),(0,l.Cg)([(0,o.MZ)({type:w.apiValues,json:{type:w.jsonValues,origins:{"web-map":{read:!1}},read:w.read,write:w.write}})],x.prototype,"axis",void 0),(0,l.Cg)([(0,o.MZ)()],x.prototype,"index",null),(0,l.Cg)([(0,o.MZ)({type:String,readOnly:!0})],x.prototype,"inputValueType",null),(0,l.Cg)([(0,o.MZ)({type:c,json:{write:!0}})],x.prototype,"legendOptions",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],x.prototype,"maxDataValue",null),(0,l.Cg)([(0,o.MZ)({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],x.prototype,"maxSize",null),(0,l.Cg)([(0,b.w)("maxSize")],x.prototype,"readMaxSize",null),(0,l.Cg)([(0,v.K)("maxSize")],x.prototype,"writeMaxSize",null),(0,l.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],x.prototype,"minDataValue",null),(0,l.Cg)([(0,o.MZ)({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],x.prototype,"minSize",null),(0,l.Cg)([(0,b.w)("minSize")],x.prototype,"readMinSize",null),(0,l.Cg)([(0,v.K)("minSize")],x.prototype,"writeMinSize",null),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],x.prototype,"normalizationField",void 0),(0,l.Cg)([(0,o.MZ)({readOnly:!0})],x.prototype,"arcadeRequired",null),(0,l.Cg)([(0,o.MZ)({type:String})],x.prototype,"scaleBy",void 0),(0,l.Cg)([(0,o.MZ)({type:[u.A],value:null,json:{write:!0}})],x.prototype,"stops",null),(0,l.Cg)([(0,o.MZ)({type:["outline"],json:{write:!0}})],x.prototype,"target",void 0),(0,l.Cg)([(0,o.MZ)({type:String,readOnly:!0})],x.prototype,"transformationType",null),(0,l.Cg)([(0,o.MZ)({type:["size"],json:{type:["sizeInfo"]}})],x.prototype,"type",void 0),(0,l.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],x.prototype,"useSymbolValue",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],x.prototype,"valueExpression",void 0),(0,l.Cg)([(0,b.w)("valueExpression",["valueExpression","expression"])],x.prototype,"readValueExpression",null),(0,l.Cg)([(0,v.K)("web-scene","valueExpression")],x.prototype,"writeValueExpressionWebScene",null),(0,l.Cg)([(0,o.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],x.prototype,"valueRepresentation",void 0),(0,l.Cg)([(0,o.MZ)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],x.prototype,"valueUnit",void 0),(0,l.Cg)([(0,b.w)("valueUnit")],x.prototype,"readValueUnit",null),x=h=(0,l.Cg)([(0,o.$K)("esri.renderers.visualVariables.SizeVariable")],x)},2795(e,t,i){i.d(t,{A:()=>d});var l=i(32198),s=i(66552),r=i(25482),o=i(53966),n=i(91429),a=i(78888),u=i(41078);const p=new s.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let d=class extends r.o{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?(o.A.getLogger(this).error(".field: field must be a string value"),null):(0,a.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}};(0,l.Cg)([(0,n.MZ)()],d.prototype,"index",void 0),(0,l.Cg)([(0,n.MZ)({type:p.apiValues,readOnly:!0,json:{read:p.read,write:{writer:p.write,isRequired:!0}}})],d.prototype,"type",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,l.Cg)([(0,n.wg)("field")],d.prototype,"castField",null),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"valueExpressionTitle",void 0),(0,l.Cg)([(0,n.MZ)({readOnly:!0})],d.prototype,"arcadeRequired",null),(0,l.Cg)([(0,n.MZ)({type:u.A,json:{write:!0}})],d.prototype,"legendOptions",void 0),d=(0,l.Cg)([(0,n.$K)("esri.renderers.visualVariables.VisualVariable")],d)},72500(e,t,i){var l,s=i(32198),r=i(68197),o=i(25482),n=i(91429),a=i(78888),u=i(43937);let p=l=class extends o.o{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new l({color:this.color&&this.color.clone(),label:this.label,value:this.value})}equals(e){return this===e||this.value===e.value&&this.label===e.label&&(this.color===e.color||null!=this.color&&null!=e.color&&this.color.equals(e.color))}};(0,s.Cg)([(0,n.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,s.Cg)([(0,u.K)("value")],p.prototype,"writeValue",null),p=l=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.support.ColorStop")],p);const d=p;i.d(t,["A",0,d])},12330(e,t,i){i.d(t,{A:()=>a});var l,s=i(32198),r=i(25482),o=i(90629),n=i(91429);let a=l=class extends r.o{constructor(e){super(e),this.label=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}get size(){return this._get("size")}set size(e){this._set("size",e)}clone(){return new l({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"label",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,cast:o.cr,json:{write:{isRequired:!0}}})],a.prototype,"size",null),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:{isRequired:!0}}})],a.prototype,"value",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!1}})],a.prototype,"useMinValue",void 0),(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!1}})],a.prototype,"useMaxValue",void 0),a=l=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.support.SizeStop")],a)},41078(e,t,i){var l=i(32198),s=i(69540),r=i(25482),o=i(91429);let n=class extends((0,s.OU)(r.o)){constructor(e){super(e),this.showLegend=null,this.title=null}};(0,l.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],n.prototype,"showLegend",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],n.prototype,"title",void 0),n=(0,l.Cg)([(0,o.$K)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],n);const a=n;i.d(t,["A",0,a])},29266(e,t,i){i.d(t,{UT:()=>d,Yz:()=>b}),i(68197);var l=i(52106),s=i(53966),r=i(31756),o=i(98205);const n=()=>s.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),a=e=>n().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),u=()=>n().error("Use of arcade expressions requires an arcade context"),p=(new l.A,Math.PI);function d(e,t,i){return function(e,t,i){let l="visualVariables"in e?e.visualVariables?.find(e=>"rotation"===e.type):e;if(!l)return;if("esri.renderers.visualVariables.RotationVariable"!==l.declaredClass)return void a("RotationVariable");let s=l.axis||"heading",r="heading"===s&&"arithmetic"===l.rotationType?90:0,o="heading"===s&&"arithmetic"===l.rotationType?-1:1,n=l.field,{hasExpression:u}=l.cache;if(!n&&!u)return;let p=c(l,t,i),d=p;return d="number"!=typeof d||isNaN(d)?null:r+o*d,new g(l,d,p)}(e,t,i)?.output}function c(e,t,i){let{hasExpression:l}=e.cache;if("number"==typeof t)return t;let s=t?.attributes,r=e.field;if(!l)return s?.[r];if(null==i?.arcade)return void u();let o={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},n=i.arcade.arcadeUtils,a=n.getViewInfo(o),p=n.createExecContext(t,a,i.timeZone);if(!e.cache.compiledFunc){let t=n.createSyntaxTree(e.valueExpression);e.cache.compiledFunc=n.createFunction(t)}return n.executeFunction(e.cache.compiledFunc,p)}function y(e,t,i){let l="number"==typeof t,s=l?null:t,r=s?.attributes,n=l?t:null,{isScaleDriven:a}=e.cache,p=e.cache.compiledFunc;if(a){let t=i?.scale,l=i?.view;n=null==t||"3d"===l?function(e){let t=null,i=null,l=e.stops;return l?(t=l[0].value,i=l[l.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!l)switch(e.inputValueType){case"expression":{if(null==i?.arcade)return void u();let t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},l=i.arcade.arcadeUtils,r=l.getViewInfo(t),o=l.createExecContext(s,r,i.timeZone);if(!p){let t=l.createSyntaxTree(e.valueExpression);p=l.createFunction(t),e.cache.compiledFunc=p}n=l.executeFunction(p,o);break}case"field":r&&(n=r[e.field]);break;case"unknown":n=null}return(0,o.gf)(n)?n:null}function h(e,t,i){return function(e,t,i){let l="visualVariables"in e?e.visualVariables?.find(e=>"size"===e.type):e;if(!l)return;if("esri.renderers.visualVariables.SizeVariable"!==l.declaredClass)return void a("SizeVariable");let s=y(l,t,i),n=s;if(null!=n&&"number"!=typeof t&&t&&l.normalizationField){let e=t.attributes,i=parseFloat(e?.[l.normalizationField]);if(!(0,o.gf)(i)||0===i)return;n/=i}let u=function(e,t,i,l,s){switch(t.transformationType){case"additive":return function(e,t,i,l){let s=m(t.minSize,i,l)||t.minDataValue;return null==e&&null==s?null:(e??0)+(s??0)}(e,t,i,l);case"constant":return function(e,t,i){let l=e.stops,s=l?.length&&l[0].size;return s??=e.minSize,m(s,t,i)}(t,i,l);case"clamped-linear":return function(e,t,i,l){let s=m(t.minSize,i,l);if(null==e)return s;let{minDataValue:r,maxDataValue:o}=t;if(null==r||null==o)return null;let n=(e-r)/(o-r),a=m(t.maxSize,i,l),u=l?.shape;if(e<=r)return s;if(e>=o)return a;if(null==s||null==a)return null;if("area"===t.scaleBy&&u){let e="circle"===u,t=e?p*(s/2)**2:s*s,i=t+n*((e?p*(a/2)**2:a*a)-t);return e?2*Math.sqrt(i/p):Math.sqrt(i)}return s+n*(a-s)}(e,t,i,l);case"proportional":return function(e,t,i,l){let s=m(t.minSize,i,l);if(null==e||null==s)return s;let r=l?.shape,{minDataValue:o}=t;if(null==o)return null;let n=e/o,a=m(t.maxSize,i,l),u=null;return u="circle"===r?2*Math.sqrt(n*(s/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(n*s**2):n*s,f(u,s,a)}(e,t,i,l);case"stops":return function(e,t,i,l,s){if(null==e)return null;let[r,o,n]=function(e,t){if(!t)return;let i=0,l=t.length-1;return t.some((t,s)=>e<t?(l=s,!0):(i=s,!1)),[i,l,(e-t[i])/(t[l]-t[i])]}(e,s);if(r===o)return m(t.stops?.[r].size,i,l);{let e=m(t.stops?.[r].size,i,l),s=m(t.stops?.[o].size,i,l);return null==e||null==s?null:e+(s-e)*n}}(e,t,i,l,s);case"real-world-size":return function(e,t,i,l){let s=(l?.resolution??1)*r.j[t.valueUnit],o=m(t.minSize,i,l),n=m(t.maxSize,i,l),{valueRepresentation:a}=t;if(null==e)return o;let u=null;return u="area"===a?2*Math.sqrt(e/p)/s:"radius"===a||"distance"===a?2*e/s:e/s,f(u,o,n)}(e,t,i,l);case"identity":return e;case"unknown":return null}}(n,l,t,i,l.cache.ipData);return new g(l,null==u||isNaN(u)?void 0:u,s)}(e,t,i)?.output}function m(e,t,i){return null==e?null:(0,o.of)(e)?h(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}class g{get type(){return this.variable.type}constructor(e,t,i){this.variable=e,this.output=t,this.input=i}}function b(e,t,i){let l=["proportional","proportional","proportional"];for(let s of e){let e=s.useSymbolValue?"symbol-value":h(s,t,i)??"proportional";switch(s.axis){case"width":l[0]=e;break;case"depth":l[1]=e;break;case"height":l[2]=e;break;case"width-and-depth":l[0]=e,l[1]=e;break;case"all":case void 0:case null:l[0]=e,l[1]=e,l[2]=e;break;default:s.axis}}return l}i.d(t,["RV",0,/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i])},2485(e,t,i){i.d(t,{A:()=>d});var l,s=i(32198),r=i(68197),o=i(4718),n=i(91429),a=i(78888),u=i(72606),p=i(93223);let d=l=class extends u.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new l({fromColor:(0,o.o8)(this.fromColor),toColor:(0,o.o8)(this.toColor),algorithm:this.algorithm})}};(0,s.Cg)([(0,p.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,s.Cg)([(0,n.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],d.prototype,"fromColor",void 0),(0,s.Cg)([(0,n.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],d.prototype,"toColor",void 0),(0,s.Cg)([(0,n.MZ)({type:["algorithmic"],json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),d=l=(0,s.Cg)([(0,n.$K)("esri.rest.support.AlgorithmicColorRamp")],d)},72606(e,t,i){i.d(t,{A:()=>o});var l=i(32198),s=i(25482),r=i(91429);let o=class extends s.o{constructor(e){super(e),this.type=null}};(0,l.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,l.Cg)([(0,r.$K)("esri.rest.support.ColorRamp")],o)},1626(e,t,i){i.d(t,{A:()=>d});var l,s=i(32198),r=i(4718),o=i(91429),n=i(2485),a=i(72606),u=i(43937),p=i(36005);let d=l=class extends a.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart",this.weights=void 0}writeColorRamps(e,t,i,l){let s=e?.map(e=>e.toJSON(l)),{weights:r}=this;if(s&&r?.length&&s.length===r?.length){let e=100/r.reduce((e,t)=>e+t),t=0;s.forEach((i,l)=>{i.start=t,t+=r[l]*e,i.stop=t})}t.colorRamps=s}readWeights(e,t){let i=t.colorRamps?.map(({start:e,stop:t})=>null==e||null==t?-1:t-e);if(!i?.some(e=>e<0))return i}clone(){return new l({colorRamps:(0,r.o8)(this.colorRamps)})}};(0,s.Cg)([(0,o.MZ)({type:[n.A],json:{write:{isRequired:!0}}})],d.prototype,"colorRamps",void 0),(0,s.Cg)([(0,u.K)("colorRamps")],d.prototype,"writeColorRamps",null),(0,s.Cg)([(0,o.MZ)({type:["multipart"],json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:[Number]})],d.prototype,"weights",void 0),(0,s.Cg)([(0,p.w)("weights",["colorRamps"])],d.prototype,"readWeights",null),d=l=(0,s.Cg)([(0,o.$K)("esri.rest.support.MultipartColorRamp")],d)},95349(e,t,i){i.d(t,{r:()=>n});var l=i(2485),s=i(72606),r=i(1626);const o={key:"type",base:s.A,typeMap:{algorithmic:l.A,multipart:r.A}};function n(e){return e?.type?"algorithmic"===e.type?l.A.fromJSON(e):"multipart"===e.type?r.A.fromJSON(e):null:null}i.d(t,["g",0,o])},59868(e,t,i){var l=i(94985),s=i(31593),r=i(53930),o=i(68249),n=i(93470);const a=r.A.fromJSON(n.Cb),u=s.A.fromJSON(n.yM),p=l.A.fromJSON(n.WR),d=o.A.fromJSON(n.JZ);r.A.fromJSON(n.nC),s.A.fromJSON(n.HW),l.A.fromJSON(n.b6),i.d(t,["A7",0,u,"Cx",0,p,"Hk",0,d,"UK",0,a])},73838(e,t,i){i.d(t,{rS:()=>D,M9:()=>I,oO:()=>Z});var l=i(93637),s=i(77548),r=i(29169),o=i(49186),n=i(13313),a=i(97887),u=i(68548),p=i(58592),d=i(75981),c=i(65365),y=i(94985),h=i(31593),m=i(53930),f=i(68249),g=i(68197),b=i(7762),v=i(90629),w=i(27845),S=i(11506),V=i(39065),C=i(59868),M=i(93470);d.A.fromSimpleMarkerSymbol(C.UK),a.A.fromSimpleLineSymbol(C.A7),c.A.fromSimpleFillSymbol(C.Cx),new u.A({symbolLayers:new b.A([new w.A({material:{color:M.fT},edges:new V.A({size:v.ps,color:new g.A(M.JR)})})])});const x=new a.A({symbolLayers:new b.A([new S.A({material:{color:new g.A([0,0,0])},size:v.ps})])}),_=new c.A({symbolLayers:new b.A([new w.A({outline:{color:new g.A([0,0,0]),size:v.ps}})])});var z=i(33910);const A="#useCIMFallbackSymbology()",j={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};var q=i(59923);function I(e,t,i,s){let r=U(e,{},{context:s,isLabelSymbol:!1});null!=r&&(0,l.sM)(i,r,t)}function Z(e,t,i,l){let s=U(e,{},{context:l,isLabelSymbol:!0});null!=s&&(t[i]=s)}function F(e){return(0,z.wk)(e)||e instanceof r.A}function U(e,t,i){if(null==e)return null;let{context:l,isLabelSymbol:g}=i,b=l?.origin;if("web-scene"===b&&!F(e)){let i=function(e,t=j){if(!e)return{symbol:null};let{retainId:i=j.retainId,ignoreDrivers:l=j.ignoreDrivers,hasLabelingContext:s=j.hasLabelingContext,retainCIM:g=j.retainCIM,cimFallbackEnabled:b=j.cimFallbackEnabled}=t,v=null;if((0,z.wk)(e))v=e.clone();else if("web-style"===e.type)v=e.clone();else if("cim"===e.type){let i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":v=g?e.clone():d.A.fromCIMSymbol(e);break;case"CIMLineSymbol":b&&(v=x.clone(),t?.logWarning?.(A,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":b&&(v=_.clone(),t?.logWarning?.(A,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!v)return{error:new o.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof h.A)v=a.A.fromSimpleLineSymbol(e);else if(e instanceof m.A)v=d.A.fromSimpleMarkerSymbol(e);else if(e instanceof p.A)v=d.A.fromPictureMarkerSymbol(e);else if(e instanceof y.A)v=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):c.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new o.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};v=s?n.A.fromTextSymbol(e):d.A.fromTextSymbol(e)}return i&&v&&"cim"!==v.type&&(v.id=e.id),l&&"cim"!==v.type&&!(v instanceof r.A)&&v.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:v}}(e,{retainCIM:!0,hasLabelingContext:g});return null==i.symbol?((0,q.bA)(l,e,"Use 3D symbology instead when working with WebScene and SceneView",{error:i.error}),null):i.symbol.write(t,l)}return(0,s.TU)(l?.layer)&&function(e){return"polygon-3d"===e?.type||"line-3d"===e?.type}(e)?((0,q.bA)(l,e,`unsupported in layers of type ${l?.layer?.declaredClass}`),null):("web-map"===b||"portal-item"===b&&!(0,s.TU)(l?.layer))&&F(e)?((0,q.bA)(l,e,"Use 2D symbology and CIMSymbol instead when working with MapView"),null):e.write(t,l)}function D(e,t){return(0,z.Bu)(e,null,t)}},85594(e,t,i){i.d(t,{jg:()=>b,cF:()=>d,bo:()=>c,yA:()=>m,o5:()=>y});var l=i(56507),s=i(49186),r=i(44208),o=i(17676),n=i(84952),a=i(20655),u=i(16405);const p=new Map;function d(e,t,i){return null==e?.styleUrl?null==e?.styleName?Promise.reject(new s.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style")):function(e,t,i){let l,r=null==t.portal?a.A.getDefault():t.portal,o=`${r.url} - ${r.user?.username} - ${e}`,n=p.get(o);if(n)return n;let d=function(e,t,i){return t.load(i).then(()=>{let l=new u.A({disableExtraQuery:!0,query:`owner:${f} AND type:${g} AND typekeywords:"${e}"`});return t.queryItems(l,i)}).then(({results:t})=>{let l=null,r=e.toLowerCase();if(t&&Array.isArray(t))for(let e of t)if(e.typeKeywords?.some(e=>e.toLowerCase()===r)&&e.type===g&&e.owner===f){l=e;break}if(!l)throw new s.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return l.load(i)})}(e,r,i).then(e=>(l=e,e.fetchData())).then(t=>({data:t,baseUrl:l.itemUrl??"",styleName:e}));return p.set(o,d),d}(e.styleName,t,i):async function(e,t){try{return{data:(await m(e,t)).data,baseUrl:(0,n.nM)(e),styleUrl:e}}catch(e){return(0,o.QP)(e),null}}(e.styleUrl,i)}function c(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function y(e,t){for(let i of t)switch(i){case"cim":if(e.cimRef)return{format:i,url:encodeURI(e.cimRef)};break;case"web-gltf-basisu":{let t=h(e,"gltf_basisu");if(t)return{format:i,url:t};break}case"web-gltf":{let t=h(e,"gltf");if(t)return{format:i,url:t};break}case"web":{let t=h(e,"gltf");if(t)return{format:"web-gltf",url:t};if(e.webRef)return{format:i,url:encodeURI(e.webRef)};break}}}function h(e,t){if(!(0,r.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function m(e,t){let i={responseType:"json",query:{f:"json"},...t};return(0,l.A)((0,n.S8)(e),i)}const f="esri_en",g="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7883],{61473(e,t,n){function r(e){return e||=globalThis.location.hostname,u.some(t=>null!=e?.match(t))}function l(e,t){return e?(t||=globalThis.location.hostname,t?null!=t.match(i)||null!=t.match(o)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(s)||null!=t.match(a)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e):null}n.d(t,{EM:()=>l,b5:()=>r});const i=/^devext\.arcgis\.com$/,s=/^qaext\.arcgis\.com$/,o=/^[\w-]*\.mapsdevext\.arcgis\.com$/,a=/^[\w-]*\.mapsqa\.arcgis\.com$/,u=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local\.esri\.com$/,i,s,/^jsapps\.esri\.com$/,o,a]},88930(e,t,n){n.d(t,{S1:()=>o,VW:()=>a,lL:()=>u,rb:()=>c,t:()=>y});var r=n(97770),l=(n(98623),n(34747));const i=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,n,i="system"){if("unknown"===n)return e;let s=new l.oh((0,r.wj)(i)),o=l.c9.fromJSDate(e,{zone:s}),a="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),o.plus({[a]:t}).toJSDate()}function a(e,t,n="milliseconds"){let r=e.getTime(),l=y(t,n,"milliseconds");return new Date(r+l)}function u(e,t,n="system"){let{unit:i}=t,s=Math.max(1,Math.trunc(t.value)),o=new l.oh((0,r.wj)(n)),a=l.c9.fromJSDate(e,{zone:o}),u=e=>e-e%s;switch(i){case"milliseconds":return a.startOf("second").plus({millisecond:u(a.millisecond)}).toJSDate();case"seconds":return a.startOf("minute").plus({second:u(a.second)}).toJSDate();case"minutes":return a.startOf("hour").plus({minute:u(a.minute)}).toJSDate();case"hours":return a.startOf("day").plus({hour:u(a.hour)}).toJSDate();case"days":return a.startOf("month").plus({day:u(a.day-1)}).toJSDate();case"weeks":{let e=a.startOf("year").startOf("week"),t=Math.floor(a.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return a.startOf("year").plus({month:u(a.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=a.startOf("year"),t=("decades"===i?10:"centuries"===i?100:1)*s,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function c(e){let t=i.exec(e);if(!t)return null;let{hh:n,mm:r,ss:l,ms:o}=t.groups;return Number(n)*s.hours+Number(r)*s.minutes+Number(l||0)*s.seconds+Number(o||0)}function y(e,t,n){return 0===e?0:e*s[t]/s[n]}},4146(e,t,n){n.d(t,{A:()=>g});var r=n(32198),l=n(56507),i=n(49186),s=n(65529),o=n(4902),a=n(92474),u=n(53966),c=n(17676),y=n(84952),m=n(91429),d=n(5443),p=n(16930),f=n(92602),b=n(79677);let h=0,g=class extends((0,s.Zt)((0,o.s)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new d.A(-180,-90,180,90,p.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+h++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=p.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([n.e(812),n.e(7982)]).then(()=>n(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await Promise.all([n.e(9917),n.e(812),n.e(5613)]).then(()=>n(45613));try{return await r(t)}catch(e){let n=t?.portalItem,r=n?.id||"unset",l=n?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+l+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,y.An)(this.url)}createLayerView(e,t){return Promise.reject(new i.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,l.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r.Cg)([(0,m.MZ)({type:String})],g.prototype,"attributionDataUrl",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],g.prototype,"effectiveVisible",null),(0,r.Cg)([(0,m.MZ)({type:d.A})],g.prototype,"fullExtent",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],g.prototype,"hasAttributionData",null),(0,r.Cg)([(0,m.MZ)({type:String,clonable:!1})],g.prototype,"id",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,nonNullable:!0})],g.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:["show","hide","hide-children"]})],g.prototype,"listMode",void 0),(0,r.Cg)([(0,m.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],g.prototype,"opacity",void 0),(0,r.Cg)([(0,m.MZ)({clonable:!1})],g.prototype,"parent",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],g.prototype,"parsedUrl",null),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],g.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean})],g.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean})],g.prototype,"attributionVisible",void 0),(0,r.Cg)([(0,m.MZ)({type:p.A})],g.prototype,"spatialReference",void 0),(0,r.Cg)([(0,m.MZ)({type:String})],g.prototype,"title",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,json:{read:!1}})],g.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)()],g.prototype,"url",void 0),(0,r.Cg)([(0,m.MZ)({type:b.A})],g.prototype,"visibilityTimeExtent",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,nonNullable:!0})],g.prototype,"visible",void 0),g=(0,r.Cg)([(0,m.$K)("esri.layers.Layer")],g)},77548(e,t,n){n.d(t,{Gh:()=>E,tk:()=>k,BR:()=>T,p2:()=>C,qd:()=>D,wI:()=>M,G$:()=>N,$x:()=>U,Ov:()=>w,cM:()=>m,UC:()=>d,Qz:()=>p,OP:()=>L,TU:()=>g,F2:()=>f,XX:()=>h,Qi:()=>S,jy:()=>A});var r=n(70333),l=n(56507),i=n(7762),s=(n(84952),n(36563)),o=n(36708),a=n(4146);const u=new WeakMap;function c(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof a.A)&&("catalog-dynamic-group"===t.type||c(t))},t=>u.set(e,t),o.pc),(0,s.hA)(()=>u.delete(e))]),u.get(e))}function y(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function m(e){return y(e,"knowledge-graph")&&"layers"in e}function d(e){return y(e,"knowledge-graph-sublayer")}function p(e){return y(e,"link-chart")&&"layers"in e}function f(e){return y(e,"subtype-group")&&"sublayers"in e}function b(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}n(16215);const h={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function g(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function S(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function A(e){return function(e){return y(e,"catalog-footprint")}(e)||function(e){return y(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return y(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function v(e){let t=e?.type;return"binning"===t||"cluster"===t}function C(e,t){if(!A(e))return;let n=t?.graphic,r="featureReduction"in e?e.featureReduction:null;if(n){if(n.isAggregate){let e=n.origin;return e&&"featureReductionProvider"in e&&r?v(r)?r:null:void 0}return e}return t?.checkFeatureReduction&&r?v(r)?r:null:e}async function M(e,t){let n=r.id?.findServerInfo(e);if(null!=n?.currentVersion)return n.owningSystemUrl||null;let i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;let s=`${e.slice(0,i)}/rest/info`,o=null==t?null:t.signal,{data:a}=await(0,l.A)(s,{query:{f:"json"},responseType:"json",signal:o});return a?.owningSystemUrl||null}function T(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function k(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function D(e){let t=new i.A;for(let n of e.allLayers.concat(e.allTables))c(n)||b(n)||"annotation-feature"===n.type||"dimension-feature"===n.type||("charts"in n&&t.push(n),"subtype-group"===n.type&&t.push(...n.sublayers));return t}function U(e,t){return null}function N(e){return null}function L(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!L(e))return;let n=(e.url,null);n&&(e.url=n)}},73133(e,t,n){const r=(0,n(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});n.d(t,["j",0,r])},16215(e,t,n){n.d(t,{S:()=>l});const r=Symbol("BasemapInstance");function l(e){return"object"==typeof e&&!!e&&r in e}n.d(t,["Y",0,r])},59868(e,t,n){var r=n(94985),l=n(31593),i=n(53930),s=n(68249),o=n(93470);const a=i.A.fromJSON(o.Cb),u=l.A.fromJSON(o.yM),c=r.A.fromJSON(o.WR),y=s.A.fromJSON(o.JZ);i.A.fromJSON(o.nC),l.A.fromJSON(o.HW),r.A.fromJSON(o.b6),n.d(t,["A7",0,u,"Cx",0,c,"Hk",0,y,"UK",0,a])},93470(e,t,n){const r=[252,146,31,255],l={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};n.d(t,["Cb",0,l,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,i])},73838(e,t,n){n.d(t,{rS:()=>j,M9:()=>E,oO:()=>I});var r=n(93637),l=n(77548),i=n(29169),s=n(49186),o=n(13313),a=n(97887),u=n(68548),c=n(58592),y=n(75981),m=n(65365),d=n(94985),p=n(31593),f=n(53930),b=n(68249),h=n(68197),g=n(7762),w=n(90629),S=n(27845),A=n(11506),v=n(39065),C=n(59868),M=n(93470);y.A.fromSimpleMarkerSymbol(C.UK),a.A.fromSimpleLineSymbol(C.A7),m.A.fromSimpleFillSymbol(C.Cx),new u.A({symbolLayers:new g.A([new S.A({material:{color:M.fT},edges:new v.A({size:(0,w.PN)(1),color:new h.A(M.JR)})})])});const T=new a.A({symbolLayers:new g.A([new A.A({material:{color:new h.A([0,0,0])},size:(0,w.PN)(1)})])}),k=new m.A({symbolLayers:new g.A([new S.A({outline:{color:new h.A([0,0,0]),size:(0,w.PN)(1)}})])});var D=n(33910);const U="#useCIMFallbackSymbology()",N={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};var L=n(59923);function E(e,t,n,l){let i=O(e,{},{context:l,isLabelSymbol:!1});null!=i&&(0,r.sM)(n,i,t)}function I(e,t,n,r){let l=O(e,{},{context:r,isLabelSymbol:!0});null!=l&&(t[n]=l)}function x(e){return(0,D.wk)(e)||e instanceof i.A}function O(e,t,n){if(null==e)return null;let{context:r,isLabelSymbol:h}=n,g=r?.origin;if("web-scene"===g&&!x(e)){let n=function(e,t=N){if(!e)return{symbol:null};let{retainId:n=N.retainId,ignoreDrivers:r=N.ignoreDrivers,hasLabelingContext:l=N.hasLabelingContext,retainCIM:h=N.retainCIM,cimFallbackEnabled:g=N.cimFallbackEnabled}=t,w=null;if((0,D.wk)(e))w=e.clone();else if("web-style"===e.type)w=e.clone();else if("cim"===e.type){let n=e.data?.symbol?.type;switch(n){case"CIMPointSymbol":w=h?e.clone():y.A.fromCIMSymbol(e);break;case"CIMLineSymbol":g&&(w=T.clone(),t?.logWarning?.(U,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":g&&(w=k.clone(),t?.logWarning?.(U,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!w)return{error:new s.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${n||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof p.A)w=a.A.fromSimpleLineSymbol(e);else if(e instanceof f.A)w=y.A.fromSimpleMarkerSymbol(e);else if(e instanceof c.A)w=y.A.fromPictureMarkerSymbol(e);else if(e instanceof d.A)w=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):m.A.fromSimpleFillSymbol(e);else{if(!(e instanceof b.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})};w=l?o.A.fromTextSymbol(e):y.A.fromTextSymbol(e)}return n&&w&&"cim"!==w.type&&(w.id=e.id),r&&"cim"!==w.type&&!(w instanceof i.A)&&w.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:w}}(e,{retainCIM:!0,hasLabelingContext:h});return null==n.symbol?((0,L.bA)(r,e,"Use 3D symbology instead when working with WebScene and SceneView",{error:n.error}),null):n.symbol.write(t,r)}return(0,l.TU)(r?.layer)&&function(e){return"polygon-3d"===e?.type||"line-3d"===e?.type}(e)?((0,L.bA)(r,e,`unsupported in layers of type ${r?.layer?.declaredClass}`),null):("web-map"===g||"portal-item"===g&&!(0,l.TU)(r?.layer))&&x(e)?((0,L.bA)(r,e,"Use 2D symbology and CIMSymbol instead when working with MapView"),null):e.write(t,r)}function j(e,t){return(0,D.Bu)(e,null,t)}},85594(e,t,n){n.d(t,{jg:()=>g,cF:()=>y,bo:()=>m,yA:()=>f,o5:()=>d});var r=n(56507),l=n(49186),i=n(44208),s=n(17676),o=n(84952),a=n(20655),u=n(16405);const c=new Map;function y(e,t,n){return null==e?.styleUrl?null==e?.styleName?Promise.reject(new l.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style")):function(e,t,n){let r,i=null==t.portal?a.A.getDefault():t.portal,s=`${i.url} - ${i.user?.username} - ${e}`,o=c.get(s);if(o)return o;let y=function(e,t,n){return t.load(n).then(()=>{let r=new u.A({disableExtraQuery:!0,query:`owner:${b} AND type:${h} AND typekeywords:"${e}"`});return t.queryItems(r,n)}).then(({results:t})=>{let r=null,i=e.toLowerCase();if(t&&Array.isArray(t))for(let e of t)if(e.typeKeywords?.some(e=>e.toLowerCase()===i)&&e.type===h&&e.owner===b){r=e;break}if(!r)throw new l.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return r.load(n)})}(e,i,n).then(e=>(r=e,e.fetchData())).then(t=>({data:t,baseUrl:r.itemUrl??"",styleName:e}));return c.set(s,y),y}(e.styleName,t,n):async function(e,t){try{return{data:(await f(e,t)).data,baseUrl:(0,o.nM)(e),styleUrl:e}}catch(e){return(0,s.QP)(e),null}}(e.styleUrl,n)}function m(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function d(e,t){for(let n of t)switch(n){case"cim":if(e.cimRef)return{format:n,url:encodeURI(e.cimRef)};break;case"web-gltf-basisu":{let t=p(e,"gltf_basisu");if(t)return{format:n,url:t};break}case"web-gltf":{let t=p(e,"gltf");if(t)return{format:n,url:t};break}case"web":{let t=p(e,"gltf");if(t)return{format:"web-gltf",url:t};if(e.webRef)return{format:n,url:encodeURI(e.webRef)};break}}}function p(e,t){if(!(0,i.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function f(e,t){let n={responseType:"json",query:{f:"json"},...t};return(0,r.A)((0,o.S8)(e),n)}const b="esri_en",h="Style",g="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},27883(e,t,n){n.d(t,{resolveWebStyleSymbol:()=>p});var r=n(61473),l=n(49186),i=n(84952),s=n(20655),o=n(97159),a=n(73838),u=n(98751),c=n(85594),y=n(57212),m=n(33910);const d=["web-gltf","web","cim"];function p(e,t,n){let r=e.name;return null==r?Promise.reject(new l.A("symbolstyleutils:style-symbol-reference-name-missing","Missing name in style symbol reference")):"Esri2DPointSymbolsStyle"===e.styleName?function(e,t,n){let r=c.jg.replaceAll(/\{SymbolName\}/gi,e),l=null==t.portal?s.A.getDefault():t.portal;return(0,c.yA)(r,n).then(e=>{let t=(0,c.bo)(e.data);return(0,a.rS)(t,{portal:l,url:(0,i.An)((0,i.nM)(r)),origin:"portal-item"})})}(r,t,n):(0,c.cF)(e,t,n).then(e=>f(e,r,t,c.o5,n))}async function f(e,t,n,p,f){let b=null==n?.portal?s.A.getDefault():n.portal,h={portal:b,url:(0,i.An)(e.baseUrl)},g=function(e,t){return t.items.find(t=>t.name===e)}(t,e.data);if(!g)throw new l.A("symbolstyleutils:symbol-name-not-found",`The symbol name '${t}' could not be found`,{symbolName:t});let w=f?.acceptedFormats??d,S=p(g,w);if(!S)throw new l.A("symbolstyleutils:symbol-reference-no-accepted-format",`The symbol name '${t}' does not have an accepted format (one of ${w})`,{symbolName:t});let{url:A,format:v}=S,C=(0,o.f)(A,h),M=g.thumbnail?.href??null,T=g.thumbnail?.imageData;(0,r.b5)()&&(C=(0,r.EM)(C)??"",M=(0,r.EM)(M));let k={portal:b,url:(0,i.An)((0,i.nM)(C)),origin:"portal-item"};return(0,c.yA)(C,f).then(r=>{let l="cim"===v?(0,c.bo)(r.data):r.data,i=(0,a.rS)(l,k);if(i&&(0,m.wk)(i)){if(M){let e=(0,o.f)(M,h);i.thumbnail=new y.V({url:e})}else T&&(i.thumbnail=new y.V({url:`data:image/png;base64,${T}`}));e.styleUrl?i.styleOrigin=new u.A({portal:n.portal,styleUrl:e.styleUrl,name:t}):e.styleName&&(i.styleOrigin=new u.A({portal:n.portal,styleName:e.styleName,name:t}))}return i})}},79677(e,t,n){n.d(t,{A:()=>y});var r,l=n(32198),i=n(25482),s=n(88930),o=n(91429),a=(n(98623),n(10184)),u=n(36005),c=n(43937);let y=class extends i.o{static{r=this}static get allTime(){return m}static get empty(){return d}static fromArray(e){return new r({start:null==e[0]?e[0]:new Date(e[0]),end:null==e[1]?e[1]:new Date(e[1])})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null==t.end?null:new Date(t.end)}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null==t.start?null:new Date(t.start)}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,l=e.end?.getTime()??e.end;return t===r&&n===l}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let n=this.start;n&&=(0,s.lL)(n,new a.A({value:1,unit:e}),t);let l=this.end;if(l){let n=(0,s.lL)(l,new a.A({value:1,unit:e}),t);l=l.getTime()===n.getTime()?n:(0,s.S1)(n,1,e,t)}return new r({start:n,end:l})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t,n,l=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,s=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;return s>=l&&s<=i?t=s:l>=s&&l<=o&&(t=l),i>=s&&i<=o?n=i:o>=l&&o<=i&&(n=o),null==t||null==n||isNaN(t)||isNaN(n)?r.empty:new r({start:t===-1/0?null:new Date(t),end:n===1/0?null:new Date(n)})}offset(e,t,n="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let l=new r,{start:i,end:o}=this;return null!=i&&(l.start=(0,s.S1)(i,e,t,n)),null!=o&&(l.end=(0,s.S1)(o,e,t,n)),l}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return m.clone();let t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,n=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:n})}};(0,l.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"end",void 0),(0,l.Cg)([(0,u.w)("end")],y.prototype,"readEnd",null),(0,l.Cg)([(0,c.K)("end")],y.prototype,"writeEnd",null),(0,l.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],y.prototype,"isAllTime",null),(0,l.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],y.prototype,"isEmpty",null),(0,l.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"start",void 0),(0,l.Cg)([(0,u.w)("start")],y.prototype,"readStart",null),(0,l.Cg)([(0,c.K)("start")],y.prototype,"writeStart",null),y=r=(0,l.Cg)([(0,o.$K)("esri.time.TimeExtent")],y);const m=new y,d=new y({start:void 0,end:void 0})},10184(e,t,n){n.d(t,{A:()=>c});var r=n(32198),l=n(69540),i=n(25482),s=n(88930),o=n(91429),a=n(73133),u=n(93223);let c=class extends((0,l.OU)(i.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,u.e)(a.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,r.Cg)([(0,o.$K)("esri.time.TimeInterval")],c)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7883],{61473(e,t,n){function r(e){return e||=globalThis.location.hostname,u.some(t=>null!=e?.match(t))}function l(e,t){return e?(t||=globalThis.location.hostname,t?null!=t.match(i)||null!=t.match(o)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(s)||null!=t.match(a)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e):null}n.d(t,{EM:()=>l,b5:()=>r});const i=/^devext\.arcgis\.com$/,s=/^qaext\.arcgis\.com$/,o=/^[\w-]*\.mapsdevext\.arcgis\.com$/,a=/^[\w-]*\.mapsqa\.arcgis\.com$/,u=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local\.esri\.com$/,i,s,/^jsapps\.esri\.com$/,o,a]},88930(e,t,n){n.d(t,{S1:()=>o,VW:()=>a,lL:()=>u,rb:()=>c,t:()=>y});var r=n(97770),l=(n(98623),n(34747));const i=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,n,i="system"){if("unknown"===n)return e;let s=new l.oh((0,r.wj)(i)),o=l.c9.fromJSDate(e,{zone:s}),a="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),o.plus({[a]:t}).toJSDate()}function a(e,t,n="milliseconds"){let r=e.getTime(),l=y(t,n,"milliseconds");return new Date(r+l)}function u(e,t,n="system"){let{unit:i}=t,s=Math.max(1,Math.trunc(t.value)),o=new l.oh((0,r.wj)(n)),a=l.c9.fromJSDate(e,{zone:o}),u=e=>e-e%s;switch(i){case"milliseconds":return a.startOf("second").plus({millisecond:u(a.millisecond)}).toJSDate();case"seconds":return a.startOf("minute").plus({second:u(a.second)}).toJSDate();case"minutes":return a.startOf("hour").plus({minute:u(a.minute)}).toJSDate();case"hours":return a.startOf("day").plus({hour:u(a.hour)}).toJSDate();case"days":return a.startOf("month").plus({day:u(a.day-1)}).toJSDate();case"weeks":{let e=a.startOf("year").startOf("week"),t=Math.floor(a.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return a.startOf("year").plus({month:u(a.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=a.startOf("year"),t=("decades"===i?10:"centuries"===i?100:1)*s,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function c(e){let t=i.exec(e);if(!t)return null;let{hh:n,mm:r,ss:l,ms:o}=t.groups;return Number(n)*s.hours+Number(r)*s.minutes+Number(l||0)*s.seconds+Number(o||0)}function y(e,t,n){return 0===e?0:e*s[t]/s[n]}},4146(e,t,n){n.d(t,{A:()=>g});var r=n(32198),l=n(56507),i=n(49186),s=n(65529),o=n(4902),a=n(92474),u=n(53966),c=n(17676),y=n(84952),m=n(91429),d=n(5443),p=n(16930),f=n(92602),b=n(79677);let h=0,g=class extends((0,s.Zt)((0,o.s)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new d.A(-180,-90,180,90,p.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+h++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=p.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([n.e(812),n.e(7982)]).then(()=>n(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await Promise.all([n.e(9917),n.e(812),n.e(5613)]).then(()=>n(45613));try{return await r(t)}catch(e){let n=t?.portalItem,r=n?.id||"unset",l=n?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+l+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,y.An)(this.url)}createLayerView(e,t){return Promise.reject(new i.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,l.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r.Cg)([(0,m.MZ)({type:String})],g.prototype,"attributionDataUrl",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],g.prototype,"effectiveVisible",null),(0,r.Cg)([(0,m.MZ)({type:d.A})],g.prototype,"fullExtent",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],g.prototype,"hasAttributionData",null),(0,r.Cg)([(0,m.MZ)({type:String,clonable:!1})],g.prototype,"id",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,nonNullable:!0})],g.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:["show","hide","hide-children"]})],g.prototype,"listMode",void 0),(0,r.Cg)([(0,m.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],g.prototype,"opacity",void 0),(0,r.Cg)([(0,m.MZ)({clonable:!1})],g.prototype,"parent",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],g.prototype,"parsedUrl",null),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],g.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean})],g.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean})],g.prototype,"attributionVisible",void 0),(0,r.Cg)([(0,m.MZ)({type:p.A})],g.prototype,"spatialReference",void 0),(0,r.Cg)([(0,m.MZ)({type:String})],g.prototype,"title",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,json:{read:!1}})],g.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)()],g.prototype,"url",void 0),(0,r.Cg)([(0,m.MZ)({type:b.A})],g.prototype,"visibilityTimeExtent",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,nonNullable:!0})],g.prototype,"visible",void 0),g=(0,r.Cg)([(0,m.$K)("esri.layers.Layer")],g)},77548(e,t,n){n.d(t,{Gh:()=>E,tk:()=>k,BR:()=>T,p2:()=>C,qd:()=>D,wI:()=>M,G$:()=>L,$x:()=>U,Ov:()=>w,cM:()=>m,UC:()=>d,Qz:()=>p,OP:()=>N,TU:()=>g,F2:()=>f,XX:()=>h,Qi:()=>S,jy:()=>A});var r=n(70333),l=n(56507),i=n(7762),s=(n(84952),n(36563)),o=n(36708),a=n(4146);const u=new WeakMap;function c(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof a.A)&&("catalog-dynamic-group"===t.type||c(t))},t=>u.set(e,t),o.pc),(0,s.hA)(()=>u.delete(e))]),u.get(e))}function y(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function m(e){return y(e,"knowledge-graph")&&"layers"in e}function d(e){return y(e,"knowledge-graph-sublayer")}function p(e){return y(e,"link-chart")&&"layers"in e}function f(e){return y(e,"subtype-group")&&"sublayers"in e}function b(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}n(16215);const h={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function g(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function S(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function A(e){return function(e){return y(e,"catalog-footprint")}(e)||function(e){return y(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return y(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function v(e){let t=e?.type;return"binning"===t||"cluster"===t}function C(e,t){if(!A(e))return;let n=t?.graphic,r="featureReduction"in e?e.featureReduction:null;if(n){if(n.isAggregate){let e=n.origin;return e&&"featureReductionProvider"in e&&r?v(r)?r:null:void 0}return e}return t?.checkFeatureReduction&&r?v(r)?r:null:e}async function M(e,t){let n=r.id?.findServerInfo(e);if(null!=n?.currentVersion)return n.owningSystemUrl||null;let i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;let s=`${e.slice(0,i)}/rest/info`,o=null==t?null:t.signal,{data:a}=await(0,l.A)(s,{query:{f:"json"},responseType:"json",signal:o});return a?.owningSystemUrl||null}function T(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function k(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function D(e){let t=new i.A;for(let n of e.allLayers.concat(e.allTables))c(n)||b(n)||"annotation-feature"===n.type||"dimension-feature"===n.type||("charts"in n&&t.push(n),"subtype-group"===n.type&&t.push(...n.sublayers));return t}function U(e,t){return null}function L(e){return null}function N(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!N(e))return;let n=(e.url,null);n&&(e.url=n)}},73133(e,t,n){const r=(0,n(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});n.d(t,["j",0,r])},16215(e,t,n){n.d(t,{S:()=>l});const r=Symbol("BasemapInstance");function l(e){return"object"==typeof e&&!!e&&r in e}n.d(t,["Y",0,r])},59868(e,t,n){var r=n(94985),l=n(31593),i=n(53930),s=n(68249),o=n(93470);const a=i.A.fromJSON(o.Cb),u=l.A.fromJSON(o.yM),c=r.A.fromJSON(o.WR),y=s.A.fromJSON(o.JZ);i.A.fromJSON(o.nC),l.A.fromJSON(o.HW),r.A.fromJSON(o.b6),n.d(t,["A7",0,u,"Cx",0,c,"Hk",0,y,"UK",0,a])},93470(e,t,n){const r=[252,146,31,255],l={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};n.d(t,["Cb",0,l,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,i])},73838(e,t,n){n.d(t,{rS:()=>j,M9:()=>E,oO:()=>I});var r=n(93637),l=n(77548),i=n(29169),s=n(49186),o=n(13313),a=n(97887),u=n(68548),c=n(58592),y=n(75981),m=n(65365),d=n(94985),p=n(31593),f=n(53930),b=n(68249),h=n(68197),g=n(7762),w=n(90629),S=n(27845),A=n(11506),v=n(39065),C=n(59868),M=n(93470);y.A.fromSimpleMarkerSymbol(C.UK),a.A.fromSimpleLineSymbol(C.A7),m.A.fromSimpleFillSymbol(C.Cx),new u.A({symbolLayers:new g.A([new S.A({material:{color:M.fT},edges:new v.A({size:w.ps,color:new h.A(M.JR)})})])});const T=new a.A({symbolLayers:new g.A([new A.A({material:{color:new h.A([0,0,0])},size:w.ps})])}),k=new m.A({symbolLayers:new g.A([new S.A({outline:{color:new h.A([0,0,0]),size:w.ps}})])});var D=n(33910);const U="#useCIMFallbackSymbology()",L={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};var N=n(59923);function E(e,t,n,l){let i=O(e,{},{context:l,isLabelSymbol:!1});null!=i&&(0,r.sM)(n,i,t)}function I(e,t,n,r){let l=O(e,{},{context:r,isLabelSymbol:!0});null!=l&&(t[n]=l)}function x(e){return(0,D.wk)(e)||e instanceof i.A}function O(e,t,n){if(null==e)return null;let{context:r,isLabelSymbol:h}=n,g=r?.origin;if("web-scene"===g&&!x(e)){let n=function(e,t=L){if(!e)return{symbol:null};let{retainId:n=L.retainId,ignoreDrivers:r=L.ignoreDrivers,hasLabelingContext:l=L.hasLabelingContext,retainCIM:h=L.retainCIM,cimFallbackEnabled:g=L.cimFallbackEnabled}=t,w=null;if((0,D.wk)(e))w=e.clone();else if("web-style"===e.type)w=e.clone();else if("cim"===e.type){let n=e.data?.symbol?.type;switch(n){case"CIMPointSymbol":w=h?e.clone():y.A.fromCIMSymbol(e);break;case"CIMLineSymbol":g&&(w=T.clone(),t?.logWarning?.(U,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":g&&(w=k.clone(),t?.logWarning?.(U,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!w)return{error:new s.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${n||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof p.A)w=a.A.fromSimpleLineSymbol(e);else if(e instanceof f.A)w=y.A.fromSimpleMarkerSymbol(e);else if(e instanceof c.A)w=y.A.fromPictureMarkerSymbol(e);else if(e instanceof d.A)w=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):m.A.fromSimpleFillSymbol(e);else{if(!(e instanceof b.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})};w=l?o.A.fromTextSymbol(e):y.A.fromTextSymbol(e)}return n&&w&&"cim"!==w.type&&(w.id=e.id),r&&"cim"!==w.type&&!(w instanceof i.A)&&w.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:w}}(e,{retainCIM:!0,hasLabelingContext:h});return null==n.symbol?((0,N.bA)(r,e,"Use 3D symbology instead when working with WebScene and SceneView",{error:n.error}),null):n.symbol.write(t,r)}return(0,l.TU)(r?.layer)&&function(e){return"polygon-3d"===e?.type||"line-3d"===e?.type}(e)?((0,N.bA)(r,e,`unsupported in layers of type ${r?.layer?.declaredClass}`),null):("web-map"===g||"portal-item"===g&&!(0,l.TU)(r?.layer))&&x(e)?((0,N.bA)(r,e,"Use 2D symbology and CIMSymbol instead when working with MapView"),null):e.write(t,r)}function j(e,t){return(0,D.Bu)(e,null,t)}},85594(e,t,n){n.d(t,{jg:()=>g,cF:()=>y,bo:()=>m,yA:()=>f,o5:()=>d});var r=n(56507),l=n(49186),i=n(44208),s=n(17676),o=n(84952),a=n(20655),u=n(16405);const c=new Map;function y(e,t,n){return null==e?.styleUrl?null==e?.styleName?Promise.reject(new l.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style")):function(e,t,n){let r,i=null==t.portal?a.A.getDefault():t.portal,s=`${i.url} - ${i.user?.username} - ${e}`,o=c.get(s);if(o)return o;let y=function(e,t,n){return t.load(n).then(()=>{let r=new u.A({disableExtraQuery:!0,query:`owner:${b} AND type:${h} AND typekeywords:"${e}"`});return t.queryItems(r,n)}).then(({results:t})=>{let r=null,i=e.toLowerCase();if(t&&Array.isArray(t))for(let e of t)if(e.typeKeywords?.some(e=>e.toLowerCase()===i)&&e.type===h&&e.owner===b){r=e;break}if(!r)throw new l.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return r.load(n)})}(e,i,n).then(e=>(r=e,e.fetchData())).then(t=>({data:t,baseUrl:r.itemUrl??"",styleName:e}));return c.set(s,y),y}(e.styleName,t,n):async function(e,t){try{return{data:(await f(e,t)).data,baseUrl:(0,o.nM)(e),styleUrl:e}}catch(e){return(0,s.QP)(e),null}}(e.styleUrl,n)}function m(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function d(e,t){for(let n of t)switch(n){case"cim":if(e.cimRef)return{format:n,url:encodeURI(e.cimRef)};break;case"web-gltf-basisu":{let t=p(e,"gltf_basisu");if(t)return{format:n,url:t};break}case"web-gltf":{let t=p(e,"gltf");if(t)return{format:n,url:t};break}case"web":{let t=p(e,"gltf");if(t)return{format:"web-gltf",url:t};if(e.webRef)return{format:n,url:encodeURI(e.webRef)};break}}}function p(e,t){if(!(0,i.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function f(e,t){let n={responseType:"json",query:{f:"json"},...t};return(0,r.A)((0,o.S8)(e),n)}const b="esri_en",h="Style",g="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},27883(e,t,n){n.d(t,{resolveWebStyleSymbol:()=>p});var r=n(61473),l=n(49186),i=n(84952),s=n(20655),o=n(97159),a=n(73838),u=n(98751),c=n(85594),y=n(57212),m=n(33910);const d=["web-gltf","web","cim"];function p(e,t,n){let r=e.name;return null==r?Promise.reject(new l.A("symbolstyleutils:style-symbol-reference-name-missing","Missing name in style symbol reference")):"Esri2DPointSymbolsStyle"===e.styleName?function(e,t,n){let r=c.jg.replaceAll(/\{SymbolName\}/gi,e),l=null==t.portal?s.A.getDefault():t.portal;return(0,c.yA)(r,n).then(e=>{let t=(0,c.bo)(e.data);return(0,a.rS)(t,{portal:l,url:(0,i.An)((0,i.nM)(r)),origin:"portal-item"})})}(r,t,n):(0,c.cF)(e,t,n).then(e=>f(e,r,t,c.o5,n))}async function f(e,t,n,p,f){let b=null==n?.portal?s.A.getDefault():n.portal,h={portal:b,url:(0,i.An)(e.baseUrl)},g=function(e,t){return t.items.find(t=>t.name===e)}(t,e.data);if(!g)throw new l.A("symbolstyleutils:symbol-name-not-found",`The symbol name '${t}' could not be found`,{symbolName:t});let w=f?.acceptedFormats??d,S=p(g,w);if(!S)throw new l.A("symbolstyleutils:symbol-reference-no-accepted-format",`The symbol name '${t}' does not have an accepted format (one of ${w})`,{symbolName:t});let{url:A,format:v}=S,C=(0,o.f)(A,h),M=g.thumbnail?.href??null,T=g.thumbnail?.imageData;(0,r.b5)()&&(C=(0,r.EM)(C)??"",M=(0,r.EM)(M));let k={portal:b,url:(0,i.An)((0,i.nM)(C)),origin:"portal-item"};return(0,c.yA)(C,f).then(r=>{let l="cim"===v?(0,c.bo)(r.data):r.data,i=(0,a.rS)(l,k);if(i&&(0,m.wk)(i)){if(M){let e=(0,o.f)(M,h);i.thumbnail=new y.V({url:e})}else T&&(i.thumbnail=new y.V({url:`data:image/png;base64,${T}`}));e.styleUrl?i.styleOrigin=new u.A({portal:n.portal,styleUrl:e.styleUrl,name:t}):e.styleName&&(i.styleOrigin=new u.A({portal:n.portal,styleName:e.styleName,name:t}))}return i})}},79677(e,t,n){n.d(t,{A:()=>y});var r,l=n(32198),i=n(25482),s=n(88930),o=n(91429),a=(n(98623),n(10184)),u=n(36005),c=n(43937);let y=class extends i.o{static{r=this}static get allTime(){return m}static get empty(){return d}static fromArray(e){return new r({start:null==e[0]?e[0]:new Date(e[0]),end:null==e[1]?e[1]:new Date(e[1])})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null==t.end?null:new Date(t.end)}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null==t.start?null:new Date(t.start)}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,l=e.end?.getTime()??e.end;return t===r&&n===l}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let n=this.start;n&&=(0,s.lL)(n,new a.A({value:1,unit:e}),t);let l=this.end;if(l){let n=(0,s.lL)(l,new a.A({value:1,unit:e}),t);l=l.getTime()===n.getTime()?n:(0,s.S1)(n,1,e,t)}return new r({start:n,end:l})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t,n,l=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,s=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;return s>=l&&s<=i?t=s:l>=s&&l<=o&&(t=l),i>=s&&i<=o?n=i:o>=l&&o<=i&&(n=o),null==t||null==n||isNaN(t)||isNaN(n)?r.empty:new r({start:t===-1/0?null:new Date(t),end:n===1/0?null:new Date(n)})}offset(e,t,n="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let l=new r,{start:i,end:o}=this;return null!=i&&(l.start=(0,s.S1)(i,e,t,n)),null!=o&&(l.end=(0,s.S1)(o,e,t,n)),l}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return m.clone();let t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,n=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:n})}};(0,l.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"end",void 0),(0,l.Cg)([(0,u.w)("end")],y.prototype,"readEnd",null),(0,l.Cg)([(0,c.K)("end")],y.prototype,"writeEnd",null),(0,l.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],y.prototype,"isAllTime",null),(0,l.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],y.prototype,"isEmpty",null),(0,l.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"start",void 0),(0,l.Cg)([(0,u.w)("start")],y.prototype,"readStart",null),(0,l.Cg)([(0,c.K)("start")],y.prototype,"writeStart",null),y=r=(0,l.Cg)([(0,o.$K)("esri.time.TimeExtent")],y);const m=new y,d=new y({start:void 0,end:void 0})},10184(e,t,n){n.d(t,{A:()=>c});var r=n(32198),l=n(69540),i=n(25482),s=n(88930),o=n(91429),a=n(73133),u=n(93223);let c=class extends((0,l.OU)(i.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,u.e)(a.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,r.Cg)([(0,o.$K)("esri.time.TimeInterval")],c)}}]);