@arcgis/core 4.30.0-next.20240213 → 4.30.0-next.20240215

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 (193) hide show
  1. package/TimeExtent.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/08ba549f9c4afc42a21c.js +1 -0
  4. package/assets/esri/core/workers/chunks/114afcee6a66415cd123.js +1 -0
  5. package/assets/esri/core/workers/chunks/1320562881294ce93806.js +1 -0
  6. package/assets/esri/core/workers/chunks/13451fa3e4b02ca2beb0.js +1 -0
  7. package/assets/esri/core/workers/chunks/{a384f29cb3256401962a.js → 1629a8c2085dce59cd1b.js} +1 -1
  8. package/assets/esri/core/workers/chunks/18512caeeb03b9759ab1.js +1 -0
  9. package/assets/esri/core/workers/chunks/{cc1c958aad790a44048b.js → 1ca28af7c516d8283bb0.js} +1 -1
  10. package/assets/esri/core/workers/chunks/1f8a0fb32b96e50f5909.js +1 -0
  11. package/assets/esri/core/workers/chunks/{abab3abb8ea7610d9fb8.js → 21e7a88478f5d15e0e71.js} +1 -1
  12. package/assets/esri/core/workers/chunks/24452a26b0c5322c7d2b.js +1 -0
  13. package/assets/esri/core/workers/chunks/25b88787ead0cc44cda4.js +1 -0
  14. package/assets/esri/core/workers/chunks/2649166d1a462c7f8338.js +1 -0
  15. package/assets/esri/core/workers/chunks/2c96771a365f8f70e996.js +1 -0
  16. package/assets/esri/core/workers/chunks/352e7f8d694f3f217a2d.js +1 -0
  17. package/assets/esri/core/workers/chunks/392214a3a1d712eda155.js +1 -0
  18. package/assets/esri/core/workers/chunks/397f15b5bce6838db084.js +1 -0
  19. package/assets/esri/core/workers/chunks/3bf281e979408b9363ed.js +1 -0
  20. package/assets/esri/core/workers/chunks/4edc667148d023b5b5af.js +1 -0
  21. package/assets/esri/core/workers/chunks/51e4f771bfe352967c97.js +1 -0
  22. package/assets/esri/core/workers/chunks/55cd747e06bb59d1a328.js +1 -0
  23. package/assets/esri/core/workers/chunks/5638d95e600ff271c5b1.js +1 -0
  24. package/assets/esri/core/workers/chunks/563d172caa15ea1b510d.js +1108 -0
  25. package/assets/esri/core/workers/chunks/58f088b08e12c5435dbc.js +1 -0
  26. package/assets/esri/core/workers/chunks/5aef1e898618f8dda2c9.js +1 -0
  27. package/assets/esri/core/workers/chunks/608be8ebf772aefc36a5.js +1 -0
  28. package/assets/esri/core/workers/chunks/64df2521b2814d2fb918.js +1 -0
  29. package/assets/esri/core/workers/chunks/65070fb591f6ef8313c3.js +1 -0
  30. package/assets/esri/core/workers/chunks/656ec8a14df0e4b68433.js +1 -0
  31. package/assets/esri/core/workers/chunks/6601fe99d587b9dff3c7.js +1 -0
  32. package/assets/esri/core/workers/chunks/{274e623323e24250ca46.js → 6ac424af4f2825fabceb.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{eb2d6f1ee63b40ae0736.js → 774b655498289b1b36bb.js} +1 -1
  34. package/assets/esri/core/workers/chunks/781bb63af571568358e3.js +1 -0
  35. package/assets/esri/core/workers/chunks/9e54d2cbe42f5552aaca.js +1 -0
  36. package/assets/esri/core/workers/chunks/{f03d62ab7806b68d0b62.js → 9fbf61675e2a5374f754.js} +1 -1
  37. package/assets/esri/core/workers/chunks/a5253543eae1708d11b9.js +1 -0
  38. package/assets/esri/core/workers/chunks/aa9b46bcb75c96731de3.js +1 -0
  39. package/assets/esri/core/workers/chunks/cfb8b6b5e9c21d582cf4.js +1 -0
  40. package/assets/esri/core/workers/chunks/d1b2372084c1e8c60f79.js +1 -0
  41. package/assets/esri/core/workers/chunks/{1c6914ded7db720f7bf7.js → daf6eab5dd198ca9a67b.js} +1 -1
  42. package/assets/esri/core/workers/chunks/e03edeaf3af46495449e.js +1 -0
  43. package/assets/esri/core/workers/chunks/e685214698fbc84276dd.js +1 -0
  44. package/assets/esri/core/workers/chunks/ebb294c82207f3ff9f04.js +1 -0
  45. package/assets/esri/core/workers/chunks/ec20e23aec9370df8a55.js +1 -0
  46. package/assets/esri/core/workers/chunks/{e4da908079417cc2f495.js → ee0c77889059815a31b2.js} +1 -1
  47. package/assets/esri/core/workers/chunks/f68b7bb88c444a7cbbd2.js +1 -0
  48. package/assets/esri/core/workers/chunks/f90bbebd2dc07a77ce09.js +1 -0
  49. package/assets/esri/core/workers/chunks/fa388680ff976a6b30f6.js +1 -0
  50. package/chunks/vec32.js +1 -1
  51. package/interfaces.d.ts +135 -68
  52. package/layers/WFSLayer.js +1 -1
  53. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  54. package/layers/graphics/applyEditsUtils.js +1 -1
  55. package/layers/graphics/editingSupport.js +1 -1
  56. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  57. package/layers/mixins/ArcGISImageService.js +1 -1
  58. package/layers/save/featureLayerUtils.js +1 -1
  59. package/layers/support/arcgisLayers.js +1 -1
  60. package/layers/support/fetchService.js +1 -1
  61. package/layers/support/fromPortalItem.js +1 -1
  62. package/networks/Network.js +1 -1
  63. package/package.json +1 -1
  64. package/portal/Portal.js +1 -1
  65. package/portal/PortalGroup.js +1 -1
  66. package/portal/PortalUser.js +1 -1
  67. package/portal/support/geometryServiceUtils.js +1 -1
  68. package/portal/support/layersLoader.js +1 -1
  69. package/portal/support/loadUtils.js +1 -1
  70. package/portal/support/portalLayers.js +1 -1
  71. package/renderers/visualVariables/SizeVariable.js +1 -1
  72. package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
  73. package/rest/networks/support/Association.js +1 -1
  74. package/rest/places.js +1 -1
  75. package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
  76. package/rest/support/ImageSampleParameters.js +1 -1
  77. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  78. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  79. package/support/elevationInfoUtils.js +1 -1
  80. package/support/revision.js +1 -1
  81. package/symbols/cim/cimAnalyzer.js +1 -1
  82. package/symbols/cim/defaultCIMValues.js +1 -1
  83. package/symbols/cim/utils.js +1 -1
  84. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  85. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  86. package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
  87. package/views/2d/engine/webgl/definitions.js +1 -1
  88. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  89. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  90. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  91. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  92. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  93. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  94. package/views/2d/layers/features/Processor.js +1 -1
  95. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  96. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  97. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  98. package/views/2d/layers/features/schema/processor/VisualVariablesSchema.js +1 -1
  99. package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
  100. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  101. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  102. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  103. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  104. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  105. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  106. package/views/3d/layers/SceneLayerView3D.js +1 -1
  107. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  108. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  109. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  110. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  111. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  112. package/views/3d/support/orientedBoundingBox.js +1 -1
  113. package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
  114. package/views/3d/terrain/OverlayRenderer.js +1 -1
  115. package/views/3d/webgl/RenderNode.js +1 -1
  116. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  117. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  118. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +9 -7
  119. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceConstants.js +5 -0
  120. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +8 -8
  121. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  122. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  123. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  124. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  125. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  126. package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
  127. package/views/draw/DrawGraphicTool.js +1 -1
  128. package/views/draw/DrawOperation.js +1 -1
  129. package/views/draw/drawSurfaces.js +1 -1
  130. package/views/interactive/snapping/SnappingManager.js +1 -1
  131. package/views/interactive/snapping/SnappingOptions.js +1 -1
  132. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  133. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  134. package/views/layers/ImageryTileLayerView.js +1 -1
  135. package/webdoc/support/webdocLoadUtils.js +1 -1
  136. package/webdoc/support/webdocSaveUtils.js +1 -1
  137. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  138. package/widgets/Editor/EditorViewModel.js +1 -1
  139. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  140. package/widgets/Editor/UpdateWorkflow.js +1 -1
  141. package/widgets/Editor/components/FooterActions.js +1 -1
  142. package/widgets/Editor/support/EditorItem.js +1 -1
  143. package/widgets/Editor.js +1 -1
  144. package/widgets/FeatureForm.js +1 -1
  145. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  146. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  147. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  148. package/widgets/FeatureTable.js +1 -1
  149. package/widgets/Features/FeaturesViewModel.js +1 -1
  150. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  151. package/widgets/Print/PrintViewModel.js +1 -1
  152. package/widgets/Print.js +1 -1
  153. package/widgets/Search/support/locatorUtils.js +1 -1
  154. package/widgets/Sketch/SketchViewModel.js +1 -1
  155. package/assets/esri/core/workers/chunks/00b9e92f8df245a83921.js +0 -1
  156. package/assets/esri/core/workers/chunks/02a6c43ec17e7223fac5.js +0 -1
  157. package/assets/esri/core/workers/chunks/02ee044597c89c86b934.js +0 -1
  158. package/assets/esri/core/workers/chunks/05ebb9cec0e1826b283f.js +0 -1
  159. package/assets/esri/core/workers/chunks/143ccb14c9e915dd1412.js +0 -1
  160. package/assets/esri/core/workers/chunks/24649b410b757599a549.js +0 -1
  161. package/assets/esri/core/workers/chunks/24d19abc680b341d13bb.js +0 -1
  162. package/assets/esri/core/workers/chunks/2519b207894132d5ea91.js +0 -1
  163. package/assets/esri/core/workers/chunks/30f9b2a3417cbcfeecca.js +0 -1
  164. package/assets/esri/core/workers/chunks/42ab9c282bb267c3db03.js +0 -1
  165. package/assets/esri/core/workers/chunks/478815fc19b452d8317d.js +0 -1
  166. package/assets/esri/core/workers/chunks/49afeac45250b15b5f36.js +0 -1
  167. package/assets/esri/core/workers/chunks/50bb67f2eeace5d50673.js +0 -1
  168. package/assets/esri/core/workers/chunks/50cdc59426ba859027e2.js +0 -1
  169. package/assets/esri/core/workers/chunks/5401ec9c9fd62dcac6ec.js +0 -1
  170. package/assets/esri/core/workers/chunks/554d86df71821d671d2c.js +0 -1
  171. package/assets/esri/core/workers/chunks/58c5861d060c808813a1.js +0 -1
  172. package/assets/esri/core/workers/chunks/5dbb3ef6fdd25ac632ad.js +0 -1
  173. package/assets/esri/core/workers/chunks/61c4bb58ef9f2d99c75e.js +0 -1
  174. package/assets/esri/core/workers/chunks/6e50220f8e2d392e2855.js +0 -1
  175. package/assets/esri/core/workers/chunks/6fd8047741a0df006ddd.js +0 -1
  176. package/assets/esri/core/workers/chunks/7709248f59520aee6f51.js +0 -1
  177. package/assets/esri/core/workers/chunks/8852a64918caf80fc414.js +0 -1
  178. package/assets/esri/core/workers/chunks/8d119dc0a92ad3612daa.js +0 -1
  179. package/assets/esri/core/workers/chunks/94dfb80ab23dda92918b.js +0 -1
  180. package/assets/esri/core/workers/chunks/9ebbc75ba5c623a322aa.js +0 -1
  181. package/assets/esri/core/workers/chunks/a5babc10f47c24651d15.js +0 -1
  182. package/assets/esri/core/workers/chunks/a74c59cf5d1c4e63a4e1.js +0 -1
  183. package/assets/esri/core/workers/chunks/ada5d6fd70bd3e403442.js +0 -1
  184. package/assets/esri/core/workers/chunks/b95d69d84d60ac9828b9.js +0 -1
  185. package/assets/esri/core/workers/chunks/be562536212360943388.js +0 -1
  186. package/assets/esri/core/workers/chunks/ce823fc2d0e0095f398c.js +0 -1
  187. package/assets/esri/core/workers/chunks/d06d36815c2121484a13.js +0 -1
  188. package/assets/esri/core/workers/chunks/d5f06a7b0ea7951c8dd0.js +0 -1
  189. package/assets/esri/core/workers/chunks/ddc71fe66c7a49082920.js +0 -1
  190. package/assets/esri/core/workers/chunks/de6d54df7ae32694fd70.js +0 -1
  191. package/assets/esri/core/workers/chunks/f13c4b9692dad5802a32.js +0 -1106
  192. package/assets/esri/core/workers/chunks/f1e8f7d1a98b9e207b1b.js +0 -1
  193. package/assets/esri/core/workers/chunks/f9e9675f1c2287231653.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5864],{60024:(t,e,s)=>{s.d(e,{c:()=>G});const i=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],n=["آ","أ","إ","ا"],r=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],h=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],a=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],c=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],l=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],_=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],f=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],p=["ء","ف"],d=["غ","ي"],g=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],m=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],P=0,y=1,x=2,M=3,b=4,C=5,S=6,w=7,A=8,I=10,z=11,v=12,L=18,k=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],T=100,E=[T+0,P,P,P,P,T+1,T+2,T+3,y,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,T+4,b,b,b,P,b,P,b,P,b,b,b,P,P,b,b,P,P,P,P,P,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,P,P,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,P,P,b,b,P,P,b,b,P,P,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,P,P,P,T+5,w,w,T+6,T+7],O=[[L,L,L,L,L,L,L,L,L,S,C,S,A,C,L,L,L,L,L,L,L,L,L,L,L,L,L,L,C,C,C,S,A,b,b,z,z,z,b,b,b,b,b,I,9,I,9,9,x,x,x,x,x,x,x,x,x,x,9,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,L,L,L,L,L,L,C,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,9,b,z,z,z,z,b,b,b,b,P,b,b,L,b,b,z,z,x,x,b,P,b,b,b,x,P,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,P,P,P,P,P,P,P,P],[P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,P,P,P,P,P,P,P,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,P,b,b,b,b,b,b,b,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,y,v,y,v,v,y,v,v,y,v,b,b,b,b,b,b,b,b,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b,b,b,b,b,y,y,y,y,y,b,b,b,b,b,b,b,b,b,b,b],[M,M,M,M,b,b,b,b,w,z,z,w,9,w,b,b,v,v,v,v,v,v,v,v,v,v,v,w,b,b,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,M,M,M,M,M,M,M,M,M,M,z,M,M,w,w,w,v,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,v,v,v,v,v,v,v,M,b,v,v,v,v,v,v,w,w,v,v,b,v,v,v,v,w,w,x,x,x,x,x,x,x,x,x,x,w,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,b,w,w,v,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,b,b,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,v,v,v,v,v,v,v,v,v,v,v,w,b,b,b,b,b,b,b,b,b,b,b,b,b,b,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,v,v,v,v,v,v,v,v,v,y,y,b,b,b,b,y,b,b,b,b,b],[A,A,A,A,A,A,A,A,A,A,A,L,L,L,P,y,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,A,C,13,14,15,16,17,9,z,z,z,z,z,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,9,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,A,L,L,L,L,L,b,b,b,b,b,L,L,L,L,L,L,x,P,b,b,x,x,x,x,x,x,I,I,b,b,b,P,x,x,x,x,x,x,x,x,x,x,I,I,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b],[P,P,P,P,P,P,P,b,b,b,b,b,b,b,b,b,b,b,b,P,P,P,P,P,b,b,b,b,b,y,v,y,y,y,y,y,y,y,y,y,y,I,y,y,y,y,y,y,y,y,y,y,y,y,y,b,y,y,y,y,y,b,y,b,y,y,b,y,y,b,y,y,y,y,y,y,y,y,y,y,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,v,v,v,v,v,v,v,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,9,b,9,b,b,9,b,b,b,b,b,b,b,b,b,z,b,b,I,I,b,b,b,b,b,z,z,b,b,b,b,b,w,w,w,w,w,b,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,b,b,L],[b,b,b,z,z,z,b,b,b,b,b,I,9,I,9,9,x,x,x,x,x,x,x,x,x,x,9,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,b,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,P,P,P,P,P,P,b,b,P,P,P,P,P,P,b,b,P,P,P,P,P,P,b,b,P,P,P,b,b,b,z,z,b,b,b,z,z,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b]];class G{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,s){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,s){it=[],rt=[];for(let i=0;i<s;i++)t[i]=i,e[i]=i,it[i]=i}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,s))return t;e=this.inputFormat,s=this.outputFormat;let i=t;const h=ot,l=$(e.charAt(1)),_=$(s.charAt(1)),p=("I"===e.charAt(0)?"L":e.charAt(0))+l,d=("I"===s.charAt(0)?"L":s.charAt(0))+_,g=e.charAt(2)+s.charAt(2);h.defInFormat=p,h.defOutFormat=d,h.defSwap=g;const m=F(t,p,d,g,h);let P=!1;return"R"===s.charAt(1)?P=!0:"C"!==s.charAt(1)&&"D"!==s.charAt(1)||(P="rtl"===this.checkContextual(m)),this.sourceToTarget=it,this.targetToSource=function(t){const e=new Array(t.length);for(let s=0;s<t.length;s++)e[t[s]]=s;return e}(this.sourceToTarget),nt=this.targetToSource,i=e.charAt(3)===s.charAt(3)?m:"S"===s.charAt(3)?function(t,e,s){if(0===e.length)return"";void 0===t&&(t=!0),void 0===s&&(s=!0);const i=(e=String(e)).split("");let n=0,h=1,l=i.length;t||(n=i.length-1,h=-1,l=1);const _=function(t,e,s,i,n){let h=0;const l=[];let _=0;for(let f=e;f*s<i;f+=s)if(U(t[f])||Q(t[f])){if("ل"===t[f]&&H(t,f+s,s,i)){t[f]=et(t[f+s],0===h?r:o),f+=s,tt(t,f,s,i),n&&(l[_]=f,_++),h=0;continue}const e=t[f];1===h?t[f]=D(t,f+s,s,i)?j(t[f]):Z(t[f],c):!0===D(t,f+s,s,i)?t[f]=Z(t[f],u):t[f]=Z(t[f],a),Q(e)||(h=1),!0===J(e)&&(h=0)}else h=0;return l}(i,n,h,l,s);let f="";for(let e=0;e<i.length;e++)s&&Y(_,_.length,e)>-1?(st(nt,e,!t,-1),it.splice(e,1)):f+=i[e];return f}(P,m,!0):function(t,e,s){if(0===t.length)return"";void 0===s&&(s=!0),void 0===e&&(e=!0);let i="";const r=(t=String(t)).split("");for(let o=0;o<t.length;o++){let h=!1;if(r[o]>="ﹰ"&&r[o]<"\ufeff"){const a=t.charCodeAt(o);r[o]>="ﻵ"&&r[o]<="ﻼ"?(e?(o>0&&s&&" "===r[o-1]?i=i.substring(0,i.length-1)+"ل":(i+="ل",h=!0),i+=n[(a-65269)/2]):(i+=n[(a-65269)/2],i+="ل",o+1<t.length&&s&&" "===r[o+1]?o++:h=!0),h&&(st(nt,o,!0,1),it.splice(o,0,it[o]))):i+=f[a-65136]}else i+=r[o]}return i}(m,P,!0),this.sourceToTarget=it,this.targetToSource=nt,this.levels=rt,i}_inputFormatSetter(t){if(!ut.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!ut.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=N(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return _t.test(t)}}function F(t,e,s,i,n){const r=function(t,e,s){if(void 0===e.inFormat&&(e.inFormat=s.defInFormat),void 0===e.outFormat&&(e.outFormat=s.defOutFormat),void 0===e.swap&&(e.swap=s.defSwap),e.inFormat===e.outFormat)return e;const i=e.inFormat.substring(0,1),n=e.outFormat.substring(0,1);let r,o=e.inFormat.substring(1,4),h=e.outFormat.substring(1,4);return"C"===o.charAt(0)&&(r=N(t),o="ltr"===r||"rtl"===r?r.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=i+o),"C"===h.charAt(0)&&(r=N(t),"rtl"===r?h="RTL":"ltr"===r?(r=function(t){const e=t.split("");return e.reverse(),N(e.join(""))}(t),h=r.toUpperCase()):h="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=n+h),e}(t,{inFormat:e,outFormat:s,swap:i},n);if(r.inFormat===r.outFormat)return t;e=r.inFormat,s=r.outFormat,i=r.swap;const o=e.substring(0,1),h=e.substring(1,4),a=s.substring(0,1),c=s.substring(1,4);if(n.inFormat=e,n.outFormat=s,n.swap=i,"L"===o&&"VLTR"===s){if("LTR"===h)return n.dir=ct,R(t,n);if("RTL"===h)return n.dir=lt,R(t,n)}if("V"===o&&"V"===a)return n.dir="RTL"===h?lt:ct,X(t,n);if("L"===o&&"VRTL"===s)return"LTR"===h?(n.dir=ct,t=R(t,n)):(n.dir=lt,t=R(t,n)),X(t);if("VLTR"===e&&"LLTR"===s)return n.dir=ct,R(t,n);if("V"===o&&"L"===a&&h!==c)return t=X(t),"RTL"===h?F(t,"LLTR","VLTR",i,n):F(t,"LRTL","VRTL",i,n);if("VRTL"===e&&"LRTL"===s)return F(t,"LRTL","VRTL",i,n);if("L"===o&&"L"===a){const e=n.swap;return n.swap=e.substr(0,1)+"N","RTL"===h?(n.dir=lt,t=R(t,n),n.swap="N"+e.substr(1,2),n.dir=ct,t=R(t,n)):(n.dir=ct,t=R(t,n),n.swap="N"+e.substr(1,2),t=F(t,"VLTR","LRTL",n.swap,n)),t}return t}function N(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function R(t,e){const s=t.split(""),i=[];return B(s,i,e),function(t,e,s){if(0!==s.hiLevel&&s.swap.substr(0,1)!==s.swap.substr(1,2))for(let s=0;s<t.length;s++)1===e[s]&&(t[s]=K(t[s]))}(s,i,e),W(2,s,i,e),W(1,s,i,e),rt=i,s.join("")}function B(t,e,s){const i=t.length,n=s.dir?m:g;let r=0,o=-1;const h=[],a=[];s.hiLevel=s.dir,s.lastArabic=!1,s.hasUbatAl=!1,s.hasUbatB=!1,s.hasUbatS=!1;for(let e=0;e<i;e++)h[e]=V(t[e]);for(let c=0;c<i;c++){const i=r,l=q(t,h,a,c,s);a[c]=l,r=n[i][l];const u=240&r;r&=15;const _=n[r][ht];if(e[c]=_,u>0)if(16===u){for(let t=o;t<c;t++)e[t]=1;o=-1}else o=-1;if(n[r][at])-1===o&&(o=c);else if(o>-1){for(let t=o;t<c;t++)e[t]=_;o=-1}h[c]===C&&(e[c]=0),s.hiLevel|=_}s.hasUbatS&&function(t,e,s,i){for(let n=0;n<s;n++)if(t[n]===S){e[n]=i.dir;for(let s=n-1;s>=0&&t[s]===A;s--)e[s]=i.dir}}(h,e,i,s)}function V(t){const e=t.charCodeAt(0),s=E[e>>8];return s<T?s:O[s-T][255&e]}function X(t,e){const s=t.split("");if(e){const t=[];B(s,t,e),rt=t}return s.reverse(),it.reverse(),s.join("")}function Y(t,e,s){for(let i=0;i<e;i++)if(t[i]===s)return i;return-1}function U(t){for(let e=0;e<p.length;e++)if(t>=p[e]&&t<=d[e])return!0;return!1}function D(t,e,s,i){for(;e*s<i&&Q(t[e]);)e+=s;return!!(e*s<i&&U(t[e]))}function H(t,e,s,i){for(;e*s<i&&Q(t[e]);)e+=s;let r=" ";if(!(e*s<i))return!1;r=t[e];for(let t=0;t<n.length;t++)if(n[t]===r)return!0;return!1}function W(t,e,s,i){if(i.hiLevel<t)return;if(1===t&&i.dir===lt&&!i.hasUbatB)return e.reverse(),void it.reverse();const n=e.length;let r,o,h,a,c,l=0;for(;l<n;){if(s[l]>=t){for(r=l+1;r<n&&s[r]>=t;)r++;for(o=l,h=r-1;o<h;o++,h--)a=e[o],e[o]=e[h],e[h]=a,c=it[o],it[o]=it[h],it[h]=c;l=r}l++}}function q(t,e,s,i,n){const r=e[i];return{UBAT_L:()=>(n.lastArabic=!1,P),UBAT_R:()=>(n.lastArabic=!1,y),UBAT_ON:()=>b,UBAT_AN:()=>M,UBAT_EN:()=>n.lastArabic?M:x,UBAT_AL:()=>(n.lastArabic=!0,n.hasUbatAl=!0,y),UBAT_WS:()=>b,UBAT_CS:()=>{let t,r;return i<1||i+1>=e.length||(t=s[i-1])!==x&&t!==M||(r=e[i+1])!==x&&r!==M?b:(n.lastArabic&&(r=M),r===t?r:b)},UBAT_ES:()=>(i>0?s[i-1]:C)===x&&i+1<e.length&&e[i+1]===x?x:b,UBAT_ET:()=>{if(i>0&&s[i-1]===x)return x;if(n.lastArabic)return b;let t=i+1;const r=e.length;for(;t<r&&e[t]===z;)t++;return t<r&&e[t]===x?x:b},UBAT_NSM:()=>{if("VLTR"===n.inFormat){const s=e.length;let n=i+1;for(;n<s&&e[n]===v;)n++;if(n<s){const s=t[i].charCodeAt(0),r=s>=1425&&s<=2303||64286===s,o=e[n];if(r&&(o===y||o===w))return y}}return i<1||e[i-1]===C?b:s[i-1]},UBAT_B:()=>(n.lastArabic=!0,n.hasUbatB=!0,n.dir),UBAT_S:()=>(n.hasUbatS=!0,b),UBAT_LRE:()=>(n.lastArabic=!1,b),UBAT_RLE:()=>(n.lastArabic=!1,b),UBAT_LRO:()=>(n.lastArabic=!1,b),UBAT_RLO:()=>(n.lastArabic=!1,b),UBAT_PDF:()=>(n.lastArabic=!1,b),UBAT_BN:()=>b}[k[r]]()}function K(t){let e,s=0,n=i.length-1;for(;s<=n;)if(e=Math.floor((s+n)/2),t<i[e][0])n=e-1;else{if(!(t>i[e][0]))return i[e][1];s=e+1}return t}function J(t){for(let e=0;e<_.length;e++)if(_[e]===t)return!0;return!1}function j(t){for(let e=0;e<h.length;e++)if(t===h[e])return l[e];return t}function Z(t,e){for(let s=0;s<h.length;s++)if(t===h[s])return e[s];return t}function Q(t){return t>="ً"&&t<="ٕ"}function $(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function tt(t,e,s,i){for(;e*s<i&&Q(t[e]);)e+=s;return e*s<i&&(t[e]=" ",!0)}function et(t,e){for(let s=0;s<n.length;s++)if(t===n[s])return e[s];return t}function st(t,e,s,i){for(let n=0;n<t.length;n++)(t[n]>e||!s&&t[n]===e)&&(t[n]+=i)}let it=[],nt=[],rt=[];const ot={dir:0,defInFormat:"LLTR",defoutFormat:"VLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,hasBlockSep:!1,hasSegSep:!1,defOutFormat:""},ht=5,at=6,ct=0,lt=1,ut=/^[(I|V)][(L|R|C|D)][(Y|N)][(S|N)][N]$/,_t=/[\u0591-\u06ff\ufb1d-\ufefc]/},11004:(t,e,s)=>{s.d(e,{o:()=>n});var i=s(74452);class n{constructor(t,e){this._storage=new i.kB,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),e&&this._storage.registerRemoveFunc("",e)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},74452:(t,e,s)=>{s.d(e,{ML:()=>o,kB:()=>h});var i,n,r=s(24680);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(t,e,s){this.name=t,this._storage=e,this.id=a+++":",this.size=0,this.maxSize=-1,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),s&&(this._storage.registerRemoveFunc(this.id,s),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get storageSize(){return this._storage.size}getSize(t){return this._storage.getSize(this,t)}resetHitRate(){this._hit=this._miss=0}put(t,e,s,i=0){this._storage.put(this,t,e,s,i)}pop(t){const e=this._storage.pop(this,t);return void 0===e?++this._miss:++this._hit,e}get(t){const e=this._storage.get(this,t);return void 0===e?++this._miss:++this._hit,e}peek(t){return this._storage.peek(this,t)}updateSize(t,e,s){this._storage.updateSize(this,t,e,s)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class h{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.c,this._users=new r.c}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}getSize(t,e){const s=this._db.get(t.id+e);return s?.size??0}put(t,e,s,n,r){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==s&&this._notifyRemove(e,o.entry,o.size,i.ALL)),n>this._maxSize)return void this._notifyRemove(e,s,n,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,s,0,i.ALL);const h=1+Math.max(r,-4)- -3;this._db.set(e,new c(s,n,h)),this._size+=n,t.size+=n,this._checkSize()}updateSize(t,e,s,n){e=t.id+e;const r=this._db.get(e);if(r&&r.entry===s){for(this._size-=r.size,t.size-=r.size;n>this._maxSize;){const t=this._notifyRemove(e,s,n,i.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);n=t}r.size=n,this._size+=n,t.size+=n,this._checkSize()}}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach(((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._users.forAll((s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=e[r]||0;e[r]=s+t.size}}))}));const i={};this._users.forAll((t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(e);n.sort(((t,s)=>e[s]-e[t])),n.forEach((s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]));for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,t.size,i.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,t.size,i.ALL))),this._users.forAll((t=>t.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s,i){let n;return this._removeFuncs.some((r=>{if(t.startsWith(r[0])){const t=r[1](e,i,s);return"number"==typeof t&&(n=t),!0}return!1})),n}_checkSize(){this._users.forAll((t=>this._checkSizeLimits(t))),this._checkSizeLimits()}_checkSizeLimits(t){const e=t??this;if(e.maxSize<0||e.size<=e.maxSize)return;const s=t?.id;let i=!0;for(;i;){i=!1;for(const[n,r]of this._db)if(0===r.lifetime&&(!s||n.startsWith(s))){if(this._purgeItem(n,r,t),e.size<=.9*e.maxSize)return;i||=this._db.has(n)}}for(const[i,n]of this._db)if((!s||i.startsWith(s))&&(this._purgeItem(i,n,t),e.size<=.9*e.maxSize))return}_purgeItem(t,e,s=this._users.find((e=>t.startsWith(e.id)))){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const n=this._notifyRemove(t,e.entry,e.size,i.SOME);null!=n&&n>0&&(this._size+=n,s&&(s.size+=n),e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}let a=0;class c{constructor(t,e,s){this.entry=t,this.size=e,this.lifetime=s,this.lives=s}}},96523:(t,e,s)=>{s.d(e,{Go:()=>_,Y5:()=>f,mQ:()=>p,qq:()=>d});var i=s(43780),n=s(2952),r=s(20916);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function h(t){return t instanceof i.c}function a(t){return t instanceof n.c?Object.keys(t.items):h(t)?(0,r.m6)(t).keys():t?Object.keys(t):[]}function c(t,e){return t instanceof n.c?t.items[e]:t[e]}function l(t){return t?t.declaredClass:null}function u(t,e){const s=t.diff;if(s&&"function"==typeof s)return s(t,e);const i=a(t),n=a(e);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(t,e){return!(!Array.isArray(t)||!Array.isArray(e))&&t.length!==e.length}(t,e))return{type:"complete",oldValue:t,newValue:e};const r=n.filter((t=>!i.includes(t))),_=i.filter((t=>!n.includes(t))),f=i.filter((s=>n.includes(s)&&c(t,s)!==c(e,s))).concat(r,_).sort(),p=l(t);if(p&&o.has(p)&&f.length)return{type:"complete",oldValue:t,newValue:e};let d;const g=h(t)&&h(e);for(const i of f){const n=c(t,i),r=c(e,i);let o;if((g||"function"!=typeof n&&"function"!=typeof r)&&n!==r&&(null!=n||null!=r)){if(s&&s[i]&&"function"==typeof s[i])o=s[i]?.(n,r);else if(n instanceof Date&&r instanceof Date){if(n.getTime()===r.getTime())continue;o={type:"complete",oldValue:n,newValue:r}}else o="object"==typeof n&&"object"==typeof r&&l(n)===l(r)?u(n,r):{type:"complete",oldValue:n,newValue:r};null!=o&&(null!=d?d.diff[i]=o:d={type:"partial",diff:{[i]:o}})}}return d}function _(t,e){return f(t,e)}function f(t,e){if(null==t)return!1;const s=e.split(".");let i=t;for(const t of s){if("complete"===i.type)return!0;if("partial"!==i.type)return!1;{const e=i.diff[t];if(!e)return!1;i=e}}return!0}function p(t,e){if(!t)return!1;if("partial"===t.type){const s=Object.keys(t.diff);return 1===s.length&&s[0]===e}return!1}function d(t,e){if("function"!=typeof t&&"function"!=typeof e&&(null!=t||null!=e))return null==t||null==e||"object"==typeof t&&"object"==typeof e&&l(t)!==l(e)?{type:"complete",oldValue:t,newValue:e}:u(t,e)}},44444:(t,e,s)=>{function i(){const t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,s,i){const n=e[i],r=e[i+1];t[i]=s[0]*n+s[2]*r+s[4],t[i+1]=s[1]*n+s[3]*r+s[5]}function r(t,e,s,i=0,r=0,o=2){const h=r||e.length/o;for(let r=i;r<h;r++)n(t,e,s,r*o)}s.d(e,{Su:()=>i,Ws:()=>r}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){const e=new Float32Array(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},create:i,createView:function(t,e){return new Float32Array(t,e,6)},fromValues:function(t,e,s,i,n,r){const o=new Float32Array(6);return o[0]=t,o[1]=e,o[2]=s,o[3]=i,o[4]=n,o[5]=r,o},transform:n,transformMany:r},Symbol.toStringTag,{value:"Module"}))},38600:(t,e,s)=>{function i(){return new Float32Array(2)}function n(t,e){const s=new Float32Array(2);return s[0]=t,s[1]=e,s}function r(){return i()}function o(){return n(1,1)}function h(){return n(1,0)}function a(){return n(0,1)}s.d(e,{Qw:()=>l,Su:()=>i,WK:()=>n,cX:()=>c});const c=r(),l=o(),u=h(),_=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:u,UNIT_Y:_,ZEROS:c,clone:function(t){const e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:i,createView:function(t,e){return new Float32Array(t,e,2)},fromValues:n,ones:o,unitX:h,unitY:a,zeros:r},Symbol.toStringTag,{value:"Module"}))},64696:(t,e,s)=>{s.d(e,{GS:()=>h,IT:()=>a,ZX:()=>n,c9:()=>o,iW:()=>r});var i=s(47364);function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function r(t,e,s){const i=e[0],n=e[1],r=e[2],o=e[3],h=e[4],a=e[5],c=s[0],l=s[1],u=s[2],_=s[3],f=s[4],p=s[5];return t[0]=i*c+r*l,t[1]=n*c+o*l,t[2]=i*u+r*_,t[3]=n*u+o*_,t[4]=i*f+r*p+h,t[5]=n*f+o*p+a,t}function o(t,e,s){const i=e[0],n=e[1],r=e[2],o=e[3],h=e[4],a=e[5],c=Math.sin(s),l=Math.cos(s);return t[0]=i*l+r*c,t[1]=n*l+o*c,t[2]=i*-c+r*l,t[3]=n*-c+o*l,t[4]=h,t[5]=a,t}function h(t,e,s){const i=e[0],n=e[1],r=e[2],o=e[3],h=e[4],a=e[5],c=s[0],l=s[1];return t[0]=i,t[1]=n,t[2]=r,t[3]=o,t[4]=i*c+r*l+h,t[5]=n*c+o*l+a,t}function a(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=s,t[2]=-s,t[3]=i,t[4]=0,t[5]=0,t}function c(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t[3]=e[3]-s[3],t[4]=e[4]-s[4],t[5]=e[5]-s[5],t}const l=r,u=c;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t[3]=e[3]+s[3],t[4]=e[4]+s[4],t[5]=e[5]+s[5],t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},equals:function(t,e){const s=t[0],n=t[1],r=t[2],o=t[3],h=t[4],a=t[5],c=e[0],l=e[1],u=e[2],_=e[3],f=e[4],p=e[5],d=(0,i.Au)();return Math.abs(s-c)<=d*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(n-l)<=d*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-u)<=d*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(o-_)<=d*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(h-f)<=d*Math.max(1,Math.abs(h),Math.abs(f))&&Math.abs(a-p)<=d*Math.max(1,Math.abs(a),Math.abs(p))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+1)},fromRotation:a,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},identity:n,invert:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],o=e[4],h=e[5];let a=s*r-i*n;return a?(a=1/a,t[0]=r*a,t[1]=-i*a,t[2]=-n*a,t[3]=s*a,t[4]=(n*h-r*o)*a,t[5]=(i*o-s*h)*a,t):null},mul:l,multiply:r,multiplyScalar:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*s,t[5]=e[5]*s,t},multiplyScalarAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t[2]=e[2]+s[2]*i,t[3]=e[3]+s[3]*i,t[4]=e[4]+s[4]*i,t[5]=e[5]+s[5]*i,t},rotate:o,scale:function(t,e,s){const i=e[0],n=e[1],r=e[2],o=e[3],h=e[4],a=e[5],c=s[0],l=s[1];return t[0]=i*c,t[1]=n*c,t[2]=r*l,t[3]=o*l,t[4]=h,t[5]=a,t},set:function(t,e,s,i,n,r,o){return t[0]=e,t[1]=s,t[2]=i,t[3]=n,t[4]=r,t[5]=o,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:u,subtract:c,translate:h},Symbol.toStringTag,{value:"Module"}))},37648:(t,e,s)=>{s.d(e,{Cq:()=>_,WO:()=>n,c9:()=>p,m4:()=>f,qy:()=>a});var i=s(47364);function n(t,e,s){return t[0]=e,t[1]=s,t}function r(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t}function o(t,e,s){return t[0]=e[0]*s[0],t[1]=e[1]*s[1],t}function h(t,e,s){return t[0]=e[0]/s[0],t[1]=e[1]/s[1],t}function a(t,e){const s=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(s*s+i*i)}function c(t,e){const s=e[0]-t[0],i=e[1]-t[1];return s*s+i*i}function l(t){const e=t[0],s=t[1];return Math.sqrt(e*e+s*s)}function u(t){const e=t[0],s=t[1];return e*e+s*s}function _(t,e,s,i){const n=e[0],r=e[1];return t[0]=n+i*(s[0]-n),t[1]=r+i*(s[1]-r),t}function f(t,e,s){const i=e[0],n=e[1];return t[0]=s[0]*i+s[2]*n+s[4],t[1]=s[1]*i+s[3]*n+s[5],t}function p(t,e,s,i){const n=e[0]-s[0],r=e[1]-s[1],o=Math.sin(i),h=Math.cos(i);return t[0]=n*h-r*o+s[0],t[1]=n*o+r*h+s[1],t}const d=l,g=r,m=o,P=h,y=a,x=c,M=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t},angle:function(t,e){const s=t[0],i=t[1],n=e[0],r=e[1];let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));let h=n*n+r*r;h>0&&(h=1/Math.sqrt(h));const a=(s*n+i*r)*o*h;return a>1?0:a<-1?Math.PI:Math.acos(a)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,s){const i=e[0]*s[1]-e[1]*s[0];return t[0]=t[1]=0,t[2]=i,t},dist:y,distance:a,div:P,divide:h,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const s=t[0],n=t[1],r=e[0],o=e[1],h=(0,i.Au)();return Math.abs(s-r)<=h*Math.max(1,Math.abs(s),Math.abs(r))&&Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:d,length:l,lerp:_,max:function(t,e,s){return t[0]=Math.max(e[0],s[0]),t[1]=Math.max(e[1],s[1]),t},min:function(t,e,s){return t[0]=Math.min(e[0],s[0]),t[1]=Math.min(e[1],s[1]),t},mul:m,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const s=e[0],i=e[1];let n=s*s+i*i;return n>0&&(n=1/Math.sqrt(n),t[0]=e[0]*n,t[1]=e[1]*n),t},projectAndScale:function(t,e,s,i,n){let r=e[0]-s[0],o=e[1]-s[1];const h=(i[0]*r+i[1]*o)*(n-1);return r=i[0]*h,o=i[1]*h,t[0]=e[0]+r,t[1]=e[1]+o,t},random:function(t,e){e=e||1;const s=2*(0,i.QR)()*Math.PI;return t[0]=Math.cos(s)*e,t[1]=Math.sin(s)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t},scaleAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t},set:n,sqrDist:x,sqrLen:M,squaredDistance:c,squaredLength:u,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:g,subtract:r,transformMat2:function(t,e,s){const i=e[0],n=e[1];return t[0]=s[0]*i+s[2]*n,t[1]=s[1]*i+s[3]*n,t},transformMat2d:f,transformMat3:function(t,e,s){const i=e[0],n=e[1];return t[0]=s[0]*i+s[3]*n+s[6],t[1]=s[1]*i+s[4]*n+s[7],t},transformMat4:function(t,e,s){const i=e[0],n=e[1];return t[0]=s[0]*i+s[4]*n+s[12],t[1]=s[1]*i+s[5]*n+s[13],t}},Symbol.toStringTag,{value:"Module"}))},7857:(t,e,s)=>{s.d(e,{k:()=>h});var i=s(62088),n=s(68564),r=s(6704),o=s(85152);class h{static fromOptimized(t,e,s=!1,i=!1,n=1){return(new a).initialize(t,e,s,i,n)}static fromJSON(t,e=!1,s=!1){const[i,n]=l(t);return(new u).initialize(i,n,e,s,1)}static fromOptimizedCIM(t,e,s=!1,i=!1,n=1){return(new _).initialize(t,e,s,i,n)}static fromJSONCIM(t,e=!1,s=!1,i=1){const[n,r]=l(t);return(new f).initialize(n,r,e,s,i)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimized(e,s):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimizedCIM(e,s):null}static createEmptyOptimized(t,e=!1,s=!1,i=1){return(new a).initialize(new o.c,t,e,s,i)}static createEmptyJSON(t,e=!1,s=!1){return(new u).initialize([],t,e,s,1)}static createEmptyOptimizedCIM(t,e=!1,s=!1,i=1){return(new _).initialize(new o.c,t,e,s,i)}static createEmptyJSONCIM(t,e=!1,s=!1,i=1){return(new f).initialize([],t,e,s,i)}asJSON(){const t=(0,n.k)(this);return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat()}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1]}:"esriGeometryPolygon"===this.geometryType?{rings:t}:{paths:t}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const i=t,n=e;for(;this.nextPoint();)s+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return s+=(t-i)*(e+n),-.5*s}invertY(){this.yFactor*=-1}}class a extends h{constructor(){super(...arguments),this._end=-1}initialize(t,e,s,i,n){return this.hasZ=s,this.hasM=i,this.geometryType=e,this._stride=2+Number(s)+Number(i),this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=n,this}reset(){this.initialize(this._geometry,this.geometryType,this.hasZ,this.hasM,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}pathLength(){const t=this._end,e=this._stride,s=this._geometry.coords;let i=0;for(let n=this._pathOffset+e;n<t;n+=e){const t=s[n-e],r=s[n-e+1],o=s[n]-t,h=s[n+1]-r;i+=Math.sqrt(o*o+h*h)}return i}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,s=this._end-this._stride;for(let i=0;i<this._stride;i++)if(t[e+i]!==t[s+i])return!1;return!0}clone(){return(new a).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce(((t,e)=>t+e))}get pathSize(){const{lengths:t}=this._geometry;return this._pathIndex<0||this._pathIndex>t.length-1?0:this._geometry.isPoint?1:t[this._pathIndex]}get totalSize(){return this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function c(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function l(t){return(0,r.Cs)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.cZ)(t)?[t.paths,"esriGeometryPolyline"]:(0,r._)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.Ul)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r._x)(t)?[[[c(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class u extends h{initialize(t,e,s,i,n){return this._paths=t,this.geometryType=e,this.hasZ=s,this.hasM=i,this._pathIndex=this._pointIndex=-1,this.yFactor=n,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let s=0;for(let i=1;i<t;i++){const t=e[i-1],n=e[i],r=t[0],o=t[1],h=n[0]-r,a=n[1]-o;s+=Math.sqrt(h*h+a*a)}return s}startPath(){this._paths.push([])}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,n.k)(t);for(const t of e)this.pushPath(t)}asOptimized(){const t=new o.c;if("esriGeometryPoint"===this.geometryType)t.coords.push(...this._paths[0][0]),t.lengths.length=0;else for(const e of this._paths){for(const s of e)t.coords.push(s[0]),t.coords.push(s[1]*this.yFactor),this.hasZ&&t.coords.push(s[2]),this.hasM&&t.coords.push(s[this._mIndex]);t.lengths.push(e.length)}return t}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}clone(){return(new u).initialize((0,i.ct)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map((t=>t.length)).reduce(((t,e)=>t+e))}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class _ extends a{initialize(t,e,s,i,n){return super.initialize(t,e,s,i,n),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map((t=>new Set))),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new _).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class f extends u{initialize(t,e,s,i,n){return super.initialize(t,e,s,i,n)}clone(){return(new f).initialize((0,i.ct)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},67224:(t,e,s)=>{s.d(e,{S:()=>c});var i=s(83372),n=s(33008),r=s(95788),o=s(47452),h=s(41980);const a=222045e-19;function c(t){if(0===t.totalSize)return null;const e=(0,n.IV)(t);if(!e)return null;const s=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*a;let o=0,h=0;t.reset();for(let e=0;t.nextPath();e++){const s=t.getCurrentRingArea();s>h&&(h=s,o=e)}if(t.seekPath(o),0===t.pathSize)return null;t.seekPathStart();const c=(0,n.yC)(t);if(Math.abs(h)<=2*s*s)return[(c[0]+c[2])/2,(c[1]+c[3])/2];t.seekPathStart();const f=(0,r.$c)(t,(0,i.Su)());if(null===f)return null;if(t.totalPoints<4)return f;const p=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],d=[NaN,NaN,NaN,NaN],g=[NaN,NaN,NaN,NaN];let m=!1,P=u(f,t,!0);0===P.distance&&(m=!0,p[0][0]=f[0],p[0][1]=f[1],P=u(f,t,!1)),d[0]=P.distance,g[0]=0;const y=[NaN,NaN];let C=!1,S=.25,w=-1,A=NaN;do{if(A=NaN,p[1]=_(t,x(c[0],c[2],S),0,e),isNaN(p[1][0])||isNaN(p[1][1])||(P=u(p[1],t,!1),A=P.distance),!isNaN(A)&&A>s&&l(p[1],t))C=!0,d[1]=A,g[1]=M(p[1],f);else if(!isNaN(A)&&A>w&&(w=A,y[0]=p[1][0],y[1]=p[1][1]),S-=.01,S<.1){if(!(w>=0))break;C=!0,d[1]=w,p[1][0]=y[0],p[1][1]=y[1],g[1]=M(p[1],f)}}while(!C);C=!1,S=.5,w=-1;let I=.01,z=1;do{if(A=NaN,p[2]=_(t,x(c[0],c[2],S),0,e),isNaN(p[2][0])||isNaN(p[2][1])||(P=u(p[2],t,!1),A=P.distance),!isNaN(A)&&A>s&&l(p[2],t))C=!0,d[2]=A,g[2]=M(p[2],f);else if(!isNaN(A)&&A>w)w=A,y[0]=p[2][0],y[1]=p[2][1];else if(A>w&&(w=A,y[0]=p[2][0],y[1]=p[2][1]),S=.5+I*z,I+=.01,z*=-1,S<.3||S>.7){if(!(w>=0))break;C=!0,d[2]=w,p[2][0]=y[0],p[2][1]=y[1],g[2]=M(p[2],f)}}while(!C);C=!1,S=.75,w=-1;do{if(A=NaN,p[3]=_(t,x(c[0],c[2],S),0,e),isNaN(p[3][0])||isNaN(p[3][1])||(P=u(p[3],t,!1),A=P.distance),!isNaN(A)&&A>s&&l(p[3],t))C=!0,d[3]=A,g[3]=M(p[3],f);else if(A>w&&(w=A,y[0]=p[3][0],y[1]=p[3][1]),S+=.01,S>.9){if(!(w>=0))break;C=!0,d[3]=w,p[3][0]=y[0],p[3][1]=y[1],g[3]=M(p[3],f)}}while(!C);const v=[0,1,2,3],L=m?0:1;let k;for(let t=L;t<4;t++)for(let t=L;t<3;t++){const e=g[t],s=g[t+1];b(e,s)>0&&(k=v[t],v[t]=v[t+1],v[t+1]=k,g[t]=s,g[t+1]=e)}let T=L,E=0,O=0;for(let t=L;t<4;t++){switch(t){case 0:O=2*d[v[t]];break;case 1:O=1.66666666*d[v[t]];break;case 2:O=1.33333333*d[v[t]];break;case 3:O=d[v[t]]}O>E&&(E=O,T=v[t])}return p[T]}function l(t,e){let s,i,n,r,o=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(s=e.x,i=e.y;e.nextPoint();s=n,i=r)n=e.x,r=e.y,i>t[1]!=r>t[1]&&((n-s)*(t[1]-i)-(r-i)*(t[0]-s)>0?o++:o--);return 0!==o}function u(t,e,s){if(s&&l(t,e))return{coord:t,distance:0};let i=1/0,n=0,r=0,h=[0,0],a=[0,0];const c=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(h[0]=e.x,h[1]=e.y;e.nextPoint();h=a){a=[e.x,e.y],(0,o.ym)(c,t,h,a);const s=M(t,c);s<i&&(i=s,n=c[0],r=c[1])}return{coord:[n,r],distance:Math.sqrt(i)}}function _(t,e,s,n){const r=[e,0];let o=1/0,a=1/0,c=!1,l=!1;const u=[[e,n[1]-1],[e,n[3]+1]],_=[0,0],p=[0,0],d=[0,0],g=[[0,0],[0,0]],m=(0,i.Su)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(g[0][0]=t.x,g[0][1]=t.y;t.nextPoint();g[0][0]=g[1][0],g[0][1]=g[1][1]){if(g[1][0]=t.x,g[1][1]=t.y,null===f(m,g))continue;if(p[0]=u[0][0],p[1]=u[0][1],d[0]=u[1][0],d[1]=u[1][1],0===P(m,p,d))continue;if(!(0,h.qm)(u[0],u[1],g[0],g[1],_))continue;const e=_[1];o>a?e<o&&(o=e,c=!0):e<a&&(a=e,l=!0)}return c&&l?r[1]=(o+a)/2:r[0]=r[1]=NaN,r}function f(t,e){if(e.length<2)return null;t||(t=(0,i.Su)());const[s,n]=e[0],[r,o]=e[1];return t[0]=Math.min(s,r),t[1]=Math.min(n,o),t[2]=Math.max(s,r),t[3]=Math.max(n,o),t}const p=1,d=4,g=3,m=12;function P(t,e,s){let i=y(e,t),n=y(s,t);const r=t[0],o=t[1],h=t[2],a=t[3];if(i&n)return 0;if(!(i|n))return 4;const c=(i?1:0)|(n?2:0);do{const c=s[0]-e[0],l=s[1]-e[1];if(c>l)i&g?(i&p?(e[1]+=l*(r-e[0])/c,e[0]=r):(e[1]+=l*(h-e[0])/c,e[0]=h),i=y(e,t)):n&g?(n&p?(s[1]+=l*(r-s[0])/c,s[0]=r):(s[1]+=l*(h-s[0])/c,s[0]=h),n=y(s,t)):i?(i&d?(e[0]+=c*(o-e[1])/l,e[1]=o):(e[0]+=c*(a-e[1])/l,e[1]=a),i=y(e,t)):(n&d?(s[0]+=c*(o-s[1])/l,s[1]=o):(s[0]+=c*(a-s[1])/l,s[1]=a),n=y(s,t));else if(i&m?(i&d?(e[0]+=c*(o-e[1])/l,e[1]=o):(e[0]+=c*(a-e[1])/l,e[1]=a),i=y(e,t)):n&m?(n&d?(s[0]+=c*(o-s[1])/l,s[1]=o):(s[0]+=c*(a-s[1])/l,s[1]=a),n=y(s,t)):i?(i&p?(e[1]+=l*(r-e[0])/c,e[0]=r):(e[1]+=l*(h-e[0])/c,e[0]=h),i=y(e,t)):(n&p?(s[1]+=l*(r-s[0])/c,s[0]=r):(s[1]+=l*(h-s[0])/c,s[0]=h),n=y(s,t)),i&n)return 0}while(i|n);return c}function y(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function x(t,e,s){return t+(e-t)*s}function M(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function b(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const s=isNaN(t),i=isNaN(e);return s<i?-1:s>i?1:0}},1720:(t,e,s)=>{s.d(e,{w:()=>a,y:()=>h});var i=s(7857),n=s(93320);const r=512;let o;class h{constructor(t){this._geometry=t}next(){const t=this._geometry;return this._geometry=null,t}}function a(t,e){o||(o=new n.CU(0,0,0,1));const s="esriGeometryPolygon"===t.geometryType,h=s?n.ao.Polygon:n.ao.LineString,a=s?3:2;let c,l;for(o.reset(h),o.setPixelMargin(e+1),o.setExtent(r);t.nextPath();)if(!(t.pathSize<a)){for(t.nextPoint(),c=t.x,l=-t.y,o.moveTo(c,l);t.nextPoint();)c=t.x,l=-t.y,o.lineTo(c,l);s&&o.close()}const u=o.result(!1);if(u){const e=i.k.createEmptyOptimizedCIM(t.geometryType);for(const t of u){e.startPath();for(const s of t)e.pushXY(s.x,-s.y)}return e.reset(),e}return null}},55872:(t,e,s)=>{s.d(e,{g:()=>Mt,m:()=>bt});class i{static local(){return null===i.instance&&(i.instance=new i),i.instance}execute(t,e,s,i,r){return new n(t,e,s)}}i.instance=null;class n{constructor(t,e,s){this._inputGeometries=t,this._angleTolerance=void 0!==e.angleTolerance?e.angleTolerance:120,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPolygon"===t.geometryType)this._isClosed=!0;else if("esriGeometryPolyline"===t.geometryType)this._isClosed=!1;else{if("esriGeometryEnvelope"!==t.geometryType){t=this._inputGeometries.next();continue}if(this._maxCosAngle)return t;this._isClosed=!0}for(;t.nextPath();)this._processPath(t);return t.reset(),t}return null}_processPath(t){if(t.nextPoint()){const e=t.x,s=t.y;let i=e,n=s,r=t.pathSize,o=0,h=0,a=0,c=0,l=0,u=0;this._isClosed&&++r;for(let _=1;t.nextPoint()||_<r;++_){let f,p;this._isClosed&&_===r-1?(f=e,p=s):(f=t.x,p=t.y);const d=f-i,g=p-n,m=Math.sqrt(d*d+g*g);_>1&&m>0&&a>0&&(o*d+h*g)/m/a<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(c=d,l=g,u=m),m>0&&(i=f,n=p,o=d,h=g,a=m)}this._isClosed&&a>0&&u>0&&(o*c+h*l)/u/a<=this._maxCosAngle&&t.setControlPointAt(0)}}}var r=s(7857),o=s(68564),h=s(67576);function a(t,e){t[4]=e}class c{constructor(t,e=!0,s=!0,i=0){this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!s&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=i,this.iteratePath=!1,this.internalPlacement=new h.i}next(){if(!this.geometryCursor)return null;for(;this.iteratePath||this.geometryCursor.pathIndex<this.geometryCursor.totalSize-1;){this.iteratePath||this.geometryCursor.nextPath();const t=this.processPath(this.geometryCursor);if(t)return t}return this.geometryCursor=null,null}}class l{constructor(t,e,s,i=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=s,this.geomUnitsPerPoint=i,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let t=this.inputGeometries.next();for(;t&&(this.isClosed=this.acceptPolygon&&"esriGeometryPolygon"===t.geometryType||"esriGeometryEnvelope"===t.geometryType,this.multiPathCursor=t,!this.multiPathCursor);)t=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();const t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}var u=s(89232);const _=.03;class f{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,s,i,n;for(e=t.x,s=t.y;t.nextPoint();e=s,s=n)if(i=t.x,n=t.y,i!==e||n!==s)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,s,i){const n=s-t,r=i-e;return Math.sqrt(n*n+r*r)}getSegLength(t){const[[e,s],[i,n]]=t;return this.getLength(e,s,i,n)}getCoord2D(t,e,s,i,n){return[t+(s-t)*n,e+(i-e)*n]}getSegCoord2D(t,e){const[[s,i],[n,r]]=t;return this.getCoord2D(s,i,n,r,e)}getAngle(t,e,s,i,n){const r=s-t,o=i-e;return Math.atan2(o,r)}getAngleCS(t,e,s,i,n){const r=s-t,o=i-e,h=Math.sqrt(r*r+o*o);return h>0?[r/h,o/h]:[1,0]}getSegAngleCS(t,e){const[[s,i],[n,r]]=t;return this.getAngleCS(s,i,n,r,e)}cut(t,e,s,i,n,r){return[n<=0?[t,e]:this.getCoord2D(t,e,s,i,n),r>=1?[s,i]:this.getCoord2D(t,e,s,i,r)]}getSubCurve(t,e,s){const i=r.k.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(i,t,e,s)?i:null}appendSubCurve(t,e,s,i){t.startPath(),e.seekPathStart();let n=0,r=!0;if(!e.nextPoint())return!1;let o=e.x,h=e.y;for(;e.nextPoint();){const a=this.getLength(o,h,e.x,e.y);if(0!==a){if(r){if(n+a>s){const c=(s-n)/a;let l=1,u=!1;n+a>=i&&(l=(i-n)/a,u=!0);const _=this.cut(o,h,e.x,e.y,c,l);if(_&&t.pushPoints(_),u)break;r=!1}}else{if(n+a>i){const s=this.cut(o,h,e.x,e.y,0,(i-n)/a);s&&t.pushPoint(s[1]);break}t.pushXY(e.x,e.y)}n+=a,o=e.x,h=e.y}else o=e.x,h=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let s,i,n,r,o=0;for(s=t.x,i=t.y;t.nextPoint();s=n,i=r){n=t.x,r=t.y;const h=this.getLength(s,i,n,r);if(0!==h){if(o+h>e){const t=(e-o)/h;return this.getCoord2D(s,i,n,r,t)}o+=h}}return null}offset(t,e,s,i,n){if(!t||t.length<2)return null;let r=0,o=t[r++],h=r;for(;r<t.length;){const e=t[r];e[0]===o[0]&&e[1]===o[1]||(r!==h&&(t[h]=t[r]),o=t[h++]),r++}const a=t[0][0]===t[h-1][0]&&t[0][1]===t[h-1][1];if(a&&--h,h<(a?3:2))return null;const c=[];o=a?t[h-1]:null;let l=t[0];for(let n=0;n<h;n++){const r=n===h-1?a?t[0]:null:t[n+1];if(o)if(r){const t=[r[0]-l[0],r[1]-l[1]];this.normalize(t);const n=[l[0]-o[0],l[1]-o[1]];this.normalize(n);const h=n[0]*t[1]-n[1]*t[0],a=n[0]*t[0]+n[1]*t[1];if(0===h&&1===a){l=r;continue}if(h>=0==e<=0){if(a<1){const s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);const r=Math.sqrt((1+a)/2);if(r>1/i){const t=-Math.abs(e)/r;c.push([l[0]-s[0]*t,l[1]-s[1]*t])}}}else switch(s){case u.yM.Mitered:{const s=Math.sqrt((1+a)/2);if(s>0&&1/s<i){const i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);const r=Math.abs(e)/s;c.push([l[0]-i[0]*r,l[1]-i[1]*r]);break}}case u.yM.Bevelled:c.push([l[0]+n[1]*e,l[1]-n[0]*e]),c.push([l[0]+t[1]*e,l[1]-t[0]*e]);break;case u.yM.Rounded:if(a<1){c.push([l[0]+n[1]*e,l[1]-n[0]*e]);const s=Math.floor(2.5*(1-a));if(s>0){const i=1/s;let r=i;for(let o=1;o<s;o++,r+=i){const s=[n[1]*(1-r)+t[1]*r,-n[0]*(1-r)-t[0]*r];this.normalize(s),c.push([l[0]+s[0]*e,l[1]+s[1]*e])}}c.push([l[0]+t[1]*e,l[1]-t[0]*e])}break;case u.yM.Square:default:if(h<0)c.push([l[0]+(n[1]+n[0])*e,l[1]+(n[1]-n[0])*e]),c.push([l[0]+(t[1]-t[0])*e,l[1]-(t[0]+t[1])*e]);else{const s=Math.sqrt((1+Math.abs(a))/2),i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);const r=e/s;c.push([l[0]-i[0]*r,l[1]-i[1]*r])}}}else{const t=[l[0]-o[0],l[1]-o[1]];this.normalize(t),c.push([l[0]+t[1]*e,l[1]-t[0]*e])}else{const t=[r[0]-l[0],r[1]-l[1]];this.normalize(t),c.push([l[0]+t[1]*e,l[1]-t[0]*e])}o=l,l=r}return c.length<(a?3:2)?null:(a&&c.push([c[0][0],c[0][1]]),c)}}const p=1.7320508075688772,d=u.AX.OpenEnded;class g{static local(){return null===g.instance&&(g.instance=new g),g.instance}execute(t,e,s,i,n){return new m(t,e,s)}}g.instance=null;class m extends l{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new f,this._width=(void 0!==e.width?e.width:5)*s,this._arrowType=void 0!==e.geometricEffectArrowType?e.geometricEffectArrowType:void 0!==e.arrowType?e.arrowType:d,this._offsetFlattenError=_*s}processPath(t){const e=r.k.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case u.AX.OpenEnded:default:this._constructSimpleArrow(e,t,!0);break;case u.AX.Block:this._constructSimpleArrow(e,t,!1);break;case u.AX.Crossed:this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,s){const i=e.pathLength();let n=this._width;i<2*n&&(n=i/2);const r=this._curveHelper.getSubCurve(e,0,i-n);if(!r||!r.nextPath())return;r.seekPathStart();const h=n/2;if(this._curveHelper.isEmpty(r))return;const a=(0,o.g)(r),c=this._constructOffset(a,-h);if(!c)return;const l=this._constructOffset(a,h);if(!l)return;const u=this._constructArrowBasePoint(c,-h/2);if(!u)return;const _=this._constructArrowBasePoint(l,h/2);if(!_)return;e.seekInPath(e.pathSize-1);const f=[e.x,e.y];t.pushPath(l),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(f),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(c.reverse()),t.setControlPoint(),s||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(l[0])),t.reset()}_constructCrossedArrow(t,e){const s=e.pathLength();let i=this._width;s<i*(1+p+1)&&(i=s/(1+p+1)),e.seekPathStart();const n=this._curveHelper.getSubCurve(e,0,s-i*(1+p));if(!n)return;n.nextPath();const r=i/2;if(this._curveHelper.isEmpty(n))return;const h=(0,o.g)(n),a=this._constructOffset(h,r);if(!a)return;const c=this._constructOffset(h,-r);if(!c)return;const l=this._curveHelper.getSubCurve(e,0,s-i);if(!l)return;if(l.nextPath(),this._curveHelper.isEmpty(l))return;const u=(0,o.g)(l),_=this._constructOffset(u,r);if(!_)return;const f=this._constructOffset(u,-r);if(!f)return;const d=_[_.length-1],g=this._constructArrowBasePoint(_,r/2);if(!g)return;const m=f[f.length-1],P=this._constructArrowBasePoint(f,-r/2);if(!P)return;e.seekInPath(e.pathSize-1);const y=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(m),t.nextPoint(),t.setControlPoint(),t.pushPoint(P),t.nextPoint(),t.setControlPoint(),t.pushPoint(y),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoints(c.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,u.yM.Rounded,4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;const s=t[t.length-2],i=t[t.length-1],n=[i[0]-s[0],i[1]-s[1]];return this._curveHelper.normalize(n),[i[0]+n[1]*e,i[1]-n[0]*e]}}s(60708);var P,y=s(1720),x=s(56156);class M{static local(){return null===M.instance&&(M.instance=new M),M.instance}execute(t,e,s,i,n,r){return new b(t,e,s,i,n,r)}}M.instance=null;class b{constructor(t,e,s,i,n,r){this._inputGeometries=t,this._tileKey=i,this._geometryEngine=n,this._curveHelper=new f,this._size=(void 0!==e.size?e.size:1)*s,this._maxInflateSize=r*s,this._offsetFlattenError=_*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){const e=r.k.createEmptyOptimizedCIM(t.geometryType),s=(0,o.k)(t)[0],i=this._curveHelper.offset(s,this._size,u.yM.Rounded,4,this._offsetFlattenError);if(i)return e.pushPath(i),e}else if(this._size<0){const e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return r.k.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}const e=this._geometryEngine;if(null==e)return null;const s=this._tileKey?(0,y.w)(t,this._maxInflateSize):t;if(!s)continue;const i=e.buffer(x.c.WebMercator,s.asJSON(),this._size,1);return i?r.k.fromJSONCIM(i):null}return null}}class C{static local(){return null===C.instance&&(C.instance=new C),C.instance}execute(t,e,s,i,n){return new S(t,e,s)}}C.instance=null;class S{constructor(t,e,s){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=s,this._rule=e.rule??u.Ki.FullGeometry,this._defaultSize=this._defaultPointSize*s}next(){let t;for(;t=this._inputGeometries.next();){const e=this._processGeom((0,o.k)(t));if(e&&e.length)return r.k.fromJSONCIM({paths:e})}return null}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,s,i){return[t[0]*e+s[0]*i,t[1]*e+s[1]*i]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,s){return[t[0]+e,t[1]+s]}_sub(t,e){return[t[0]-e[0],t[1]-e[1]]}_dist(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}_norm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}_normalize(t,e=1){const s=e/this._norm(t);t[0]*=s,t[1]*=s}_leftPerpendicular(t){const e=-t[1],s=t[0];t[0]=e,t[1]=s}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){const e=t[1],s=-t[0];t[0]=e,t[1]=s}_rightPerp(t){return[t[1],-t[0]]}_dotProduct(t,e){return t[0]*e[0]+t[1]*e[1]}_crossProduct(t,e){return t[0]*e[1]-t[1]*e[0]}_rotateDirect(t,e,s){const i=t[0]*e-t[1]*s,n=t[0]*s+t[1]*e;t[0]=i,t[1]=n}_makeCtrlPt(t){const e=[t[0],t[1]];return a(e,1),e}_addAngledTicks(t,e,s,i){const n=this._sub(s,e);this._normalize(n);const r=this._crossProduct(n,this._sub(i,e));let o;o=r>0?this._rightPerp(n):this._leftPerp(n);const h=Math.abs(r)/2,a=[];a.push([e[0]+(o[0]-n[0])*h,e[1]+(o[1]-n[1])*h]),a.push(e),a.push(s),a.push([s[0]+(o[0]+n[0])*h,s[1]+(o[1]+n[1])*h]),t.push(a)}_addBezier2(t,e,s,i,n){if(0==n--)return void t.push(i);const r=this._mid(e,s),o=this._mid(s,i),h=this._mid(r,o);this._addBezier2(t,e,r,h,n),this._addBezier2(t,h,o,i,n)}_addBezier3(t,e,s,i,n,r){if(0==r--)return void t.push(n);const o=this._mid(e,s),h=this._mid(s,i),a=this._mid(i,n),c=this._mid(o,h),l=this._mid(h,a),u=this._mid(c,l);this._addBezier3(t,e,o,c,u,r),this._addBezier3(t,u,l,a,n,r)}_add90DegArc(t,e,s,i,n){const r=n??this._crossProduct(this._sub(s,e),this._sub(i,e))>0,o=this._mid(e,s),h=this._sub(o,e);r?this._leftPerpendicular(h):this._rightPerpendicular(h),o[0]+=h[0],o[1]+=h[1],this._addBezier3(t,e,this._mix(e,.33333,o,.66667),this._mix(s,.33333,o,.66667),s,4)}_addArrow(t,e,s){const i=e[0],n=e[1],r=e[e.length-1],o=this._sub(i,n);this._normalize(o);const h=this._crossProduct(o,this._sub(r,n)),a=.5*h,c=this._leftPerp(o),l=[r[0]-c[0]*h,r[1]-c[1]*h],u=e.length-1,_=[];_.push(s?[-c[0],-c[1]]:c);let f=[-o[0],-o[1]];for(let t=1;t<u-1;t++){const s=this._sub(e[t+1],e[t]);this._normalize(s);const i=this._dotProduct(s,f),n=this._crossProduct(s,f),r=Math.sqrt((1+i)/2),o=this._sub(s,f);this._normalize(o),o[0]/=r,o[1]/=r,_.push(n<0?[-o[0],-o[1]]:o),f=s}_.push(this._rightPerp(f));for(let s=_.length-1;s>0;s--)t.push([e[s][0]+_[s][0]*a,e[s][1]+_[s][1]*a]);t.push([l[0]+_[0][0]*a,l[1]+_[0][1]*a]),t.push([l[0]+_[0][0]*h,l[1]+_[0][1]*h]),t.push(i),t.push([l[0]-_[0][0]*h,l[1]-_[0][1]*h]),t.push([l[0]-_[0][0]*a,l[1]-_[0][1]*a]);for(let s=1;s<_.length;s++)t.push([e[s][0]-_[s][0]*a,e[s][1]-_[s][1]*a])}_cp2(t,e,s){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,s*this._defaultSize)}_cp3(t,e,s,i){if(t.length>=3)return t[2];const n=this._mix(t[0],1-s,e,s),r=this._sub(e,t[0]);return this._normalize(r),this._rightPerpendicular(r),[n[0]+r[0]*i*this._defaultSize,n[1]+r[1]*i*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;const e=t[0],s=this._cp2(t,-4,0),i=this._sub(e,s);this._normalize(i);const n=this._rightPerp(i);return[e,s,[e[0]+(n[0]-i[0])*this._defaultSize,e[1]+(n[1]-i[1])*this._defaultSize]]}_arrowLastSeg(t){const e=t[0],s=this._cp2(t,-4,0);let i;if(t.length>=3)i=t[t.length-1];else{const t=this._sub(e,s);this._normalize(t);const n=this._rightPerp(t);i=[e[0]+(n[0]-t[0])*this._defaultSize,e[1]+(n[1]-t[1])*this._defaultSize]}return[s,i]}_processGeom(t){if(!t)return null;const e=[];for(const s of t){if(!s||0===s.length)continue;const t=s.length;let i=s[0];switch(this._rule){case u.Ki.PerpendicularFromFirstSegment:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,4),r=[];r.push(n),r.push(this._mid(i,t)),e.push(r);break}case u.Ki.ReversedFirstSegment:{const t=this._cp2(s,0,-1);e.push([t,i]);break}case u.Ki.PerpendicularToSecondSegment:{const t=this._cp2(s,-4,1),n=this._cp3(s,t,.882353,-1.94),r=[];r.push(this._mid(t,n)),r.push(i),e.push(r);break}case u.Ki.SecondSegmentWithTicks:{const t=this._cp2(s,-4,1),n=this._cp3(s,t,.882353,-1.94),r=this._sub(n,t);let o;o=this._crossProduct(r,this._sub(i,t))>0?this._rightPerp(o):this._leftPerp(r);const h=[];h.push([t[0]+(o[0]-r[0])/3,t[1]+(o[1]-r[1])/3]),h.push(t),h.push(n),h.push([n[0]+(o[0]+r[0])/3,n[1]+(o[1]+r[1])/3]),e.push(h);break}case u.Ki.DoublePerpendicular:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,3),r=this._mid(i,t),o=this._sub(r,n);this._normalize(o);const h=this._crossProduct(o,this._sub(i,n));this._leftPerpendicular(o);const a=[];a.push(i),a.push([n[0]+o[0]*h,n[1]+o[1]*h]),e.push(a);const c=[];c.push([n[0]-o[0]*h,n[1]-o[1]*h]),c.push(t),e.push(c);break}case u.Ki.OppositeToFirstSegment:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,3),r=this._mid(i,t),o=this._sub(r,n);this._normalize(o);const h=this._crossProduct(o,this._sub(i,n));this._leftPerpendicular(o);const a=[];a.push([n[0]+o[0]*h,n[1]+o[1]*h]),a.push([n[0]-o[0]*h,n[1]-o[1]*h]),e.push(a);break}case u.Ki.TriplePerpendicular:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,4),r=this._mid(i,t),o=this._sub(r,n);this._normalize(o);const h=this._crossProduct(o,this._sub(i,n));this._leftPerpendicular(o);const a=[];a.push([n[0]+o[0]*h*.8,n[1]+o[1]*h*.8]),a.push([r[0]+.8*(i[0]-r[0]),r[1]+.8*(i[1]-r[1])]),e.push(a),e.push([n,r]);const c=[];c.push([n[0]-o[0]*h*.8,n[1]-o[1]*h*.8]),c.push([r[0]+.8*(t[0]-r[0]),r[1]+.8*(t[1]-r[1])]),e.push(c);break}case u.Ki.HalfCircleFirstSegment:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,4),r=this._mid(i,t);let o=this._sub(t,i);const h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),c=Math.sqrt((1+h)/2),l=Math.sqrt((1-h)/2),u=[];let _;this._crossProduct(o,this._sub(n,i))>0?(u.push(i),o=this._sub(i,r),_=t):(u.push(t),o=this._sub(t,r),_=i),this._rotateDirect(o,c,l),o[0]/=c,o[1]/=c;for(let t=1;t<=18;t++)u.push(this._add(r,o)),this._rotateDirect(o,h,a);u.push(_),e.push(u);break}case u.Ki.HalfCircleSecondSegment:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,1,-1);let r=this._sub(i,t);this._normalize(r);const o=this._crossProduct(r,this._sub(n,t))/2;this._leftPerpendicular(r);const h=[t[0]+r[0]*o,t[1]+r[1]*o];r=this._sub(t,h);const a=Math.cos(Math.PI/18);let c=Math.sin(Math.PI/18);o>0&&(c=-c);const l=[t];for(let t=1;t<=18;t++)this._rotateDirect(r,a,c),l.push(this._add(h,r));e.push(l);break}case u.Ki.HalfCircleExtended:{const n=this._cp2(s,0,-2),r=this._cp3(s,n,1,-1);let o;if(t>=4)o=s[3];else{const t=this._sub(i,n);o=this._add(r,t)}const h=this._dist(n,r)/2/.75,a=this._sub(n,i);this._normalize(a,h);const c=this._sub(r,o);this._normalize(c,h);const l=[o,r];e.push(l);const u=[this._clone(r)];this._addBezier3(u,r,this._add(r,c),this._add(n,a),n,4),u.push(i),e.push(u);break}case u.Ki.OpenCircle:{const t=this._cp2(s,-2,0),n=this._sub(t,i),r=Math.cos(Math.PI/18),o=-Math.sin(Math.PI/18),h=[t];for(let t=1;t<=33;t++)this._rotateDirect(n,r,o),h.push(this._add(i,n));e.push(h);break}case u.Ki.CoverageEdgesWithTicks:{const n=this._cp2(s,0,-1);let r,o;if(t>=3)r=s[2];else{const t=this._sub(n,i),e=this._leftPerp(t);r=[i[0]+e[0]-.25*t[0],i[1]+e[1]-.25*t[1]]}if(t>=4)o=s[3];else{const t=this._mid(i,n),e=this._sub(i,n);this._normalize(e),this._leftPerpendicular(e);const s=this._crossProduct(e,this._sub(r,t));this._rightPerpendicular(e),o=[r[0]+e[0]*s*2,r[1]+e[1]*s*2]}const h=this._sub(n,i);let a,c;a=this._crossProduct(h,this._sub(r,i))>0?this._rightPerp(h):this._leftPerp(h),c=[],c.push(r),c.push(i),c.push([i[0]+(a[0]-h[0])/3,i[1]+(a[1]-h[1])/3]),e.push(c),a=this._crossProduct(h,this._sub(o,n))>0?this._rightPerp(a):this._leftPerp(h),c=[],c.push([n[0]+(a[0]+h[0])/3,n[1]+(a[1]+h[1])/3]),c.push(n),c.push(o),e.push(c);break}case u.Ki.GapExtentWithDoubleTicks:{const n=this._cp2(s,0,2),r=this._cp3(s,n,0,1);let o;if(t>=4)o=s[3];else{const t=this._sub(n,i);o=this._add(r,t)}this._addAngledTicks(e,i,n,this._mid(r,o)),this._addAngledTicks(e,r,o,this._mid(i,n));break}case u.Ki.GapExtentMidline:{const n=this._cp2(s,2,0),r=this._cp3(s,n,0,1);let o;if(t>=4)o=s[3];else{const t=this._sub(n,i);o=this._add(r,t)}const h=[];h.push(this._mid(i,r)),h.push(this._mid(n,o)),e.push(h);break}case u.Ki.Chevron:{const n=this._cp2(s,-1,-1);let r;if(t>=3)r=s[2];else{const t=this._sub(n,i);this._leftPerpendicular(t),r=this._add(i,t)}e.push([n,this._makeCtrlPt(i),r]);break}case u.Ki.PerpendicularWithArc:{const t=this._cp2(s,0,-2),n=this._cp3(s,t,.5,-1);let r=this._sub(t,i);const o=this._norm(r);r[0]/=o,r[1]/=o;const h=this._crossProduct(r,this._sub(n,i));let a=this._dotProduct(r,this._sub(n,i));a<.05*o?a=.05*o:a>.95*o&&(a=.95*o);const c=[i[0]+r[0]*a,i[1]+r[1]*a];this._leftPerpendicular(r);let l=[];l.push([c[0]-r[0]*h,c[1]-r[1]*h]),l.push([c[0]+r[0]*h,c[1]+r[1]*h]),e.push(l);const u=[t[0]+r[0]*h,t[1]+r[1]*h];r=this._sub(t,u);const _=Math.cos(Math.PI/18);let f=Math.sin(Math.PI/18);h<0&&(f=-f),l=[i,t];for(let t=1;t<=9;t++)this._rotateDirect(r,_,f),l.push(this._add(u,r));e.push(l);break}case u.Ki.ClosedHalfCircle:{const t=this._cp2(s,2,0),n=this._mid(i,t),r=this._sub(t,n),o=Math.cos(Math.PI/18),h=Math.sin(Math.PI/18),a=[i,t];for(let t=1;t<=18;t++)this._rotateDirect(r,o,h),a.push(this._add(n,r));e.push(a);break}case u.Ki.TripleParallelExtended:{const t=this._cp2(s,0,-2),n=this._cp3(s,t,1,-2),r=this._mid(i,t),o=this._sub(n,t);this._normalize(o);const h=Math.abs(this._crossProduct(o,this._sub(r,t)))/2,c=this._dist(t,n),l=[t,i];l.push([i[0]+o[0]*c*.5,i[1]+o[1]*c*.5]),e.push(l);const u=[];u.push([r[0]-o[0]*h,r[1]-o[1]*h]),u.push([r[0]+o[0]*c*.375,r[1]+o[1]*c*.375]),a(u[u.length-1],1),u.push([r[0]+o[0]*c*.75,r[1]+o[1]*c*.75]),e.push(u);const _=[t,n];e.push(_);break}case u.Ki.ParallelWithTicks:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._sub(n,t);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r),this._addAngledTicks(e,i,t,n),this._addAngledTicks(e,this._mix(i,1,r,o),this._mix(t,1,r,o),this._mid(i,t));break}case u.Ki.Parallel:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._sub(t,i);this._normalize(r);const o=this._leftPerp(r),h=this._crossProduct(r,this._sub(n,i));let a=[i,t];e.push(a),a=[],a.push([i[0]+o[0]*h,i[1]+o[1]*h]),a.push([t[0]+o[0]*h,t[1]+o[1]*h]),e.push(a);break}case u.Ki.PerpendicularToFirstSegment:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._mid(i,t),o=this._sub(t,i);this._normalize(o);const h=this._crossProduct(o,this._sub(n,i));this._leftPerpendicular(o);const a=[];a.push([r[0]-o[0]*h*.25,r[1]-o[1]*h*.25]),a.push([r[0]+o[0]*h*1.25,r[1]+o[1]*h*1.25]),e.push(a);break}case u.Ki.ParallelOffset:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._sub(t,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const h=[];h.push([i[0]-r[0]*o,i[1]-r[1]*o]),h.push([t[0]-r[0]*o,t[1]-r[1]*o]),e.push(h);const a=[];a.push([i[0]+r[0]*o,i[1]+r[1]*o]),a.push([t[0]+r[0]*o,t[1]+r[1]*o]),e.push(a);break}case u.Ki.OffsetOpposite:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._sub(t,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const h=[];h.push([i[0]-r[0]*o,i[1]-r[1]*o]),h.push([t[0]-r[0]*o,t[1]-r[1]*o]),e.push(h);break}case u.Ki.OffsetSame:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._sub(t,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const h=[];h.push([i[0]+r[0]*o,i[1]+r[1]*o]),h.push([t[0]+r[0]*o,t[1]+r[1]*o]),e.push(h);break}case u.Ki.CircleWithArc:{let n=this._cp2(s,3,0);const r=this._cp3(s,n,.5,-1);let o,h;if(t>=4)o=s[3],h=this._crossProduct(this._sub(o,n),this._sub(r,n))>0;else{o=n,h=this._crossProduct(this._sub(o,i),this._sub(r,i))>0;const t=24*this._geomUnitsPerPoint,e=this._sub(o,i);this._normalize(e,t);const s=Math.sqrt(2)/2;this._rotateDirect(e,s,h?s:-s),n=this._add(i,e)}const c=this._sub(n,i),l=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),_=[n];for(let t=1;t<=36;t++)this._rotateDirect(c,l,u),_.push(this._add(i,c));this._add90DegArc(_,n,o,r,h),a(_[_.length-8],1),e.push(_);break}case u.Ki.DoubleJog:{let n,r,o=this._cp2(s,-3,1);if(n=t>=3?s[2]:this._add(i,this._sub(i,o)),t>=4)r=s[3];else{const t=i;i=o,r=n;const e=this._dist(i,t),s=this._dist(r,t);let h=30*this._geomUnitsPerPoint;.5*e<h&&(h=.5*e),.5*s<h&&(h=.5*s),o=this._mix(i,h/e,t,(e-h)/e),n=this._mix(r,h/s,t,(s-h)/s)}const h=this._mid(i,o),a=this._mid(r,n),c=this._dist(i,o),l=this._dist(n,r);let u=Math.min(c,l)/8;u=Math.min(u,24*this._geomUnitsPerPoint);const _=Math.cos(Math.PI/4);let f=this._sub(i,o);this._normalize(f,u),this._crossProduct(f,this._sub(r,o))>0?this._rotateDirect(f,_,-_):this._rotateDirect(f,_,_);let p=[];p.push(o),p.push(this._add(h,f)),p.push(this._sub(h,f)),p.push(i),e.push(p),f=this._sub(r,n),this._normalize(f,u),this._crossProduct(f,this._sub(i,n))<0?this._rotateDirect(f,_,_):this._rotateDirect(f,_,-_),p=[],p.push(n),p.push(this._add(a,f)),p.push(this._sub(a,f)),p.push(r),e.push(p);break}case u.Ki.PerpendicularOffset:{const t=this._cp2(s,-4,1),n=this._cp3(s,t,.882353,-1.94),r=this._sub(n,t);this._crossProduct(r,this._sub(i,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);const o=[r[0]/8,r[1]/8],h=this._sub(this._mid(t,n),o);e.push([h,i]);break}case u.Ki.LineExcludingLastSegment:{const t=this._arrowPath(s),i=[];let n=t.length-2;for(;n--;)i.push(t[n]);e.push(i);break}case u.Ki.MultivertexArrow:{const t=this._arrowPath(s),i=[];this._addArrow(i,t,!1),e.push(i);break}case u.Ki.CrossedArrow:{const t=this._arrowPath(s),i=[];this._addArrow(i,t,!0),e.push(i);break}case u.Ki.ChevronArrow:{const[t,n]=this._arrowLastSeg(s),r=10*this._geomUnitsPerPoint,o=this._sub(i,t);this._normalize(o);const h=this._crossProduct(o,this._sub(n,t)),a=this._leftPerp(o),c=[n[0]-a[0]*h*2,n[1]-a[1]*h*2],l=[];l.push([n[0]+o[0]*r,n[1]+o[1]*r]),l.push(i),l.push([c[0]+o[0]*r,c[1]+o[1]*r]),e.push(l);break}case u.Ki.ChevronArrowOffset:{const[t,n]=this._arrowLastSeg(s),r=this._sub(i,t);this._normalize(r);const o=this._crossProduct(r,this._sub(n,t));this._leftPerpendicular(r);const h=[n[0]-r[0]*o,n[1]-r[1]*o],a=[];a.push([h[0]+r[0]*o*.5,h[1]+r[1]*o*.5]),a.push(this._mid(h,i)),a.push([h[0]-r[0]*o*.5,h[1]-r[1]*o*.5]),e.push(a);break}case u.Ki.PartialFirstSegment:{const[t,n]=this._arrowLastSeg(s),r=this._sub(i,t);this._normalize(r);const o=this._crossProduct(r,this._sub(n,t));this._leftPerpendicular(r);const h=[n[0]-r[0]*o,n[1]-r[1]*o];e.push([t,h]);break}case u.Ki.Arch:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,1),r=this._sub(i,t),o=this._mix(n,1,r,.55),h=this._mix(n,1,r,-.55),a=[i];this._addBezier2(a,i,o,n,4),this._addBezier2(a,n,h,t,4),e.push(a);break}case u.Ki.CurvedParallelTicks:{const t=this._cp2(s,-4,1),n=this._cp3(s,t,.882353,-1.94),r=this._sub(n,t);this._crossProduct(r,this._sub(i,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);const o=[r[0]/8,r[1]/8],h=this._sub(this._mid(t,n),o),a=this._sub(this._mix(t,.75,n,.25),o),c=this._sub(this._mix(t,.25,n,.75),o),l=[t];this._addBezier2(l,t,a,h,3),this._addBezier2(l,h,c,n,3),e.push(l);for(let t=0;t<8;t++){const s=l[2*t+1],i=[this._clone(s)];i.push(this._add(s,[r[0]/4,r[1]/4])),e.push(i)}break}case u.Ki.Arc90Degrees:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,1),r=[t];this._add90DegArc(r,t,i,n),e.push(r);break}case u.Ki.FullGeometry:default:e.push(s)}}return e}}class w{static local(){return null===w.instance&&(w.instance=new w),w.instance}execute(t,e,s,i,n){return new A(t,e,s)}}w.instance=null;class A extends l{constructor(t,e,s){super(t,!0,!0),this._curveHelper=new f,this._beginCut=(void 0!==e.beginCut?e.beginCut:1)*s,this._endCut=(void 0!==e.endCut?e.endCut:1)*s,this._middleCut=(void 0!==e.middleCut?e.middleCut:0)*s,this._invert=void 0!==e.invert&&e.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(t){const{_beginCut:e,_endCut:s,_middleCut:i}=this,n=t.pathLength(),o=r.k.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==s||0!==i)if(e+s+i>=n)for(o.startPath();t.nextPoint();)o.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(o,t,0,e),this._curveHelper.appendSubCurve(o,t,.5*(n-i),.5*(n+i)),this._curveHelper.appendSubCurve(o,t,n-s,s)}else if(0===e&&0===s&&0===i)for(o.startPath();t.nextPoint();)o.pushXY(t.x,t.y);else e+s+i<n&&(0===i?this._curveHelper.appendSubCurve(o,t,e,n-s):(this._curveHelper.appendSubCurve(o,t,e,.5*(n-i)),this._curveHelper.appendSubCurve(o,t,.5*(n+i),n-s)));return 0===o.totalSize?null:o}}class I{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(t,e,s=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let e=0;e<t.length;e++){let i=Math.abs(t[e]);s&&i<1e-7&&(i=1e-7),this._values.push(i),this._length+=i}return e&&1&t.length&&(this._length*=2),0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){const e=this._values?this._values.length:0;for(let s=0;s<e;++s)this._values[s]*=t;this._length*=t,this.extPtGap*=t,this.ctrlPtGap*=t}addValue(t){this._length+=t,this._values.push(t)}firstValue(){return this._values[0]}lastValue(){return this._values[this._values.length-1]}nextValue(){return this._currentValue++,this._currentValue===this._values.length&&(this._currentValue=0),this._values[this._currentValue]}reset(){this._currentValue=-1}length(){return this._length}_setEmpty(){this.extPtGap=this.ctrlPtGap=this._length=0,this._currentValue=-1,this._values.length=0}}class z{constructor(){this.pt=null,this.ca=0,this.sa=0}}!function(t){t[t.FAIL=0]="FAIL",t[t.END=1]="END",t[t.CONTINUE=2]="CONTINUE"}(P||(P={}));class v{constructor(){this.reset()}reset(){this.segment=null,this.segmentLength=0,this.abscissa=0,this.isPathEnd=!1,this.isPartEnd=!1}isValid(){return null!==this.segment}copyTo(t){t.segment=this.segment,t.segmentLength=this.segmentLength,t.abscissa=this.abscissa,t.isPathEnd=this.isPathEnd,t.isPartEnd=this.isPartEnd}}class L extends f{constructor(t=0,e=!1){super(t,e),this._tolerance=_,this._currentPosition=new v}updateTolerance(t){this._tolerance=_*t}init(t,e,s=!0){return s?(this._patternLength=e.length(),this._partExtPtGap=e.extPtGap,this._partCtrlPtGap=e.ctrlPtGap):(this._patternLength=0,this._partExtPtGap=0,this._partCtrlPtGap=0),this._currentPosition.reset(),this._partSegCount=0,this._pathCursor=t,this._seg=-1,this._setPosAtNextPart()}curPositionIsValid(){return this._currentPosition.isValid()}nextPosition(t,e=P.FAIL){const s=new v;return!!this._nextPosition(t,s,null,e)&&(s.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);const[e,s]=this._getAngleCS(this._currentPosition);t.ca=e,t.sa=s}nextPointAndAngle(t,e,s=P.FAIL){const i=new v;if(!this._nextPosition(t,i,null,s))return!1;i.copyTo(this._currentPosition),e.pt=this._getPoint(i);const[n,r]=this._getAngleCS(i);return e.ca=n,e.sa=r,!0}nextCurve(t){if(0===t)return null;const e=r.k.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();const s=new v;return this._nextPosition(t,s,e,P.END)?(s.copyTo(this._currentPosition),e):null}isPathEnd(){return this._currentPosition.isPathEnd}getPathEnd(){return this._currentPosition.segment[1]}getPt(t){return this._pathCursor.seekInPath(t),[this._pathCursor.x,this._pathCursor.y]}getSeg(t){return[this.getPt(t),this.getPt(t+1)]}_nextPosition(t,e,s,i){if(this._currentPosition.isPathEnd)return!1;let n=this._currentPosition.abscissa;for(this._currentPosition.segmentLength>0&&(n/=this._currentPosition.segmentLength),this._currentPosition.copyTo(e);e.abscissa+t*this._partLengthRatio>e.segmentLength+this._tolerance;){if(s){if(0===s.pathSize)if(0===n){const t=e.segment[0];s.pushXY(t[0],t[1])}else s.pushPoint(this.getSegCoord2D(e.segment,n));const t=e.segment[1];s.pushXY(t[0],t[1])}if(n=0,t-=(e.segmentLength-e.abscissa)/this._partLengthRatio,this._partSegCount)e.segment=this._nextSegment(),e.segmentLength=this.getSegLength(e.segment),e.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return i!==P.FAIL&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,i===P.END?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,s){0===s.pathSize&&(0===n?s.pushPoint(e.segment[0]):s.pushPoint(this.getSegCoord2D(e.segment,n)));const t=e.abscissa/e.segmentLength;1===t?s.pushPoint(e.segment[1]):s.pushPoint(this.getSegCoord2D(e.segment,t))}return this._partSegCount||Math.abs(e.abscissa-e.segmentLength)<this._tolerance&&(e.isPathEnd=this._partIsLast,e.isPartEnd=!0),!0}_getPoint(t){const e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t){const e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegAngleCS(this._currentPosition.segment,e)}_setPosAtNextPart(){for(;this._partSegCount;)this._hasNextSegment()&&this._nextSegment(),this._partSegCount--;if(!this._hasNextSegment())return!1;for(this._partLength=0,this._partIsLast=!0,this._partSegCount=0;this._hasNextSegment();)if(this._partLength+=this.getSegLength(this._nextSegment()),this._partSegCount++,this._pathCursor.getControlPointAt(this._getEndPointIndex())){this._partIsLast=!this._hasNextSegment();break}let t=this._partSegCount;for(;t;)this._previousSegment(),--t;this._currentPosition.segment=this._nextSegment(),this._currentPosition.segmentLength=this.getSegLength(this._currentPosition.segment),this._currentPosition.abscissa=0,this._currentPosition.isPathEnd=this._currentPosition.isPartEnd=!1,--this._partSegCount;const e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let s=e+this._partSegCount+1;if(s>=this._pathCursor.pathSize&&(s=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(s),this._patternLength>0){const t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap;let s=Math.round((this._partLength-(t+e))/this._patternLength);s<=0&&(s=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+s*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg<this._pathCursor.pathSize-2}_previousSegment(){return this.getSeg(--this._seg)}_nextSegment(){return this.getSeg(++this._seg)}_getStartPointIndex(){return this._seg}_getEndPointIndex(){return this._seg+1}}var k=s(14624);class T{static local(){return null===T.instance&&(T.instance=new T),T.instance}execute(t,e,s,i,n){return new E(t,e,s)}}T.instance=null;class E extends l{constructor(t,e,s){super(t,!0,!0),this._firstCurve=null,this._walker=new L,this._walker.updateTolerance(s),this._endings=e.lineDashEnding,this._customDashPos=-(e.offsetAlongLine??0)*s,this._offsetAtEnd=(e.customEndingOffset??0)*s,this._pattern=new I,this._pattern.init((0,k.Wy)(e).dashTemplate,!0),this._pattern.scale(s)}processPath(t){if(0===this._pattern.length()){this.iteratePath=!1;const e=(0,o.g)(t);return r.k.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case u.Gi.HalfPattern:case u.Gi.HalfGap:default:this._pattern.extPtGap=0;break;case u.Gi.FullPattern:this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case u.Gi.FullGap:this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case u.Gi.NoConstraint:this.isClosed||(e=!1);break;case u.Gi.Custom:this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}const s=t.pathLength();if(this._pattern.isEmpty()||s<.1*this._pattern.length()){const e=(0,o.g)(t);return r.k.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){const e=(0,o.g)(t);return r.k.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case u.Gi.HalfPattern:default:t=.5*this._pattern.firstValue();break;case u.Gi.HalfGap:t=.5*-this._pattern.lastValue();break;case u.Gi.FullGap:t=-this._pattern.lastValue();break;case u.Gi.FullPattern:t=0;break;case u.Gi.NoConstraint:case u.Gi.Custom:t=-this._customDashPos}let s=t/this._pattern.length();s-=Math.floor(s),t=s*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let i=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),i=!i;e-=t,i?(this._walker.nextPosition(e),e=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(e),e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue())}let s=this._walker.nextCurve(e);if(s)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)s.pushXY(this._firstCurve.x,this._firstCurve.y);this._firstCurve=null}}else e=this._pattern.nextValue(),!this._walker.nextPosition(e)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&(s.pushCursor(this._firstCurve),this._firstCurve=null)):this.iteratePath=!0;else this.iteratePath=!1,s=this._firstCurve,this._firstCurve=null;return s?.reset(),s}}class O{static local(){return null===O.instance&&(O.instance=new O),O.instance}execute(t,e,s,i,n,r){return new G(t,e,s,i,n,r)}}O.instance=null;class G{constructor(t,e,s,i,n,r){switch(this._inputGeometries=t,this._tileKey=i,this._geometryEngine=n,this._maxInflateSize=r*s,this._width=(void 0!==e.width?e.width:2)*s,e.method){case u.Q9.Mitered:case u.Q9.Bevelled:case u.Q9.Rounded:case u.Q9.TrueBuffer:case u.Q9.Square:}this._option=e.option}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){const e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:r.k.fromJSONCIM({paths:[[[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]],[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}if("esriGeometryPolygon"===t.geometryType){if(0===this._width)return t.clone();const e=this._geometryEngine;if(null==e)return null;const s=this._tileKey?(0,y.w)(t,this._maxInflateSize):t.clone();if(!s)continue;const i=e.buffer(x.c.WebMercator,s.asJSON(),-this._width,1);if(i)for(const t of i.rings)if(t){s.startPath();for(const e of t.reverse())s.pushXY(e[0],s.yFactor*e[1])}return s}}return null}}class F{static local(){return null===F.instance&&(F.instance=new F),F.instance}execute(t,e,s,i,n){return new N(t,e,s)}}F.instance=null;class N extends l{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new f,this._length=(void 0!==e.length?e.length:20)*s,this._angle=void 0!==e.angle?e.angle:225,this._position=void 0!==e.position?e.position:50,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){const e=r.k.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);const s=t.x,i=t.y;t.seekInPath(t.pathSize-1);const n=t.x,o=t.y,h=[n-s,o-i];this._curveHelper.normalize(h);const a=s+(n-s)*this._position/100,c=i+(o-i)*this._position/100,l=Math.cos((90-this._angle)/180*Math.PI);let u=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(u=-u),this._mirror=!this._mirror;const _=[a-this._length/2*l,c-this._length/2*u],f=[a+this._length/2*l,c+this._length/2*u];return e.pushPath([[s,i],_,f,[n,o]]),e}}class R{static local(){return null===R.instance&&(R.instance=new R),R.instance}execute(t,e,s,i,n){return new B(t,e,s)}}R.instance=null;class B{constructor(t,e,s){this._inputGeometries=t,this._offsetX=void 0!==e.offsetX?e.offsetX*s:0,this._offsetY=void 0!==e.offsetY?e.offsetY*s:0}next(){let t=this._inputGeometries.next();for(;t;){if(t.totalSize>0)return this._move(t.clone(),this._offsetX,this._offsetY);t=this._inputGeometries.next()}return null}_move(t,e,s){for(;t.nextPath();)for(;t.nextPoint();)t.x=t.x+e,t.y=t.y+s;return t.reset(),t}}var V=s(6704);class X{static local(){return null===X.instance&&(X.instance=new X),X.instance}execute(t,e,s,i,n,r){return new Y(t,e,s,i,n,r)}}X.instance=null;class Y{constructor(t,e,s,i,n,r){this._inputGeometries=t,this._tileKey=i,this._geometryEngine=n,this._curveHelper=new f,this._offset=(e.offset??1)*s,this._method=e.method,this._maxInflateSize=Math.max(Math.abs(r*s),10),this._option=e.option,this._offsetFlattenError=_*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if(this._method===u.yM.Rounded&&this._offset>0){const e=(0,o.g)(t),s=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(s){const e=r.k.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(s),e}return null}const e=t.asJSON();if((0,V.Ul)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return r.k.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}const e=this._geometryEngine;if(null==e)continue;const s=this._tileKey?(0,y.w)(t,this._maxInflateSize):t.clone();if(!s)continue;const i=e.offset(x.c.WebMercator,s.asJSON(),-this._offset,1,this._method,4,this._offsetFlattenError);return i?r.k.fromJSONCIM(i):null}return null}}class U{static local(){return null===U.instance&&(U.instance=new U),U.instance}execute(t,e,s,i,n){return new D(t,e,s)}}U.instance=null;class D{constructor(t,e,s){this._inputGeometries=t,this._reverse=void 0===e.reverse||e.reverse}next(){let t=this._inputGeometries.next();for(;t;){if(!this._reverse)return t;if("esriGeometryPolyline"===t.geometryType)return H(t.clone());t=this._inputGeometries.next()}return null}}function H(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);const s=t.x,i=t.y;t.seekInPath(t.pathSize-e-1);const n=t.x,r=t.y;t.x=s,t.y=i,t.seekInPath(e),t.x=n,t.y=r}return t.reset(),t}var W=s(33008);class q{static local(){return null===q.instance&&(q.instance=new q),q.instance}execute(t,e,s,i,n){return new K(t,e,s)}}q.instance=null;class K{constructor(t,e,s){this._inputGeometries=t,this._rotateAngle=void 0!==e.angle?e.angle*Math.PI/180:0}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){const e=(0,W.IV)(t),s=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),s,i)}t=this._inputGeometries.next()}return null}_rotate(t,e,s){const i=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){const r=t.x-e,o=t.y-s;t.x=e+r*i-o*n,t.y=s+r*n+o*i}return t.reset(),t}}class J{static local(){return null===J.instance&&(J.instance=new J),J.instance}execute(t,e,s,i,n){return new j(t,e,s)}}J.instance=null;class j{constructor(t,e,s){this._inputGeometries=t,this._xFactor=void 0!==e.XScaleFactor?e.XScaleFactor:1.15,this._yFactor=void 0!==e.YScaleFactor?e.YScaleFactor:1.15}next(){const t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor)return t;if("esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){const e=(0,W.IV)(t),s=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),s,i)}}return null}_scaleCursor(t,e,s){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=s+(t.y-s)*this._yFactor;return t.reset(),t}}class Z{static local(){return null===Z.instance&&(Z.instance=new Z),Z.instance}execute(t,e,s,i,n){return new Q(t,e,s)}}Z.instance=null;class Q{constructor(t,e,s){this._inputGeometries=t,this._height=(void 0!==e.amplitude?e.amplitude:2)*s,this._period=(void 0!==e.period?e.period:3)*s,this._style=e.waveform,this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new I,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new L,this._walker.updateTolerance(s)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;const e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){const e=r.k.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();const s=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case u.y2.Sinus:default:this._constructCurve(e,s,!1);break;case u.y2.Square:this._constructSquare(e,s);break;case u.y2.Triangle:this._constructTriangle(e,s);break;case u.y2.Random:this._constructCurve(e,s,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,s){let i=Math.round(e/this._period);0===i&&(i=1);const n=16*i+1,r=e/i,o=this._period/16,h=1/n,a=2*Math.PI*e/r,c=2*Math.PI*Math.random(),l=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),_=.75-Math.random()/2,f=.75-Math.random()/2,p=new z;this._walker.curPointAndAngle(p),t.pushPoint(p.pt);let d=0;for(;;){if(!this._walker.nextPointAndAngle(o,p)){t.pushPoint(this._walker.getPathEnd());break}{const e=d;let i;if(d+=h,s){const t=this._height/2*(1+.3*Math.sin(_*a*e+c));i=t*Math.sin(a*e+l),i+=t*Math.sin(f*a*e+u),i/=2}else i=.5*this._height*Math.sin(.5*a*e);t.pushXY(p.pt[0]-i*p.sa,p.pt[1]+i*p.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let s=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const i=new z;this._walker.curPointAndAngle(i);const n=new z;if(this._walker.nextPointAndAngle(this._period,n)){const r=new z;this._walker.nextPointAndAngle(this._period,r)&&(s?(t.pushPoint(i.pt),s=!1):t.pushPoint(i.pt),t.pushXY(i.pt[0]-this._height/2*i.sa,i.pt[1]+this._height/2*i.ca),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}_constructTriangle(t,e){Math.round(e/this._period);let s=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const i=new z;this._walker.curPointAndAngle(i);const n=new z;if(this._walker.nextPointAndAngle(this._period/2,n)){const r=new z;this._walker.nextPointAndAngle(this._period,r)&&(this._walker.nextPosition(this._period/2)&&(s?(t.pushPoint(i.pt),s=!1):t.pushPoint(i.pt),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca)),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}}class ${static local(){return null===$.instance&&($.instance=new $),$.instance}execute(t,e,s,i,n){return new tt(t,e,s)}}$.instance=null;class tt extends c{constructor(t,e,s){super(t),this._geometryWalker=new L,this._geometryWalker.updateTolerance(s),this._angleToLine=e.angleToLine??!0,this._offset=(e.offset?e.offset:0)*s,this._originalEndings=e.endings,this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*s,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*s,this._pattern=new I,this._pattern.init(e.placementTemplate,!1),this._pattern.scale(s),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{this._originalEndings===u.AZ.WithFullGap&&this.isClosed?this._endings=u.AZ.WithMarkers:this._endings=this._originalEndings,this._pattern.extPtGap=0;let s,i=!0;switch(this._endings){case u.AZ.NoConstraint:s=-this._position,s=this._adjustPosition(s),i=!1;break;case u.AZ.WithHalfGap:default:s=-this._pattern.lastValue()/2;break;case u.AZ.WithFullGap:s=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case u.AZ.WithMarkers:s=0;break;case u.AZ.Custom:s=-this._position,s=this._adjustPosition(s),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,i))return null;this._pattern.reset();let n=0;for(;s>n;)s-=n,n=this._pattern.nextValue();n-=s,e=n,this.iteratePath=!0}const s=new z;return this._geometryWalker.nextPointAndAngle(e,s)?this._endings===u.AZ.WithFullGap&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):this._endings===u.AZ.WithMarkers&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(s.pt[0]-this._offset*s.sa,s.pt[1]+this._offset*s.ca),this._angleToLine&&this.internalPlacement.setRotateCS(s.ca,s.sa),this.internalPlacement):(this.iteratePath=!1,null)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class et{static local(){return null===et.instance&&(et.instance=new et),et.instance}execute(t,e,s,i,n){return new st(t,e,s)}}et.instance=null;class st extends c{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new f,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*s:0,this._type=e.extremityPlacement,this._position=void 0!==e.offsetAlongLine?e.offsetAlongLine*s:0,this._beginProcessed=!1}processPath(t){let e;switch(this._type){case u.G6.Both:default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iteratePath=!0);break;case u.G6.JustBegin:e=this._atExtremities(t,this._position,!0);break;case u.G6.JustEnd:e=this._atExtremities(t,this._position,!1);case u.G6.None:}return e}_atExtremities(t,e,s){if(s||t.seekPathEnd(),s?t.nextPoint():t.prevPoint()){let i=0,[n,r]=[0,0],[o,h]=[t.x,t.y];for(;s?t.nextPoint():t.prevPoint();){n=o,r=h,o=t.x,h=t.y;const s=this._curveHelper.getLength(n,r,o,h);if(i+s>e){const t=(e-i)/s,[a,c]=this._curveHelper.getAngleCS(n,r,o,h,t),l=this._curveHelper.getCoord2D(n,r,o,h,t);return this.internalPlacement.setTranslate(l[0]-this._offset*c,l[1]+this._offset*a),this._angleToLine&&this.internalPlacement.setRotateCS(-a,-c),this.internalPlacement}i+=s}}return null}}class it{static local(){return null===it.instance&&(it.instance=new it),it.instance}execute(t,e,s,i,n){return new nt(t,e,s)}}it.instance=null;class nt extends c{constructor(t,e,s){super(t),this._walker=new L,this._walker.updateTolerance(s),this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*s:0,this._beginGap=void 0!==e.beginPosition?e.beginPosition*s:0,this._endGap=void 0!==e.endPosition?e.endPosition*s:0,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new I,this._pattern.init(e.positionArray,!1,!1),this._subPathLen=0,this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath){const t=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+t;e=s-this._prevPos,this._prevPos=s}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=t.pathLength()-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(t,this._pattern,!1))return null;this._pattern.reset();const s=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+s;e=i-this._prevPos,this._prevPos=i,this.iteratePath=!0}const s=new z;if(!this._walker.nextPointAndAngle(e,s,P.END))return this.iteratePath=!1,null;this.internalPlacement.setTranslate(s.pt[0]-this._offset*s.sa,s.pt[1]+this._offset*s.ca);const i=this._isFirst&&this._flipFirst;let n,r;return this._angleToLine?(n=s.ca,r=s.sa):(n=1,r=0),i&&(n=-n,r=-r),this.internalPlacement.setRotateCS(n,r),this._isFirst=!1,this._posCount--,0===this._posCount&&(this.iteratePath=!1),this.internalPlacement}}var rt=s(72052);const ot=512,ht=24,at=1e-6;class ct{static local(){return null===ct.instance&&(ct.instance=new ct),ct.instance}execute(t,e,s,i,n){return new lt(t,e,s,i,n)}}ct.instance=null;class lt{constructor(t,e,s,i,n){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._accelerationMap=null,this._testInsidePolygon=!1,this._verticalSubdivision=!0,this._stepX=Math.abs(e.stepX??16)*s,this._stepY=Math.abs(e.stepY??16)*s,this._stepX=Math.round(128*this._stepX)/128,this._stepY=Math.round(128*this._stepY)/128,0!==this._stepX&&0!==this._stepY){if(this._gridType=e.gridType??u.sP.Fixed,this._gridType===u.sP.Random){const t=e.seed??13,s=1;this._randomLCG=new rt.c(t*s),this._randomness=(e.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0,this._buildRandomValues()}else{if(this._randomness=0,this._gridAngle=e.gridAngle??0,this._shiftOddRows=e.shiftOddRows??!1,this._offsetX=(e.offsetX??0)*s,this._offsetY=(e.offsetY??0)*s,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}if(this._graphicOriginX=0,this._graphicOriginY=0,null!=i){const[t,e,s,n]=i.split("/"),r=parseFloat(t),o=parseFloat(e),h=parseFloat(s),a=parseFloat(n);this._graphicOriginX=-(a*2**r+h)*ot,this._graphicOriginY=o*ot,this._testInsidePolygon=!0}this._internalPlacement=new h.i,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!lt._randValues){lt._randValues=[];for(let t=0;t<ht;t++)for(let t=0;t<ht;t++)lt._randValues.push(this._randomLCG.getFloat()),lt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,s,i,n,r,o,h,a,c,l,u,_,f,p;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,h=a=f=u=Number.MAX_VALUE,c=l=p=_=-Number.MAX_VALUE;const d=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)o=t.x,r=t.y,e=o-this._graphicOriginX-this._offsetX,s=r-this._graphicOriginY-this._offsetY,d?(i=this._cosAngle*e-this._sinAngle*s,n=this._sinAngle*e+this._cosAngle*s):(i=e,n=s),h=Math.min(h,i),c=Math.max(c,i),a=Math.min(a,n),l=Math.max(l,n),u=Math.min(u,r),_=Math.max(_,r),f=Math.min(f,o),p=Math.max(p,o);u=u!==Number.MAX_VALUE?u:-512-this._stepY,_=_!==-Number.MAX_VALUE?_:this._stepY,f=f!==Number.MAX_VALUE?f:-this._stepX,p=p!==-Number.MAX_VALUE?p:ot+this._stepX;const g=_-u,m=p-f;if(this._verticalSubdivision=g>=m,this._polygonMin=this._verticalSubdivision?u:f,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=ot-this._graphicOriginX-this._offsetX+this._stepX,s=-512-this._graphicOriginY-this._offsetY-this._stepY,i=0-this._graphicOriginY-this._offsetY+this._stepY;if(d){const n=[[t,s],[t,i],[e,s],[e,i]];t=s=Number.MAX_VALUE,e=i=-Number.MAX_VALUE;for(const r of n){const n=this._cosAngle*r[0]-this._sinAngle*r[1],o=this._sinAngle*r[0]+this._cosAngle*r[1];t=Math.min(t,n),e=Math.max(e,n),s=Math.min(s,o),i=Math.max(i,o)}}h=h!==Number.MAX_VALUE?Math.max(h,t):t,a=a!==Number.MAX_VALUE?Math.max(a,s):s,c=c!==-Number.MAX_VALUE?Math.min(c,e):e,l=l!==-Number.MAX_VALUE?Math.min(l,i):i}this._xMin=Math.round(h/this._stepX),this._xMax=Math.round(c/this._stepX),this._yMin=Math.round(a/this._stepY),this._yMax=Math.round(l/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,f,p,u,_)}_buildAccelerationMap(t,e,s,i,n){t.reset();const r=new Map,o=this._verticalSubdivision,h=o?n-i:s-e;let a=Math.ceil(h/10);if(a<=1)return;const c=Math.floor(h/a);let l,u,_,f,p,d,g,m,P,y,x;for(a++,this._delta=c,o?(P=-512-2*this._stepY,y=2*this._stepY,x=i):(P=-2*this._stepX,y=ot+2*this._stepX,x=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(l=t.x,u=t.y;t.nextPoint();l=_,u=f){if(_=t.x,f=t.y,o){if(u===f||u<P&&f<P||u>y&&f>y)continue;p=Math.min(u,f),d=Math.max(u,f)}else{if(l===_||l<P&&_<P||l>y&&_>y)continue;p=Math.min(l,_),d=Math.max(l,_)}for(;p<d;)g=Math.floor((p-x)/c),ut(g,l,u,_,f,r),p+=c;m=Math.floor((d-x)/c),m>g&&ut(m,l,u,_,f,r)}this._accelerationMap=r}_nextInside(){for(;;){if(this._currentX>this._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let t=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(t+=.5*this._stepX);const e=this._currentY*this._stepY+this._offsetY;let s,i;if(this._currentX++,this._gridType===u.sP.Random){const n=(this._currentX%ht+ht)%ht,r=(this._currentY%ht+ht)%ht;s=this._graphicOriginX+t+this._stepX*this._randomness*(.5-lt._randValues[r*ht+n])*2/3,i=this._graphicOriginY+e+this._stepY*this._randomness*(.5-lt._randValues[r*ht+n+1])*2/3}else s=this._graphicOriginX+this._cosAngle*t+this._sinAngle*e,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*e;if(!this._testInsidePolygon||this._isInsidePolygon(s,i,this._geometryCursor))return this._internalPlacement.setTranslate(s,i),this._internalPlacement}}_isInsidePolygon(t,e,s){if(null==this._accelerationMap)return function(t,e,s){let i,n,r,o,h=0;for(t+=at,e+=at,s.reset();s.nextPath();)if(s.nextPoint())for(i=s.x,n=s.y;s.nextPoint();i=r,n=o)r=s.x,o=s.y,n>e!=o>e&&((r-i)*(e-n)-(o-n)*(t-i)>0?h++:h--);return 0!==h}(t,e,s);t+=at,e+=at;const i=this._verticalSubdivision,n=i?e:t,r=Math.floor((n-this._polygonMin)/this._delta),o=this._accelerationMap.get(r);if(!o)return!1;let h,a,c,l=0;for(const s of o){if(h=s[0],a=s[1],i){if(h[1]>e==a[1]>e)continue;c=(a[0]-h[0])*(e-h[1])-(a[1]-h[1])*(t-h[0])}else{if(h[0]>t==a[0]>t)continue;c=(a[1]-h[1])*(t-h[0])-(a[0]-h[0])*(e-h[1])}c>0?l++:l--}return 0!==l}}function ut(t,e,s,i,n,r){let o=r.get(t);o||(o=[],r.set(t,o)),o.push([[e,s],[i,n]])}class _t{static local(){return null===_t.instance&&(_t.instance=new _t),_t.instance}execute(t,e,s,i,n){return new ft(t,e,s)}}_t.instance=null;class ft extends c{constructor(t,e,s){super(t),this._curveHelper=new f,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*s:0,this._relativeTo=e.relativeTo,this._position=void 0!==e.startPointOffset?e.startPointOffset*s:0,this._epsilon=.001*s}processPath(t){const e=this._position;if(this._relativeTo===u.IJ.SegmentMidpoint){if(this.iteratePath||(this.iteratePath=!0),t.nextPoint()){let[e,s]=[t.x,t.y],[i,n]=[0,0];for(;t.nextPoint();){i=t.x,n=t.y;const r=this._curveHelper.getLength(e,s,i,n);if(r<this._epsilon){e=i,s=n;continue}const o=.5+this._position/r,[h,a]=this._curveHelper.getAngleCS(e,s,i,n,o),c=this._curveHelper.getCoord2D(e,s,i,n,o);return this.internalPlacement.setTranslate(c[0]-this._offset*a,c[1]+this._offset*h),this._angleToLine&&this.internalPlacement.setRotateCS(h,a),this.internalPlacement}}return this.iteratePath=!1,null}const s=this._relativeTo===u.IJ.LineEnd;return this.onLine(t,e,s)}onLine(t,e,s){let i,n=!1;switch(this._relativeTo){case u.IJ.LineMiddle:default:t.seekPathStart(),i=t.pathLength()/2+e;break;case u.IJ.LineBeginning:i=e;break;case u.IJ.LineEnd:i=e,n=!0}s?t.seekPathEnd():t.seekPathStart();let r=0;if(s?t.prevPoint():t.nextPoint()){let[e,o]=[t.x,t.y],[h,a]=[0,0];for(;s?t.prevPoint():t.nextPoint();){h=t.x,a=t.y;const s=this._curveHelper.getLength(e,o,h,a);if(r+s>i){const t=(i-r)/s,[c,l]=this._curveHelper.getAngleCS(e,o,h,a,t),u=this._curveHelper.getCoord2D(e,o,h,a,t),_=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(u[0]-_*l,u[1]+_*c),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-c,-l):this.internalPlacement.setRotateCS(c,l)),this.internalPlacement}e=h,o=a,r+=s}}return null}}class pt{static local(){return null===pt.instance&&(pt.instance=new pt),pt.instance}execute(t,e,s,i,n){return new dt(t,e,s)}}pt.instance=null;class dt extends c{constructor(t,e,s){super(t),this._curveHelper=new f,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*s:0,this._endPoints=void 0===e.placeOnEndPoints||e.placeOnEndPoints,this._controlPoints=void 0===e.placeOnControlPoints||e.placeOnControlPoints,this._regularVertices=void 0===e.placeOnRegularVertices||e.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(t){if(this.iteratePath||(this._preparePath(t),this.iteratePath=!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;const e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let s=e[0],i=e[1];if(0!==this._offset){const t=Math.cos(e[2]),n=Math.sin(e[2]);s-=this._offset*n,i+=this._offset*t}return this.internalPlacement.setTranslate(s,i),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();const e=t.isClosed();let s=0,i=!1,n=0,r=0;if(t.seekPathStart(),t.nextPoint()){let o=t.x,h=t.y,a=t.getControlPoint(),c=!0,l=t.nextPoint();for(;l;){const u=t.x,_=t.y,f=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(o,h,u,_,0)),c?(c=!1,e?(s=n,i=a):(this._endPoints||this._controlPoints&&a)&&this._tags.push([o,h,n])):a?this._controlPoints&&this._tags.push([o,h,gt(r,n)]):this._regularVertices&&this._tags.push([o,h,gt(r,n)]),(this._angleToLine||0!==this._offset)&&(r=this._curveHelper.getAngle(o,h,u,_,1)),l=t.nextPoint(),l||(e?f||i?this._controlPoints&&this._tags.push([u,_,gt(r,s)]):this._regularVertices&&this._tags.push([u,_,gt(r,s)]):(this._endPoints||this._controlPoints&&f)&&this._tags.push([u,_,r])),o=u,h=_,a=f}}this._tagIterator=0}}function gt(t,e){const s=Math.PI;for(;Math.abs(e-t)>s+2e-15;)e-t>s?e-=2*s:e+=2*s;return(t+e)/2}var mt=s(95788),Pt=s(67224);class yt{static local(){return null===yt.instance&&(yt.instance=new yt),yt.instance}execute(t,e,s,i,n){return new xt(t,e,s)}}yt.instance=null;class xt{constructor(t,e,s){this._geometryCursor=t,this._offsetX=void 0!==e.offsetX?e.offsetX*s:0,this._offsetY=void 0!==e.offsetY?e.offsetY*s:0,this._method=void 0!==e.method?e.method:u.ms.OnPolygon,this._internalPlacement=new h.i}next(){const t=this._geometryCursor;return this._geometryCursor=null,t?this._polygonCenter(t):null}_polygonCenter(t){let e=!1;switch(this._method){case u.ms.CenterOfMass:{const s=(0,mt.iy)(t);s&&(this._internalPlacement.setTranslate(s[0]+this._offsetX,s[1]+this._offsetY),e=!0)}break;case u.ms.BoundingBoxCenter:{const s=(0,W.IV)(t);s&&(this._internalPlacement.setTranslate((s[2]+s[0])/2+this._offsetX,(s[3]+s[1])/2+this._offsetY),e=!0)}break;case u.ms.OnPolygon:default:{const s=(0,Pt.S)(t);null!==s&&(this._internalPlacement.setTranslate(s[0]+this._offsetX,s[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}function Mt(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return i.local();case"CIMGeometricEffectArrow":return g.local();case"CIMGeometricEffectBuffer":return M.local();case"CIMGeometricEffectControlMeasureLine":return C.local();case"CIMGeometricEffectCut":return w.local();case"CIMGeometricEffectDashes":return T.local();case"CIMGeometricEffectDonut":return O.local();case"CIMGeometricEffectJog":return F.local();case"CIMGeometricEffectMove":return R.local();case"CIMGeometricEffectOffset":return X.local();case"CIMGeometricEffectReverse":return U.local();case"CIMGeometricEffectRotate":return q.local();case"CIMGeometricEffectScale":return J.local();case"CIMGeometricEffectWave":return Z.local()}return null}function bt(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return $.local();case"CIMMarkerPlacementAtExtremities":return et.local();case"CIMMarkerPlacementAtRatioPositions":return it.local();case"CIMMarkerPlacementInsidePolygon":return ct.local();case"CIMMarkerPlacementOnLine":return _t.local();case"CIMMarkerPlacementOnVertices":return pt.local();case"CIMMarkerPlacementPolygonCenter":return yt.local()}return null}},67576:(t,e,s)=>{s.d(e,{i:()=>i});class i{constructor(){this.setIdentity()}getAngle(){return(null==this.rz||0===this.rz&&1!==this.rzCos&&0!==this.rzSin)&&(this.rz=Math.atan2(this.rzSin,this.rzCos)),this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(t,e){this.tx=t,this.ty=e}setTranslateZ(t){this.tz=t}setRotateCS(t,e){this.rz=void 0,this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=void 0,this.rzSin=void 0}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},14510:(t,e,s)=>{s.d(e,{mm:()=>r,O7:()=>o}),new(s(60024).c),s(9456),s(62088),s(66360),s(72052),s(83372),s(33008),s(73771),s(6220),new Map,new Set,s(69752),s(50144),s(7857),s(95788),s(6704),s(1720),s(55872),s(67576),s(60536),s(89232),s(39056);var i=s(14624);function n(t){if(!t)return 0;switch(t.type){case"CIMGeometricEffectArrow":return Math.abs(.5*t.width);case"CIMGeometricEffectBuffer":return Math.abs(t.size);case"CIMGeometricEffectExtension":case"CIMGeometricEffectRadial":return Math.abs(t.length);case"CIMGeometricEffectJog":return Math.abs(.5*t.length);case"CIMGeometricEffectMove":return Math.max(Math.abs((0,i.uc)(t.offsetX)),Math.abs((0,i.uc)(t.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(t.offset);case"CIMGeometricEffectRegularPolygon":return Math.abs(t.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(t.fromWidth),Math.abs(t.toWidth));case"CIMGeometricEffectWave":return Math.abs(t.amplitude);case"CIMGeometricEffectDonut":return Math.abs(t.width)}}function r(t){if(!t)return 0;let e=0;for(const s of t)e+=n(s);return e}s(67720),s(97576),Math.PI,s(45704),s(51760),Math.PI,Math.PI;const o=t=>{if(!t)return[0,0,0,0];const{r:e,g:s,b:i,a:n}=t;return[e,s,i,255*n]}},60536:(t,e,s)=>{s.d(e,{C:()=>i});const i={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetX:0,offsetY:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMSolidFill:{enable:!0,colorocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry"},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0}}},14624:(t,e,s)=>{s.d(e,{Cs:()=>d,L3:()=>g,O4:()=>h,OC:()=>I,Qh:()=>b,SQ:()=>m,Wy:()=>S,_K:()=>_,aE:()=>y,eK:()=>o,i:()=>p,i4:()=>w,i6:()=>u,iK:()=>A,i_:()=>a,k$:()=>P,kf:()=>M,oL:()=>f,ol:()=>C,uc:()=>l,yS:()=>x});var i=s(60536);const n=" /-,\n";function r(t){let e=t.length;for(;e--;)if(!n.includes(t.charAt(e)))return!1;return!0}function o(t,e){const s=[];let i=0,n=-1;do{if(n=t.indexOf("[",i),n>=i){if(n>i){const e=t.substr(i,n-i);s.push([e,null,r(e)])}if(i=n+1,n=t.indexOf("]",i),n>=i){if(n>i){const r=e[t.substr(i,n-i)];r&&s.push([null,r,!1])}i=n+1}}}while(-1!==n);if(i<t.length-1){const e=t.substr(i);s.push([e,null,r(e)])}return s}function h(t,e,s,i){let n="",r=null;for(const i of e){const[e,o,h]=i;if(e)h?r=e:(r&&(n+=r,r=null),n+=e);else{let e=o;null!=s&&(e=I(o,s));const i=t.attributes[e];i&&(r&&(n+=r,r=null),n+=i)}}return function(t,e){switch("string"!=typeof t&&(t=String(t)),e){case"LowerCase":return t.toLowerCase();case"Allcaps":return t.toUpperCase();default:return t}}(n,i)}function a(t){return null!=t&&("CIMGradientFill"===t.type||"CIMHatchFill"===t.type||"CIMPictureFill"===t.type||"CIMSolidFill"===t.type||"CIMWaterFill"===t.type)}function c(t){return null!=t&&("CIMMarkerPlacementAlongLineRandomSize"===t.type||"CIMMarkerPlacementAlongLineSameSize"===t.type||"CIMMarkerPlacementAlongLineVariableSize"===t.type||"CIMMarkerPlacementAtExtremities"===t.type||"CIMMarkerPlacementAtMeasuredUnits"===t.type||"CIMMarkerPlacementAtRatioPositions"===t.type||"CIMMarkerPlacementOnLine"===t.type||"CIMMarkerPlacementOnVertices"===t.type)}const l=(t,e=0)=>null==t||isNaN(t)?e:t;function u(t){if(!t)return"normal";switch(t.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function _(t){if(!t)return"normal";switch(t.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function f(t){let e="normal",s="normal";if(t){const i=t.toLowerCase();i.includes("italic")?e="italic":i.includes("oblique")&&(e="oblique"),i.includes("bold")?s="bold":i.includes("light")&&(s="lighter")}return{style:e,weight:s}}function p(t){return t.underline?"underline":t.strikethrough?"line-through":"none"}function d(t){if(!t)return null;switch(t.type){case"CIMPolygonSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=d(e);if(null!=t)return t}break;case"CIMTextSymbol":return d(t.symbol);case"CIMSolidFill":return t.color}return null}function g(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const e=t.symbolLayers;if(e)for(const t of e){const e=g(t);if(null!=e)return e}break}case"CIMTextSymbol":return g(t.symbol);case"CIMSolidStroke":return t.color}}function m(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=m(e);if(void 0!==t)return t}break;case"CIMTextSymbol":return m(t.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return t.width}}function P(t){switch(t){case"Left":default:return"left";case"Right":return"right";case"Center":case"Justify":return"center"}}function y(t){switch(t){case"Top":default:return"top";case"Center":return"middle";case"Baseline":return"baseline";case"Bottom":return"bottom"}}function x(t){return(t?Object.keys(t):[]).map((e=>({name:e,alias:e,type:"string"==typeof t[e]?"esriFieldTypeString":"esriFieldTypeDouble"})))}const M=t=>t.includes("data:image/svg+xml");function b(t){return t?t.charAt(0).toLowerCase()+t.substring(1):t}function C(t,e,s,i,n,r){const{infos:o}=r;let h=1,a=0,c=0,l=0;for(const{offsetX:t,offsetY:e,rotation:s,size:i,frameHeight:n,rotateClockWise:r}of o)c=v(t,e,a,h,c),l=z(t,e,a,h,l),n&&(h*=i/n),a=L(s,r,a);const u=v(i,n,a,h,c),_=z(i,n,a,h,l);return{size:t*h,rotation:L(e,s,a),offsetX:u,offsetY:_}}function S(t){return t?.dashTemplate&&"string"==typeof t.dashTemplate&&(t.dashTemplate=t.dashTemplate.split(" ").map(Number)),t}function w(t){if(null==t)return"Normal";switch(t.type){case"CIMTextSymbol":return t.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const e=t.symbolLayers;if(!e)return"Normal";for(const t of e)if("CIMVectorMarker"===t.type)return w(t)}break;case"CIMVectorMarker":{const e=t.markerGraphics;if(!e)return"Normal";for(const t of e)if(t.symbol)return w(t.symbol)}}return"Normal"}function A(t){if(t)switch(t.type){case"CIMTextSymbol":return t.height;case"CIMPointSymbol":{let e=0;if(t.symbolLayers)for(const s of t.symbolLayers)if(s)switch(s.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=s.size??i.C.CIMVectorMarker.size;t>e&&(e=t);break}}return e}case"CIMLineSymbol":case"CIMPolygonSymbol":{let e=0;if(t.symbolLayers)for(const s of t.symbolLayers)if(s)switch(s.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=s.width;null!=t&&t>e&&(e=t);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(s.markerPlacement&&c(s.markerPlacement)){const t=s.size??i.C.CIMVectorMarker.size;t>e&&(e=t)}break;case"CIMPictureFill":{const t=s.height;null!=t&&t>e&&(e=t)}}return e}}}function I(t,e){if(null!==e){const s=e.get(t);return s?s.name:t}return t}function z(t,e,s,i,n){const r=s*Math.PI/180;if(r){const s=Math.cos(r);return(Math.sin(r)*t+s*e)*i+n}return e*i+n}function v(t,e,s,i,n){const r=s*Math.PI/180;return r?(Math.cos(r)*t-Math.sin(r)*e)*i+n:t*i+n}function L(t,e,s){return e?s-t:s+t}},45704:(t,e,s)=>{s.d(e,{Sg:()=>l,Uj:()=>c,Uz:()=>a,YP:()=>u}),s(9456);var i=s(47472),n=s(7432),r=s(49736),o=s(28652),h=s(9504);const a=r.c.fromJSON(h.qe),c=n.c.fromJSON(h.MZ),l=i.c.fromJSON(h.yq),u=o.c.fromJSON(h.gF);r.c.fromJSON(h.gP),n.c.fromJSON(h.aV),i.c.fromJSON(h.wp)},9504:(t,e,s)=>{s.d(e,{MZ:()=>r,aV:()=>c,gF:()=>h,gP:()=>a,qe:()=>n,wp:()=>l,yq:()=>o});const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},h={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},c={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},l={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},27364:(t,e,s)=>{s.d(e,{c:()=>i});class i{constructor(t=0,e=0,s=0,i=0){this.x=t,this.y=e,this.width=s,this.height=i}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},57880:(t,e,s)=>{s.d(e,{Ab:()=>l,O4:()=>u,OS:()=>c,Wv:()=>o,YT:()=>a});var i=s(66360);const n=()=>i.c.getLogger("esri.views.2d.engine.webgl.alignmentUtils");var r,o,h;function a(t){if(!t)return r.Center;switch(t){case"Left":case"left":return r.Left;case"Right":case"right":return r.Right;case"Justify":return n().warnOnce("Horizontal alignment 'justify' is not implemented. Falling back to 'center'."),r.Center;case"Center":case"center":return r.Center}}function c(t){if(!t)return o.Center;switch(t){case"Top":case"top":return o.Top;case"Center":case"middle":return o.Center;case"Baseline":case"baseline":return o.Baseline;case"Bottom":case"bottom":return o.Bottom}}function l(t){switch(t){case r.Right:case"right":return-1;case r.Center:case"center":return 0;case r.Left:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function u(t){switch(t){case o.Top:case"top":return 1;case o.Center:case"middle":return 0;case o.Bottom:case o.Baseline:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}(h=r||(r={}))[h.Left=-1]="Left",h[h.Center=0]="Center",h[h.Right=1]="Right",function(t){t[t.Top=1]="Top",t[t.Center=0]="Center",t[t.Bottom=-1]="Bottom",t[t.Baseline=2]="Baseline"}(o||(o={}))},47656:(t,e,s)=>{s.d(e,{c:()=>n});var i=s(38600);class n{constructor(t,e,s,n){this.computedX=0,this.computedY=0,this.center=(0,i.WK)(t,e),this.centerT=(0,i.Su)(),this.halfWidth=s/2,this.halfHeight=n/2,this.width=s,this.height=n}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(t){this.center[0]=t}set y(t){this.center[1]=t}clone(){return new n(this.x,this.y,this.width,this.height)}serialize(t){return t.writeF32(this.center[0]),t.writeF32(this.center[1]),t.push(this.width),t.push(this.height),t}findCollisionDelta(t,e=4){const s=Math.abs(t.centerT[0]-this.centerT[0]),i=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/s,r=(t.halfHeight+this.halfHeight+e)/i,o=Math.min(n,r);return Math.log2(o)}extend(t){const e=Math.min(this.xmin,t.xmin),s=Math.min(this.ymin,t.ymin),i=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-s,r=e+i/2,o=s+n/2;this.width=i,this.height=n,this.halfWidth=i/2,this.halfHeight=n/2,this.x=r,this.y=o}static deserialize(t){const e=t.readF32(),s=t.readF32(),i=t.readInt32(),r=t.readInt32();return new n(e,s,i,r)}}},97576:(t,e,s)=>{s.d(e,{C0:()=>S});var i=s(64696),n=s(44444),r=s(37648),o=s(38600),h=s(57880),a=s(27364),c=s(47656);const l=22,u=4,_=l+u,f=l-6,p=3,d=Math.PI/180;class g{constructor(t,e,s,i){this._rotationT=(0,n.Su)(),this._xBounds=0,this._yBounds=0,this.minZoom=0,this.maxZoom=255,this._bounds=null;const r=s.rect,o=new Float32Array(8);t*=i,e*=i;const h=s.code?r.width*i:s.metrics.width,a=s.code?r.height*i:s.metrics.height;this.width=h,this.height=a,o[0]=t,o[1]=e,o[2]=t+h,o[3]=e,o[4]=t,o[5]=e+a,o[6]=t+h,o[7]=e+a,this._data=o,this._setTextureCoords(r),this._scale=i,this._mosaic=s,this.x=t,this.y=e,this.maxOffset=Math.max(t+h,e+a)}get mosaic(){return this._mosaic}set angle(t){this._angle=t,(0,i.IT)(this._rotationT,-t),this._setOffsets()}get angle(){return this._angle}get xTopLeft(){return this._data[0]}get yTopLeft(){return this._data[1]}get xBottomRight(){return this._data[6]}get yBottomRight(){return this._data[7]}get texcoords(){return this._texcoords}get textureBinding(){return this._mosaic.textureBinding}get offsets(){return this._offsets||this._setOffsets(),this._offsets}get char(){return String.fromCharCode(this._mosaic.code)}get code(){return this._mosaic.code}get bounds(){if(!this._bounds){const{height:t,width:e}=this._mosaic.metrics,s=e*this._scale,r=Math.abs(t)*this._scale,o=new Float32Array(8);o[0]=this.x,o[1]=this.y,o[2]=this.x+s,o[3]=this.y,o[4]=this.x,o[5]=this.y+r,o[6]=this.x+s,o[7]=this.y+r;const h=(0,i.iW)((0,n.Su)(),this._rotationT,this._transform);(0,n.Ws)(o,o,h);let a=1/0,l=1/0,u=0,_=0;for(let t=0;t<4;t++){const e=o[2*t],s=o[2*t+1];a=Math.min(a,e),l=Math.min(l,s),u=Math.max(u,e),_=Math.max(_,s)}const f=u-a,p=_-l,d=a+f/2,g=l+p/2;this._bounds=new c.c(d,g,f,p)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}_setOffsets(){this._offsets||(this._offsets={topLeft:[0,0],topRight:[0,0],bottomLeft:[0,0],bottomRight:[0,0]});const t=(0,i.iW)((0,n.Su)(),this._rotationT,this._transform);this._offsets.topLeft[0]=this._data[0],this._offsets.topLeft[1]=this._data[1],this._offsets.topRight[0]=this._data[2],this._offsets.topRight[1]=this._data[3],this._offsets.bottomLeft[0]=this._data[4],this._offsets.bottomLeft[1]=this._data[5],this._offsets.bottomRight[0]=this._data[6],this._offsets.bottomRight[1]=this._data[7],(0,r.m4)(this._offsets.topLeft,this._offsets.topLeft,t),(0,r.m4)(this._offsets.topRight,this._offsets.topRight,t),(0,r.m4)(this._offsets.bottomLeft,this._offsets.bottomLeft,t),(0,r.m4)(this._offsets.bottomRight,this._offsets.bottomRight,t)}_setTextureCoords({x:t,y:e,width:s,height:i}){this._texcoords={topLeft:[t,e],topRight:[t+s,e],bottomLeft:[t,e+i],bottomRight:[t+s,e+i]}}}const m=(t,e)=>({code:0,page:0,sdf:!0,rect:new a.c(0,0,11,8),textureBinding:e,metrics:{advance:0,height:4,width:t,left:0,top:0}});function P(t,e){return t.forEach((t=>(0,r.m4)(t,t,e))),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class y{constructor(t,e,s){this._rotation=0,this._decorate(t,e,s),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==s.angle,this._transform=this._createGlyphTransform(this.bounds,s),this._borderLineSizePx=s.borderLineSizePx,(s.borderLineSizePx||s.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(const e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;const e=this._transform,s=(0,i.IT)((0,n.Su)(),t);(0,i.iW)(e,s,e);for(const t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,s){if(!s.decoration||"none"===s.decoration||!t.length)return;const i=s.scale,n="underline"===s.decoration?_:f,r=t[0].textureBinding;for(const s of e){const e=s.startX*i,o=s.startY*i,h=(s.width+s.glyphWidthEnd)*i;t.push(new g(e,o+n*i,m(h,r),1))}}shapeBackground(t){const e=(1.5+(this._borderLineSizePx||0))/2,s=this._borderLineSizePx?e:0,{xmin:i,ymin:n,xmax:r,ymax:o,x:h,y:a,width:l,height:u}=this.bounds,_=[i-8,n-8],f=[r+8,n-8],p=[i-8,o+8],d=[r+8,o+8],g=P([[_[0]-e,_[1]-e],[f[0]+e,f[1]-e],[_[0]+s,_[1]+s],[f[0]-s,f[1]+s]],t),m=P([[p[0]+s,p[1]-s],[d[0]-s,d[1]-s],[p[0]-e,p[1]+e],[d[0]+e,d[1]+e]],t),y=P([[_[0]-e,_[1]-e],[_[0]+s,_[1]+s],[p[0]-e,p[1]+e],[p[0]+s,p[1]-s]],t),x=P([[f[0]-s,f[1]+s],[f[0]+e,f[1]-e],[d[0]-s,d[1]-s],[d[0]+e,d[1]+e]],t),M={main:P([_,f,p,d],t),top:g,bot:m,left:y,right:x};return[new c.c(h,a,l+2*e,u+2*e),M]}get boundsT(){const t=this.bounds,e=(0,r.WO)((0,o.Su)(),t.x,t.y);if((0,r.m4)(e,e,this._transform),this._hasRotation){const s=Math.max(t.width,t.height);return new c.c(e[0],e[1],s,s)}return new c.c(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,s=1/0,i=0,n=0;for(const r of t)e=Math.min(e,r.xTopLeft),s=Math.min(s,r.yTopLeft),i=Math.max(i,r.xBottomRight),n=Math.max(n,r.yBottomRight);const r=i-e,o=n-s;return new c.c(e+r/2,s+o/2,r,o)}_createGlyphTransform(t,e){const s=d*e.angle,h=(0,n.Su)(),a=(0,o.Su)();return(0,i.GS)(h,h,(0,r.WO)(a,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,i.c9)(h,h,s):((0,i.GS)(h,h,(0,r.WO)(a,t.x,t.y)),(0,i.c9)(h,h,s),(0,i.GS)(h,h,(0,r.WO)(a,-t.x,-t.y))),h}}class x{constructor(t,e,s,i,n,r){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,s)),this.end=Math.max(0,Math.max(e,s)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].metrics.width),this.width=i,this.yMin=n,this.yMax=r}}const M=t=>10===t,b=t=>32===t;function C(t,e){let s=0;for(let e=0;e<t.length;e++){const{width:i}=t[e];s=Math.max(i,s)}const i="underline"===e.decoration?u:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+i-n,width:s}}function S(t,e){const s=e.scale,i=new Array,{glyphs:n,isRightToLeft:r}=t,o=function(t,e,s){const i=new Array,n=1/s.scale,r=s.maxLineWidth*n,o=e?t.length-1:0,h=e?-1:t.length,a=e?-1:1;let c=o,l=0,u=0,_=c,f=_,p=0,d=1/0,g=0;for(;c!==h;){const{code:e,metrics:s}=t[c],n=Math.abs(s.top);if(M(e)||b(e)||(d=Math.min(d,n),g=Math.max(g,n+s.height)),M(e))c!==o&&(i.push(new x(t,_,c-a,l,d,g)),d=1/0,g=0),l=0,_=c+a,f=c+a,u=0;else if(b(e))f=c+a,u=0,p=s.advance,l+=s.advance;else if(l>r){if(f!==_){const e=f-2*a;l-=p,i.push(new x(t,_,e,l-u,d,g)),d=1/0,g=0,_=f,l=u}else i.push(new x(t,_,c-a,l,d,g)),d=1/0,g=0,_=c,f=c,l=0;l+=s.advance,u+=s.advance}else l+=s.advance,u+=s.advance;c+=a}const m=new x(t,_,c-a,l,d,g);return m.start>=0&&m.end<t.length&&i.push(m),i}(n,r,e),a=C(o,e),c=(0,h.YT)(e.horizontalAlignment),u=(0,h.OS)(e.verticalAlignment),_=u===h.Wv.Baseline?1:0,f=_?0:u-1,d=(1-_)*-a.y+f*(a.height/2)+(_?1:0)*-l;for(let t=0;t<o.length;t++){const{start:r,end:h,width:a}=o[t];let l=-1*(c+1)*(a/2)-p;const u=t*e.lineHeight+d-p;o[t].startX=l,o[t].startY=u;for(let t=r;t<=h;t++){const e=n[t];if(M(e.code))continue;const r=new g(l+e.metrics.left,u-e.metrics.top,e,s);l+=e.metrics.advance,i.push(r)}}return new y(i,o,e)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5864],{60024:(t,e,s)=>{s.d(e,{c:()=>G});const i=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],n=["آ","أ","إ","ا"],r=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],h=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],a=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],c=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],l=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],_=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],f=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],p=["ء","ف"],d=["غ","ي"],g=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],m=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],P=0,y=1,x=2,M=3,b=4,C=5,S=6,w=7,A=8,I=10,z=11,v=12,L=18,k=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],T=100,E=[T+0,P,P,P,P,T+1,T+2,T+3,y,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,T+4,b,b,b,P,b,P,b,P,b,b,b,P,P,b,b,P,P,P,P,P,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,P,P,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,P,P,b,b,P,P,b,b,P,P,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,P,P,P,T+5,w,w,T+6,T+7],O=[[L,L,L,L,L,L,L,L,L,S,C,S,A,C,L,L,L,L,L,L,L,L,L,L,L,L,L,L,C,C,C,S,A,b,b,z,z,z,b,b,b,b,b,I,9,I,9,9,x,x,x,x,x,x,x,x,x,x,9,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,L,L,L,L,L,L,C,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,9,b,z,z,z,z,b,b,b,b,P,b,b,L,b,b,z,z,x,x,b,P,b,b,b,x,P,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,P,P,P,P,P,P,P,P],[P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,P,P,P,P,P,P,P,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,P,b,b,b,b,b,b,b,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,y,v,y,v,v,y,v,v,y,v,b,b,b,b,b,b,b,b,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b,b,b,b,b,y,y,y,y,y,b,b,b,b,b,b,b,b,b,b,b],[M,M,M,M,b,b,b,b,w,z,z,w,9,w,b,b,v,v,v,v,v,v,v,v,v,v,v,w,b,b,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,M,M,M,M,M,M,M,M,M,M,z,M,M,w,w,w,v,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,v,v,v,v,v,v,v,M,b,v,v,v,v,v,v,w,w,v,v,b,v,v,v,v,w,w,x,x,x,x,x,x,x,x,x,x,w,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,b,w,w,v,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,b,b,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,v,v,v,v,v,v,v,v,v,v,v,w,b,b,b,b,b,b,b,b,b,b,b,b,b,b,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,v,v,v,v,v,v,v,v,v,y,y,b,b,b,b,y,b,b,b,b,b],[A,A,A,A,A,A,A,A,A,A,A,L,L,L,P,y,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,A,C,13,14,15,16,17,9,z,z,z,z,z,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,9,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,A,L,L,L,L,L,b,b,b,b,b,L,L,L,L,L,L,x,P,b,b,x,x,x,x,x,x,I,I,b,b,b,P,x,x,x,x,x,x,x,x,x,x,I,I,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b],[P,P,P,P,P,P,P,b,b,b,b,b,b,b,b,b,b,b,b,P,P,P,P,P,b,b,b,b,b,y,v,y,y,y,y,y,y,y,y,y,y,I,y,y,y,y,y,y,y,y,y,y,y,y,y,b,y,y,y,y,y,b,y,b,y,y,b,y,y,b,y,y,y,y,y,y,y,y,y,y,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,v,v,v,v,v,v,v,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,9,b,9,b,b,9,b,b,b,b,b,b,b,b,b,z,b,b,I,I,b,b,b,b,b,z,z,b,b,b,b,b,w,w,w,w,w,b,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,b,b,L],[b,b,b,z,z,z,b,b,b,b,b,I,9,I,9,9,x,x,x,x,x,x,x,x,x,x,9,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,b,b,b,b,b,b,b,b,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,b,b,b,P,P,P,P,P,P,b,b,P,P,P,P,P,P,b,b,P,P,P,P,P,P,b,b,P,P,P,b,b,b,z,z,b,b,b,z,z,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b]];class G{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,s){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,s){it=[],rt=[];for(let i=0;i<s;i++)t[i]=i,e[i]=i,it[i]=i}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,s))return t;e=this.inputFormat,s=this.outputFormat;let i=t;const h=ot,l=$(e.charAt(1)),_=$(s.charAt(1)),p=("I"===e.charAt(0)?"L":e.charAt(0))+l,d=("I"===s.charAt(0)?"L":s.charAt(0))+_,g=e.charAt(2)+s.charAt(2);h.defInFormat=p,h.defOutFormat=d,h.defSwap=g;const m=F(t,p,d,g,h);let P=!1;return"R"===s.charAt(1)?P=!0:"C"!==s.charAt(1)&&"D"!==s.charAt(1)||(P="rtl"===this.checkContextual(m)),this.sourceToTarget=it,this.targetToSource=function(t){const e=new Array(t.length);for(let s=0;s<t.length;s++)e[t[s]]=s;return e}(this.sourceToTarget),nt=this.targetToSource,i=e.charAt(3)===s.charAt(3)?m:"S"===s.charAt(3)?function(t,e,s){if(0===e.length)return"";void 0===t&&(t=!0),void 0===s&&(s=!0);const i=(e=String(e)).split("");let n=0,h=1,l=i.length;t||(n=i.length-1,h=-1,l=1);const _=function(t,e,s,i,n){let h=0;const l=[];let _=0;for(let f=e;f*s<i;f+=s)if(U(t[f])||Q(t[f])){if("ل"===t[f]&&H(t,f+s,s,i)){t[f]=et(t[f+s],0===h?r:o),f+=s,tt(t,f,s,i),n&&(l[_]=f,_++),h=0;continue}const e=t[f];1===h?t[f]=D(t,f+s,s,i)?j(t[f]):Z(t[f],c):!0===D(t,f+s,s,i)?t[f]=Z(t[f],u):t[f]=Z(t[f],a),Q(e)||(h=1),!0===J(e)&&(h=0)}else h=0;return l}(i,n,h,l,s);let f="";for(let e=0;e<i.length;e++)s&&Y(_,_.length,e)>-1?(st(nt,e,!t,-1),it.splice(e,1)):f+=i[e];return f}(P,m,!0):function(t,e,s){if(0===t.length)return"";void 0===s&&(s=!0),void 0===e&&(e=!0);let i="";const r=(t=String(t)).split("");for(let o=0;o<t.length;o++){let h=!1;if(r[o]>="ﹰ"&&r[o]<"\ufeff"){const a=t.charCodeAt(o);r[o]>="ﻵ"&&r[o]<="ﻼ"?(e?(o>0&&s&&" "===r[o-1]?i=i.substring(0,i.length-1)+"ل":(i+="ل",h=!0),i+=n[(a-65269)/2]):(i+=n[(a-65269)/2],i+="ل",o+1<t.length&&s&&" "===r[o+1]?o++:h=!0),h&&(st(nt,o,!0,1),it.splice(o,0,it[o]))):i+=f[a-65136]}else i+=r[o]}return i}(m,P,!0),this.sourceToTarget=it,this.targetToSource=nt,this.levels=rt,i}_inputFormatSetter(t){if(!ut.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!ut.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=N(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return _t.test(t)}}function F(t,e,s,i,n){const r=function(t,e,s){if(void 0===e.inFormat&&(e.inFormat=s.defInFormat),void 0===e.outFormat&&(e.outFormat=s.defOutFormat),void 0===e.swap&&(e.swap=s.defSwap),e.inFormat===e.outFormat)return e;const i=e.inFormat.substring(0,1),n=e.outFormat.substring(0,1);let r,o=e.inFormat.substring(1,4),h=e.outFormat.substring(1,4);return"C"===o.charAt(0)&&(r=N(t),o="ltr"===r||"rtl"===r?r.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=i+o),"C"===h.charAt(0)&&(r=N(t),"rtl"===r?h="RTL":"ltr"===r?(r=function(t){const e=t.split("");return e.reverse(),N(e.join(""))}(t),h=r.toUpperCase()):h="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=n+h),e}(t,{inFormat:e,outFormat:s,swap:i},n);if(r.inFormat===r.outFormat)return t;e=r.inFormat,s=r.outFormat,i=r.swap;const o=e.substring(0,1),h=e.substring(1,4),a=s.substring(0,1),c=s.substring(1,4);if(n.inFormat=e,n.outFormat=s,n.swap=i,"L"===o&&"VLTR"===s){if("LTR"===h)return n.dir=ct,R(t,n);if("RTL"===h)return n.dir=lt,R(t,n)}if("V"===o&&"V"===a)return n.dir="RTL"===h?lt:ct,X(t,n);if("L"===o&&"VRTL"===s)return"LTR"===h?(n.dir=ct,t=R(t,n)):(n.dir=lt,t=R(t,n)),X(t);if("VLTR"===e&&"LLTR"===s)return n.dir=ct,R(t,n);if("V"===o&&"L"===a&&h!==c)return t=X(t),"RTL"===h?F(t,"LLTR","VLTR",i,n):F(t,"LRTL","VRTL",i,n);if("VRTL"===e&&"LRTL"===s)return F(t,"LRTL","VRTL",i,n);if("L"===o&&"L"===a){const e=n.swap;return n.swap=e.substr(0,1)+"N","RTL"===h?(n.dir=lt,t=R(t,n),n.swap="N"+e.substr(1,2),n.dir=ct,t=R(t,n)):(n.dir=ct,t=R(t,n),n.swap="N"+e.substr(1,2),t=F(t,"VLTR","LRTL",n.swap,n)),t}return t}function N(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function R(t,e){const s=t.split(""),i=[];return B(s,i,e),function(t,e,s){if(0!==s.hiLevel&&s.swap.substr(0,1)!==s.swap.substr(1,2))for(let s=0;s<t.length;s++)1===e[s]&&(t[s]=K(t[s]))}(s,i,e),W(2,s,i,e),W(1,s,i,e),rt=i,s.join("")}function B(t,e,s){const i=t.length,n=s.dir?m:g;let r=0,o=-1;const h=[],a=[];s.hiLevel=s.dir,s.lastArabic=!1,s.hasUbatAl=!1,s.hasUbatB=!1,s.hasUbatS=!1;for(let e=0;e<i;e++)h[e]=V(t[e]);for(let c=0;c<i;c++){const i=r,l=q(t,h,a,c,s);a[c]=l,r=n[i][l];const u=240&r;r&=15;const _=n[r][ht];if(e[c]=_,u>0)if(16===u){for(let t=o;t<c;t++)e[t]=1;o=-1}else o=-1;if(n[r][at])-1===o&&(o=c);else if(o>-1){for(let t=o;t<c;t++)e[t]=_;o=-1}h[c]===C&&(e[c]=0),s.hiLevel|=_}s.hasUbatS&&function(t,e,s,i){for(let n=0;n<s;n++)if(t[n]===S){e[n]=i.dir;for(let s=n-1;s>=0&&t[s]===A;s--)e[s]=i.dir}}(h,e,i,s)}function V(t){const e=t.charCodeAt(0),s=E[e>>8];return s<T?s:O[s-T][255&e]}function X(t,e){const s=t.split("");if(e){const t=[];B(s,t,e),rt=t}return s.reverse(),it.reverse(),s.join("")}function Y(t,e,s){for(let i=0;i<e;i++)if(t[i]===s)return i;return-1}function U(t){for(let e=0;e<p.length;e++)if(t>=p[e]&&t<=d[e])return!0;return!1}function D(t,e,s,i){for(;e*s<i&&Q(t[e]);)e+=s;return!!(e*s<i&&U(t[e]))}function H(t,e,s,i){for(;e*s<i&&Q(t[e]);)e+=s;let r=" ";if(!(e*s<i))return!1;r=t[e];for(let t=0;t<n.length;t++)if(n[t]===r)return!0;return!1}function W(t,e,s,i){if(i.hiLevel<t)return;if(1===t&&i.dir===lt&&!i.hasUbatB)return e.reverse(),void it.reverse();const n=e.length;let r,o,h,a,c,l=0;for(;l<n;){if(s[l]>=t){for(r=l+1;r<n&&s[r]>=t;)r++;for(o=l,h=r-1;o<h;o++,h--)a=e[o],e[o]=e[h],e[h]=a,c=it[o],it[o]=it[h],it[h]=c;l=r}l++}}function q(t,e,s,i,n){const r=e[i];return{UBAT_L:()=>(n.lastArabic=!1,P),UBAT_R:()=>(n.lastArabic=!1,y),UBAT_ON:()=>b,UBAT_AN:()=>M,UBAT_EN:()=>n.lastArabic?M:x,UBAT_AL:()=>(n.lastArabic=!0,n.hasUbatAl=!0,y),UBAT_WS:()=>b,UBAT_CS:()=>{let t,r;return i<1||i+1>=e.length||(t=s[i-1])!==x&&t!==M||(r=e[i+1])!==x&&r!==M?b:(n.lastArabic&&(r=M),r===t?r:b)},UBAT_ES:()=>(i>0?s[i-1]:C)===x&&i+1<e.length&&e[i+1]===x?x:b,UBAT_ET:()=>{if(i>0&&s[i-1]===x)return x;if(n.lastArabic)return b;let t=i+1;const r=e.length;for(;t<r&&e[t]===z;)t++;return t<r&&e[t]===x?x:b},UBAT_NSM:()=>{if("VLTR"===n.inFormat){const s=e.length;let n=i+1;for(;n<s&&e[n]===v;)n++;if(n<s){const s=t[i].charCodeAt(0),r=s>=1425&&s<=2303||64286===s,o=e[n];if(r&&(o===y||o===w))return y}}return i<1||e[i-1]===C?b:s[i-1]},UBAT_B:()=>(n.lastArabic=!0,n.hasUbatB=!0,n.dir),UBAT_S:()=>(n.hasUbatS=!0,b),UBAT_LRE:()=>(n.lastArabic=!1,b),UBAT_RLE:()=>(n.lastArabic=!1,b),UBAT_LRO:()=>(n.lastArabic=!1,b),UBAT_RLO:()=>(n.lastArabic=!1,b),UBAT_PDF:()=>(n.lastArabic=!1,b),UBAT_BN:()=>b}[k[r]]()}function K(t){let e,s=0,n=i.length-1;for(;s<=n;)if(e=Math.floor((s+n)/2),t<i[e][0])n=e-1;else{if(!(t>i[e][0]))return i[e][1];s=e+1}return t}function J(t){for(let e=0;e<_.length;e++)if(_[e]===t)return!0;return!1}function j(t){for(let e=0;e<h.length;e++)if(t===h[e])return l[e];return t}function Z(t,e){for(let s=0;s<h.length;s++)if(t===h[s])return e[s];return t}function Q(t){return t>="ً"&&t<="ٕ"}function $(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function tt(t,e,s,i){for(;e*s<i&&Q(t[e]);)e+=s;return e*s<i&&(t[e]=" ",!0)}function et(t,e){for(let s=0;s<n.length;s++)if(t===n[s])return e[s];return t}function st(t,e,s,i){for(let n=0;n<t.length;n++)(t[n]>e||!s&&t[n]===e)&&(t[n]+=i)}let it=[],nt=[],rt=[];const ot={dir:0,defInFormat:"LLTR",defoutFormat:"VLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,hasBlockSep:!1,hasSegSep:!1,defOutFormat:""},ht=5,at=6,ct=0,lt=1,ut=/^[(I|V)][(L|R|C|D)][(Y|N)][(S|N)][N]$/,_t=/[\u0591-\u06ff\ufb1d-\ufefc]/},11004:(t,e,s)=>{s.d(e,{o:()=>n});var i=s(74452);class n{constructor(t,e){this._storage=new i.kB,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),e&&this._storage.registerRemoveFunc("",e)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},74452:(t,e,s)=>{s.d(e,{ML:()=>o,kB:()=>h});var i,n,r=s(24680);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(t,e,s){this.name=t,this._storage=e,this.id=a+++":",this.size=0,this.maxSize=-1,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),s&&(this._storage.registerRemoveFunc(this.id,s),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get storageSize(){return this._storage.size}getSize(t){return this._storage.getSize(this,t)}resetHitRate(){this._hit=this._miss=0}put(t,e,s,i=0){this._storage.put(this,t,e,s,i)}pop(t){const e=this._storage.pop(this,t);return void 0===e?++this._miss:++this._hit,e}get(t){const e=this._storage.get(this,t);return void 0===e?++this._miss:++this._hit,e}peek(t){return this._storage.peek(this,t)}updateSize(t,e,s){this._storage.updateSize(this,t,e,s)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class h{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.c,this._users=new r.c}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}getSize(t,e){const s=this._db.get(t.id+e);return s?.size??0}put(t,e,s,n,r){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==s&&this._notifyRemove(e,o.entry,o.size,i.ALL)),n>this._maxSize)return void this._notifyRemove(e,s,n,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,s,0,i.ALL);const h=1+Math.max(r,-4)- -3;this._db.set(e,new c(s,n,h)),this._size+=n,t.size+=n,this._checkSize()}updateSize(t,e,s,n){e=t.id+e;const r=this._db.get(e);if(r&&r.entry===s){for(this._size-=r.size,t.size-=r.size;n>this._maxSize;){const t=this._notifyRemove(e,s,n,i.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);n=t}r.size=n,this._size+=n,t.size+=n,this._checkSize()}}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach(((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._users.forAll((s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=e[r]||0;e[r]=s+t.size}}))}));const i={};this._users.forAll((t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(e);n.sort(((t,s)=>e[s]-e[t])),n.forEach((s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]));for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,t.size,i.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,t.size,i.ALL))),this._users.forAll((t=>t.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s,i){let n;return this._removeFuncs.some((r=>{if(t.startsWith(r[0])){const t=r[1](e,i,s);return"number"==typeof t&&(n=t),!0}return!1})),n}_checkSize(){this._users.forAll((t=>this._checkSizeLimits(t))),this._checkSizeLimits()}_checkSizeLimits(t){const e=t??this;if(e.maxSize<0||e.size<=e.maxSize)return;const s=t?.id;let i=!0;for(;i;){i=!1;for(const[n,r]of this._db)if(0===r.lifetime&&(!s||n.startsWith(s))){if(this._purgeItem(n,r,t),e.size<=.9*e.maxSize)return;i||=this._db.has(n)}}for(const[i,n]of this._db)if((!s||i.startsWith(s))&&(this._purgeItem(i,n,t),e.size<=.9*e.maxSize))return}_purgeItem(t,e,s=this._users.find((e=>t.startsWith(e.id)))){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const n=this._notifyRemove(t,e.entry,e.size,i.SOME);null!=n&&n>0&&(this._size+=n,s&&(s.size+=n),e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}let a=0;class c{constructor(t,e,s){this.entry=t,this.size=e,this.lifetime=s,this.lives=s}}},96523:(t,e,s)=>{s.d(e,{Go:()=>_,Y5:()=>f,mQ:()=>p,qq:()=>d});var i=s(43780),n=s(2952),r=s(20916);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function h(t){return t instanceof i.c}function a(t){return t instanceof n.c?Object.keys(t.items):h(t)?(0,r.m6)(t).keys():t?Object.keys(t):[]}function c(t,e){return t instanceof n.c?t.items[e]:t[e]}function l(t){return t?t.declaredClass:null}function u(t,e){const s=t.diff;if(s&&"function"==typeof s)return s(t,e);const i=a(t),n=a(e);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(t,e){return!(!Array.isArray(t)||!Array.isArray(e))&&t.length!==e.length}(t,e))return{type:"complete",oldValue:t,newValue:e};const r=n.filter((t=>!i.includes(t))),_=i.filter((t=>!n.includes(t))),f=i.filter((s=>n.includes(s)&&c(t,s)!==c(e,s))).concat(r,_).sort(),p=l(t);if(p&&o.has(p)&&f.length)return{type:"complete",oldValue:t,newValue:e};let d;const g=h(t)&&h(e);for(const i of f){const n=c(t,i),r=c(e,i);let o;if((g||"function"!=typeof n&&"function"!=typeof r)&&n!==r&&(null!=n||null!=r)){if(s&&s[i]&&"function"==typeof s[i])o=s[i]?.(n,r);else if(n instanceof Date&&r instanceof Date){if(n.getTime()===r.getTime())continue;o={type:"complete",oldValue:n,newValue:r}}else o="object"==typeof n&&"object"==typeof r&&l(n)===l(r)?u(n,r):{type:"complete",oldValue:n,newValue:r};null!=o&&(null!=d?d.diff[i]=o:d={type:"partial",diff:{[i]:o}})}}return d}function _(t,e){return f(t,e)}function f(t,e){if(null==t)return!1;const s=e.split(".");let i=t;for(const t of s){if("complete"===i.type)return!0;if("partial"!==i.type)return!1;{const e=i.diff[t];if(!e)return!1;i=e}}return!0}function p(t,e){if(!t)return!1;if("partial"===t.type){const s=Object.keys(t.diff);return 1===s.length&&s[0]===e}return!1}function d(t,e){if("function"!=typeof t&&"function"!=typeof e&&(null!=t||null!=e))return null==t||null==e||"object"==typeof t&&"object"==typeof e&&l(t)!==l(e)?{type:"complete",oldValue:t,newValue:e}:u(t,e)}},44444:(t,e,s)=>{function i(){const t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,s,i){const n=e[i],r=e[i+1];t[i]=s[0]*n+s[2]*r+s[4],t[i+1]=s[1]*n+s[3]*r+s[5]}function r(t,e,s,i=0,r=0,o=2){const h=r||e.length/o;for(let r=i;r<h;r++)n(t,e,s,r*o)}s.d(e,{Su:()=>i,Ws:()=>r}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){const e=new Float32Array(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},create:i,createView:function(t,e){return new Float32Array(t,e,6)},fromValues:function(t,e,s,i,n,r){const o=new Float32Array(6);return o[0]=t,o[1]=e,o[2]=s,o[3]=i,o[4]=n,o[5]=r,o},transform:n,transformMany:r},Symbol.toStringTag,{value:"Module"}))},38600:(t,e,s)=>{function i(){return new Float32Array(2)}function n(t,e){const s=new Float32Array(2);return s[0]=t,s[1]=e,s}function r(){return i()}function o(){return n(1,1)}function h(){return n(1,0)}function a(){return n(0,1)}s.d(e,{Qw:()=>l,Su:()=>i,WK:()=>n,cX:()=>c});const c=r(),l=o(),u=h(),_=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:u,UNIT_Y:_,ZEROS:c,clone:function(t){const e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:i,createView:function(t,e){return new Float32Array(t,e,2)},fromValues:n,ones:o,unitX:h,unitY:a,zeros:r},Symbol.toStringTag,{value:"Module"}))},64696:(t,e,s)=>{s.d(e,{GS:()=>h,IT:()=>a,ZX:()=>n,c9:()=>o,iW:()=>r});var i=s(47364);function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function r(t,e,s){const i=e[0],n=e[1],r=e[2],o=e[3],h=e[4],a=e[5],c=s[0],l=s[1],u=s[2],_=s[3],f=s[4],p=s[5];return t[0]=i*c+r*l,t[1]=n*c+o*l,t[2]=i*u+r*_,t[3]=n*u+o*_,t[4]=i*f+r*p+h,t[5]=n*f+o*p+a,t}function o(t,e,s){const i=e[0],n=e[1],r=e[2],o=e[3],h=e[4],a=e[5],c=Math.sin(s),l=Math.cos(s);return t[0]=i*l+r*c,t[1]=n*l+o*c,t[2]=i*-c+r*l,t[3]=n*-c+o*l,t[4]=h,t[5]=a,t}function h(t,e,s){const i=e[0],n=e[1],r=e[2],o=e[3],h=e[4],a=e[5],c=s[0],l=s[1];return t[0]=i,t[1]=n,t[2]=r,t[3]=o,t[4]=i*c+r*l+h,t[5]=n*c+o*l+a,t}function a(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=s,t[2]=-s,t[3]=i,t[4]=0,t[5]=0,t}function c(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t[3]=e[3]-s[3],t[4]=e[4]-s[4],t[5]=e[5]-s[5],t}const l=r,u=c;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t[3]=e[3]+s[3],t[4]=e[4]+s[4],t[5]=e[5]+s[5],t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},equals:function(t,e){const s=t[0],n=t[1],r=t[2],o=t[3],h=t[4],a=t[5],c=e[0],l=e[1],u=e[2],_=e[3],f=e[4],p=e[5],d=(0,i.Au)();return Math.abs(s-c)<=d*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(n-l)<=d*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-u)<=d*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(o-_)<=d*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(h-f)<=d*Math.max(1,Math.abs(h),Math.abs(f))&&Math.abs(a-p)<=d*Math.max(1,Math.abs(a),Math.abs(p))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+1)},fromRotation:a,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},identity:n,invert:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],o=e[4],h=e[5];let a=s*r-i*n;return a?(a=1/a,t[0]=r*a,t[1]=-i*a,t[2]=-n*a,t[3]=s*a,t[4]=(n*h-r*o)*a,t[5]=(i*o-s*h)*a,t):null},mul:l,multiply:r,multiplyScalar:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*s,t[5]=e[5]*s,t},multiplyScalarAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t[2]=e[2]+s[2]*i,t[3]=e[3]+s[3]*i,t[4]=e[4]+s[4]*i,t[5]=e[5]+s[5]*i,t},rotate:o,scale:function(t,e,s){const i=e[0],n=e[1],r=e[2],o=e[3],h=e[4],a=e[5],c=s[0],l=s[1];return t[0]=i*c,t[1]=n*c,t[2]=r*l,t[3]=o*l,t[4]=h,t[5]=a,t},set:function(t,e,s,i,n,r,o){return t[0]=e,t[1]=s,t[2]=i,t[3]=n,t[4]=r,t[5]=o,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:u,subtract:c,translate:h},Symbol.toStringTag,{value:"Module"}))},37648:(t,e,s)=>{s.d(e,{Cq:()=>_,WO:()=>n,c9:()=>p,m4:()=>f,qy:()=>a});var i=s(47364);function n(t,e,s){return t[0]=e,t[1]=s,t}function r(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t}function o(t,e,s){return t[0]=e[0]*s[0],t[1]=e[1]*s[1],t}function h(t,e,s){return t[0]=e[0]/s[0],t[1]=e[1]/s[1],t}function a(t,e){const s=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(s*s+i*i)}function c(t,e){const s=e[0]-t[0],i=e[1]-t[1];return s*s+i*i}function l(t){const e=t[0],s=t[1];return Math.sqrt(e*e+s*s)}function u(t){const e=t[0],s=t[1];return e*e+s*s}function _(t,e,s,i){const n=e[0],r=e[1];return t[0]=n+i*(s[0]-n),t[1]=r+i*(s[1]-r),t}function f(t,e,s){const i=e[0],n=e[1];return t[0]=s[0]*i+s[2]*n+s[4],t[1]=s[1]*i+s[3]*n+s[5],t}function p(t,e,s,i){const n=e[0]-s[0],r=e[1]-s[1],o=Math.sin(i),h=Math.cos(i);return t[0]=n*h-r*o+s[0],t[1]=n*o+r*h+s[1],t}const d=l,g=r,m=o,P=h,y=a,x=c,M=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t},angle:function(t,e){const s=t[0],i=t[1],n=e[0],r=e[1];let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));let h=n*n+r*r;h>0&&(h=1/Math.sqrt(h));const a=(s*n+i*r)*o*h;return a>1?0:a<-1?Math.PI:Math.acos(a)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,s){const i=e[0]*s[1]-e[1]*s[0];return t[0]=t[1]=0,t[2]=i,t},dist:y,distance:a,div:P,divide:h,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const s=t[0],n=t[1],r=e[0],o=e[1],h=(0,i.Au)();return Math.abs(s-r)<=h*Math.max(1,Math.abs(s),Math.abs(r))&&Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:d,length:l,lerp:_,max:function(t,e,s){return t[0]=Math.max(e[0],s[0]),t[1]=Math.max(e[1],s[1]),t},min:function(t,e,s){return t[0]=Math.min(e[0],s[0]),t[1]=Math.min(e[1],s[1]),t},mul:m,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const s=e[0],i=e[1];let n=s*s+i*i;return n>0&&(n=1/Math.sqrt(n),t[0]=e[0]*n,t[1]=e[1]*n),t},projectAndScale:function(t,e,s,i,n){let r=e[0]-s[0],o=e[1]-s[1];const h=(i[0]*r+i[1]*o)*(n-1);return r=i[0]*h,o=i[1]*h,t[0]=e[0]+r,t[1]=e[1]+o,t},random:function(t,e){e=e||1;const s=2*(0,i.QR)()*Math.PI;return t[0]=Math.cos(s)*e,t[1]=Math.sin(s)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t},scaleAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t},set:n,sqrDist:x,sqrLen:M,squaredDistance:c,squaredLength:u,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:g,subtract:r,transformMat2:function(t,e,s){const i=e[0],n=e[1];return t[0]=s[0]*i+s[2]*n,t[1]=s[1]*i+s[3]*n,t},transformMat2d:f,transformMat3:function(t,e,s){const i=e[0],n=e[1];return t[0]=s[0]*i+s[3]*n+s[6],t[1]=s[1]*i+s[4]*n+s[7],t},transformMat4:function(t,e,s){const i=e[0],n=e[1];return t[0]=s[0]*i+s[4]*n+s[12],t[1]=s[1]*i+s[5]*n+s[13],t}},Symbol.toStringTag,{value:"Module"}))},7857:(t,e,s)=>{s.d(e,{k:()=>h});var i=s(62088),n=s(68564),r=s(6704),o=s(85152);class h{static fromOptimized(t,e,s=!1,i=!1,n=1){return(new a).initialize(t,e,s,i,n)}static fromJSON(t,e=!1,s=!1){const[i,n]=l(t);return(new u).initialize(i,n,e,s,1)}static fromOptimizedCIM(t,e,s=!1,i=!1,n=1){return(new _).initialize(t,e,s,i,n)}static fromJSONCIM(t,e=!1,s=!1,i=1){const[n,r]=l(t);return(new f).initialize(n,r,e,s,i)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimized(e,s):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimizedCIM(e,s):null}static createEmptyOptimized(t,e=!1,s=!1,i=1){return(new a).initialize(new o.c,t,e,s,i)}static createEmptyJSON(t,e=!1,s=!1){return(new u).initialize([],t,e,s,1)}static createEmptyOptimizedCIM(t,e=!1,s=!1,i=1){return(new _).initialize(new o.c,t,e,s,i)}static createEmptyJSONCIM(t,e=!1,s=!1,i=1){return(new f).initialize([],t,e,s,i)}asJSON(){const t=(0,n.k)(this);return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat()}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1]}:"esriGeometryPolygon"===this.geometryType?{rings:t}:{paths:t}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const i=t,n=e;for(;this.nextPoint();)s+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return s+=(t-i)*(e+n),-.5*s}invertY(){this.yFactor*=-1}}class a extends h{constructor(){super(...arguments),this._end=-1}initialize(t,e,s,i,n){return this.hasZ=s,this.hasM=i,this.geometryType=e,this._stride=2+Number(s)+Number(i),this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=n,this}reset(){this.initialize(this._geometry,this.geometryType,this.hasZ,this.hasM,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}pathLength(){const t=this._end,e=this._stride,s=this._geometry.coords;let i=0;for(let n=this._pathOffset+e;n<t;n+=e){const t=s[n-e],r=s[n-e+1],o=s[n]-t,h=s[n+1]-r;i+=Math.sqrt(o*o+h*h)}return i}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,s=this._end-this._stride;for(let i=0;i<this._stride;i++)if(t[e+i]!==t[s+i])return!1;return!0}clone(){return(new a).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce(((t,e)=>t+e))}get pathSize(){const{lengths:t}=this._geometry;return this._pathIndex<0||this._pathIndex>t.length-1?0:this._geometry.isPoint?1:t[this._pathIndex]}get totalSize(){return this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function c(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function l(t){return(0,r.Cs)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.cZ)(t)?[t.paths,"esriGeometryPolyline"]:(0,r._)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.Ul)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r._x)(t)?[[[c(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class u extends h{initialize(t,e,s,i,n){return this._paths=t,this.geometryType=e,this.hasZ=s,this.hasM=i,this._pathIndex=this._pointIndex=-1,this.yFactor=n,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let s=0;for(let i=1;i<t;i++){const t=e[i-1],n=e[i],r=t[0],o=t[1],h=n[0]-r,a=n[1]-o;s+=Math.sqrt(h*h+a*a)}return s}startPath(){this._paths.push([])}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,n.k)(t);for(const t of e)this.pushPath(t)}asOptimized(){const t=new o.c;if("esriGeometryPoint"===this.geometryType)t.coords.push(...this._paths[0][0]),t.lengths.length=0;else for(const e of this._paths){for(const s of e)t.coords.push(s[0]),t.coords.push(s[1]*this.yFactor),this.hasZ&&t.coords.push(s[2]),this.hasM&&t.coords.push(s[this._mIndex]);t.lengths.push(e.length)}return t}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}clone(){return(new u).initialize((0,i.ct)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map((t=>t.length)).reduce(((t,e)=>t+e))}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class _ extends a{initialize(t,e,s,i,n){return super.initialize(t,e,s,i,n),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map((t=>new Set))),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new _).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class f extends u{initialize(t,e,s,i,n){return super.initialize(t,e,s,i,n)}clone(){return(new f).initialize((0,i.ct)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},67224:(t,e,s)=>{s.d(e,{S:()=>c});var i=s(83372),n=s(33008),r=s(95788),o=s(47452),h=s(41980);const a=222045e-19;function c(t){if(0===t.totalSize)return null;const e=(0,n.IV)(t);if(!e)return null;const s=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*a;let o=0,h=0;t.reset();for(let e=0;t.nextPath();e++){const s=t.getCurrentRingArea();s>h&&(h=s,o=e)}if(t.seekPath(o),0===t.pathSize)return null;t.seekPathStart();const c=(0,n.yC)(t);if(Math.abs(h)<=2*s*s)return[(c[0]+c[2])/2,(c[1]+c[3])/2];t.seekPathStart();const f=(0,r.$c)(t,(0,i.Su)());if(null===f)return null;if(t.totalPoints<4)return f;const p=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],d=[NaN,NaN,NaN,NaN],g=[NaN,NaN,NaN,NaN];let m=!1,P=u(f,t,!0);0===P.distance&&(m=!0,p[0][0]=f[0],p[0][1]=f[1],P=u(f,t,!1)),d[0]=P.distance,g[0]=0;const y=[NaN,NaN];let C=!1,S=.25,w=-1,A=NaN;do{if(A=NaN,p[1]=_(t,x(c[0],c[2],S),0,e),isNaN(p[1][0])||isNaN(p[1][1])||(P=u(p[1],t,!1),A=P.distance),!isNaN(A)&&A>s&&l(p[1],t))C=!0,d[1]=A,g[1]=M(p[1],f);else if(!isNaN(A)&&A>w&&(w=A,y[0]=p[1][0],y[1]=p[1][1]),S-=.01,S<.1){if(!(w>=0))break;C=!0,d[1]=w,p[1][0]=y[0],p[1][1]=y[1],g[1]=M(p[1],f)}}while(!C);C=!1,S=.5,w=-1;let I=.01,z=1;do{if(A=NaN,p[2]=_(t,x(c[0],c[2],S),0,e),isNaN(p[2][0])||isNaN(p[2][1])||(P=u(p[2],t,!1),A=P.distance),!isNaN(A)&&A>s&&l(p[2],t))C=!0,d[2]=A,g[2]=M(p[2],f);else if(!isNaN(A)&&A>w)w=A,y[0]=p[2][0],y[1]=p[2][1];else if(A>w&&(w=A,y[0]=p[2][0],y[1]=p[2][1]),S=.5+I*z,I+=.01,z*=-1,S<.3||S>.7){if(!(w>=0))break;C=!0,d[2]=w,p[2][0]=y[0],p[2][1]=y[1],g[2]=M(p[2],f)}}while(!C);C=!1,S=.75,w=-1;do{if(A=NaN,p[3]=_(t,x(c[0],c[2],S),0,e),isNaN(p[3][0])||isNaN(p[3][1])||(P=u(p[3],t,!1),A=P.distance),!isNaN(A)&&A>s&&l(p[3],t))C=!0,d[3]=A,g[3]=M(p[3],f);else if(A>w&&(w=A,y[0]=p[3][0],y[1]=p[3][1]),S+=.01,S>.9){if(!(w>=0))break;C=!0,d[3]=w,p[3][0]=y[0],p[3][1]=y[1],g[3]=M(p[3],f)}}while(!C);const v=[0,1,2,3],L=m?0:1;let k;for(let t=L;t<4;t++)for(let t=L;t<3;t++){const e=g[t],s=g[t+1];b(e,s)>0&&(k=v[t],v[t]=v[t+1],v[t+1]=k,g[t]=s,g[t+1]=e)}let T=L,E=0,O=0;for(let t=L;t<4;t++){switch(t){case 0:O=2*d[v[t]];break;case 1:O=1.66666666*d[v[t]];break;case 2:O=1.33333333*d[v[t]];break;case 3:O=d[v[t]]}O>E&&(E=O,T=v[t])}return p[T]}function l(t,e){let s,i,n,r,o=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(s=e.x,i=e.y;e.nextPoint();s=n,i=r)n=e.x,r=e.y,i>t[1]!=r>t[1]&&((n-s)*(t[1]-i)-(r-i)*(t[0]-s)>0?o++:o--);return 0!==o}function u(t,e,s){if(s&&l(t,e))return{coord:t,distance:0};let i=1/0,n=0,r=0,h=[0,0],a=[0,0];const c=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(h[0]=e.x,h[1]=e.y;e.nextPoint();h=a){a=[e.x,e.y],(0,o.ym)(c,t,h,a);const s=M(t,c);s<i&&(i=s,n=c[0],r=c[1])}return{coord:[n,r],distance:Math.sqrt(i)}}function _(t,e,s,n){const r=[e,0];let o=1/0,a=1/0,c=!1,l=!1;const u=[[e,n[1]-1],[e,n[3]+1]],_=[0,0],p=[0,0],d=[0,0],g=[[0,0],[0,0]],m=(0,i.Su)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(g[0][0]=t.x,g[0][1]=t.y;t.nextPoint();g[0][0]=g[1][0],g[0][1]=g[1][1]){if(g[1][0]=t.x,g[1][1]=t.y,null===f(m,g))continue;if(p[0]=u[0][0],p[1]=u[0][1],d[0]=u[1][0],d[1]=u[1][1],0===P(m,p,d))continue;if(!(0,h.qm)(u[0],u[1],g[0],g[1],_))continue;const e=_[1];o>a?e<o&&(o=e,c=!0):e<a&&(a=e,l=!0)}return c&&l?r[1]=(o+a)/2:r[0]=r[1]=NaN,r}function f(t,e){if(e.length<2)return null;t||(t=(0,i.Su)());const[s,n]=e[0],[r,o]=e[1];return t[0]=Math.min(s,r),t[1]=Math.min(n,o),t[2]=Math.max(s,r),t[3]=Math.max(n,o),t}const p=1,d=4,g=3,m=12;function P(t,e,s){let i=y(e,t),n=y(s,t);const r=t[0],o=t[1],h=t[2],a=t[3];if(i&n)return 0;if(!(i|n))return 4;const c=(i?1:0)|(n?2:0);do{const c=s[0]-e[0],l=s[1]-e[1];if(c>l)i&g?(i&p?(e[1]+=l*(r-e[0])/c,e[0]=r):(e[1]+=l*(h-e[0])/c,e[0]=h),i=y(e,t)):n&g?(n&p?(s[1]+=l*(r-s[0])/c,s[0]=r):(s[1]+=l*(h-s[0])/c,s[0]=h),n=y(s,t)):i?(i&d?(e[0]+=c*(o-e[1])/l,e[1]=o):(e[0]+=c*(a-e[1])/l,e[1]=a),i=y(e,t)):(n&d?(s[0]+=c*(o-s[1])/l,s[1]=o):(s[0]+=c*(a-s[1])/l,s[1]=a),n=y(s,t));else if(i&m?(i&d?(e[0]+=c*(o-e[1])/l,e[1]=o):(e[0]+=c*(a-e[1])/l,e[1]=a),i=y(e,t)):n&m?(n&d?(s[0]+=c*(o-s[1])/l,s[1]=o):(s[0]+=c*(a-s[1])/l,s[1]=a),n=y(s,t)):i?(i&p?(e[1]+=l*(r-e[0])/c,e[0]=r):(e[1]+=l*(h-e[0])/c,e[0]=h),i=y(e,t)):(n&p?(s[1]+=l*(r-s[0])/c,s[0]=r):(s[1]+=l*(h-s[0])/c,s[0]=h),n=y(s,t)),i&n)return 0}while(i|n);return c}function y(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function x(t,e,s){return t+(e-t)*s}function M(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function b(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const s=isNaN(t),i=isNaN(e);return s<i?-1:s>i?1:0}},1720:(t,e,s)=>{s.d(e,{w:()=>a,y:()=>h});var i=s(7857),n=s(93320);const r=512;let o;class h{constructor(t){this._geometry=t}next(){const t=this._geometry;return this._geometry=null,t}}function a(t,e){o||(o=new n.CU(0,0,0,1));const s="esriGeometryPolygon"===t.geometryType,h=s?n.ao.Polygon:n.ao.LineString,a=s?3:2;let c,l;for(o.reset(h),o.setPixelMargin(e+1),o.setExtent(r);t.nextPath();)if(!(t.pathSize<a)){for(t.nextPoint(),c=t.x,l=-t.y,o.moveTo(c,l);t.nextPoint();)c=t.x,l=-t.y,o.lineTo(c,l);s&&o.close()}const u=o.result(!1);if(u){const e=i.k.createEmptyOptimizedCIM(t.geometryType);for(const t of u){e.startPath();for(const s of t)e.pushXY(s.x,-s.y)}return e.reset(),e}return null}},55872:(t,e,s)=>{s.d(e,{g:()=>Mt,m:()=>bt});class i{static local(){return null===i.instance&&(i.instance=new i),i.instance}execute(t,e,s,i,r){return new n(t,e,s)}}i.instance=null;class n{constructor(t,e,s){this._inputGeometries=t,this._angleTolerance=void 0!==e.angleTolerance?e.angleTolerance:120,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPolygon"===t.geometryType)this._isClosed=!0;else if("esriGeometryPolyline"===t.geometryType)this._isClosed=!1;else{if("esriGeometryEnvelope"!==t.geometryType){t=this._inputGeometries.next();continue}if(this._maxCosAngle)return t;this._isClosed=!0}for(;t.nextPath();)this._processPath(t);return t.reset(),t}return null}_processPath(t){if(t.nextPoint()){const e=t.x,s=t.y;let i=e,n=s,r=t.pathSize,o=0,h=0,a=0,c=0,l=0,u=0;this._isClosed&&++r;for(let _=1;t.nextPoint()||_<r;++_){let f,p;this._isClosed&&_===r-1?(f=e,p=s):(f=t.x,p=t.y);const d=f-i,g=p-n,m=Math.sqrt(d*d+g*g);_>1&&m>0&&a>0&&(o*d+h*g)/m/a<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(c=d,l=g,u=m),m>0&&(i=f,n=p,o=d,h=g,a=m)}this._isClosed&&a>0&&u>0&&(o*c+h*l)/u/a<=this._maxCosAngle&&t.setControlPointAt(0)}}}var r=s(7857),o=s(68564),h=s(67576);function a(t,e){t[4]=e}class c{constructor(t,e=!0,s=!0,i=0){this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!s&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=i,this.iteratePath=!1,this.internalPlacement=new h.i}next(){if(!this.geometryCursor)return null;for(;this.iteratePath||this.geometryCursor.pathIndex<this.geometryCursor.totalSize-1;){this.iteratePath||this.geometryCursor.nextPath();const t=this.processPath(this.geometryCursor);if(t)return t}return this.geometryCursor=null,null}}class l{constructor(t,e,s,i=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=s,this.geomUnitsPerPoint=i,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let t=this.inputGeometries.next();for(;t&&(this.isClosed=this.acceptPolygon&&"esriGeometryPolygon"===t.geometryType||"esriGeometryEnvelope"===t.geometryType,this.multiPathCursor=t,!this.multiPathCursor);)t=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();const t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}var u=s(89232);const _=.03;class f{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,s,i,n;for(e=t.x,s=t.y;t.nextPoint();e=s,s=n)if(i=t.x,n=t.y,i!==e||n!==s)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,s,i){const n=s-t,r=i-e;return Math.sqrt(n*n+r*r)}getSegLength(t){const[[e,s],[i,n]]=t;return this.getLength(e,s,i,n)}getCoord2D(t,e,s,i,n){return[t+(s-t)*n,e+(i-e)*n]}getSegCoord2D(t,e){const[[s,i],[n,r]]=t;return this.getCoord2D(s,i,n,r,e)}getAngle(t,e,s,i,n){const r=s-t,o=i-e;return Math.atan2(o,r)}getAngleCS(t,e,s,i,n){const r=s-t,o=i-e,h=Math.sqrt(r*r+o*o);return h>0?[r/h,o/h]:[1,0]}getSegAngleCS(t,e){const[[s,i],[n,r]]=t;return this.getAngleCS(s,i,n,r,e)}cut(t,e,s,i,n,r){return[n<=0?[t,e]:this.getCoord2D(t,e,s,i,n),r>=1?[s,i]:this.getCoord2D(t,e,s,i,r)]}getSubCurve(t,e,s){const i=r.k.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(i,t,e,s)?i:null}appendSubCurve(t,e,s,i){t.startPath(),e.seekPathStart();let n=0,r=!0;if(!e.nextPoint())return!1;let o=e.x,h=e.y;for(;e.nextPoint();){const a=this.getLength(o,h,e.x,e.y);if(0!==a){if(r){if(n+a>s){const c=(s-n)/a;let l=1,u=!1;n+a>=i&&(l=(i-n)/a,u=!0);const _=this.cut(o,h,e.x,e.y,c,l);if(_&&t.pushPoints(_),u)break;r=!1}}else{if(n+a>i){const s=this.cut(o,h,e.x,e.y,0,(i-n)/a);s&&t.pushPoint(s[1]);break}t.pushXY(e.x,e.y)}n+=a,o=e.x,h=e.y}else o=e.x,h=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let s,i,n,r,o=0;for(s=t.x,i=t.y;t.nextPoint();s=n,i=r){n=t.x,r=t.y;const h=this.getLength(s,i,n,r);if(0!==h){if(o+h>e){const t=(e-o)/h;return this.getCoord2D(s,i,n,r,t)}o+=h}}return null}offset(t,e,s,i,n){if(!t||t.length<2)return null;let r=0,o=t[r++],h=r;for(;r<t.length;){const e=t[r];e[0]===o[0]&&e[1]===o[1]||(r!==h&&(t[h]=t[r]),o=t[h++]),r++}const a=t[0][0]===t[h-1][0]&&t[0][1]===t[h-1][1];if(a&&--h,h<(a?3:2))return null;const c=[];o=a?t[h-1]:null;let l=t[0];for(let n=0;n<h;n++){const r=n===h-1?a?t[0]:null:t[n+1];if(o)if(r){const t=[r[0]-l[0],r[1]-l[1]];this.normalize(t);const n=[l[0]-o[0],l[1]-o[1]];this.normalize(n);const h=n[0]*t[1]-n[1]*t[0],a=n[0]*t[0]+n[1]*t[1];if(0===h&&1===a){l=r;continue}if(h>=0==e<=0){if(a<1){const s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);const r=Math.sqrt((1+a)/2);if(r>1/i){const t=-Math.abs(e)/r;c.push([l[0]-s[0]*t,l[1]-s[1]*t])}}}else switch(s){case u.yM.Mitered:{const s=Math.sqrt((1+a)/2);if(s>0&&1/s<i){const i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);const r=Math.abs(e)/s;c.push([l[0]-i[0]*r,l[1]-i[1]*r]);break}}case u.yM.Bevelled:c.push([l[0]+n[1]*e,l[1]-n[0]*e]),c.push([l[0]+t[1]*e,l[1]-t[0]*e]);break;case u.yM.Rounded:if(a<1){c.push([l[0]+n[1]*e,l[1]-n[0]*e]);const s=Math.floor(2.5*(1-a));if(s>0){const i=1/s;let r=i;for(let o=1;o<s;o++,r+=i){const s=[n[1]*(1-r)+t[1]*r,-n[0]*(1-r)-t[0]*r];this.normalize(s),c.push([l[0]+s[0]*e,l[1]+s[1]*e])}}c.push([l[0]+t[1]*e,l[1]-t[0]*e])}break;case u.yM.Square:default:if(h<0)c.push([l[0]+(n[1]+n[0])*e,l[1]+(n[1]-n[0])*e]),c.push([l[0]+(t[1]-t[0])*e,l[1]-(t[0]+t[1])*e]);else{const s=Math.sqrt((1+Math.abs(a))/2),i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);const r=e/s;c.push([l[0]-i[0]*r,l[1]-i[1]*r])}}}else{const t=[l[0]-o[0],l[1]-o[1]];this.normalize(t),c.push([l[0]+t[1]*e,l[1]-t[0]*e])}else{const t=[r[0]-l[0],r[1]-l[1]];this.normalize(t),c.push([l[0]+t[1]*e,l[1]-t[0]*e])}o=l,l=r}return c.length<(a?3:2)?null:(a&&c.push([c[0][0],c[0][1]]),c)}}const p=1.7320508075688772,d=u.AX.OpenEnded;class g{static local(){return null===g.instance&&(g.instance=new g),g.instance}execute(t,e,s,i,n){return new m(t,e,s)}}g.instance=null;class m extends l{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new f,this._width=(void 0!==e.width?e.width:5)*s,this._arrowType=void 0!==e.geometricEffectArrowType?e.geometricEffectArrowType:void 0!==e.arrowType?e.arrowType:d,this._offsetFlattenError=_*s}processPath(t){const e=r.k.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case u.AX.OpenEnded:default:this._constructSimpleArrow(e,t,!0);break;case u.AX.Block:this._constructSimpleArrow(e,t,!1);break;case u.AX.Crossed:this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,s){const i=e.pathLength();let n=this._width;i<2*n&&(n=i/2);const r=this._curveHelper.getSubCurve(e,0,i-n);if(!r||!r.nextPath())return;r.seekPathStart();const h=n/2;if(this._curveHelper.isEmpty(r))return;const a=(0,o.g)(r),c=this._constructOffset(a,-h);if(!c)return;const l=this._constructOffset(a,h);if(!l)return;const u=this._constructArrowBasePoint(c,-h/2);if(!u)return;const _=this._constructArrowBasePoint(l,h/2);if(!_)return;e.seekInPath(e.pathSize-1);const f=[e.x,e.y];t.pushPath(l),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(f),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(c.reverse()),t.setControlPoint(),s||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(l[0])),t.reset()}_constructCrossedArrow(t,e){const s=e.pathLength();let i=this._width;s<i*(1+p+1)&&(i=s/(1+p+1)),e.seekPathStart();const n=this._curveHelper.getSubCurve(e,0,s-i*(1+p));if(!n)return;n.nextPath();const r=i/2;if(this._curveHelper.isEmpty(n))return;const h=(0,o.g)(n),a=this._constructOffset(h,r);if(!a)return;const c=this._constructOffset(h,-r);if(!c)return;const l=this._curveHelper.getSubCurve(e,0,s-i);if(!l)return;if(l.nextPath(),this._curveHelper.isEmpty(l))return;const u=(0,o.g)(l),_=this._constructOffset(u,r);if(!_)return;const f=this._constructOffset(u,-r);if(!f)return;const d=_[_.length-1],g=this._constructArrowBasePoint(_,r/2);if(!g)return;const m=f[f.length-1],P=this._constructArrowBasePoint(f,-r/2);if(!P)return;e.seekInPath(e.pathSize-1);const y=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(m),t.nextPoint(),t.setControlPoint(),t.pushPoint(P),t.nextPoint(),t.setControlPoint(),t.pushPoint(y),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoints(c.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,u.yM.Rounded,4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;const s=t[t.length-2],i=t[t.length-1],n=[i[0]-s[0],i[1]-s[1]];return this._curveHelper.normalize(n),[i[0]+n[1]*e,i[1]-n[0]*e]}}s(60708);var P,y=s(1720),x=s(56156);class M{static local(){return null===M.instance&&(M.instance=new M),M.instance}execute(t,e,s,i,n,r){return new b(t,e,s,i,n,r)}}M.instance=null;class b{constructor(t,e,s,i,n,r){this._inputGeometries=t,this._tileKey=i,this._geometryEngine=n,this._curveHelper=new f,this._size=(void 0!==e.size?e.size:1)*s,this._maxInflateSize=r*s,this._offsetFlattenError=_*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){const e=r.k.createEmptyOptimizedCIM(t.geometryType),s=(0,o.k)(t)[0],i=this._curveHelper.offset(s,this._size,u.yM.Rounded,4,this._offsetFlattenError);if(i)return e.pushPath(i),e}else if(this._size<0){const e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return r.k.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}const e=this._geometryEngine;if(null==e)return null;const s=this._tileKey?(0,y.w)(t,this._maxInflateSize):t;if(!s)continue;const i=e.buffer(x.c.WebMercator,s.asJSON(),this._size,1);return i?r.k.fromJSONCIM(i):null}return null}}class C{static local(){return null===C.instance&&(C.instance=new C),C.instance}execute(t,e,s,i,n){return new S(t,e,s)}}C.instance=null;class S{constructor(t,e,s){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=s,this._rule=e.rule??u.Ki.FullGeometry,this._defaultSize=this._defaultPointSize*s}next(){let t;for(;t=this._inputGeometries.next();){const e=this._processGeom((0,o.k)(t));if(e&&e.length)return r.k.fromJSONCIM({paths:e})}return null}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,s,i){return[t[0]*e+s[0]*i,t[1]*e+s[1]*i]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,s){return[t[0]+e,t[1]+s]}_sub(t,e){return[t[0]-e[0],t[1]-e[1]]}_dist(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}_norm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}_normalize(t,e=1){const s=e/this._norm(t);t[0]*=s,t[1]*=s}_leftPerpendicular(t){const e=-t[1],s=t[0];t[0]=e,t[1]=s}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){const e=t[1],s=-t[0];t[0]=e,t[1]=s}_rightPerp(t){return[t[1],-t[0]]}_dotProduct(t,e){return t[0]*e[0]+t[1]*e[1]}_crossProduct(t,e){return t[0]*e[1]-t[1]*e[0]}_rotateDirect(t,e,s){const i=t[0]*e-t[1]*s,n=t[0]*s+t[1]*e;t[0]=i,t[1]=n}_makeCtrlPt(t){const e=[t[0],t[1]];return a(e,1),e}_addAngledTicks(t,e,s,i){const n=this._sub(s,e);this._normalize(n);const r=this._crossProduct(n,this._sub(i,e));let o;o=r>0?this._rightPerp(n):this._leftPerp(n);const h=Math.abs(r)/2,a=[];a.push([e[0]+(o[0]-n[0])*h,e[1]+(o[1]-n[1])*h]),a.push(e),a.push(s),a.push([s[0]+(o[0]+n[0])*h,s[1]+(o[1]+n[1])*h]),t.push(a)}_addBezier2(t,e,s,i,n){if(0==n--)return void t.push(i);const r=this._mid(e,s),o=this._mid(s,i),h=this._mid(r,o);this._addBezier2(t,e,r,h,n),this._addBezier2(t,h,o,i,n)}_addBezier3(t,e,s,i,n,r){if(0==r--)return void t.push(n);const o=this._mid(e,s),h=this._mid(s,i),a=this._mid(i,n),c=this._mid(o,h),l=this._mid(h,a),u=this._mid(c,l);this._addBezier3(t,e,o,c,u,r),this._addBezier3(t,u,l,a,n,r)}_add90DegArc(t,e,s,i,n){const r=n??this._crossProduct(this._sub(s,e),this._sub(i,e))>0,o=this._mid(e,s),h=this._sub(o,e);r?this._leftPerpendicular(h):this._rightPerpendicular(h),o[0]+=h[0],o[1]+=h[1],this._addBezier3(t,e,this._mix(e,.33333,o,.66667),this._mix(s,.33333,o,.66667),s,4)}_addArrow(t,e,s){const i=e[0],n=e[1],r=e[e.length-1],o=this._sub(i,n);this._normalize(o);const h=this._crossProduct(o,this._sub(r,n)),a=.5*h,c=this._leftPerp(o),l=[r[0]-c[0]*h,r[1]-c[1]*h],u=e.length-1,_=[];_.push(s?[-c[0],-c[1]]:c);let f=[-o[0],-o[1]];for(let t=1;t<u-1;t++){const s=this._sub(e[t+1],e[t]);this._normalize(s);const i=this._dotProduct(s,f),n=this._crossProduct(s,f),r=Math.sqrt((1+i)/2),o=this._sub(s,f);this._normalize(o),o[0]/=r,o[1]/=r,_.push(n<0?[-o[0],-o[1]]:o),f=s}_.push(this._rightPerp(f));for(let s=_.length-1;s>0;s--)t.push([e[s][0]+_[s][0]*a,e[s][1]+_[s][1]*a]);t.push([l[0]+_[0][0]*a,l[1]+_[0][1]*a]),t.push([l[0]+_[0][0]*h,l[1]+_[0][1]*h]),t.push(i),t.push([l[0]-_[0][0]*h,l[1]-_[0][1]*h]),t.push([l[0]-_[0][0]*a,l[1]-_[0][1]*a]);for(let s=1;s<_.length;s++)t.push([e[s][0]-_[s][0]*a,e[s][1]-_[s][1]*a])}_cp2(t,e,s){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,s*this._defaultSize)}_cp3(t,e,s,i){if(t.length>=3)return t[2];const n=this._mix(t[0],1-s,e,s),r=this._sub(e,t[0]);return this._normalize(r),this._rightPerpendicular(r),[n[0]+r[0]*i*this._defaultSize,n[1]+r[1]*i*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;const e=t[0],s=this._cp2(t,-4,0),i=this._sub(e,s);this._normalize(i);const n=this._rightPerp(i);return[e,s,[e[0]+(n[0]-i[0])*this._defaultSize,e[1]+(n[1]-i[1])*this._defaultSize]]}_arrowLastSeg(t){const e=t[0],s=this._cp2(t,-4,0);let i;if(t.length>=3)i=t[t.length-1];else{const t=this._sub(e,s);this._normalize(t);const n=this._rightPerp(t);i=[e[0]+(n[0]-t[0])*this._defaultSize,e[1]+(n[1]-t[1])*this._defaultSize]}return[s,i]}_processGeom(t){if(!t)return null;const e=[];for(const s of t){if(!s||0===s.length)continue;const t=s.length;let i=s[0];switch(this._rule){case u.Ki.PerpendicularFromFirstSegment:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,4),r=[];r.push(n),r.push(this._mid(i,t)),e.push(r);break}case u.Ki.ReversedFirstSegment:{const t=this._cp2(s,0,-1);e.push([t,i]);break}case u.Ki.PerpendicularToSecondSegment:{const t=this._cp2(s,-4,1),n=this._cp3(s,t,.882353,-1.94),r=[];r.push(this._mid(t,n)),r.push(i),e.push(r);break}case u.Ki.SecondSegmentWithTicks:{const t=this._cp2(s,-4,1),n=this._cp3(s,t,.882353,-1.94),r=this._sub(n,t);let o;o=this._crossProduct(r,this._sub(i,t))>0?this._rightPerp(o):this._leftPerp(r);const h=[];h.push([t[0]+(o[0]-r[0])/3,t[1]+(o[1]-r[1])/3]),h.push(t),h.push(n),h.push([n[0]+(o[0]+r[0])/3,n[1]+(o[1]+r[1])/3]),e.push(h);break}case u.Ki.DoublePerpendicular:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,3),r=this._mid(i,t),o=this._sub(r,n);this._normalize(o);const h=this._crossProduct(o,this._sub(i,n));this._leftPerpendicular(o);const a=[];a.push(i),a.push([n[0]+o[0]*h,n[1]+o[1]*h]),e.push(a);const c=[];c.push([n[0]-o[0]*h,n[1]-o[1]*h]),c.push(t),e.push(c);break}case u.Ki.OppositeToFirstSegment:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,3),r=this._mid(i,t),o=this._sub(r,n);this._normalize(o);const h=this._crossProduct(o,this._sub(i,n));this._leftPerpendicular(o);const a=[];a.push([n[0]+o[0]*h,n[1]+o[1]*h]),a.push([n[0]-o[0]*h,n[1]-o[1]*h]),e.push(a);break}case u.Ki.TriplePerpendicular:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,4),r=this._mid(i,t),o=this._sub(r,n);this._normalize(o);const h=this._crossProduct(o,this._sub(i,n));this._leftPerpendicular(o);const a=[];a.push([n[0]+o[0]*h*.8,n[1]+o[1]*h*.8]),a.push([r[0]+.8*(i[0]-r[0]),r[1]+.8*(i[1]-r[1])]),e.push(a),e.push([n,r]);const c=[];c.push([n[0]-o[0]*h*.8,n[1]-o[1]*h*.8]),c.push([r[0]+.8*(t[0]-r[0]),r[1]+.8*(t[1]-r[1])]),e.push(c);break}case u.Ki.HalfCircleFirstSegment:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,4),r=this._mid(i,t);let o=this._sub(t,i);const h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),c=Math.sqrt((1+h)/2),l=Math.sqrt((1-h)/2),u=[];let _;this._crossProduct(o,this._sub(n,i))>0?(u.push(i),o=this._sub(i,r),_=t):(u.push(t),o=this._sub(t,r),_=i),this._rotateDirect(o,c,l),o[0]/=c,o[1]/=c;for(let t=1;t<=18;t++)u.push(this._add(r,o)),this._rotateDirect(o,h,a);u.push(_),e.push(u);break}case u.Ki.HalfCircleSecondSegment:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,1,-1);let r=this._sub(i,t);this._normalize(r);const o=this._crossProduct(r,this._sub(n,t))/2;this._leftPerpendicular(r);const h=[t[0]+r[0]*o,t[1]+r[1]*o];r=this._sub(t,h);const a=Math.cos(Math.PI/18);let c=Math.sin(Math.PI/18);o>0&&(c=-c);const l=[t];for(let t=1;t<=18;t++)this._rotateDirect(r,a,c),l.push(this._add(h,r));e.push(l);break}case u.Ki.HalfCircleExtended:{const n=this._cp2(s,0,-2),r=this._cp3(s,n,1,-1);let o;if(t>=4)o=s[3];else{const t=this._sub(i,n);o=this._add(r,t)}const h=this._dist(n,r)/2/.75,a=this._sub(n,i);this._normalize(a,h);const c=this._sub(r,o);this._normalize(c,h);const l=[o,r];e.push(l);const u=[this._clone(r)];this._addBezier3(u,r,this._add(r,c),this._add(n,a),n,4),u.push(i),e.push(u);break}case u.Ki.OpenCircle:{const t=this._cp2(s,-2,0),n=this._sub(t,i),r=Math.cos(Math.PI/18),o=-Math.sin(Math.PI/18),h=[t];for(let t=1;t<=33;t++)this._rotateDirect(n,r,o),h.push(this._add(i,n));e.push(h);break}case u.Ki.CoverageEdgesWithTicks:{const n=this._cp2(s,0,-1);let r,o;if(t>=3)r=s[2];else{const t=this._sub(n,i),e=this._leftPerp(t);r=[i[0]+e[0]-.25*t[0],i[1]+e[1]-.25*t[1]]}if(t>=4)o=s[3];else{const t=this._mid(i,n),e=this._sub(i,n);this._normalize(e),this._leftPerpendicular(e);const s=this._crossProduct(e,this._sub(r,t));this._rightPerpendicular(e),o=[r[0]+e[0]*s*2,r[1]+e[1]*s*2]}const h=this._sub(n,i);let a,c;a=this._crossProduct(h,this._sub(r,i))>0?this._rightPerp(h):this._leftPerp(h),c=[],c.push(r),c.push(i),c.push([i[0]+(a[0]-h[0])/3,i[1]+(a[1]-h[1])/3]),e.push(c),a=this._crossProduct(h,this._sub(o,n))>0?this._rightPerp(a):this._leftPerp(h),c=[],c.push([n[0]+(a[0]+h[0])/3,n[1]+(a[1]+h[1])/3]),c.push(n),c.push(o),e.push(c);break}case u.Ki.GapExtentWithDoubleTicks:{const n=this._cp2(s,0,2),r=this._cp3(s,n,0,1);let o;if(t>=4)o=s[3];else{const t=this._sub(n,i);o=this._add(r,t)}this._addAngledTicks(e,i,n,this._mid(r,o)),this._addAngledTicks(e,r,o,this._mid(i,n));break}case u.Ki.GapExtentMidline:{const n=this._cp2(s,2,0),r=this._cp3(s,n,0,1);let o;if(t>=4)o=s[3];else{const t=this._sub(n,i);o=this._add(r,t)}const h=[];h.push(this._mid(i,r)),h.push(this._mid(n,o)),e.push(h);break}case u.Ki.Chevron:{const n=this._cp2(s,-1,-1);let r;if(t>=3)r=s[2];else{const t=this._sub(n,i);this._leftPerpendicular(t),r=this._add(i,t)}e.push([n,this._makeCtrlPt(i),r]);break}case u.Ki.PerpendicularWithArc:{const t=this._cp2(s,0,-2),n=this._cp3(s,t,.5,-1);let r=this._sub(t,i);const o=this._norm(r);r[0]/=o,r[1]/=o;const h=this._crossProduct(r,this._sub(n,i));let a=this._dotProduct(r,this._sub(n,i));a<.05*o?a=.05*o:a>.95*o&&(a=.95*o);const c=[i[0]+r[0]*a,i[1]+r[1]*a];this._leftPerpendicular(r);let l=[];l.push([c[0]-r[0]*h,c[1]-r[1]*h]),l.push([c[0]+r[0]*h,c[1]+r[1]*h]),e.push(l);const u=[t[0]+r[0]*h,t[1]+r[1]*h];r=this._sub(t,u);const _=Math.cos(Math.PI/18);let f=Math.sin(Math.PI/18);h<0&&(f=-f),l=[i,t];for(let t=1;t<=9;t++)this._rotateDirect(r,_,f),l.push(this._add(u,r));e.push(l);break}case u.Ki.ClosedHalfCircle:{const t=this._cp2(s,2,0),n=this._mid(i,t),r=this._sub(t,n),o=Math.cos(Math.PI/18),h=Math.sin(Math.PI/18),a=[i,t];for(let t=1;t<=18;t++)this._rotateDirect(r,o,h),a.push(this._add(n,r));e.push(a);break}case u.Ki.TripleParallelExtended:{const t=this._cp2(s,0,-2),n=this._cp3(s,t,1,-2),r=this._mid(i,t),o=this._sub(n,t);this._normalize(o);const h=Math.abs(this._crossProduct(o,this._sub(r,t)))/2,c=this._dist(t,n),l=[t,i];l.push([i[0]+o[0]*c*.5,i[1]+o[1]*c*.5]),e.push(l);const u=[];u.push([r[0]-o[0]*h,r[1]-o[1]*h]),u.push([r[0]+o[0]*c*.375,r[1]+o[1]*c*.375]),a(u[u.length-1],1),u.push([r[0]+o[0]*c*.75,r[1]+o[1]*c*.75]),e.push(u);const _=[t,n];e.push(_);break}case u.Ki.ParallelWithTicks:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._sub(n,t);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r),this._addAngledTicks(e,i,t,n),this._addAngledTicks(e,this._mix(i,1,r,o),this._mix(t,1,r,o),this._mid(i,t));break}case u.Ki.Parallel:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._sub(t,i);this._normalize(r);const o=this._leftPerp(r),h=this._crossProduct(r,this._sub(n,i));let a=[i,t];e.push(a),a=[],a.push([i[0]+o[0]*h,i[1]+o[1]*h]),a.push([t[0]+o[0]*h,t[1]+o[1]*h]),e.push(a);break}case u.Ki.PerpendicularToFirstSegment:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._mid(i,t),o=this._sub(t,i);this._normalize(o);const h=this._crossProduct(o,this._sub(n,i));this._leftPerpendicular(o);const a=[];a.push([r[0]-o[0]*h*.25,r[1]-o[1]*h*.25]),a.push([r[0]+o[0]*h*1.25,r[1]+o[1]*h*1.25]),e.push(a);break}case u.Ki.ParallelOffset:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._sub(t,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const h=[];h.push([i[0]-r[0]*o,i[1]-r[1]*o]),h.push([t[0]-r[0]*o,t[1]-r[1]*o]),e.push(h);const a=[];a.push([i[0]+r[0]*o,i[1]+r[1]*o]),a.push([t[0]+r[0]*o,t[1]+r[1]*o]),e.push(a);break}case u.Ki.OffsetOpposite:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._sub(t,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const h=[];h.push([i[0]-r[0]*o,i[1]-r[1]*o]),h.push([t[0]-r[0]*o,t[1]-r[1]*o]),e.push(h);break}case u.Ki.OffsetSame:{const t=this._cp2(s,3,0),n=this._cp3(s,t,.5,-1),r=this._sub(t,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const h=[];h.push([i[0]+r[0]*o,i[1]+r[1]*o]),h.push([t[0]+r[0]*o,t[1]+r[1]*o]),e.push(h);break}case u.Ki.CircleWithArc:{let n=this._cp2(s,3,0);const r=this._cp3(s,n,.5,-1);let o,h;if(t>=4)o=s[3],h=this._crossProduct(this._sub(o,n),this._sub(r,n))>0;else{o=n,h=this._crossProduct(this._sub(o,i),this._sub(r,i))>0;const t=24*this._geomUnitsPerPoint,e=this._sub(o,i);this._normalize(e,t);const s=Math.sqrt(2)/2;this._rotateDirect(e,s,h?s:-s),n=this._add(i,e)}const c=this._sub(n,i),l=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),_=[n];for(let t=1;t<=36;t++)this._rotateDirect(c,l,u),_.push(this._add(i,c));this._add90DegArc(_,n,o,r,h),a(_[_.length-8],1),e.push(_);break}case u.Ki.DoubleJog:{let n,r,o=this._cp2(s,-3,1);if(n=t>=3?s[2]:this._add(i,this._sub(i,o)),t>=4)r=s[3];else{const t=i;i=o,r=n;const e=this._dist(i,t),s=this._dist(r,t);let h=30*this._geomUnitsPerPoint;.5*e<h&&(h=.5*e),.5*s<h&&(h=.5*s),o=this._mix(i,h/e,t,(e-h)/e),n=this._mix(r,h/s,t,(s-h)/s)}const h=this._mid(i,o),a=this._mid(r,n),c=this._dist(i,o),l=this._dist(n,r);let u=Math.min(c,l)/8;u=Math.min(u,24*this._geomUnitsPerPoint);const _=Math.cos(Math.PI/4);let f=this._sub(i,o);this._normalize(f,u),this._crossProduct(f,this._sub(r,o))>0?this._rotateDirect(f,_,-_):this._rotateDirect(f,_,_);let p=[];p.push(o),p.push(this._add(h,f)),p.push(this._sub(h,f)),p.push(i),e.push(p),f=this._sub(r,n),this._normalize(f,u),this._crossProduct(f,this._sub(i,n))<0?this._rotateDirect(f,_,_):this._rotateDirect(f,_,-_),p=[],p.push(n),p.push(this._add(a,f)),p.push(this._sub(a,f)),p.push(r),e.push(p);break}case u.Ki.PerpendicularOffset:{const t=this._cp2(s,-4,1),n=this._cp3(s,t,.882353,-1.94),r=this._sub(n,t);this._crossProduct(r,this._sub(i,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);const o=[r[0]/8,r[1]/8],h=this._sub(this._mid(t,n),o);e.push([h,i]);break}case u.Ki.LineExcludingLastSegment:{const t=this._arrowPath(s),i=[];let n=t.length-2;for(;n--;)i.push(t[n]);e.push(i);break}case u.Ki.MultivertexArrow:{const t=this._arrowPath(s),i=[];this._addArrow(i,t,!1),e.push(i);break}case u.Ki.CrossedArrow:{const t=this._arrowPath(s),i=[];this._addArrow(i,t,!0),e.push(i);break}case u.Ki.ChevronArrow:{const[t,n]=this._arrowLastSeg(s),r=10*this._geomUnitsPerPoint,o=this._sub(i,t);this._normalize(o);const h=this._crossProduct(o,this._sub(n,t)),a=this._leftPerp(o),c=[n[0]-a[0]*h*2,n[1]-a[1]*h*2],l=[];l.push([n[0]+o[0]*r,n[1]+o[1]*r]),l.push(i),l.push([c[0]+o[0]*r,c[1]+o[1]*r]),e.push(l);break}case u.Ki.ChevronArrowOffset:{const[t,n]=this._arrowLastSeg(s),r=this._sub(i,t);this._normalize(r);const o=this._crossProduct(r,this._sub(n,t));this._leftPerpendicular(r);const h=[n[0]-r[0]*o,n[1]-r[1]*o],a=[];a.push([h[0]+r[0]*o*.5,h[1]+r[1]*o*.5]),a.push(this._mid(h,i)),a.push([h[0]-r[0]*o*.5,h[1]-r[1]*o*.5]),e.push(a);break}case u.Ki.PartialFirstSegment:{const[t,n]=this._arrowLastSeg(s),r=this._sub(i,t);this._normalize(r);const o=this._crossProduct(r,this._sub(n,t));this._leftPerpendicular(r);const h=[n[0]-r[0]*o,n[1]-r[1]*o];e.push([t,h]);break}case u.Ki.Arch:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,1),r=this._sub(i,t),o=this._mix(n,1,r,.55),h=this._mix(n,1,r,-.55),a=[i];this._addBezier2(a,i,o,n,4),this._addBezier2(a,n,h,t,4),e.push(a);break}case u.Ki.CurvedParallelTicks:{const t=this._cp2(s,-4,1),n=this._cp3(s,t,.882353,-1.94),r=this._sub(n,t);this._crossProduct(r,this._sub(i,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);const o=[r[0]/8,r[1]/8],h=this._sub(this._mid(t,n),o),a=this._sub(this._mix(t,.75,n,.25),o),c=this._sub(this._mix(t,.25,n,.75),o),l=[t];this._addBezier2(l,t,a,h,3),this._addBezier2(l,h,c,n,3),e.push(l);for(let t=0;t<8;t++){const s=l[2*t+1],i=[this._clone(s)];i.push(this._add(s,[r[0]/4,r[1]/4])),e.push(i)}break}case u.Ki.Arc90Degrees:{const t=this._cp2(s,0,-1),n=this._cp3(s,t,.5,1),r=[t];this._add90DegArc(r,t,i,n),e.push(r);break}case u.Ki.FullGeometry:default:e.push(s)}}return e}}class w{static local(){return null===w.instance&&(w.instance=new w),w.instance}execute(t,e,s,i,n){return new A(t,e,s)}}w.instance=null;class A extends l{constructor(t,e,s){super(t,!0,!0),this._curveHelper=new f,this._beginCut=(void 0!==e.beginCut?e.beginCut:1)*s,this._endCut=(void 0!==e.endCut?e.endCut:1)*s,this._middleCut=(void 0!==e.middleCut?e.middleCut:0)*s,this._invert=void 0!==e.invert&&e.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(t){const{_beginCut:e,_endCut:s,_middleCut:i}=this,n=t.pathLength(),o=r.k.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==s||0!==i)if(e+s+i>=n)for(o.startPath();t.nextPoint();)o.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(o,t,0,e),this._curveHelper.appendSubCurve(o,t,.5*(n-i),.5*(n+i)),this._curveHelper.appendSubCurve(o,t,n-s,s)}else if(0===e&&0===s&&0===i)for(o.startPath();t.nextPoint();)o.pushXY(t.x,t.y);else e+s+i<n&&(0===i?this._curveHelper.appendSubCurve(o,t,e,n-s):(this._curveHelper.appendSubCurve(o,t,e,.5*(n-i)),this._curveHelper.appendSubCurve(o,t,.5*(n+i),n-s)));return 0===o.totalSize?null:o}}class I{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(t,e,s=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let e=0;e<t.length;e++){let i=Math.abs(t[e]);s&&i<1e-7&&(i=1e-7),this._values.push(i),this._length+=i}return e&&1&t.length&&(this._length*=2),0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){const e=this._values?this._values.length:0;for(let s=0;s<e;++s)this._values[s]*=t;this._length*=t,this.extPtGap*=t,this.ctrlPtGap*=t}addValue(t){this._length+=t,this._values.push(t)}firstValue(){return this._values[0]}lastValue(){return this._values[this._values.length-1]}nextValue(){return this._currentValue++,this._currentValue===this._values.length&&(this._currentValue=0),this._values[this._currentValue]}reset(){this._currentValue=-1}length(){return this._length}_setEmpty(){this.extPtGap=this.ctrlPtGap=this._length=0,this._currentValue=-1,this._values.length=0}}class z{constructor(){this.pt=null,this.ca=0,this.sa=0}}!function(t){t[t.FAIL=0]="FAIL",t[t.END=1]="END",t[t.CONTINUE=2]="CONTINUE"}(P||(P={}));class v{constructor(){this.reset()}reset(){this.segment=null,this.segmentLength=0,this.abscissa=0,this.isPathEnd=!1,this.isPartEnd=!1}isValid(){return null!==this.segment}copyTo(t){t.segment=this.segment,t.segmentLength=this.segmentLength,t.abscissa=this.abscissa,t.isPathEnd=this.isPathEnd,t.isPartEnd=this.isPartEnd}}class L extends f{constructor(t=0,e=!1){super(t,e),this._tolerance=_,this._currentPosition=new v}updateTolerance(t){this._tolerance=_*t}init(t,e,s=!0){return s?(this._patternLength=e.length(),this._partExtPtGap=e.extPtGap,this._partCtrlPtGap=e.ctrlPtGap):(this._patternLength=0,this._partExtPtGap=0,this._partCtrlPtGap=0),this._currentPosition.reset(),this._partSegCount=0,this._pathCursor=t,this._seg=-1,this._setPosAtNextPart()}curPositionIsValid(){return this._currentPosition.isValid()}nextPosition(t,e=P.FAIL){const s=new v;return!!this._nextPosition(t,s,null,e)&&(s.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);const[e,s]=this._getAngleCS(this._currentPosition);t.ca=e,t.sa=s}nextPointAndAngle(t,e,s=P.FAIL){const i=new v;if(!this._nextPosition(t,i,null,s))return!1;i.copyTo(this._currentPosition),e.pt=this._getPoint(i);const[n,r]=this._getAngleCS(i);return e.ca=n,e.sa=r,!0}nextCurve(t){if(0===t)return null;const e=r.k.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();const s=new v;return this._nextPosition(t,s,e,P.END)?(s.copyTo(this._currentPosition),e):null}isPathEnd(){return this._currentPosition.isPathEnd}getPathEnd(){return this._currentPosition.segment[1]}getPt(t){return this._pathCursor.seekInPath(t),[this._pathCursor.x,this._pathCursor.y]}getSeg(t){return[this.getPt(t),this.getPt(t+1)]}_nextPosition(t,e,s,i){if(this._currentPosition.isPathEnd)return!1;let n=this._currentPosition.abscissa;for(this._currentPosition.segmentLength>0&&(n/=this._currentPosition.segmentLength),this._currentPosition.copyTo(e);e.abscissa+t*this._partLengthRatio>e.segmentLength+this._tolerance;){if(s){if(0===s.pathSize)if(0===n){const t=e.segment[0];s.pushXY(t[0],t[1])}else s.pushPoint(this.getSegCoord2D(e.segment,n));const t=e.segment[1];s.pushXY(t[0],t[1])}if(n=0,t-=(e.segmentLength-e.abscissa)/this._partLengthRatio,this._partSegCount)e.segment=this._nextSegment(),e.segmentLength=this.getSegLength(e.segment),e.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return i!==P.FAIL&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,i===P.END?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,s){0===s.pathSize&&(0===n?s.pushPoint(e.segment[0]):s.pushPoint(this.getSegCoord2D(e.segment,n)));const t=e.abscissa/e.segmentLength;1===t?s.pushPoint(e.segment[1]):s.pushPoint(this.getSegCoord2D(e.segment,t))}return this._partSegCount||Math.abs(e.abscissa-e.segmentLength)<this._tolerance&&(e.isPathEnd=this._partIsLast,e.isPartEnd=!0),!0}_getPoint(t){const e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t){const e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegAngleCS(this._currentPosition.segment,e)}_setPosAtNextPart(){for(;this._partSegCount;)this._hasNextSegment()&&this._nextSegment(),this._partSegCount--;if(!this._hasNextSegment())return!1;for(this._partLength=0,this._partIsLast=!0,this._partSegCount=0;this._hasNextSegment();)if(this._partLength+=this.getSegLength(this._nextSegment()),this._partSegCount++,this._pathCursor.getControlPointAt(this._getEndPointIndex())){this._partIsLast=!this._hasNextSegment();break}let t=this._partSegCount;for(;t;)this._previousSegment(),--t;this._currentPosition.segment=this._nextSegment(),this._currentPosition.segmentLength=this.getSegLength(this._currentPosition.segment),this._currentPosition.abscissa=0,this._currentPosition.isPathEnd=this._currentPosition.isPartEnd=!1,--this._partSegCount;const e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let s=e+this._partSegCount+1;if(s>=this._pathCursor.pathSize&&(s=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(s),this._patternLength>0){const t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap;let s=Math.round((this._partLength-(t+e))/this._patternLength);s<=0&&(s=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+s*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg<this._pathCursor.pathSize-2}_previousSegment(){return this.getSeg(--this._seg)}_nextSegment(){return this.getSeg(++this._seg)}_getStartPointIndex(){return this._seg}_getEndPointIndex(){return this._seg+1}}var k=s(14624);class T{static local(){return null===T.instance&&(T.instance=new T),T.instance}execute(t,e,s,i,n){return new E(t,e,s)}}T.instance=null;class E extends l{constructor(t,e,s){super(t,!0,!0),this._firstCurve=null,this._walker=new L,this._walker.updateTolerance(s),this._endings=e.lineDashEnding,this._customDashPos=-(e.offsetAlongLine??0)*s,this._offsetAtEnd=(e.customEndingOffset??0)*s,this._pattern=new I,this._pattern.init((0,k.Wy)(e).dashTemplate,!0),this._pattern.scale(s)}processPath(t){if(0===this._pattern.length()){this.iteratePath=!1;const e=(0,o.g)(t);return r.k.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case u.Gi.HalfPattern:case u.Gi.HalfGap:default:this._pattern.extPtGap=0;break;case u.Gi.FullPattern:this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case u.Gi.FullGap:this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case u.Gi.NoConstraint:this.isClosed||(e=!1);break;case u.Gi.Custom:this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}const s=t.pathLength();if(this._pattern.isEmpty()||s<.1*this._pattern.length()){const e=(0,o.g)(t);return r.k.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){const e=(0,o.g)(t);return r.k.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case u.Gi.HalfPattern:default:t=.5*this._pattern.firstValue();break;case u.Gi.HalfGap:t=.5*-this._pattern.lastValue();break;case u.Gi.FullGap:t=-this._pattern.lastValue();break;case u.Gi.FullPattern:t=0;break;case u.Gi.NoConstraint:case u.Gi.Custom:t=-this._customDashPos}let s=t/this._pattern.length();s-=Math.floor(s),t=s*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let i=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),i=!i;e-=t,i?(this._walker.nextPosition(e),e=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(e),e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue())}let s=this._walker.nextCurve(e);if(s)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)s.pushXY(this._firstCurve.x,this._firstCurve.y);this._firstCurve=null}}else e=this._pattern.nextValue(),!this._walker.nextPosition(e)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&(s.pushCursor(this._firstCurve),this._firstCurve=null)):this.iteratePath=!0;else this.iteratePath=!1,s=this._firstCurve,this._firstCurve=null;return s?.reset(),s}}class O{static local(){return null===O.instance&&(O.instance=new O),O.instance}execute(t,e,s,i,n,r){return new G(t,e,s,i,n,r)}}O.instance=null;class G{constructor(t,e,s,i,n,r){switch(this._inputGeometries=t,this._tileKey=i,this._geometryEngine=n,this._maxInflateSize=r*s,this._width=(void 0!==e.width?e.width:2)*s,e.method){case u.Q9.Mitered:case u.Q9.Bevelled:case u.Q9.Rounded:case u.Q9.TrueBuffer:case u.Q9.Square:}this._option=e.option}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){const e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:r.k.fromJSONCIM({paths:[[[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]],[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}if("esriGeometryPolygon"===t.geometryType){if(0===this._width)return t.clone();const e=this._geometryEngine;if(null==e)return null;const s=this._tileKey?(0,y.w)(t,this._maxInflateSize):t.clone();if(!s)continue;const i=e.buffer(x.c.WebMercator,s.asJSON(),-this._width,1);if(i)for(const t of i.rings)if(t){s.startPath();for(const e of t.reverse())s.pushXY(e[0],s.yFactor*e[1])}return s}}return null}}class F{static local(){return null===F.instance&&(F.instance=new F),F.instance}execute(t,e,s,i,n){return new N(t,e,s)}}F.instance=null;class N extends l{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new f,this._length=(void 0!==e.length?e.length:20)*s,this._angle=void 0!==e.angle?e.angle:225,this._position=void 0!==e.position?e.position:50,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){const e=r.k.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);const s=t.x,i=t.y;t.seekInPath(t.pathSize-1);const n=t.x,o=t.y,h=[n-s,o-i];this._curveHelper.normalize(h);const a=s+(n-s)*this._position/100,c=i+(o-i)*this._position/100,l=Math.cos((90-this._angle)/180*Math.PI);let u=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(u=-u),this._mirror=!this._mirror;const _=[a-this._length/2*l,c-this._length/2*u],f=[a+this._length/2*l,c+this._length/2*u];return e.pushPath([[s,i],_,f,[n,o]]),e}}class R{static local(){return null===R.instance&&(R.instance=new R),R.instance}execute(t,e,s,i,n){return new B(t,e,s)}}R.instance=null;class B{constructor(t,e,s){this._inputGeometries=t,this._offsetX=void 0!==e.offsetX?e.offsetX*s:0,this._offsetY=void 0!==e.offsetY?e.offsetY*s:0}next(){let t=this._inputGeometries.next();for(;t;){if(t.totalSize>0)return this._move(t.clone(),this._offsetX,this._offsetY);t=this._inputGeometries.next()}return null}_move(t,e,s){for(;t.nextPath();)for(;t.nextPoint();)t.x=t.x+e,t.y=t.y+s;return t.reset(),t}}var V=s(6704);class X{static local(){return null===X.instance&&(X.instance=new X),X.instance}execute(t,e,s,i,n,r){return new Y(t,e,s,i,n,r)}}X.instance=null;class Y{constructor(t,e,s,i,n,r){this._inputGeometries=t,this._tileKey=i,this._geometryEngine=n,this._curveHelper=new f,this._offset=(e.offset??1)*s,this._method=e.method,this._maxInflateSize=Math.max(Math.abs(r*s),10),this._option=e.option,this._offsetFlattenError=_*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if(this._method===u.yM.Rounded&&this._offset>0){const e=(0,o.g)(t),s=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(s){const e=r.k.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(s),e}return null}const e=t.asJSON();if((0,V.Ul)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return r.k.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}const e=this._geometryEngine;if(null==e)continue;const s=this._tileKey?(0,y.w)(t,this._maxInflateSize):t.clone();if(!s)continue;const i=e.offset(x.c.WebMercator,s.asJSON(),-this._offset,1,this._method,4,this._offsetFlattenError);return i?r.k.fromJSONCIM(i):null}return null}}class U{static local(){return null===U.instance&&(U.instance=new U),U.instance}execute(t,e,s,i,n){return new D(t,e,s)}}U.instance=null;class D{constructor(t,e,s){this._inputGeometries=t,this._reverse=void 0===e.reverse||e.reverse}next(){let t=this._inputGeometries.next();for(;t;){if(!this._reverse)return t;if("esriGeometryPolyline"===t.geometryType)return H(t.clone());t=this._inputGeometries.next()}return null}}function H(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);const s=t.x,i=t.y;t.seekInPath(t.pathSize-e-1);const n=t.x,r=t.y;t.x=s,t.y=i,t.seekInPath(e),t.x=n,t.y=r}return t.reset(),t}var W=s(33008);class q{static local(){return null===q.instance&&(q.instance=new q),q.instance}execute(t,e,s,i,n){return new K(t,e,s)}}q.instance=null;class K{constructor(t,e,s){this._inputGeometries=t,this._rotateAngle=void 0!==e.angle?e.angle*Math.PI/180:0}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){const e=(0,W.IV)(t),s=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),s,i)}t=this._inputGeometries.next()}return null}_rotate(t,e,s){const i=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){const r=t.x-e,o=t.y-s;t.x=e+r*i-o*n,t.y=s+r*n+o*i}return t.reset(),t}}class J{static local(){return null===J.instance&&(J.instance=new J),J.instance}execute(t,e,s,i,n){return new j(t,e,s)}}J.instance=null;class j{constructor(t,e,s){this._inputGeometries=t,this._xFactor=void 0!==e.XScaleFactor?e.XScaleFactor:1.15,this._yFactor=void 0!==e.YScaleFactor?e.YScaleFactor:1.15}next(){const t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor)return t;if("esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){const e=(0,W.IV)(t),s=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),s,i)}}return null}_scaleCursor(t,e,s){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=s+(t.y-s)*this._yFactor;return t.reset(),t}}class Z{static local(){return null===Z.instance&&(Z.instance=new Z),Z.instance}execute(t,e,s,i,n){return new Q(t,e,s)}}Z.instance=null;class Q{constructor(t,e,s){this._inputGeometries=t,this._height=(void 0!==e.amplitude?e.amplitude:2)*s,this._period=(void 0!==e.period?e.period:3)*s,this._style=e.waveform,this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new I,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new L,this._walker.updateTolerance(s)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;const e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){const e=r.k.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();const s=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case u.y2.Sinus:default:this._constructCurve(e,s,!1);break;case u.y2.Square:this._constructSquare(e,s);break;case u.y2.Triangle:this._constructTriangle(e,s);break;case u.y2.Random:this._constructCurve(e,s,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,s){let i=Math.round(e/this._period);0===i&&(i=1);const n=16*i+1,r=e/i,o=this._period/16,h=1/n,a=2*Math.PI*e/r,c=2*Math.PI*Math.random(),l=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),_=.75-Math.random()/2,f=.75-Math.random()/2,p=new z;this._walker.curPointAndAngle(p),t.pushPoint(p.pt);let d=0;for(;;){if(!this._walker.nextPointAndAngle(o,p)){t.pushPoint(this._walker.getPathEnd());break}{const e=d;let i;if(d+=h,s){const t=this._height/2*(1+.3*Math.sin(_*a*e+c));i=t*Math.sin(a*e+l),i+=t*Math.sin(f*a*e+u),i/=2}else i=.5*this._height*Math.sin(.5*a*e);t.pushXY(p.pt[0]-i*p.sa,p.pt[1]+i*p.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let s=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const i=new z;this._walker.curPointAndAngle(i);const n=new z;if(this._walker.nextPointAndAngle(this._period,n)){const r=new z;this._walker.nextPointAndAngle(this._period,r)&&(s?(t.pushPoint(i.pt),s=!1):t.pushPoint(i.pt),t.pushXY(i.pt[0]-this._height/2*i.sa,i.pt[1]+this._height/2*i.ca),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}_constructTriangle(t,e){Math.round(e/this._period);let s=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const i=new z;this._walker.curPointAndAngle(i);const n=new z;if(this._walker.nextPointAndAngle(this._period/2,n)){const r=new z;this._walker.nextPointAndAngle(this._period,r)&&(this._walker.nextPosition(this._period/2)&&(s?(t.pushPoint(i.pt),s=!1):t.pushPoint(i.pt),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca)),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}}class ${static local(){return null===$.instance&&($.instance=new $),$.instance}execute(t,e,s,i,n){return new tt(t,e,s)}}$.instance=null;class tt extends c{constructor(t,e,s){super(t),this._geometryWalker=new L,this._geometryWalker.updateTolerance(s),this._angleToLine=e.angleToLine??!0,this._offset=(e.offset?e.offset:0)*s,this._originalEndings=e.endings,this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*s,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*s,this._pattern=new I,this._pattern.init(e.placementTemplate,!1),this._pattern.scale(s),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{this._originalEndings===u.AZ.WithFullGap&&this.isClosed?this._endings=u.AZ.WithMarkers:this._endings=this._originalEndings,this._pattern.extPtGap=0;let s,i=!0;switch(this._endings){case u.AZ.NoConstraint:s=-this._position,s=this._adjustPosition(s),i=!1;break;case u.AZ.WithHalfGap:default:s=-this._pattern.lastValue()/2;break;case u.AZ.WithFullGap:s=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case u.AZ.WithMarkers:s=0;break;case u.AZ.Custom:s=-this._position,s=this._adjustPosition(s),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,i))return null;this._pattern.reset();let n=0;for(;s>n;)s-=n,n=this._pattern.nextValue();n-=s,e=n,this.iteratePath=!0}const s=new z;return this._geometryWalker.nextPointAndAngle(e,s)?this._endings===u.AZ.WithFullGap&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):this._endings===u.AZ.WithMarkers&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(s.pt[0]-this._offset*s.sa,s.pt[1]+this._offset*s.ca),this._angleToLine&&this.internalPlacement.setRotateCS(s.ca,s.sa),this.internalPlacement):(this.iteratePath=!1,null)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class et{static local(){return null===et.instance&&(et.instance=new et),et.instance}execute(t,e,s,i,n){return new st(t,e,s)}}et.instance=null;class st extends c{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new f,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*s:0,this._type=e.extremityPlacement,this._position=void 0!==e.offsetAlongLine?e.offsetAlongLine*s:0,this._beginProcessed=!1}processPath(t){let e;switch(this._type){case u.G6.Both:default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iteratePath=!0);break;case u.G6.JustBegin:e=this._atExtremities(t,this._position,!0);break;case u.G6.JustEnd:e=this._atExtremities(t,this._position,!1);case u.G6.None:}return e}_atExtremities(t,e,s){if(s||t.seekPathEnd(),s?t.nextPoint():t.prevPoint()){let i=0,[n,r]=[0,0],[o,h]=[t.x,t.y];for(;s?t.nextPoint():t.prevPoint();){n=o,r=h,o=t.x,h=t.y;const s=this._curveHelper.getLength(n,r,o,h);if(i+s>e){const t=(e-i)/s,[a,c]=this._curveHelper.getAngleCS(n,r,o,h,t),l=this._curveHelper.getCoord2D(n,r,o,h,t);return this.internalPlacement.setTranslate(l[0]-this._offset*c,l[1]+this._offset*a),this._angleToLine&&this.internalPlacement.setRotateCS(-a,-c),this.internalPlacement}i+=s}}return null}}class it{static local(){return null===it.instance&&(it.instance=new it),it.instance}execute(t,e,s,i,n){return new nt(t,e,s)}}it.instance=null;class nt extends c{constructor(t,e,s){super(t),this._walker=new L,this._walker.updateTolerance(s),this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*s:0,this._beginGap=void 0!==e.beginPosition?e.beginPosition*s:0,this._endGap=void 0!==e.endPosition?e.endPosition*s:0,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new I,this._pattern.init(e.positionArray,!1,!1),this._subPathLen=0,this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath){const t=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+t;e=s-this._prevPos,this._prevPos=s}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=t.pathLength()-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(t,this._pattern,!1))return null;this._pattern.reset();const s=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+s;e=i-this._prevPos,this._prevPos=i,this.iteratePath=!0}const s=new z;if(!this._walker.nextPointAndAngle(e,s,P.END))return this.iteratePath=!1,null;this.internalPlacement.setTranslate(s.pt[0]-this._offset*s.sa,s.pt[1]+this._offset*s.ca);const i=this._isFirst&&this._flipFirst;let n,r;return this._angleToLine?(n=s.ca,r=s.sa):(n=1,r=0),i&&(n=-n,r=-r),this.internalPlacement.setRotateCS(n,r),this._isFirst=!1,this._posCount--,0===this._posCount&&(this.iteratePath=!1),this.internalPlacement}}var rt=s(72052);const ot=512,ht=24,at=1e-6;class ct{static local(){return null===ct.instance&&(ct.instance=new ct),ct.instance}execute(t,e,s,i,n){return new lt(t,e,s,i,n)}}ct.instance=null;class lt{constructor(t,e,s,i,n){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._accelerationMap=null,this._testInsidePolygon=!1,this._verticalSubdivision=!0,this._stepX=Math.abs(e.stepX??16)*s,this._stepY=Math.abs(e.stepY??16)*s,this._stepX=Math.round(128*this._stepX)/128,this._stepY=Math.round(128*this._stepY)/128,0!==this._stepX&&0!==this._stepY){if(this._gridType=e.gridType??u.sP.Fixed,this._gridType===u.sP.Random){const t=e.seed??13,s=1;this._randomLCG=new rt.c(t*s),this._randomness=(e.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0,this._buildRandomValues()}else{if(this._randomness=0,this._gridAngle=e.gridAngle??0,this._shiftOddRows=e.shiftOddRows??!1,this._offsetX=(e.offsetX??0)*s,this._offsetY=(e.offsetY??0)*s,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}if(this._graphicOriginX=0,this._graphicOriginY=0,null!=i){const[t,e,s,n]=i.split("/"),r=parseFloat(t),o=parseFloat(e),h=parseFloat(s),a=parseFloat(n);this._graphicOriginX=-(a*2**r+h)*ot,this._graphicOriginY=o*ot,this._testInsidePolygon=!0}this._internalPlacement=new h.i,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!lt._randValues){lt._randValues=[];for(let t=0;t<ht;t++)for(let t=0;t<ht;t++)lt._randValues.push(this._randomLCG.getFloat()),lt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,s,i,n,r,o,h,a,c,l,u,_,f,p;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,h=a=f=u=Number.MAX_VALUE,c=l=p=_=-Number.MAX_VALUE;const d=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)o=t.x,r=t.y,e=o-this._graphicOriginX-this._offsetX,s=r-this._graphicOriginY-this._offsetY,d?(i=this._cosAngle*e-this._sinAngle*s,n=this._sinAngle*e+this._cosAngle*s):(i=e,n=s),h=Math.min(h,i),c=Math.max(c,i),a=Math.min(a,n),l=Math.max(l,n),u=Math.min(u,r),_=Math.max(_,r),f=Math.min(f,o),p=Math.max(p,o);u=u!==Number.MAX_VALUE?u:-512-this._stepY,_=_!==-Number.MAX_VALUE?_:this._stepY,f=f!==Number.MAX_VALUE?f:-this._stepX,p=p!==-Number.MAX_VALUE?p:ot+this._stepX;const g=_-u,m=p-f;if(this._verticalSubdivision=g>=m,this._polygonMin=this._verticalSubdivision?u:f,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=ot-this._graphicOriginX-this._offsetX+this._stepX,s=-512-this._graphicOriginY-this._offsetY-this._stepY,i=0-this._graphicOriginY-this._offsetY+this._stepY;if(d){const n=[[t,s],[t,i],[e,s],[e,i]];t=s=Number.MAX_VALUE,e=i=-Number.MAX_VALUE;for(const r of n){const n=this._cosAngle*r[0]-this._sinAngle*r[1],o=this._sinAngle*r[0]+this._cosAngle*r[1];t=Math.min(t,n),e=Math.max(e,n),s=Math.min(s,o),i=Math.max(i,o)}}h=h!==Number.MAX_VALUE?Math.max(h,t):t,a=a!==Number.MAX_VALUE?Math.max(a,s):s,c=c!==-Number.MAX_VALUE?Math.min(c,e):e,l=l!==-Number.MAX_VALUE?Math.min(l,i):i}this._xMin=Math.round(h/this._stepX),this._xMax=Math.round(c/this._stepX),this._yMin=Math.round(a/this._stepY),this._yMax=Math.round(l/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,f,p,u,_)}_buildAccelerationMap(t,e,s,i,n){t.reset();const r=new Map,o=this._verticalSubdivision,h=o?n-i:s-e;let a=Math.ceil(h/10);if(a<=1)return;const c=Math.floor(h/a);let l,u,_,f,p,d,g,m,P,y,x;for(a++,this._delta=c,o?(P=-512-2*this._stepY,y=2*this._stepY,x=i):(P=-2*this._stepX,y=ot+2*this._stepX,x=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(l=t.x,u=t.y;t.nextPoint();l=_,u=f){if(_=t.x,f=t.y,o){if(u===f||u<P&&f<P||u>y&&f>y)continue;p=Math.min(u,f),d=Math.max(u,f)}else{if(l===_||l<P&&_<P||l>y&&_>y)continue;p=Math.min(l,_),d=Math.max(l,_)}for(;p<d;)g=Math.floor((p-x)/c),ut(g,l,u,_,f,r),p+=c;m=Math.floor((d-x)/c),m>g&&ut(m,l,u,_,f,r)}this._accelerationMap=r}_nextInside(){for(;;){if(this._currentX>this._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let t=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(t+=.5*this._stepX);const e=this._currentY*this._stepY+this._offsetY;let s,i;if(this._currentX++,this._gridType===u.sP.Random){const n=(this._currentX%ht+ht)%ht,r=(this._currentY%ht+ht)%ht;s=this._graphicOriginX+t+this._stepX*this._randomness*(.5-lt._randValues[r*ht+n])*2/3,i=this._graphicOriginY+e+this._stepY*this._randomness*(.5-lt._randValues[r*ht+n+1])*2/3}else s=this._graphicOriginX+this._cosAngle*t+this._sinAngle*e,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*e;if(!this._testInsidePolygon||this._isInsidePolygon(s,i,this._geometryCursor))return this._internalPlacement.setTranslate(s,i),this._internalPlacement}}_isInsidePolygon(t,e,s){if(null==this._accelerationMap)return function(t,e,s){let i,n,r,o,h=0;for(t+=at,e+=at,s.reset();s.nextPath();)if(s.nextPoint())for(i=s.x,n=s.y;s.nextPoint();i=r,n=o)r=s.x,o=s.y,n>e!=o>e&&((r-i)*(e-n)-(o-n)*(t-i)>0?h++:h--);return 0!==h}(t,e,s);t+=at,e+=at;const i=this._verticalSubdivision,n=i?e:t,r=Math.floor((n-this._polygonMin)/this._delta),o=this._accelerationMap.get(r);if(!o)return!1;let h,a,c,l=0;for(const s of o){if(h=s[0],a=s[1],i){if(h[1]>e==a[1]>e)continue;c=(a[0]-h[0])*(e-h[1])-(a[1]-h[1])*(t-h[0])}else{if(h[0]>t==a[0]>t)continue;c=(a[1]-h[1])*(t-h[0])-(a[0]-h[0])*(e-h[1])}c>0?l++:l--}return 0!==l}}function ut(t,e,s,i,n,r){let o=r.get(t);o||(o=[],r.set(t,o)),o.push([[e,s],[i,n]])}class _t{static local(){return null===_t.instance&&(_t.instance=new _t),_t.instance}execute(t,e,s,i,n){return new ft(t,e,s)}}_t.instance=null;class ft extends c{constructor(t,e,s){super(t),this._curveHelper=new f,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*s:0,this._relativeTo=e.relativeTo,this._position=void 0!==e.startPointOffset?e.startPointOffset*s:0,this._epsilon=.001*s}processPath(t){const e=this._position;if(this._relativeTo===u.IJ.SegmentMidpoint){if(this.iteratePath||(this.iteratePath=!0),t.nextPoint()){let[e,s]=[t.x,t.y],[i,n]=[0,0];for(;t.nextPoint();){i=t.x,n=t.y;const r=this._curveHelper.getLength(e,s,i,n);if(r<this._epsilon){e=i,s=n;continue}const o=.5+this._position/r,[h,a]=this._curveHelper.getAngleCS(e,s,i,n,o),c=this._curveHelper.getCoord2D(e,s,i,n,o);return this.internalPlacement.setTranslate(c[0]-this._offset*a,c[1]+this._offset*h),this._angleToLine&&this.internalPlacement.setRotateCS(h,a),this.internalPlacement}}return this.iteratePath=!1,null}const s=this._relativeTo===u.IJ.LineEnd;return this.onLine(t,e,s)}onLine(t,e,s){let i,n=!1;switch(this._relativeTo){case u.IJ.LineMiddle:default:t.seekPathStart(),i=t.pathLength()/2+e;break;case u.IJ.LineBeginning:i=e;break;case u.IJ.LineEnd:i=e,n=!0}s?t.seekPathEnd():t.seekPathStart();let r=0;if(s?t.prevPoint():t.nextPoint()){let[e,o]=[t.x,t.y],[h,a]=[0,0];for(;s?t.prevPoint():t.nextPoint();){h=t.x,a=t.y;const s=this._curveHelper.getLength(e,o,h,a);if(r+s>i){const t=(i-r)/s,[c,l]=this._curveHelper.getAngleCS(e,o,h,a,t),u=this._curveHelper.getCoord2D(e,o,h,a,t),_=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(u[0]-_*l,u[1]+_*c),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-c,-l):this.internalPlacement.setRotateCS(c,l)),this.internalPlacement}e=h,o=a,r+=s}}return null}}class pt{static local(){return null===pt.instance&&(pt.instance=new pt),pt.instance}execute(t,e,s,i,n){return new dt(t,e,s)}}pt.instance=null;class dt extends c{constructor(t,e,s){super(t),this._curveHelper=new f,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*s:0,this._endPoints=void 0===e.placeOnEndPoints||e.placeOnEndPoints,this._controlPoints=void 0===e.placeOnControlPoints||e.placeOnControlPoints,this._regularVertices=void 0===e.placeOnRegularVertices||e.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(t){if(this.iteratePath||(this._preparePath(t),this.iteratePath=!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;const e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let s=e[0],i=e[1];if(0!==this._offset){const t=Math.cos(e[2]),n=Math.sin(e[2]);s-=this._offset*n,i+=this._offset*t}return this.internalPlacement.setTranslate(s,i),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();const e=t.isClosed();let s=0,i=!1,n=0,r=0;if(t.seekPathStart(),t.nextPoint()){let o=t.x,h=t.y,a=t.getControlPoint(),c=!0,l=t.nextPoint();for(;l;){const u=t.x,_=t.y,f=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(o,h,u,_,0)),c?(c=!1,e?(s=n,i=a):(this._endPoints||this._controlPoints&&a)&&this._tags.push([o,h,n])):a?this._controlPoints&&this._tags.push([o,h,gt(r,n)]):this._regularVertices&&this._tags.push([o,h,gt(r,n)]),(this._angleToLine||0!==this._offset)&&(r=this._curveHelper.getAngle(o,h,u,_,1)),l=t.nextPoint(),l||(e?f||i?this._controlPoints&&this._tags.push([u,_,gt(r,s)]):this._regularVertices&&this._tags.push([u,_,gt(r,s)]):(this._endPoints||this._controlPoints&&f)&&this._tags.push([u,_,r])),o=u,h=_,a=f}}this._tagIterator=0}}function gt(t,e){const s=Math.PI;for(;Math.abs(e-t)>s+2e-15;)e-t>s?e-=2*s:e+=2*s;return(t+e)/2}var mt=s(95788),Pt=s(67224);class yt{static local(){return null===yt.instance&&(yt.instance=new yt),yt.instance}execute(t,e,s,i,n){return new xt(t,e,s)}}yt.instance=null;class xt{constructor(t,e,s){this._geometryCursor=t,this._offsetX=void 0!==e.offsetX?e.offsetX*s:0,this._offsetY=void 0!==e.offsetY?e.offsetY*s:0,this._method=void 0!==e.method?e.method:u.ms.OnPolygon,this._internalPlacement=new h.i}next(){const t=this._geometryCursor;return this._geometryCursor=null,t?this._polygonCenter(t):null}_polygonCenter(t){let e=!1;switch(this._method){case u.ms.CenterOfMass:{const s=(0,mt.iy)(t);s&&(this._internalPlacement.setTranslate(s[0]+this._offsetX,s[1]+this._offsetY),e=!0)}break;case u.ms.BoundingBoxCenter:{const s=(0,W.IV)(t);s&&(this._internalPlacement.setTranslate((s[2]+s[0])/2+this._offsetX,(s[3]+s[1])/2+this._offsetY),e=!0)}break;case u.ms.OnPolygon:default:{const s=(0,Pt.S)(t);null!==s&&(this._internalPlacement.setTranslate(s[0]+this._offsetX,s[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}function Mt(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return i.local();case"CIMGeometricEffectArrow":return g.local();case"CIMGeometricEffectBuffer":return M.local();case"CIMGeometricEffectControlMeasureLine":return C.local();case"CIMGeometricEffectCut":return w.local();case"CIMGeometricEffectDashes":return T.local();case"CIMGeometricEffectDonut":return O.local();case"CIMGeometricEffectJog":return F.local();case"CIMGeometricEffectMove":return R.local();case"CIMGeometricEffectOffset":return X.local();case"CIMGeometricEffectReverse":return U.local();case"CIMGeometricEffectRotate":return q.local();case"CIMGeometricEffectScale":return J.local();case"CIMGeometricEffectWave":return Z.local()}return null}function bt(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return $.local();case"CIMMarkerPlacementAtExtremities":return et.local();case"CIMMarkerPlacementAtRatioPositions":return it.local();case"CIMMarkerPlacementInsidePolygon":return ct.local();case"CIMMarkerPlacementOnLine":return _t.local();case"CIMMarkerPlacementOnVertices":return pt.local();case"CIMMarkerPlacementPolygonCenter":return yt.local()}return null}},67576:(t,e,s)=>{s.d(e,{i:()=>i});class i{constructor(){this.setIdentity()}getAngle(){return(null==this.rz||0===this.rz&&1!==this.rzCos&&0!==this.rzSin)&&(this.rz=Math.atan2(this.rzSin,this.rzCos)),this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(t,e){this.tx=t,this.ty=e}setTranslateZ(t){this.tz=t}setRotateCS(t,e){this.rz=void 0,this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=void 0,this.rzSin=void 0}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},14510:(t,e,s)=>{s.d(e,{mm:()=>r,O7:()=>o}),new(s(60024).c),s(9456),s(62088),s(66360),s(72052),s(83372),s(33008),s(73771),s(6220),new Map,new Set,s(69752),s(50144),s(7857),s(95788),s(6704),s(1720),s(55872),s(67576),s(60536),s(89232),s(39056);var i=s(14624);function n(t){if(!t)return 0;switch(t.type){case"CIMGeometricEffectArrow":return Math.abs(.5*t.width);case"CIMGeometricEffectBuffer":return Math.abs(t.size);case"CIMGeometricEffectExtension":case"CIMGeometricEffectRadial":return Math.abs(t.length);case"CIMGeometricEffectJog":return Math.abs(.5*t.length);case"CIMGeometricEffectMove":return Math.max(Math.abs((0,i.uc)(t.offsetX)),Math.abs((0,i.uc)(t.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(t.offset);case"CIMGeometricEffectRegularPolygon":return Math.abs(t.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(t.fromWidth),Math.abs(t.toWidth));case"CIMGeometricEffectWave":return Math.abs(t.amplitude);case"CIMGeometricEffectDonut":return Math.abs(t.width)}}function r(t){if(!t)return 0;let e=0;for(const s of t)e+=n(s);return e}s(67720),s(97576),Math.PI,s(45704),s(51760),Math.PI,Math.PI;const o=t=>{if(!t)return[0,0,0,0];const{r:e,g:s,b:i,a:n}=t;return[e,s,i,255*n]}},60536:(t,e,s)=>{s.d(e,{C:()=>i});const i={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetX:0,offsetY:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMSolidFill:{enable:!0,colorocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry"},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0}}},14624:(t,e,s)=>{s.d(e,{Cs:()=>d,L3:()=>g,O4:()=>h,OC:()=>I,Qh:()=>b,SQ:()=>m,Wy:()=>S,_K:()=>_,aE:()=>y,eK:()=>o,i:()=>p,i4:()=>w,i6:()=>u,iK:()=>A,i_:()=>a,k$:()=>P,kf:()=>M,oL:()=>f,ol:()=>C,uc:()=>l,yS:()=>x});var i=s(60536);const n=" /-,\n";function r(t){let e=t.length;for(;e--;)if(!n.includes(t.charAt(e)))return!1;return!0}function o(t,e){const s=[];let i=0,n=-1;do{if(n=t.indexOf("[",i),n>=i){if(n>i){const e=t.substr(i,n-i);s.push([e,null,r(e)])}if(i=n+1,n=t.indexOf("]",i),n>=i){if(n>i){const r=e[t.substr(i,n-i)];r&&s.push([null,r,!1])}i=n+1}}}while(-1!==n);if(i<t.length-1){const e=t.substr(i);s.push([e,null,r(e)])}return s}function h(t,e,s,i){let n="",r=null;for(const i of e){const[e,o,h]=i;if(e)h?r=e:(r&&(n+=r,r=null),n+=e);else{let e=o;null!=s&&(e=I(o,s));const i=t.attributes[e];i&&(r&&(n+=r,r=null),n+=i)}}return function(t,e){switch("string"!=typeof t&&(t=String(t)),e){case"LowerCase":return t.toLowerCase();case"Allcaps":return t.toUpperCase();default:return t}}(n,i)}function a(t){return null!=t&&("CIMGradientFill"===t.type||"CIMHatchFill"===t.type||"CIMPictureFill"===t.type||"CIMSolidFill"===t.type||"CIMWaterFill"===t.type)}function c(t){return null!=t&&("CIMMarkerPlacementAlongLineRandomSize"===t.type||"CIMMarkerPlacementAlongLineSameSize"===t.type||"CIMMarkerPlacementAlongLineVariableSize"===t.type||"CIMMarkerPlacementAtExtremities"===t.type||"CIMMarkerPlacementAtMeasuredUnits"===t.type||"CIMMarkerPlacementAtRatioPositions"===t.type||"CIMMarkerPlacementOnLine"===t.type||"CIMMarkerPlacementOnVertices"===t.type)}const l=(t,e=0)=>null==t||isNaN(t)?e:t;function u(t){if(!t)return"normal";switch(t.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function _(t){if(!t)return"normal";switch(t.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function f(t){let e="normal",s="normal";if(t){const i=t.toLowerCase();i.includes("italic")?e="italic":i.includes("oblique")&&(e="oblique"),i.includes("bold")?s="bold":i.includes("light")&&(s="lighter")}return{style:e,weight:s}}function p(t){return t.underline?"underline":t.strikethrough?"line-through":"none"}function d(t){if(!t)return null;switch(t.type){case"CIMPolygonSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=d(e);if(null!=t)return t}break;case"CIMTextSymbol":return d(t.symbol);case"CIMSolidFill":return t.color}return null}function g(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const e=t.symbolLayers;if(e)for(const t of e){const e=g(t);if(null!=e)return e}break}case"CIMTextSymbol":return g(t.symbol);case"CIMSolidStroke":return t.color}}function m(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=m(e);if(void 0!==t)return t}break;case"CIMTextSymbol":return m(t.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return t.width}}function P(t){switch(t){case"Left":default:return"left";case"Right":return"right";case"Center":case"Justify":return"center"}}function y(t){switch(t){case"Top":default:return"top";case"Center":return"middle";case"Baseline":return"baseline";case"Bottom":return"bottom"}}function x(t){return(t?Object.keys(t):[]).map((e=>({name:e,alias:e,type:"string"==typeof t[e]?"esriFieldTypeString":"esriFieldTypeDouble"})))}const M=t=>t.includes("data:image/svg+xml");function b(t){return t?t.charAt(0).toLowerCase()+t.substring(1):t}function C(t,e,s,i,n,r){const{infos:o}=r;let h=1,a=0,c=0,l=0;for(const{offsetX:t,offsetY:e,rotation:s,size:i,frameHeight:n,rotateClockWise:r}of o)c=v(t,e,a,h,c),l=z(t,e,a,h,l),n&&(h*=i/n),a=L(s,r,a);const u=v(i,n,a,h,c),_=z(i,n,a,h,l);return{size:t*h,rotation:L(e,s,a),offsetX:u,offsetY:_}}function S(t){return t?.dashTemplate&&"string"==typeof t.dashTemplate&&(t.dashTemplate=t.dashTemplate.split(" ").map(Number)),t}function w(t){if(null==t)return"Normal";switch(t.type){case"CIMTextSymbol":return t.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const e=t.symbolLayers;if(!e)return"Normal";for(const t of e)if("CIMVectorMarker"===t.type)return w(t)}break;case"CIMVectorMarker":{const e=t.markerGraphics;if(!e)return"Normal";for(const t of e)if(t.symbol)return w(t.symbol)}}return"Normal"}function A(t){if(t)switch(t.type){case"CIMTextSymbol":return t.height;case"CIMPointSymbol":{let e=0;if(t.symbolLayers)for(const s of t.symbolLayers)if(s)switch(s.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=s.size??i.C.CIMVectorMarker.size;t>e&&(e=t);break}}return e}case"CIMLineSymbol":case"CIMPolygonSymbol":{let e=0;if(t.symbolLayers)for(const s of t.symbolLayers)if(s)switch(s.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=s.width;null!=t&&t>e&&(e=t);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(s.markerPlacement&&c(s.markerPlacement)){const t=s.size??i.C.CIMVectorMarker.size;t>e&&(e=t)}break;case"CIMPictureFill":{const t=s.height;null!=t&&t>e&&(e=t)}}return e}}}function I(t,e){if(null!==e){const s=e.get(t);return s?s.name:t}return t}function z(t,e,s,i,n){const r=s*Math.PI/180;if(r){const s=Math.cos(r);return(Math.sin(r)*t+s*e)*i+n}return e*i+n}function v(t,e,s,i,n){const r=s*Math.PI/180;return r?(Math.cos(r)*t-Math.sin(r)*e)*i+n:t*i+n}function L(t,e,s){return e?s-t:s+t}},45704:(t,e,s)=>{s.d(e,{Sg:()=>l,Uj:()=>c,Uz:()=>a,YP:()=>u}),s(9456);var i=s(47472),n=s(7432),r=s(49736),o=s(28652),h=s(9504);const a=r.c.fromJSON(h.qe),c=n.c.fromJSON(h.MZ),l=i.c.fromJSON(h.yq),u=o.c.fromJSON(h.gF);r.c.fromJSON(h.gP),n.c.fromJSON(h.aV),i.c.fromJSON(h.wp)},9504:(t,e,s)=>{s.d(e,{MZ:()=>r,aV:()=>c,gF:()=>h,gP:()=>a,qe:()=>n,wp:()=>l,yq:()=>o});const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},h={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},c={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},l={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},27364:(t,e,s)=>{s.d(e,{c:()=>i});class i{constructor(t=0,e=0,s=0,i=0){this.x=t,this.y=e,this.width=s,this.height=i}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},57880:(t,e,s)=>{s.d(e,{Ab:()=>l,O4:()=>u,OS:()=>c,Wv:()=>o,YT:()=>a});var i=s(66360);const n=()=>i.c.getLogger("esri.views.2d.engine.webgl.alignmentUtils");var r,o,h;function a(t){if(!t)return r.Center;switch(t){case"Left":case"left":return r.Left;case"Right":case"right":return r.Right;case"Justify":return n().warnOnce("Horizontal alignment 'justify' is not implemented. Falling back to 'center'."),r.Center;case"Center":case"center":return r.Center}}function c(t){if(!t)return o.Center;switch(t){case"Top":case"top":return o.Top;case"Center":case"middle":return o.Center;case"Baseline":case"baseline":return o.Baseline;case"Bottom":case"bottom":return o.Bottom}}function l(t){switch(t){case r.Right:case"right":return-1;case r.Center:case"center":return 0;case r.Left:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function u(t){switch(t){case o.Top:case"top":return 1;case o.Center:case"middle":return 0;case o.Bottom:case o.Baseline:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}(h=r||(r={}))[h.Left=-1]="Left",h[h.Center=0]="Center",h[h.Right=1]="Right",function(t){t[t.Top=1]="Top",t[t.Center=0]="Center",t[t.Bottom=-1]="Bottom",t[t.Baseline=2]="Baseline"}(o||(o={}))},47656:(t,e,s)=>{s.d(e,{c:()=>n});var i=s(38600);class n{constructor(t,e,s,n){this.computedX=0,this.computedY=0,this.center=(0,i.WK)(t,e),this.centerT=(0,i.Su)(),this.halfWidth=s/2,this.halfHeight=n/2,this.width=s,this.height=n}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(t){this.center[0]=t}set y(t){this.center[1]=t}clone(){return new n(this.x,this.y,this.width,this.height)}serialize(t){return t.writeF32(this.center[0]),t.writeF32(this.center[1]),t.push(this.width),t.push(this.height),t}findCollisionDelta(t,e=4){const s=Math.abs(t.centerT[0]-this.centerT[0]),i=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/s,r=(t.halfHeight+this.halfHeight+e)/i,o=Math.min(n,r);return Math.log2(o)}extend(t){const e=Math.min(this.xmin,t.xmin),s=Math.min(this.ymin,t.ymin),i=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-s,r=e+i/2,o=s+n/2;this.width=i,this.height=n,this.halfWidth=i/2,this.halfHeight=n/2,this.x=r,this.y=o}static deserialize(t){const e=t.readF32(),s=t.readF32(),i=t.readInt32(),r=t.readInt32();return new n(e,s,i,r)}}},97576:(t,e,s)=>{s.d(e,{C0:()=>S});var i=s(64696),n=s(44444),r=s(37648),o=s(38600),h=s(57880),a=s(27364),c=s(47656);const l=22,u=4,_=l+u,f=l-6,p=3,d=Math.PI/180;class g{constructor(t,e,s,i){this._rotationT=(0,n.Su)(),this._xBounds=0,this._yBounds=0,this.minZoom=0,this.maxZoom=255,this._bounds=null;const r=s.rect,o=new Float32Array(8);t*=i,e*=i;const h=s.code?r.width*i:s.metrics.width,a=s.code?r.height*i:s.metrics.height;this.width=h,this.height=a,o[0]=t,o[1]=e,o[2]=t+h,o[3]=e,o[4]=t,o[5]=e+a,o[6]=t+h,o[7]=e+a,this._data=o,this._setTextureCoords(r),this._scale=i,this._mosaic=s,this.x=t,this.y=e,this.maxOffset=Math.max(t+h,e+a)}get mosaic(){return this._mosaic}set angle(t){this._angle=t,(0,i.IT)(this._rotationT,-t),this._setOffsets()}get angle(){return this._angle}get xTopLeft(){return this._data[0]}get yTopLeft(){return this._data[1]}get xBottomRight(){return this._data[6]}get yBottomRight(){return this._data[7]}get texcoords(){return this._texcoords}get textureBinding(){return this._mosaic.textureBinding}get offsets(){return this._offsets||this._setOffsets(),this._offsets}get char(){return String.fromCharCode(this._mosaic.code)}get code(){return this._mosaic.code}get bounds(){if(!this._bounds){const{height:t,width:e}=this._mosaic.metrics,s=e*this._scale,r=Math.abs(t)*this._scale,o=new Float32Array(8);o[0]=this.x,o[1]=this.y,o[2]=this.x+s,o[3]=this.y,o[4]=this.x,o[5]=this.y+r,o[6]=this.x+s,o[7]=this.y+r;const h=(0,i.iW)((0,n.Su)(),this._rotationT,this._transform);(0,n.Ws)(o,o,h);let a=1/0,l=1/0,u=0,_=0;for(let t=0;t<4;t++){const e=o[2*t],s=o[2*t+1];a=Math.min(a,e),l=Math.min(l,s),u=Math.max(u,e),_=Math.max(_,s)}const f=u-a,p=_-l,d=a+f/2,g=l+p/2;this._bounds=new c.c(d,g,f,p)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}_setOffsets(){this._offsets||(this._offsets={topLeft:[0,0],topRight:[0,0],bottomLeft:[0,0],bottomRight:[0,0]});const t=(0,i.iW)((0,n.Su)(),this._rotationT,this._transform);this._offsets.topLeft[0]=this._data[0],this._offsets.topLeft[1]=this._data[1],this._offsets.topRight[0]=this._data[2],this._offsets.topRight[1]=this._data[3],this._offsets.bottomLeft[0]=this._data[4],this._offsets.bottomLeft[1]=this._data[5],this._offsets.bottomRight[0]=this._data[6],this._offsets.bottomRight[1]=this._data[7],(0,r.m4)(this._offsets.topLeft,this._offsets.topLeft,t),(0,r.m4)(this._offsets.topRight,this._offsets.topRight,t),(0,r.m4)(this._offsets.bottomLeft,this._offsets.bottomLeft,t),(0,r.m4)(this._offsets.bottomRight,this._offsets.bottomRight,t)}_setTextureCoords({x:t,y:e,width:s,height:i}){this._texcoords={topLeft:[t,e],topRight:[t+s,e],bottomLeft:[t,e+i],bottomRight:[t+s,e+i]}}}const m=(t,e)=>({code:0,page:0,sdf:!0,rect:new a.c(0,0,11,8),textureBinding:e,metrics:{advance:0,height:4,width:t,left:0,top:0}});function P(t,e){return t.forEach((t=>(0,r.m4)(t,t,e))),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class y{constructor(t,e,s){this._rotation=0,this._decorate(t,e,s),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==s.angle,this._transform=this._createGlyphTransform(this.bounds,s),this._borderLineSizePx=s.borderLineSizePx,(s.borderLineSizePx||s.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(const e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;const e=this._transform,s=(0,i.IT)((0,n.Su)(),t);(0,i.iW)(e,s,e);for(const t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,s){if(!s.decoration||"none"===s.decoration||!t.length)return;const i=s.scale,n="underline"===s.decoration?_:f,r=t[0].textureBinding;for(const s of e){const e=s.startX*i,o=s.startY*i,h=(s.width+s.glyphWidthEnd)*i;t.push(new g(e,o+n*i,m(h,r),1))}}shapeBackground(t){const e=(1.5+(this._borderLineSizePx||0))/2,s=this._borderLineSizePx?e:0,{xmin:i,ymin:n,xmax:r,ymax:o,x:h,y:a,width:l,height:u}=this.bounds,_=[i-8,n-8],f=[r+8,n-8],p=[i-8,o+8],d=[r+8,o+8],g=P([[_[0]-e,_[1]-e],[f[0]+e,f[1]-e],[_[0]+s,_[1]+s],[f[0]-s,f[1]+s]],t),m=P([[p[0]+s,p[1]-s],[d[0]-s,d[1]-s],[p[0]-e,p[1]+e],[d[0]+e,d[1]+e]],t),y=P([[_[0]-e,_[1]-e],[_[0]+s,_[1]+s],[p[0]-e,p[1]+e],[p[0]+s,p[1]-s]],t),x=P([[f[0]-s,f[1]+s],[f[0]+e,f[1]-e],[d[0]-s,d[1]-s],[d[0]+e,d[1]+e]],t),M={main:P([_,f,p,d],t),top:g,bot:m,left:y,right:x};return[new c.c(h,a,l+2*e,u+2*e),M]}get boundsT(){const t=this.bounds,e=(0,r.WO)((0,o.Su)(),t.x,t.y);if((0,r.m4)(e,e,this._transform),this._hasRotation){const s=Math.max(t.width,t.height);return new c.c(e[0],e[1],s,s)}return new c.c(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,s=1/0,i=0,n=0;for(const r of t)e=Math.min(e,r.xTopLeft),s=Math.min(s,r.yTopLeft),i=Math.max(i,r.xBottomRight),n=Math.max(n,r.yBottomRight);const r=i-e,o=n-s;return new c.c(e+r/2,s+o/2,r,o)}_createGlyphTransform(t,e){const s=d*e.angle,h=(0,n.Su)(),a=(0,o.Su)();return(0,i.GS)(h,h,(0,r.WO)(a,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,i.c9)(h,h,s):((0,i.GS)(h,h,(0,r.WO)(a,t.x,t.y)),(0,i.c9)(h,h,s),(0,i.GS)(h,h,(0,r.WO)(a,-t.x,-t.y))),h}}class x{constructor(t,e,s,i,n,r){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,s)),this.end=Math.max(0,Math.max(e,s)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].metrics.width),this.width=i,this.yMin=n,this.yMax=r}}const M=t=>10===t,b=t=>32===t;function C(t,e){let s=0;for(let e=0;e<t.length;e++){const{width:i}=t[e];s=Math.max(i,s)}const i="underline"===e.decoration?u:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+i-n,width:s}}function S(t,e){const s=e.scale,i=new Array,{glyphs:n,isRightToLeft:r}=t,o=function(t,e,s){const i=new Array,n=1/s.scale,r=s.maxLineWidth*n,o=e?t.length-1:0,h=e?-1:t.length,a=e?-1:1;let c=o,l=0,u=0,_=c,f=_,p=0,d=1/0,g=0;for(;c!==h;){const{code:e,metrics:s}=t[c],n=Math.abs(s.top);if(M(e)||b(e)||(d=Math.min(d,n),g=Math.max(g,n+s.height)),M(e))c!==o&&(i.push(new x(t,_,c-a,l,d,g)),d=1/0,g=0),l=0,_=c+a,f=c+a,u=0;else if(b(e))f=c+a,u=0,p=s.advance,l+=s.advance;else if(l>r){if(f!==_){const e=f-2*a;l-=p,i.push(new x(t,_,e,l-u,d,g)),d=1/0,g=0,_=f,l=u}else i.push(new x(t,_,c-a,l,d,g)),d=1/0,g=0,_=c,f=c,l=0;l+=s.advance,u+=s.advance}else l+=s.advance,u+=s.advance;c+=a}const m=new x(t,_,c-a,l,d,g);return m.start>=0&&m.end<t.length&&i.push(m),i}(n,r,e),a=C(o,e),c=(0,h.YT)(e.horizontalAlignment),u=(0,h.OS)(e.verticalAlignment),_=u===h.Wv.Baseline?1:0,f=_?0:u-1,d=(1-_)*-a.y+f*(a.height/2)+(_?1:0)*-l;for(let t=0;t<o.length;t++){const{start:r,end:h,width:a}=o[t];let l=-1*(c+1)*(a/2)-p;const u=t*e.lineHeight+d-p;o[t].startX=l,o[t].startY=u;for(let t=r;t<=h;t++){const e=n[t];if(M(e.code))continue;const r=new g(l+e.metrics.left,u-e.metrics.top,e,s);l+=e.metrics.advance,i.push(r)}}return new y(i,o,e)}}}]);