@arcgis/core 6.0.0-next.22 → 6.0.0-next.23

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 (217) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/analysis/LineOfSightAnalysis.d.ts +1 -1
  3. package/analysis/LineOfSightAnalysisObserver.d.ts +5 -4
  4. package/analysis/LineOfSightAnalysisTarget.d.ts +4 -4
  5. package/analysis/Viewshed.d.ts +4 -4
  6. package/arcgisGlobal.d.ts +0 -5
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{3c277a0f099d67090d07.js → 02335385b1476fe322eb.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{4911ce62421a6c3320b0.js → 13c64087be3b2985a21b.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8e19629899a5becf8e19.js → 150e7a7bd5df25693da7.js} +1 -1
  11. package/assets/esri/core/workers/chunks/2c0cb214fedb29487eef.js +1 -0
  12. package/assets/esri/core/workers/chunks/{2e096537a3a5555a4a93.js → 4cb751dc8d00bdaeb04c.js} +1 -1
  13. package/assets/esri/core/workers/chunks/517106048980a3cbe072.js +1 -0
  14. package/assets/esri/core/workers/chunks/{d08ff41e2a9bcd58b64a.js → 636cd05abfbdff19029e.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{84940d8e14caf5a27e04.js → 64b360625c68cb863a08.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{814751e705c05099f864.js → 7c75a8ee266c36baa902.js} +1 -1
  17. package/assets/esri/core/workers/chunks/947674b2ca8be65b9bcc.js +1 -0
  18. package/assets/esri/core/workers/chunks/{baed828b7846c0863289.js → 96c4ea9cfa3930f1c3fb.js} +21 -17
  19. package/assets/esri/core/workers/chunks/{8a485130781b49dbf608.js → 9d40786c5ceface786ba.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{a35c69a4751d28c39907.js → 9e7c4eda135c4911b268.js} +1 -1
  21. package/assets/esri/core/workers/chunks/ad96132bc89671e595f3.js +1 -0
  22. package/assets/esri/themes/base/_core.scss +0 -2
  23. package/assets/esri/themes/dark/main.css +1 -1
  24. package/assets/esri/themes/light/main.css +1 -1
  25. package/assets/esri/themes/light/view.css +1 -1
  26. package/chunks/Component.glsl.js +9 -12
  27. package/chunks/DefaultMaterial.glsl.js +4 -5
  28. package/chunks/Path.glsl.js +2 -4
  29. package/chunks/RealisticTree.glsl.js +3 -3
  30. package/chunks/SSAO.glsl.js +1 -2
  31. package/config.js +1 -1
  32. package/geometry/support/clipRay.js +1 -1
  33. package/geometry/support/plane.js +1 -1
  34. package/interfaces.d.ts +0 -55
  35. package/kernel.js +1 -1
  36. package/layers/ElevationLayer.d.ts +6 -2
  37. package/layers/GeoJSONLayer.d.ts +2 -107
  38. package/layers/IntegratedMeshLayer.js +1 -1
  39. package/layers/SceneLayer.d.ts +40 -16
  40. package/layers/ViewshedLayer.d.ts +10 -4
  41. package/layers/WMSLayer.d.ts +2 -69
  42. package/layers/mixins/TemporalLayer.d.ts +70 -48
  43. package/layers/mixins/TiledImagery.d.ts +0 -11
  44. package/package.json +2 -2
  45. package/popup/content.d.ts +38 -1
  46. package/popup/content.js +1 -1
  47. package/smartMapping/popup/support/clusterUtils.js +1 -1
  48. package/smartMapping/popup/support/utils.js +2 -2
  49. package/smartMapping/renderers/size.js +1 -1
  50. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  51. package/support/timeUtils.d.ts +11 -0
  52. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  53. package/views/2d/layers/features/Processor.js +1 -1
  54. package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
  55. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  56. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  57. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  58. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  59. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  60. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  61. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  62. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  63. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  64. package/views/2d/layers/features/processor/AggregateStrategy.js +1 -1
  65. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  66. package/views/2d/layers/features/processor/bins/BinAdapter.js +1 -1
  67. package/views/2d/layers/features/processor/bins/BinLevelState.js +1 -1
  68. package/views/2d/layers/features/processor/clusters/ClusterAdapter.js +1 -1
  69. package/views/2d/layers/features/processor/clusters/ClusterLevelState.js +1 -1
  70. package/views/2d/layers/features/processor/tracks/TrackAdapter.js +1 -1
  71. package/views/2d/layers/features/processor/tracks/TrackLevelState.js +1 -1
  72. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  73. package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
  74. package/views/2d/layers/features/sources/strategies/chunks/ByReferenceTileSourceChunk.js +1 -1
  75. package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
  76. package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
  77. package/views/2d/layers/features/sources/strategies/chunks/ParquetSnapshotSourceChunk.js +1 -1
  78. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  79. package/views/2d/layers/features/sources/strategies/chunks/StreamSourceChunk.js +1 -1
  80. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  81. package/views/2d/layers/features/support/FeatureFilterEvaluator.js +1 -1
  82. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  83. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  84. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  85. package/views/3d/environment/SunLighting.d.ts +0 -1
  86. package/views/3d/environment/SunLighting.js +1 -1
  87. package/views/3d/environment/VirtualLighting.d.ts +0 -1
  88. package/views/3d/environment/VirtualLighting.js +1 -1
  89. package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
  90. package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
  91. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  92. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  93. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  94. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -2
  95. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -2
  96. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +9 -4
  97. package/views/3d/webgl-engine/effects/snowcover/applySnow.glsl.js +18 -0
  98. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  99. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  100. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  101. package/views/3d/webgl-engine/materials/internal/worldSizedRibbonLineIntersectionUtils.js +2 -0
  102. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  103. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  104. package/views/layers/LineOfSightLayerView.d.ts +2 -2
  105. package/views/layers/ViewshedLayerView.d.ts +2 -1
  106. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  107. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  108. package/widgets/Locate.d.ts +1 -1
  109. package/widgets/Search/SearchViewModel.js +1 -1
  110. package/widgets/Search/support/layerSearchUtils.js +1 -1
  111. package/widgets/Sketch/SketchViewModel.js +1 -1
  112. package/widgets/Sketch/support/PluginManager.js +1 -1
  113. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  114. package/widgets/support/GeolocationPositioning.d.ts +1 -2
  115. package/assets/esri/core/workers/chunks/42045cf46497828cd3c0.js +0 -1
  116. package/assets/esri/core/workers/chunks/576248e9ae2654569420.js +0 -1
  117. package/assets/esri/core/workers/chunks/6059853ef3b6cddbe869.js +0 -1
  118. package/assets/esri/core/workers/chunks/a679207c3458cc0b1fec.js +0 -1
  119. package/assets/esri/themes/base/widgets/_DirectionalPad.scss +0 -85
  120. package/assets/esri/widgets/DirectionalPad/t9n/messages.ar.json +0 -1
  121. package/assets/esri/widgets/DirectionalPad/t9n/messages.bg.json +0 -1
  122. package/assets/esri/widgets/DirectionalPad/t9n/messages.bs.json +0 -1
  123. package/assets/esri/widgets/DirectionalPad/t9n/messages.ca.json +0 -1
  124. package/assets/esri/widgets/DirectionalPad/t9n/messages.cs.json +0 -1
  125. package/assets/esri/widgets/DirectionalPad/t9n/messages.da.json +0 -1
  126. package/assets/esri/widgets/DirectionalPad/t9n/messages.de.json +0 -1
  127. package/assets/esri/widgets/DirectionalPad/t9n/messages.el.json +0 -1
  128. package/assets/esri/widgets/DirectionalPad/t9n/messages.en.json +0 -1
  129. package/assets/esri/widgets/DirectionalPad/t9n/messages.es.json +0 -1
  130. package/assets/esri/widgets/DirectionalPad/t9n/messages.et.json +0 -1
  131. package/assets/esri/widgets/DirectionalPad/t9n/messages.fi.json +0 -1
  132. package/assets/esri/widgets/DirectionalPad/t9n/messages.fr.json +0 -1
  133. package/assets/esri/widgets/DirectionalPad/t9n/messages.he.json +0 -1
  134. package/assets/esri/widgets/DirectionalPad/t9n/messages.hr.json +0 -1
  135. package/assets/esri/widgets/DirectionalPad/t9n/messages.hu.json +0 -1
  136. package/assets/esri/widgets/DirectionalPad/t9n/messages.id.json +0 -1
  137. package/assets/esri/widgets/DirectionalPad/t9n/messages.it.json +0 -1
  138. package/assets/esri/widgets/DirectionalPad/t9n/messages.ja.json +0 -1
  139. package/assets/esri/widgets/DirectionalPad/t9n/messages.ko.json +0 -1
  140. package/assets/esri/widgets/DirectionalPad/t9n/messages.lt.json +0 -1
  141. package/assets/esri/widgets/DirectionalPad/t9n/messages.lv.json +0 -1
  142. package/assets/esri/widgets/DirectionalPad/t9n/messages.nl.json +0 -1
  143. package/assets/esri/widgets/DirectionalPad/t9n/messages.no.json +0 -1
  144. package/assets/esri/widgets/DirectionalPad/t9n/messages.pl.json +0 -1
  145. package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-BR.json +0 -1
  146. package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-PT.json +0 -1
  147. package/assets/esri/widgets/DirectionalPad/t9n/messages.ro.json +0 -1
  148. package/assets/esri/widgets/DirectionalPad/t9n/messages.ru.json +0 -1
  149. package/assets/esri/widgets/DirectionalPad/t9n/messages.sk.json +0 -1
  150. package/assets/esri/widgets/DirectionalPad/t9n/messages.sl.json +0 -1
  151. package/assets/esri/widgets/DirectionalPad/t9n/messages.sr.json +0 -1
  152. package/assets/esri/widgets/DirectionalPad/t9n/messages.sv.json +0 -1
  153. package/assets/esri/widgets/DirectionalPad/t9n/messages.th.json +0 -1
  154. package/assets/esri/widgets/DirectionalPad/t9n/messages.tr.json +0 -1
  155. package/assets/esri/widgets/DirectionalPad/t9n/messages.uk.json +0 -1
  156. package/assets/esri/widgets/DirectionalPad/t9n/messages.vi.json +0 -1
  157. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-CN.json +0 -1
  158. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-HK.json +0 -1
  159. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-TW.json +0 -1
  160. package/assets/esri/widgets/Track/t9n/messages.ar.json +0 -1
  161. package/assets/esri/widgets/Track/t9n/messages.bg.json +0 -1
  162. package/assets/esri/widgets/Track/t9n/messages.bs.json +0 -1
  163. package/assets/esri/widgets/Track/t9n/messages.ca.json +0 -1
  164. package/assets/esri/widgets/Track/t9n/messages.cs.json +0 -1
  165. package/assets/esri/widgets/Track/t9n/messages.da.json +0 -1
  166. package/assets/esri/widgets/Track/t9n/messages.de.json +0 -1
  167. package/assets/esri/widgets/Track/t9n/messages.el.json +0 -1
  168. package/assets/esri/widgets/Track/t9n/messages.en.json +0 -1
  169. package/assets/esri/widgets/Track/t9n/messages.es.json +0 -1
  170. package/assets/esri/widgets/Track/t9n/messages.et.json +0 -1
  171. package/assets/esri/widgets/Track/t9n/messages.fi.json +0 -1
  172. package/assets/esri/widgets/Track/t9n/messages.fr.json +0 -1
  173. package/assets/esri/widgets/Track/t9n/messages.he.json +0 -1
  174. package/assets/esri/widgets/Track/t9n/messages.hr.json +0 -1
  175. package/assets/esri/widgets/Track/t9n/messages.hu.json +0 -1
  176. package/assets/esri/widgets/Track/t9n/messages.id.json +0 -1
  177. package/assets/esri/widgets/Track/t9n/messages.it.json +0 -1
  178. package/assets/esri/widgets/Track/t9n/messages.ja.json +0 -1
  179. package/assets/esri/widgets/Track/t9n/messages.ko.json +0 -1
  180. package/assets/esri/widgets/Track/t9n/messages.lt.json +0 -1
  181. package/assets/esri/widgets/Track/t9n/messages.lv.json +0 -1
  182. package/assets/esri/widgets/Track/t9n/messages.nl.json +0 -1
  183. package/assets/esri/widgets/Track/t9n/messages.no.json +0 -1
  184. package/assets/esri/widgets/Track/t9n/messages.pl.json +0 -1
  185. package/assets/esri/widgets/Track/t9n/messages.pt-BR.json +0 -1
  186. package/assets/esri/widgets/Track/t9n/messages.pt-PT.json +0 -1
  187. package/assets/esri/widgets/Track/t9n/messages.ro.json +0 -1
  188. package/assets/esri/widgets/Track/t9n/messages.ru.json +0 -1
  189. package/assets/esri/widgets/Track/t9n/messages.sk.json +0 -1
  190. package/assets/esri/widgets/Track/t9n/messages.sl.json +0 -1
  191. package/assets/esri/widgets/Track/t9n/messages.sr.json +0 -1
  192. package/assets/esri/widgets/Track/t9n/messages.sv.json +0 -1
  193. package/assets/esri/widgets/Track/t9n/messages.th.json +0 -1
  194. package/assets/esri/widgets/Track/t9n/messages.tr.json +0 -1
  195. package/assets/esri/widgets/Track/t9n/messages.uk.json +0 -1
  196. package/assets/esri/widgets/Track/t9n/messages.vi.json +0 -1
  197. package/assets/esri/widgets/Track/t9n/messages.zh-CN.json +0 -1
  198. package/assets/esri/widgets/Track/t9n/messages.zh-HK.json +0 -1
  199. package/assets/esri/widgets/Track/t9n/messages.zh-TW.json +0 -1
  200. package/views/2d/layers/features/FeatureSpatialIndex.js +0 -2
  201. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +0 -2
  202. package/views/3d/webgl-engine/effects/snowcover/SnowCover.glsl.js +0 -12
  203. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +0 -85
  204. package/widgets/DirectionalPad/DirectionalPadViewModel.js +0 -2
  205. package/widgets/DirectionalPad/VisibleElements.d.ts +0 -40
  206. package/widgets/DirectionalPad/VisibleElements.js +0 -2
  207. package/widgets/DirectionalPad/constants.js +0 -2
  208. package/widgets/DirectionalPad/css.js +0 -2
  209. package/widgets/DirectionalPad/types.d.ts +0 -27
  210. package/widgets/DirectionalPad/utils.js +0 -2
  211. package/widgets/DirectionalPad.d.ts +0 -156
  212. package/widgets/DirectionalPad.js +0 -2
  213. package/widgets/Track/TrackViewModel.d.ts +0 -131
  214. package/widgets/Track/TrackViewModel.js +0 -2
  215. package/widgets/Track/types.d.ts +0 -6
  216. package/widgets/Track.d.ts +0 -278
  217. package/widgets/Track.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5141],{5141(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(34711),l(71020),l(72722),l(96336),l(53466),l(72824),l(54154),l(9169),l(12696),l(77695),l(68785),l(28390),l(96777),l(62602),l(20598),l(22393),l(59469),l(56529),l(51406),l(89435),l(58614),l(20693),l(33079),l(31821),l(63761),l(27832),l(84368),l(14113);var s=l(28491)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5141],{5141(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(34711),l(71020),l(72722),l(96336),l(53466),l(72824),l(54154),l(9169),l(12696),l(77695),l(68785),l(28390),l(96777),l(62602),l(20598),l(22393),l(59469),l(56529),l(51406),l(89435),l(58614),l(20693),l(33079),l(31821),l(63761),l(24111),l(84368),l(14113);var s=l(28491)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{37838(t,e,o){o.d(e,{A:()=>Ht});var i,r=o(32198),s=o(5757),n=o(69540),l=o(7762),a=o(25482),p=o(4718),d=o(53966),u=o(17676),c=o(91429),y=o(78888),h=o(30524),m=o(51447),g=o(89893),f=o(84424);let v=i=class extends f.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,p.o8)(this.outFields):null})}};(0,r.Cg)([(0,c.MZ)()],v.prototype,"creator",void 0),(0,r.Cg)([(0,c.MZ)()],v.prototype,"destroyer",void 0),(0,r.Cg)([(0,c.MZ)()],v.prototype,"outFields",void 0),(0,r.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],v.prototype,"type",void 0),v=i=(0,r.Cg)([(0,c.$K)("esri.popup.content.CustomContent")],v);const w=v;var C;let M=C=class extends a.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new C({title:this.title,expression:this.expression})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],M.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],M.prototype,"expression",void 0),(0,r.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],M.prototype,"returnType",void 0),M=C=(0,r.Cg)([(0,c.$K)("esri.popup.ElementExpressionInfo")],M);const x=M;var F;let Z=F=class extends f.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new F({expressionInfo:this.expressionInfo?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:x,json:{write:!0}})],Z.prototype,"expressionInfo",void 0),(0,r.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],Z.prototype,"type",void 0),Z=F=(0,r.Cg)([(0,c.$K)("esri.popup.content.ExpressionContent")],Z);const I=Z;var j=o(66159);let A=class extends a.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"altText",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"caption",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],A.prototype,"type",void 0),A=(0,r.Cg)([(0,c.$K)("esri.popup.content.mixins.MediaInfo")],A);const N=A;var b,S=o(68197),_=o(69622);let R=b=class extends _.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new b({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,r.Cg)([(0,c.MZ)()],R.prototype,"color",void 0),(0,r.Cg)([(0,c.MZ)()],R.prototype,"fieldName",void 0),(0,r.Cg)([(0,c.MZ)()],R.prototype,"tooltip",void 0),(0,r.Cg)([(0,c.MZ)()],R.prototype,"value",void 0),R=b=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ChartMediaInfoValueSeries")],R);const O=R;var T;let $=T=class extends a.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new T({colors:(0,p.o8)(this.colors),fields:(0,p.o8)(this.fields),normalizeField:this.normalizeField,series:(0,p.o8)(this.series),tooltipField:this.tooltipField})}};(0,r.Cg)([(0,c.MZ)({type:[S.A],json:{type:[[y.jz]],write:!0}})],$.prototype,"colors",void 0),(0,r.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],$.prototype,"fields",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],$.prototype,"normalizeField",void 0),(0,r.Cg)([(0,c.MZ)({type:[O],json:{read:!1}})],$.prototype,"series",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],$.prototype,"tooltipField",void 0),$=T=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ChartMediaInfoValue")],$);const K=$;let E=class extends N{constructor(t){super(t),this.type=null,this.value=void 0}};(0,r.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],E.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:K,json:{write:{isRequired:!0}}})],E.prototype,"value",void 0),E=(0,r.Cg)([(0,c.$K)("esri.popup.content.mixins.ChartMediaInfo")],E);const B=E,k=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var J;let L=J=class extends B{constructor(t){super(t),this.type="bar-chart"}clone(){return new J({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:k.write,isRequired:!0}}})],L.prototype,"type",void 0),L=J=(0,r.Cg)([(0,c.$K)("esri.popup.content.BarChartMediaInfo")],L);const q=L;var D;let U=D=class extends B{constructor(t){super(t),this.type="column-chart"}clone(){return new D({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:k.write,isRequired:!0}}})],U.prototype,"type",void 0),U=D=(0,r.Cg)([(0,c.$K)("esri.popup.content.ColumnChartMediaInfo")],U);const W=U;var z;let P=z=class extends a.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new z({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],P.prototype,"linkURL",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],P.prototype,"sourceURL",void 0),P=z=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ImageMediaInfoValue")],P);const G=P;var V;let H=V=class extends N{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new V({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],H.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],H.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:G,json:{write:{isRequired:!0}}})],H.prototype,"value",void 0),H=V=(0,r.Cg)([(0,c.$K)("esri.popup.content.ImageMediaInfo")],H);const X=H;var Q;let Y=Q=class extends B{constructor(t){super(t),this.type="line-chart"}clone(){return new Q({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:k.write,isRequired:!0}}})],Y.prototype,"type",void 0),Y=Q=(0,r.Cg)([(0,c.$K)("esri.popup.content.LineChartMediaInfo")],Y);const tt=Y;var et;let ot=et=class extends B{constructor(t){super(t),this.type="pie-chart"}clone(){return new et({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:k.write,isRequired:!0}}})],ot.prototype,"type",void 0),ot=et=(0,r.Cg)([(0,c.$K)("esri.popup.content.PieChartMediaInfo")],ot);const it=ot,rt={base:N,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":q,"column-chart":W,"line-chart":tt,"pie-chart":it,image:X}};var st,nt=o(36005),lt=o(43937);let at=st=class extends f.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?X.fromJSON(t):"barchart"===t.type?q.fromJSON(t):"columnchart"===t.type?W.fromJSON(t):"linechart"===t.type?tt.fromJSON(t):"piechart"===t.type?it.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new st((0,p.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r.Cg)([(0,c.MZ)()],at.prototype,"activeMediaInfoIndex",void 0),(0,r.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],at.prototype,"attributes",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],at.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({types:[rt]})],at.prototype,"mediaInfos",void 0),(0,r.Cg)([(0,nt.w)("mediaInfos")],at.prototype,"readMediaInfos",null),(0,r.Cg)([(0,lt.K)("mediaInfos")],at.prototype,"writeMediaInfos",null),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],at.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],at.prototype,"type",void 0),at=st=(0,r.Cg)([(0,c.$K)("esri.popup.content.MediaContent")],at);const pt=at;var dt=o(49852);let ut=class extends((0,n.OU)(f.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ut.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:!0}})],ut.prototype,"displayCount",void 0),(0,r.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],ut.prototype,"displayType",void 0),(0,r.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],ut.prototype,"orderByFields",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:{isRequired:!0}}})],ut.prototype,"relationshipId",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ut.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ut.prototype,"type",void 0),ut=(0,r.Cg)([(0,c.$K)("esri.popup.content.RelationshipContent")],ut);const ct=ut;var yt;let ht=yt=class extends f.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new yt({text:this.text})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ht.prototype,"text",void 0),(0,r.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ht.prototype,"type",void 0),ht=yt=(0,r.Cg)([(0,c.$K)("esri.popup.content.TextContent")],ht);const mt=ht;var gt=o(83342),ft=o(93223);let vt=class extends((0,n.OU)(f.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],vt.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:!0}})],vt.prototype,"displayCount",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],vt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:[gt.A],json:{write:!0}})],vt.prototype,"associationTypes",void 0),(0,r.Cg)([(0,ft.e)({utilityNetworkAssociations:"utility-network-associations"})],vt.prototype,"type",void 0),vt=(0,r.Cg)([(0,c.$K)("esri.popup.content.UtilityNetworkAssociationsContent")],vt);const wt=vt;(0,m.uW)(d.A.getLogger("esri.popup.content"),"esri.popup.content",{replacement:"Individual content module imports",version:"5.2",warnOnce:!0});const Ct=g.A,Mt=I,xt=j.A,Ft={base:null,key:"type",typeMap:{attachment:Ct,media:pt,text:mt,expression:Mt,field:xt,relationship:ct,utilityNetworkAssociations:wt}},Zt={base:null,key:"type",typeMap:{attachment:Ct,media:pt,text:mt,expression:Mt,field:xt,relationship:ct}};var It,jt=o(93705),At=o(41227);let Nt=It=class extends a.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new It({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Nt.prototype,"returnTopmostRaster",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Nt.prototype,"showNoDataRecords",void 0),Nt=It=(0,r.Cg)([(0,c.$K)("esri.popup.LayerOptions")],Nt);const bt=Nt;var St;let _t=St=class extends a.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new St({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,p.o8)(this.orderByFields):null})}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],_t.prototype,"showRelatedRecords",void 0),(0,r.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],_t.prototype,"orderByFields",void 0),_t=St=(0,r.Cg)([(0,c.$K)("esri.popup.RelatedRecordsInfo")],_t);const Rt=_t;var Ot=o(4902);let Tt=class extends((0,Ot.s)(_.A)){constructor(t){super(t),this.active=!1,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}_internalSetClassName(t){return this._set("className",t),this}get className(){return this._get("className")??null}set className(t){(0,m.Lx)(d.A.getLogger(this),"className",{replacement:"icon",version:"5.1",warnOnce:!0}),this._set("className",t)}};(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"active",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"className",null),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"disabled",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"icon",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"id",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"indicator",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"visible",void 0),Tt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionBase")],Tt);const $t=Tt;var Kt;let Et=Kt=class extends $t{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Kt({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})._internalSetClassName(this.className)}};(0,r.Cg)([(0,c.MZ)()],Et.prototype,"image",void 0),Et=Kt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionButton")],Et);const Bt=Et;var kt;let Jt=kt=class extends $t{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new kt({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})._internalSetClassName(this.className)}};(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"image",void 0),(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"value",void 0),Jt=kt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionToggle")],Jt);const Lt=Jt;var qt;const Dt="relationships/",Ut="expression/",Wt=l.A.ofType({key:"type",defaultKeyValue:"button",base:$t,typeMap:{button:Bt,toggle:Lt}}),zt={base:f.A,key:"type",typeMap:{media:pt,custom:w,text:mt,attachments:g.A,fields:j.A,expression:I,relationship:ct,utilityNetworkAssociations:wt}},Pt=new Set(["attachments","fields","media","text","expression","relationship"]),Gt=new Set([...Pt,"utility-network-associations"]);let Vt=class extends((0,n.OU)(a.o)){static{qt=s.P}constructor(t){super(t),this[qt]=!0,this.actions=null,this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}get content(){return this._get("content")??""}set content(t){this._set("content",t)}castContent(t){return Array.isArray(t)?t.map(t=>(0,y.aq)(zt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,u.$X)(t)?t:(d.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){let{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){let{content:r}=this,s=Array.isArray(r)?r:null,{writeFieldFormat:n,...l}=i||{};if(t){let o=s?s.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{let e=t.toJSON(l);return i&&(e.visible=!1),e})}if(s)for(let t of s)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){let i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,h._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){let o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"==typeof t?e.description=t:Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Pt.has(t.type):Gt.has(t.type)).map(t=>t?.toJSON(o)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))}_writeFieldsContent(t,e,o){let i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;let r=e.fieldInfos;if(Array.isArray(r))for(let t of i){let e=r.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:r.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||=!0}_writeRelationshipContent(t,e){let o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;let o=(0,p.o8)(t.mediaInfos);e.mediaInfos=Array.isArray(e.mediaInfos)?[...e.mediaInfos,...o]:o}_readPopupInfoElements(t,e,o){let i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(!o.mediaInfos&&e&&!i.mediaInfos&&(o.mediaInfos=e,i.mediaInfos=!0),pt.fromJSON(o)):"text"===o.type?(!o.text&&t&&!i.description&&(o.text=t,i.description=!0),mt.fromJSON(o)):"attachments"===o.type?g.A.fromJSON(o):"fields"===o.type?j.A.fromJSON(o):"expression"===o.type?I.fromJSON(o):"relationship"===o.type?ct.fromJSON(o):"utilityNetworkAssociations"===o.type?wt.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){let{field:e,order:o}=t;if(!e?.startsWith(Dt))return null;let i=e.replace(Dt,"").split("/");if(2!==i.length)return null;let r=parseInt(i[0],10),s=i[1];return!Number.isNaN(r)&&s?ct.fromJSON({relationshipId:r,orderByFields:[{field:s,order:o}]}):null}_toFieldOrderJSON(t,e){let{order:o,field:i}=t;return{field:`${Dt}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){let r=[];t?r.push(new mt({text:t})):r.push(new j.A),Array.isArray(e)&&e.length&&r.push(pt.fromJSON({mediaInfos:e})),o&&r.push(g.A.fromJSON({displayType:"auto"}));let{showRelatedRecords:s,orderByFields:n}=i;return s&&n?.length&&n.forEach(t=>{let e=this._toRelationshipContent(t);e&&r.push(e)}),r.length?r:t}_getContentElementFields(t){let e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){let e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){let{caption:e,title:o,value:i}=t,{fields:r,normalizeField:s,tooltipField:n,sourceURL:l,linkURL:a}=i||{},p=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return s&&p.push(s),n&&p.push(n),p}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,o,i){i&&await Promise.all(i.map(i=>(0,h.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(Dt)||t.startsWith(Ut))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){let{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,h.nw)(t).filter(t=>!(t.startsWith(Dt)||t.startsWith(Ut)))}};(0,r.Cg)([(0,c.MZ)({type:Wt})],Vt.prototype,"actions",void 0),(0,r.Cg)([(0,c.MZ)()],Vt.prototype,"content",null),(0,r.Cg)([(0,c.wg)("content")],Vt.prototype,"castContent",null),(0,r.Cg)([(0,nt.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Vt.prototype,"readContent",null),(0,r.Cg)([(0,lt.K)("web-scene","content",{popupElements:{type:l.A.ofType(Zt)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(rt)},description:{type:String},relatedRecordsInfo:{type:Rt}})],Vt.prototype,"writeWebSceneContent",null),(0,r.Cg)([(0,lt.K)("content",{popupElements:{type:l.A.ofType(Ft)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(rt)},description:{type:String},relatedRecordsInfo:{type:Rt}})],Vt.prototype,"writeWebMapContent",null),(0,r.Cg)([(0,c.MZ)({type:[jt.A],json:{write:!0}})],Vt.prototype,"expressionInfos",void 0),(0,r.Cg)([(0,c.MZ)({type:[At.A]})],Vt.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,lt.K)("fieldInfos")],Vt.prototype,"writeFieldInfos",null),(0,r.Cg)([(0,c.MZ)({type:bt})],Vt.prototype,"layerOptions",void 0),(0,r.Cg)([(0,lt.K)("layerOptions")],Vt.prototype,"writeLayerOptions",null),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Vt.prototype,"lastEditInfoEnabled",void 0),(0,r.Cg)([(0,c.MZ)()],Vt.prototype,"outFields",void 0),(0,r.Cg)([(0,c.MZ)()],Vt.prototype,"overwriteActions",void 0),(0,r.Cg)([(0,c.MZ)()],Vt.prototype,"returnGeometry",void 0),(0,r.Cg)([(0,c.MZ)({json:{type:String}})],Vt.prototype,"title",void 0),(0,r.Cg)([(0,lt.K)("title")],Vt.prototype,"writeTitle",null),Vt=(0,r.Cg)([(0,c.$K)("esri.PopupTemplate")],Vt);const Ht=Vt},60950(t,e,o){o.d(e,{E_:()=>r});const i=Symbol("popupProvider");function r(t){return function(t){return!!t&&i in t}(t)?t[i]:null}o.d(e,["ym",0,i])},39663(t,e,o){o.d(e,{$P:()=>J,iu:()=>x,HK:()=>F,PK:()=>O,fg:()=>M,qH:()=>Z});var i=o(32198),r=o(10107),s=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,s.$)("esri.layers.support.FieldFormat")],a);const p=a,d="auto";let u=class extends p{constructor(t){super(t),this.dateStyle=null,this.hour12=d,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],u.prototype,"dateStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:d,write:!0}})],u.prototype,"hour12",void 0),(0,i.Cg)([(0,r.MZ)({type:["long","short"],json:{write:!0}})],u.prototype,"month",void 0),(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],u.prototype,"timeStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["date-time"]})],u.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["numeric"],json:{write:!0}})],u.prototype,"year",void 0),u=(0,i.Cg)([(0,s.$)("esri.layers.support.DateTimeFieldFormat")],u);const c=u;var y=o(30524),h=o(78888);const m={min:0,max:20},g="decimal",f="auto";let v=class extends p{constructor(t){super(t),this.maximumFractionDigits=2,this.minimumFractionDigits=0,this.style=g,this.type="number",this.useGrouping=f}};(0,i.Cg)([(0,r.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:2,write:!0}})],v.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:0,write:!0}})],v.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:["decimal"],nonNullable:!0,json:{default:g,write:!0}})],v.prototype,"style",void 0),(0,i.Cg)([(0,r.MZ)({type:["number"]})],v.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:f,write:!0}})],v.prototype,"useGrouping",void 0),v=(0,i.Cg)([(0,s.$)("esri.layers.support.NumberFieldFormat")],v);const w=v;var C=o(68780);const M={base:p,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":c,number:w}};function x(t,e){let{format:o}=t;return e&&Z(e)?o?F(o,e):J(e,{hour12:"always",useGrouping:"always"}):null}function F(t,e){let{dateFormat:o}=t;if(!e)return o?A(t):j(t);if(!Z(e))return;let i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return I(t);case"single":case"double":return j(t);case"date":case"timestamp-offset":return o?A(t):J(e,i);case"date-only":return o?function(t){return new c({dateStyle:N(t),year:R(t),month:S(t)})}(t):J(e);case"time-only":return o?function(t){return new c({timeStyle:_(t),hour12:b(t)})}(t):J(e,i)}}function Z(t){return(0,y.Jl)(t)&&((0,y.WA)(t)||(0,y.vE)(t)||(0,y.zD)(t)||(0,y.OH)(t)||(0,y.Ah)(t))}function I(t){return new w({useGrouping:t.digitSeparator?"always":"never"})}function j(t){let e=I(t),{places:o}=t;return e.minimumFractionDigits=o??0,e.maximumFractionDigits=o??2,e}function A(t){return new c({dateStyle:N(t),year:R(t),month:S(t),timeStyle:_(t),hour12:b(t)})}function N(t){let{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function b(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function S(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function _(t){let{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function R(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function O(t,e){let o="number"===t.type,i="date-time"===t.type;if(!e)return o?$(t):i?K(t):null;if(Z(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?T(t):null;case"single":case"double":return o?$(t):null;case"date":case"timestamp-offset":return i?K(t):null;case"date-only":return i?function(t){let e,o=E(t),i="numeric"===t.year?"year":null,r=k(t);return o?e=o:i&&r?e=`${r}-${i}`:i&&(e=i),e?new C.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e,o=B(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new C.A({dateFormat:e}):null}(t):null}}function T(t){return new C.A({digitSeparator:"never"!==t.useGrouping})}function $(t){let e=T(t);return e.places=t.maximumFractionDigits,e}function K(t){let e,o=E(t),i=B(t),r="never"===t.hour12?"24":null,s="numeric"===t.year?"year":null,n=k(t);return o&&i&&r?e=`${o}-${i}-${r}`:o&&i?e=`${o}-${i}`:o?e=o:s&&n?e=`${n}-${s}`:s&&(e=s),e?new C.A({dateFormat:e}):null}function E(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function B(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function k(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function J(t,e){if(!Z(t))return;let o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new w({minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:o});case"single":case"double":return new w({minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:o});case"date":case"timestamp-offset":return new c({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new c({dateStyle:"short"});case"time-only":return new c({timeStyle:"short",hour12:i})}}},93705(t,e,o){var i,r=o(32198),s=o(25482),n=o(91429);let l=i=class extends s.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.popup.ExpressionInfo")],l);const a=l;o.d(e,["A",0,a])},41227(t,e,o){var i=o(32198),r=o(69540),s=o(66552),n=o(25482),l=o(91429),a=o(39663),p=o(68780),d=o(36005),u=o(93223);let c=class extends((0,r.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,a.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,a.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?p.A.fromJSON(t):null}clone(){let t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:a.fg,json:{write:{overridePolicy(t,e,o){let{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],c.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:p.A,json:{write:!0}})],c.prototype,"format",null),(0,i.Cg)([(0,d.w)("format")],c.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,i.Cg)([(0,u.e)(new s.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=(0,i.Cg)([(0,l.$K)("esri.popup.FieldInfo")],c);const y=c;o.d(e,["A",0,y])},89893(t,e,o){o.d(e,{A:()=>y});var i=o(32198),r=o(69540),s=o(91429),n=o(84424),l=o(66552),a=o(25482);const p=new l.J({asc:"ascending",desc:"descending"});let d=class extends((0,r.OU)(a.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,i.Cg)([(0,s.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],d.prototype,"order",void 0),d=(0,i.Cg)([(0,s.$K)("esri.popup.support.AttachmentsOrderByInfo")],d);const u=d;let c=class extends((0,r.OU)(n.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],c.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,s.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:["auto","preview","list","carousel"],json:{write:!0}})],c.prototype,"displayType",void 0),(0,i.Cg)([(0,s.MZ)({type:[u],json:{write:!0}})],c.prototype,"orderByFields",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.popup.content.AttachmentsContent")],c);const y=c},84424(t,e,o){var i=o(32198),r=o(25482),s=o(91429);let n=class extends r.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],n.prototype,"type",void 0),n=(0,i.Cg)([(0,s.$K)("esri.popup.content.Content")],n);const l=n;o.d(e,["A",0,l])},66159(t,e,o){var i,r=o(32198),s=o(4718),n=o(91429),l=o(41227),a=o(84424);let p=i=class extends a.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,s.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],p.prototype,"attributes",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:[l.A],json:{write:!0}})],p.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],p.prototype,"type",void 0),p=i=(0,r.Cg)([(0,n.$K)("esri.popup.content.FieldsContent")],p);const d=p;o.d(e,["A",0,d])},68780(t,e,o){var i=o(32198),r=o(69540),s=o(25482),n=o(91429),l=o(78888),a=o(97770),p=o(93223);let d=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,p.e)(a._v)],d.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],d.prototype,"places",void 0),d=(0,i.Cg)([(0,n.$K)("esri.popup.support.FieldInfoFormat")],d);const u=d;o.d(e,["A",0,u])},49852(t,e,o){var i,r=o(32198),s=o(25482),n=o(91429);let l=i=class extends s.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,r.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l;o.d(e,["A",0,a])},83342(t,e,o){var i=o(32198),r=o(69540),s=o(25482),n=o(91429),l=o(78888);let a=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,i.Cg)([(0,n.$K)("esri.popup.support.UtilityNetworkAssociationType")],a);const p=a;o.d(e,["A",0,p])},78553(t,e,o){o.d(e,{D:()=>s,p:()=>r});var i=o(78888);function r(t){let e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){let e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4426],{28491(e,t,r){r.d(t,{b:()=>R});var i=r(32680),n=r(49255),o=r(34711),a=r(71020),s=r(72722),l=r(96336),c=r(53466),u=r(72824),d=r(54154),h=r(9169),f=r(12696),m=r(77695),p=r(68785),v=r(28390),g=r(96777),x=r(62602),_=r(20598),b=r(22393),y=r(59469),w=r(56529),M=r(51406),T=r(89435),S=r(58614),C=r(20693),A=r(33079),E=r(31821),O=r(63761),I=r(27832),P=r(84368),D=r(14113);function R(e){let t=new D.N5,{attributes:r,vertex:R,fragment:F,varyings:B}=t,{output:N,normalType:z,offsetBackfaces:L,snowCover:H,pbrMode:V,textureAlphaPremultiplied:U,instancedDoublePrecision:j,hasVertexColors:k,hasVertexTangents:G,hasColorTexture:W,hasNormalTexture:$,hasNormalTextureTransform:Z,hasColorTextureTransform:q}=e;if((0,C.N)(R,e),r.add("position","vec3"),R.inputs.add("position",()=>"position"),B.add("vpos","vec3",{invariant:!0}),t.include(T.A,e),t.include(s.B,e),t.include(d.Ge,e),t.include(M.q2,e),!(0,n._o)(N))return t.include(h.E,e),t;t.include(M.Sx,e),t.include(M.MU,e),t.include(M.O1,e),t.include(M.QM,e),(0,C.y)(R,e),t.include(l.Y,e),t.include(a.d);let Y=0===z||1===z;return Y&&L&&t.include(i.M),t.include(m.J,e),t.include(u.Mh,e),B.add("vPositionLocal","vec3"),t.include(c.U,e),t.include(f.F,e),t.include(j?w.oD:w.rA,e),R.main.add(E.H`
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4426],{28491(e,t,r){r.d(t,{b:()=>R});var i=r(32680),n=r(49255),o=r(34711),a=r(71020),s=r(72722),l=r(96336),c=r(53466),u=r(72824),d=r(54154),h=r(9169),f=r(12696),m=r(77695),p=r(68785),v=r(28390),g=r(96777),x=r(62602),_=r(20598),b=r(22393),y=r(59469),w=r(56529),M=r(51406),T=r(89435),S=r(58614),C=r(20693),A=r(33079),E=r(31821),O=r(63761),I=r(24111),P=r(84368),D=r(14113);function R(e){let t=new D.N5,{attributes:r,vertex:R,fragment:F,varyings:B}=t,{output:N,normalType:z,offsetBackfaces:L,snowCover:H,pbrMode:V,textureAlphaPremultiplied:U,instancedDoublePrecision:j,hasVertexColors:k,hasVertexTangents:G,hasColorTexture:W,hasNormalTexture:$,hasNormalTextureTransform:Z,hasColorTextureTransform:q}=e;if((0,C.N)(R,e),r.add("position","vec3"),R.inputs.add("position",()=>"position"),B.add("vpos","vec3",{invariant:!0}),t.include(T.A,e),t.include(s.B,e),t.include(d.Ge,e),t.include(M.q2,e),!(0,n._o)(N))return t.include(h.E,e),t;t.include(M.Sx,e),t.include(M.MU,e),t.include(M.O1,e),t.include(M.QM,e),(0,C.y)(R,e),t.include(l.Y,e),t.include(a.d);let Y=0===z||1===z;return Y&&L&&t.include(i.M),t.include(m.J,e),t.include(u.Mh,e),B.add("vPositionLocal","vec3"),t.include(c.U,e),t.include(f.F,e),t.include(j?w.oD:w.rA,e),R.main.add(E.H`
2
2
  forwardDefaultMaterialExternalColor();
3
3
 
4
4
  vpos = getVertexInLocalOriginSpace();
@@ -21,7 +21,7 @@
21
21
  gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
22
22
  }
23
23
  forwardLinearDepthToReadShadow();
24
- `),F.include(v.k,e),F.include(p.n,e),t.include(S.SS,e),F.include(o.zM,e),t.include(P.D,e),(0,C.y)(F,e),F.uniforms.add(R.uniforms.get("localOrigin"),new A.t("ambient",e=>e.ambient),new A.t("diffuse",e=>e.diffuse)),W&&F.uniforms.add(new O.N("tex",e=>e.texture)),t.include(y._Z,e),F.include(b.c,e),t.include(x.r,e),F.include(I.b,e),F.include(_.n,e),(0,v.a)(F),F.uniforms.add(g.VW,g.VK).main.add(E.H`
24
+ `),F.include(v.k,e),F.include(p.n,e),t.include(S.SS,e),F.include(o.zM,e),t.include(P.D,e),(0,C.y)(F,e),F.uniforms.add(R.uniforms.get("localOrigin"),new A.t("ambient",e=>e.ambient),new A.t("diffuse",e=>e.diffuse)),W&&F.uniforms.add(new O.N("tex",e=>e.texture)),t.include(y._Z,e),F.include(b.c,e),t.include(x.r,e),F.include(I.Y,e),F.include(_.n,e),(0,v.a)(F),F.uniforms.add(g.VW,g.VK).main.add(E.H`
25
25
  discardBySlice(vpos);
26
26
  ${W?E.H`
27
27
  vec4 texColor = texture(tex, ${q?"colorUV":"vuv0"});
@@ -49,10 +49,9 @@
49
49
  ${$?`mat3 tangentSpace = computeTangentSpace(${G?"normal":"normal, vpos, vuv0"});\n vec3 shadingNormal = computeTextureNormal(tangentSpace, ${Z?"normalUV":"vuv0"});`:"vec3 shadingNormal = normal;"}
50
50
 
51
51
  ${(0,E.If)(H,E.H`
52
- float snow = getSnow(normal, upNormal);
53
- albedo = mix(albedo, vec3(1), snow);
54
- shadingNormal = mix(shadingNormal, normal, snow);
55
- ssao = mix(ssao, 1.0, snow);`)}
52
+ float snow = applySnow(normal, upNormal, albedo, ssao);
53
+ shadingNormal = mix(shadingNormal, normal, snow);
54
+ `)}
56
55
 
57
56
  vec3 additionalLight = ssao * mainLightIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor;
58
57
  ${(0,E.If)((1===V||2===V)&&H,"applySnowToMRR(snow);")}
@@ -60,7 +59,7 @@
60
59
  vec3 shadedColor = evaluateSceneLighting(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight, viewDirection, upNormal);
61
60
  vec4 finalColor = vec4(shadedColor, opacity_);
62
61
  outputColorHighlightOLID(applySlice(finalColor, vpos), albedo ${(0,E.If)(H,", snow")});
63
- `),t}const F=Object.freeze(Object.defineProperty({__proto__:null,build:R},Symbol.toStringTag,{value:"Module"}));r.d(t,["D",0,F])},57323(e,t,r){r.d(t,{b:()=>I});var i=r(32680),n=r(49255),o=r(34711),a=r(71020),s=r(72722),l=r(96336),c=r(53466),u=r(54154),d=r(9169),h=r(12696),f=r(68785),m=r(28390),p=r(96777),v=r(20598),g=r(22393),x=r(59469),_=r(56529),b=r(51406),y=r(89435),w=r(58614),M=r(20693),T=r(33079),S=r(31821),C=r(63761),A=r(27832),E=r(84368),O=r(14113);function I(e){let t=new O.N5,{attributes:r,vertex:I,fragment:P,varyings:D}=t,{output:R,offsetBackfaces:F,pbrMode:B,snowCover:N}=e,z=1===B||2===B;if((0,M.N)(I,e),r.add("position","vec3"),I.inputs.add("position",()=>"position"),D.add("vpos","vec3",{invariant:!0}),t.include(y.A,e),t.include(s.B,e),t.include(u.Ge,e),t.include(b.q2,e),!(0,n._o)(R))return t.include(d.E,e),t;t.include(b.MU,e),(0,M.y)(t.vertex,e),t.include(l.Y,e),t.include(a.d),F&&t.include(i.M),D.add("vNormalWorld","vec3"),D.add("localvpos","vec3",{invariant:!0}),t.include(c.U,e),t.include(h.F,e),t.include(e.instancedDoublePrecision?_.oD:_.rA,e),I.main.add(S.H`
62
+ `),t}const F=Object.freeze(Object.defineProperty({__proto__:null,build:R},Symbol.toStringTag,{value:"Module"}));r.d(t,["D",0,F])},57323(e,t,r){r.d(t,{b:()=>I});var i=r(32680),n=r(49255),o=r(34711),a=r(71020),s=r(72722),l=r(96336),c=r(53466),u=r(54154),d=r(9169),h=r(12696),f=r(68785),m=r(28390),p=r(96777),v=r(20598),g=r(22393),x=r(59469),_=r(56529),b=r(51406),y=r(89435),w=r(58614),M=r(20693),T=r(33079),S=r(31821),C=r(63761),A=r(24111),E=r(84368),O=r(14113);function I(e){let t=new O.N5,{attributes:r,vertex:I,fragment:P,varyings:D}=t,{output:R,offsetBackfaces:F,pbrMode:B,snowCover:N}=e,z=1===B||2===B;if((0,M.N)(I,e),r.add("position","vec3"),I.inputs.add("position",()=>"position"),D.add("vpos","vec3",{invariant:!0}),t.include(y.A,e),t.include(s.B,e),t.include(u.Ge,e),t.include(b.q2,e),!(0,n._o)(R))return t.include(d.E,e),t;t.include(b.MU,e),(0,M.y)(t.vertex,e),t.include(l.Y,e),t.include(a.d),F&&t.include(i.M),D.add("vNormalWorld","vec3"),D.add("localvpos","vec3",{invariant:!0}),t.include(c.U,e),t.include(h.F,e),t.include(e.instancedDoublePrecision?_.oD:_.rA,e),I.main.add(S.H`
64
63
  forwardDefaultMaterialExternalColor();
65
64
 
66
65
  vpos = getVertexInLocalOriginSpace();
@@ -78,7 +77,7 @@
78
77
 
79
78
  gl_Position = shouldCullByOpacity() ? vec4(1e38, 1e38, 1e38, 1.0) :
80
79
  ${(0,S.If)(F,"offsetBackfacingClipPosition(basePosition, vpos, vNormalWorld, cameraPosition);","basePosition;")}
81
- `);let{hasColorTexture:L,hasColorTextureTransform:H}=e;return P.include(m.k,e),P.include(f.n,e),t.include(w.SS,e),P.include(o.zM,e),t.include(E.D,e),(0,M.y)(P,e),(0,m.a)(P),P.uniforms.add(p.t_,p.VW,I.uniforms.get("localOrigin"),I.uniforms.get("view"),new T.t("ambient",e=>e.ambient),new T.t("diffuse",e=>e.diffuse)),L&&P.uniforms.add(new C.N("tex",e=>e.texture)),t.include(x._Z,e),P.include(g.c,e),P.include(A.b,e),P.include(v.n,e),P.uniforms.add(p.VK).main.add(S.H`
80
+ `);let{hasColorTexture:L,hasColorTextureTransform:H}=e;return P.include(m.k,e),P.include(f.n,e),t.include(w.SS,e),P.include(o.zM,e),t.include(E.D,e),(0,M.y)(P,e),(0,m.a)(P),P.uniforms.add(p.t_,p.VW,I.uniforms.get("localOrigin"),I.uniforms.get("view"),new T.t("ambient",e=>e.ambient),new T.t("diffuse",e=>e.diffuse)),L&&P.uniforms.add(new C.N("tex",e=>e.texture)),t.include(x._Z,e),P.include(g.c,e),P.include(A.Y,e),P.include(v.n,e),P.uniforms.add(p.VK).main.add(S.H`
82
81
  discardBySlice(vpos);
83
82
  vec4 texColor = ${L?`texture(tex, ${H?"colorUV":"vuv0"})`:" vec4(1.0)"};
84
83
  ${(0,S.If)(L,`${(0,S.If)(e.textureAlphaPremultiplied,"texColor.rgb /= texColor.a;")}\n discardOrAdjustAlpha(texColor);`)}
@@ -102,7 +101,7 @@
102
101
  vec3 viewDirection = normalize(vpos - cameraPosition);
103
102
  vec3 upNormal = getLocalUp(vpos, localOrigin);
104
103
 
105
- ${(0,S.If)(N,"vec3 faceNormal = screenDerivativeNormal(vpos);\n float snow = getRealisticTreeSnow(faceNormal, shadingNormal, upNormal);\n albedo = mix(albedo, vec3(1), snow);")}
104
+ ${(0,S.If)(N,"vec3 faceNormal = screenDerivativeNormal(vpos);\n float snow = applyRealisticTreeSnow(faceNormal, shadingNormal, upNormal, albedo, ssao);\n ")}
106
105
 
107
106
  ${S.H`albedo *= 1.2;
108
107
  vec3 viewForward = vec3(view[0][2], view[1][2], view[2][2]);
@@ -169,8 +168,7 @@ return fallOffFunction(vv, vn, 0.1);
169
168
 
170
169
  vec3 fres = normalize(2.0 * texture(rnm, uv * rnmScale).xyz - 1.0);
171
170
 
172
- // note: the factor 2.0 should not be necessary, but makes ssao much nicer.
173
- // bug or deviation from CE somewhere else?
171
+ // note: the factor 2.0 should not be necessary, but makes ssao much nicer. bug or deviation from CE somewhere else?
174
172
  float ps = projScale / (2.0 * currentPixelPos.z * zScale.x + zScale.y);
175
173
 
176
174
  for(int i = 0; i < ${f.H.int(16)}; ++i) {
@@ -1095,15 +1093,21 @@ return max(c.x, max(c.y, c.z));
1095
1093
  vec3 hiD = hiA + hiB;
1096
1094
  vec3 loD = loA + loB;
1097
1095
  return dpDummy * hiD + loD;
1098
- }`)}},20693(e,t,r){r.d(t,{y:()=>f,N:()=>m});var i=r(58083),n=r(9093),o=r(35522),a=r(51850),s=r(45324),l=r(23205),c=r(40710),u=r(58029),d=r(74333);class h extends d.n{constructor(e,t,r){super(e,"mat4",2,(i,n,o)=>i.setUniformMatrix4fv(e,t(n,o),r))}}function f(e,t){t.instancedDoublePrecision?e.constants.add("cameraPosition","vec3",a.uY):e.uniforms.add(new c.W("cameraPosition",({origin:e},{camera:t})=>(0,o.hZ)(g,t.viewInverseTransposeMatrix[3]-e[0],t.viewInverseTransposeMatrix[7]-e[1],t.viewInverseTransposeMatrix[11]-e[2])))}function m(e,t){t.instancedDoublePrecision?e.uniforms.add(s.rS,new u.F("view",e=>(0,i.Tl)(v,e.camera.viewMatrix,p(e))),new l.d("localOrigin",e=>p(e))):e.uniforms.add(s.rS,new h("view",(e,t)=>(0,i.Tl)(v,t.camera.viewMatrix,e.origin)),new c.W("localOrigin",e=>e.origin))}function p({camera:e}){return(0,o.hZ)(g,e.viewInverseTransposeMatrix[3],e.viewInverseTransposeMatrix[7],e.viewInverseTransposeMatrix[11])}const v=(0,n.vt)(),g=(0,a.vt)()},45324(e,t,r){var i=r(37585),n=r(48163),o=r(77108),a=r(23205),s=r(14314),l=r(33094),c=r(58029);new c.F("view",({camera:e})=>e.viewMatrix),new c.F("inverseViewMatrix",({camera:e})=>e.inverseViewMatrix);const u=new c.F("proj",({camera:e})=>e.projectionMatrix),d=(new c.F("inverseProjectionMatrix",({camera:e})=>e.inverseProjectionMatrix),new a.d("cameraPosition",({camera:e})=>e.eye),new c.F("viewNormal",({camera:e})=>e.viewInverseTransposeMatrix)),h=new o.E("nearFar",({camera:e})=>e.nearFar),f=(new s.I("viewport",({camera:e})=>e.fullViewport),new l.U("pixelRatio",e=>e.camera.pixelRatio/e.overlayStretch),new l.U("screenPixelSizePerDistance",({camera:e})=>e.screenPixelSizePerDistance),new l.U("worldToScreenPerDistanceRatio",({camera:e})=>1/e.screenPixelSizePerDistance),new l.U("renderPixelSizePerDistance",({camera:e})=>e.renderPixelSizePerDistance),new l.U("metersPerRenderUnit",e=>e.metersPerRenderUnit),new o.E("inverseScreenSize",({camera:e})=>(0,i.hZ)(f,1/e.fullWidth,1/e.fullHeight)),new o.E("pixelToNDC",({camera:e})=>(0,i.hZ)(f,2/e.fullViewport[2],2/e.fullViewport[3])),(0,n.vt)());r.d(t,["HO",0,d,"Y$",0,h,"rS",0,u])},77108(e,t,r){r.d(t,{E:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec2",0,(i,n)=>i.setUniform2fv(e,t(n),r))}}},68259(e,t,r){r.d(t,{t:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec2",2,(i,n,o,a)=>i.setUniform2fv(e,t(n,o,a),r))}}},47286(e,t,r){r.d(t,{G:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec2",1,(i,n,o)=>i.setUniform2fv(e,t(n,o),r))}}},23205(e,t,r){r.d(t,{d:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec3",0,(i,n)=>i.setUniform3fv(e,t(n),r))}}},40710(e,t,r){r.d(t,{W:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec3",2,(i,n,o,a)=>i.setUniform3fv(e,t(n,o,a),r))}}},33079(e,t,r){r.d(t,{t:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec3",1,(i,n,o)=>i.setUniform3fv(e,t(n,o),r))}}},14314(e,t,r){r.d(t,{I:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec4",0,(i,n)=>i.setUniform4fv(e,t(n),r))}}},71988(e,t,r){r.d(t,{E:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec4",1,(i,n,o)=>i.setUniform4fv(e,t(n,o),r))}}},33094(e,t,r){r.d(t,{U:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"float",0,(i,n)=>i.setUniform1f(e,t(n),r))}}},28421(e,t,r){r.d(t,{J:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"float",2,(i,n,o)=>i.setUniform1f(e,t(n,o),r))}}},20304(e,t,r){r.d(t,{m:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"float",1,(i,n,o)=>i.setUniform1f(e,t(n,o),r))}}},35818(e,t,r){r.d(t,{W:()=>n});var i=r(74333);class n extends i.n{constructor(e,t){super(e,"int",0,(r,i)=>r.setUniform1i(e,t(i)))}}},35644(e,t,r){r.d(t,{k:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"mat3",1,(i,n,o)=>i.setUniformMatrix3fv(e,t(n,o),r))}}},58029(e,t,r){r.d(t,{F:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"mat4",0,(i,n)=>i.setUniformMatrix4fv(e,t(n),r))}}},12791(e,t,r){r.d(t,{x:()=>n});var i=r(74333);class n extends i.n{constructor(e,t){super(e,"sampler2D",0,(r,i)=>r.bindTexture(e,t(i)))}}},15976(e,t,r){r.d(t,{o:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"sampler2D",2,(i,n,o)=>i.bindTexture(e,t(n,o),r?.(n,o)))}}},63761(e,t,r){r.d(t,{N:()=>n});var i=r(74333);class n extends i.n{constructor(e,t){super(e,"sampler2D",1,(r,i,n)=>r.bindTexture(e,t(i,n)))}}},31821(e,t,r){r.d(t,{If:()=>n});const i=(e,...t)=>{let r="";for(let i=0;i<t.length;i++)r+=e[i]+t[i];return r+=e[e.length-1],r};function n(e,t,r=""){return e?t:r}i.int=e=>e.toFixed(),i.uint=e=>`${Math.max(0,e).toFixed()}u`,i.hexuint=e=>`0x${Math.round(Math.max(0,e)).toString(16)}u`,i.float=e=>e.toPrecision(8),r.d(t,["H",0,i])},13840(e,t,r){r.d(t,{r:()=>i});class i{constructor(e,t){this._module=e,this._load=t}get(){return this._module}async reload(){return this._module=await this._load(),this._module}}},42958(e,t,r){r.d(t,{w:()=>p});var i=r(32198),n=r(69622),o=r(53966),a=r(91429),s=r(63907),l=r(85079),c=r(74038);new c._("position",3,s.pe.FLOAT,0,12);const u=[new c._("position",2,s.pe.FLOAT,0,8)];(0,l.Xk)(u),new c._("position",2,s.pe.FLOAT,0,12),new c._("uv0",2,s.pe.HALF_FLOAT,8,12),r(44208);var d=r(26857),h=r(94656);class f{constructor(e,t,r){this._context=e,this.locations=r,this._textures=new Map,this.source=(0,h.en)()?t:null,t.attributeNames.forEach(e=>{r.has(e)||o.A.getLogger("esri.views.3d.webgl-engine.lib.Program").error(`Missing VertexAttributeLocation for ${e} used in shader`)}),this._glProgram=e.programCache.get(t.generate("vertex",!0),t.generate("fragment",!0),r),this._glProgram.stop=()=>{throw Error("Wrapped _glProgram used directly")},this.bind=t.generateBind(this),this.bindPass=t.generateBindPass(this),this.bindDraw=t.generateBindDraw(this)}get glName(){return this._glProgram.glName}get hasTransformFeedbackVaryings(){return this._glProgram.hasTransformFeedbackVaryings}get compiled(){return this._glProgram.compiled}setUniform1b(e,t){this._glProgram.setUniform1i(e,+!!t)}setUniform1i(e,t){this._glProgram.setUniform1i(e,t)}setUniform1f(e,t,r){this._glProgram.setUniform1f(e,t,r)}setUniform2fv(e,t,r){this._glProgram.setUniform2fv(e,t,r)}setUniform3fv(e,t,r){this._glProgram.setUniform3fv(e,t,r)}setUniform4fv(e,t,r){this._glProgram.setUniform4fv(e,t,r)}setUniformMatrix3fv(e,t,r){this._glProgram.setUniformMatrix3fv(e,t,!1,r)}setUniformMatrix4fv(e,t,r){this._glProgram.setUniformMatrix4fv(e,t,!1,r)}setUniformMatrices4fv(e,t,r){this._glProgram.setUniformMatrices4fv(e,t,!1,r)}setUniform1fv(e,t,r){this._glProgram.setUniform1fv(e,t,r)}setUniform1iv(e,t){this._glProgram.setUniform1iv(e,t)}setUniform2iv(e,t){this._glProgram.setUniform2iv(e,t)}setUniform3iv(e,t){this._glProgram.setUniform3iv(e,t)}setUniform4iv(e,t){this._glProgram.setUniform4iv(e,t)}assertCompatibleVertexAttributeLocations(e,t){if(d.b.ENABLE_OPTIMIZATIONS)return;let r=e.locations;if(t){let e=new Map(r);t.forEach((t,i)=>e.set(i,r.size+t)),r=e}r.size!==this.locations.size&&console.error(`VertexAttributeLocations are incompatible: ${Array.from(r.keys())} vs ${Array.from(this.locations.keys())}`),this.locations.forEach((e,t)=>{r.get(t)!==e&&console.error(`VertexAttributeLocations are incompatible: Program has ${t} at position ${e}, VAO has it at position ${r.get(t)}.`)})}stop(){this._textures.clear()}bindTexture(e,t,r){if(!t?.glName){let r=`Texture sampler ${e} in ${this._context.debugBoundTechnique} has no given Texture in ${Error().stack}`;(0,h.en)()&&console.error(r),t=this._context.emptyTexture}let i=this._ensureTextureUnit(e,t);this._context.useProgram(this);let n=i.unit;this.setUniform1i(e,n),this._context.bindTexture(t,n,!1,r)}_ensureTextureUnit(e,t){let r=this._textures.get(e);return null==r?(r={texture:t,unit:this._textures.size},this._textures.set(e,r)):r.texture=t,r}}var m=r(90644);let p=class extends n.A{constructor(e,t,r){super({}),this._context=e,this._configuration=t,this.primitiveType=s.WR.TRIANGLES,this._unused=!0,this.ignoreUnused=!1,this.key=t.key,this.locations=(0,l.Xk)(r??u),this._pipeline=this.initializePipeline(t),this.reload=async r=>{if(r&&await this.shader.reload(),!this.key.equals(t.key))return void o.A.getLogger("esri.views.3d.webgl.ShaderTechnique").warn(`Configuration was changed after construction, cannot reload shader for ${this.declaredClass}.`);let i=this.shader.get().build(t);i.debugName=this.declaredClass,this._program=new f(e.rctx,i,this.locations),this._pipeline=this.initializePipeline(t)}}initialize(){let e=this.shader.get().build(this._configuration);e.debugName=this.declaredClass,this._program=new f(this._context.rctx,e,this.locations)}get program(){return this._unused=!1,this._program}get compiled(){return this._unused=!1,this.program.compiled}get unused(){return this._unused}ensureAttributeLocations(e){this.program.assertCompatibleVertexAttributeLocations(e)}getPipeline(e,t,r){return this._pipeline}initializePipeline(e){return(0,m.Ey)({blending:m.RC,colorWrite:m.kn})}};p=(0,i.Cg)([(0,a.$K)("esri.views.3d.webgl-engine.core.shaderTechnique.ShaderTechnique")],p)},51976(e,t,r){r.d(t,{K:()=>s,W:()=>l});var i=r(49186),n=r(4576);class o{constructor(e){this._bits=[...e]}equals(e){return(0,n.aI)(this._bits,e.bits)}get code(){return this._code??=String.fromCharCode(...this._bits),this._code}get bits(){return this._bits}}var a=r(65786);class s extends a.Y{constructor(){super(),this._parameterBits=this._parameterBits?.map(()=>0)??[],this._parameterNames??=[]}get key(){return this._key??=new o(this._parameterBits),this._key}decode(e=this.key){let t=this._parameterBits;this._parameterBits=[...e.bits];let r=this._parameterNames.map(e=>` ${e}: ${this[e]}`).join("\n");return this._parameterBits=t,r}}function l(e={}){return(t,r)=>{t.hasOwnProperty("_parameterNames")||Object.defineProperty(t,"_parameterNames",{value:t._parameterNames?.slice()??[],configurable:!0,writable:!0}),t.hasOwnProperty("_parameterBits")||Object.defineProperty(t,"_parameterBits",{value:t._parameterBits?.slice()??[0],configurable:!0,writable:!0}),t._parameterNames.push(r);let n=e.count||2,o=Math.ceil(Math.log2(n)),a=t._parameterBits,s=0;for(;a[s]+o>16;)s++,s>=a.length&&a.push(0);let l=a[s],c=(1<<o)-1<<l;a[s]+=o,e.count?Object.defineProperty(t,r,{get(){return(this._parameterBits[s]&c)>>l},set(t){let n=this._parameterBits[s];if((n&c)>>l!==t){if(this._key=null,this._parameterBits[s]=n&~c|+t<<l&c,"number"!=typeof t)throw new i.A("internal:invalid-shader-configuration",`Configuration value for ${r} must be a number, got ${typeof t}`);if(null==e.count)throw new i.A("internal:invalid-shader-configuration",`Configuration value for ${r} must provide a count option`)}}}):Object.defineProperty(t,r,{get(){return!!((this._parameterBits[s]&c)>>l)},set(e){let t=this._parameterBits[s];if(!!((t&c)>>l)!==e&&(this._key=null,this._parameterBits[s]=t&~c|+e<<l,"boolean"!=typeof e))throw new i.A("internal:invalid-shader-configurationx",`Configuration value for ${r} must be boolean, got ${typeof e}`)}})}}},16943(e,t,r){r.d(t,{E:()=>n});var i=r(44208);function n(){return!!(0,i.A)("enable-feature:objectAndLayerId-rendering")}},27832(e,t,r){r.d(t,{b:()=>a});var i=r(23292),n=r(33094),o=r(31821);function a(e,t){t.snowCover&&(e.uniforms.add(new n.U("snowCover",e=>e.snowCover)).code.add(o.H`float getSnow(vec3 normal, vec3 groundNormal) {
1099
- return smoothstep(0.5, 0.55, dot(normal, groundNormal)) * snowCover;
1096
+ }`)}},20693(e,t,r){r.d(t,{y:()=>f,N:()=>m});var i=r(58083),n=r(9093),o=r(35522),a=r(51850),s=r(45324),l=r(23205),c=r(40710),u=r(58029),d=r(74333);class h extends d.n{constructor(e,t,r){super(e,"mat4",2,(i,n,o)=>i.setUniformMatrix4fv(e,t(n,o),r))}}function f(e,t){t.instancedDoublePrecision?e.constants.add("cameraPosition","vec3",a.uY):e.uniforms.add(new c.W("cameraPosition",({origin:e},{camera:t})=>(0,o.hZ)(g,t.viewInverseTransposeMatrix[3]-e[0],t.viewInverseTransposeMatrix[7]-e[1],t.viewInverseTransposeMatrix[11]-e[2])))}function m(e,t){t.instancedDoublePrecision?e.uniforms.add(s.rS,new u.F("view",e=>(0,i.Tl)(v,e.camera.viewMatrix,p(e))),new l.d("localOrigin",e=>p(e))):e.uniforms.add(s.rS,new h("view",(e,t)=>(0,i.Tl)(v,t.camera.viewMatrix,e.origin)),new c.W("localOrigin",e=>e.origin))}function p({camera:e}){return(0,o.hZ)(g,e.viewInverseTransposeMatrix[3],e.viewInverseTransposeMatrix[7],e.viewInverseTransposeMatrix[11])}const v=(0,n.vt)(),g=(0,a.vt)()},45324(e,t,r){var i=r(37585),n=r(48163),o=r(77108),a=r(23205),s=r(14314),l=r(33094),c=r(58029);new c.F("view",({camera:e})=>e.viewMatrix),new c.F("inverseViewMatrix",({camera:e})=>e.inverseViewMatrix);const u=new c.F("proj",({camera:e})=>e.projectionMatrix),d=(new c.F("inverseProjectionMatrix",({camera:e})=>e.inverseProjectionMatrix),new a.d("cameraPosition",({camera:e})=>e.eye),new c.F("viewNormal",({camera:e})=>e.viewInverseTransposeMatrix)),h=new o.E("nearFar",({camera:e})=>e.nearFar),f=(new s.I("viewport",({camera:e})=>e.fullViewport),new l.U("pixelRatio",e=>e.camera.pixelRatio/e.overlayStretch),new l.U("screenPixelSizePerDistance",({camera:e})=>e.screenPixelSizePerDistance),new l.U("worldToScreenPerDistanceRatio",({camera:e})=>1/e.screenPixelSizePerDistance),new l.U("renderPixelSizePerDistance",({camera:e})=>e.renderPixelSizePerDistance),new l.U("metersPerRenderUnit",e=>e.metersPerRenderUnit),new o.E("inverseScreenSize",({camera:e})=>(0,i.hZ)(f,1/e.fullWidth,1/e.fullHeight)),new o.E("pixelToNDC",({camera:e})=>(0,i.hZ)(f,2/e.fullViewport[2],2/e.fullViewport[3])),(0,n.vt)());r.d(t,["HO",0,d,"Y$",0,h,"rS",0,u])},77108(e,t,r){r.d(t,{E:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec2",0,(i,n)=>i.setUniform2fv(e,t(n),r))}}},68259(e,t,r){r.d(t,{t:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec2",2,(i,n,o,a)=>i.setUniform2fv(e,t(n,o,a),r))}}},47286(e,t,r){r.d(t,{G:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec2",1,(i,n,o)=>i.setUniform2fv(e,t(n,o),r))}}},23205(e,t,r){r.d(t,{d:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec3",0,(i,n)=>i.setUniform3fv(e,t(n),r))}}},40710(e,t,r){r.d(t,{W:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec3",2,(i,n,o,a)=>i.setUniform3fv(e,t(n,o,a),r))}}},33079(e,t,r){r.d(t,{t:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec3",1,(i,n,o)=>i.setUniform3fv(e,t(n,o),r))}}},14314(e,t,r){r.d(t,{I:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec4",0,(i,n)=>i.setUniform4fv(e,t(n),r))}}},71988(e,t,r){r.d(t,{E:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"vec4",1,(i,n,o)=>i.setUniform4fv(e,t(n,o),r))}}},33094(e,t,r){r.d(t,{U:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"float",0,(i,n)=>i.setUniform1f(e,t(n),r))}}},28421(e,t,r){r.d(t,{J:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"float",2,(i,n,o)=>i.setUniform1f(e,t(n,o),r))}}},20304(e,t,r){r.d(t,{m:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"float",1,(i,n,o)=>i.setUniform1f(e,t(n,o),r))}}},35818(e,t,r){r.d(t,{W:()=>n});var i=r(74333);class n extends i.n{constructor(e,t){super(e,"int",0,(r,i)=>r.setUniform1i(e,t(i)))}}},35644(e,t,r){r.d(t,{k:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"mat3",1,(i,n,o)=>i.setUniformMatrix3fv(e,t(n,o),r))}}},58029(e,t,r){r.d(t,{F:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"mat4",0,(i,n)=>i.setUniformMatrix4fv(e,t(n),r))}}},12791(e,t,r){r.d(t,{x:()=>n});var i=r(74333);class n extends i.n{constructor(e,t){super(e,"sampler2D",0,(r,i)=>r.bindTexture(e,t(i)))}}},15976(e,t,r){r.d(t,{o:()=>n});var i=r(74333);class n extends i.n{constructor(e,t,r){super(e,"sampler2D",2,(i,n,o)=>i.bindTexture(e,t(n,o),r?.(n,o)))}}},63761(e,t,r){r.d(t,{N:()=>n});var i=r(74333);class n extends i.n{constructor(e,t){super(e,"sampler2D",1,(r,i,n)=>r.bindTexture(e,t(i,n)))}}},31821(e,t,r){r.d(t,{If:()=>n});const i=(e,...t)=>{let r="";for(let i=0;i<t.length;i++)r+=e[i]+t[i];return r+=e[e.length-1],r};function n(e,t,r=""){return e?t:r}i.int=e=>e.toFixed(),i.uint=e=>`${Math.max(0,e).toFixed()}u`,i.hexuint=e=>`0x${Math.round(Math.max(0,e)).toString(16)}u`,i.float=e=>e.toPrecision(8),r.d(t,["H",0,i])},13840(e,t,r){r.d(t,{r:()=>i});class i{constructor(e,t){this._module=e,this._load=t}get(){return this._module}async reload(){return this._module=await this._load(),this._module}}},42958(e,t,r){r.d(t,{w:()=>p});var i=r(32198),n=r(69622),o=r(53966),a=r(91429),s=r(63907),l=r(85079),c=r(74038);new c._("position",3,s.pe.FLOAT,0,12);const u=[new c._("position",2,s.pe.FLOAT,0,8)];(0,l.Xk)(u),new c._("position",2,s.pe.FLOAT,0,12),new c._("uv0",2,s.pe.HALF_FLOAT,8,12),r(44208);var d=r(26857),h=r(94656);class f{constructor(e,t,r){this._context=e,this.locations=r,this._textures=new Map,this.source=(0,h.en)()?t:null,t.attributeNames.forEach(e=>{r.has(e)||o.A.getLogger("esri.views.3d.webgl-engine.lib.Program").error(`Missing VertexAttributeLocation for ${e} used in shader`)}),this._glProgram=e.programCache.get(t.generate("vertex",!0),t.generate("fragment",!0),r),this._glProgram.stop=()=>{throw Error("Wrapped _glProgram used directly")},this.bind=t.generateBind(this),this.bindPass=t.generateBindPass(this),this.bindDraw=t.generateBindDraw(this)}get glName(){return this._glProgram.glName}get hasTransformFeedbackVaryings(){return this._glProgram.hasTransformFeedbackVaryings}get compiled(){return this._glProgram.compiled}setUniform1b(e,t){this._glProgram.setUniform1i(e,+!!t)}setUniform1i(e,t){this._glProgram.setUniform1i(e,t)}setUniform1f(e,t,r){this._glProgram.setUniform1f(e,t,r)}setUniform2fv(e,t,r){this._glProgram.setUniform2fv(e,t,r)}setUniform3fv(e,t,r){this._glProgram.setUniform3fv(e,t,r)}setUniform4fv(e,t,r){this._glProgram.setUniform4fv(e,t,r)}setUniformMatrix3fv(e,t,r){this._glProgram.setUniformMatrix3fv(e,t,!1,r)}setUniformMatrix4fv(e,t,r){this._glProgram.setUniformMatrix4fv(e,t,!1,r)}setUniformMatrices4fv(e,t,r){this._glProgram.setUniformMatrices4fv(e,t,!1,r)}setUniform1fv(e,t,r){this._glProgram.setUniform1fv(e,t,r)}setUniform1iv(e,t){this._glProgram.setUniform1iv(e,t)}setUniform2iv(e,t){this._glProgram.setUniform2iv(e,t)}setUniform3iv(e,t){this._glProgram.setUniform3iv(e,t)}setUniform4iv(e,t){this._glProgram.setUniform4iv(e,t)}assertCompatibleVertexAttributeLocations(e,t){if(d.b.ENABLE_OPTIMIZATIONS)return;let r=e.locations;if(t){let e=new Map(r);t.forEach((t,i)=>e.set(i,r.size+t)),r=e}r.size!==this.locations.size&&console.error(`VertexAttributeLocations are incompatible: ${Array.from(r.keys())} vs ${Array.from(this.locations.keys())}`),this.locations.forEach((e,t)=>{r.get(t)!==e&&console.error(`VertexAttributeLocations are incompatible: Program has ${t} at position ${e}, VAO has it at position ${r.get(t)}.`)})}stop(){this._textures.clear()}bindTexture(e,t,r){if(!t?.glName){let r=`Texture sampler ${e} in ${this._context.debugBoundTechnique} has no given Texture in ${Error().stack}`;(0,h.en)()&&console.error(r),t=this._context.emptyTexture}let i=this._ensureTextureUnit(e,t);this._context.useProgram(this);let n=i.unit;this.setUniform1i(e,n),this._context.bindTexture(t,n,!1,r)}_ensureTextureUnit(e,t){let r=this._textures.get(e);return null==r?(r={texture:t,unit:this._textures.size},this._textures.set(e,r)):r.texture=t,r}}var m=r(90644);let p=class extends n.A{constructor(e,t,r){super({}),this._context=e,this._configuration=t,this.primitiveType=s.WR.TRIANGLES,this._unused=!0,this.ignoreUnused=!1,this.key=t.key,this.locations=(0,l.Xk)(r??u),this._pipeline=this.initializePipeline(t),this.reload=async r=>{if(r&&await this.shader.reload(),!this.key.equals(t.key))return void o.A.getLogger("esri.views.3d.webgl.ShaderTechnique").warn(`Configuration was changed after construction, cannot reload shader for ${this.declaredClass}.`);let i=this.shader.get().build(t);i.debugName=this.declaredClass,this._program=new f(e.rctx,i,this.locations),this._pipeline=this.initializePipeline(t)}}initialize(){let e=this.shader.get().build(this._configuration);e.debugName=this.declaredClass,this._program=new f(this._context.rctx,e,this.locations)}get program(){return this._unused=!1,this._program}get compiled(){return this._unused=!1,this.program.compiled}get unused(){return this._unused}ensureAttributeLocations(e){this.program.assertCompatibleVertexAttributeLocations(e)}getPipeline(e,t,r){return this._pipeline}initializePipeline(e){return(0,m.Ey)({blending:m.RC,colorWrite:m.kn})}};p=(0,i.Cg)([(0,a.$K)("esri.views.3d.webgl-engine.core.shaderTechnique.ShaderTechnique")],p)},51976(e,t,r){r.d(t,{K:()=>s,W:()=>l});var i=r(49186),n=r(4576);class o{constructor(e){this._bits=[...e]}equals(e){return(0,n.aI)(this._bits,e.bits)}get code(){return this._code??=String.fromCharCode(...this._bits),this._code}get bits(){return this._bits}}var a=r(65786);class s extends a.Y{constructor(){super(),this._parameterBits=this._parameterBits?.map(()=>0)??[],this._parameterNames??=[]}get key(){return this._key??=new o(this._parameterBits),this._key}decode(e=this.key){let t=this._parameterBits;this._parameterBits=[...e.bits];let r=this._parameterNames.map(e=>` ${e}: ${this[e]}`).join("\n");return this._parameterBits=t,r}}function l(e={}){return(t,r)=>{t.hasOwnProperty("_parameterNames")||Object.defineProperty(t,"_parameterNames",{value:t._parameterNames?.slice()??[],configurable:!0,writable:!0}),t.hasOwnProperty("_parameterBits")||Object.defineProperty(t,"_parameterBits",{value:t._parameterBits?.slice()??[0],configurable:!0,writable:!0}),t._parameterNames.push(r);let n=e.count||2,o=Math.ceil(Math.log2(n)),a=t._parameterBits,s=0;for(;a[s]+o>16;)s++,s>=a.length&&a.push(0);let l=a[s],c=(1<<o)-1<<l;a[s]+=o,e.count?Object.defineProperty(t,r,{get(){return(this._parameterBits[s]&c)>>l},set(t){let n=this._parameterBits[s];if((n&c)>>l!==t){if(this._key=null,this._parameterBits[s]=n&~c|+t<<l&c,"number"!=typeof t)throw new i.A("internal:invalid-shader-configuration",`Configuration value for ${r} must be a number, got ${typeof t}`);if(null==e.count)throw new i.A("internal:invalid-shader-configuration",`Configuration value for ${r} must provide a count option`)}}}):Object.defineProperty(t,r,{get(){return!!((this._parameterBits[s]&c)>>l)},set(e){let t=this._parameterBits[s];if(!!((t&c)>>l)!==e&&(this._key=null,this._parameterBits[s]=t&~c|+e<<l,"boolean"!=typeof e))throw new i.A("internal:invalid-shader-configurationx",`Configuration value for ${r} must be boolean, got ${typeof e}`)}})}}},16943(e,t,r){r.d(t,{E:()=>n});var i=r(44208);function n(){return!!(0,i.A)("enable-feature:objectAndLayerId-rendering")}},24111(e,t,r){r.d(t,{Y:()=>s});var i=r(65261),n=r(23292),o=r(33094),a=r(31821);function s(e,t){t.snowCover&&(e.include(i.C),e.uniforms.add(new o.U("snowCover",e=>e.snowCover)).code.add(a.H`float applySnow(vec3 normal, vec3 groundNormal, inout vec3 albedo, inout float ssao) {
1097
+ float snow = smoothstep(0.5, 0.55, dot(normal, groundNormal)) * snowCover;
1098
+ albedo = delinearizeGamma(mix(linearizeGamma(albedo), vec3(1), snow));
1099
+ ssao = mix(ssao, 0.5 + 0.5 * ssao, snow);
1100
+ return snow;
1100
1101
  }
1101
- float getRealisticTreeSnow(vec3 faceNormal, vec3 shadingNormal, vec3 groundNormal) {
1102
+ float applyRealisticTreeSnow(vec3 faceNormal, vec3 shadingNormal, vec3 groundNormal, inout vec3 albedo, inout float ssao) {
1102
1103
  float snow = min(1.0, smoothstep(0.5, 0.55, dot(faceNormal, groundNormal)) +
1103
1104
  smoothstep(0.5, 0.55, dot(-faceNormal, groundNormal)) +
1104
- smoothstep(0.0, 0.1, dot(shadingNormal, groundNormal)));
1105
- return snow * snowCover;
1106
- }`),e.include(i.d),e.code.add(o.H`void applySnowToMRR(float snow) {
1105
+ smoothstep(0.0, 0.1, dot(shadingNormal, groundNormal))) *
1106
+ snowCover;
1107
+ albedo = delinearizeGamma(mix(linearizeGamma(albedo), vec3(1), snow));
1108
+ ssao = mix(ssao, 0.5 + 0.5 * ssao, snow);
1109
+ return snow;
1110
+ }`),e.include(n.d),e.code.add(a.H`void applySnowToMRR(float snow) {
1107
1111
  mrr = mix(mrr, vec3(0.0, 1.0, 0.04), snow);
1108
1112
  }`))}},49718(e,t,r){r(51850),r(6867).w_},6867(e,t,r){r.d(t,{w_:()=>d});var i=r(58083),n=r(9093),o=r(35522),a=r(51850),s=r(78955),l=r(91829),c=r(71351);class u{constructor(){this.intersector=4}get distance(){return this._distance}get renderDistance(){return this._renderDistance}_init(){this._distance=this._renderDistance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4}_setBase(e,t,r,i=null,n=null,o=null){this.intersector=e,this._distance=r,this._renderDistance=i,this.target=t,this.drapedLayerOrder=n,this.renderPriority=o}}class d extends u{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,o.hs)(f,this.ray.direction,this.distance),(0,o.Bw)(f))}withinDistance(e){return!!h(this)&&null!=this.distanceInRenderSpace&&this.distanceInRenderSpace<=e}getIntersectionPoint(e){return!!h(this)&&((0,o.hs)(f,this.ray.direction,this.distance),(0,o.WQ)(e,this.ray.origin,f),!0)}getTransformedNormal(e){return(0,o.C)(m,this.normal),m[3]=0,(0,s.Z0)(m,m,this.transformation),(0,o.C)(e,m),(0,o.S8)(e,e)}constructor(e){super(),this.normal=(0,a.vt)(),this.transformation=(0,n.vt)(),this._ray=(0,c.vt)(),this.init(e)}init(e){super._init(),e&&(0,c.C)(e,this._ray)}set(e,t,r,s,l,c,u,d){this._setBase(e,t,r,s,u,d),(0,o.C)(this.normal,l??a.Cb),(0,i.C)(this.transformation,c??n.zK)}copy(e){this._setBase(e.intersector,e.target,e.distance,e.renderDistance,e.drapedLayerOrder,e.renderPriority),(0,c.C)(e.ray,this._ray),(0,o.C)(this.normal,e.normal),(0,i.C)(this.transformation,e.transformation)}}function h(e){return null!=e?.distance&&null!=e?.renderDistance}const f=(0,a.vt)(),m=(0,l.vt)()},16396(e,t,r){r.d(t,{ou:()=>l}),r(77690),r(29242),r(58083),r(9093);var i=r(35522),n=r(51850),o=r(94008),a=r(57005);const s=new class{constructor(e=0){this.offset=e,this._tmpSphere=new o.iy}applyToVertex(e,t,r,n){let o=this.objectTransform.transform,a=(0,i.hZ)(c,t,r,n),s=(0,i.Z0)(a,a,o),l=this.offset/(0,i.Bw)(s);(0,i.Ln)(s,s,s,l);let u=this.objectTransform.inverse;return(0,i.Z0)(e,s,u),e}applyToMinMax(e,t){let r=this.offset/(0,i.Bw)(e);(0,i.Ln)(e,e,e,r);let n=this.offset/(0,i.Bw)(t);(0,i.Ln)(t,t,t,n)}applyToAabb(e){let t=this.offset/Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]+=e[0]*t,e[1]+=e[1]*t,e[2]+=e[2]*t;let r=this.offset/Math.sqrt(e[3]*e[3]+e[4]*e[4]+e[5]*e[5]);return e[3]+=e[3]*r,e[4]+=e[4]*r,e[5]+=e[5]*r,e}applyToBoundingSphere(e){let t=e.center,r=(0,i.Bw)(t),n=this.offset/r;return(0,i.Ln)(this._tmpSphere.center,t,t,n),this._tmpSphere.radius=e.radius+e.radius*this.offset/r,this._tmpSphere}};function l(e){return null==e?null:(s.offset=e,s)}new class{constructor(e=0){this.componentLocalOriginLength=0,this._totalOffset=0,this._offset=0,this._tmpMbs=new o.iy,this._tmpObb=new a.ab,this._resetOffset(e)}_resetOffset(e){this._offset=e,this._totalOffset=e}set offset(e){this._resetOffset(e)}get offset(){return this._offset}set componentOffset(e){this._totalOffset=this._offset+e}set localOrigin(e){this.componentLocalOriginLength=(0,i.Bw)(e)}applyToVertex(e,t,r,n){let o=(0,i.hZ)(c,t,r,n),a=(0,i.hZ)(u,t,r,n+this.componentLocalOriginLength),s=this._totalOffset/(0,i.Bw)(a);return(0,i.Ln)(e,o,a,s),e}applyToAabb(e){let t=this.componentLocalOriginLength,r=e[0],i=e[1],n=e[2]+t,o=e[3],a=e[4],s=e[5]+t,l=Math.abs(r),c=Math.abs(i),u=Math.abs(n),d=Math.abs(o),h=Math.abs(a),f=Math.abs(s),m=.5*(1+Math.sign(r*o))*Math.min(l,d),p=.5*(1+Math.sign(i*a))*Math.min(c,h),v=.5*(1+Math.sign(n*s))*Math.min(u,f),g=Math.sqrt(m*m+p*p+v*v),x=Math.sign(l+r),_=Math.sign(c+i),b=Math.sign(u+n),y=Math.sign(d+o),w=Math.sign(h+a),M=Math.sign(f+s),T=this._totalOffset;if(g<T)return e[0]-=(1-x)*T,e[1]-=(1-_)*T,e[2]-=(1-b)*T,e[3]+=y*T,e[4]+=w*T,e[5]+=M*T,e;let S=Math.max(l,d),C=Math.max(c,h),A=Math.max(u,f),E=T/Math.sqrt(S*S+C*C+A*A),O=T/g,I=O-E,P=-I;return e[0]+=r*(x*P+O),e[1]+=i*(_*P+O),e[2]+=n*(b*P+O),e[3]+=o*(y*I+E),e[4]+=a*(w*I+E),e[5]+=s*(M*I+E),e}applyToMbs(e){let t=e.center,r=(0,i.Bw)(t),n=this._totalOffset/r;return(0,i.Ln)(this._tmpMbs.center,t,t,n),this._tmpMbs.radius=e.radius+e.radius*this._totalOffset/r,this._tmpMbs}applyToObb(e){return(0,a.gm)(e,this._totalOffset,this._totalOffset,1,this._tmpObb),this._tmpObb}},new class{constructor(e=0){this.offset=e,this._tmpVertex=(0,n.vt)()}applyToVertex(e,t,r,n){let o=(0,i.hZ)(c,t,r,n),a=(0,i.WQ)(u,o,this.localOrigin),s=this.offset/(0,i.Bw)(a);return(0,i.Ln)(e,o,a,s),e}applyToAabb(e){let t=d,r=h,i=f;for(let n=0;n<3;++n)t[n]=e[0+n]+this.localOrigin[n],r[n]=e[3+n]+this.localOrigin[n],i[n]=t[n];let n=this.applyToVertex(this._tmpVertex,t[0],t[1],t[2]);for(let t=0;t<3;++t)e[t]=n[t],e[t+3]=n[t];let o=t=>{let r=this.applyToVertex(this._tmpVertex,t[0],t[1],t[2]);for(let t=0;t<3;++t)e[t]=Math.min(e[t],r[t]),e[t+3]=Math.max(e[t+3],r[t])};for(let e=1;e<8;++e){for(let n=0;n<3;++n)i[n]=e&1<<n?r[n]:t[n];o(i)}let a=0;for(let e=0;e<3;++e)t[e]*r[e]<0&&(a|=1<<e);if(0!==a&&7!==a)for(let e=0;e<8;++e)if(0===(a&e)){for(let n=0;n<3;++n)i[n]=a&1<<n?0:e&1<<n?t[n]:r[n];o(i)}for(let t=0;t<3;++t)e[t]-=this.localOrigin[t],e[t+3]-=this.localOrigin[t];return e}};const c=(0,n.vt)(),u=(0,n.vt)(),d=(0,n.vt)(),h=(0,n.vt)(),f=(0,n.vt)()},46606(e,t,r){r.d(t,{S:()=>s,p:()=>l}),r(34727),r(77690),r(29242),r(58083);var i=r(9093),n=(r(35522),r(51850)),o=(r(78955),r(91829),r(31756),r(26857),r(16943),r(65786));class a extends o.Y{constructor(e){super(),this.vvSize=e?.size??null,this.vvColor=e?.color??null,this.vvOpacity=e?.opacity??null}get hasVVSize(){return!!this.vvSize}get hasVVColor(){return!!this.vvColor}get hasVVOpacity(){return!!this.vvOpacity}}(0,i.vt)(),(0,n.vt)(),(0,i.vt)();class s extends a{constructor(){super(...arguments),this.renderOccluded=1,this.emissiveStrength=0,this.testsTransparentRenderOrder=0,this.isDecoration=!1}}const l=8},19245(e,t,r){r.d(t,{Um:()=>l,MB:()=>s,kE:()=>o});var i=r(4576),n=r(34727);r(44208);function o(e,t,r,i,o,a){let s=r.screenLength*e.pixelRatio;null!=o&&(c.update(i,t,o,a),s=c.apply(s));let l=s*Math.tan(.5*e.fovY)/(.5*e.fullHeight);return(0,n.qE)(l*t,r.minWorldLength,r.maxWorldLength)}const a=(0,i.VO)();function s(e,t){let r=!1;for(let i in t){let n=t[i];void 0!==n&&(Array.isArray(n)?Array.isArray(e[i])&&a(n,e[i])||(e[i]=n.slice(),r=!0):e[i]!==n&&(r=!0,e[i]=n))}return r}const l={multiply:1,ignore:2,replace:3,tint:4},c=new class{constructor(){this._scale=0,this._angleFactor=0,this._minScale=0}update(e,t,r,i){r?(this._scale=Math.min(r.divisor/(t-r.offset),1),this._angleFactor=function(e){return Math.abs(e)**3}(e),this._minScale=null==i?0:Math.min(r.minPixelSize/i,1)):(this._scale=1,this._minScale=1,this._angleFactor=1)}apply(e){let{_scale:t,_angleFactor:r,_minScale:i}=this;return e*(0,n.qE)((0,n.Cc)(t,1,r),i,1)}applyVec2(e,t){e[0]=this.apply(t[0]),e[1]=this.apply(t[1])}}},84368(e,t,r){r.d(t,{D:()=>h});var i=r(49255),n=r(47187),o=r(42593),a=r(63365);function s(e){e.code.add("\n vec3 emissionFilter(in vec3 srcColor, float srcAlpha) {\n vec3 color = min(srcColor + vec3(1.0 - srcAlpha), 1.0);\n float m = max(color.r, max(color.g, color.b));\n return m > 0.0 ? color / m : vec3(1.0);\n }\n ")}var l=r(31821),c=r(26934);function u(e,t){t.useFloatBlend?e.code.add("float ditherNoise(vec4 color) { return 0.0; }"):e.code.add("\n float ditherNoise(vec4 color) {\n vec2 seed = color.rg + color.ba + gl_FragCoord.xy + gl_FragCoord.z;\n return (fract(52.9829189 * fract(dot(seed, vec2(0.06711056, 0.00583715)))) - 0.5) / 255.0;\n }")}var d=r(72458);function h(e,t){e.include(o.Q,t),e.include(n.zp,t);let{fragment:r,outputs:h}=e;r.include(a.a);let{output:f,hasEmission:m,oitPremultipliedAlpha:p,snowCover:v,emissionDimmingPass:g,renderOccluded:x}=t,_=11===f,b=(0,i._$)(f),y=(0,i.Rb)(f),w=(0,i._o)(f)&&!b,M=0!==f||x,T=0;(w||b)&&h.add("fragColor","vec4",T++),b&&h.add("fragAlpha","float",T++),m&&h.add("fragEmission","vec4",T++),r.include(a.a),r.include(c.Q),r.include(d.O,t),r.include(u,t),g&&r.include(s),r.code.add(l.H`
1109
1113
  void outputColorHighlightOLID(vec4 finalColor, vec3 emissiveSymbolColor ${(0,l.If)(v,", float snow")}) {