@arcgis/core 5.2.0-next.156 → 5.2.0-next.157

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 (334) hide show
  1. package/analysis/LineOfSightAnalysis.d.ts +49 -32
  2. package/analysis/LineOfSightAnalysisObserver.d.ts +19 -3
  3. package/analysis/LineOfSightAnalysisTarget.d.ts +19 -3
  4. package/analysis/Viewshed.d.ts +23 -3
  5. package/analysis/ViewshedAnalysis.d.ts +33 -13
  6. package/arcade/geometry/operatorsWorkerConnection.js +1 -1
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{925271bb763607a326ae.js → 2f04b8679c9f15390517.js} +1 -1
  9. package/assets/esri/core/workers/chunks/35e5762642d1a3a2e375.js +1 -0
  10. package/assets/esri/core/workers/chunks/{544070198d2ca556103a.js → 44918ff37818a7d36d76.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{be5f92e98d09d6e6e38e.js → 4bb1bb3ffb1b71bc43c8.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{1aa4f5394a596e544aeb.js → 4eae066673484986d4c1.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{5f4feca26102088ea565.js → 60737732ce495bbdd0fc.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{916b363c342b61ba5461.js → 787c1a8bda7d745633f2.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{acfa03c65ba3ca6c5685.js → 8715661a838361d4211a.js} +1 -1
  16. package/assets/esri/core/workers/chunks/9215b59c5ccecf9add58.js +1 -0
  17. package/assets/esri/core/workers/chunks/{fafb92ca2c5e4b0b2c23.js → a09d2e1e2540921e4717.js} +1 -1
  18. package/assets/esri/core/workers/chunks/cb4be68cc5085d421615.js +1 -0
  19. package/assets/esri/core/workers/chunks/{de6081df29183bf80787.js → d65383f4058dc813f40d.js} +1 -1
  20. package/assets/esri/core/workers/chunks/d6cd0039d6e9c40961e3.js +1 -0
  21. package/assets/esri/views/interactive/tooltip/t9n/messages.ar.json +1 -1
  22. package/assets/esri/views/interactive/tooltip/t9n/messages.bg.json +1 -1
  23. package/assets/esri/views/interactive/tooltip/t9n/messages.bs.json +1 -1
  24. package/assets/esri/views/interactive/tooltip/t9n/messages.ca.json +1 -1
  25. package/assets/esri/views/interactive/tooltip/t9n/messages.cs.json +1 -1
  26. package/assets/esri/views/interactive/tooltip/t9n/messages.da.json +1 -1
  27. package/assets/esri/views/interactive/tooltip/t9n/messages.de.json +1 -1
  28. package/assets/esri/views/interactive/tooltip/t9n/messages.el.json +1 -1
  29. package/assets/esri/views/interactive/tooltip/t9n/messages.es.json +1 -1
  30. package/assets/esri/views/interactive/tooltip/t9n/messages.et.json +1 -1
  31. package/assets/esri/views/interactive/tooltip/t9n/messages.fi.json +1 -1
  32. package/assets/esri/views/interactive/tooltip/t9n/messages.fr.json +1 -1
  33. package/assets/esri/views/interactive/tooltip/t9n/messages.he.json +1 -1
  34. package/assets/esri/views/interactive/tooltip/t9n/messages.hr.json +1 -1
  35. package/assets/esri/views/interactive/tooltip/t9n/messages.hu.json +1 -1
  36. package/assets/esri/views/interactive/tooltip/t9n/messages.id.json +1 -1
  37. package/assets/esri/views/interactive/tooltip/t9n/messages.it.json +1 -1
  38. package/assets/esri/views/interactive/tooltip/t9n/messages.ja.json +1 -1
  39. package/assets/esri/views/interactive/tooltip/t9n/messages.ko.json +1 -1
  40. package/assets/esri/views/interactive/tooltip/t9n/messages.lt.json +1 -1
  41. package/assets/esri/views/interactive/tooltip/t9n/messages.lv.json +1 -1
  42. package/assets/esri/views/interactive/tooltip/t9n/messages.nl.json +1 -1
  43. package/assets/esri/views/interactive/tooltip/t9n/messages.no.json +1 -1
  44. package/assets/esri/views/interactive/tooltip/t9n/messages.pl.json +1 -1
  45. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-BR.json +1 -1
  46. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-PT.json +1 -1
  47. package/assets/esri/views/interactive/tooltip/t9n/messages.ro.json +1 -1
  48. package/assets/esri/views/interactive/tooltip/t9n/messages.ru.json +1 -1
  49. package/assets/esri/views/interactive/tooltip/t9n/messages.sk.json +1 -1
  50. package/assets/esri/views/interactive/tooltip/t9n/messages.sl.json +1 -1
  51. package/assets/esri/views/interactive/tooltip/t9n/messages.sr.json +1 -1
  52. package/assets/esri/views/interactive/tooltip/t9n/messages.sv.json +1 -1
  53. package/assets/esri/views/interactive/tooltip/t9n/messages.th.json +1 -1
  54. package/assets/esri/views/interactive/tooltip/t9n/messages.tr.json +1 -1
  55. package/assets/esri/views/interactive/tooltip/t9n/messages.uk.json +1 -1
  56. package/assets/esri/views/interactive/tooltip/t9n/messages.vi.json +1 -1
  57. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-CN.json +1 -1
  58. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-HK.json +1 -1
  59. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-TW.json +1 -1
  60. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
  61. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
  62. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
  63. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
  64. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
  65. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
  66. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
  67. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
  68. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
  69. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
  70. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
  71. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
  72. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
  73. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
  74. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
  75. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
  76. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
  77. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
  78. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
  79. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
  80. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
  81. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
  82. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
  83. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
  84. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
  85. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
  86. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
  87. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
  88. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
  89. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
  90. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
  91. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
  92. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
  93. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
  94. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
  95. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
  96. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
  97. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
  98. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
  99. package/assets/esri/widgets/Editor/t9n/messages.ar.json +1 -1
  100. package/assets/esri/widgets/Editor/t9n/messages.bg.json +1 -1
  101. package/assets/esri/widgets/Editor/t9n/messages.bs.json +1 -1
  102. package/assets/esri/widgets/Editor/t9n/messages.ca.json +1 -1
  103. package/assets/esri/widgets/Editor/t9n/messages.cs.json +1 -1
  104. package/assets/esri/widgets/Editor/t9n/messages.da.json +1 -1
  105. package/assets/esri/widgets/Editor/t9n/messages.de.json +1 -1
  106. package/assets/esri/widgets/Editor/t9n/messages.el.json +1 -1
  107. package/assets/esri/widgets/Editor/t9n/messages.es.json +1 -1
  108. package/assets/esri/widgets/Editor/t9n/messages.et.json +1 -1
  109. package/assets/esri/widgets/Editor/t9n/messages.fi.json +1 -1
  110. package/assets/esri/widgets/Editor/t9n/messages.fr.json +1 -1
  111. package/assets/esri/widgets/Editor/t9n/messages.he.json +1 -1
  112. package/assets/esri/widgets/Editor/t9n/messages.hr.json +1 -1
  113. package/assets/esri/widgets/Editor/t9n/messages.hu.json +1 -1
  114. package/assets/esri/widgets/Editor/t9n/messages.id.json +1 -1
  115. package/assets/esri/widgets/Editor/t9n/messages.it.json +1 -1
  116. package/assets/esri/widgets/Editor/t9n/messages.ja.json +1 -1
  117. package/assets/esri/widgets/Editor/t9n/messages.ko.json +1 -1
  118. package/assets/esri/widgets/Editor/t9n/messages.lt.json +1 -1
  119. package/assets/esri/widgets/Editor/t9n/messages.lv.json +1 -1
  120. package/assets/esri/widgets/Editor/t9n/messages.nl.json +1 -1
  121. package/assets/esri/widgets/Editor/t9n/messages.no.json +1 -1
  122. package/assets/esri/widgets/Editor/t9n/messages.pl.json +1 -1
  123. package/assets/esri/widgets/Editor/t9n/messages.pt-BR.json +1 -1
  124. package/assets/esri/widgets/Editor/t9n/messages.pt-PT.json +1 -1
  125. package/assets/esri/widgets/Editor/t9n/messages.ro.json +1 -1
  126. package/assets/esri/widgets/Editor/t9n/messages.ru.json +1 -1
  127. package/assets/esri/widgets/Editor/t9n/messages.sk.json +1 -1
  128. package/assets/esri/widgets/Editor/t9n/messages.sl.json +1 -1
  129. package/assets/esri/widgets/Editor/t9n/messages.sr.json +1 -1
  130. package/assets/esri/widgets/Editor/t9n/messages.sv.json +1 -1
  131. package/assets/esri/widgets/Editor/t9n/messages.th.json +1 -1
  132. package/assets/esri/widgets/Editor/t9n/messages.tr.json +1 -1
  133. package/assets/esri/widgets/Editor/t9n/messages.uk.json +1 -1
  134. package/assets/esri/widgets/Editor/t9n/messages.vi.json +1 -1
  135. package/assets/esri/widgets/Editor/t9n/messages.zh-CN.json +1 -1
  136. package/assets/esri/widgets/Editor/t9n/messages.zh-HK.json +1 -1
  137. package/assets/esri/widgets/Editor/t9n/messages.zh-TW.json +1 -1
  138. package/assets/esri/widgets/FeatureForm/t9n/messages.ar.json +1 -1
  139. package/assets/esri/widgets/FeatureForm/t9n/messages.bg.json +1 -1
  140. package/assets/esri/widgets/FeatureForm/t9n/messages.bs.json +1 -1
  141. package/assets/esri/widgets/FeatureForm/t9n/messages.ca.json +1 -1
  142. package/assets/esri/widgets/FeatureForm/t9n/messages.cs.json +1 -1
  143. package/assets/esri/widgets/FeatureForm/t9n/messages.da.json +1 -1
  144. package/assets/esri/widgets/FeatureForm/t9n/messages.de.json +1 -1
  145. package/assets/esri/widgets/FeatureForm/t9n/messages.el.json +1 -1
  146. package/assets/esri/widgets/FeatureForm/t9n/messages.es.json +1 -1
  147. package/assets/esri/widgets/FeatureForm/t9n/messages.et.json +1 -1
  148. package/assets/esri/widgets/FeatureForm/t9n/messages.fi.json +1 -1
  149. package/assets/esri/widgets/FeatureForm/t9n/messages.fr.json +1 -1
  150. package/assets/esri/widgets/FeatureForm/t9n/messages.he.json +1 -1
  151. package/assets/esri/widgets/FeatureForm/t9n/messages.hr.json +1 -1
  152. package/assets/esri/widgets/FeatureForm/t9n/messages.hu.json +1 -1
  153. package/assets/esri/widgets/FeatureForm/t9n/messages.id.json +1 -1
  154. package/assets/esri/widgets/FeatureForm/t9n/messages.it.json +1 -1
  155. package/assets/esri/widgets/FeatureForm/t9n/messages.ja.json +1 -1
  156. package/assets/esri/widgets/FeatureForm/t9n/messages.ko.json +1 -1
  157. package/assets/esri/widgets/FeatureForm/t9n/messages.lt.json +1 -1
  158. package/assets/esri/widgets/FeatureForm/t9n/messages.lv.json +1 -1
  159. package/assets/esri/widgets/FeatureForm/t9n/messages.nl.json +1 -1
  160. package/assets/esri/widgets/FeatureForm/t9n/messages.no.json +1 -1
  161. package/assets/esri/widgets/FeatureForm/t9n/messages.pl.json +1 -1
  162. package/assets/esri/widgets/FeatureForm/t9n/messages.pt-BR.json +1 -1
  163. package/assets/esri/widgets/FeatureForm/t9n/messages.pt-PT.json +1 -1
  164. package/assets/esri/widgets/FeatureForm/t9n/messages.ro.json +1 -1
  165. package/assets/esri/widgets/FeatureForm/t9n/messages.ru.json +1 -1
  166. package/assets/esri/widgets/FeatureForm/t9n/messages.sk.json +1 -1
  167. package/assets/esri/widgets/FeatureForm/t9n/messages.sl.json +1 -1
  168. package/assets/esri/widgets/FeatureForm/t9n/messages.sr.json +1 -1
  169. package/assets/esri/widgets/FeatureForm/t9n/messages.sv.json +1 -1
  170. package/assets/esri/widgets/FeatureForm/t9n/messages.th.json +1 -1
  171. package/assets/esri/widgets/FeatureForm/t9n/messages.tr.json +1 -1
  172. package/assets/esri/widgets/FeatureForm/t9n/messages.uk.json +1 -1
  173. package/assets/esri/widgets/FeatureForm/t9n/messages.vi.json +1 -1
  174. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-CN.json +1 -1
  175. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-HK.json +1 -1
  176. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-TW.json +1 -1
  177. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ar.json +1 -1
  178. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bg.json +1 -1
  179. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bs.json +1 -1
  180. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ca.json +1 -1
  181. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.cs.json +1 -1
  182. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.da.json +1 -1
  183. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.de.json +1 -1
  184. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.el.json +1 -1
  185. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.es.json +1 -1
  186. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.et.json +1 -1
  187. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fi.json +1 -1
  188. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fr.json +1 -1
  189. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.he.json +1 -1
  190. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hr.json +1 -1
  191. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hu.json +1 -1
  192. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.id.json +1 -1
  193. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.it.json +1 -1
  194. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ja.json +1 -1
  195. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ko.json +1 -1
  196. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lt.json +1 -1
  197. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lv.json +1 -1
  198. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.nl.json +1 -1
  199. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.no.json +1 -1
  200. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pl.json +1 -1
  201. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-BR.json +1 -1
  202. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-PT.json +1 -1
  203. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ro.json +1 -1
  204. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ru.json +1 -1
  205. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sk.json +1 -1
  206. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sl.json +1 -1
  207. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sr.json +1 -1
  208. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sv.json +1 -1
  209. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.th.json +1 -1
  210. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.tr.json +1 -1
  211. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.uk.json +1 -1
  212. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.vi.json +1 -1
  213. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-CN.json +1 -1
  214. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-HK.json +1 -1
  215. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-TW.json +1 -1
  216. package/assets/esri/widgets/Sketch/t9n/messages.ar.json +1 -1
  217. package/assets/esri/widgets/Sketch/t9n/messages.bg.json +1 -1
  218. package/assets/esri/widgets/Sketch/t9n/messages.bs.json +1 -1
  219. package/assets/esri/widgets/Sketch/t9n/messages.ca.json +1 -1
  220. package/assets/esri/widgets/Sketch/t9n/messages.cs.json +1 -1
  221. package/assets/esri/widgets/Sketch/t9n/messages.da.json +1 -1
  222. package/assets/esri/widgets/Sketch/t9n/messages.de.json +1 -1
  223. package/assets/esri/widgets/Sketch/t9n/messages.el.json +1 -1
  224. package/assets/esri/widgets/Sketch/t9n/messages.es.json +1 -1
  225. package/assets/esri/widgets/Sketch/t9n/messages.et.json +1 -1
  226. package/assets/esri/widgets/Sketch/t9n/messages.fi.json +1 -1
  227. package/assets/esri/widgets/Sketch/t9n/messages.fr.json +1 -1
  228. package/assets/esri/widgets/Sketch/t9n/messages.he.json +1 -1
  229. package/assets/esri/widgets/Sketch/t9n/messages.hr.json +1 -1
  230. package/assets/esri/widgets/Sketch/t9n/messages.hu.json +1 -1
  231. package/assets/esri/widgets/Sketch/t9n/messages.id.json +1 -1
  232. package/assets/esri/widgets/Sketch/t9n/messages.it.json +1 -1
  233. package/assets/esri/widgets/Sketch/t9n/messages.ja.json +1 -1
  234. package/assets/esri/widgets/Sketch/t9n/messages.ko.json +1 -1
  235. package/assets/esri/widgets/Sketch/t9n/messages.lt.json +1 -1
  236. package/assets/esri/widgets/Sketch/t9n/messages.lv.json +1 -1
  237. package/assets/esri/widgets/Sketch/t9n/messages.nl.json +1 -1
  238. package/assets/esri/widgets/Sketch/t9n/messages.no.json +1 -1
  239. package/assets/esri/widgets/Sketch/t9n/messages.pl.json +1 -1
  240. package/assets/esri/widgets/Sketch/t9n/messages.pt-BR.json +1 -1
  241. package/assets/esri/widgets/Sketch/t9n/messages.pt-PT.json +1 -1
  242. package/assets/esri/widgets/Sketch/t9n/messages.ro.json +1 -1
  243. package/assets/esri/widgets/Sketch/t9n/messages.ru.json +1 -1
  244. package/assets/esri/widgets/Sketch/t9n/messages.sk.json +1 -1
  245. package/assets/esri/widgets/Sketch/t9n/messages.sl.json +1 -1
  246. package/assets/esri/widgets/Sketch/t9n/messages.sr.json +1 -1
  247. package/assets/esri/widgets/Sketch/t9n/messages.sv.json +1 -1
  248. package/assets/esri/widgets/Sketch/t9n/messages.th.json +1 -1
  249. package/assets/esri/widgets/Sketch/t9n/messages.tr.json +1 -1
  250. package/assets/esri/widgets/Sketch/t9n/messages.uk.json +1 -1
  251. package/assets/esri/widgets/Sketch/t9n/messages.vi.json +1 -1
  252. package/assets/esri/widgets/Sketch/t9n/messages.zh-CN.json +1 -1
  253. package/assets/esri/widgets/Sketch/t9n/messages.zh-HK.json +1 -1
  254. package/assets/esri/widgets/Sketch/t9n/messages.zh-TW.json +1 -1
  255. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ar.json +1 -1
  256. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.bg.json +1 -1
  257. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.bs.json +1 -1
  258. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ca.json +1 -1
  259. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.cs.json +1 -1
  260. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.da.json +1 -1
  261. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.de.json +1 -1
  262. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.el.json +1 -1
  263. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.es.json +1 -1
  264. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.et.json +1 -1
  265. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.fi.json +1 -1
  266. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.fr.json +1 -1
  267. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.he.json +1 -1
  268. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.hr.json +1 -1
  269. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.hu.json +1 -1
  270. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.id.json +1 -1
  271. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.it.json +1 -1
  272. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ja.json +1 -1
  273. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ko.json +1 -1
  274. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.lt.json +1 -1
  275. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.lv.json +1 -1
  276. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.nl.json +1 -1
  277. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.no.json +1 -1
  278. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pl.json +1 -1
  279. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pt-BR.json +1 -1
  280. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pt-PT.json +1 -1
  281. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ro.json +1 -1
  282. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ru.json +1 -1
  283. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sk.json +1 -1
  284. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sl.json +1 -1
  285. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sr.json +1 -1
  286. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sv.json +1 -1
  287. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.th.json +1 -1
  288. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.tr.json +1 -1
  289. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.uk.json +1 -1
  290. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.vi.json +1 -1
  291. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-CN.json +1 -1
  292. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-HK.json +1 -1
  293. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-TW.json +1 -1
  294. package/config.js +1 -1
  295. package/core/workers/WorkerOwner.js +1 -1
  296. package/core/workers/workerFactory.js +1 -1
  297. package/core/workers/workers.js +2 -2
  298. package/core/workers.d.ts +9 -0
  299. package/geometry/Mesh.js +1 -1
  300. package/geometry/support/curves/bezierCurveUtils.js +1 -1
  301. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  302. package/geometry/support/meshUtils/rotate.js +1 -1
  303. package/kernel.js +1 -1
  304. package/layers/ImageryTileLayer.js +1 -1
  305. package/layers/LineOfSightLayer.d.ts +10 -8
  306. package/layers/ViewshedLayer.d.ts +1 -1
  307. package/layers/graphics/data/QueryEngineResult.js +1 -1
  308. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  309. package/layers/raster/datasets/BaseRaster.js +1 -1
  310. package/layers/raster/datasets/ImageAuxRaster.js +2 -2
  311. package/layers/raster/datasets/InMemoryRaster.js +1 -1
  312. package/layers/support/kmlUtils.js +1 -1
  313. package/package.json +2 -2
  314. package/smartMapping/statistics/support/statsWorker.js +1 -1
  315. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  316. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  317. package/smartMapping/support/adapters/OGCFeatureLayerAdapter.js +1 -1
  318. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  319. package/smartMapping/support/adapters/support/utils.js +1 -1
  320. package/symbols/support/ElevationInfo.d.ts +4 -3
  321. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  322. package/views/3d/analysis/LineOfSight/types.d.ts +14 -3
  323. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +39 -13
  324. package/views/3d/analysis/Viewshed/types.d.ts +7 -0
  325. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +43 -15
  326. package/views/interactive/options/TooltipOptions.d.ts +2 -0
  327. package/views/interactive/sketch/SketchTooltipOptions.d.ts +2 -0
  328. package/views/layers/LineOfSightLayerView.d.ts +35 -13
  329. package/views/layers/SketchLayerView.d.ts +1 -0
  330. package/views/layers/ViewshedLayerView.d.ts +36 -12
  331. package/assets/esri/core/workers/chunks/bac8c32665e982896ecc.js +0 -1
  332. package/assets/esri/core/workers/chunks/d9b1aed88b205689cec6.js +0 -1
  333. package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +0 -1
  334. package/assets/esri/core/workers/chunks/f4f9d08b2df856e3b694.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4690],{19334(t,e,i){i.d(e,{e:()=>h});var s=i(54639),n=i(14112);class r{constructor(t){this._geometry=t}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(t){return this._geometry}toGxGeometry(t){return t.fromAccessorGeometry(this._geometry)}}function h(t){if(null==t)return null;switch(t.type){case"point":if((0,n.e6)(t))return null;break;case"polygon":if((0,n.Wq)(t))return null;break;case"polyline":if((0,n.IY)(t))return null;break;case"multipoint":if((0,n.DG)(t))return null;break;case"extent":if((0,n.As)(t))return null;break;default:return null}let e=s.R.of(t.type,t.spatialReference,t.hasZ,t.hasM,new r(t));return e.asAccessorGeometry(),e}},36983(t,e,i){i.d(e,{R:()=>o,p:()=>u});var s=i(54639),n=i(14112),r=i(16930),h=i(60408),a=i(65864);class l{constructor(t){this._geometry=t}toJsonGeometry(){return this._geometry}toAccessorGeometry(t){let e=(0,a.rS)(this._geometry);return e.spatialReference=t,e}toGxGeometry(t){return t.fromJsonGeometry(this._geometry)}}function o(t,e){if("object"!=typeof t||!t)return null;let i=e;if("spatialReference"in t&&(t.spatialReference instanceof r.A?i=t.spatialReference:"object"==typeof t.spatialReference&&null!=t.spatialReference&&(i=new r.A,i.read(t.spatialReference))),null==i)throw Error("Spatial reference required");return(0,h.fT)(t)?u("point",t,i):(0,h.Rg)(t)?u("polyline",t,i):(0,h.Bi)(t)?u("polygon",t,i):(0,h.U9)(t)?u("multipoint",t,i):(0,h.ZC)(t)?u("extent",t,i):null}function u(t,e,i){if(null==e)return null;let r=!1,h=!1;switch(t){case"point":if((0,n.e6)(e))return null;r=void 0!==e.z,h=void 0!==e.m;break;case"polygon":if((0,n.Wq)(e))return null;r=!0===e.hasZ,h=!0===e.hasM;break;case"polyline":if((0,n.IY)(e))return null;r=!0===e.hasZ,h=!0===e.hasM;break;case"multipoint":if((0,n.DG)(e))return null;r=!0===e.hasZ,h=!0===e.hasM;break;case"extent":if((0,n.As)(e))return null;r=null!=e.zmin&&null!=e.zmax,h=null!=e.mmin&&null!=e.mmax;break;default:throw Error("Unsupported geometry type: "+e.type)}return s.R.of(t,i,r,h,new l(e))}},14112(t,e,i){function s(t){return"NaN"===t.x||null===t.x||isNaN(t.x)}function n(t){if(0===(t.curveRings??t.rings).length)return!0;for(let e of t.curveRings??t.rings)if(e.length>0)return!1;return!0}function r(t){if(0===(t.curvePaths??t.paths).length)return!0;for(let e of t.curvePaths??t.paths)if(e.length>0)return!1;return!0}function h(t){return 0===t.points.length}function a(t){return"NaN"===t.xmin||null===t.xmin||isNaN(t.xmin)}i.d(e,{As:()=>a,DG:()=>h,IY:()=>r,Wq:()=>n,e6:()=>s})},57582(t,e,i){i.d(e,{af:()=>n,rK:()=>r}),i(92602);const s="arial-unicode-ms";function n(t){if(!t)return s;let e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}function r(t){let e=function(t){if(!t.weight)return"";switch(t.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(t)+function(t){if(!t.style)return"";switch(t.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(t);return n(t.family)+(e.length>0?e:"-regular")}new Map,new Set,i.d(e,["Vb",0,s])},85560(t,e,i){function s(){let t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,i,s){let n=e[s],r=e[s+1];t[s]=i[0]*n+i[2]*r+i[4],t[s+1]=i[1]*n+i[3]*r+i[5]}i.d(e,{vt:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){let 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:s,fromValues:function(t,e,i,s,n,r){let h=new Float32Array(6);return h[0]=t,h[1]=e,h[2]=i,h[3]=s,h[4]=n,h[5]=r,h},transform:n,transformMany:function(t,e,i,s=0,r=0,h=2){let a=r||e.length/h;for(let r=s;r<a;r++)n(t,e,i,r*h)}},Symbol.toStringTag,{value:"Module"}))},88340(t,e,i){function s(){return new Float32Array(2)}function n(t,e){let i=new Float32Array(2);return i[0]=t,i[1]=e,i}function r(){return s()}function h(){return n(1,1)}function a(){return n(1,0)}function l(){return n(0,1)}i.d(e,{fA:()=>n,vt:()=>s});const o=r(),u=h(),c=a(),_=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:_,ZEROS:o,clone:function(t){let e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:s,fromValues:n,ones:h,unitX:a,unitY:l,zeros:r},Symbol.toStringTag,{value:"Module"})),i.d(e,["Un",0,u,"uY",0,o])},16905(t,e,i){i.d(e,{$0:()=>o,B8:()=>r,D_:()=>n,Tl:()=>l,e$:()=>a,lw:()=>h});var s=i(34304);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){let i=e[0],s=e[1],n=e[2],r=e[3],h=e[4],a=e[5],l=i*r-s*n;return l?(l=1/l,t[0]=r*l,t[1]=-s*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*a-r*h)*l,t[5]=(s*h-i*a)*l,t):null}function h(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1],c=i[2],_=i[3],p=i[4],f=i[5];return t[0]=s*o+r*u,t[1]=n*o+h*u,t[2]=s*c+r*_,t[3]=n*c+h*_,t[4]=s*p+r*f+a,t[5]=n*p+h*f+l,t}function a(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=Math.sin(i),u=Math.cos(i);return t[0]=s*u+r*o,t[1]=n*u+h*o,t[2]=s*-o+r*u,t[3]=n*-o+h*u,t[4]=a,t[5]=l,t}function l(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1];return t[0]=s,t[1]=n,t[2]=r,t[3]=h,t[4]=s*o+r*u+a,t[5]=n*o+h*u+l,t}function o(t,e){let i=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=i,t[2]=-i,t[3]=s,t[4]=0,t[5]=0,t}function u(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t}const c=h,_=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[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){let i=t[0],n=t[1],r=t[2],h=t[3],a=t[4],l=t[5],o=e[0],u=e[1],c=e[2],_=e[3],p=e[4],f=e[5],m=(0,s.FD)();return Math.abs(i-o)<=m*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-u)<=m*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-c)<=m*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(h-_)<=m*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(a-p)<=m*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(l-f)<=m*Math.max(1,Math.abs(l),Math.abs(f))},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:o,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:r,mul:c,multiply:h,multiplyScalar:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t},multiplyScalarAndAdd:function(t,e,i,s){return t[0]=e[0]+i[0]*s,t[1]=e[1]+i[1]*s,t[2]=e[2]+i[2]*s,t[3]=e[3]+i[3]*s,t[4]=e[4]+i[4]*s,t[5]=e[5]+i[5]*s,t},rotate:a,scale:function(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1];return t[0]=s*o,t[1]=n*o,t[2]=r*u,t[3]=h*u,t[4]=a,t[5]=l,t},set:function(t,e,i,s,n,r,h){return t[0]=e,t[1]=i,t[2]=s,t[3]=n,t[4]=r,t[5]=h,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:_,subtract:u,translate:l},Symbol.toStringTag,{value:"Module"}))},36745(t,e,i){i.d(e,{z:()=>a});var s=i(4718),n=i(51118),r=i(60408),h=i(92722);class a{static fromOptimized(t,e,i=1){return(new l).initialize(t,e,i)}static fromJSON(t){let[e,i]=u(t),s=(0,r.Pv)(t),n=(0,r.W0)(t);return(new c).initialize(e,i,s,n,1)}static fromOptimizedCIM(t,e,i=1){return(new _).initialize(t,e,i)}static fromJSONCIM(t,e=1){let[i,s]=u(t),n=(0,r.Pv)(t),h=(0,r.W0)(t);return(new p).initialize(i,s,n,h,e)}static fromFeatureSetReader(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimized(e,i):null}static fromFeatureSetReaderCIM(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimizedCIM(e,i):null}static createEmptyOptimized(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSON(t,e=!1,i=!1){return(new c).initialize([],t,e,i,1)}static createEmptyOptimizedCIM(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSONCIM(t,e=!1,i=!1,s=1){return(new p).initialize([],t,e,i,s)}asJSON(){let t=(0,n.x)(this),{hasZ:e,hasM:i}=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(),hasZ:e,hasM:i}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:i?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:i}:{paths:t,hasZ:e,hasM:i}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,i=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;let s=t,n=e;for(;this.nextPoint();)i+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return i+=(t-s)*(e+n),-.5*i}invertY(){this.yFactor*=-1}}class l extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,i){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=i,this}reset(){this.initialize(this._geometry,this.geometryType,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){let 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))}getCurrentPath(){let t=this._end,e=this._geometry.coords,i=this._pathOffset;return(new l).initialize(new h.A([this.pathSize],e.slice(i,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){let t=this._end,e=this._stride,i=this._geometry.coords,s=0;for(let n=this._pathOffset+e;n<t;n+=e){let t=i[n-e],r=i[n-e+1],h=i[n]-t,a=i[n+1]-r;s+=Math.sqrt(h*h+a*a)}return s}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(let 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){let e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){let 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(){let t=this._geometry.coords,e=this._pathOffset,i=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[i+s])return!1;return!0}clone(){return(new l).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){let{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1: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(){let 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 o(t){let e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function u(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[o(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends a{initialize(t,e,i,s,n){return this._paths=t,this.geometryType=e,this.hasZ=i,this.hasM=s,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(){let t=this._currentPath.length,e=this._currentPath,i=0;for(let s=1;s<t;s++){let t=e[s-1],n=e[s],r=t[0],h=t[1],a=n[0]-r,l=n[1]-h;i+=Math.sqrt(a*a+l*l)}return i}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}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){let e=(0,n.x)(t);for(let t of e)this.pushPath(t)}asOptimized(){let{hasZ:t,hasM:e}=this,i=new h.A([],[],t,e),{coords:s,lengths:n}=i;if("esriGeometryPoint"===this.geometryType)s.push(...this._paths[0][0]),n.length=0;else for(let i of this._paths){for(let n of i)s.push(n[0]),s.push(n[1]*this.yFactor),t&&s.push(n[2]),e&&s.push(n[this._mIndex]);n.push(i.length)}return i}isClosed(){let t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}clone(){return(new c).initialize((0,s.o8)(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 l{initialize(t,e,i){return super.initialize(t,e,i),this._controlPoints||=this._controlPoints=Array(this.totalSize).fill(void 0).map(t=>new Set),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){let t=(new _).initialize(this._geometry.clone(),this.geometryType,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 p extends c{initialize(t,e,i,s,n){return super.initialize(t,e,i,s,n)}clone(){return(new p).initialize((0,s.o8)(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]}}},78957(t,e,i){i.d(e,{d:()=>u,R:()=>M});class s{constructor(t=n){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;let{_data:e,_compare:i}=this;e.push(t);let s=e.length-1>>>0,n=e[s];for(;s>0;){let t=s-1>>1,r=e[t];if(!(i(r,n)<=0))break;e[t]=n,e[s]=r,s=t}}dequeue(){let{_data:t,_compare:e}=this,i=t[0],s=t.pop();if(0===t.length)return i;t[0]=s;let n,r,h=0,a=t.length,l=t[0],o=null;for(;;){let i=2*h+1,s=2*h+2;if(o=null,i<a&&(n=t[i],e(n,l)>0&&(o=i)),s<a&&(r=t[s],(null===o&&e(r,l)<=0||null!==o&&e(r,n)<=0)&&(o=s)),null===o)break;t[h]=t[o],t[o]=l,h=o}return i}}const n=(t,e)=>t<e?-1:+(t>e);var r=i(19419),h=i(537),a=i(12359),l=i(95108),o=i(12176);function u(t){if(0===t.totalSize)return null;let e=(0,h.z8)(t);if(!e)return null;let i=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19,s=0,n=0;t.reset();for(let e=0;t.nextPath();e++){let i=t.getCurrentRingArea();i>n&&(n=i,s=e)}if(t.seekPath(s),0===t.pathSize)return null;t.seekPathStart();let l=(0,h.B$)(t);if(Math.abs(n)<=2*i*i)return[(l[0]+l[2])/2,(l[1]+l[3])/2];t.seekPathStart();let o=(0,a.w2)(t,(0,r.vt)());if(null===o)return null;if(t.totalPoints<4)return o;let u=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],m=[NaN,NaN,NaN,NaN],d=!1,P=_(o,t,!0);0===P.distance&&(d=!0,u[0][0]=o[0],u[0][1]=o[1],P=_(o,t,!1)),f[0]=P.distance,m[0]=0;let M=[NaN,NaN],b=!1,C=.25,v=-1,w=NaN;do{if(w=NaN,u[1]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[1][0])&&!isNaN(u[1][1])&&(P=_(u[1],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[1],t))b=!0,f[1]=w,m[1]=x(u[1],o);else if(!isNaN(w)&&w>v&&(v=w,M[0]=u[1][0],M[1]=u[1][1]),C-=.01,C<.1){if(!(v>=0))break;b=!0,f[1]=v,u[1][0]=M[0],u[1][1]=M[1],m[1]=x(u[1],o)}}while(!b);b=!1,C=.5,v=-1;let S=.01,I=1;do{if(w=NaN,u[2]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[2][0])&&!isNaN(u[2][1])&&(P=_(u[2],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[2],t))b=!0,f[2]=w,m[2]=x(u[2],o);else if(!isNaN(w)&&w>v)v=w,M[0]=u[2][0],M[1]=u[2][1];else if(w>v&&(v=w,M[0]=u[2][0],M[1]=u[2][1]),C=.5+S*I,S+=.01,I*=-1,C<.3||C>.7){if(!(v>=0))break;b=!0,f[2]=v,u[2][0]=M[0],u[2][1]=M[1],m[2]=x(u[2],o)}}while(!b);b=!1,C=.75,v=-1;do{if(w=NaN,u[3]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[3][0])&&!isNaN(u[3][1])&&(P=_(u[3],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[3],t))b=!0,f[3]=w,m[3]=x(u[3],o);else if(w>v&&(v=w,M[0]=u[3][0],M[1]=u[3][1]),C+=.01,C>.9){if(!(v>=0))break;b=!0,f[3]=v,u[3][0]=M[0],u[3][1]=M[1],m[3]=x(u[3],o)}}while(!b);let z,k=[0,1,2,3],A=+!d;for(let t=A;t<4;t++)for(let t=A;t<3;t++){let e=m[t],i=m[t+1];y(e,i)>0&&(z=k[t],k[t]=k[t+1],k[t+1]=z,m[t]=i,m[t+1]=e)}let T=A,E=0,G=0;for(let t=A;t<4;t++){switch(t){case 0:G=2*f[k[t]];break;case 1:G=1.66666666*f[k[t]];break;case 2:G=1.33333333*f[k[t]];break;case 3:G=f[k[t]]}G>E&&(E=G,T=k[t])}return u[T]}function c(t,e){let i,s,n,r,h=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(i=e.x,s=e.y;e.nextPoint();i=n,s=r)n=e.x,r=e.y,s>t[1]!=r>t[1]&&((n-i)*(t[1]-s)-(r-s)*(t[0]-i)>0?h++:h--);return 0!==h}function _(t,e,i){if(i&&c(t,e))return{coord:t,distance:0};let s=1/0,n=0,r=0,h=[0,0],a=[0,0],o=[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,l.gR)(o,t,h,a);let i=x(t,o);i<s&&(s=i,n=o[0],r=o[1])}return{coord:[n,r],distance:Math.sqrt(s)}}function p(t,e,i,s){let n=[e,0],h=1/0,a=1/0,l=!1,u=!1,c=[[e,s[1]-1],[e,s[3]+1]],_=[0,0],p=[0,0],d=[0,0],g=[[0,0],[0,0]],x=(0,r.vt)();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(x,g)||(p[0]=c[0][0],p[1]=c[0][1],d[0]=c[1][0],d[1]=c[1][1],0===m(x,p,d))||!(0,o.Ql)(c[0],c[1],g[0],g[1],_))continue;let e=_[1];h>a?e<h&&(h=e,l=!0):e<a&&(a=e,u=!0)}return l&&u?n[1]=(h+a)/2:n[0]=n[1]=NaN,n}function f(t,e){if(e.length<2)return null;t||=(0,r.vt)();let[i,s]=e[0],[n,h]=e[1];return t[0]=Math.min(i,n),t[1]=Math.min(s,h),t[2]=Math.max(i,n),t[3]=Math.max(s,h),t}function m(t,e,i){let s=d(e,t),n=d(i,t),r=t[0],h=t[1],a=t[2],l=t[3];if(s&n)return 0;if(!(s|n))return 4;let o=!!s|(n?2:0);do{let o=i[0]-e[0],u=i[1]-e[1];if(o>u)3&s?(1&s?(e[1]+=u*(r-e[0])/o,e[0]=r):(e[1]+=u*(a-e[0])/o,e[0]=a),s=d(e,t)):3&n?(1&n?(i[1]+=u*(r-i[0])/o,i[0]=r):(i[1]+=u*(a-i[0])/o,i[0]=a),n=d(i,t)):s?(4&s?(e[0]+=o*(h-e[1])/u,e[1]=h):(e[0]+=o*(l-e[1])/u,e[1]=l),s=d(e,t)):(4&n?(i[0]+=o*(h-i[1])/u,i[1]=h):(i[0]+=o*(l-i[1])/u,i[1]=l),n=d(i,t));else if(12&s?(4&s?(e[0]+=o*(h-e[1])/u,e[1]=h):(e[0]+=o*(l-e[1])/u,e[1]=l),s=d(e,t)):12&n?(4&n?(i[0]+=o*(h-i[1])/u,i[1]=h):(i[0]+=o*(l-i[1])/u,i[1]=l),n=d(i,t)):s?(1&s?(e[1]+=u*(r-e[0])/o,e[0]=r):(e[1]+=u*(a-e[0])/o,e[0]=a),s=d(e,t)):(1&n?(i[1]+=u*(r-i[0])/o,i[0]=r):(i[1]+=u*(a-i[0])/o,i[0]=a),n=d(i,t)),s&n)return 0}while(s|n);return o}function d(t,e){return+(t[0]<e[0])|(t[0]>e[2])<<1|(t[1]<e[1])<<2|(t[1]>e[3])<<3}function g(t,e,i){return t+(e-t)*i}function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function y(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;let i=isNaN(t),s=isNaN(e);return i<s?-1:+(i>s)}class P{constructor(t,e,i,s){this.x=t,this.y=e,this.cellSize=i,this.distancefromCellCenter=(0,l.Xf)(t,e,s),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function M(t){if(!t.nextPath()||!t.pathSize)return null;let e=(0,h.B$)(t),i=e[2]-e[0],n=e[3]-e[1];if(0===i||0===n)return[e[0]+i/2,e[1]+n/2];let r=Math.max(Math.min(i,n)/100,1),l=new s((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),o=Math.min(i,n),u=o/2,c=0,_=0;for(c=e[0];c<e[2];c+=o)for(_=e[1];_<e[3];_+=o)l.enqueue(new P(c+u,_+u,u,t));t.reset(),t.nextPath();let p=(0,a.IK)(t);if(null===p)return null;let f,m=new P(p[0],p[1],0,t);for(;l.size>0;)f=l.dequeue(),f.distancefromCellCenter>m.distancefromCellCenter&&(m=f),!(f.maxDistanceToPolygon-m.distancefromCellCenter<=r)&&(u=f.cellSize/2,l.enqueue(new P(f.x-u,f.y-u,u,t)),l.enqueue(new P(f.x+u,f.y-u,u,t)),l.enqueue(new P(f.x-u,f.y+u,u,t)),l.enqueue(new P(f.x+u,f.y+u,u,t)));return[m.x,m.y]}},35833(t,e,i){i.d(e,{ai:()=>d,g1:()=>g,kT:()=>x,qc:()=>y});var s=i(18370),n=i(36745),r=i(6774);const h=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(1797)]).then(()=>i(46160))),a=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6491)]).then(()=>i(55666))),l=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8679)]).then(()=>i(51190))),o=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(837)]).then(()=>i(97528))),u=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(3030)]).then(()=>i(50795))),c=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(6936)]).then(()=>i(15605))),_=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637))),p=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(4790)]).then(()=>i(67520))),f=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1948)]).then(()=>i(83299)));let m;function d(t){switch(t.type){case"CIMGeometricEffectDonut":case"CIMGeometricEffectBuffer":return h.getImportPromise();case"CIMGeometricEffectEnclosingPolygon":return a.getImportPromise();case"CIMGeometricEffectOffset":return Promise.all([p.getImportPromise(),c.getImportPromise(),u.getImportPromise()]);case"CIMGeometricEffectControlMeasureLine":return c.getImportPromise();case"CIMGeometricEffectTaperedPolygon":return Promise.all([_.getImportPromise(),l.getImportPromise(),o.getImportPromise()]);default:return Promise.resolve()}}function g(t){return"CIMMarkerPlacementAtMeasuredUnits"===t.type?f.getImportPromise():Promise.resolve()}class x{constructor(t){this._geometry=t}next(){let t=this._geometry;return this._geometry=null,t}}function y(t,e,i){if(!t)return null;m||=new r.O3(0,0,0,1);let s,h,a=i?-1:1,l="esriGeometryPolygon"===t.geometryType,o=l?3:2,u=l?3:2;for(m.reset(o),m.setPixelMargin(e+1),m.setExtent(512);t.nextPath();)if(!(t.pathSize<u)){for(t.nextPoint(),s=t.x,h=a*t.y,m.moveTo(s,h);t.nextPoint();)s=t.x,h=a*t.y,m.lineTo(s,h);l&&m.close()}let c=m.result(!1);if(c){let e=n.z.createEmptyOptimizedCIM(t.geometryType);for(let t of c){e.startPath();for(let i of t)e.pushXY(i.x,a*i.y)}return e.reset(),e}return null}i.d(e,["$Z",0,h,"NS",0,o,"Xs",0,l,"hd",0,u,"lX",0,a,"mO",0,c,"vZ",0,f,"xR",0,p,"yM",0,_])},78653(t,e,i){i.d(e,{A:()=>se,c:()=>ne});var s=i(34653);class n{constructor(){this.type="CIMBackgroundCallout"}static{this.instance=null}static local(){return null===n.instance&&(n.instance=new n),n.instance}execute(t,e,i){if("CIMBackgroundCallout"!==e?.type)throw Error("Invalid effect type for BackgroundCalloutEffect");return new r(t,e,i)}}class r{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BackgroundCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*r,this._leaderOffset=(e.leaderOffset??0)*r,this._gap=(e.gap??0)*r,this._geomUnitsPerPoint=r,this._hasAccentBar=!0===e.hasAccentBar,this._lineStyle=e.lineStyle,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);switch(this._part){case"accent-bar":return(0,s.W)(i,e.anchor,this._gap,t.yFactor,this._lineStyle,e.bounds);case"background":return(0,s._T)(i,t.yFactor);default:{if((0,s.gR)(i,e.anchor))return null;let n=(0,s.sz)(i,e.anchor,this._lineStyle,this._gap,this._hasAccentBar,e.bounds);return(0,s.Io)(n,e.anchor)<this._leaderTolerance?null:(0,s.n_)(i,e.anchor,this._lineStyle,this._leaderOffset,this._gap,t.yFactor,this._geomUnitsPerPoint,this._hasAccentBar,e.bounds)}}}return null}}class h{constructor(){this.type="CIMBalloonCallout"}static{this.instance=null}static local(){return null===h.instance&&(h.instance=new h),h.instance}execute(t,e,i){if("CIMBalloonCallout"!==e?.type)throw Error("Invalid effect type for BalloonCalloutEffect");return new a(t,e,i)}}class a{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BalloonCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._balloonStyle=e.balloonStyle,this._dartWidth=null==e.dartWidth?null:e.dartWidth*r,this._part=e.part,this._separateDart=!0===e.separateDart,this._leaderTolerance=(e.leaderTolerance??0)*r,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);if("dart"===this._part){let n=(0,s.ZO)(i,e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor);if(n)return n;continue}return(0,s.IF)(i,e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor,!this._separateDart)}return null}}class l{constructor(){this.type="CIMPointSymbolCallout"}static{this.instance=null}static local(){return null===l.instance&&(l.instance=new l),l.instance}execute(t,e,i){if("CIMPointSymbolCallout"!==e?.type)throw Error("Invalid effect type for PointSymbolCalloutEffect");return new o(t,e,i)}}class o{constructor(t,e,i){let{geomUnitsPerPoint:s}=i;if(!s)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for PointSymbolCalloutEffect");let n=s*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*n,this._leaderOffset=(e.leaderOffset??0)*n,this._gap=(e.gap??0)*n,this._geomUnitsPerPoint=n,this._lineStyle=e.lineStyle,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;if("marker"===this._part)return(0,s.DJ)((0,s.gX)(e.bounds),t.yFactor);if((0,s.gR)(e.bounds,e.anchor))return null;let i=(0,s.sz)(e.bounds,e.anchor,this._lineStyle,this._gap);return(0,s.Io)(i,e.anchor)<this._leaderTolerance?null:(0,s.n_)(e.bounds,e.anchor,this._lineStyle,this._leaderOffset,this._gap,t.yFactor,this._geomUnitsPerPoint)}return null}}var u=i(36745);class c{constructor(){this.type="CIMSimpleLineCallout"}static{this.instance=null}static local(){return null===c.instance&&(c.instance=new c),c.instance}execute(t,e,i){if("CIMSimpleLineCallout"!==e?.type)throw Error("Invalid effect type for SimpleLineCalloutEffect");return new _(t,e,i)}}class _{constructor(t,e,i){this._inputGeometries=t,this._autoSnap=e.autoSnap??!0;let s=i.geomUnitsPerPoint*(i.scaleFactor??1);this._leaderTolerance=(e.leaderTolerance??0)*s,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=this._createLeaderGeometry(t);if(e)return e}return null}_createLeaderGeometry(t){let e=(0,s.EE)(t,this._calloutContext);if(e){let i=this._autoSnap?(0,s.E0)(e.bounds,e.layoutAnchor):function(t){return{x:t.xmin,y:t.ymin}}(e.bounds);return function(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}(e.bounds,e.layoutAnchor)||!this._passesLeaderTolerance(i,e.layoutAnchor)?null:function(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,i);return s.startPath(),s.pushXY(t.x,i*t.y),s.pushXY(e.x,i*e.y),s.reset(),s}(i,e.anchor,t.yFactor)}return"esriGeometryPolyline"===t.geometryType&&this._passesPolylineTolerance(t)?t.clone():null}_passesLeaderTolerance(t,e){return this._leaderTolerance<=0||function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}(t,e)>=this._leaderTolerance}_passesPolylineTolerance(t){if(this._leaderTolerance<=0)return!0;let e=t.clone(),i=0;for(;e.nextPath();)i+=e.pathLength();return i>=this._leaderTolerance}}class p{static{this.instance=null}static local(){return null===p.instance&&(p.instance=new p),p.instance}execute(t,e,i){return new f(t,e)}}class f{constructor(t,e){this._inputGeometries=t,this._angleTolerance=void 0===e.angleTolerance?120:e.angleTolerance,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();if(!t)return null;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()){let e=t.x,i=t.y,s=e,n=i,r=t.pathSize,h=0,a=0,l=0,o=0,u=0,c=0;this._isClosed&&++r;for(let _=1;t.nextPoint()||_<r;++_){let p,f;this._isClosed&&_===r-1?(p=e,f=i):(p=t.x,f=t.y);let m=p-s,d=f-n,g=Math.sqrt(m*m+d*d);_>1&&g>0&&l>0&&(h*m+a*d)/g/l<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(o=m,u=d,c=g),g>0&&(s=p,n=f,h=m,a=d,l=g)}this._isClosed&&l>0&&c>0&&(h*o+a*u)/c/l<=this._maxCosAngle&&t.setControlPointAt(0)}}}var m=i(51118),d=i(98939);function g(t,e){t[4]=e}class x{constructor(t,e=!0,i=!0,s=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!i&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=s,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new d.W}next(){if(!this.geometryCursor)return null;let t=this.processMultiPath(this.geometryCursor);if((!this.iterateMultiPath||!t)&&(this.geometryCursor=null),!t)return null;let e=t.getAngle();if(this._angleToLine&&this._keepUpright&&Math.abs(e)>.5*Math.PI){let i=e+Math.PI,s=Math.atan2(Math.sin(i),Math.cos(i));Number.isNaN(s)||t.setRotate(s)}return t}processMultiPath(t){for(;this.iteratePath||t.pathIndex<t.totalSize-1;){this.iteratePath||t.nextPath(),this.iterateMultiPath=!0;let e=this.processPath(t);if(e)return e}return this.iterateMultiPath=!1,null}}class y{constructor(t,e,i,s=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=i,this.geomUnitsPerPoint=s,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();let t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}class P{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,i,s,n;for(e=t.x,i=t.y;t.nextPoint();e=i,i=n)if(s=t.x,n=t.y,s!==e||n!==i)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){let e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,i,s){let n=i-t,r=s-e;return Math.sqrt(n*n+r*r)}getSegLength(t){let[[e,i],[s,n]]=t;return this.getLength(e,i,s,n)}getCoord2D(t,e,i,s,n){return[t+(i-t)*n,e+(s-e)*n]}getSegCoord2D(t,e){let[[i,s],[n,r]]=t;return this.getCoord2D(i,s,n,r,e)}getAngle(t,e,i,s,n){let r=i-t,h=s-e;return Math.atan2(h,r)}getAngleCS(t,e,i,s,n,r){t??=[0,0];let h=s-e,a=n-i,l=Math.sqrt(h*h+a*a);return 0===l?(t[0]=1,t[1]=0,t):(t[0]=h/l,t[1]=a/l,t)}getSegAngleCS(t,e,i){let[[s,n],[r,h]]=e;return this.getAngleCS(t,s,n,r,h,i)}cut(t,e,i,s,n,r){return[n<=0?[t,e]:this.getCoord2D(t,e,i,s,n),r>=1?[i,s]:this.getCoord2D(t,e,i,s,r)]}getSubCurve(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(s,t,e,i)?s:null}appendSubCurve(t,e,i,s){t.startPath(),e.seekPathStart();let n=0,r=!0;if(!e.nextPoint())return!1;let h=e.x,a=e.y;for(;e.nextPoint();){let l=this.getLength(h,a,e.x,e.y);if(0!==l){if(r){if(n+l>i){let o=(i-n)/l,u=1,c=!1;n+l>=s&&(u=(s-n)/l,c=!0);let _=this.cut(h,a,e.x,e.y,o,u);if(_&&t.pushPoints(_),c)break;r=!1}}else{if(n+l>s){let i=this.cut(h,a,e.x,e.y,0,(s-n)/l);i&&t.pushPoint(i[1]);break}t.pushXY(e.x,e.y)}n+=l,h=e.x,a=e.y}else h=e.x,a=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let i,s,n,r,h=0;for(i=t.x,s=t.y;t.nextPoint();i=n,s=r){n=t.x,r=t.y;let a=this.getLength(i,s,n,r);if(0!==a){if(h+a>e){let t=(e-h)/a;return this.getCoord2D(i,s,n,r,t)}h+=a}}return null}offset(t,e,i,s,n){if(!t||t.length<2)return null;let r=0,h=t[r++],a=r;for(;r<t.length;){let e=t[r];(e[0]!==h[0]||e[1]!==h[1])&&(r!==a&&(t[a]=t[r]),h=t[a++]),r++}let l=t[0][0]===t[a-1][0]&&t[0][1]===t[a-1][1];if(l&&--a,a<(l?3:2))return null;let o=[];h=l?t[a-1]:null;let u=t[0];for(let n=0;n<a;n++){let r=n===a-1?l?t[0]:null:t[n+1];if(h)if(r){let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t);let n=[u[0]-h[0],u[1]-h[1]];this.normalize(n);let a=n[0]*t[1]-n[1]*t[0],l=n[0]*t[0]+n[1]*t[1];if(0===a&&1===l){u=r;continue}if(a>=0==e<=0){if(l<1){let i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);let r=Math.sqrt((1+l)/2);if(r>1/s){let t=-Math.abs(e)/r;o.push([u[0]-i[0]*t,u[1]-i[1]*t])}}}else switch(i){case"Mitered":{let i=Math.sqrt((1+l)/2);if(i>0&&1/i<s){let s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=Math.abs(e)/i;o.push([u[0]-s[0]*r,u[1]-s[1]*r]);break}}case"Bevelled":o.push([u[0]+n[1]*e,u[1]-n[0]*e]),o.push([u[0]+t[1]*e,u[1]-t[0]*e]);break;case"Rounded":if(l<1){o.push([u[0]+n[1]*e,u[1]-n[0]*e]);let i=Math.floor(2.5*(1-l));if(i>0){let s=1/i,r=s;for(let h=1;h<i;h++,r+=s){let i=[n[1]*(1-r)+t[1]*r,-n[0]*(1-r)-t[0]*r];this.normalize(i),o.push([u[0]+i[0]*e,u[1]+i[1]*e])}}o.push([u[0]+t[1]*e,u[1]-t[0]*e])}break;default:if(a<0)o.push([u[0]+(n[1]+n[0])*e,u[1]+(n[1]-n[0])*e]),o.push([u[0]+(t[1]-t[0])*e,u[1]-(t[0]+t[1])*e]);else{let i=Math.sqrt((1+Math.abs(l))/2),s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=e/i;o.push([u[0]-s[0]*r,u[1]-s[1]*r])}}}else{let t=[u[0]-h[0],u[1]-h[1]];this.normalize(t),o.push([u[0]+t[1]*e,u[1]-t[0]*e])}else{let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t),o.push([u[0]+t[1]*e,u[1]-t[0]*e])}h=u,u=r}return o.length<(l?3:2)?null:(l&&o.push([o[0][0],o[0][1]]),o)}}class M{static{this.instance=null}static local(){return null===M.instance&&(M.instance=new M),M.instance}execute(t,e,i){return new b(t,e,i)}}class b extends y{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P;let s=i.geomUnitsPerPoint;this._width=(void 0===e.width?5:e.width)*s,this._arrowType=void 0===e.geometricEffectArrowType?void 0===e.arrowType?"OpenEnded":e.arrowType:e.geometricEffectArrowType,this._offsetFlattenError=.03*s}processPath(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case"OpenEnded":default:this._constructSimpleArrow(e,t,!0);break;case"Block":this._constructSimpleArrow(e,t,!1);break;case"Crossed":this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,i){let s=e.pathLength(),n=this._width;s<2*n&&(n=s/2);let r=this._curveHelper.getSubCurve(e,0,s-n);if(!r||!r.nextPath())return;r.seekPathStart();let h=n/2;if(this._curveHelper.isEmpty(r))return;let a=(0,m.A)(r),l=this._constructOffset(a,-h);if(!l)return;let o=this._constructOffset(a,h);if(!o)return;let u=this._constructArrowBasePoint(l,-h/2);if(!u)return;let c=this._constructArrowBasePoint(o,h/2);if(!c)return;e.seekInPath(e.pathSize-1);let _=[e.x,e.y];t.pushPath(o),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(c),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.setControlPoint(),i||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(o[0])),t.reset()}_constructCrossedArrow(t,e){let i=e.pathLength(),s=this._width;i<3.732050807568877*s&&(s=i/3.732050807568877),e.seekPathStart();let n=this._curveHelper.getSubCurve(e,0,i-2.732050807568877*s);if(!n)return;n.nextPath();let r=s/2;if(this._curveHelper.isEmpty(n))return;let h=(0,m.A)(n),a=this._constructOffset(h,r);if(!a)return;let l=this._constructOffset(h,-r);if(!l)return;let o=this._curveHelper.getSubCurve(e,0,i-s);if(!o||(o.nextPath(),this._curveHelper.isEmpty(o)))return;let u=(0,m.A)(o),c=this._constructOffset(u,r);if(!c)return;let _=this._constructOffset(u,-r);if(!_)return;let p=c[c.length-1],f=this._constructArrowBasePoint(c,r/2);if(!f)return;let d=_[_.length-1],g=this._constructArrowBasePoint(_,-r/2);if(!g)return;e.seekInPath(e.pathSize-1);let x=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(x),t.nextPoint(),t.setControlPoint(),t.pushPoint(f),t.nextPoint(),t.setControlPoint(),t.pushPoint(p),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,"Rounded",4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;let i=t[t.length-2],s=t[t.length-1],n=[s[0]-i[0],s[1]-i[1]];return this._curveHelper.normalize(n),[s[0]+n[1]*e,s[1]-n[0]*e]}}var C=i(16930),v=i(35833);class w{static{this.instance=null}static local(){return null===w.instance&&(w.instance=new w),w.instance}execute(t,e,i){return new S(t,e,i)}}class S{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.tileKey,r=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=n,this._curveHelper=new P,this._size=(void 0===e.size?1:e.size)*s,this._maxInflateSize=r*s,this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){let e=u.z.createEmptyOptimizedCIM(t.geometryType),i=(0,m.x)(t)[0],s=this._curveHelper.offset(i,this._size,"Rounded",4,this._offsetFlattenError);if(s)return e.pushPath(s),e}else if(this._size<0){let e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return u.z.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}let e=!this._preventClipping&&this._tileKey?(0,v.qc)(t,this._maxInflateSize,!0):t;if(!e)continue;let{bufferExecute:i}=v.$Z.module,s=i({...e.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}},this._size);return s?u.z.fromJSONCIM(s):null}return null}}var I=i(34727),z=i(28076);const k=Math.PI/180,A=2*Math.PI;class T{static{this.instance=null}static local(){return null===T.instance&&(T.instance=new T),T.instance}execute(t,e,i){return new E(t,e,i)}}class E{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._geomUnitsPerPoint=s,this._radius=(e.radius??z.D.CIMGeometricEffectCircularSector.radius)*s,this._startAngle=(e.startAngle??z.D.CIMGeometricEffectCircularSector.startangle)*k,this._endAngle=(e.endAngle??z.D.CIMGeometricEffectCircularSector.endangle)*k}next(){if(this._radius<=0)return null;let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",t.hasZ,!1),i=!1;for(;t.nextPath();)for(;t.nextPoint();)e.pushPath(this._buildRing(t.x,t.y,t.hasZ?t.z:void 0)),i=!0;if(i)return e}t=this._inputGeometries.next()}return null}_buildRing(t,e,i){let s=[this._makePoint(t,e,i)],n=G(this._startAngle),r=G(this._endAngle);for(;r<n;)r+=A;let h=r-n;if(0===h)return s.push(this._makePoint(t+this._radius*Math.cos(r),e+this._radius*Math.sin(r),i)),s.push(this._makePoint(t,e,i)),s;let a=.25*this._geomUnitsPerPoint,l=this._radius<=.5*a?A:2*Math.acos((0,I.qE)(1-a/this._radius,-1,1)),o=Math.max(1,Math.ceil(h/l)),u=h/o,c=r;for(let n=0;n<=o;n++,c-=u)s.push(this._makePoint(t+this._radius*Math.cos(c),e+this._radius*Math.sin(c),i));return s.push(this._makePoint(t,e,i)),s}_makePoint(t,e,i){return null==i?[t,e]:[t,e,i]}}function G(t){return(t%=A)<0?t+A:t}i(86211);var O=i(95108);class N{static{this.instance=null}static local(){return null===N.instance&&(N.instance=new N),N.instance}execute(t,e,i){return new L(t,e,i)}}class L{constructor(t,e,i){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=i.geomUnitsPerPoint??1,this._scale=i?.scale,this._rule=e.rule??"FullGeometry",this._spatialReference=i?.spatialReference??C.A.WebMercator,this._width=this._computeWidth(e.width??25),this._defaultSize=this._defaultPointSize*this._geomUnitsPerPoint}next(){let t;for(;t=this._inputGeometries.next();){let e=this._processGeom((0,m.x)(t));if(e?.length)return u.z.fromJSONCIM({paths:e})}return null}_computeWidth(t){if(!function(t){return"ParallelOffsetByValue"===t}(this._rule)||null==this._scale||!this._spatialReference.metersPerUnit)return t*this._geomUnitsPerPoint;let e=this._scale/(96*39.37*this._spatialReference.metersPerUnit);return t/(this._spatialReference.metersPerUnit*e)}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,i,s){return[t[0]*e+i[0]*s,t[1]*e+i[1]*s]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,i){return[t[0]+e,t[1]+i]}_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){let i=e/this._norm(t);t[0]*=i,t[1]*=i}_leftPerpendicular(t){let e=-t[1],i=t[0];t[0]=e,t[1]=i}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){let e=t[1],i=-t[0];t[0]=e,t[1]=i}_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,i){let s=t[0]*e-t[1]*i,n=t[0]*i+t[1]*e;t[0]=s,t[1]=n}_makeCtrlPt(t){let e=[t[0],t[1]];return g(e,1),e}_addAngledTicks(t,e,i,s){let n=this._sub(i,e);this._normalize(n);let r,h=this._crossProduct(n,this._sub(s,e));r=h>0?this._rightPerp(n):this._leftPerp(n);let a=Math.abs(h)/2,l=[];l.push([e[0]+(r[0]-n[0])*a,e[1]+(r[1]-n[1])*a]),l.push(e),l.push(i),l.push([i[0]+(r[0]+n[0])*a,i[1]+(r[1]+n[1])*a]),t.push(l)}_addBezier2(t,e,i,s,n){if(0===n--)return void t.push(s);let r=this._mid(e,i),h=this._mid(i,s),a=this._mid(r,h);this._addBezier2(t,e,r,a,n),this._addBezier2(t,a,h,s,n)}_addBezier3(t,e,i,s,n,r){if(0===r--)return void t.push(n);let h=this._mid(e,i),a=this._mid(i,s),l=this._mid(s,n),o=this._mid(h,a),u=this._mid(a,l),c=this._mid(o,u);this._addBezier3(t,e,h,o,c,r),this._addBezier3(t,c,u,l,n,r)}_add90DegArc(t,e,i,s,n){let r=n??this._crossProduct(this._sub(i,e),this._sub(s,e))>0,h=this._mid(e,i),a=this._sub(h,e);r?this._leftPerpendicular(a):this._rightPerpendicular(a),h[0]+=a[0],h[1]+=a[1],this._addBezier3(t,e,this._mix(e,.33333,h,.66667),this._mix(i,.33333,h,.66667),i,4)}_addArrow(t,e,i){let s=e[0],n=e[1],r=e[e.length-1],h=this._sub(s,n),a=this._norm(h);this._normalize(h);let l=Math.abs(this._crossProduct(h,this._sub(r,n))),o=this._dotProduct(h,this._sub(r,n));o<.05*a?o=.05*a:o>.95*a&&(o=.95*a);let u=.5*l,c=this._leftPerp(h),_=[n[0]+h[0]*o,n[1]+h[1]*o],p=e.length-1,f=[];f.push(i?[-c[0],-c[1]]:c);let m=[-h[0],-h[1]];for(let t=1;t<p-1;t++){let i=this._sub(e[t+1],e[t]);this._normalize(i);let s=this._dotProduct(i,m),n=this._crossProduct(i,m),r=Math.sqrt((1+s)/2),h=this._sub(i,m);this._normalize(h),h[0]/=r,h[1]/=r,f.push(n<0?[-h[0],-h[1]]:h),m=i}f.push(this._rightPerp(m));for(let i=f.length-1;i>0;i--)t.push([e[i][0]+f[i][0]*u,e[i][1]+f[i][1]*u]);t.push([_[0]+f[0][0]*u,_[1]+f[0][1]*u]),t.push([_[0]+f[0][0]*l,_[1]+f[0][1]*l]),t.push(s),t.push([_[0]-f[0][0]*l,_[1]-f[0][1]*l]),t.push([_[0]-f[0][0]*u,_[1]-f[0][1]*u]);for(let i=1;i<f.length;i++)t.push([e[i][0]-f[i][0]*u,e[i][1]-f[i][1]*u])}_addDash(t,e,i){let s=this._norm(i)/7;this._normalize(i);let n=[];for(let r=0;r<=7;r++)n.push([e[0]+i[0]*r*s,e[1]+i[1]*r*s]),1&r&&(t.push(n),n=[])}_cp2(t,e,i){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,i*this._defaultSize)}_cp3(t,e,i,s){if(t.length>=3)return t[2];let n=this._mix(t[0],1-i,e,i),r=this._sub(e,t[0]);return this._normalize(r),this._rightPerpendicular(r),[n[0]+r[0]*s*this._defaultSize,n[1]+r[1]*s*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;let e=t[0],i=this._cp2(t,-4,0),s=this._sub(e,i);this._normalize(s);let n=this._rightPerp(s);return[e,i,[e[0]+(n[0]-s[0])*this._defaultSize,e[1]+(n[1]-s[1])*this._defaultSize]]}_arrowLastSeg(t){let e,i=t[0],s=this._cp2(t,-4,0);if(t.length>=3)e=t[t.length-1];else{let t=this._sub(i,s);this._normalize(t);let n=this._rightPerp(t);e=[i[0]+(n[0]-t[0])*this._defaultSize,i[1]+(n[1]-t[1])*this._defaultSize]}return[s,e]}_offsetPath(t,e){let{offsetExecute:i}=v.mO.module,s=i({paths:[t],spatialReference:this._spatialReference.toJSON()},e,{joins:"miter",miterLimit:4}),[n]=(0,m.x)(u.z.fromJSONCIM(s));return n?.length?n:null}_processGeom(t){if(!t)return null;let e=[];for(let i of t){let t=i.length>1&&(0,O.Yl)(i)<this._defaultSize;if(!i||0===i.length||t)continue;let s=i.length,n=i[0];switch(this._rule){case"PerpendicularFromFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=[];r.push(s),r.push(this._mid(n,t)),e.push(r);break}case"ReversedFirstSegment":{let t=this._cp2(i,0,-1);e.push([t,n]);break}case"PerpendicularToSecondSegment":{if(i.length<3)return[];let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=[];r.push(this._mid(t,s)),r.push(n),e.push(r);break}case"SecondSegmentWithTicks":{if(i.length<3)return[];let t,s=this._cp2(i,-4,1),r=this._cp3(i,s,.882353,-1.94),h=this._sub(r,s);t=this._crossProduct(h,this._sub(n,s))>0?this._rightPerp(h):this._leftPerp(h);let a=[];a.push([s[0]+(t[0]-h[0])/3,s[1]+(t[1]-h[1])/3]),a.push(s),a.push(r),a.push([r[0]+(t[0]+h[0])/3,r[1]+(t[1]+h[1])/3]),e.push(a);break}case"DoublePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push(n),l.push([s[0]+h[0]*a,s[1]+h[1]*a]),e.push(l);let o=[];o.push([s[0]-h[0]*a,s[1]-h[1]*a]),o.push(t),e.push(o);break}case"OppositeToFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push([s[0]+h[0]*a,s[1]+h[1]*a]),l.push([s[0]-h[0]*a,s[1]-h[1]*a]),e.push(l);break}case"TriplePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push([s[0]+h[0]*a*.8,s[1]+h[1]*a*.8]),l.push([r[0]+.8*(n[0]-r[0]),r[1]+.8*(n[1]-r[1])]),e.push(l),e.push([s,r]);let o=[];o.push([s[0]-h[0]*a*.8,s[1]-h[1]*a*.8]),o.push([r[0]+.8*(t[0]-r[0]),r[1]+.8*(t[1]-r[1])]),e.push(o);break}case"HalfCircleFirstSegment":{let t,s=this._cp2(i,0,-1),r=this._cp3(i,s,.5,4),h=this._mid(n,s),a=this._sub(s,n),l=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18),u=Math.sqrt((1+l)/2),c=Math.sqrt((1-l)/2),_=[];this._crossProduct(a,this._sub(r,n))>0?(_.push(n),a=this._sub(n,h),t=s):(_.push(s),a=this._sub(s,h),t=n),this._rotateDirect(a,u,c),a[0]/=u,a[1]/=u;for(let t=1;t<=18;t++)_.push(this._add(h,a)),this._rotateDirect(a,l,o);_.push(t),e.push(_);break}case"HalfCircleSecondSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,1,-1),r=this._sub(n,t);this._normalize(r);let h=this._crossProduct(r,this._sub(s,t))/2;this._leftPerpendicular(r);let a=[t[0]+r[0]*h,t[1]+r[1]*h];r=this._sub(t,a);let l=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18);h>0&&(o=-o);let u=[t];for(let t=1;t<=18;t++)this._rotateDirect(r,l,o),u.push(this._add(a,r));e.push(u);break}case"HalfCircleExtended":{let t,r=this._cp2(i,0,-2),h=this._cp3(i,r,1,-1);if(s>=4)t=i[3];else{let e=this._sub(n,r);t=this._add(h,e)}let a=this._dist(r,h)/2/.75,l=this._sub(r,n);this._normalize(l,a);let o=this._sub(h,t);this._normalize(o,a);let u=[t,h];e.push(u);let c=[this._clone(h)];this._addBezier3(c,h,this._add(h,o),this._add(r,l),r,4),c.push(n),e.push(c);break}case"OpenCircle":{let t=this._cp2(i,-2,0),s=this._sub(t,n),r=Math.cos(Math.PI/18),h=-Math.sin(Math.PI/18),a=[t];for(let t=1;t<=33;t++)this._rotateDirect(s,r,h),a.push(this._add(n,s));e.push(a);break}case"CoverageEdgesWithTicks":{let t,r,h=this._cp2(i,0,-1);if(s>=3)t=i[2];else{let e=this._sub(h,n),i=this._leftPerp(e);t=[n[0]+i[0]-.25*e[0],n[1]+i[1]-.25*e[1]]}if(s>=4)r=i[3];else{let e=this._mid(n,h),i=this._sub(n,h);this._normalize(i),this._leftPerpendicular(i);let s=this._crossProduct(i,this._sub(t,e));this._rightPerpendicular(i),r=[t[0]+i[0]*s*2,t[1]+i[1]*s*2]}let a,l,o=this._sub(h,n);a=this._crossProduct(o,this._sub(t,n))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push(t),l.push(n),l.push([n[0]+(a[0]-o[0])/3,n[1]+(a[1]-o[1])/3]),e.push(l),a=this._crossProduct(o,this._sub(r,h))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push([h[0]+(a[0]+o[0])/3,h[1]+(a[1]+o[1])/3]),l.push(h),l.push(r),e.push(l);break}case"GapExtentWithDoubleTicks":{let t,r=this._cp2(i,0,2),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}this._addAngledTicks(e,n,r,this._mid(h,t)),this._addAngledTicks(e,h,t,this._mid(n,r));break}case"GapExtentMidline":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}let a=[];a.push(this._mid(n,h)),a.push(this._mid(r,t)),e.push(a);break}case"Chevron":{let t,r=this._cp2(i,-1,-1);if(s>=3)t=i[2];else{let e=this._sub(r,n);this._leftPerpendicular(e),t=this._add(n,e)}e.push([r,this._makeCtrlPt(n),t]);break}case"PerpendicularWithArc":{let t=this._cp2(i,0,-2),r=this._cp3(i,t,.5,-1),h=this._sub(t,n),a=this._norm(h);h[0]/=a,h[1]/=a;let l=this._crossProduct(h,this._sub(r,n)),o=this._dotProduct(h,this._sub(r,n));o<.05*a?o=.05*a:o>.95*a&&(o=.95*a);let u=[n[0]+h[0]*o,n[1]+h[1]*o],c=this._leftPerp(h),_=[];if(_.push([u[0]-c[0]*l,u[1]-c[1]*l]),_.push([u[0]+c[0]*l,u[1]+c[1]*l]),e.push(_),s>=4){let t=i[3],s=this._dotProduct(h,this._sub(t,n));s<.1*a?s=.1*a:s>.9*a&&(s=.9*a);let r=[n[0]+h[0]*s,n[1]+h[1]*s],l=this._crossProduct(h,this._sub(t,n)),o=[];o.push([r[0]-c[0]*l,r[1]-c[1]*l]),o.push([r[0]+c[0]*l,r[1]+c[1]*l]),e.push(o)}let p=[t[0]+c[0]*l,t[1]+c[1]*l];c=this._sub(t,p);let f=Math.cos(Math.PI/18),m=Math.sin(Math.PI/18);l<0&&(m=-m),_=[n,t];for(let t=1;t<=9;t++)this._rotateDirect(c,f,m),_.push(this._add(p,c));e.push(_);break}case"ClosedHalfCircle":{let t=this._cp2(i,2,0),s=this._mid(n,t),r=this._sub(t,s),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=[n,t];for(let t=1;t<=18;t++)this._rotateDirect(r,h,a),l.push(this._add(s,r));e.push(l);break}case"TripleParallelExtended":{let t=this._cp2(i,0,-2),s=this._cp3(i,t,1,-2),r=this._mid(n,t),h=this._sub(s,t);this._normalize(h);let a=Math.abs(this._crossProduct(h,this._sub(r,t)))/2,l=this._dist(t,s),o=[t,n];o.push([n[0]+h[0]*l*.5,n[1]+h[1]*l*.5]),e.push(o);let u=[];u.push([r[0]-h[0]*a,r[1]-h[1]*a]),u.push([r[0]+h[0]*l*.375,r[1]+h[1]*l*.375]),g(u[u.length-1],1),u.push([r[0]+h[0]*l*.75,r[1]+h[1]*l*.75]),e.push(u);let c=[t,s];e.push(c);break}case"ParallelWithTicks":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n)),a=this._leftPerp(r);this._addAngledTicks(e,n,t,s),this._addAngledTicks(e,this._add2(n,a[0]*h,a[1]*h),this._add2(t,a[0]*h,a[1]*h),this._mid(n,t));break}case"Parallel":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._leftPerp(r),a=this._crossProduct(r,this._sub(s,n)),l=[n,t];e.push(l),l=[],l.push([n[0]+h[0]*a,n[1]+h[1]*a]),l.push([t[0]+h[0]*a,t[1]+h[1]*a]),e.push(l);break}case"PerpendicularToFirstSegment":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._mid(n,t),h=this._sub(t,n);this._normalize(h);let a=this._crossProduct(h,this._sub(s,n));this._leftPerpendicular(h);let l=[];l.push([r[0]-h[0]*a*.25,r[1]-h[1]*a*.25]),l.push([r[0]+h[0]*a*1.25,r[1]+h[1]*a*1.25]),e.push(l);break}case"ParallelOffset":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);let l=[];l.push([n[0]+r[0]*h,n[1]+r[1]*h]),l.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(l);break}case"OffsetOpposite":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);break}case"OffsetSame":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]+r[0]*h,n[1]+r[1]*h]),a.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(a);break}case"CircleWithArc":{let t,r,h=this._cp2(i,3,0),a=this._cp3(i,h,.5,-1);if(s>=4)t=i[3],r=this._crossProduct(this._sub(t,h),this._sub(a,h))>0;else{t=h,r=this._crossProduct(this._sub(t,n),this._sub(a,n))>0;let e=24*this._geomUnitsPerPoint,i=this._sub(t,n);this._normalize(i,e);let s=Math.sqrt(2)/2;this._rotateDirect(i,s,r?s:-s),h=this._add(n,i)}let l=this._sub(h,n),o=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),c=[h];for(let t=1;t<=36;t++)this._rotateDirect(l,o,u),c.push(this._add(n,l));this._add90DegArc(c,h,t,a,r),g(c[c.length-8],1),e.push(c);break}case"DoubleJog":{let t,r=this._cp2(i,-3,1),h=this._cp3(i,r,-1,-.5);if(s>=4)t=i[3];else{let e=n;n=r,t=h;let i=this._dist(n,e),s=this._dist(t,e),a=30*this._geomUnitsPerPoint;.5*i<a&&(a=.5*i),.5*s<a&&(a=.5*s),r=this._mix(n,a/i,e,(i-a)/i),h=this._mix(t,a/s,e,(s-a)/s)}let a=this._mid(n,r),l=this._mid(t,h),o=this._dist(n,r),u=this._dist(h,t),c=Math.min(o,u)/8;c=Math.min(c,24*this._geomUnitsPerPoint);let _=Math.cos(Math.PI/4),p=this._sub(n,r);this._normalize(p,c),this._crossProduct(p,this._sub(t,r))>0?this._rotateDirect(p,_,-_):this._rotateDirect(p,_,_);let f=[];f.push(r),f.push(this._add(a,p)),f.push(this._sub(a,p)),f.push(n),e.push(f),p=this._sub(t,h),this._normalize(p,c),this._crossProduct(p,this._sub(n,h))<0?this._rotateDirect(p,_,_):this._rotateDirect(p,_,-_),f=[],f.push(h),f.push(this._add(l,p)),f.push(this._sub(l,p)),f.push(t),e.push(f);break}case"PerpendicularOffset":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h);e.push([a,n]);break}case"LineExcludingLastSegment":{let t=this._arrowPath(i),s=[],n=t.length-2;for(;n--;)s.push(t[n]);e.push(s);break}case"MultivertexArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!1),e.push(s);break}case"CrossedArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!0),e.push(s);break}case"ChevronArrow":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let l=this._crossProduct(h,this._sub(s,t)),o=this._dotProduct(h,this._sub(s,t));o<.05*a?o=.05*a:o>.95*a-r&&(o=.95*a-r);let u=[t[0]+h[0]*o,t[1]+h[1]*o],c=this._leftPerp(h),_=[];_.push([u[0]+c[0]*l+h[0]*r,u[1]+c[1]*l+h[1]*r]),_.push(n),_.push([u[0]-c[0]*l+h[0]*r,u[1]-c[1]*l+h[1]*r]),e.push(_);break}case"ChevronArrowOffset":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._crossProduct(r,this._sub(s,t)),l=this._dotProduct(r,this._sub(s,t));l<.05*h?l=.05*h:l>.95*h&&(l=.95*h);let o=[t[0]+r[0]*l,t[1]+r[1]*l];this._leftPerpendicular(r);let u=[];u.push([o[0]+r[0]*a*.5,o[1]+r[1]*a*.5]),u.push(this._mid(o,n)),u.push([o[0]-r[0]*a*.5,o[1]-r[1]*a*.5]),e.push(u);break}case"PartialFirstSegment":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._dotProduct(r,this._sub(s,t));a<.05*h?a=.05*h:a>.95*h&&(a=.95*h);let l=[t[0]+r[0]*a,t[1]+r[1]*a];e.push([t,l]);break}case"Arch":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=this._sub(n,t),h=this._mix(s,1,r,.55),a=this._mix(s,1,r,-.55),l=[n];this._addBezier2(l,n,h,s,4),this._addBezier2(l,s,a,t,4),e.push(l);break}case"CurvedParallelTicks":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h),l=this._sub(this._mix(t,.75,s,.25),h),o=this._sub(this._mix(t,.25,s,.75),h),u=[t];this._addBezier2(u,t,l,a,3),this._addBezier2(u,a,o,s,3),e.push(u);for(let t=0;t<8;t++){let i=u[2*t+1],s=[this._clone(i)];s.push(this._add(i,[r[0]/4,r[1]/4])),e.push(s)}break}case"Arc90Degrees":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=[t];this._add90DegArc(r,t,n,s),e.push(r);break}case"TipWithPerpendicularAndTicks":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let l=this._crossProduct(h,this._sub(s,t)),o=this._dotProduct(h,this._sub(s,t));o<.05*a?o=.05*a:o>.95*a-r&&(o=.95*a-r);let u=this._leftPerp(h),c=[n[0]-h[0]*r,n[1]-h[1]*r],_=.5*Math.max(a-o-r,r);l=Math.abs(l);let p=[];p.push([c[0]+u[0]*(l+_)-h[0]*_,c[1]+u[1]*(l+_)-h[1]*_]),p.push([c[0]+u[0]*l,c[1]+u[1]*l]),p.push([c[0]-u[0]*l,c[1]-u[1]*l]),p.push([c[0]-u[0]*(l+_)-h[0]*_,c[1]-u[1]*(l+_)-h[1]*_]),e.push(p),e.push([c,n]);break}case"ConcentricCircles":{let t=this._cp2(i,1,0),r=this._cp3(i,t,2,0),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=this._dist(t,n),o=[l,0],u=[];for(let t=0;t<=36;t++)u.push(this._add(n,o)),this._rotateDirect(o,h,a);if(e.push(u),s>=4){u=[];let t=i[3];l=this._dist(t,n),o=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,o)),0===t&&(u.push(this._add(n,o)),g(u[1],1)),this._rotateDirect(o,h,a);e.push(u)}u=[],l=this._dist(r,n),o=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,o)),this._rotateDirect(o,h,a);e.push(u);break}case"DoubleJogArrow":{n=this._arrowPath(i)[0];let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=Math.abs(this._crossProduct(r,this._sub(s,n))),l=Math.abs(this._dotProduct(r,this._sub(s,n)));l<.05*h?l=.05*h:l>.95*h&&(l=.95*h);let o=Math.max(a,l),u=this._leftPerp(r),c=[],_=[n[0]-r[0]*l*.5+u[0]*a*.5,n[1]-r[1]*l*.5+u[1]*a*.5];c.push([_[0],_[1]]),_[0]+=r[0]*o*.5+u[0]*o*.4,_[1]+=r[1]*o*.5+u[1]*o*.4,c.push([_[0],_[1]]),_[0]-=u[0]*o*.25,_[1]-=u[1]*o*.25,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5+u[0]*o*.4,_[1]+=r[1]*o*.5+u[1]*o*.4,c.push([_[0],_[1]]),e.push(c),c=[],_[0]=n[0]-r[0]*l*.5-u[0]*a*.5,_[1]=n[1]-r[1]*l*.5-u[1]*a*.5,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5-u[0]*o*.4,_[1]+=r[1]*o*.5-u[1]*o*.4,c.push([_[0],_[1]]),_[0]+=u[0]*o*.25,_[1]+=u[1]*o*.25,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5-u[0]*o*.4,_[1]+=r[1]*o*.5-u[1]*o*.4,c.push([_[0],_[1]]),e.push(c);break}case"LinkedChevrons":{let t=this._cp2(i,-5,0),s=this._cp3(i,t,-.2,1),r=this._sub(n,t);this._normalize(r);let h=this._leftPerp(r),a=Math.abs(this._crossProduct(r,this._sub(s,t)));e.push([t,n]);let l=[];l.push([n[0]-r[0]*a+h[0]*a,n[1]-r[1]*a+h[1]*a]),l.push(n),l.push([n[0]-r[0]*a-h[0]*a,n[1]-r[1]*a-h[1]*a]),e.push(l),this._addDash(e,t,[-r[0]*a+h[0]*a,-r[1]*a+h[1]*a]),this._addDash(e,t,[-r[0]*a-h[0]*a,-r[1]*a-h[1]*a]);break}case"SegmentThenHalfCircle":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,1.5,0);t=s>=4?i[3]:this._cp3(i,r,1.25,-.5);let a=this._sub(r,n);this._normalize(a);let l=.5*this._dist(r,h),o=this._crossProduct(a,this._sub(t,n))>0,u=Math.cos(Math.PI/18),c=Math.sin(Math.PI/18);o&&(c=-c);let _=[n,r];a[0]*=l,a[1]*=l;let p=this._add(r,a);a[0]=-a[0],a[1]=-a[1];for(let t=1;t<=18;t++)this._rotateDirect(a,u,c),_.push(this._add(p,a));e.push(_);break}case"LineWithStraightTicks":{let t=this._cp2(i,-2,1),s=this._cp3(i,t,-1,-.5),r=this._sub(s,t);this._normalize(r);let h=this._dotProduct(r,this._sub(t,n)),a=this._dotProduct(r,this._sub(s,n)),l=[n];l.push([n[0]+r[0]*h,n[1]+r[1]*h]),l.push(t),e.push(l),l=[n],l.push([n[0]+r[0]*a,n[1]+r[1]*a]),l.push(s),e.push(l);break}case"DoubleCurve":{let t=this._cp2(i,-5,-1),s=this._cp3(i,t,2,0),r=Math.atan2(1,5),h=Math.cos(r),a=Math.sin(r),l=this._sub(t,n),o=this._dist(n,t);this._normalize(l),this._rotateDirect(l,h,-a);let u=[n];u.push([n[0]+l[0]*o*.5,n[1]+l[1]*o*.5]),g(u[1],1),u.push([n[0]+l[0]*o*.8,n[1]+l[1]*o*.8]),this._addBezier2(u,u[2],[n[0]+l[0]*o,n[1]+l[1]*o],t,3);let c=this._sub(s,t),_=this._dist(t,s);this._normalize(c),this._rotateDirect(c,h,-a),this._addBezier2(u,t,[s[0]-c[0]*_,s[1]-c[1]*_],[s[0]-c[0]*_*.8,s[1]-c[1]*_*.8],3),u.push(s),e.push(u);break}case"ParallelWithTicksByWidth":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r),h>0?(this._addAngledTicks(e,n,[n[0]+r[0]*h,n[1]+r[1]*h],t),this._addAngledTicks(e,t,[t[0]+r[0]*h,t[1]+r[1]*h],n)):(this._addAngledTicks(e,[n[0]+r[0]*h,n[1]+r[1]*h],n,t),this._addAngledTicks(e,[t[0]+r[0]*h,t[1]+r[1]*h],n,t));break}case"EnclosingRoundedRectangle":{let t=this._cp2(i,3,-2),e=[Math.min(n[0],t[0]),Math.max(n[1],t[1])],s=[Math.max(n[0],t[0]),Math.min(n[1],t[1])],r=s[0]-e[0],h=e[1]-s[1],a=Math.min(r,h)/10,l=[];l.push([e[0]+a+.75*(r-2*a),e[1]]),l.push([s[0]-a,e[1]]),this._add90DegArc(l,[s[0]-a,e[1]],[s[0],e[1]-a],[s[0],e[1]]),l.push([s[0],s[1]+a]),this._add90DegArc(l,[s[0],s[1]+a],[s[0]-a,s[1]],s),l.push([e[0]+a,s[1]]),this._add90DegArc(l,[e[0]+a,s[1]],[e[0],s[1]+a],[e[0],s[1]]),l.push([e[0],e[1]-a]),this._add90DegArc(l,[e[0],e[1]-a],[e[0]+a,e[1]],e),l.push([e[0]+a+.75*(r-2*a),e[1]]);break}case"ParallelOffsetByValue":{if(i.length<2||0===this._width)break;let t=this._offsetPath(i,.5*this._width);t&&e.push(t);let s=this._offsetPath(i,.5*-this._width);s&&e.push(s);break}default:e.push(i)}}return e}}class R{static{this.instance=null}static local(){return null===R.instance&&(R.instance=new R),R.instance}execute(t,e,i){return new F(t,e,i)}}class F extends y{constructor(t,e,i){super(t,!0,!0),this._curveHelper=new P;let s=i?.geomUnitsPerPoint;this._beginCut=(void 0===e.beginCut?1:e.beginCut)*s,this._endCut=(void 0===e.endCut?1:e.endCut)*s,this._middleCut=(void 0===e.middleCut?0:e.middleCut)*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){let{_beginCut:e,_endCut:i,_middleCut:s}=this,n=t.pathLength(),r=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==i||0!==s)if(e+i+s>=n)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(r,t,0,e),this._curveHelper.appendSubCurve(r,t,.5*(n-s),.5*(n+s)),this._curveHelper.appendSubCurve(r,t,n-i,i)}else if(0===e&&0===i&&0===s)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else e+i+s<n&&(0===s?this._curveHelper.appendSubCurve(r,t,e,n-i):(this._curveHelper.appendSubCurve(r,t,e,.5*(n-s)),this._curveHelper.appendSubCurve(r,t,.5*(n+s),n-i)));return 0===r.totalSize?null:r}}var X=i(45733);class Y{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=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let i=0;i<t.length;i++){let s=Math.abs(t[i]);e&&s<1e-7&&(s=1e-7),this._values.push(s),this._length+=s}return 0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){let e=this._values?this._values.length:0;for(let i=0;i<e;++i)this._values[i]*=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 D{constructor(){this.pt=null,this.ca=0,this.sa=0}}class W{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 U extends P{constructor(t=0,e=!1){super(t,e),this._tempPos=new W,this._tempPt=[0,0],this._tolerance=.03,this._currentPosition=new W}updateTolerance(t){this._tolerance=.03*t}init(t,e,i=!0){return i?(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=0){let i=new W;return!!this._nextPosition(t,i,null,e)&&(i.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);let[e,i]=this._getAngleCS(this._tempPt,this._currentPosition);t.ca=e,t.sa=i}nextPointAndAngle(t,e,i=0){let s=this._tempPos;if(!this._nextPosition(t,s,null,i))return!1;s.copyTo(this._currentPosition),e.pt=this._getPoint(s);let[n,r]=this._getAngleCS(this._tempPt,s);return e.ca=n,e.sa=r,!0}nextCurve(t){if(0===t)return null;let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();let i=new W;return this._nextPosition(t,i,e,1)?(i.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,i,s){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(i){if(0===i.pathSize)if(0===n){let t=e.segment[0];i.pushXY(t[0],t[1])}else i.pushPoint(this.getSegCoord2D(e.segment,n));let t=e.segment[1];i.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 0!==s&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,1===s?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,i){0===i.pathSize&&(0===n?i.pushPoint(e.segment[0]):i.pushPoint(this.getSegCoord2D(e.segment,n)));let t=e.abscissa/e.segmentLength;1===t?i.pushPoint(e.segment[1]):i.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){let e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t,e){let i=e.segmentLength<=0?0:e.abscissa/e.segmentLength;return this.getSegAngleCS(t,this._currentPosition.segment,i)}_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;let e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let i=e+this._partSegCount+1;if(i>=this._pathCursor.pathSize&&(i=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(i),this._patternLength>0){let t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap,i=Math.round((this._partLength-(t+e))/this._patternLength);i<=0&&(i=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+i*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}}class B{static{this.instance=null}static local(){return null===B.instance&&(B.instance=new B),B.instance}execute(t,e,i){return new H(t,e,i)}}class H extends y{constructor(t,e,i){super(t,!0,!0),this._firstCurve=null;let s=i.geomUnitsPerPoint;this._walker=new U,this._walker.updateTolerance(s),this._endings=e.lineDashEnding??"NoConstraint",this._customDashPos=-(e.offsetAlongLine??0)*s,this._offsetAtEnd=(e.customEndingOffset??0)*s;let n=(0,X.FH)(e).dashTemplate;n??=[];let r=(0,X.OI)(n);n=r.hidesLine?[-1]:r.dashTemplate,this._pattern=new Y,this._pattern.init(n,!1),this._pattern.scale(s)}processPath(t){if(this._pattern.size()%2==1)return null;if(0===this._pattern.length()){this.iteratePath=!1;let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case"HalfPattern":case"HalfGap":default:this._pattern.extPtGap=0;break;case"FullPattern":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case"FullGap":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case"NoConstraint":this.isClosed||(e=!1);break;case"Custom":this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}let i=t.pathLength();if(this._pattern.isEmpty()||i<.1*this._pattern.length()){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case"HalfPattern":default:t=.5*this._pattern.firstValue();break;case"HalfGap":t=.5*-this._pattern.lastValue();break;case"FullGap":t=-this._pattern.lastValue();break;case"FullPattern":t=0;break;case"NoConstraint":case"Custom":t=-this._customDashPos}let i=t/this._pattern.length();i-=Math.floor(i),t=i*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let s=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),s=!s;e-=t,s?(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())}0===e&&(e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue());let i=this._walker.nextCurve(e);if(i)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)i.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&&=(i.pushCursor(this._firstCurve),null)):this.iteratePath=!0;else this.iteratePath=!1,i=this._firstCurve,this._firstCurve=null;return i?.reset(),i}}class V{static{this.instance=null}static local(){return null===V.instance&&(V.instance=new V),V.instance}execute(t,e,i){return new q(t,e,i)}}class q{constructor(t,e,i){this._inputGeometries=t,this._tileKey=i.tileKey,this._maxInflateSize=i.maxInflateSize*i.geomUnitsPerPoint,this._preventClipping=i.preventClipping,this._width=(void 0===e.width?2:e.width)*i.geomUnitsPerPoint,e.method,this._option=e.option??"Accurate"}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){let e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:u.z.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();let{bufferExecute:e}=v.$Z.module,i=!this._preventClipping&&this._tileKey?(0,v.qc)(t,this._maxInflateSize,!0):t.clone();if(!i)continue;let s=e({...i.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}},-this._width);if(s)for(let t of s.rings)if(t){i.startPath();for(let e of t.reverse())i.pushXY(e[0],i.yFactor*e[1])}return i}}return null}}var J=i(537);class Z{static{this.instance=null}static local(){return null===Z.instance&&(Z.instance=new Z),Z.instance}execute(t,e,i){return new $(t,e,i)}}class ${constructor(t,e,i){this._inputGeometries=t,this._medhod=e.method}next(){let t=this._inputGeometries.next(),e=this._medhod;for(;null!=t;){if(t.totalSize>0)switch(e){case"RectangularBox":return j(t);case"ConvexHull":return this._constructConvexHull(t);default:return K(t)}t=this._inputGeometries.next()}return null}_constructConvexHull(t){switch(t.geometryType){case"esriGeometryPolyline":case"esriGeometryPolygon":{let{convexHullExecute:e}=v.lX.module,i=e({...t.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}});return i?u.z.fromJSONCIM(i):null}case"esriGeometryEnvelope":return t;default:return null}}}function j(t){let e=(0,J.z8)(t),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]};return u.z.fromJSONCIM(i)}function K(t){switch(t.geometryType){case"esriGeometryPolyline":{let e=[];for(;t.nextPath();)Q(t,e);return u.z.fromJSONCIM({rings:e})}case"esriGeometryPolygon":case"esriGeometryEnvelope":return t;default:return null}}function Q(t,e){if(t.seekPathStart(),!t.nextPoint())return;let i=t.x,s=t.y,n=[[i,s]];for(e.push(n);t.nextPoint();)n.push([t.x,t.y]);n.push([i,s])}class tt{static{this.instance=null}static local(){return null===tt.instance&&(tt.instance=new tt),tt.instance}execute(t,e,i){return new et(t,e,i)}}class et extends y{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P;let s=i.geomUnitsPerPoint;this._length=(void 0===e.length?20:e.length)*s,this._angle=void 0===e.angle?225:e.angle,this._position=void 0===e.position?50:e.position,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);let i=t.x,s=t.y;t.seekInPath(t.pathSize-1);let n=t.x,r=t.y,h=[n-i,r-s];this._curveHelper.normalize(h);let a=i+(n-i)*this._position/100,l=s+(r-s)*this._position/100,o=Math.cos((90-this._angle)/180*Math.PI),c=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(c=-c),this._mirror=!this._mirror;let _=[a-this._length/2*o,l-this._length/2*c],p=[a+this._length/2*o,l+this._length/2*c];return e.pushPath([[i,s],_,p,[n,r]]),e}}class it{static{this.instance=null}static local(){return null===it.instance&&(it.instance=new it),it.instance}execute(t,e,i){return new st(t,e,i)}}class st{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._offsetX=void 0===e.offsetX?0:e.offsetX*s,this._offsetY=void 0===e.offsetY?0:e.offsetY*s}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,i){for(;t.nextPath();)for(;t.nextPoint();)t.x+=e,t.y+=i;return t.reset(),t}}var nt=i(60408);class rt{static{this.instance=null}static local(){return null===rt.instance&&(rt.instance=new rt),rt.instance}execute(t,e,i){return new ht(t,e,i)}}class ht{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=i.tileKey,this._curveHelper=new P,this._offset=(e.offset??1)*s,this._method=e.method??"Square",this._maxInflateSize=Math.max(Math.abs(n*s),10),this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if("Rounded"===this._method&&this._offset>0){let e=(0,m.A)(t),i=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(i){let e=u.z.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(i),e}return null}let e=t.asJSON();if((0,nt.ZC)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return u.z.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}let e=!this._preventClipping&&this._tileKey?(0,v.qc)(t,this._maxInflateSize,!0):t.clone();if(!e)continue;let{simplifyOGCExecute:i}=v.xR.module,{offsetExecute:s}=v.mO.module,{graphicBufferExecuteMany:n}=v.hd.module,r=i({...e.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}});if(!r)continue;let h,a=at(this._method);return"esriGeometryPolygon"===t.geometryType?("square"===a&&(a="bevel"),h=n([r],[this._offset],a,"round")[0]):h=s(r,-this._offset,{joins:a,flattenError:this._offsetFlattenError,miterLimit:4}),h?u.z.fromJSONCIM(h):null}return null}}function at(t){switch(t){case"Rounded":return"round";case"Bevelled":return"bevel";case"Mitered":return"miter";case"Square":return"square"}}var lt=i(12359);class ot{static{this.instance=null}static local(){return null===ot.instance&&(ot.instance=new ot),ot.instance}execute(t,e,i){return new ut(t,e,i)}}class ut{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._executionContext=i,this._length=(void 0===e.length?z.D.CIMGeometricEffectRadial.length:e.length)*s,this._angle=void 0===e.angle?z.D.CIMGeometricEffectRadial.angle:e.angle*Math.PI/180,this._lx=Math.cos(this._angle)*this._length,this._ly=Math.sin(this._angle)*this._length}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return t.nextPath()&&t.nextPoint()&&(this._executionContext.effectOrigin=[t.x,t.y],e.pushPath([[t.x,t.y],[t.x+this._lx,t.y+this._ly]])),e}if("esriGeometryPolygon"===t.geometryType){let e=(0,lt.IK)(t);if(!e)return null;let i=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this._executionContext.effectOrigin=[e[0],e[1]],i.pushPath([[e[0],e[1]],[e[0]+this._lx,e[1]+this._ly]]),i}t=this._inputGeometries.next()}return null}}class ct{static{this.instance=null}static local(){return null===ct.instance&&(ct.instance=new ct),ct.instance}execute(t,e,i){return new _t(t,e,i)}}class _t{constructor(t,e,i){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 pt(t.clone());t=this._inputGeometries.next()}return null}}function pt(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);let i=t.x,s=t.y;t.seekInPath(t.pathSize-e-1);let n=t.x,r=t.y;t.x=i,t.y=s,t.seekInPath(e),t.x=n,t.y=r}return t.reset(),t}class ft{static{this.instance=null}static local(){return null===ft.instance&&(ft.instance=new ft),ft.instance}execute(t,e,i){return new mt(t,e,i)}}class mt{constructor(t,e,i){this._inputGeometries=t,this._rotateAngle=void 0===e.angle?0:e.angle*Math.PI/180}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,J.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),i,s)}t=this._inputGeometries.next()}return null}_rotate(t,e,i){let s=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){let r=t.x-e,h=t.y-i;t.x=e+r*s-h*n,t.y=i+r*n+h*s}return t.reset(),t}}class dt{static{this.instance=null}static local(){return null===dt.instance&&(dt.instance=new dt),dt.instance}execute(t,e,i){return new gt(t,e,i)}}class gt{constructor(t,e,i){this._inputGeometries=t,this._xFactor=void 0===e.xScaleFactor?1.15:e.xScaleFactor,this._yFactor=void 0===e.yScaleFactor?1.15:e.yScaleFactor}next(){let t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,J.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),i,s)}}return null}_scaleCursor(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=i+(t.y-i)*this._yFactor;return t.reset(),t}}class xt{constructor(){this._polyline=[]}beginPath(t){this._polyline.push([t])}lineTo(t){if(0===this._polyline.length)throw Error("No path started. Call beginPath first.");this._polyline[this._polyline.length-1].push(t)}getPointCount(){return this._polyline.reduce((t,e)=>t+e.length,0)}addSegment(t,e,i){i&&this.beginPath(t),this.lineTo(e)}getXY(t){let e=0;for(let i of this._polyline){if(t<e+i.length)return i[t-e];e+=i.length}return null}getGeometry(){return this._polyline}}class yt{static{this.instance=null}static local(){return null===yt.instance&&(yt.instance=new yt),yt.instance}execute(t,e,i){return new Pt(t,e,i)}}class Pt extends y{constructor(t,e,i){super(t,!1,!0),this._suppress=void 0!==e.suppress&&e.suppress,this._invert=void 0!==e.invert&&e.invert}processPath(t){if(t.totalSize<=0)return null;if(!this._suppress){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=[],i=Array(t.pathSize),s=0;for(t.seekPathStart();t.nextPoint();)i[s++]=t.getControlPoint(),e.push([t.x,t.y]);let n=!0,r=!0,h=!1,a=!this._invert;s=0;let l=new xt,o=e[0];for(;s<e.length-1;){let t=e[s+1],u=i[s],c=i[s+1];s++,r&&=(a=u||c?this._invert:!this._invert,!1),a?(l.addSegment(o,t,n),n=!1):h=!0,o=t,c&&(a?(a=!1,n=!0):a=!0)}let c=l.getGeometry();if(0===c.length)return null;if(!h&&e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){let t=c[c.length-1];return(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1])&&t.push([t[0][0],t[0][1]]),u.z.fromJSONCIM({paths:c})}let _=c[c.length-1];return l.getPointCount()>1&&"esriGeometryPolygon"===t.geometryType&&_[0][0]===_[_.length-1][0]&&_[0][1]===_[_.length-1][1]&&c.length>1&&(c[c.length-1].push(...c[0]),c.splice(0,1)),u.z.fromJSONCIM({paths:c})}}var Mt=i(49186),bt=i(53966),Ct=i(6774);const vt=()=>bt.A.getLogger("esri.symbols.cim.effects.EffectTaperedPolygon");class wt{static{this.instance=null}static local(){return null===wt.instance&&(wt.instance=new wt),wt.instance}execute(t,e,i){return new St(t,e,i)}}class St extends y{constructor(t,e,i){super(t,!1,!0),this._slopeS=0,this._slopeC=1,this._lastTangent1=new Ct.bR(NaN,NaN),this._lastWidth=0;let s=i.geomUnitsPerPoint;this._geomUnitsPerPoint=s,this._halfFromWidth=Math.abs(void 0===e.fromWidth?0:e.fromWidth)*s*.5,this._halfToWidth=Math.abs(void 0===e.toWidth?1:e.toWidth)*s*.5,this._originalLength=(void 0===e.length?0:e.length)*s,this._length=0}processPath(t){if(t.totalSize<=0)return null;if(this._halfFromWidth<=0&&this._halfToWidth<=0){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.prevPoint();)e.pushXY(t.x,t.y);for(t.seekPathStart();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=t.getCurrentPath().asJSON(),{generalizeExecute:i}=v.NS.module,s=i(e,.25*this._geomUnitsPerPoint,{removeDegenerateParts:!0}),n=null==s?null:(0,nt.Bi)(s)?s.rings:(0,nt.Rg)(s)?s.paths:null;if(!n)return vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry")),null;let{lengthExecute:r}=v.Xs.module,h=r(s);if((0===this._originalLength||this._originalLength>h)&&h>0){this._length=h;let t=(this._halfToWidth-this._halfFromWidth)/this._length;if(Math.abs(t)<1){let e=t*t;this._slopeC=Math.sqrt(1/(1+e)),this._slopeS=Math.sqrt(e/(1+e)),t<0&&(this._slopeS=-this._slopeS)}else this._slopeC=this._slopeS=.7071}else this._length=this._originalLength,this._slopeC=1,this._slopeS=0;let a=[];for(let t of n){let e=new xt,i=new xt,s=0;this._setFromOffset(t.slice(0,2),e,i);for(let n=0,r=3;r<=t.length;++n,++r)s=this._setOffset(t.slice(n,r),s,e,i);this._setToOffset(t.slice(-2),s,e,i);let[n]=e.getGeometry(),[r]=i.getGeometry();a.push([...n,...r.reverse()])}let l={rings:a,spatialReference:{wkid:C.A.WebMercator.wkid}},{simplifyExecute:o}=v.yM.module,c=o(l);return u.z.fromJSONCIM(c)}_setFromOffset([[t,e],[i,s]],n,r){let h=this._halfFromWidth,a=new Ct.bR(i-t,s-e).normalize().scale(h);n.beginPath([t-a.y,e+a.x]),r.beginPath([t+a.y,e-a.x])}_setToOffset([[t,e],[i,s]],n,r,h){let a;a=(n+=Math.sqrt((i-t)**2+(s-e)**2))>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*n/this._length;let l=new Ct.bR(i-t,s-e).normalize().scale(a);r.lineTo([i-l.y,s+l.x]),h.lineTo([i+l.y,s-l.x])}_setOffset([[t,e],[i,s],[n,r]],h,a,l){let o,u=Math.sqrt((i-t)**2+(s-e)**2);o=h+u>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*(h+u)/this._length,h+=u;let c=new Ct.bR(i,s),_=new Ct.bR(i-t,s-e).normalize(),p=new Ct.bR(n-i,r-s).normalize(),f=Ct.bR.sub(p,_),m=a.getPointCount(),d=l.getPointCount();_.leftPerpendicular(),p.leftPerpendicular();let g=_.x*p.x+_.y*p.y;if(g>.99){let t=Ct.bR.add(_,p).scale(o/2),e=t.clone().rotate(this._slopeC,this._slopeS);a.lineTo([c.x+e.x,c.y+e.y]);let i=t.rotateReverse(this._slopeC,this._slopeS);l.lineTo([c.x-i.x,c.y-i.y])}else{let i=_.x*p.y-_.y*p.x;if(f.scale(1/i),i<0){f.scale(-o).rotateReverse(this._slopeC,this._slopeS);let t=l.getXY(d-1);t||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Ct.bR.add(c,f).sub(Ct.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(-o).rotateReverse(this._slopeC,this._slopeS),e=p.clone().scale(-o).rotateReverse(this._slopeC,this._slopeS);l.lineTo([c.x+t.x,c.y+t.y]),l.lineTo([c.x,c.y]),l.lineTo([c.x+e.x,c.y+e.y])}else l.lineTo([c.x+f.x,c.y+f.y])}else{f.scale(o).rotate(this._slopeC,this._slopeS);let t=a.getXY(m-1);t||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Ct.bR.add(c,f).sub(Ct.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(o).rotate(this._slopeC,this._slopeS),e=p.clone().scale(o).rotate(this._slopeC,this._slopeS);a.lineTo([c.x+t.x,c.y+t.y]),a.lineTo([c.x,c.y]),a.lineTo([c.x+e.x,c.y+e.y])}else a.lineTo([c.x+f.x,c.y+f.y])}let s=Math.acos(g),n=1;if(o>.25){let t=2*Math.acos(1-.25/o);t<s&&(n=Math.round(s/t))}let r=Math.cos(s/n),h=Math.sin(s/n),u=_.clone();if(i<0){u.rotate(this._slopeC,this._slopeS);let i=a.getXY(m-1);i||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Ct.bR.add(c,u.clone().scale(this._lastWidth)),n=Ct.bR.sub(s,Ct.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Ct.bR(t,e),s=this._lastTangent1.clone().scale(this._lastWidth);s.rotate(this._slopeC,this._slopeS);let n=_.clone().scale(this._lastWidth);n.rotate(this._slopeC,this._slopeS),a.lineTo([i.x+s.x,i.y+s.y]),a.lineTo([i.x,i.y]),a.lineTo([i.x+n.x,i.y+n.y])}}else{u.scale(-1).rotateReverse(this._slopeC,this._slopeS);let i=l.getXY(d-1);i||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Ct.bR.add(c,u.clone().scale(this._lastWidth)),n=Ct.bR.sub(s,Ct.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Ct.bR(t,e),s=this._lastTangent1.clone().scale(-this._lastWidth);s.rotateReverse(this._slopeC,this._slopeS);let n=_.clone().scale(-this._lastWidth);n.rotateReverse(this._slopeC,this._slopeS),l.lineTo([i.x+s.x,i.y+s.y]),l.lineTo([i.x,i.y]),l.lineTo([i.x+n.x,i.y+n.y])}}u.scale(o);for(let t=0;t<=n;t++)i<0?(a.lineTo([c.x+u.x,c.y+u.y]),u.rotateReverse(r,h)):(l.lineTo([c.x+u.x,c.y+u.y]),u.rotate(r,h))}return this._lastTangent1.setCoords(_.x,_.y),this._lastWidth=o,h}}class It{static{this.instance=null}static local(){return null===It.instance&&(It.instance=new It),It.instance}execute(t,e,i){return new zt(t,e,i)}}class zt{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._height=(void 0===e.amplitude?2:e.amplitude)*s,this._period=(void 0===e.period?3:e.period)*s,this._style=e.waveform??"Sinus",this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new Y,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new U,this._walker.updateTolerance(s)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;let e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();let i=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case"Sinus":default:this._constructCurve(e,i,!1);break;case"Square":this._constructSquare(e,i);break;case"Triangle":this._constructTriangle(e,i);break;case"Random":this._constructCurve(e,i,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,i){let s=Math.round(e/this._period);0===s&&(s=1);let n=16*s+1,r=e/s,h=this._period/16,a=1/n,l=2*Math.PI*e/r,o=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),c=2*Math.PI*Math.random(),_=.75-Math.random()/2,p=.75-Math.random()/2,f=new D;this._walker.curPointAndAngle(f),t.pushPoint(f.pt);let m=0;for(;;){if(!this._walker.nextPointAndAngle(h,f)){t.pushPoint(this._walker.getPathEnd());break}{let e,s=m;if(m+=a,i){let t=this._height/2*(1+.3*Math.sin(_*l*s+o));e=t*Math.sin(l*s+u),e+=t*Math.sin(p*l*s+c),e/=2}else e=.5*this._height*Math.sin(.5*l*s);t.pushXY(f.pt[0]-e*f.sa,f.pt[1]+e*f.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new D;this._walker.curPointAndAngle(s);let n=new D;if(this._walker.nextPointAndAngle(this._period,n)){let r=new D;this._walker.nextPointAndAngle(this._period,r)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(s.pt[0]-this._height/2*s.sa,s.pt[1]+this._height/2*s.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 i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new D;this._walker.curPointAndAngle(s);let n=new D;if(this._walker.nextPointAndAngle(this._period/2,n)){let r=new D;this._walker.nextPointAndAngle(this._period,r)&&(this._walker.nextPosition(this._period/2)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.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 kt{static{this.instance=null}static local(){return null===kt.instance&&(kt.instance=new kt),kt.instance}execute(t,e,i){return new At(t,e,i)}}class At extends x{constructor(t,e,i){super(t),this._geometryWalker=new U,this._geometryWalker.updateTolerance(i),this._angleToLine=e.angleToLine??!0,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset?e.offset:0)*i,this._originalEndings=e.endings??"WithHalfGap",this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*i,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*i,this._pattern=new Y,this._pattern.init(e.placementTemplate),this._pattern.scale(i),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{this._endings="WithFullGap"===this._originalEndings&&this.isClosed?"WithMarkers":this._originalEndings,this._pattern.extPtGap=0;let i,s=!0;switch(this._endings){case"NoConstraint":i=-this._position,i=this._adjustPosition(i),s=!1;break;case"WithHalfGap":default:i=-this._pattern.lastValue()/2;break;case"WithFullGap":i=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case"WithMarkers":i=0;break;case"Custom":i=-this._position,i=this._adjustPosition(i),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,s))return null;this._pattern.reset();let n=0;for(;i>n;)i-=n,n=this._pattern.nextValue();n-=i,e=n,this.iteratePath=!0}let i=new D;return!this._geometryWalker.nextPointAndAngle(e,i)||"WithFullGap"===this._endings&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):"WithMarkers"===this._endings&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(i.pt[0]-this._offset*i.sa,i.pt[1]+this._offset*i.ca),this._angleToLine&&this.internalPlacement.setRotateCS(i.ca,i.sa),this.internalPlacement)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class Tt{static{this.instance=null}static local(){return null===Tt.instance&&(Tt.instance=new Tt),Tt.instance}execute(t,e,i){return new Et(t,e,i)}}class Et extends x{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P,this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._type=e.extremityPlacement??"Both",this._position=void 0===e.offsetAlongLine?0:e.offsetAlongLine*i,this._beginProcessed=!1}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){let e;switch(this._type){case"Both":default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iterateMultiPath=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iterateMultiPath=!0,this.iteratePath=!0);break;case"JustBegin":e=this._atExtremities(t,this._position,!0);break;case"JustEnd":e=this._atExtremities(t,this._position,!1);case"None":}return e}_atExtremities(t,e,i){if(this._placePerPart||(i?t.seekPath(0):t.seekPath(t.totalSize-1)),i||t.seekPathEnd(),i?t.nextPoint():t.prevPoint()){let s=0,[n,r]=[0,0],[h,a]=[t.x,t.y],l=[0,0];for(;i?t.nextPoint():t.prevPoint();){n=h,r=a,h=t.x,a=t.y;let i=this._curveHelper.getLength(n,r,h,a);if(s+i>e){let t=(e-s)/i,[o,u]=this._curveHelper.getAngleCS(l,n,r,h,a,t),c=this._curveHelper.getCoord2D(n,r,h,a,t);return this.internalPlacement.setTranslate(c[0]-this._offset*u,c[1]+this._offset*o),this._angleToLine&&this.internalPlacement.setRotateCS(-o,-u),this.internalPlacement}s+=i}}return null}}const Gt=.001;class Ot{static{this.instance=null}static local(){return null===Ot.instance&&(Ot.instance=new Ot),Ot.instance}execute(t,e,i){return new Nt(t,e,i)}}class Nt extends x{constructor(t,e,i){super(t),this._segmentIterator=null,this._segCount=0,this._firstSeg=!0,this._seg=null,this._ms=[],this._from=0,this._to=0,this._pt=null,this._walker=new U,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=e.angleToLine??!1,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset??0)*i,this._interval=e.interval??0,this._interval<=0&&(this._interval=.01),this._skipRate=e.skipMarkerRate??0,this._skipRate<=1&&(this._skipRate=0),this._placeAtExtremities=e.placeAtExtremities??!1}processPath(t){if(!this.iteratePath){let{fromGeometry:e}=v.vZ.module,i=e(t.getCurrentPath().asJSON()).getGeometry(),s=i.getPathStart(0);this._segmentIterator=i.querySegmentIteratorAtVertex(s),this._segCount=i.getSegmentCountPath(0),this._firstSeg=!0,this.iteratePath=!0,this._pt=i.getXY(0).clone()}for(;0===this._ms.length&&this._segmentIterator?.hasNextSegment();){--this._segCount,this._seg=this._segmentIterator.nextSegment(),this._from=this._seg.getStartAttributeAsDbl(2,0),this._to=this._seg.getEndAttributeAsDbl(2,0);let e=!isNaN(this._from),i=!isNaN(this._to);e&&(this._from=Math.round(this._from/Gt)*Gt,Math.abs(this._from)<Gt&&(this._from=0)),i&&(this._to=Math.round(this._to/Gt)*Gt,Math.abs(this._to)<Gt&&(this._to=0));let s=e?Math.floor(this._from/this._interval):0,n=i?Math.floor(this._to/this._interval):0;if(e&&(this._placeAtExtremities||!this._firstSeg||!this._placePerPart&&t.pathIndex>0)&&Math.abs(s*this._interval-this._from)<Gt&&(!this._skipRate||s%this._skipRate)&&this._ms.push(this._from),this._firstSeg=!1,e&&i&&!(Math.abs(this._from-this._to)<Gt))if(this._from<=this._to){s*this._interval<this._from+Gt&&++s,n*this._interval>this._to-Gt&&--n;for(let t=s;t<=n;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}else{s*this._interval>this._from-Gt&&--s,n*this._interval<this._to+Gt&&++n;for(let t=n;t<=s;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}}let e=0;if(0===this._ms.length){if(this.iteratePath=!1,!this._segCount&&this._placeAtExtremities&&!isNaN(this._to)&&(this._placePerPart||t.pathIndex===t.totalSize-1)){let t=Math.floor(this._to/this._interval);Math.abs(t*this._interval-this._to)<Gt&&(!this._skipRate||t%this._skipRate)&&(this._ms.push(this._to),e=1)}if(0===this._ms.length)return null}let i=this._ms.pop(),s=isNaN(this._from)||isNaN(this._to)||Math.abs(this._from-this._to)<Gt?e:(i-this._from)/(this._to-this._from);this._seg.queryCoord2D(s,this._pt);let{x:n,y:r}=this._seg.getTangent(s).normalize();return this.internalPlacement.setTranslate(this._pt.x-this._offset*r,this._pt.y+this._offset*n),this._angleToLine&&(this._keepUpright&&n<0&&(n=-n,r=-r),this.internalPlacement.setRotateCS(n,r)),this.internalPlacement.setMeasure(i),this.internalPlacement}}class Lt{static{this.instance=null}static local(){return null===Lt.instance&&(Lt.instance=new Lt),Lt.instance}execute(t,e,i){return new Rt(t,e,i)}}class Rt extends x{constructor(t,e,i){super(t),this._walker=new U,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._beginGap=void 0===e.beginPosition?0:e.beginPosition*i,this._endGap=void 0===e.endPosition?0:e.endPosition*i,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new Y,this._pattern.init(e.positionArray,!1),this._subPathLen=0,this._totalPathLen=0,this._posCount=this._pattern.size(),this._pathIndexes=[],this._pathLengths=[],this._pathStarts=[],this._posIndex=0,this._positions=[],this._isFirst=!0,this._prevPos=0}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){return this._pattern.isEmpty()?null:this._placePerPart?this._processPathPerPart(t):this._processMultiPart(t)}_processPathPerPart(t){let e;if(this.iteratePath){let t=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+t;e=i-this._prevPos,this._prevPos=i}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();let i=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+i;e=s-this._prevPos,this._prevPos=s,this.iteratePath=!0}let i=new D;return this._walker.nextPointAndAngle(e,i,1)?(this._posCount--,0===this._posCount&&(this.iteratePath=!1),this._setPlacement(i)):(this.iteratePath=!1,null)}_processMultiPart(t){if(!this.iteratePath){if(!this._initializeMultiPart(t))return null;this.iteratePath=!0}if(this._posIndex>=this._positions.length)return this.iteratePath=!1,null;let e=this._getPositionAtDistance(t,this._positions[this._posIndex]);if(null==e)return this.iterateMultiPath=!1,this.iteratePath=!1,null;this._posIndex++;let i=this._posIndex<this._positions.length;return this.iterateMultiPath=i,this.iteratePath=i,this._setPlacement(e)}_initializeMultiPart(t){this._pathIndexes.length=0,this._pathLengths.length=0,this._pathStarts.length=0,this._positions.length=0,this._totalPathLen=0,this._posIndex=0,this._isFirst=!0;for(let e=0;e<t.totalSize;e++){if(!t.seekPath(e))continue;let i=t.pathLength();i<=0||(this._pathIndexes.push(e),this._pathStarts.push(this._totalPathLen),this._pathLengths.push(i),this._totalPathLen+=i)}if(this._subPathLen=this._totalPathLen-this._beginGap-this._endGap,this._subPathLen<0||!this._pathIndexes.length)return!1;this._pattern.reset();for(let t=0;t<this._pattern.size();t++)this._positions.push(this._beginGap+this._pattern.nextValue()*this._subPathLen);return this._positions.length>0}_getPositionAtDistance(t,e){let i=Math.max(0,Math.min(e,this._totalPathLen)),s=this._pathIndexes.length-1;for(let t=0;t<this._pathIndexes.length-1;t++)if(i<=this._pathStarts[t]+this._pathLengths[t]){s=t;break}if(!t.seekPath(this._pathIndexes[s])||!this._walker.init(t,this._pattern,!1))return null;let n=new D,r=Math.max(0,Math.min(i-this._pathStarts[s],this._pathLengths[s]));return this._walker.nextPointAndAngle(r,n,1)?n:null}_setPlacement(t){this.internalPlacement.setTranslate(t.pt[0]-this._offset*t.sa,t.pt[1]+this._offset*t.ca);let e,i,s=this._isFirst&&this._flipFirst;return this._angleToLine?(e=t.ca,i=t.sa):(e=1,i=0),s&&(e=-e,i=-i),this.internalPlacement.setRotateCS(e,i),this._isFirst=!1,this.internalPlacement}}var Ft=i(87811);const Xt=1e-6;class Yt{static{this.instance=null}static local(){return null===Yt.instance&&(Yt.instance=new Yt),Yt.instance}execute(t,e,i,s){return new Dt(t,e,i,s)}}class Dt{constructor(t,e,i,s){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)*i,this._stepY=Math.abs(e.stepY??16)*i,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??"Fixed","Random"===this._gridType){let t=e.seed??13;this._randomLCG=new Ft.A(1*t),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)*i,this._offsetY=(e.offsetY??0)*i,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!=s){let[t,e,i,n]=s.split("/"),r=parseFloat(t),h=parseFloat(e),a=parseFloat(i),l=parseFloat(n);this._graphicOriginX=512*-(l*2**r+a),this._graphicOriginY=512*h,this._testInsidePolygon=!0}this._internalPlacement=new d.W,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!Dt._randValues){Dt._randValues=[];for(let t=0;t<24;t++)for(let t=0;t<24;t++)Dt._randValues.push(this._randomLCG.getFloat()),Dt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,i,s,n,r,h,a,l,o,u,c,_,p,f;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,a=l=p=c=Number.MAX_VALUE,o=u=f=_=-Number.MAX_VALUE;let m=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)h=t.x,r=t.y,e=h-this._graphicOriginX-this._offsetX,i=r-this._graphicOriginY-this._offsetY,m?(s=this._cosAngle*e-this._sinAngle*i,n=this._sinAngle*e+this._cosAngle*i):(s=e,n=i),a=Math.min(a,s),o=Math.max(o,s),l=Math.min(l,n),u=Math.max(u,n),c=Math.min(c,r),_=Math.max(_,r),p=Math.min(p,h),f=Math.max(f,h);c=c===Number.MAX_VALUE?-512-this._stepY:c,_=_===-Number.MAX_VALUE?this._stepY:_,p=p===Number.MAX_VALUE?-this._stepX:p,f=f===-Number.MAX_VALUE?512+this._stepX:f;let d=_-c,g=f-p;if(this._verticalSubdivision=d>=g,this._polygonMin=this._verticalSubdivision?c:p,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=512-this._graphicOriginX-this._offsetX+this._stepX,i=-512-this._graphicOriginY-this._offsetY-this._stepY,s=0-this._graphicOriginY-this._offsetY+this._stepY;if(m){let n=[[t,i],[t,s],[e,i],[e,s]];t=i=Number.MAX_VALUE,e=s=-Number.MAX_VALUE;for(let r of n){let n=this._cosAngle*r[0]-this._sinAngle*r[1],h=this._sinAngle*r[0]+this._cosAngle*r[1];t=Math.min(t,n),e=Math.max(e,n),i=Math.min(i,h),s=Math.max(s,h)}}a=a===Number.MAX_VALUE?t:Math.max(a,t),l=l===Number.MAX_VALUE?i:Math.max(l,i),o=o===-Number.MAX_VALUE?e:Math.min(o,e),u=u===-Number.MAX_VALUE?s:Math.min(u,s)}this._xMin=Math.round(a/this._stepX),this._xMax=Math.round(o/this._stepX),this._yMin=Math.round(l/this._stepY),this._yMax=Math.round(u/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,p,f,c,_)}_buildAccelerationMap(t,e,i,s,n){t.reset();let r=new Map,h=this._verticalSubdivision,a=h?n-s:i-e,l=Math.ceil(a/10);if(l<=1)return;let o,u,c,_,p,f,m,d,g,x,y,P=Math.floor(a/l);for(l++,this._delta=P,h?(g=-512-2*this._stepY,x=2*this._stepY,y=s):(g=-2*this._stepX,x=512+2*this._stepX,y=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(o=t.x,u=t.y;t.nextPoint();o=c,u=_){if(c=t.x,_=t.y,h){if(u===_||u<g&&_<g||u>x&&_>x)continue;p=Math.min(u,_),f=Math.max(u,_)}else{if(o===c||o<g&&c<g||o>x&&c>x)continue;p=Math.min(o,c),f=Math.max(o,c)}for(;p<f;)m=Math.floor((p-y)/P),Wt(m,o,u,c,_,r),p+=P;d=Math.floor((f-y)/P),d>m&&Wt(d,o,u,c,_,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);let e,i,s=this._currentY*this._stepY+this._offsetY;if(this._currentX++,"Random"===this._gridType){let n=(this._currentX%24+24)%24,r=(this._currentY%24+24)%24;e=this._graphicOriginX+t+this._stepX*this._randomness*(.5-Dt._randValues[24*r+n])*2/3,i=this._graphicOriginY+s+this._stepY*this._randomness*(.5-Dt._randValues[24*r+n+1])*2/3}else e=this._graphicOriginX+this._cosAngle*t+this._sinAngle*s,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*s;if(!this._testInsidePolygon||this._isInsidePolygon(e,i,this._geometryCursor))return this._internalPlacement.setTranslate(e,i),this._internalPlacement}}_isInsidePolygon(t,e,i){if(null==this._accelerationMap)return function(t,e,i){let s,n,r,h,a=0;for(t+=Xt,e+=Xt,i.reset();i.nextPath();)if(i.nextPoint())for(s=i.x,n=i.y;i.nextPoint();s=r,n=h)r=i.x,h=i.y,n>e!=h>e&&((r-s)*(e-n)-(h-n)*(t-s)>0?a++:a--);return 0!==a}(t,e,i);t+=Xt,e+=Xt;let s=this._verticalSubdivision,n=Math.floor(((s?e:t)-this._polygonMin)/this._delta),r=this._accelerationMap.get(n);if(!r)return!1;let h,a,l,o=0;for(let i of r){if(h=i[0],a=i[1],s){if(h[1]>e==a[1]>e)continue;l=(a[0]-h[0])*(e-h[1])-(a[1]-h[1])*(t-h[0])}else{if(h[0]>t==a[0]>t)continue;l=(a[1]-h[1])*(t-h[0])-(a[0]-h[0])*(e-h[1])}l>0?o++:o--}return 0!==o}}function Wt(t,e,i,s,n,r){let h=r.get(t);h||(h=[],r.set(t,h)),h.push([[e,i],[s,n]])}class Ut{static{this.instance=null}static local(){return null===Ut.instance&&(Ut.instance=new Ut),Ut.instance}execute(t,e,i){return new Bt(t,e,i)}}class Bt extends x{constructor(t,e,i){super(t),this._curveHelper=new P,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._relativeTo=e.relativeTo??"LineMiddle",this._position=void 0===e.startPointOffset?0:e.startPointOffset*i,this._epsilon=.001*i}processPath(t){let e=this._position;if("SegmentMidpoint"===this._relativeTo){if(this.iteratePath||=!0,t.nextPoint()){let[e,i]=[t.x,t.y],[s,n]=[0,0],r=[0,0];for(;t.nextPoint();){s=t.x,n=t.y;let h=this._curveHelper.getLength(e,i,s,n);if(h<this._epsilon){e=s,i=n;continue}let a=.5+this._position/h,[l,o]=this._curveHelper.getAngleCS(r,e,i,s,n,a),u=this._curveHelper.getCoord2D(e,i,s,n,a);return this.internalPlacement.setTranslate(u[0]-this._offset*o,u[1]+this._offset*l),this._angleToLine&&this.internalPlacement.setRotateCS(l,o),this.internalPlacement}}return this.iteratePath=!1,null}let i="LineEnd"===this._relativeTo;return this.onLine(t,e,i)}onLine(t,e,i){let s,n=!1;switch(this._relativeTo){case"LineMiddle":default:t.seekPathStart(),s=t.pathLength()/2+e;break;case"LineBeginning":s=e;break;case"LineEnd":s=e,n=!0}i?t.seekPathEnd():t.seekPathStart();let r=0;if(i?t.prevPoint():t.nextPoint()){let[e,h]=[t.x,t.y],[a,l]=[0,0],o=[0,0];for(;i?t.prevPoint():t.nextPoint();){a=t.x,l=t.y;let i=this._curveHelper.getLength(e,h,a,l);if(r+i>s){let t=(s-r)/i,[u,c]=this._curveHelper.getAngleCS(o,e,h,a,l,t),_=this._curveHelper.getCoord2D(e,h,a,l,t),p=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(_[0]-p*c,_[1]+p*u),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-u,-c):this.internalPlacement.setRotateCS(u,c)),this.internalPlacement}e=a,h=l,r+=i}}return null}}class Ht{static{this.instance=null}static local(){return null===Ht.instance&&(Ht.instance=new Ht),Ht.instance}execute(t,e,i){return new Vt(t,e,i)}}class Vt extends x{constructor(t,e,i){super(t),this._curveHelper=new P,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,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),!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;let e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let i=e[0],s=e[1];if(0!==this._offset){let t=Math.cos(e[2]),n=Math.sin(e[2]);i-=this._offset*n,s+=this._offset*t}return this.internalPlacement.setTranslate(i,s),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();let e=t.isClosed(),i=0,s=!1,n=0,r=0;if(t.seekPathStart(),t.nextPoint()){let h=t.x,a=t.y,l=t.getControlPoint(),o=!0,u=t.nextPoint();for(;u;){let c=t.x,_=t.y,p=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(h,a,c,_,0)),o?(o=!1,e?(i=n,s=l):(this._endPoints||this._controlPoints&&l)&&this._tags.push([h,a,n])):l?this._controlPoints&&this._tags.push([h,a,qt(r,n)]):this._regularVertices&&this._tags.push([h,a,qt(r,n)]),(this._angleToLine||0!==this._offset)&&(r=this._curveHelper.getAngle(h,a,c,_,1)),u=t.nextPoint(),u||(e?p||s?this._controlPoints&&this._tags.push([c,_,qt(r,i)]):this._regularVertices&&this._tags.push([c,_,qt(r,i)]):(this._endPoints||this._controlPoints&&p)&&this._tags.push([c,_,r])),h=c,a=_,l=p}}this._tagIterator=0}}function qt(t,e){let i=Math.PI;for(;Math.abs(e-t)>i+2e-15;)e-t>i?e-=2*i:e+=2*i;return(t+e)/2}var Jt=i(78957);class Zt{static{this.instance=null}static local(){return null===Zt.instance&&(Zt.instance=new Zt),Zt.instance}execute(t,e,i){return new $t(t,e,i)}}class $t{constructor(t,e,i){this._geometryCursor=t,this._offsetX=void 0===e.offsetX?0:e.offsetX*i,this._offsetY=void 0===e.offsetY?0:e.offsetY*i,this._method=void 0===e.method?"OnPolygon":e.method,this._placementPerPart=void 0!==e.placePerPart&&e.placePerPart,this._internalPlacement=new d.W}next(){let t=this._geometryCursor;if(!t)return null;if(!this._placementPerPart)return this._geometryCursor=null,this._polygonCenter(t);for(;t.nextPath();)if(!(t.getCurrentRingArea()<0))return this._polygonCenter(t.getCurrentPath());return this._geometryCursor=null,null}_polygonCenter(t){let e=!1;switch(this._method){case"CenterOfMass":{let i=(0,lt.TP)(t);i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}break;case"BoundingBoxCenter":{let i=(0,J.z8)(t);i&&(this._internalPlacement.setTranslate((i[2]+i[0])/2+this._offsetX,(i[3]+i[1])/2+this._offsetY),e=!0)}break;default:{let i=(0,Jt.d)(t);null!==i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}var jt=i(86235),Kt=i(14057);class Qt{static{this.instance=null}static local(){return null===Qt.instance&&(Qt.instance=new Qt),Qt.instance}execute(t,e,i){return new te(t,i)}}class te{constructor(t,e){this._cursor=t,this._context=e}next(){let t=this._cursor.next();if(!t||0===t.totalSize)return null;if(this._context.callout?.preserveInputGeometry)return t;let{matcher:e,target:i,tileKey:s}=this._context,n=e&&i&&null!=s?e.getMatcherGeometryOverride((0,Kt.$)(s,i.getObjectId())):null;if(!n)return t;let r=u.z.fromOptimizedCIM(n.geometry.clone(),n.geometryType);return r.invertY(),r}}class ee{static{this.instance=null}static local(){return null===ee.instance&&(ee.instance=new ee),ee.instance}execute(t){return new ie(t)}}class ie extends x{constructor(t){super(t),this._curveHelper=new P}processPath(t){if(this.iteratePath=!0,t.nextPoint()){let[e,i]=[t.x,t.y];if(t.nextPoint()){let[s,n]=[t.x,t.y],r=(e+s)/2,h=(i+n)/2;this.internalPlacement.setTranslate(r,h);let a=this._curveHelper.getAngle(e,i,s,n,0);return this.internalPlacement.setRotate(a),this.internalPlacement}}return this.iteratePath=!1,null}}function se(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return p.local();case"CIMGeometricEffectArrow":return M.local();case"CIMGeometricEffectBuffer":return w.local();case"CIMGeometricEffectCircularSector":return T.local();case"CIMGeometricEffectControlMeasureLine":return N.local();case"CIMGeometricEffectCut":return R.local();case"CIMGeometricEffectDashes":return B.local();case"CIMGeometricEffectDonut":return V.local();case"CIMGeometricEffectJog":return tt.local();case"CIMGeometricEffectMove":return it.local();case"CIMGeometricEffectOffset":return rt.local();case"CIMGeometricEffectRadial":return ot.local();case"CIMGeometricEffectReverse":return ct.local();case"CIMGeometricEffectRotate":return ft.local();case"CIMGeometricEffectScale":return dt.local();case"CIMGeometricEffectSuppress":return yt.local();case"CIMGeometricEffectTaperedPolygon":return wt.local();case"CIMGeometricEffectWave":return It.local();case"CIMGeometricEffectEnclosingPolygon":return Z.local();case"CIMSimpleLineCallout":return c.local();case"CIMBackgroundCallout":return n.local();case"CIMBalloonCallout":return h.local();case"CIMPointSymbolCallout":return l.local();case"PrivateDimensionEffect":return jt.HZ.local();case"PrivateMatcherGeometryOverrideEffect":return Qt.local()}return null}function ne(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return kt.local();case"CIMMarkerPlacementAtExtremities":return Tt.local();case"CIMMarkerPlacementAtMeasuredUnits":return Ot.local();case"CIMMarkerPlacementAtRatioPositions":return Lt.local();case"CIMMarkerPlacementInsidePolygon":return Yt.local();case"CIMMarkerPlacementOnLine":return Ut.local();case"PrivatePlacementMultipoint":return ee.local();case"CIMMarkerPlacementOnVertices":return Ht.local();case"CIMMarkerPlacementPolygonCenter":return Zt.local()}return null}},98939(t,e,i){i.d(e,{W:()=>s});class s{constructor(){this.setIdentity()}getAngle(){return 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=Math.atan2(e,t),this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=Math.cos(t),this.rzSin=Math.sin(t)}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},23650(t,e,i){i.d(e,{OverrideHelper:()=>_});var s=i(68197),n=i(85334),r=i(4718),h=i(95466),a=i(55674),l=i(45733),o=i(93397),u=i(37615);const c=t=>{if(!t)return[0,0,0,0];let{r:e,g:i,b:s,a:n}=t;return[e,i,s,255*n]};class _{static findApplicableOverrides(t,e,i){if(t&&e){if(t.primitiveName){let s=!1;for(let e of i)if(e.primitiveName===t.primitiveName){s=!0;break}if(!s)for(let s of e)s.primitiveName===t.primitiveName&&i.push(s)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(let s of t.effects)_.findApplicableOverrides(s,e,i);if(t.symbolLayers)for(let s of t.symbolLayers)_.findApplicableOverrides(s,e,i);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMVectorMarker":case"CIMCharacterMarker":case"CIMPictureMarker":if(t.effects)for(let s of t.effects)_.findApplicableOverrides(s,e,i);if(t.markerPlacement&&_.findApplicableOverrides(t.markerPlacement,e,i),"CIMVectorMarker"===t.type){if(t.markerGraphics)for(let s of t.markerGraphics)_.findApplicableOverrides(s,e,i),_.findApplicableOverrides(s.symbol,e,i)}else"CIMCharacterMarker"===t.type?_.findApplicableOverrides(t.symbol,e,i):"CIMHatchFill"===t.type?_.findApplicableOverrides(t.lineSymbol,e,i):"CIMPictureMarker"===t.type&&_.findApplicableOverrides(t.animatedSymbolProperties,e,i)}}}static findEffectOverrides(t,e){if(!t)return null;if("CIMGeometricEffectDashes"===t.type&&(0,l.FH)(t),!e||!t.primitiveName)return{type:"cim-effect-param",effect:t,overrides:[]};let i=(0,o.rB)(t),s=t.primitiveName,n=[];for(let t of e)t.primitiveName===s&&n.push((0,o.rB)(t));return{type:"cim-effect-param",effect:i,overrides:(0,o.pk)(n)}}static async resolveSymbolOverrides(t,e,i,s,n,a,l){if(!t?.symbol)return null;let{symbol:u,primitiveOverrides:c}=t,p=!!c;if(!p&&!s)return u;u=(0,r.o8)(u),c=(0,r.o8)(c);let f=!0;if(e||(e={attributes:{}},f=!1),p){if(f||(c=c.filter(t=>!t.valueExpressionInfo?.expression.includes("$feature"))),l||(c=c.filter(t=>!t.valueExpressionInfo?.expression.includes("$view"))),c.length>0){let t=(0,o.O2)(e.attributes),s={spatialReference:i,fields:t,geometryType:n};await _.createRenderExpressions(c,s),_.evaluateOverrides(c,e,n??"esriGeometryPoint",a,l,new h.A(t))}_.applyOverrides(u,c)}return s&&_.applyDictionaryTextOverrides(u,e,s,null),u}static{this._expressionToRenderExpression=new Map}static async createRenderExpressions(t,e){let i=[];for(let s of t){let t=s.valueExpressionInfo;if(!t||_._expressionToRenderExpression.has(t.expression))continue;let n=(0,a.Ad)(t.expression,e.spatialReference);i.push(n),n.then(e=>_._expressionToRenderExpression.set(t.expression,e))}i.length>0&&await Promise.all(i)}static evaluateOverrides(t,e,i,s,r,h){let a={$view:{scale:r?.scale}};for(let r of t){r.value&&"object"==typeof r.value&&(0,n.IB)(r.value)&&("Color"===r.propertyName||"StrokeColor"===r.propertyName)&&(r.value=c(r.value));let t=r.valueExpressionInfo;if(!t)continue;let l=_._expressionToRenderExpression.get(t.expression);l&&(r.value=(0,u.A)(l,e,a,i,h,s),r.value=this.toValue(r.propertyName,r.value))}}static applyDictionaryTextOverrides(t,e,i,s,n="Normal"){if(t?.type)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":case"CIMTextSymbol":{let r=t.symbolLayers;if(!r)return;for(let h of r)h&&"CIMVectorMarker"===h.type&&_.applyDictionaryTextOverrides(h,e,i,s,"CIMTextSymbol"===t.type?t.textCase:n)}break;case"CIMVectorMarker":{let n=t.markerGraphics;if(!n)return;for(let t of n)t&&_.applyDictionaryTextOverrides(t,e,i,s)}break;case"CIMMarkerGraphic":{let r=t.textString;if(r&&r.includes("[")){let h=(0,o.gQ)(r,i);t.textString=(0,o.FM)(e,h,s,n)}}}}static applyOverrides(t,e,i,s){if(t.primitiveName)for(let n of e)if(n.primitiveName===t.primitiveName){let e=(0,o.YF)(n.propertyName);if(s&&s.push({cim:t,nocapPropertyName:e,value:t[e]}),i){let e=!1;for(let s of i)s.primitiveName===t.primitiveName&&(e=!0);e||i.push(n)}null!=n.value&&(t[e]=n.value)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(let n of t.effects)_.applyOverrides(n,e,i,s);if(t.symbolLayers)for(let n of t.symbolLayers)_.applyOverrides(n,e,i,s);break;case"CIMTextSymbol":_.applyOverrides(t.symbol,e,i,s);break;case"CIMSolidStroke":case"CIMSolidFill":case"CIMVectorMarker":if(t.effects)for(let n of t.effects)_.applyOverrides(n,e,i,s);if("CIMVectorMarker"===t.type&&t.markerGraphics)for(let n of t.markerGraphics)_.applyOverrides(n,e,i,s),_.applyOverrides(n.symbol,e,i,s)}}static restoreOverrides(t){for(let e of t)e.cim[e.nocapPropertyName]=e.value}static buildOverrideKey(t){let e="";for(let i of t)void 0!==i.value&&(e+=`${i.primitiveName}${i.propertyName}${JSON.stringify(i.value)}`);return e}static toValue(t,e){if(null==e)return null;if("DashTemplate"===t)return e.split(" ").map(t=>Number(t));if("Color"===t||"StrokeColor"===t){let t=new s.A(e).toRgba();return t[3]*=255,t}return e}}},34653(t,e,i){i.d(e,{E0:()=>c,gX:()=>u,gR:()=>o,W:()=>d,ZO:()=>y,IF:()=>x,n_:()=>_,DJ:()=>g,_T:()=>m,Io:()=>b,EE:()=>h,pT:()=>P,Je:()=>M,sz:()=>p,XD:()=>l,QB:()=>a});var s=i(36745);function n(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin),h=1/Math.sqrt(e.x*e.x/(n*n)+e.y*e.y/(r*r));return{x:i+e.x*h,y:s+e.y*h}}function r(t,e,i){let s=.5*(t.xmin+t.xmax),n=.5*(t.ymin+t.ymax),r=.5*(t.xmax-t.xmin),h=.5*(t.ymax-t.ymin),a=e.x-s,l=e.y-n,o=i.x-e.x,u=i.y-e.y,c=o*o/(r*r)+u*u/(h*h),_=2*(a*o/(r*r)+l*u/(h*h)),p=a*a/(r*r)+l*l/(h*h)-1,f=Math.max(_*_-4*c*p,0),m=(-_-Math.sqrt(f))/(2*c),d=(-_+Math.sqrt(f))/(2*c),g=m>=0&&m<=1?m:d;return{x:e.x+o*g,y:e.y+u*g}}function h(t,e){let{relativeAnchor:i,relativeLayoutAnchor:s,absoluteAnchor:n,bodyBounds:r}=e??{},h=t.clone();if("esriGeometryPoint"===h.geometryType||"esriGeometryMultipoint"===h.geometryType){if(!h.nextPath()||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:r?a(r,h.x,h.y):{xmin:h.x,ymin:h.y,xmax:h.x,ymax:h.y}}}if(r&&1===h.totalSize&&1===h.totalPoints){if(!h.seekPath(0)||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:a(r,h.x,h.y)}}if(h.totalSize<2)return null;function a(t,e,i){return{xmin:t.xmin+e,ymin:t.ymin+i,xmax:t.xmax+e,ymax:t.ymax+i}}let l=h.totalSize-1,o={xmin:1/0,ymin:1/0,xmax:-1/0,ymax:-1/0};for(let t=0;t<l;t++){if(!h.seekPath(t))return null;for(h.seekPathStart();h.nextPoint();)C(o,h.x,h.y)}return function(t){return Number.isFinite(t.xmin)&&Number.isFinite(t.ymin)&&Number.isFinite(t.xmax)&&Number.isFinite(t.ymax)}(o)&&h.seekPath(l)&&(h.seekPathStart(),h.nextPoint())?{anchor:n??{x:h.x,y:h.y},layoutAnchor:n??{x:h.x,y:h.y},bounds:o}:null}function a(t,e){return{left:(t?.left??0)*e,right:(t?.right??0)*e,top:(t?.top??0)*e,bottom:(t?.bottom??0)*e}}function l(t,e){return{xmin:t.xmin-e.left,ymin:t.ymin-e.bottom,xmax:t.xmax+e.right,ymax:t.ymax+e.top}}function o(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}function u(t){return{x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)}}function c(t,e,i=0){let s,n,r=t.xmin-i,h=t.ymin-i,a=t.xmax+i,l=t.ymax+i,o=.5*(r+a),u=.5*(h+l);return s=e.x<r?r:e.x>a?a:e.x<o?Math.abs(e.x-r)<Math.abs(e.x-o)?r:o:Math.abs(e.x-a)<Math.abs(e.x-o)?a:o,n=e.y<h?h:e.y>l?l:e.y<u?Math.abs(e.y-h)<Math.abs(e.y-u)?h:u:Math.abs(e.y-l)<Math.abs(e.y-u)?l:u,{x:s,y:n}}function _(t,e,i,s,n,r,h=1,a=!1,l=t){let o=N(t,e,i??0,n,9*h,a,l);return v(function(t){return t.filter((e,i)=>0===i||e.x!==t[i-1].x||e.y!==t[i-1].y)}(s>0?function(t,e){return function(t,e){let i=e;for(let e=1;e<t.length;e++){let s=t[e-1],n=t[e],r=b(s,n);if(i<r){let h=i/r;return[{x:s.x+h*(n.x-s.x),y:s.y+h*(n.y-s.y)},...t.slice(e)]}i-=r}return[t[t.length-1]]}(t.slice().reverse(),e).reverse()}(o,s):o),r)}function p(t,e,i,s,n=!1,r=t){let h=i??0;return 0!==h||n?f(L(t,e,h,s,r),e,h):c(t,e,s)}function f(t,e,i){let s=R(t.start,t.end);switch(i){case 1:case 2:case 3:return s;case 4:return e.y>s.y?t.end:t.start;case 5:case 6:return b(t.start,e)>b(t.end,e)?t.end:t.start;default:return b(t.start,e)<b(t.end,e)?t.start:t.end}}function m(t,e){return w([{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}],e)}function d(t,e,i,s,n=null,r=t){let{start:h,end:a}=L(t,e,n??0,i,r);return v([h,a],s)}function g(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPoint",!1,!1,e);return i.startPath(),i.pushXY(t.x,e*t.y),i.reset(),i}function x(t,e,i,s,n,r=null,h=e,a=!0){let l=P(t,i),u=!a||o(l,h)?null:A(l,t,h,e,i,s,r);switch(i){case 1:return function(t,e,i){let s=function(t){let e=M(t,1),i=[{x:t.xmin+e,y:t.ymin}];return E(i,t.xmin+e,t.ymin+e,e,-Math.PI/2,-Math.PI),i.push({x:t.xmin,y:t.ymax-e}),E(i,t.xmin+e,t.ymax-e,e,Math.PI,Math.PI/2),i.push({x:t.xmax-e,y:t.ymax}),E(i,t.xmax-e,t.ymax-e,e,Math.PI/2,0),i.push({x:t.xmax,y:t.ymin+e}),E(i,t.xmax-e,t.ymin+e,e,0,-Math.PI/2),i.push(i[0]),i}(t);return e&&G(s,e),w(s,i)}(l,u,n);case 2:return function(t,e,i){if(!e)return function(t,e){return w(function(t){let e=[];for(let i=0;i<32;i++)e.push(z(t,2*Math.PI*i/32));return e}(t),e)}(t,i);let s=I(t,e.points[0]),n=I(t,e.points[e.points.length-1]),r=k(n-s),h=Math.min(r,2*Math.PI-r),a=r<=Math.PI?e.points.slice():[e.points[e.points.length-1],e.points[1],e.points[0]],l=r<=Math.PI?n:s,o=2*Math.PI-h,u=Math.max(1,Math.ceil(S*o/(2*Math.PI)));for(let e=1;e<u;e++)a.push(z(t,l+o*e/u));return w(a,i)}(l,u,n);default:return function(t,e,i){let s=[{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}];return e&&G(s,e),w(s,i)}(l,u,n)}}function y(t,e,i,s,n,r=null,h=e){let a=P(t,i),l=o(a,h)?null:A(a,t,h,e,i,s,r);return l?w(l.points,n):null}function P(t,e){if(2!==e)return t;let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.ymax-t.ymin),r=Math.max(.5*(t.xmax-t.xmin)*Math.SQRT2,1.25*n);return{xmin:i-r,ymin:s-n,xmax:i+r,ymax:s+n}}function M(t,e){return 1===e?Math.min(t.xmax-t.xmin,t.ymax-t.ymin)/8:0}function b(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}function C(t,e,i){t.xmin=Math.min(t.xmin,e),t.ymin=Math.min(t.ymin,i),t.xmax=Math.max(t.xmax,e),t.ymax=Math.max(t.ymax,i)}function v(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,e);i.startPath();for(let s of t)i.pushXY(s.x,e*s.y);return i.reset(),i}function w(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,e);i.startPath();for(let s of function(t){if(!t.length)return t;let e=t[0],i=t[t.length-1];return e.x===i.x&&e.y===i.y?t:[...t,e]}(t))i.pushXY(s.x,e*s.y);return i.reset(),i}const S=32;function I(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin);return k(Math.atan2((e.y-s)/r,(e.x-i)/n))}function z(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin);return{x:i+n*Math.cos(e),y:s+r*Math.sin(e)}}function k(t){let e=t%(2*Math.PI);return e<0?e+2*Math.PI:e}function A(t,e,i,s,n,r,h){if(2===n)return T(t,e,i,s,r,h);let a=t.xmax-t.xmin,l=t.ymax-t.ymin,o=t.xmin+a/2,u=t.ymin+l/2,c=-1;if(i.x>=t.xmin&&i.x<=t.xmax?i.y<=t.ymin?c=i.x<=o?7:6:i.y>=t.ymax&&(c=i.x<=o?2:3):c=i.x<t.xmin?i.y<=u?0:1:i.y<=u?5:4,c<0)return null;let _=function(t){let e=t.xmax-t.xmin,i=t.ymax-t.ymin;return[{x:t.xmin,y:t.ymin+i/4},{x:t.xmin,y:t.ymax-i/4},{x:t.xmin+e/4,y:t.ymax},{x:t.xmax-e/4,y:t.ymax},{x:t.xmax,y:t.ymax-i/4},{x:t.xmax,y:t.ymin+i/4},{x:t.xmax-e/4,y:t.ymin},{x:t.xmin+e/4,y:t.ymin}]}(t)[c];if(b(_,i)<r)return null;let p,f,m=M(t,n),d=1===n?a/4-m:a/2,g=1===n?l/4-m:l/2,x=null==h?a/8:Math.min(h/2,Math.max(d,0)),y=null==h?l/8:Math.min(h/2,Math.max(g,0));switch(c){case 0:case 1:p={x:_.x,y:_.y-y},f={x:_.x,y:_.y+y};break;case 2:case 3:p={x:_.x-x,y:_.y},f={x:_.x+x,y:_.y};break;case 4:case 5:p={x:_.x,y:_.y+y},f={x:_.x,y:_.y-y};break;default:p={x:_.x+x,y:_.y},f={x:_.x-x,y:_.y}}return{index:c,points:[p,s,f]}}function T(t,e,i,s,h,a){let l={x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)},o=i.x-l.x,u=i.y-l.y,c=Math.hypot(o,u);if(0===c)return null;let _={x:o/c,y:u/c};if(b(n(t,_),i)<h)return null;let p={x:-_.y,y:_.x},f=b(l,n(t,p)),m=Math.min(e.xmax-e.xmin,e.ymax-e.ymin)/8,d=Math.min(null==a?m:a/2,f),g={x:l.x-p.x*d,y:l.y-p.y*d};return{index:-1,points:[r(t,i,{x:l.x+p.x*d,y:l.y+p.y*d}),s,r(t,i,g)]}}function E(t,e,i,s,n,r){for(let h=1;h<=4;h++){let a=n+(r-n)*h/4;t.push({x:e+s*Math.cos(a),y:i+s*Math.sin(a)})}}function G(t,e){let[i,,s]=e.points;for(let n=0;n<t.length-1;n++)if(O(i,t[n],t[n+1])&&O(s,t[n],t[n+1]))return void t.splice(n+1,0,...e.points)}function O(t,e,i){let s=1e-9,n=(t.x-e.x)*(i.y-e.y)-(t.y-e.y)*(i.x-e.x);return!(Math.abs(n)>s)&&t.x>=Math.min(e.x,i.x)-s&&t.x<=Math.max(e.x,i.x)+s&&t.y>=Math.min(e.y,i.y)-s&&t.y<=Math.max(e.y,i.y)+s}function N(t,e,i,s,n,r,h){if(0===i&&!r)return[c(t,e,s),e];let a=L(t,e,i,s,h),l=f(a,e,i);switch(i){case 1:default:return[l,e];case 2:return[l,F(l,a.onLeft,n),e];case 3:{let t=F(l,a.onLeft,n),i=b(a.start,e)<b(a.end,e)?a.start:a.end;return[l,t,{x:t.x,y:i.y},e]}case 4:return[{x:a.onLeft?t.xmax:t.xmin,y:l.y},l,e];case 5:case 6:return function(t,e,i){let s=b(t,e);if(0===s)return[t];let n=.75*s,r=R(t,e),h=Math.sqrt(n*n-.25*s*s),a=-(e.y-t.y)/s,l=(e.x-t.x)/s,o=i?-1:1,u=r.x+o*h*a,c=r.y+o*h*l,_=Math.atan2(t.y-c,t.x-u),p=Math.atan2(e.y-c,e.x-u)-_;i&&p>0?p-=2*Math.PI:!i&&p<0&&(p+=2*Math.PI);let f=[t];for(let t=1;t<=12;t++){let e=_+p*t/12;f.push({x:u+n*Math.cos(e),y:c+n*Math.sin(e)})}return f[12]=e,f}(l,e,5===i)}}function L(t,e,i,s,n){let r=e.x<=.5*(n.xmin+n.xmax);3===i&&(r=!r);let h=r?t.xmin-s:t.xmax+s;return{start:{x:h,y:t.ymin},end:{x:h,y:t.ymax},onLeft:r}}function R(t,e){return{x:.5*(t.x+e.x),y:.5*(t.y+e.y)}}function F(t,e,i){return{x:t.x+(e?-i:i),y:t.y}}},35521(t,e,i){var s=i(28076);s.D.CIMSolidStroke.capstyle,s.D.CIMSolidStroke.joinstyle,s.D.CIMSolidStroke.miterlimit},75585(t,e,i){function s(t){let e="normal",i="normal";if(t){let s=t.toLowerCase();s.includes("italic")?e="italic":s.includes("oblique")&&(e="oblique"),s.includes("bold")?i="bold":s.includes("light")&&(i="lighter")}return{style:e,weight:i}}i.d(e,{_:()=>s})},69754(t,e,i){i.d(e,{Z:()=>o,q:()=>l});var s=i(68197),n=i(75585);const r=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,h=/&(amp|lt|gt|quot|apos);/g,a=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|UND|_UND|FNT|CHR)\b/i;function l(t){return a.test(t)}function o(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;let e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),i=[],s=[],n=u(e),r="",h=!1,a=t.textString,l=()=>{if(!r)return;let t=c(r);if(!t)return void(r="");let e=s[s.length-1];e&&function(t,e){return t.fontSize===e.fontSize&&t.characterSpacing===e.characterSpacing&&t.font.family===e.font.family&&t.font.style===e.font.style&&t.font.weight===e.font.weight&&t.font.decoration===e.font.decoration&&function(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}(t.color,e.color)}(e,n)?e.text+=t:s.push({text:t,font:{...n.font},fontSize:n.fontSize,characterSpacing:n.characterSpacing,color:n.color}),r=""},o=0;for(;o<a.length;){let t=a[o];if("<"!==t){r+=t,o++;continue}let e=a.indexOf(">",o+1);if(-1===e)return null;let s=_(a.slice(o+1,e));if(!s)return null;if(h=!0,l(),s.isEnd){let t=i.pop();if(!t||t.name!==s.name)return null;n=t.previous}else{let t=u(n);n=p(n,s),i.push({name:s.name,previous:t})}o=e+1}return i.length?null:(l(),h?s.filter(t=>t.text.length>0):null)}function u(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function c(t){return t.replaceAll(h,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function _(t){let e=t.trim();if(!e)return null;let i=e.startsWith("/"),s=i?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(s);if(!n)return null;let h,a=n[1],l=s.slice(a.length),o={};for(r.lastIndex=0;h=r.exec(l);)o[h[1]]=h[3];return{isEnd:i,name:a,attributes:o}}function p(t,e){let i=u(t);switch(e.name.toUpperCase()){case"BOL":i.font.weight="bold";break;case"_BOL":i.font.weight="normal";break;case"ITA":i.font.style="italic";break;case"_ITA":i.font.style="normal";break;case"UND":i.font.decoration="underline";break;case"_UND":i.font.decoration="none";break;case"FNT":!function(t,e){let{name:i,style:s,size:r,scale:h,wght:a,ital:l}=e;if(i&&(t.font.family=i),s){let e=(0,n._)(s);t.font.style=e.style,t.font.weight=e.weight}if(a){let e=Number(a);t.font.weight=e>=600?"bold":"normal"}if(l){let e=Number(l);isNaN(e)||(t.font.style=0===e?"normal":"italic")}if(r){let e=Number(r);!isNaN(e)&&e>0&&(t.fontSize=e)}if(h){let e=Number(h);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(i,e.attributes);break;case"CLR":i.color=function(t){if(t.hex){let e=s.A.fromHex(t.hex)?.toArray();if(e){let i="alpha"in t?d(t.alpha):e[3];return[e[0],e[1],e[2],i]}}if("red"in t||"green"in t||"blue"in t)return[f(t.red),f(t.green),f(t.blue),d(t.alpha)];let e=m(t.cyan),i=m(t.magenta),n=m(t.yellow),r=m(t.black),h=d(t.alpha),a=m(t.tint,100)/100,l=1-r;return[Math.round(255*(1-e)*l*a),Math.round(255*(1-i)*l*a),Math.round(255*(1-n)*l*a),h]}(e.attributes);break;case"CHR":!function(t,e){let i=Number(e.spacing);!isNaN(i)&&i>=0&&(t.characterSpacing=i/100)}(i,e.attributes)}return i}function f(t){let e=Number(t);return function(t){return Math.max(0,Math.min(255,Math.round(t)))}(isNaN(e)?0:e)}function m(t,e=0){let i=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(i)?e:i)/100)}function d(t){return Math.round(255*m(t,100))}},37615(t,e,i){i.d(e,{A:()=>h});var s=i(49186),n=i(53966),r=i(62577);function h(t,e,i,s,r,h){if(null==t)return null;let a=t.references("geometry")&&h?l(e,s,h):e,o=t.repurposeFeature(a,r);try{return t.evaluate(o,i)}catch(t){return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",t),null}}const a=new Map;function l(t,e,i){let{transform:h,hasZ:l,hasM:o}=i;a.has(e)||a.set(e,function(t){let e={};switch(t){case"esriGeometryPoint":return(t,i,s,n)=>(0,r.Tr)(i,e,t,s,n);case"esriGeometryPolygon":return(t,i,s,n)=>(0,r.$X)(i,e,t,s,n);case"esriGeometryPolyline":return(t,i,s,n)=>(0,r.P5)(i,e,t,s,n);case"esriGeometryMultipoint":return(t,i,s,n)=>(0,r.SW)(i,e,t,s,n);default:return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").error(new s.A("mapview-arcade",`Unable to handle geometryType: ${t}`)),t=>t}}(e));let u=a.get(e)(t.geometry,h,l,o);return{...t,geometry:u}}},18989(t,e,i){i.d(e,{A:()=>s});class s{constructor(t=0,e=0,i=0,s=0){this.x=t,this.y=e,this.width=i,this.height=s}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)}}},63933(t,e,i){function s(t){if(!t)return 0;switch(t){case"Left":case"left":return-1;case"Right":case"right":return 1;case"justify":case"Justify":return 2;case"Center":case"center":return 0}}function n(t){if(!t)return 0;switch(t){case"Top":case"top":return 1;case"Center":case"middle":return 0;case"Baseline":case"baseline":return 2;case"Bottom":case"bottom":return-1}}function r(t){switch(t){case 1:case"right":return-1;case 2:case"justify":return 1;case 0:case"center":return 0;case-1:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function h(t){switch(t){case 1:case"top":return 1;case 0:case"middle":return 0;case-1:case 2:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}i.d(e,{Dy:()=>h,UD:()=>n,iT:()=>r,xy:()=>s})},15660(t,e,i){i.d(e,{A:()=>n});var s=i(88340);class n{constructor(t,e,i,n){this.transformedX=0,this.transformedY=0,this.center=(0,s.fA)(t,e),this.centerT=(0,s.vt)(),this.halfWidth=i/2,this.halfHeight=n/2,this.width=i,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){let i=Math.abs(t.centerT[0]-this.centerT[0]),s=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/i,r=(t.halfHeight+this.halfHeight+e)/s;return Math.log2(Math.min(n,r))}extend(t){let e=Math.min(this.xmin,t.xmin),i=Math.min(this.ymin,t.ymin),s=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-i,r=e+s/2,h=i+n/2;this.width=s,this.height=n,this.halfWidth=s/2,this.halfHeight=n/2,this.x=r,this.y=h}static deserialize(t){let e=t.readF32(),i=t.readF32(),s=t.readInt32(),r=t.readInt32();return new n(e,i,s,r)}}},75434(t,e,i){i.d(e,{HB:()=>v,tA:()=>C});var s=i(90629),n=i(16905),r=i(85560),h=i(37585),a=i(88340),l=i(63933),o=i(18989),u=i(15660);const c=Math.PI/180;class _{static fromGlyph(t,e,i,s,n){let{mosaicItem:r,rect:h,shaping:a,code:l}=i,o=r.rect;return new _({width:0===l?h.width:o.width*s,height:0===l?h.height:o.height*s,x:s*(t+a.xOffset+h.left),y:s*(e+a.yOffset-h.top),textureBinding:r.textureBinding,texcoords:{topLeft:[o.x,o.y],topRight:[o.x+o.width,o.y],bottomLeft:[o.x,o.y+o.height],bottomRight:[o.x+o.width,o.y+o.height]},fontSize:n?.fontSize,color:n?.color})}constructor(t){this._rotationT=(0,r.vt)(),this._transform=(0,r.vt)(),this._angle=0,this._bounds=null,this.width=t.width,this.height=t.height,this.x=t.x,this.y=t.y,this.textureBinding=t.textureBinding,this.texcoords=t.texcoords,this.fontSize=t.fontSize,this.color=t.color}set angle(t){this._angle=t,(0,n.$0)(this._rotationT,-t),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){let{x:t,y:e,width:i,height:s}=this,a=(0,n.$0)((0,r.vt)(),-this.angle),l=(0,n.lw)((0,r.vt)(),a,this._transform);this._offsets={topLeft:(0,h.l0)([0,0],[t,e],l),topRight:(0,h.l0)([0,0],[t+i,e],l),bottomLeft:(0,h.l0)([0,0],[t,e+s],l),bottomRight:(0,h.l0)([0,0],[t+i,e+s],l)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){let t=this.offsets,e=1/0,i=1/0,s=-1/0,n=-1/0;for(let[r,h]of[t.topLeft,t.topRight,t.bottomLeft,t.bottomRight])e=Math.min(e,r),i=Math.min(i,h),s=Math.max(s,r),n=Math.max(n,h);let r=s-e,h=n-i,a=e+r/2,l=i+h/2;this._bounds=new u.A(a,l,r,h)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}}const p=(t,e)=>({code:0,mosaicItem:{rect:new o.A(0,0,11,8),sdf:!0,page:0,textureBinding:e},rect:{height:4,width:t,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function f(t){return"underline"===t?(0,s.Lz)(2):0}function m(t,e,i,s,n){switch(t){case"underline":return(i??n?.baseline??22)+4+f(t)/e;case"line-through":return s??n?.midline??16;default:return 0}}function d(t,e){return t.forEach(t=>(0,h.l0)(t,t,e)),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class g{constructor(t,e,i,s){this._rotation=0,this._decorate(t,e,i,s),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==i.angle,this._transform=this._createGlyphTransform(this.bounds,i),this._borderLineSizePx=i.borderLineSizePx,(i.borderLineSizePx||i.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(let e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;let e=this._transform,i=(0,n.$0)((0,r.vt)(),t);(0,n.lw)(e,i,e);for(let t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,i,s){if(!i.decoration||"none"===i.decoration||!t.length)return;let n=i.scale,r=t[0].textureBinding;for(let h of e){let e=h.scale??n,a=m(i.decoration,e,h.baseline,h.midline,s),l=h.startX*e,o=h.startY*e,u=(h.width+h.glyphWidthEnd)*e;t.push(_.fromGlyph(l,o+a*e,p(u,r),1))}}shapeBackground(t){let e=(1.5+(this._borderLineSizePx||0))/2,i=this._borderLineSizePx?e:0,{xmin:s,ymin:n,xmax:r,ymax:h,x:a,y:l,width:o,height:c}=this.bounds,_=[s-8,n-8],p=[r+8,n-8],f=[s-8,h+8],m=[r+8,h+8],g=d([[_[0]-e,_[1]-e],[p[0]+e,p[1]-e],[_[0]+i,_[1]+i],[p[0]-i,p[1]+i]],t),x=d([[f[0]+i,f[1]-i],[m[0]-i,m[1]-i],[f[0]-e,f[1]+e],[m[0]+e,m[1]+e]],t),y=d([[_[0]-e,_[1]-e],[_[0]+i,_[1]+i],[f[0]-e,f[1]+e],[f[0]+i,f[1]-i]],t),P=d([[p[0]-i,p[1]+i],[p[0]+e,p[1]-e],[m[0]-i,m[1]-i],[m[0]+e,m[1]+e]],t),M={main:d([_,p,f,m],t),top:g,bot:x,left:y,right:P};return[new u.A(a,l,o+2*e,c+2*e),M]}get boundsT(){let t=this.bounds,e=(0,h.hZ)((0,a.vt)(),t.x,t.y);if((0,h.l0)(e,e,this._transform),this._hasRotation){let i=Math.max(t.width,t.height);return new u.A(e[0],e[1],i,i)}return new u.A(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,i=1/0,s=0,n=0;for(let r of t)e=Math.min(e,r.offsets.topLeft[0]),i=Math.min(i,r.offsets.topLeft[1]),s=Math.max(s,r.offsets.bottomRight[0]),n=Math.max(n,r.offsets.bottomRight[1]);let r=s-e,h=n-i,a=e+r/2,l=i+h/2;return new u.A(a,l,r,h)}_createGlyphTransform(t,e){let i=c*e.angle,s=(0,r.vt)(),l=(0,a.vt)();return(0,n.Tl)(s,s,(0,h.hZ)(l,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,n.e$)(s,s,i):((0,n.Tl)(s,s,(0,h.hZ)(l,t.x,t.y)),(0,n.e$)(s,s,i),(0,n.Tl)(s,s,(0,h.hZ)(l,-t.x,-t.y))),s}}class x{constructor(t,e,i,s,n,r){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,i)),this.end=Math.max(0,Math.max(e,i)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].rect.width),this.width=s,this.yMin=n,this.yMax=r}}const y=t=>10===t,P=t=>32===t;function M(t,e,i){let s=[],n=1/i.scale,r=i.maxLineWidth*n,h=e?t.length-1:0,a=e?-1:t.length,l=e?-1:1,o=h,u=0,c=0,_=o,p=_,f=0,m=1/0,d=0;for(;o!==a;){let{code:e,rect:i,shaping:n}=t[o],a=Math.abs(i.top);if(!y(e)&&!P(e)&&(m=Math.min(m,a),d=Math.max(d,a+i.height)),y(e))o!==h&&(s.push(new x(t,_,o-l,u,m===1/0?0:m,d)),m=1/0,d=0),u=0,_=o+l,p=o+l,c=0;else if(P(e))p=o+l,c=0,f=n.xAdvance,u+=n.xAdvance;else if(u>r){if(p!==_){let e=p-2*l;u-=f,s.push(new x(t,_,e,u-c,m,d)),m=1/0,d=0,_=p,u=c}else s.push(new x(t,_,o-l,u,m,d)),m=1/0,d=0,_=o,p=o,u=0;u+=n.xAdvance,c+=n.xAdvance}else u+=n.xAdvance,c+=n.xAdvance;o+=l}let g=new x(t,_,o-l,u,m,d);return g.start>=0&&g.end<t.length&&s.push(g),s}function b(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].code)&&!y(t[n+1].code)&&s++;return s}function C(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,s=[],n=t.sdfPadding,{faceInfo:r,glyphs:h,isRightToLeft:a}=t,o="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,u=M(h,a,e),c=u.length?function(t,e){let i=0;for(let e=0;e<t.length;e++){let{width:s}=t[e];i=Math.max(s,i)}let s="underline"===e.decoration?4:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+s-n,width:i}}(u,e):{y:0,height:0,width:0},p=o?a?1:-1:(0,l.xy)(e.horizontalAlignment),f=(0,l.UD)(e.verticalAlignment),m=+(2===f),d=m?0:f-1,x=r?.baseline??22,C=u.length>1,v=m?C?-c.y-c.height:-x:-c.y+d*(c.height/2);for(let r=0;r<u.length;r++){let{start:a,end:l,width:f}=u[r],m=o&&r<u.length-1?b(h,a,l):0,d=m>0?(c.width-f)/m:0,g=-1*(p+1)*((d>0?c.width:f)/2)-n,x=(t.isRightToLeft?u.length-1-r:r)*e.lineHeight+v-n;u[r].startX=g,u[r].startY=x;for(let t=a;t<=l;t++){let e=h[t];if(y(e.code))continue;let n=_.fromGlyph(g,x,e,i);g+=e.shaping.xAdvance,d>0&&P(e.code)&&(g+=d),s.push(n)}}return new g(s,u,e,r)}(t,e):function(t,e){let i=w(t,e),s=function(t,e){let i=[],s=e.maxLineWidth,n=0,r=0,h=0,a=0,l=0,o=0;for(;n<t.length;){let e=t[n],{glyph:u}=e;if(y(u.code))0!==n&&i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),r=0,a=n+1,l=a,h=0,o=0;else if(P(u.code))l=n+1,h=0,o=e.xAdvance,r+=e.xAdvance;else if(r>s){if(l!==a){let e=l-2;r-=o,i.push({width:r-h,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=l,r=h}else i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=n,l=n,r=0;r+=e.xAdvance,h+=e.xAdvance}else r+=e.xAdvance,h+=e.xAdvance;n++}if(a<t.length){let e=t.length-1;i.push({width:r,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1})}return function(t,e){for(let i=0;i<e.length;i++){let s=e[i],n=0,r=1/0,h=0,a=0;for(let e=s.start;e<=s.end;e++){let i=t[e];"underline"===i.decoration&&(a=Math.max(a,i.underlineOffset)),!y(i.glyph.code)&&!P(i.glyph.code)&&(n=Math.max(n,i.baseline),h=Math.max(h,i.lineHeight))}let l=1/0,o=-1/0;for(let e=s.start;e<=s.end;e++){let i=t[e];y(i.glyph.code)||P(i.glyph.code)||(l=Math.min(l,n-i.baseline+i.top),o=Math.max(o,n-i.baseline+i.bottom),r=Math.min(r,n-i.baseline+i.midline))}a>0&&(o=Math.max(o,n+a)),s.baseline=n,s.midline=r===1/0?n:r,s.lineHeight=Math.max(h,o),s.yMin=l===1/0?0:l,s.yMax=o===-1/0?0:o,s.startY=i>0?e[i-1].startY+e[i-1].lineHeight:0}return e}(t,i)}(i,e),n=s.length?function(t){let e=0;for(let i of t)e=Math.max(i.width+i.glyphWidthEnd,e);let i=t[0].yMin;return{x:0,y:i,height:S(t[t.length-1])-i,width:e}}(s):{width:0},r=[],h="underline"===e.decoration?"none":e.decoration,a="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,o=a?-1:(0,l.xy)(e.horizontalAlignment),u=(0,l.UD)(e.verticalAlignment),c=2===u,p=s.length?s[0].yMin:0,f=s.length?S(s[s.length-1]):0,m=f-p,d=c?s.length>1?-f:-(s[0]?.baseline??0):1===u?-p:-1===u?-f:-(p+m/2);for(let t=0;t<s.length;t++){let e=s[t],h=a&&t<s.length-1?I(i,e.start,e.end):0,l=h>0?(n.width-e.width)/h:0,u=-1*(o+1)*((l>0?n.width:e.width)/2),c=e.startY+d,p=null;e.startX=u,e.startY=c;for(let t=e.start;t<=e.end;t++){let s=i[t],{glyph:n,scale:h,fontSize:a}=s,o=u;if(y(n.code)){p=z(r,p,c,e.baseline);continue}"underline"===s.decoration?(p&&p.underlineOffset!==s.underlineOffset||p&&!k(p.color,s.color))&&(p=z(r,p,c,e.baseline)):p=z(r,p,c,e.baseline);let f=c+e.baseline-s.baseline;r.push(_.fromGlyph(u/h,f/h,n,h,{fontSize:a,color:s.color})),u+=s.xAdvance,"underline"===s.decoration&&(p??={startX:o,endX:u,glyphWidthEnd:n.rect.width*h,textureBinding:n.mosaicItem.textureBinding,underlineOffset:s.underlineOffset,color:s.color},p.endX=u,p.glyphWidthEnd=n.rect.width*h,p.textureBinding=p.textureBinding??n.mosaicItem.textureBinding),l>0&&P(n.code)&&(u+=l,p&&(p.endX=u))}z(r,p,c,e.baseline)}return new g(r,s,{...e,decoration:h})}(t,e)}function v(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,{faceInfo:s,glyphs:n}=t,r=n.reduce((t,e)=>Math.max(t,e.rect.height),0),h=n.filter(t=>!y(t.code)&&t.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.rect.width/2,-r,t,i));return new g(h,[],e,s)}(t,e):function(t,e){let i=w(t,e),s=i.reduce((t,e)=>Math.max(t,e.glyph.rect.height*e.scale),0),n=i.filter(t=>!y(t.glyph.code)&&t.glyph.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.glyph.rect.width/2,-s/t.scale,t.glyph,t.scale,{fontSize:t.fontSize,color:t.color}));return new g(n,[],e)}(t,e)}function w(t,e){let i=e.lineHeightRatio??1,n=[];for(let e of t.runs){let t=(0,s.Lz)(e.fontSize),r=t/e.glyphs.sdfSize,h=29/24*t*i,a=(e.glyphs.faceInfo?.baseline??22)*r,l=(e.glyphs.faceInfo?.midline??16)*r,o=4*r+f(e.decoration),u=1+(e.characterSpacing??0);for(let i of e.glyphs.glyphs){let s=i.shaping.xAdvance*r,c=Math.abs(i.rect.top)*r,_=c+i.rect.height*r;n.push({glyph:i,scale:r,fontSize:t,decoration:e.decoration,underlineOffset:o,color:e.color,xAdvance:y(i.code)||P(i.code)?s:s*u,top:c,bottom:_,lineHeight:h,baseline:a,midline:l})}}return n}function S(t){return t.startY+t.lineHeight}function I(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].glyph.code)&&!y(t[n+1].glyph.code)&&s++;return s}function z(t,e,i,s){return e&&t.push(_.fromGlyph(e.startX,i+s+e.underlineOffset,p(e.endX-e.startX+e.glyphWidthEnd,e.textureBinding),1,{color:e.color})),null}function k(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}},69221(t,e,i){i.d(e,{Lu:()=>r,hV:()=>n});var s=i(90629);function n(t){return(0,s.PN)(Math.round((0,s.Lz)(t)))}function r(t){let e=(0,s.PN)(32),i=(0,s.PN)(5e3);return Math.max(e,Math.min(t||i,i))}i(39829)},86235(t,e,i){i.d(e,{HZ:()=>r});var s=i(36745),n=i(14057);class r{static{this.instance=null}static local(){return null===r.instance&&(r.instance=new r),r.instance}execute(t,e,i){return new h(t,e,i)}}class h{constructor(t,e,i){this._cursor=t,this._effect=e,this._context=i}next(){let t=this._cursor.next();if(t&&t.totalSize>0){let e=t.asJSON(),i=l[this._effect.part](e,{...this._effect,target:this._context.target,scaleFactor:this._context.scaleFactor,matcher:this._context.matcher,tileKey:this._context.tileKey,geomUnitsPerPoint:this._context.geomUnitsPerPoint});return i?s.z.fromJSONCIM(i):null}return null}}function a(t,e){let i=e.matcher,s=e.target.getObjectId(),r=(0,n.$)(e.tileKey,s),h=i.getAnalyzedGraphic(r);return h?(h.evaluateWithGeometry(t,e.geomUnitsPerPoint*e.scaleFactor),h):null}const l={textPoint:function(t,e){let i=a(t,e);return i&&i.textPoint?{x:i.textPoint[0],y:i.textPoint[1],spatialReference:t.spatialReference}:t},beginDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[0],n=s[1][0],r=s[1][1],h=s[0][0],l=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},endDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[1],n=s[1][0],r=s[1][1],h=s[0][0],l=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},beginExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[0],n=s[0][0],r=s[0][1],h=s[1][0],l=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},endExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[1],n=s[0][0],r=s[0][1],h=s[1][0],l=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}}};i.d(e,["Bd",0,"beginMarker","Cr",0,"beginExtensionLine","FF",0,"endMarker","Fn",0,"beginDimensionLine","NR",0,"textPoint","tz",0,"endDimensionLine","w0",0,"endExtensionLine"])},14057(t,e,i){function s(t,e){return`${t}_${e}`}i.d(e,{$:()=>s})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4690],{19334(t,e,i){i.d(e,{e:()=>h});var s=i(54639),n=i(14112);class r{constructor(t){this._geometry=t}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(t){return this._geometry}toGxGeometry(t){return t.fromAccessorGeometry(this._geometry)}}function h(t){if(null==t)return null;switch(t.type){case"point":if((0,n.e6)(t))return null;break;case"polygon":if((0,n.Wq)(t))return null;break;case"polyline":if((0,n.IY)(t))return null;break;case"multipoint":if((0,n.DG)(t))return null;break;case"extent":if((0,n.As)(t))return null;break;default:return null}let e=s.R.of(t.type,t.spatialReference,t.hasZ,t.hasM,new r(t));return e.asAccessorGeometry(),e}},36983(t,e,i){i.d(e,{R:()=>o,p:()=>u});var s=i(54639),n=i(14112),r=i(16930),h=i(60408),a=i(65864);class l{constructor(t){this._geometry=t}toJsonGeometry(){return this._geometry}toAccessorGeometry(t){let e=(0,a.rS)(this._geometry);return e.spatialReference=t,e}toGxGeometry(t){return t.fromJsonGeometry(this._geometry)}}function o(t,e){if("object"!=typeof t||!t)return null;let i=e;if("spatialReference"in t&&(t.spatialReference instanceof r.A?i=t.spatialReference:"object"==typeof t.spatialReference&&null!=t.spatialReference&&(i=new r.A,i.read(t.spatialReference))),null==i)throw Error("Spatial reference required");return(0,h.fT)(t)?u("point",t,i):(0,h.Rg)(t)?u("polyline",t,i):(0,h.Bi)(t)?u("polygon",t,i):(0,h.U9)(t)?u("multipoint",t,i):(0,h.ZC)(t)?u("extent",t,i):null}function u(t,e,i){if(null==e)return null;let r=!1,h=!1;switch(t){case"point":if((0,n.e6)(e))return null;r=void 0!==e.z,h=void 0!==e.m;break;case"polygon":if((0,n.Wq)(e))return null;r=!0===e.hasZ,h=!0===e.hasM;break;case"polyline":if((0,n.IY)(e))return null;r=!0===e.hasZ,h=!0===e.hasM;break;case"multipoint":if((0,n.DG)(e))return null;r=!0===e.hasZ,h=!0===e.hasM;break;case"extent":if((0,n.As)(e))return null;r=null!=e.zmin&&null!=e.zmax,h=null!=e.mmin&&null!=e.mmax;break;default:throw Error("Unsupported geometry type: "+e.type)}return s.R.of(t,i,r,h,new l(e))}},14112(t,e,i){function s(t){return"NaN"===t.x||null===t.x||isNaN(t.x)}function n(t){if(0===(t.curveRings??t.rings).length)return!0;for(let e of t.curveRings??t.rings)if(e.length>0)return!1;return!0}function r(t){if(0===(t.curvePaths??t.paths).length)return!0;for(let e of t.curvePaths??t.paths)if(e.length>0)return!1;return!0}function h(t){return 0===t.points.length}function a(t){return"NaN"===t.xmin||null===t.xmin||isNaN(t.xmin)}i.d(e,{As:()=>a,DG:()=>h,IY:()=>r,Wq:()=>n,e6:()=>s})},57582(t,e,i){i.d(e,{af:()=>n,rK:()=>r}),i(92602);const s="arial-unicode-ms";function n(t){if(!t)return s;let e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}function r(t){let e=function(t){if(!t.weight)return"";switch(t.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(t)+function(t){if(!t.style)return"";switch(t.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(t);return n(t.family)+(e.length>0?e:"-regular")}new Map,new Set,i.d(e,["Vb",0,s])},85560(t,e,i){function s(){let t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,i,s){let n=e[s],r=e[s+1];t[s]=i[0]*n+i[2]*r+i[4],t[s+1]=i[1]*n+i[3]*r+i[5]}i.d(e,{vt:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){let 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:s,fromValues:function(t,e,i,s,n,r){let h=new Float32Array(6);return h[0]=t,h[1]=e,h[2]=i,h[3]=s,h[4]=n,h[5]=r,h},transform:n,transformMany:function(t,e,i,s=0,r=0,h=2){let a=r||e.length/h;for(let r=s;r<a;r++)n(t,e,i,r*h)}},Symbol.toStringTag,{value:"Module"}))},88340(t,e,i){function s(){return new Float32Array(2)}function n(t,e){let i=new Float32Array(2);return i[0]=t,i[1]=e,i}function r(){return s()}function h(){return n(1,1)}function a(){return n(1,0)}function l(){return n(0,1)}i.d(e,{fA:()=>n,vt:()=>s});const o=r(),u=h(),c=a(),_=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:_,ZEROS:o,clone:function(t){let e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:s,fromValues:n,ones:h,unitX:a,unitY:l,zeros:r},Symbol.toStringTag,{value:"Module"})),i.d(e,["Un",0,u,"uY",0,o])},16905(t,e,i){i.d(e,{$0:()=>o,B8:()=>r,D_:()=>n,Tl:()=>l,e$:()=>a,lw:()=>h});var s=i(34304);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){let i=e[0],s=e[1],n=e[2],r=e[3],h=e[4],a=e[5],l=i*r-s*n;return l?(l=1/l,t[0]=r*l,t[1]=-s*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*a-r*h)*l,t[5]=(s*h-i*a)*l,t):null}function h(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1],c=i[2],_=i[3],p=i[4],f=i[5];return t[0]=s*o+r*u,t[1]=n*o+h*u,t[2]=s*c+r*_,t[3]=n*c+h*_,t[4]=s*p+r*f+a,t[5]=n*p+h*f+l,t}function a(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=Math.sin(i),u=Math.cos(i);return t[0]=s*u+r*o,t[1]=n*u+h*o,t[2]=s*-o+r*u,t[3]=n*-o+h*u,t[4]=a,t[5]=l,t}function l(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1];return t[0]=s,t[1]=n,t[2]=r,t[3]=h,t[4]=s*o+r*u+a,t[5]=n*o+h*u+l,t}function o(t,e){let i=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=i,t[2]=-i,t[3]=s,t[4]=0,t[5]=0,t}function u(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t}const c=h,_=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[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){let i=t[0],n=t[1],r=t[2],h=t[3],a=t[4],l=t[5],o=e[0],u=e[1],c=e[2],_=e[3],p=e[4],f=e[5],m=(0,s.FD)();return Math.abs(i-o)<=m*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-u)<=m*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-c)<=m*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(h-_)<=m*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(a-p)<=m*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(l-f)<=m*Math.max(1,Math.abs(l),Math.abs(f))},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:o,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:r,mul:c,multiply:h,multiplyScalar:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t},multiplyScalarAndAdd:function(t,e,i,s){return t[0]=e[0]+i[0]*s,t[1]=e[1]+i[1]*s,t[2]=e[2]+i[2]*s,t[3]=e[3]+i[3]*s,t[4]=e[4]+i[4]*s,t[5]=e[5]+i[5]*s,t},rotate:a,scale:function(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1];return t[0]=s*o,t[1]=n*o,t[2]=r*u,t[3]=h*u,t[4]=a,t[5]=l,t},set:function(t,e,i,s,n,r,h){return t[0]=e,t[1]=i,t[2]=s,t[3]=n,t[4]=r,t[5]=h,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:_,subtract:u,translate:l},Symbol.toStringTag,{value:"Module"}))},36745(t,e,i){i.d(e,{z:()=>a});var s=i(4718),n=i(51118),r=i(60408),h=i(92722);class a{static fromOptimized(t,e,i=1){return(new l).initialize(t,e,i)}static fromJSON(t){let[e,i]=u(t),s=(0,r.Pv)(t),n=(0,r.W0)(t);return(new c).initialize(e,i,s,n,1)}static fromOptimizedCIM(t,e,i=1){return(new _).initialize(t,e,i)}static fromJSONCIM(t,e=1){let[i,s]=u(t),n=(0,r.Pv)(t),h=(0,r.W0)(t);return(new p).initialize(i,s,n,h,e)}static fromFeatureSetReader(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimized(e,i):null}static fromFeatureSetReaderCIM(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimizedCIM(e,i):null}static createEmptyOptimized(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSON(t,e=!1,i=!1){return(new c).initialize([],t,e,i,1)}static createEmptyOptimizedCIM(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSONCIM(t,e=!1,i=!1,s=1){return(new p).initialize([],t,e,i,s)}asJSON(){let t=(0,n.x)(this),{hasZ:e,hasM:i}=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(),hasZ:e,hasM:i}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:i?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:i}:{paths:t,hasZ:e,hasM:i}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,i=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;let s=t,n=e;for(;this.nextPoint();)i+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return i+=(t-s)*(e+n),-.5*i}invertY(){this.yFactor*=-1}}class l extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,i){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=i,this}reset(){this.initialize(this._geometry,this.geometryType,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){let 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))}getCurrentPath(){let t=this._end,e=this._geometry.coords,i=this._pathOffset;return(new l).initialize(new h.A([this.pathSize],e.slice(i,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){let t=this._end,e=this._stride,i=this._geometry.coords,s=0;for(let n=this._pathOffset+e;n<t;n+=e){let t=i[n-e],r=i[n-e+1],h=i[n]-t,a=i[n+1]-r;s+=Math.sqrt(h*h+a*a)}return s}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(let 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){let e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){let 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(){let t=this._geometry.coords,e=this._pathOffset,i=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[i+s])return!1;return!0}clone(){return(new l).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){let{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1: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(){let 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 o(t){let e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function u(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[o(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends a{initialize(t,e,i,s,n){return this._paths=t,this.geometryType=e,this.hasZ=i,this.hasM=s,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(){let t=this._currentPath.length,e=this._currentPath,i=0;for(let s=1;s<t;s++){let t=e[s-1],n=e[s],r=t[0],h=t[1],a=n[0]-r,l=n[1]-h;i+=Math.sqrt(a*a+l*l)}return i}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}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){let e=(0,n.x)(t);for(let t of e)this.pushPath(t)}asOptimized(){let{hasZ:t,hasM:e}=this,i=new h.A([],[],t,e),{coords:s,lengths:n}=i;if("esriGeometryPoint"===this.geometryType)s.push(...this._paths[0][0]),n.length=0;else for(let i of this._paths){for(let n of i)s.push(n[0]),s.push(n[1]*this.yFactor),t&&s.push(n[2]),e&&s.push(n[this._mIndex]);n.push(i.length)}return i}isClosed(){let t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}clone(){return(new c).initialize((0,s.o8)(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 l{initialize(t,e,i){return super.initialize(t,e,i),this._controlPoints||=this._controlPoints=Array(this.totalSize).fill(void 0).map(t=>new Set),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){let t=(new _).initialize(this._geometry.clone(),this.geometryType,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 p extends c{initialize(t,e,i,s,n){return super.initialize(t,e,i,s,n)}clone(){return(new p).initialize((0,s.o8)(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]}}},78957(t,e,i){i.d(e,{d:()=>u,R:()=>M});class s{constructor(t=n){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;let{_data:e,_compare:i}=this;e.push(t);let s=e.length-1>>>0,n=e[s];for(;s>0;){let t=s-1>>1,r=e[t];if(!(i(r,n)<=0))break;e[t]=n,e[s]=r,s=t}}dequeue(){let{_data:t,_compare:e}=this,i=t[0],s=t.pop();if(0===t.length)return i;t[0]=s;let n,r,h=0,a=t.length,l=t[0],o=null;for(;;){let i=2*h+1,s=2*h+2;if(o=null,i<a&&(n=t[i],e(n,l)>0&&(o=i)),s<a&&(r=t[s],(null===o&&e(r,l)<=0||null!==o&&e(r,n)<=0)&&(o=s)),null===o)break;t[h]=t[o],t[o]=l,h=o}return i}}const n=(t,e)=>t<e?-1:+(t>e);var r=i(19419),h=i(537),a=i(12359),l=i(95108),o=i(12176);function u(t){if(0===t.totalSize)return null;let e=(0,h.z8)(t);if(!e)return null;let i=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19,s=0,n=0;t.reset();for(let e=0;t.nextPath();e++){let i=t.getCurrentRingArea();i>n&&(n=i,s=e)}if(t.seekPath(s),0===t.pathSize)return null;t.seekPathStart();let l=(0,h.B$)(t);if(Math.abs(n)<=2*i*i)return[(l[0]+l[2])/2,(l[1]+l[3])/2];t.seekPathStart();let o=(0,a.w2)(t,(0,r.vt)());if(null===o)return null;if(t.totalPoints<4)return o;let u=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],m=[NaN,NaN,NaN,NaN],d=!1,P=_(o,t,!0);0===P.distance&&(d=!0,u[0][0]=o[0],u[0][1]=o[1],P=_(o,t,!1)),f[0]=P.distance,m[0]=0;let M=[NaN,NaN],b=!1,C=.25,v=-1,w=NaN;do{if(w=NaN,u[1]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[1][0])&&!isNaN(u[1][1])&&(P=_(u[1],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[1],t))b=!0,f[1]=w,m[1]=x(u[1],o);else if(!isNaN(w)&&w>v&&(v=w,M[0]=u[1][0],M[1]=u[1][1]),C-=.01,C<.1){if(!(v>=0))break;b=!0,f[1]=v,u[1][0]=M[0],u[1][1]=M[1],m[1]=x(u[1],o)}}while(!b);b=!1,C=.5,v=-1;let S=.01,I=1;do{if(w=NaN,u[2]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[2][0])&&!isNaN(u[2][1])&&(P=_(u[2],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[2],t))b=!0,f[2]=w,m[2]=x(u[2],o);else if(!isNaN(w)&&w>v)v=w,M[0]=u[2][0],M[1]=u[2][1];else if(w>v&&(v=w,M[0]=u[2][0],M[1]=u[2][1]),C=.5+S*I,S+=.01,I*=-1,C<.3||C>.7){if(!(v>=0))break;b=!0,f[2]=v,u[2][0]=M[0],u[2][1]=M[1],m[2]=x(u[2],o)}}while(!b);b=!1,C=.75,v=-1;do{if(w=NaN,u[3]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[3][0])&&!isNaN(u[3][1])&&(P=_(u[3],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[3],t))b=!0,f[3]=w,m[3]=x(u[3],o);else if(w>v&&(v=w,M[0]=u[3][0],M[1]=u[3][1]),C+=.01,C>.9){if(!(v>=0))break;b=!0,f[3]=v,u[3][0]=M[0],u[3][1]=M[1],m[3]=x(u[3],o)}}while(!b);let z,k=[0,1,2,3],A=+!d;for(let t=A;t<4;t++)for(let t=A;t<3;t++){let e=m[t],i=m[t+1];y(e,i)>0&&(z=k[t],k[t]=k[t+1],k[t+1]=z,m[t]=i,m[t+1]=e)}let T=A,E=0,G=0;for(let t=A;t<4;t++){switch(t){case 0:G=2*f[k[t]];break;case 1:G=1.66666666*f[k[t]];break;case 2:G=1.33333333*f[k[t]];break;case 3:G=f[k[t]]}G>E&&(E=G,T=k[t])}return u[T]}function c(t,e){let i,s,n,r,h=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(i=e.x,s=e.y;e.nextPoint();i=n,s=r)n=e.x,r=e.y,s>t[1]!=r>t[1]&&((n-i)*(t[1]-s)-(r-s)*(t[0]-i)>0?h++:h--);return 0!==h}function _(t,e,i){if(i&&c(t,e))return{coord:t,distance:0};let s=1/0,n=0,r=0,h=[0,0],a=[0,0],o=[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,l.gR)(o,t,h,a);let i=x(t,o);i<s&&(s=i,n=o[0],r=o[1])}return{coord:[n,r],distance:Math.sqrt(s)}}function p(t,e,i,s){let n=[e,0],h=1/0,a=1/0,l=!1,u=!1,c=[[e,s[1]-1],[e,s[3]+1]],_=[0,0],p=[0,0],d=[0,0],g=[[0,0],[0,0]],x=(0,r.vt)();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(x,g)||(p[0]=c[0][0],p[1]=c[0][1],d[0]=c[1][0],d[1]=c[1][1],0===m(x,p,d))||!(0,o.Ql)(c[0],c[1],g[0],g[1],_))continue;let e=_[1];h>a?e<h&&(h=e,l=!0):e<a&&(a=e,u=!0)}return l&&u?n[1]=(h+a)/2:n[0]=n[1]=NaN,n}function f(t,e){if(e.length<2)return null;t||=(0,r.vt)();let[i,s]=e[0],[n,h]=e[1];return t[0]=Math.min(i,n),t[1]=Math.min(s,h),t[2]=Math.max(i,n),t[3]=Math.max(s,h),t}function m(t,e,i){let s=d(e,t),n=d(i,t),r=t[0],h=t[1],a=t[2],l=t[3];if(s&n)return 0;if(!(s|n))return 4;let o=!!s|(n?2:0);do{let o=i[0]-e[0],u=i[1]-e[1];if(o>u)3&s?(1&s?(e[1]+=u*(r-e[0])/o,e[0]=r):(e[1]+=u*(a-e[0])/o,e[0]=a),s=d(e,t)):3&n?(1&n?(i[1]+=u*(r-i[0])/o,i[0]=r):(i[1]+=u*(a-i[0])/o,i[0]=a),n=d(i,t)):s?(4&s?(e[0]+=o*(h-e[1])/u,e[1]=h):(e[0]+=o*(l-e[1])/u,e[1]=l),s=d(e,t)):(4&n?(i[0]+=o*(h-i[1])/u,i[1]=h):(i[0]+=o*(l-i[1])/u,i[1]=l),n=d(i,t));else if(12&s?(4&s?(e[0]+=o*(h-e[1])/u,e[1]=h):(e[0]+=o*(l-e[1])/u,e[1]=l),s=d(e,t)):12&n?(4&n?(i[0]+=o*(h-i[1])/u,i[1]=h):(i[0]+=o*(l-i[1])/u,i[1]=l),n=d(i,t)):s?(1&s?(e[1]+=u*(r-e[0])/o,e[0]=r):(e[1]+=u*(a-e[0])/o,e[0]=a),s=d(e,t)):(1&n?(i[1]+=u*(r-i[0])/o,i[0]=r):(i[1]+=u*(a-i[0])/o,i[0]=a),n=d(i,t)),s&n)return 0}while(s|n);return o}function d(t,e){return+(t[0]<e[0])|(t[0]>e[2])<<1|(t[1]<e[1])<<2|(t[1]>e[3])<<3}function g(t,e,i){return t+(e-t)*i}function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function y(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;let i=isNaN(t),s=isNaN(e);return i<s?-1:+(i>s)}class P{constructor(t,e,i,s){this.x=t,this.y=e,this.cellSize=i,this.distancefromCellCenter=(0,l.Xf)(t,e,s),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function M(t){if(!t.nextPath()||!t.pathSize)return null;let e=(0,h.B$)(t),i=e[2]-e[0],n=e[3]-e[1];if(0===i||0===n)return[e[0]+i/2,e[1]+n/2];let r=Math.max(Math.min(i,n)/100,1),l=new s((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),o=Math.min(i,n),u=o/2,c=0,_=0;for(c=e[0];c<e[2];c+=o)for(_=e[1];_<e[3];_+=o)l.enqueue(new P(c+u,_+u,u,t));t.reset(),t.nextPath();let p=(0,a.IK)(t);if(null===p)return null;let f,m=new P(p[0],p[1],0,t);for(;l.size>0;)f=l.dequeue(),f.distancefromCellCenter>m.distancefromCellCenter&&(m=f),!(f.maxDistanceToPolygon-m.distancefromCellCenter<=r)&&(u=f.cellSize/2,l.enqueue(new P(f.x-u,f.y-u,u,t)),l.enqueue(new P(f.x+u,f.y-u,u,t)),l.enqueue(new P(f.x-u,f.y+u,u,t)),l.enqueue(new P(f.x+u,f.y+u,u,t)));return[m.x,m.y]}},35833(t,e,i){i.d(e,{ai:()=>d,g1:()=>g,kT:()=>x,qc:()=>y});var s=i(18370),n=i(36745),r=i(6774);const h=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(1797)]).then(()=>i(46160))),a=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6491)]).then(()=>i(55666))),l=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8679)]).then(()=>i(51190))),o=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(837)]).then(()=>i(97528))),u=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(3030)]).then(()=>i(50795))),c=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(6936)]).then(()=>i(15605))),_=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637))),p=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(4790)]).then(()=>i(67520))),f=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1948)]).then(()=>i(83299)));let m;function d(t){switch(t.type){case"CIMGeometricEffectDonut":case"CIMGeometricEffectBuffer":return h.getImportPromise();case"CIMGeometricEffectEnclosingPolygon":return a.getImportPromise();case"CIMGeometricEffectOffset":return Promise.all([p.getImportPromise(),c.getImportPromise(),u.getImportPromise()]);case"CIMGeometricEffectControlMeasureLine":return c.getImportPromise();case"CIMGeometricEffectTaperedPolygon":return Promise.all([_.getImportPromise(),l.getImportPromise(),o.getImportPromise()]);default:return Promise.resolve()}}function g(t){return"CIMMarkerPlacementAtMeasuredUnits"===t.type?f.getImportPromise():Promise.resolve()}class x{constructor(t){this._geometry=t}next(){let t=this._geometry;return this._geometry=null,t}}function y(t,e,i){if(!t)return null;m||=new r.O3(0,0,0,1);let s,h,a=i?-1:1,l="esriGeometryPolygon"===t.geometryType,o=l?3:2,u=l?3:2;for(m.reset(o),m.setPixelMargin(e+1),m.setExtent(512);t.nextPath();)if(!(t.pathSize<u)){for(t.nextPoint(),s=t.x,h=a*t.y,m.moveTo(s,h);t.nextPoint();)s=t.x,h=a*t.y,m.lineTo(s,h);l&&m.close()}let c=m.result(!1);if(c){let e=n.z.createEmptyOptimizedCIM(t.geometryType);for(let t of c){e.startPath();for(let i of t)e.pushXY(i.x,a*i.y)}return e.reset(),e}return null}i.d(e,["$Z",0,h,"NS",0,o,"Xs",0,l,"hd",0,u,"lX",0,a,"mO",0,c,"vZ",0,f,"xR",0,p,"yM",0,_])},78653(t,e,i){i.d(e,{A:()=>se,c:()=>ne});var s=i(34653);class n{constructor(){this.type="CIMBackgroundCallout"}static{this.instance=null}static local(){return null===n.instance&&(n.instance=new n),n.instance}execute(t,e,i){if("CIMBackgroundCallout"!==e?.type)throw Error("Invalid effect type for BackgroundCalloutEffect");return new r(t,e,i)}}class r{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BackgroundCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*r,this._leaderOffset=(e.leaderOffset??0)*r,this._gap=(e.gap??0)*r,this._geomUnitsPerPoint=r,this._hasAccentBar=!0===e.hasAccentBar,this._lineStyle=e.lineStyle,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);switch(this._part){case"accent-bar":return(0,s.W)(i,e.anchor,this._gap,t.yFactor,this._lineStyle,e.bounds);case"background":return(0,s._T)(i,t.yFactor);default:{if((0,s.gR)(i,e.anchor))return null;let n=(0,s.sz)(i,e.anchor,this._lineStyle,this._gap,this._hasAccentBar,e.bounds);return(0,s.Io)(n,e.anchor)<this._leaderTolerance?null:(0,s.n_)(i,e.anchor,this._lineStyle,this._leaderOffset,this._gap,t.yFactor,this._geomUnitsPerPoint,this._hasAccentBar,e.bounds)}}}return null}}class h{constructor(){this.type="CIMBalloonCallout"}static{this.instance=null}static local(){return null===h.instance&&(h.instance=new h),h.instance}execute(t,e,i){if("CIMBalloonCallout"!==e?.type)throw Error("Invalid effect type for BalloonCalloutEffect");return new a(t,e,i)}}class a{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BalloonCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._balloonStyle=e.balloonStyle,this._dartWidth=null==e.dartWidth?null:e.dartWidth*r,this._part=e.part,this._separateDart=!0===e.separateDart,this._leaderTolerance=(e.leaderTolerance??0)*r,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);if("dart"===this._part){let n=(0,s.ZO)(i,e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor);if(n)return n;continue}return(0,s.IF)(i,e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor,!this._separateDart)}return null}}class l{constructor(){this.type="CIMPointSymbolCallout"}static{this.instance=null}static local(){return null===l.instance&&(l.instance=new l),l.instance}execute(t,e,i){if("CIMPointSymbolCallout"!==e?.type)throw Error("Invalid effect type for PointSymbolCalloutEffect");return new o(t,e,i)}}class o{constructor(t,e,i){let{geomUnitsPerPoint:s}=i;if(!s)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for PointSymbolCalloutEffect");let n=s*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*n,this._leaderOffset=(e.leaderOffset??0)*n,this._gap=(e.gap??0)*n,this._geomUnitsPerPoint=n,this._lineStyle=e.lineStyle,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;if("marker"===this._part)return(0,s.DJ)((0,s.gX)(e.bounds),t.yFactor);if((0,s.gR)(e.bounds,e.anchor))return null;let i=(0,s.sz)(e.bounds,e.anchor,this._lineStyle,this._gap);return(0,s.Io)(i,e.anchor)<this._leaderTolerance?null:(0,s.n_)(e.bounds,e.anchor,this._lineStyle,this._leaderOffset,this._gap,t.yFactor,this._geomUnitsPerPoint)}return null}}var u=i(36745);class c{constructor(){this.type="CIMSimpleLineCallout"}static{this.instance=null}static local(){return null===c.instance&&(c.instance=new c),c.instance}execute(t,e,i){if("CIMSimpleLineCallout"!==e?.type)throw Error("Invalid effect type for SimpleLineCalloutEffect");return new _(t,e,i)}}class _{constructor(t,e,i){this._inputGeometries=t,this._autoSnap=e.autoSnap??!0;let s=i.geomUnitsPerPoint*(i.scaleFactor??1);this._leaderTolerance=(e.leaderTolerance??0)*s,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=this._createLeaderGeometry(t);if(e)return e}return null}_createLeaderGeometry(t){let e=(0,s.EE)(t,this._calloutContext);if(e){let i=this._autoSnap?(0,s.E0)(e.bounds,e.layoutAnchor):function(t){return{x:t.xmin,y:t.ymin}}(e.bounds);return function(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}(e.bounds,e.layoutAnchor)||!this._passesLeaderTolerance(i,e.layoutAnchor)?null:function(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,i);return s.startPath(),s.pushXY(t.x,i*t.y),s.pushXY(e.x,i*e.y),s.reset(),s}(i,e.anchor,t.yFactor)}return"esriGeometryPolyline"===t.geometryType&&this._passesPolylineTolerance(t)?t.clone():null}_passesLeaderTolerance(t,e){return this._leaderTolerance<=0||function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}(t,e)>=this._leaderTolerance}_passesPolylineTolerance(t){if(this._leaderTolerance<=0)return!0;let e=t.clone(),i=0;for(;e.nextPath();)i+=e.pathLength();return i>=this._leaderTolerance}}class p{static{this.instance=null}static local(){return null===p.instance&&(p.instance=new p),p.instance}execute(t,e,i){return new f(t,e)}}class f{constructor(t,e){this._inputGeometries=t,this._angleTolerance=void 0===e.angleTolerance?120:e.angleTolerance,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();if(!t)return null;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()){let e=t.x,i=t.y,s=e,n=i,r=t.pathSize,h=0,a=0,l=0,o=0,u=0,c=0;this._isClosed&&++r;for(let _=1;t.nextPoint()||_<r;++_){let p,f;this._isClosed&&_===r-1?(p=e,f=i):(p=t.x,f=t.y);let m=p-s,d=f-n,g=Math.sqrt(m*m+d*d);_>1&&g>0&&l>0&&(h*m+a*d)/g/l<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(o=m,u=d,c=g),g>0&&(s=p,n=f,h=m,a=d,l=g)}this._isClosed&&l>0&&c>0&&(h*o+a*u)/c/l<=this._maxCosAngle&&t.setControlPointAt(0)}}}var m=i(51118),d=i(98939);function g(t,e){t[4]=e}class x{constructor(t,e=!0,i=!0,s=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!i&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=s,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new d.W}next(){if(!this.geometryCursor)return null;let t=this.processMultiPath(this.geometryCursor);if((!this.iterateMultiPath||!t)&&(this.geometryCursor=null),!t)return null;let e=t.getAngle();if(this._angleToLine&&this._keepUpright&&Math.abs(e)>.5*Math.PI){let i=e+Math.PI,s=Math.atan2(Math.sin(i),Math.cos(i));Number.isNaN(s)||t.setRotate(s)}return t}processMultiPath(t){for(;this.iteratePath||t.pathIndex<t.totalSize-1;){this.iteratePath||t.nextPath(),this.iterateMultiPath=!0;let e=this.processPath(t);if(e)return e}return this.iterateMultiPath=!1,null}}class y{constructor(t,e,i,s=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=i,this.geomUnitsPerPoint=s,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();let t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}class P{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,i,s,n;for(e=t.x,i=t.y;t.nextPoint();e=i,i=n)if(s=t.x,n=t.y,s!==e||n!==i)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){let e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,i,s){let n=i-t,r=s-e;return Math.sqrt(n*n+r*r)}getSegLength(t){let[[e,i],[s,n]]=t;return this.getLength(e,i,s,n)}getCoord2D(t,e,i,s,n){return[t+(i-t)*n,e+(s-e)*n]}getSegCoord2D(t,e){let[[i,s],[n,r]]=t;return this.getCoord2D(i,s,n,r,e)}getAngle(t,e,i,s,n){let r=i-t,h=s-e;return Math.atan2(h,r)}getAngleCS(t,e,i,s,n,r){t??=[0,0];let h=s-e,a=n-i,l=Math.sqrt(h*h+a*a);return 0===l?(t[0]=1,t[1]=0,t):(t[0]=h/l,t[1]=a/l,t)}getSegAngleCS(t,e,i){let[[s,n],[r,h]]=e;return this.getAngleCS(t,s,n,r,h,i)}cut(t,e,i,s,n,r){return[n<=0?[t,e]:this.getCoord2D(t,e,i,s,n),r>=1?[i,s]:this.getCoord2D(t,e,i,s,r)]}getSubCurve(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(s,t,e,i)?s:null}appendSubCurve(t,e,i,s){t.startPath(),e.seekPathStart();let n=0,r=!0;if(!e.nextPoint())return!1;let h=e.x,a=e.y;for(;e.nextPoint();){let l=this.getLength(h,a,e.x,e.y);if(0!==l){if(r){if(n+l>i){let o=(i-n)/l,u=1,c=!1;n+l>=s&&(u=(s-n)/l,c=!0);let _=this.cut(h,a,e.x,e.y,o,u);if(_&&t.pushPoints(_),c)break;r=!1}}else{if(n+l>s){let i=this.cut(h,a,e.x,e.y,0,(s-n)/l);i&&t.pushPoint(i[1]);break}t.pushXY(e.x,e.y)}n+=l,h=e.x,a=e.y}else h=e.x,a=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let i,s,n,r,h=0;for(i=t.x,s=t.y;t.nextPoint();i=n,s=r){n=t.x,r=t.y;let a=this.getLength(i,s,n,r);if(0!==a){if(h+a>e){let t=(e-h)/a;return this.getCoord2D(i,s,n,r,t)}h+=a}}return null}offset(t,e,i,s,n){if(!t||t.length<2)return null;let r=0,h=t[r++],a=r;for(;r<t.length;){let e=t[r];(e[0]!==h[0]||e[1]!==h[1])&&(r!==a&&(t[a]=t[r]),h=t[a++]),r++}let l=t[0][0]===t[a-1][0]&&t[0][1]===t[a-1][1];if(l&&--a,a<(l?3:2))return null;let o=[];h=l?t[a-1]:null;let u=t[0];for(let n=0;n<a;n++){let r=n===a-1?l?t[0]:null:t[n+1];if(h)if(r){let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t);let n=[u[0]-h[0],u[1]-h[1]];this.normalize(n);let a=n[0]*t[1]-n[1]*t[0],l=n[0]*t[0]+n[1]*t[1];if(0===a&&1===l){u=r;continue}if(a>=0==e<=0){if(l<1){let i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);let r=Math.sqrt((1+l)/2);if(r>1/s){let t=-Math.abs(e)/r;o.push([u[0]-i[0]*t,u[1]-i[1]*t])}}}else switch(i){case"Mitered":{let i=Math.sqrt((1+l)/2);if(i>0&&1/i<s){let s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=Math.abs(e)/i;o.push([u[0]-s[0]*r,u[1]-s[1]*r]);break}}case"Bevelled":o.push([u[0]+n[1]*e,u[1]-n[0]*e]),o.push([u[0]+t[1]*e,u[1]-t[0]*e]);break;case"Rounded":if(l<1){o.push([u[0]+n[1]*e,u[1]-n[0]*e]);let i=Math.floor(2.5*(1-l));if(i>0){let s=1/i,r=s;for(let h=1;h<i;h++,r+=s){let i=[n[1]*(1-r)+t[1]*r,-n[0]*(1-r)-t[0]*r];this.normalize(i),o.push([u[0]+i[0]*e,u[1]+i[1]*e])}}o.push([u[0]+t[1]*e,u[1]-t[0]*e])}break;default:if(a<0)o.push([u[0]+(n[1]+n[0])*e,u[1]+(n[1]-n[0])*e]),o.push([u[0]+(t[1]-t[0])*e,u[1]-(t[0]+t[1])*e]);else{let i=Math.sqrt((1+Math.abs(l))/2),s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=e/i;o.push([u[0]-s[0]*r,u[1]-s[1]*r])}}}else{let t=[u[0]-h[0],u[1]-h[1]];this.normalize(t),o.push([u[0]+t[1]*e,u[1]-t[0]*e])}else{let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t),o.push([u[0]+t[1]*e,u[1]-t[0]*e])}h=u,u=r}return o.length<(l?3:2)?null:(l&&o.push([o[0][0],o[0][1]]),o)}}class M{static{this.instance=null}static local(){return null===M.instance&&(M.instance=new M),M.instance}execute(t,e,i){return new b(t,e,i)}}class b extends y{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P;let s=i.geomUnitsPerPoint;this._width=(void 0===e.width?5:e.width)*s,this._arrowType=void 0===e.geometricEffectArrowType?void 0===e.arrowType?"OpenEnded":e.arrowType:e.geometricEffectArrowType,this._offsetFlattenError=.03*s}processPath(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case"OpenEnded":default:this._constructSimpleArrow(e,t,!0);break;case"Block":this._constructSimpleArrow(e,t,!1);break;case"Crossed":this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,i){let s=e.pathLength(),n=this._width;s<2*n&&(n=s/2);let r=this._curveHelper.getSubCurve(e,0,s-n);if(!r||!r.nextPath())return;r.seekPathStart();let h=n/2;if(this._curveHelper.isEmpty(r))return;let a=(0,m.A)(r),l=this._constructOffset(a,-h);if(!l)return;let o=this._constructOffset(a,h);if(!o)return;let u=this._constructArrowBasePoint(l,-h/2);if(!u)return;let c=this._constructArrowBasePoint(o,h/2);if(!c)return;e.seekInPath(e.pathSize-1);let _=[e.x,e.y];t.pushPath(o),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(c),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.setControlPoint(),i||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(o[0])),t.reset()}_constructCrossedArrow(t,e){let i=e.pathLength(),s=this._width;i<3.732050807568877*s&&(s=i/3.732050807568877),e.seekPathStart();let n=this._curveHelper.getSubCurve(e,0,i-2.732050807568877*s);if(!n)return;n.nextPath();let r=s/2;if(this._curveHelper.isEmpty(n))return;let h=(0,m.A)(n),a=this._constructOffset(h,r);if(!a)return;let l=this._constructOffset(h,-r);if(!l)return;let o=this._curveHelper.getSubCurve(e,0,i-s);if(!o||(o.nextPath(),this._curveHelper.isEmpty(o)))return;let u=(0,m.A)(o),c=this._constructOffset(u,r);if(!c)return;let _=this._constructOffset(u,-r);if(!_)return;let p=c[c.length-1],f=this._constructArrowBasePoint(c,r/2);if(!f)return;let d=_[_.length-1],g=this._constructArrowBasePoint(_,-r/2);if(!g)return;e.seekInPath(e.pathSize-1);let x=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(x),t.nextPoint(),t.setControlPoint(),t.pushPoint(f),t.nextPoint(),t.setControlPoint(),t.pushPoint(p),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,"Rounded",4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;let i=t[t.length-2],s=t[t.length-1],n=[s[0]-i[0],s[1]-i[1]];return this._curveHelper.normalize(n),[s[0]+n[1]*e,s[1]-n[0]*e]}}var C=i(16930),v=i(35833);class w{static{this.instance=null}static local(){return null===w.instance&&(w.instance=new w),w.instance}execute(t,e,i){return new S(t,e,i)}}class S{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.tileKey,r=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=n,this._curveHelper=new P,this._size=(void 0===e.size?1:e.size)*s,this._maxInflateSize=r*s,this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){let e=u.z.createEmptyOptimizedCIM(t.geometryType),i=(0,m.x)(t)[0],s=this._curveHelper.offset(i,this._size,"Rounded",4,this._offsetFlattenError);if(s)return e.pushPath(s),e}else if(this._size<0){let e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return u.z.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}let e=!this._preventClipping&&this._tileKey?(0,v.qc)(t,this._maxInflateSize,!0):t;if(!e)continue;let{bufferExecute:i}=v.$Z.module,s=i({...e.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}},this._size);return s?u.z.fromJSONCIM(s):null}return null}}var I=i(34727),z=i(28076);const k=Math.PI/180,A=2*Math.PI;class T{static{this.instance=null}static local(){return null===T.instance&&(T.instance=new T),T.instance}execute(t,e,i){return new E(t,e,i)}}class E{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._geomUnitsPerPoint=s,this._radius=(e.radius??z.D.CIMGeometricEffectCircularSector.radius)*s,this._startAngle=(e.startAngle??z.D.CIMGeometricEffectCircularSector.startangle)*k,this._endAngle=(e.endAngle??z.D.CIMGeometricEffectCircularSector.endangle)*k}next(){if(this._radius<=0)return null;let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",t.hasZ,!1),i=!1;for(;t.nextPath();)for(;t.nextPoint();)e.pushPath(this._buildRing(t.x,t.y,t.hasZ?t.z:void 0)),i=!0;if(i)return e}t=this._inputGeometries.next()}return null}_buildRing(t,e,i){let s=[this._makePoint(t,e,i)],n=G(this._startAngle),r=G(this._endAngle);for(;r<n;)r+=A;let h=r-n;if(0===h)return s.push(this._makePoint(t+this._radius*Math.cos(r),e+this._radius*Math.sin(r),i)),s.push(this._makePoint(t,e,i)),s;let a=.25*this._geomUnitsPerPoint,l=this._radius<=.5*a?A:2*Math.acos((0,I.qE)(1-a/this._radius,-1,1)),o=Math.max(1,Math.ceil(h/l)),u=h/o,c=r;for(let n=0;n<=o;n++,c-=u)s.push(this._makePoint(t+this._radius*Math.cos(c),e+this._radius*Math.sin(c),i));return s.push(this._makePoint(t,e,i)),s}_makePoint(t,e,i){return null==i?[t,e]:[t,e,i]}}function G(t){return(t%=A)<0?t+A:t}i(86211);var O=i(95108);class N{static{this.instance=null}static local(){return null===N.instance&&(N.instance=new N),N.instance}execute(t,e,i){return new L(t,e,i)}}class L{constructor(t,e,i){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=i.geomUnitsPerPoint??1,this._scale=i?.scale,this._rule=e.rule??"FullGeometry",this._spatialReference=i?.spatialReference??C.A.WebMercator,this._width=this._computeWidth(e.width??25),this._defaultSize=this._defaultPointSize*this._geomUnitsPerPoint}next(){let t;for(;t=this._inputGeometries.next();){let e=this._processGeom((0,m.x)(t));if(e?.length)return u.z.fromJSONCIM({paths:e})}return null}_computeWidth(t){if(!function(t){return"ParallelOffsetByValue"===t}(this._rule)||null==this._scale||!this._spatialReference.metersPerUnit)return t*this._geomUnitsPerPoint;let e=this._scale/(96*39.37*this._spatialReference.metersPerUnit);return t/(this._spatialReference.metersPerUnit*e)}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,i,s){return[t[0]*e+i[0]*s,t[1]*e+i[1]*s]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,i){return[t[0]+e,t[1]+i]}_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){let i=e/this._norm(t);t[0]*=i,t[1]*=i}_leftPerpendicular(t){let e=-t[1],i=t[0];t[0]=e,t[1]=i}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){let e=t[1],i=-t[0];t[0]=e,t[1]=i}_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,i){let s=t[0]*e-t[1]*i,n=t[0]*i+t[1]*e;t[0]=s,t[1]=n}_makeCtrlPt(t){let e=[t[0],t[1]];return g(e,1),e}_addAngledTicks(t,e,i,s){let n=this._sub(i,e);this._normalize(n);let r,h=this._crossProduct(n,this._sub(s,e));r=h>0?this._rightPerp(n):this._leftPerp(n);let a=Math.abs(h)/2,l=[];l.push([e[0]+(r[0]-n[0])*a,e[1]+(r[1]-n[1])*a]),l.push(e),l.push(i),l.push([i[0]+(r[0]+n[0])*a,i[1]+(r[1]+n[1])*a]),t.push(l)}_addBezier2(t,e,i,s,n){if(0===n--)return void t.push(s);let r=this._mid(e,i),h=this._mid(i,s),a=this._mid(r,h);this._addBezier2(t,e,r,a,n),this._addBezier2(t,a,h,s,n)}_addBezier3(t,e,i,s,n,r){if(0===r--)return void t.push(n);let h=this._mid(e,i),a=this._mid(i,s),l=this._mid(s,n),o=this._mid(h,a),u=this._mid(a,l),c=this._mid(o,u);this._addBezier3(t,e,h,o,c,r),this._addBezier3(t,c,u,l,n,r)}_add90DegArc(t,e,i,s,n){let r=n??this._crossProduct(this._sub(i,e),this._sub(s,e))>0,h=this._mid(e,i),a=this._sub(h,e);r?this._leftPerpendicular(a):this._rightPerpendicular(a),h[0]+=a[0],h[1]+=a[1],this._addBezier3(t,e,this._mix(e,.33333,h,.66667),this._mix(i,.33333,h,.66667),i,4)}_addArrow(t,e,i){let s=e[0],n=e[1],r=e[e.length-1],h=this._sub(s,n),a=this._norm(h);this._normalize(h);let l=Math.abs(this._crossProduct(h,this._sub(r,n))),o=this._dotProduct(h,this._sub(r,n));o<.05*a?o=.05*a:o>.95*a&&(o=.95*a);let u=.5*l,c=this._leftPerp(h),_=[n[0]+h[0]*o,n[1]+h[1]*o],p=e.length-1,f=[];f.push(i?[-c[0],-c[1]]:c);let m=[-h[0],-h[1]];for(let t=1;t<p-1;t++){let i=this._sub(e[t+1],e[t]);this._normalize(i);let s=this._dotProduct(i,m),n=this._crossProduct(i,m),r=Math.sqrt((1+s)/2),h=this._sub(i,m);this._normalize(h),h[0]/=r,h[1]/=r,f.push(n<0?[-h[0],-h[1]]:h),m=i}f.push(this._rightPerp(m));for(let i=f.length-1;i>0;i--)t.push([e[i][0]+f[i][0]*u,e[i][1]+f[i][1]*u]);t.push([_[0]+f[0][0]*u,_[1]+f[0][1]*u]),t.push([_[0]+f[0][0]*l,_[1]+f[0][1]*l]),t.push(s),t.push([_[0]-f[0][0]*l,_[1]-f[0][1]*l]),t.push([_[0]-f[0][0]*u,_[1]-f[0][1]*u]);for(let i=1;i<f.length;i++)t.push([e[i][0]-f[i][0]*u,e[i][1]-f[i][1]*u])}_addDash(t,e,i){let s=this._norm(i)/7;this._normalize(i);let n=[];for(let r=0;r<=7;r++)n.push([e[0]+i[0]*r*s,e[1]+i[1]*r*s]),1&r&&(t.push(n),n=[])}_cp2(t,e,i){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,i*this._defaultSize)}_cp3(t,e,i,s){if(t.length>=3)return t[2];let n=this._mix(t[0],1-i,e,i),r=this._sub(e,t[0]);return this._normalize(r),this._rightPerpendicular(r),[n[0]+r[0]*s*this._defaultSize,n[1]+r[1]*s*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;let e=t[0],i=this._cp2(t,-4,0),s=this._sub(e,i);this._normalize(s);let n=this._rightPerp(s);return[e,i,[e[0]+(n[0]-s[0])*this._defaultSize,e[1]+(n[1]-s[1])*this._defaultSize]]}_arrowLastSeg(t){let e,i=t[0],s=this._cp2(t,-4,0);if(t.length>=3)e=t[t.length-1];else{let t=this._sub(i,s);this._normalize(t);let n=this._rightPerp(t);e=[i[0]+(n[0]-t[0])*this._defaultSize,i[1]+(n[1]-t[1])*this._defaultSize]}return[s,e]}_offsetPath(t,e){let{offsetExecute:i}=v.mO.module,s=i({paths:[t],spatialReference:this._spatialReference.toJSON()},e,{joins:"miter",miterLimit:4}),[n]=(0,m.x)(u.z.fromJSONCIM(s));return n?.length?n:null}_processGeom(t){if(!t)return null;let e=[];for(let i of t){let t=i.length>1&&(0,O.Yl)(i)<this._defaultSize;if(!i||0===i.length||t)continue;let s=i.length,n=i[0];switch(this._rule){case"PerpendicularFromFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=[];r.push(s),r.push(this._mid(n,t)),e.push(r);break}case"ReversedFirstSegment":{let t=this._cp2(i,0,-1);e.push([t,n]);break}case"PerpendicularToSecondSegment":{if(i.length<3)return[];let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=[];r.push(this._mid(t,s)),r.push(n),e.push(r);break}case"SecondSegmentWithTicks":{if(i.length<3)return[];let t,s=this._cp2(i,-4,1),r=this._cp3(i,s,.882353,-1.94),h=this._sub(r,s);t=this._crossProduct(h,this._sub(n,s))>0?this._rightPerp(h):this._leftPerp(h);let a=[];a.push([s[0]+(t[0]-h[0])/3,s[1]+(t[1]-h[1])/3]),a.push(s),a.push(r),a.push([r[0]+(t[0]+h[0])/3,r[1]+(t[1]+h[1])/3]),e.push(a);break}case"DoublePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push(n),l.push([s[0]+h[0]*a,s[1]+h[1]*a]),e.push(l);let o=[];o.push([s[0]-h[0]*a,s[1]-h[1]*a]),o.push(t),e.push(o);break}case"OppositeToFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push([s[0]+h[0]*a,s[1]+h[1]*a]),l.push([s[0]-h[0]*a,s[1]-h[1]*a]),e.push(l);break}case"TriplePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push([s[0]+h[0]*a*.8,s[1]+h[1]*a*.8]),l.push([r[0]+.8*(n[0]-r[0]),r[1]+.8*(n[1]-r[1])]),e.push(l),e.push([s,r]);let o=[];o.push([s[0]-h[0]*a*.8,s[1]-h[1]*a*.8]),o.push([r[0]+.8*(t[0]-r[0]),r[1]+.8*(t[1]-r[1])]),e.push(o);break}case"HalfCircleFirstSegment":{let t,s=this._cp2(i,0,-1),r=this._cp3(i,s,.5,4),h=this._mid(n,s),a=this._sub(s,n),l=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18),u=Math.sqrt((1+l)/2),c=Math.sqrt((1-l)/2),_=[];this._crossProduct(a,this._sub(r,n))>0?(_.push(n),a=this._sub(n,h),t=s):(_.push(s),a=this._sub(s,h),t=n),this._rotateDirect(a,u,c),a[0]/=u,a[1]/=u;for(let t=1;t<=18;t++)_.push(this._add(h,a)),this._rotateDirect(a,l,o);_.push(t),e.push(_);break}case"HalfCircleSecondSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,1,-1),r=this._sub(n,t);this._normalize(r);let h=this._crossProduct(r,this._sub(s,t))/2;this._leftPerpendicular(r);let a=[t[0]+r[0]*h,t[1]+r[1]*h];r=this._sub(t,a);let l=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18);h>0&&(o=-o);let u=[t];for(let t=1;t<=18;t++)this._rotateDirect(r,l,o),u.push(this._add(a,r));e.push(u);break}case"HalfCircleExtended":{let t,r=this._cp2(i,0,-2),h=this._cp3(i,r,1,-1);if(s>=4)t=i[3];else{let e=this._sub(n,r);t=this._add(h,e)}let a=this._dist(r,h)/2/.75,l=this._sub(r,n);this._normalize(l,a);let o=this._sub(h,t);this._normalize(o,a);let u=[t,h];e.push(u);let c=[this._clone(h)];this._addBezier3(c,h,this._add(h,o),this._add(r,l),r,4),c.push(n),e.push(c);break}case"OpenCircle":{let t=this._cp2(i,-2,0),s=this._sub(t,n),r=Math.cos(Math.PI/18),h=-Math.sin(Math.PI/18),a=[t];for(let t=1;t<=33;t++)this._rotateDirect(s,r,h),a.push(this._add(n,s));e.push(a);break}case"CoverageEdgesWithTicks":{let t,r,h=this._cp2(i,0,-1);if(s>=3)t=i[2];else{let e=this._sub(h,n),i=this._leftPerp(e);t=[n[0]+i[0]-.25*e[0],n[1]+i[1]-.25*e[1]]}if(s>=4)r=i[3];else{let e=this._mid(n,h),i=this._sub(n,h);this._normalize(i),this._leftPerpendicular(i);let s=this._crossProduct(i,this._sub(t,e));this._rightPerpendicular(i),r=[t[0]+i[0]*s*2,t[1]+i[1]*s*2]}let a,l,o=this._sub(h,n);a=this._crossProduct(o,this._sub(t,n))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push(t),l.push(n),l.push([n[0]+(a[0]-o[0])/3,n[1]+(a[1]-o[1])/3]),e.push(l),a=this._crossProduct(o,this._sub(r,h))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push([h[0]+(a[0]+o[0])/3,h[1]+(a[1]+o[1])/3]),l.push(h),l.push(r),e.push(l);break}case"GapExtentWithDoubleTicks":{let t,r=this._cp2(i,0,2),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}this._addAngledTicks(e,n,r,this._mid(h,t)),this._addAngledTicks(e,h,t,this._mid(n,r));break}case"GapExtentMidline":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}let a=[];a.push(this._mid(n,h)),a.push(this._mid(r,t)),e.push(a);break}case"Chevron":{let t,r=this._cp2(i,-1,-1);if(s>=3)t=i[2];else{let e=this._sub(r,n);this._leftPerpendicular(e),t=this._add(n,e)}e.push([r,this._makeCtrlPt(n),t]);break}case"PerpendicularWithArc":{let t=this._cp2(i,0,-2),r=this._cp3(i,t,.5,-1),h=this._sub(t,n),a=this._norm(h);h[0]/=a,h[1]/=a;let l=this._crossProduct(h,this._sub(r,n)),o=this._dotProduct(h,this._sub(r,n));o<.05*a?o=.05*a:o>.95*a&&(o=.95*a);let u=[n[0]+h[0]*o,n[1]+h[1]*o],c=this._leftPerp(h),_=[];if(_.push([u[0]-c[0]*l,u[1]-c[1]*l]),_.push([u[0]+c[0]*l,u[1]+c[1]*l]),e.push(_),s>=4){let t=i[3],s=this._dotProduct(h,this._sub(t,n));s<.1*a?s=.1*a:s>.9*a&&(s=.9*a);let r=[n[0]+h[0]*s,n[1]+h[1]*s],l=this._crossProduct(h,this._sub(t,n)),o=[];o.push([r[0]-c[0]*l,r[1]-c[1]*l]),o.push([r[0]+c[0]*l,r[1]+c[1]*l]),e.push(o)}let p=[t[0]+c[0]*l,t[1]+c[1]*l];c=this._sub(t,p);let f=Math.cos(Math.PI/18),m=Math.sin(Math.PI/18);l<0&&(m=-m),_=[n,t];for(let t=1;t<=9;t++)this._rotateDirect(c,f,m),_.push(this._add(p,c));e.push(_);break}case"ClosedHalfCircle":{let t=this._cp2(i,2,0),s=this._mid(n,t),r=this._sub(t,s),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=[n,t];for(let t=1;t<=18;t++)this._rotateDirect(r,h,a),l.push(this._add(s,r));e.push(l);break}case"TripleParallelExtended":{let t=this._cp2(i,0,-2),s=this._cp3(i,t,1,-2),r=this._mid(n,t),h=this._sub(s,t);this._normalize(h);let a=Math.abs(this._crossProduct(h,this._sub(r,t)))/2,l=this._dist(t,s),o=[t,n];o.push([n[0]+h[0]*l*.5,n[1]+h[1]*l*.5]),e.push(o);let u=[];u.push([r[0]-h[0]*a,r[1]-h[1]*a]),u.push([r[0]+h[0]*l*.375,r[1]+h[1]*l*.375]),g(u[u.length-1],1),u.push([r[0]+h[0]*l*.75,r[1]+h[1]*l*.75]),e.push(u);let c=[t,s];e.push(c);break}case"ParallelWithTicks":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n)),a=this._leftPerp(r);this._addAngledTicks(e,n,t,s),this._addAngledTicks(e,this._add2(n,a[0]*h,a[1]*h),this._add2(t,a[0]*h,a[1]*h),this._mid(n,t));break}case"Parallel":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._leftPerp(r),a=this._crossProduct(r,this._sub(s,n)),l=[n,t];e.push(l),l=[],l.push([n[0]+h[0]*a,n[1]+h[1]*a]),l.push([t[0]+h[0]*a,t[1]+h[1]*a]),e.push(l);break}case"PerpendicularToFirstSegment":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._mid(n,t),h=this._sub(t,n);this._normalize(h);let a=this._crossProduct(h,this._sub(s,n));this._leftPerpendicular(h);let l=[];l.push([r[0]-h[0]*a*.25,r[1]-h[1]*a*.25]),l.push([r[0]+h[0]*a*1.25,r[1]+h[1]*a*1.25]),e.push(l);break}case"ParallelOffset":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);let l=[];l.push([n[0]+r[0]*h,n[1]+r[1]*h]),l.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(l);break}case"OffsetOpposite":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);break}case"OffsetSame":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]+r[0]*h,n[1]+r[1]*h]),a.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(a);break}case"CircleWithArc":{let t,r,h=this._cp2(i,3,0),a=this._cp3(i,h,.5,-1);if(s>=4)t=i[3],r=this._crossProduct(this._sub(t,h),this._sub(a,h))>0;else{t=h,r=this._crossProduct(this._sub(t,n),this._sub(a,n))>0;let e=24*this._geomUnitsPerPoint,i=this._sub(t,n);this._normalize(i,e);let s=Math.sqrt(2)/2;this._rotateDirect(i,s,r?s:-s),h=this._add(n,i)}let l=this._sub(h,n),o=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),c=[h];for(let t=1;t<=36;t++)this._rotateDirect(l,o,u),c.push(this._add(n,l));this._add90DegArc(c,h,t,a,r),g(c[c.length-8],1),e.push(c);break}case"DoubleJog":{let t,r=this._cp2(i,-3,1),h=this._cp3(i,r,-1,-.5);if(s>=4)t=i[3];else{let e=n;n=r,t=h;let i=this._dist(n,e),s=this._dist(t,e),a=30*this._geomUnitsPerPoint;.5*i<a&&(a=.5*i),.5*s<a&&(a=.5*s),r=this._mix(n,a/i,e,(i-a)/i),h=this._mix(t,a/s,e,(s-a)/s)}let a=this._mid(n,r),l=this._mid(t,h),o=this._dist(n,r),u=this._dist(h,t),c=Math.min(o,u)/8;c=Math.min(c,24*this._geomUnitsPerPoint);let _=Math.cos(Math.PI/4),p=this._sub(n,r);this._normalize(p,c),this._crossProduct(p,this._sub(t,r))>0?this._rotateDirect(p,_,-_):this._rotateDirect(p,_,_);let f=[];f.push(r),f.push(this._add(a,p)),f.push(this._sub(a,p)),f.push(n),e.push(f),p=this._sub(t,h),this._normalize(p,c),this._crossProduct(p,this._sub(n,h))<0?this._rotateDirect(p,_,_):this._rotateDirect(p,_,-_),f=[],f.push(h),f.push(this._add(l,p)),f.push(this._sub(l,p)),f.push(t),e.push(f);break}case"PerpendicularOffset":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h);e.push([a,n]);break}case"LineExcludingLastSegment":{let t=this._arrowPath(i),s=[],n=t.length-2;for(;n--;)s.push(t[n]);e.push(s);break}case"MultivertexArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!1),e.push(s);break}case"CrossedArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!0),e.push(s);break}case"ChevronArrow":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let l=this._crossProduct(h,this._sub(s,t)),o=this._dotProduct(h,this._sub(s,t));o<.05*a?o=.05*a:o>.95*a-r&&(o=.95*a-r);let u=[t[0]+h[0]*o,t[1]+h[1]*o],c=this._leftPerp(h),_=[];_.push([u[0]+c[0]*l+h[0]*r,u[1]+c[1]*l+h[1]*r]),_.push(n),_.push([u[0]-c[0]*l+h[0]*r,u[1]-c[1]*l+h[1]*r]),e.push(_);break}case"ChevronArrowOffset":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._crossProduct(r,this._sub(s,t)),l=this._dotProduct(r,this._sub(s,t));l<.05*h?l=.05*h:l>.95*h&&(l=.95*h);let o=[t[0]+r[0]*l,t[1]+r[1]*l];this._leftPerpendicular(r);let u=[];u.push([o[0]+r[0]*a*.5,o[1]+r[1]*a*.5]),u.push(this._mid(o,n)),u.push([o[0]-r[0]*a*.5,o[1]-r[1]*a*.5]),e.push(u);break}case"PartialFirstSegment":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._dotProduct(r,this._sub(s,t));a<.05*h?a=.05*h:a>.95*h&&(a=.95*h);let l=[t[0]+r[0]*a,t[1]+r[1]*a];e.push([t,l]);break}case"Arch":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=this._sub(n,t),h=this._mix(s,1,r,.55),a=this._mix(s,1,r,-.55),l=[n];this._addBezier2(l,n,h,s,4),this._addBezier2(l,s,a,t,4),e.push(l);break}case"CurvedParallelTicks":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h),l=this._sub(this._mix(t,.75,s,.25),h),o=this._sub(this._mix(t,.25,s,.75),h),u=[t];this._addBezier2(u,t,l,a,3),this._addBezier2(u,a,o,s,3),e.push(u);for(let t=0;t<8;t++){let i=u[2*t+1],s=[this._clone(i)];s.push(this._add(i,[r[0]/4,r[1]/4])),e.push(s)}break}case"Arc90Degrees":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=[t];this._add90DegArc(r,t,n,s),e.push(r);break}case"TipWithPerpendicularAndTicks":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let l=this._crossProduct(h,this._sub(s,t)),o=this._dotProduct(h,this._sub(s,t));o<.05*a?o=.05*a:o>.95*a-r&&(o=.95*a-r);let u=this._leftPerp(h),c=[n[0]-h[0]*r,n[1]-h[1]*r],_=.5*Math.max(a-o-r,r);l=Math.abs(l);let p=[];p.push([c[0]+u[0]*(l+_)-h[0]*_,c[1]+u[1]*(l+_)-h[1]*_]),p.push([c[0]+u[0]*l,c[1]+u[1]*l]),p.push([c[0]-u[0]*l,c[1]-u[1]*l]),p.push([c[0]-u[0]*(l+_)-h[0]*_,c[1]-u[1]*(l+_)-h[1]*_]),e.push(p),e.push([c,n]);break}case"ConcentricCircles":{let t=this._cp2(i,1,0),r=this._cp3(i,t,2,0),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=this._dist(t,n),o=[l,0],u=[];for(let t=0;t<=36;t++)u.push(this._add(n,o)),this._rotateDirect(o,h,a);if(e.push(u),s>=4){u=[];let t=i[3];l=this._dist(t,n),o=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,o)),0===t&&(u.push(this._add(n,o)),g(u[1],1)),this._rotateDirect(o,h,a);e.push(u)}u=[],l=this._dist(r,n),o=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,o)),this._rotateDirect(o,h,a);e.push(u);break}case"DoubleJogArrow":{n=this._arrowPath(i)[0];let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=Math.abs(this._crossProduct(r,this._sub(s,n))),l=Math.abs(this._dotProduct(r,this._sub(s,n)));l<.05*h?l=.05*h:l>.95*h&&(l=.95*h);let o=Math.max(a,l),u=this._leftPerp(r),c=[],_=[n[0]-r[0]*l*.5+u[0]*a*.5,n[1]-r[1]*l*.5+u[1]*a*.5];c.push([_[0],_[1]]),_[0]+=r[0]*o*.5+u[0]*o*.4,_[1]+=r[1]*o*.5+u[1]*o*.4,c.push([_[0],_[1]]),_[0]-=u[0]*o*.25,_[1]-=u[1]*o*.25,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5+u[0]*o*.4,_[1]+=r[1]*o*.5+u[1]*o*.4,c.push([_[0],_[1]]),e.push(c),c=[],_[0]=n[0]-r[0]*l*.5-u[0]*a*.5,_[1]=n[1]-r[1]*l*.5-u[1]*a*.5,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5-u[0]*o*.4,_[1]+=r[1]*o*.5-u[1]*o*.4,c.push([_[0],_[1]]),_[0]+=u[0]*o*.25,_[1]+=u[1]*o*.25,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5-u[0]*o*.4,_[1]+=r[1]*o*.5-u[1]*o*.4,c.push([_[0],_[1]]),e.push(c);break}case"LinkedChevrons":{let t=this._cp2(i,-5,0),s=this._cp3(i,t,-.2,1),r=this._sub(n,t);this._normalize(r);let h=this._leftPerp(r),a=Math.abs(this._crossProduct(r,this._sub(s,t)));e.push([t,n]);let l=[];l.push([n[0]-r[0]*a+h[0]*a,n[1]-r[1]*a+h[1]*a]),l.push(n),l.push([n[0]-r[0]*a-h[0]*a,n[1]-r[1]*a-h[1]*a]),e.push(l),this._addDash(e,t,[-r[0]*a+h[0]*a,-r[1]*a+h[1]*a]),this._addDash(e,t,[-r[0]*a-h[0]*a,-r[1]*a-h[1]*a]);break}case"SegmentThenHalfCircle":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,1.5,0);t=s>=4?i[3]:this._cp3(i,r,1.25,-.5);let a=this._sub(r,n);this._normalize(a);let l=.5*this._dist(r,h),o=this._crossProduct(a,this._sub(t,n))>0,u=Math.cos(Math.PI/18),c=Math.sin(Math.PI/18);o&&(c=-c);let _=[n,r];a[0]*=l,a[1]*=l;let p=this._add(r,a);a[0]=-a[0],a[1]=-a[1];for(let t=1;t<=18;t++)this._rotateDirect(a,u,c),_.push(this._add(p,a));e.push(_);break}case"LineWithStraightTicks":{let t=this._cp2(i,-2,1),s=this._cp3(i,t,-1,-.5),r=this._sub(s,t);this._normalize(r);let h=this._dotProduct(r,this._sub(t,n)),a=this._dotProduct(r,this._sub(s,n)),l=[n];l.push([n[0]+r[0]*h,n[1]+r[1]*h]),l.push(t),e.push(l),l=[n],l.push([n[0]+r[0]*a,n[1]+r[1]*a]),l.push(s),e.push(l);break}case"DoubleCurve":{let t=this._cp2(i,-5,-1),s=this._cp3(i,t,2,0),r=Math.atan2(1,5),h=Math.cos(r),a=Math.sin(r),l=this._sub(t,n),o=this._dist(n,t);this._normalize(l),this._rotateDirect(l,h,-a);let u=[n];u.push([n[0]+l[0]*o*.5,n[1]+l[1]*o*.5]),g(u[1],1),u.push([n[0]+l[0]*o*.8,n[1]+l[1]*o*.8]),this._addBezier2(u,u[2],[n[0]+l[0]*o,n[1]+l[1]*o],t,3);let c=this._sub(s,t),_=this._dist(t,s);this._normalize(c),this._rotateDirect(c,h,-a),this._addBezier2(u,t,[s[0]-c[0]*_,s[1]-c[1]*_],[s[0]-c[0]*_*.8,s[1]-c[1]*_*.8],3),u.push(s),e.push(u);break}case"ParallelWithTicksByWidth":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r),h>0?(this._addAngledTicks(e,n,[n[0]+r[0]*h,n[1]+r[1]*h],t),this._addAngledTicks(e,t,[t[0]+r[0]*h,t[1]+r[1]*h],n)):(this._addAngledTicks(e,[n[0]+r[0]*h,n[1]+r[1]*h],n,t),this._addAngledTicks(e,[t[0]+r[0]*h,t[1]+r[1]*h],n,t));break}case"EnclosingRoundedRectangle":{let t=this._cp2(i,3,-2),e=[Math.min(n[0],t[0]),Math.max(n[1],t[1])],s=[Math.max(n[0],t[0]),Math.min(n[1],t[1])],r=s[0]-e[0],h=e[1]-s[1],a=Math.min(r,h)/10,l=[];l.push([e[0]+a+.75*(r-2*a),e[1]]),l.push([s[0]-a,e[1]]),this._add90DegArc(l,[s[0]-a,e[1]],[s[0],e[1]-a],[s[0],e[1]]),l.push([s[0],s[1]+a]),this._add90DegArc(l,[s[0],s[1]+a],[s[0]-a,s[1]],s),l.push([e[0]+a,s[1]]),this._add90DegArc(l,[e[0]+a,s[1]],[e[0],s[1]+a],[e[0],s[1]]),l.push([e[0],e[1]-a]),this._add90DegArc(l,[e[0],e[1]-a],[e[0]+a,e[1]],e),l.push([e[0]+a+.75*(r-2*a),e[1]]);break}case"ParallelOffsetByValue":{if(i.length<2||0===this._width)break;let t=this._offsetPath(i,.5*this._width);t&&e.push(t);let s=this._offsetPath(i,.5*-this._width);s&&e.push(s);break}default:e.push(i)}}return e}}class R{static{this.instance=null}static local(){return null===R.instance&&(R.instance=new R),R.instance}execute(t,e,i){return new F(t,e,i)}}class F extends y{constructor(t,e,i){super(t,!0,!0),this._curveHelper=new P;let s=i?.geomUnitsPerPoint;this._beginCut=(void 0===e.beginCut?1:e.beginCut)*s,this._endCut=(void 0===e.endCut?1:e.endCut)*s,this._middleCut=(void 0===e.middleCut?0:e.middleCut)*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){let{_beginCut:e,_endCut:i,_middleCut:s}=this,n=t.pathLength(),r=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==i||0!==s)if(e+i+s>=n)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(r,t,0,e),this._curveHelper.appendSubCurve(r,t,.5*(n-s),.5*(n+s)),this._curveHelper.appendSubCurve(r,t,n-i,i)}else if(0===e&&0===i&&0===s)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else e+i+s<n&&(0===s?this._curveHelper.appendSubCurve(r,t,e,n-i):(this._curveHelper.appendSubCurve(r,t,e,.5*(n-s)),this._curveHelper.appendSubCurve(r,t,.5*(n+s),n-i)));return 0===r.totalSize?null:r}}var X=i(45733);class Y{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=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let i=0;i<t.length;i++){let s=Math.abs(t[i]);e&&s<1e-7&&(s=1e-7),this._values.push(s),this._length+=s}return 0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){let e=this._values?this._values.length:0;for(let i=0;i<e;++i)this._values[i]*=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 D{constructor(){this.pt=null,this.ca=0,this.sa=0}}class W{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 U extends P{constructor(t=0,e=!1){super(t,e),this._tempPos=new W,this._tempPt=[0,0],this._tolerance=.03,this._currentPosition=new W}updateTolerance(t){this._tolerance=.03*t}init(t,e,i=!0){return i?(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=0){let i=new W;return!!this._nextPosition(t,i,null,e)&&(i.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);let[e,i]=this._getAngleCS(this._tempPt,this._currentPosition);t.ca=e,t.sa=i}nextPointAndAngle(t,e,i=0){let s=this._tempPos;if(!this._nextPosition(t,s,null,i))return!1;s.copyTo(this._currentPosition),e.pt=this._getPoint(s);let[n,r]=this._getAngleCS(this._tempPt,s);return e.ca=n,e.sa=r,!0}nextCurve(t){if(0===t)return null;let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();let i=new W;return this._nextPosition(t,i,e,1)?(i.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,i,s){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(i){if(0===i.pathSize)if(0===n){let t=e.segment[0];i.pushXY(t[0],t[1])}else i.pushPoint(this.getSegCoord2D(e.segment,n));let t=e.segment[1];i.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 0!==s&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,1===s?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,i){0===i.pathSize&&(0===n?i.pushPoint(e.segment[0]):i.pushPoint(this.getSegCoord2D(e.segment,n)));let t=e.abscissa/e.segmentLength;1===t?i.pushPoint(e.segment[1]):i.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){let e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t,e){let i=e.segmentLength<=0?0:e.abscissa/e.segmentLength;return this.getSegAngleCS(t,this._currentPosition.segment,i)}_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;let e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let i=e+this._partSegCount+1;if(i>=this._pathCursor.pathSize&&(i=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(i),this._patternLength>0){let t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap,i=Math.round((this._partLength-(t+e))/this._patternLength);i<=0&&(i=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+i*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}}class B{static{this.instance=null}static local(){return null===B.instance&&(B.instance=new B),B.instance}execute(t,e,i){return new H(t,e,i)}}class H extends y{constructor(t,e,i){super(t,!0,!0),this._firstCurve=null;let s=i.geomUnitsPerPoint;this._walker=new U,this._walker.updateTolerance(s),this._endings=e.lineDashEnding??"NoConstraint",this._customDashPos=-(e.offsetAlongLine??0)*s,this._offsetAtEnd=(e.customEndingOffset??0)*s;let n=(0,X.FH)(e).dashTemplate;n??=[];let r=(0,X.OI)(n);n=r.hidesLine?[-1]:r.dashTemplate,this._pattern=new Y,this._pattern.init(n,!1),this._pattern.scale(s)}processPath(t){if(this._pattern.size()%2==1)return null;if(0===this._pattern.length()){this.iteratePath=!1;let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case"HalfPattern":case"HalfGap":default:this._pattern.extPtGap=0;break;case"FullPattern":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case"FullGap":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case"NoConstraint":this.isClosed||(e=!1);break;case"Custom":this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}let i=t.pathLength();if(this._pattern.isEmpty()||i<.1*this._pattern.length()){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case"HalfPattern":default:t=.5*this._pattern.firstValue();break;case"HalfGap":t=.5*-this._pattern.lastValue();break;case"FullGap":t=-this._pattern.lastValue();break;case"FullPattern":t=0;break;case"NoConstraint":case"Custom":t=-this._customDashPos}let i=t/this._pattern.length();i-=Math.floor(i),t=i*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let s=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),s=!s;e-=t,s?(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())}0===e&&(e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue());let i=this._walker.nextCurve(e);if(i)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)i.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&&=(i.pushCursor(this._firstCurve),null)):this.iteratePath=!0;else this.iteratePath=!1,i=this._firstCurve,this._firstCurve=null;return i?.reset(),i}}class V{static{this.instance=null}static local(){return null===V.instance&&(V.instance=new V),V.instance}execute(t,e,i){return new q(t,e,i)}}class q{constructor(t,e,i){this._inputGeometries=t,this._tileKey=i.tileKey,this._maxInflateSize=i.maxInflateSize*i.geomUnitsPerPoint,this._preventClipping=i.preventClipping,this._width=(void 0===e.width?2:e.width)*i.geomUnitsPerPoint,e.method,this._option=e.option??"Accurate"}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){let e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:u.z.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();let{bufferExecute:e}=v.$Z.module,i=!this._preventClipping&&this._tileKey?(0,v.qc)(t,this._maxInflateSize,!0):t.clone();if(!i)continue;let s=e({...i.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}},-this._width);if(s)for(let t of s.rings)if(t){i.startPath();for(let e of t.reverse())i.pushXY(e[0],i.yFactor*e[1])}return i}}return null}}var J=i(537);class Z{static{this.instance=null}static local(){return null===Z.instance&&(Z.instance=new Z),Z.instance}execute(t,e,i){return new $(t,e,i)}}class ${constructor(t,e,i){this._inputGeometries=t,this._medhod=e.method}next(){let t=this._inputGeometries.next(),e=this._medhod;for(;null!=t;){if(t.totalSize>0)switch(e){case"RectangularBox":return j(t);case"ConvexHull":return this._constructConvexHull(t);default:return K(t)}t=this._inputGeometries.next()}return null}_constructConvexHull(t){switch(t.geometryType){case"esriGeometryPolyline":case"esriGeometryPolygon":{let{convexHullExecute:e}=v.lX.module,i=e({...t.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}});return i?u.z.fromJSONCIM(i):null}case"esriGeometryEnvelope":return t;default:return null}}}function j(t){let e=(0,J.z8)(t),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]};return u.z.fromJSONCIM(i)}function K(t){switch(t.geometryType){case"esriGeometryPolyline":{let e=[];for(;t.nextPath();)Q(t,e);return u.z.fromJSONCIM({rings:e})}case"esriGeometryPolygon":case"esriGeometryEnvelope":return t;default:return null}}function Q(t,e){if(t.seekPathStart(),!t.nextPoint())return;let i=t.x,s=t.y,n=[[i,s]];for(e.push(n);t.nextPoint();)n.push([t.x,t.y]);n.push([i,s])}class tt{static{this.instance=null}static local(){return null===tt.instance&&(tt.instance=new tt),tt.instance}execute(t,e,i){return new et(t,e,i)}}class et extends y{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P;let s=i.geomUnitsPerPoint;this._length=(void 0===e.length?20:e.length)*s,this._angle=void 0===e.angle?225:e.angle,this._position=void 0===e.position?50:e.position,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);let i=t.x,s=t.y;t.seekInPath(t.pathSize-1);let n=t.x,r=t.y,h=[n-i,r-s];this._curveHelper.normalize(h);let a=i+(n-i)*this._position/100,l=s+(r-s)*this._position/100,o=Math.cos((90-this._angle)/180*Math.PI),c=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(c=-c),this._mirror=!this._mirror;let _=[a-this._length/2*o,l-this._length/2*c],p=[a+this._length/2*o,l+this._length/2*c];return e.pushPath([[i,s],_,p,[n,r]]),e}}class it{static{this.instance=null}static local(){return null===it.instance&&(it.instance=new it),it.instance}execute(t,e,i){return new st(t,e,i)}}class st{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._offsetX=void 0===e.offsetX?0:e.offsetX*s,this._offsetY=void 0===e.offsetY?0:e.offsetY*s}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,i){for(;t.nextPath();)for(;t.nextPoint();)t.x+=e,t.y+=i;return t.reset(),t}}var nt=i(60408);class rt{static{this.instance=null}static local(){return null===rt.instance&&(rt.instance=new rt),rt.instance}execute(t,e,i){return new ht(t,e,i)}}class ht{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=i.tileKey,this._curveHelper=new P,this._offset=(e.offset??1)*s,this._method=e.method??"Square",this._maxInflateSize=Math.max(Math.abs(n*s),10),this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if("Rounded"===this._method&&this._offset>0){let e=(0,m.A)(t),i=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(i){let e=u.z.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(i),e}return null}let e=t.asJSON();if((0,nt.ZC)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return u.z.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}let e=!this._preventClipping&&this._tileKey?(0,v.qc)(t,this._maxInflateSize,!0):t.clone();if(!e)continue;let{simplifyOGCExecute:i}=v.xR.module,{offsetExecute:s}=v.mO.module,{graphicBufferExecuteMany:n}=v.hd.module,r=i({...e.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}});if(!r)continue;let h,a=at(this._method);return"esriGeometryPolygon"===t.geometryType?("square"===a&&(a="bevel"),h=n([r],[this._offset],a,"round")[0]):h=s(r,-this._offset,{joins:a,flattenError:this._offsetFlattenError,miterLimit:4}),h?u.z.fromJSONCIM(h):null}return null}}function at(t){switch(t){case"Rounded":return"round";case"Bevelled":return"bevel";case"Mitered":return"miter";case"Square":return"square"}}var lt=i(12359);class ot{static{this.instance=null}static local(){return null===ot.instance&&(ot.instance=new ot),ot.instance}execute(t,e,i){return new ut(t,e,i)}}class ut{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._executionContext=i,this._length=(void 0===e.length?z.D.CIMGeometricEffectRadial.length:e.length)*s,this._angle=void 0===e.angle?z.D.CIMGeometricEffectRadial.angle:e.angle*Math.PI/180,this._lx=Math.cos(this._angle)*this._length,this._ly=Math.sin(this._angle)*this._length}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return t.nextPath()&&t.nextPoint()&&(this._executionContext.effectOrigin=[t.x,t.y],e.pushPath([[t.x,t.y],[t.x+this._lx,t.y+this._ly]])),e}if("esriGeometryPolygon"===t.geometryType){let e=(0,lt.IK)(t);if(!e)return null;let i=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this._executionContext.effectOrigin=[e[0],e[1]],i.pushPath([[e[0],e[1]],[e[0]+this._lx,e[1]+this._ly]]),i}t=this._inputGeometries.next()}return null}}class ct{static{this.instance=null}static local(){return null===ct.instance&&(ct.instance=new ct),ct.instance}execute(t,e,i){return new _t(t,e,i)}}class _t{constructor(t,e,i){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 pt(t.clone());t=this._inputGeometries.next()}return null}}function pt(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);let i=t.x,s=t.y;t.seekInPath(t.pathSize-e-1);let n=t.x,r=t.y;t.x=i,t.y=s,t.seekInPath(e),t.x=n,t.y=r}return t.reset(),t}class ft{static{this.instance=null}static local(){return null===ft.instance&&(ft.instance=new ft),ft.instance}execute(t,e,i){return new mt(t,e,i)}}class mt{constructor(t,e,i){this._inputGeometries=t,this._rotateAngle=void 0===e.angle?0:e.angle*Math.PI/180}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,J.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),i,s)}t=this._inputGeometries.next()}return null}_rotate(t,e,i){let s=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){let r=t.x-e,h=t.y-i;t.x=e+r*s-h*n,t.y=i+r*n+h*s}return t.reset(),t}}class dt{static{this.instance=null}static local(){return null===dt.instance&&(dt.instance=new dt),dt.instance}execute(t,e,i){return new gt(t,e,i)}}class gt{constructor(t,e,i){this._inputGeometries=t,this._xFactor=void 0===e.xScaleFactor?1.15:e.xScaleFactor,this._yFactor=void 0===e.yScaleFactor?1.15:e.yScaleFactor}next(){let t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,J.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),i,s)}}return null}_scaleCursor(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=i+(t.y-i)*this._yFactor;return t.reset(),t}}class xt{constructor(){this._polyline=[]}beginPath(t){this._polyline.push([t])}lineTo(t){if(0===this._polyline.length)throw Error("No path started. Call beginPath first.");this._polyline[this._polyline.length-1].push(t)}getPointCount(){return this._polyline.reduce((t,e)=>t+e.length,0)}addSegment(t,e,i){i&&this.beginPath(t),this.lineTo(e)}getXY(t){let e=0;for(let i of this._polyline){if(t<e+i.length)return i[t-e];e+=i.length}return null}getGeometry(){return this._polyline}}class yt{static{this.instance=null}static local(){return null===yt.instance&&(yt.instance=new yt),yt.instance}execute(t,e,i){return new Pt(t,e,i)}}class Pt extends y{constructor(t,e,i){super(t,!1,!0),this._suppress=void 0!==e.suppress&&e.suppress,this._invert=void 0!==e.invert&&e.invert}processPath(t){if(t.totalSize<=0)return null;if(!this._suppress){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=[],i=Array(t.pathSize),s=0;for(t.seekPathStart();t.nextPoint();)i[s++]=t.getControlPoint(),e.push([t.x,t.y]);let n=!0,r=!0,h=!1,a=!this._invert;s=0;let l=new xt,o=e[0];for(;s<e.length-1;){let t=e[s+1],u=i[s],c=i[s+1];s++,r&&=(a=u||c?this._invert:!this._invert,!1),a?(l.addSegment(o,t,n),n=!1):h=!0,o=t,c&&(a?(a=!1,n=!0):a=!0)}let c=l.getGeometry();if(0===c.length)return null;if(!h&&e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){let t=c[c.length-1];return(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1])&&t.push([t[0][0],t[0][1]]),u.z.fromJSONCIM({paths:c})}let _=c[c.length-1];return l.getPointCount()>1&&"esriGeometryPolygon"===t.geometryType&&_[0][0]===_[_.length-1][0]&&_[0][1]===_[_.length-1][1]&&c.length>1&&(c[c.length-1].push(...c[0]),c.splice(0,1)),u.z.fromJSONCIM({paths:c})}}var Mt=i(49186),bt=i(53966),Ct=i(6774);const vt=()=>bt.A.getLogger("esri.symbols.cim.effects.EffectTaperedPolygon");class wt{static{this.instance=null}static local(){return null===wt.instance&&(wt.instance=new wt),wt.instance}execute(t,e,i){return new St(t,e,i)}}class St extends y{constructor(t,e,i){super(t,!1,!0),this._slopeS=0,this._slopeC=1,this._lastTangent1=new Ct.bR(NaN,NaN),this._lastWidth=0;let s=i.geomUnitsPerPoint;this._geomUnitsPerPoint=s,this._halfFromWidth=Math.abs(void 0===e.fromWidth?0:e.fromWidth)*s*.5,this._halfToWidth=Math.abs(void 0===e.toWidth?1:e.toWidth)*s*.5,this._originalLength=(void 0===e.length?0:e.length)*s,this._length=0}processPath(t){if(t.totalSize<=0)return null;if(this._halfFromWidth<=0&&this._halfToWidth<=0){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.prevPoint();)e.pushXY(t.x,t.y);for(t.seekPathStart();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=t.getCurrentPath().asJSON(),{generalizeExecute:i}=v.NS.module,s=i(e,.25*this._geomUnitsPerPoint,{removeDegenerateParts:!0}),n=null==s?null:(0,nt.Bi)(s)?s.rings:(0,nt.Rg)(s)?s.paths:null;if(!n)return vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry")),null;let{lengthExecute:r}=v.Xs.module,h=r(s);if((0===this._originalLength||this._originalLength>h)&&h>0){this._length=h;let t=(this._halfToWidth-this._halfFromWidth)/this._length;if(Math.abs(t)<1){let e=t*t;this._slopeC=Math.sqrt(1/(1+e)),this._slopeS=Math.sqrt(e/(1+e)),t<0&&(this._slopeS=-this._slopeS)}else this._slopeC=this._slopeS=.7071}else this._length=this._originalLength,this._slopeC=1,this._slopeS=0;let a=[];for(let t of n){let e=new xt,i=new xt,s=0;this._setFromOffset(t.slice(0,2),e,i);for(let n=0,r=3;r<=t.length;++n,++r)s=this._setOffset(t.slice(n,r),s,e,i);this._setToOffset(t.slice(-2),s,e,i);let[n]=e.getGeometry(),[r]=i.getGeometry();a.push([...n,...r.reverse()])}let l={rings:a,spatialReference:{wkid:C.A.WebMercator.wkid}},{simplifyExecute:o}=v.yM.module,c=o(l);return u.z.fromJSONCIM(c)}_setFromOffset([[t,e],[i,s]],n,r){let h=this._halfFromWidth,a=new Ct.bR(i-t,s-e).normalize().scale(h);n.beginPath([t-a.y,e+a.x]),r.beginPath([t+a.y,e-a.x])}_setToOffset([[t,e],[i,s]],n,r,h){let a;a=(n+=Math.sqrt((i-t)**2+(s-e)**2))>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*n/this._length;let l=new Ct.bR(i-t,s-e).normalize().scale(a);r.lineTo([i-l.y,s+l.x]),h.lineTo([i+l.y,s-l.x])}_setOffset([[t,e],[i,s],[n,r]],h,a,l){let o,u=Math.sqrt((i-t)**2+(s-e)**2);o=h+u>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*(h+u)/this._length,h+=u;let c=new Ct.bR(i,s),_=new Ct.bR(i-t,s-e).normalize(),p=new Ct.bR(n-i,r-s).normalize(),f=Ct.bR.sub(p,_),m=a.getPointCount(),d=l.getPointCount();_.leftPerpendicular(),p.leftPerpendicular();let g=_.x*p.x+_.y*p.y;if(g>.99){let t=Ct.bR.add(_,p).scale(o/2),e=t.clone().rotate(this._slopeC,this._slopeS);a.lineTo([c.x+e.x,c.y+e.y]);let i=t.rotateReverse(this._slopeC,this._slopeS);l.lineTo([c.x-i.x,c.y-i.y])}else{let i=_.x*p.y-_.y*p.x;if(f.scale(1/i),i<0){f.scale(-o).rotateReverse(this._slopeC,this._slopeS);let t=l.getXY(d-1);t||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Ct.bR.add(c,f).sub(Ct.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(-o).rotateReverse(this._slopeC,this._slopeS),e=p.clone().scale(-o).rotateReverse(this._slopeC,this._slopeS);l.lineTo([c.x+t.x,c.y+t.y]),l.lineTo([c.x,c.y]),l.lineTo([c.x+e.x,c.y+e.y])}else l.lineTo([c.x+f.x,c.y+f.y])}else{f.scale(o).rotate(this._slopeC,this._slopeS);let t=a.getXY(m-1);t||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Ct.bR.add(c,f).sub(Ct.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(o).rotate(this._slopeC,this._slopeS),e=p.clone().scale(o).rotate(this._slopeC,this._slopeS);a.lineTo([c.x+t.x,c.y+t.y]),a.lineTo([c.x,c.y]),a.lineTo([c.x+e.x,c.y+e.y])}else a.lineTo([c.x+f.x,c.y+f.y])}let s=Math.acos(g),n=1;if(o>.25){let t=2*Math.acos(1-.25/o);t<s&&(n=Math.round(s/t))}let r=Math.cos(s/n),h=Math.sin(s/n),u=_.clone();if(i<0){u.rotate(this._slopeC,this._slopeS);let i=a.getXY(m-1);i||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Ct.bR.add(c,u.clone().scale(this._lastWidth)),n=Ct.bR.sub(s,Ct.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Ct.bR(t,e),s=this._lastTangent1.clone().scale(this._lastWidth);s.rotate(this._slopeC,this._slopeS);let n=_.clone().scale(this._lastWidth);n.rotate(this._slopeC,this._slopeS),a.lineTo([i.x+s.x,i.y+s.y]),a.lineTo([i.x,i.y]),a.lineTo([i.x+n.x,i.y+n.y])}}else{u.scale(-1).rotateReverse(this._slopeC,this._slopeS);let i=l.getXY(d-1);i||vt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Ct.bR.add(c,u.clone().scale(this._lastWidth)),n=Ct.bR.sub(s,Ct.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Ct.bR(t,e),s=this._lastTangent1.clone().scale(-this._lastWidth);s.rotateReverse(this._slopeC,this._slopeS);let n=_.clone().scale(-this._lastWidth);n.rotateReverse(this._slopeC,this._slopeS),l.lineTo([i.x+s.x,i.y+s.y]),l.lineTo([i.x,i.y]),l.lineTo([i.x+n.x,i.y+n.y])}}u.scale(o);for(let t=0;t<=n;t++)i<0?(a.lineTo([c.x+u.x,c.y+u.y]),u.rotateReverse(r,h)):(l.lineTo([c.x+u.x,c.y+u.y]),u.rotate(r,h))}return this._lastTangent1.setCoords(_.x,_.y),this._lastWidth=o,h}}class It{static{this.instance=null}static local(){return null===It.instance&&(It.instance=new It),It.instance}execute(t,e,i){return new zt(t,e,i)}}class zt{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._height=(void 0===e.amplitude?2:e.amplitude)*s,this._period=(void 0===e.period?3:e.period)*s,this._style=e.waveform??"Sinus",this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new Y,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new U,this._walker.updateTolerance(s)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;let e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();let i=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case"Sinus":default:this._constructCurve(e,i,!1);break;case"Square":this._constructSquare(e,i);break;case"Triangle":this._constructTriangle(e,i);break;case"Random":this._constructCurve(e,i,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,i){let s=Math.round(e/this._period);0===s&&(s=1);let n=16*s+1,r=e/s,h=this._period/16,a=1/n,l=2*Math.PI*e/r,o=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),c=2*Math.PI*Math.random(),_=.75-Math.random()/2,p=.75-Math.random()/2,f=new D;this._walker.curPointAndAngle(f),t.pushPoint(f.pt);let m=0;for(;;){if(!this._walker.nextPointAndAngle(h,f)){t.pushPoint(this._walker.getPathEnd());break}{let e,s=m;if(m+=a,i){let t=this._height/2*(1+.3*Math.sin(_*l*s+o));e=t*Math.sin(l*s+u),e+=t*Math.sin(p*l*s+c),e/=2}else e=.5*this._height*Math.sin(.5*l*s);t.pushXY(f.pt[0]-e*f.sa,f.pt[1]+e*f.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new D;this._walker.curPointAndAngle(s);let n=new D;if(this._walker.nextPointAndAngle(this._period,n)){let r=new D;this._walker.nextPointAndAngle(this._period,r)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(s.pt[0]-this._height/2*s.sa,s.pt[1]+this._height/2*s.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 i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new D;this._walker.curPointAndAngle(s);let n=new D;if(this._walker.nextPointAndAngle(this._period/2,n)){let r=new D;this._walker.nextPointAndAngle(this._period,r)&&(this._walker.nextPosition(this._period/2)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.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 kt{static{this.instance=null}static local(){return null===kt.instance&&(kt.instance=new kt),kt.instance}execute(t,e,i){return new At(t,e,i)}}class At extends x{constructor(t,e,i){super(t),this._geometryWalker=new U,this._geometryWalker.updateTolerance(i),this._angleToLine=e.angleToLine??!0,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset?e.offset:0)*i,this._originalEndings=e.endings??"WithHalfGap",this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*i,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*i,this._pattern=new Y,this._pattern.init(e.placementTemplate),this._pattern.scale(i),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{this._endings="WithFullGap"===this._originalEndings&&this.isClosed?"WithMarkers":this._originalEndings,this._pattern.extPtGap=0;let i,s=!0;switch(this._endings){case"NoConstraint":i=-this._position,i=this._adjustPosition(i),s=!1;break;case"WithHalfGap":default:i=-this._pattern.lastValue()/2;break;case"WithFullGap":i=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case"WithMarkers":i=0;break;case"Custom":i=-this._position,i=this._adjustPosition(i),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,s))return null;this._pattern.reset();let n=0;for(;i>n;)i-=n,n=this._pattern.nextValue();n-=i,e=n,this.iteratePath=!0}let i=new D;return!this._geometryWalker.nextPointAndAngle(e,i)||"WithFullGap"===this._endings&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):"WithMarkers"===this._endings&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(i.pt[0]-this._offset*i.sa,i.pt[1]+this._offset*i.ca),this._angleToLine&&this.internalPlacement.setRotateCS(i.ca,i.sa),this.internalPlacement)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class Tt{static{this.instance=null}static local(){return null===Tt.instance&&(Tt.instance=new Tt),Tt.instance}execute(t,e,i){return new Et(t,e,i)}}class Et extends x{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P,this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._type=e.extremityPlacement??"Both",this._position=void 0===e.offsetAlongLine?0:e.offsetAlongLine*i,this._beginProcessed=!1}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){let e;switch(this._type){case"Both":default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iterateMultiPath=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iterateMultiPath=!0,this.iteratePath=!0);break;case"JustBegin":e=this._atExtremities(t,this._position,!0);break;case"JustEnd":e=this._atExtremities(t,this._position,!1);case"None":}return e}_atExtremities(t,e,i){if(this._placePerPart||(i?t.seekPath(0):t.seekPath(t.totalSize-1)),i||t.seekPathEnd(),i?t.nextPoint():t.prevPoint()){let s=0,[n,r]=[0,0],[h,a]=[t.x,t.y],l=[0,0];for(;i?t.nextPoint():t.prevPoint();){n=h,r=a,h=t.x,a=t.y;let i=this._curveHelper.getLength(n,r,h,a);if(s+i>e){let t=(e-s)/i,[o,u]=this._curveHelper.getAngleCS(l,n,r,h,a,t),c=this._curveHelper.getCoord2D(n,r,h,a,t);return this.internalPlacement.setTranslate(c[0]-this._offset*u,c[1]+this._offset*o),this._angleToLine&&this.internalPlacement.setRotateCS(-o,-u),this.internalPlacement}s+=i}}return null}}const Gt=.001;class Ot{static{this.instance=null}static local(){return null===Ot.instance&&(Ot.instance=new Ot),Ot.instance}execute(t,e,i){return new Nt(t,e,i)}}class Nt extends x{constructor(t,e,i){super(t),this._segmentIterator=null,this._segCount=0,this._firstSeg=!0,this._seg=null,this._ms=[],this._from=0,this._to=0,this._pt=null,this._walker=new U,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=e.angleToLine??!1,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset??0)*i,this._interval=e.interval??0,this._interval<=0&&(this._interval=.01),this._skipRate=e.skipMarkerRate??0,this._skipRate<=1&&(this._skipRate=0),this._placeAtExtremities=e.placeAtExtremities??!1}processPath(t){if(!this.iteratePath){let{fromGeometry:e}=v.vZ.module,i=e(t.getCurrentPath().asJSON()).getGeometry(),s=i.getPathStart(0);this._segmentIterator=i.querySegmentIteratorAtVertex(s),this._segCount=i.getSegmentCountPath(0),this._firstSeg=!0,this.iteratePath=!0,this._pt=i.getXY(0).clone()}for(;0===this._ms.length&&this._segmentIterator?.hasNextSegment();){--this._segCount,this._seg=this._segmentIterator.nextSegment(),this._from=this._seg.getStartAttributeAsDbl(2,0),this._to=this._seg.getEndAttributeAsDbl(2,0);let e=!isNaN(this._from),i=!isNaN(this._to);e&&(this._from=Math.round(this._from/Gt)*Gt,Math.abs(this._from)<Gt&&(this._from=0)),i&&(this._to=Math.round(this._to/Gt)*Gt,Math.abs(this._to)<Gt&&(this._to=0));let s=e?Math.floor(this._from/this._interval):0,n=i?Math.floor(this._to/this._interval):0;if(e&&(this._placeAtExtremities||!this._firstSeg||!this._placePerPart&&t.pathIndex>0)&&Math.abs(s*this._interval-this._from)<Gt&&(!this._skipRate||s%this._skipRate)&&this._ms.push(this._from),this._firstSeg=!1,e&&i&&!(Math.abs(this._from-this._to)<Gt))if(this._from<=this._to){s*this._interval<this._from+Gt&&++s,n*this._interval>this._to-Gt&&--n;for(let t=s;t<=n;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}else{s*this._interval>this._from-Gt&&--s,n*this._interval<this._to+Gt&&++n;for(let t=n;t<=s;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}}let e=0;if(0===this._ms.length){if(this.iteratePath=!1,!this._segCount&&this._placeAtExtremities&&!isNaN(this._to)&&(this._placePerPart||t.pathIndex===t.totalSize-1)){let t=Math.floor(this._to/this._interval);Math.abs(t*this._interval-this._to)<Gt&&(!this._skipRate||t%this._skipRate)&&(this._ms.push(this._to),e=1)}if(0===this._ms.length)return null}let i=this._ms.pop(),s=isNaN(this._from)||isNaN(this._to)||Math.abs(this._from-this._to)<Gt?e:(i-this._from)/(this._to-this._from);this._seg.queryCoord2D(s,this._pt);let{x:n,y:r}=this._seg.getTangent(s).normalize();return this.internalPlacement.setTranslate(this._pt.x-this._offset*r,this._pt.y+this._offset*n),this._angleToLine&&(this._keepUpright&&n<0&&(n=-n,r=-r),this.internalPlacement.setRotateCS(n,r)),this.internalPlacement.setMeasure(i),this.internalPlacement}}class Lt{static{this.instance=null}static local(){return null===Lt.instance&&(Lt.instance=new Lt),Lt.instance}execute(t,e,i){return new Rt(t,e,i)}}class Rt extends x{constructor(t,e,i){super(t),this._walker=new U,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._beginGap=void 0===e.beginPosition?0:e.beginPosition*i,this._endGap=void 0===e.endPosition?0:e.endPosition*i,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new Y,this._pattern.init(e.positionArray,!1),this._subPathLen=0,this._totalPathLen=0,this._posCount=this._pattern.size(),this._pathIndexes=[],this._pathLengths=[],this._pathStarts=[],this._posIndex=0,this._positions=[],this._isFirst=!0,this._prevPos=0}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){return this._pattern.isEmpty()?null:this._placePerPart?this._processPathPerPart(t):this._processMultiPart(t)}_processPathPerPart(t){let e;if(this.iteratePath){let t=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+t;e=i-this._prevPos,this._prevPos=i}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();let i=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+i;e=s-this._prevPos,this._prevPos=s,this.iteratePath=!0}let i=new D;return this._walker.nextPointAndAngle(e,i,1)?(this._posCount--,0===this._posCount&&(this.iteratePath=!1),this._setPlacement(i)):(this.iteratePath=!1,null)}_processMultiPart(t){if(!this.iteratePath){if(!this._initializeMultiPart(t))return null;this.iteratePath=!0}if(this._posIndex>=this._positions.length)return this.iteratePath=!1,null;let e=this._getPositionAtDistance(t,this._positions[this._posIndex]);if(null==e)return this.iterateMultiPath=!1,this.iteratePath=!1,null;this._posIndex++;let i=this._posIndex<this._positions.length;return this.iterateMultiPath=i,this.iteratePath=i,this._setPlacement(e)}_initializeMultiPart(t){this._pathIndexes.length=0,this._pathLengths.length=0,this._pathStarts.length=0,this._positions.length=0,this._totalPathLen=0,this._posIndex=0,this._isFirst=!0;for(let e=0;e<t.totalSize;e++){if(!t.seekPath(e))continue;let i=t.pathLength();i<=0||(this._pathIndexes.push(e),this._pathStarts.push(this._totalPathLen),this._pathLengths.push(i),this._totalPathLen+=i)}if(this._subPathLen=this._totalPathLen-this._beginGap-this._endGap,this._subPathLen<0||!this._pathIndexes.length)return!1;this._pattern.reset();for(let t=0;t<this._pattern.size();t++)this._positions.push(this._beginGap+this._pattern.nextValue()*this._subPathLen);return this._positions.length>0}_getPositionAtDistance(t,e){let i=Math.max(0,Math.min(e,this._totalPathLen)),s=this._pathIndexes.length-1;for(let t=0;t<this._pathIndexes.length-1;t++)if(i<=this._pathStarts[t]+this._pathLengths[t]){s=t;break}if(!t.seekPath(this._pathIndexes[s])||!this._walker.init(t,this._pattern,!1))return null;let n=new D,r=Math.max(0,Math.min(i-this._pathStarts[s],this._pathLengths[s]));return this._walker.nextPointAndAngle(r,n,1)?n:null}_setPlacement(t){this.internalPlacement.setTranslate(t.pt[0]-this._offset*t.sa,t.pt[1]+this._offset*t.ca);let e,i,s=this._isFirst&&this._flipFirst;return this._angleToLine?(e=t.ca,i=t.sa):(e=1,i=0),s&&(e=-e,i=-i),this.internalPlacement.setRotateCS(e,i),this._isFirst=!1,this.internalPlacement}}var Ft=i(87811);const Xt=1e-6;class Yt{static{this.instance=null}static local(){return null===Yt.instance&&(Yt.instance=new Yt),Yt.instance}execute(t,e,i,s){return new Dt(t,e,i,s)}}class Dt{constructor(t,e,i,s){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)*i,this._stepY=Math.abs(e.stepY??16)*i,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??"Fixed","Random"===this._gridType){let t=e.seed??13;this._randomLCG=new Ft.A(1*t),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)*i,this._offsetY=(e.offsetY??0)*i,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!=s){let[t,e,i,n]=s.split("/"),r=parseFloat(t),h=parseFloat(e),a=parseFloat(i),l=parseFloat(n);this._graphicOriginX=512*-(l*2**r+a),this._graphicOriginY=512*h,this._testInsidePolygon=!0}this._internalPlacement=new d.W,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!Dt._randValues){Dt._randValues=[];for(let t=0;t<24;t++)for(let t=0;t<24;t++)Dt._randValues.push(this._randomLCG.getFloat()),Dt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,i,s,n,r,h,a,l,o,u,c,_,p,f;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,a=l=p=c=Number.MAX_VALUE,o=u=f=_=-Number.MAX_VALUE;let m=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)h=t.x,r=t.y,e=h-this._graphicOriginX-this._offsetX,i=r-this._graphicOriginY-this._offsetY,m?(s=this._cosAngle*e-this._sinAngle*i,n=this._sinAngle*e+this._cosAngle*i):(s=e,n=i),a=Math.min(a,s),o=Math.max(o,s),l=Math.min(l,n),u=Math.max(u,n),c=Math.min(c,r),_=Math.max(_,r),p=Math.min(p,h),f=Math.max(f,h);c=c===Number.MAX_VALUE?-512-this._stepY:c,_=_===-Number.MAX_VALUE?this._stepY:_,p=p===Number.MAX_VALUE?-this._stepX:p,f=f===-Number.MAX_VALUE?512+this._stepX:f;let d=_-c,g=f-p;if(this._verticalSubdivision=d>=g,this._polygonMin=this._verticalSubdivision?c:p,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=512-this._graphicOriginX-this._offsetX+this._stepX,i=-512-this._graphicOriginY-this._offsetY-this._stepY,s=0-this._graphicOriginY-this._offsetY+this._stepY;if(m){let n=[[t,i],[t,s],[e,i],[e,s]];t=i=Number.MAX_VALUE,e=s=-Number.MAX_VALUE;for(let r of n){let n=this._cosAngle*r[0]-this._sinAngle*r[1],h=this._sinAngle*r[0]+this._cosAngle*r[1];t=Math.min(t,n),e=Math.max(e,n),i=Math.min(i,h),s=Math.max(s,h)}}a=a===Number.MAX_VALUE?t:Math.max(a,t),l=l===Number.MAX_VALUE?i:Math.max(l,i),o=o===-Number.MAX_VALUE?e:Math.min(o,e),u=u===-Number.MAX_VALUE?s:Math.min(u,s)}this._xMin=Math.round(a/this._stepX),this._xMax=Math.round(o/this._stepX),this._yMin=Math.round(l/this._stepY),this._yMax=Math.round(u/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,p,f,c,_)}_buildAccelerationMap(t,e,i,s,n){t.reset();let r=new Map,h=this._verticalSubdivision,a=h?n-s:i-e,l=Math.ceil(a/10);if(l<=1)return;let o,u,c,_,p,f,m,d,g,x,y,P=Math.floor(a/l);for(l++,this._delta=P,h?(g=-512-2*this._stepY,x=2*this._stepY,y=s):(g=-2*this._stepX,x=512+2*this._stepX,y=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(o=t.x,u=t.y;t.nextPoint();o=c,u=_){if(c=t.x,_=t.y,h){if(u===_||u<g&&_<g||u>x&&_>x)continue;p=Math.min(u,_),f=Math.max(u,_)}else{if(o===c||o<g&&c<g||o>x&&c>x)continue;p=Math.min(o,c),f=Math.max(o,c)}for(;p<f;)m=Math.floor((p-y)/P),Wt(m,o,u,c,_,r),p+=P;d=Math.floor((f-y)/P),d>m&&Wt(d,o,u,c,_,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);let e,i,s=this._currentY*this._stepY+this._offsetY;if(this._currentX++,"Random"===this._gridType){let n=(this._currentX%24+24)%24,r=(this._currentY%24+24)%24;e=this._graphicOriginX+t+this._stepX*this._randomness*(.5-Dt._randValues[24*r+n])*2/3,i=this._graphicOriginY+s+this._stepY*this._randomness*(.5-Dt._randValues[24*r+n+1])*2/3}else e=this._graphicOriginX+this._cosAngle*t+this._sinAngle*s,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*s;if(!this._testInsidePolygon||this._isInsidePolygon(e,i,this._geometryCursor))return this._internalPlacement.setTranslate(e,i),this._internalPlacement}}_isInsidePolygon(t,e,i){if(null==this._accelerationMap)return function(t,e,i){let s,n,r,h,a=0;for(t+=Xt,e+=Xt,i.reset();i.nextPath();)if(i.nextPoint())for(s=i.x,n=i.y;i.nextPoint();s=r,n=h)r=i.x,h=i.y,n>e!=h>e&&((r-s)*(e-n)-(h-n)*(t-s)>0?a++:a--);return 0!==a}(t,e,i);t+=Xt,e+=Xt;let s=this._verticalSubdivision,n=Math.floor(((s?e:t)-this._polygonMin)/this._delta),r=this._accelerationMap.get(n);if(!r)return!1;let h,a,l,o=0;for(let i of r){if(h=i[0],a=i[1],s){if(h[1]>e==a[1]>e)continue;l=(a[0]-h[0])*(e-h[1])-(a[1]-h[1])*(t-h[0])}else{if(h[0]>t==a[0]>t)continue;l=(a[1]-h[1])*(t-h[0])-(a[0]-h[0])*(e-h[1])}l>0?o++:o--}return 0!==o}}function Wt(t,e,i,s,n,r){let h=r.get(t);h||(h=[],r.set(t,h)),h.push([[e,i],[s,n]])}class Ut{static{this.instance=null}static local(){return null===Ut.instance&&(Ut.instance=new Ut),Ut.instance}execute(t,e,i){return new Bt(t,e,i)}}class Bt extends x{constructor(t,e,i){super(t),this._curveHelper=new P,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._relativeTo=e.relativeTo??"LineMiddle",this._position=void 0===e.startPointOffset?0:e.startPointOffset*i,this._epsilon=.001*i}processPath(t){let e=this._position;if("SegmentMidpoint"===this._relativeTo){if(this.iteratePath||=!0,t.nextPoint()){let[e,i]=[t.x,t.y],[s,n]=[0,0],r=[0,0];for(;t.nextPoint();){s=t.x,n=t.y;let h=this._curveHelper.getLength(e,i,s,n);if(h<this._epsilon){e=s,i=n;continue}let a=.5+this._position/h,[l,o]=this._curveHelper.getAngleCS(r,e,i,s,n,a),u=this._curveHelper.getCoord2D(e,i,s,n,a);return this.internalPlacement.setTranslate(u[0]-this._offset*o,u[1]+this._offset*l),this._angleToLine&&this.internalPlacement.setRotateCS(l,o),this.internalPlacement}}return this.iteratePath=!1,null}let i="LineEnd"===this._relativeTo;return this.onLine(t,e,i)}onLine(t,e,i){let s,n=!1;switch(this._relativeTo){case"LineMiddle":default:t.seekPathStart(),s=t.pathLength()/2+e;break;case"LineBeginning":s=e;break;case"LineEnd":s=e,n=!0}i?t.seekPathEnd():t.seekPathStart();let r=0;if(i?t.prevPoint():t.nextPoint()){let[e,h]=[t.x,t.y],[a,l]=[0,0],o=[0,0];for(;i?t.prevPoint():t.nextPoint();){a=t.x,l=t.y;let i=this._curveHelper.getLength(e,h,a,l);if(r+i>s){let t=(s-r)/i,[u,c]=this._curveHelper.getAngleCS(o,e,h,a,l,t),_=this._curveHelper.getCoord2D(e,h,a,l,t),p=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(_[0]-p*c,_[1]+p*u),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-u,-c):this.internalPlacement.setRotateCS(u,c)),this.internalPlacement}e=a,h=l,r+=i}}return null}}class Ht{static{this.instance=null}static local(){return null===Ht.instance&&(Ht.instance=new Ht),Ht.instance}execute(t,e,i){return new Vt(t,e,i)}}class Vt extends x{constructor(t,e,i){super(t),this._curveHelper=new P,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,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),!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;let e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let i=e[0],s=e[1];if(0!==this._offset){let t=Math.cos(e[2]),n=Math.sin(e[2]);i-=this._offset*n,s+=this._offset*t}return this.internalPlacement.setTranslate(i,s),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();let e=t.isClosed(),i=0,s=!1,n=0,r=0;if(t.seekPathStart(),t.nextPoint()){let h=t.x,a=t.y,l=t.getControlPoint(),o=!0,u=t.nextPoint();for(;u;){let c=t.x,_=t.y,p=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(h,a,c,_,0)),o?(o=!1,e?(i=n,s=l):(this._endPoints||this._controlPoints&&l)&&this._tags.push([h,a,n])):l?this._controlPoints&&this._tags.push([h,a,qt(r,n)]):this._regularVertices&&this._tags.push([h,a,qt(r,n)]),(this._angleToLine||0!==this._offset)&&(r=this._curveHelper.getAngle(h,a,c,_,1)),u=t.nextPoint(),u||(e?p||s?this._controlPoints&&this._tags.push([c,_,qt(r,i)]):this._regularVertices&&this._tags.push([c,_,qt(r,i)]):(this._endPoints||this._controlPoints&&p)&&this._tags.push([c,_,r])),h=c,a=_,l=p}}this._tagIterator=0}}function qt(t,e){let i=Math.PI;for(;Math.abs(e-t)>i+2e-15;)e-t>i?e-=2*i:e+=2*i;return(t+e)/2}var Jt=i(78957);class Zt{static{this.instance=null}static local(){return null===Zt.instance&&(Zt.instance=new Zt),Zt.instance}execute(t,e,i){return new $t(t,e,i)}}class $t{constructor(t,e,i){this._geometryCursor=t,this._offsetX=void 0===e.offsetX?0:e.offsetX*i,this._offsetY=void 0===e.offsetY?0:e.offsetY*i,this._method=void 0===e.method?"OnPolygon":e.method,this._placementPerPart=void 0!==e.placePerPart&&e.placePerPart,this._internalPlacement=new d.W}next(){let t=this._geometryCursor;if(!t)return null;if(!this._placementPerPart)return this._geometryCursor=null,this._polygonCenter(t);for(;t.nextPath();)if(!(t.getCurrentRingArea()<0))return this._polygonCenter(t.getCurrentPath());return this._geometryCursor=null,null}_polygonCenter(t){let e=!1;switch(this._method){case"CenterOfMass":{let i=(0,lt.TP)(t);i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}break;case"BoundingBoxCenter":{let i=(0,J.z8)(t);i&&(this._internalPlacement.setTranslate((i[2]+i[0])/2+this._offsetX,(i[3]+i[1])/2+this._offsetY),e=!0)}break;default:{let i=(0,Jt.d)(t);null!==i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}var jt=i(86235),Kt=i(14057);class Qt{static{this.instance=null}static local(){return null===Qt.instance&&(Qt.instance=new Qt),Qt.instance}execute(t,e,i){return new te(t,i)}}class te{constructor(t,e){this._cursor=t,this._context=e}next(){let t=this._cursor.next();if(!t||0===t.totalSize)return null;if(this._context.callout?.preserveInputGeometry)return t;let{matcher:e,target:i,tileKey:s}=this._context,n=e&&i&&null!=s?e.getMatcherGeometryOverride((0,Kt.$)(s,i.getObjectId())):null;if(!n)return t;let r=u.z.fromOptimizedCIM(n.geometry.clone(),n.geometryType);return r.invertY(),r}}class ee{static{this.instance=null}static local(){return null===ee.instance&&(ee.instance=new ee),ee.instance}execute(t){return new ie(t)}}class ie extends x{constructor(t){super(t),this._curveHelper=new P}processPath(t){if(this.iteratePath=!0,t.nextPoint()){let[e,i]=[t.x,t.y];if(t.nextPoint()){let[s,n]=[t.x,t.y],r=(e+s)/2,h=(i+n)/2;this.internalPlacement.setTranslate(r,h);let a=this._curveHelper.getAngle(e,i,s,n,0);return this.internalPlacement.setRotate(a),this.internalPlacement}}return this.iteratePath=!1,null}}function se(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return p.local();case"CIMGeometricEffectArrow":return M.local();case"CIMGeometricEffectBuffer":return w.local();case"CIMGeometricEffectCircularSector":return T.local();case"CIMGeometricEffectControlMeasureLine":return N.local();case"CIMGeometricEffectCut":return R.local();case"CIMGeometricEffectDashes":return B.local();case"CIMGeometricEffectDonut":return V.local();case"CIMGeometricEffectJog":return tt.local();case"CIMGeometricEffectMove":return it.local();case"CIMGeometricEffectOffset":return rt.local();case"CIMGeometricEffectRadial":return ot.local();case"CIMGeometricEffectReverse":return ct.local();case"CIMGeometricEffectRotate":return ft.local();case"CIMGeometricEffectScale":return dt.local();case"CIMGeometricEffectSuppress":return yt.local();case"CIMGeometricEffectTaperedPolygon":return wt.local();case"CIMGeometricEffectWave":return It.local();case"CIMGeometricEffectEnclosingPolygon":return Z.local();case"CIMSimpleLineCallout":return c.local();case"CIMBackgroundCallout":return n.local();case"CIMBalloonCallout":return h.local();case"CIMPointSymbolCallout":return l.local();case"PrivateDimensionEffect":return jt.HZ.local();case"PrivateMatcherGeometryOverrideEffect":return Qt.local()}return null}function ne(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return kt.local();case"CIMMarkerPlacementAtExtremities":return Tt.local();case"CIMMarkerPlacementAtMeasuredUnits":return Ot.local();case"CIMMarkerPlacementAtRatioPositions":return Lt.local();case"CIMMarkerPlacementInsidePolygon":return Yt.local();case"CIMMarkerPlacementOnLine":return Ut.local();case"PrivatePlacementMultipoint":return ee.local();case"CIMMarkerPlacementOnVertices":return Ht.local();case"CIMMarkerPlacementPolygonCenter":return Zt.local()}return null}},98939(t,e,i){i.d(e,{W:()=>s});class s{constructor(){this.setIdentity()}getAngle(){return 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=Math.atan2(e,t),this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=Math.cos(t),this.rzSin=Math.sin(t)}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},23650(t,e,i){i.d(e,{OverrideHelper:()=>_});var s=i(68197),n=i(85334),r=i(4718),h=i(95466),a=i(55674),l=i(45733),o=i(93397),u=i(37615);const c=t=>{if(!t)return[0,0,0,0];let{r:e,g:i,b:s,a:n}=t;return[e,i,s,255*n]};class _{static findApplicableOverrides(t,e,i){if(t&&e){if(t.primitiveName){let s=!1;for(let e of i)if(e.primitiveName===t.primitiveName){s=!0;break}if(!s)for(let s of e)s.primitiveName===t.primitiveName&&i.push(s)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(let s of t.effects)_.findApplicableOverrides(s,e,i);if(t.symbolLayers)for(let s of t.symbolLayers)_.findApplicableOverrides(s,e,i);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMVectorMarker":case"CIMCharacterMarker":case"CIMPictureMarker":if(t.effects)for(let s of t.effects)_.findApplicableOverrides(s,e,i);if(t.markerPlacement&&_.findApplicableOverrides(t.markerPlacement,e,i),"CIMVectorMarker"===t.type){if(t.markerGraphics)for(let s of t.markerGraphics)_.findApplicableOverrides(s,e,i),_.findApplicableOverrides(s.symbol,e,i)}else"CIMCharacterMarker"===t.type?_.findApplicableOverrides(t.symbol,e,i):"CIMHatchFill"===t.type?_.findApplicableOverrides(t.lineSymbol,e,i):"CIMPictureMarker"===t.type&&_.findApplicableOverrides(t.animatedSymbolProperties,e,i)}}}static findEffectOverrides(t,e){if(!t)return null;if("CIMGeometricEffectDashes"===t.type&&(0,l.FH)(t),!e||!t.primitiveName)return{type:"cim-effect-param",effect:t,overrides:[]};let i=(0,o.rB)(t),s=t.primitiveName,n=[];for(let t of e)t.primitiveName===s&&n.push((0,o.rB)(t));return{type:"cim-effect-param",effect:i,overrides:(0,o.pk)(n)}}static async resolveSymbolOverrides(t,e,i,s,n,a,l){if(!t?.symbol)return null;let{symbol:u,primitiveOverrides:c}=t,p=!!c;if(!p&&!s)return u;u=(0,r.o8)(u),c=(0,r.o8)(c);let f=!0;if(e||(e={attributes:{}},f=!1),p){if(f||(c=c.filter(t=>!t.valueExpressionInfo?.expression.includes("$feature"))),l||(c=c.filter(t=>!t.valueExpressionInfo?.expression.includes("$view"))),c.length>0){let t=(0,o.O2)(e.attributes),s={spatialReference:i,fields:t,geometryType:n};await _.createRenderExpressions(c,s),_.evaluateOverrides(c,e,n??"esriGeometryPoint",a,l,new h.A(t))}_.applyOverrides(u,c)}return s&&_.applyDictionaryTextOverrides(u,e,s,null),u}static{this._expressionToRenderExpression=new Map}static async createRenderExpressions(t,e){let i=[];for(let s of t){let t=s.valueExpressionInfo;if(!t||_._expressionToRenderExpression.has(t.expression))continue;let n=(0,a.Ad)(t.expression,e.spatialReference);i.push(n),n.then(e=>_._expressionToRenderExpression.set(t.expression,e))}i.length>0&&await Promise.all(i)}static evaluateOverrides(t,e,i,s,r,h){let a={$view:{scale:r?.scale}};for(let r of t){r.value&&"object"==typeof r.value&&(0,n.IB)(r.value)&&("Color"===r.propertyName||"StrokeColor"===r.propertyName)&&(r.value=c(r.value));let t=r.valueExpressionInfo;if(!t)continue;let l=_._expressionToRenderExpression.get(t.expression);l&&(r.value=(0,u.A)(l,e,a,i,h,s),r.value=this.toValue(r.propertyName,r.value))}}static applyDictionaryTextOverrides(t,e,i,s,n="Normal"){if(t?.type)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":case"CIMTextSymbol":{let r=t.symbolLayers;if(!r)return;for(let h of r)h&&"CIMVectorMarker"===h.type&&_.applyDictionaryTextOverrides(h,e,i,s,"CIMTextSymbol"===t.type?t.textCase:n)}break;case"CIMVectorMarker":{let n=t.markerGraphics;if(!n)return;for(let t of n)t&&_.applyDictionaryTextOverrides(t,e,i,s)}break;case"CIMMarkerGraphic":{let r=t.textString;if(r&&r.includes("[")){let h=(0,o.gQ)(r,i);t.textString=(0,o.FM)(e,h,s,n)}}}}static applyOverrides(t,e,i,s){if(t.primitiveName)for(let n of e)if(n.primitiveName===t.primitiveName){let e=(0,o.YF)(n.propertyName);if(s&&s.push({cim:t,nocapPropertyName:e,value:t[e]}),i){let e=!1;for(let s of i)s.primitiveName===t.primitiveName&&(e=!0);e||i.push(n)}null!=n.value&&(t[e]=n.value)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(let n of t.effects)_.applyOverrides(n,e,i,s);if(t.symbolLayers)for(let n of t.symbolLayers)_.applyOverrides(n,e,i,s);break;case"CIMTextSymbol":_.applyOverrides(t.symbol,e,i,s);break;case"CIMSolidStroke":case"CIMSolidFill":case"CIMVectorMarker":if(t.effects)for(let n of t.effects)_.applyOverrides(n,e,i,s);if("CIMVectorMarker"===t.type&&t.markerGraphics)for(let n of t.markerGraphics)_.applyOverrides(n,e,i,s),_.applyOverrides(n.symbol,e,i,s)}}static restoreOverrides(t){for(let e of t)e.cim[e.nocapPropertyName]=e.value}static buildOverrideKey(t){let e="";for(let i of t)void 0!==i.value&&(e+=`${i.primitiveName}${i.propertyName}${JSON.stringify(i.value)}`);return e}static toValue(t,e){if(null==e)return null;if("DashTemplate"===t)return e.split(" ").map(t=>Number(t));if("Color"===t||"StrokeColor"===t){let t=new s.A(e).toRgba();return t[3]*=255,t}return e}}},34653(t,e,i){i.d(e,{E0:()=>c,gX:()=>u,gR:()=>o,W:()=>d,ZO:()=>y,IF:()=>x,n_:()=>_,DJ:()=>g,_T:()=>m,Io:()=>b,EE:()=>h,pT:()=>P,Je:()=>M,sz:()=>p,XD:()=>l,QB:()=>a});var s=i(36745);function n(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin),h=1/Math.sqrt(e.x*e.x/(n*n)+e.y*e.y/(r*r));return{x:i+e.x*h,y:s+e.y*h}}function r(t,e,i){let s=.5*(t.xmin+t.xmax),n=.5*(t.ymin+t.ymax),r=.5*(t.xmax-t.xmin),h=.5*(t.ymax-t.ymin),a=e.x-s,l=e.y-n,o=i.x-e.x,u=i.y-e.y,c=o*o/(r*r)+u*u/(h*h),_=2*(a*o/(r*r)+l*u/(h*h)),p=a*a/(r*r)+l*l/(h*h)-1,f=Math.max(_*_-4*c*p,0),m=(-_-Math.sqrt(f))/(2*c),d=(-_+Math.sqrt(f))/(2*c),g=m>=0&&m<=1?m:d;return{x:e.x+o*g,y:e.y+u*g}}function h(t,e){let{relativeAnchor:i,relativeLayoutAnchor:s,absoluteAnchor:n,bodyBounds:r}=e??{},h=t.clone();if("esriGeometryPoint"===h.geometryType||"esriGeometryMultipoint"===h.geometryType){if(!h.nextPath()||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:r?a(r,h.x,h.y):{xmin:h.x,ymin:h.y,xmax:h.x,ymax:h.y}}}if(r&&1===h.totalSize&&1===h.totalPoints){if(!h.seekPath(0)||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:a(r,h.x,h.y)}}if(h.totalSize<2)return null;function a(t,e,i){return{xmin:t.xmin+e,ymin:t.ymin+i,xmax:t.xmax+e,ymax:t.ymax+i}}let l=h.totalSize-1,o={xmin:1/0,ymin:1/0,xmax:-1/0,ymax:-1/0};for(let t=0;t<l;t++){if(!h.seekPath(t))return null;for(h.seekPathStart();h.nextPoint();)C(o,h.x,h.y)}return function(t){return Number.isFinite(t.xmin)&&Number.isFinite(t.ymin)&&Number.isFinite(t.xmax)&&Number.isFinite(t.ymax)}(o)&&h.seekPath(l)&&(h.seekPathStart(),h.nextPoint())?{anchor:n??{x:h.x,y:h.y},layoutAnchor:n??{x:h.x,y:h.y},bounds:o}:null}function a(t,e){return{left:(t?.left??0)*e,right:(t?.right??0)*e,top:(t?.top??0)*e,bottom:(t?.bottom??0)*e}}function l(t,e){return{xmin:t.xmin-e.left,ymin:t.ymin-e.bottom,xmax:t.xmax+e.right,ymax:t.ymax+e.top}}function o(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}function u(t){return{x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)}}function c(t,e,i=0){let s,n,r=t.xmin-i,h=t.ymin-i,a=t.xmax+i,l=t.ymax+i,o=.5*(r+a),u=.5*(h+l);return s=e.x<r?r:e.x>a?a:e.x<o?Math.abs(e.x-r)<Math.abs(e.x-o)?r:o:Math.abs(e.x-a)<Math.abs(e.x-o)?a:o,n=e.y<h?h:e.y>l?l:e.y<u?Math.abs(e.y-h)<Math.abs(e.y-u)?h:u:Math.abs(e.y-l)<Math.abs(e.y-u)?l:u,{x:s,y:n}}function _(t,e,i,s,n,r,h=1,a=!1,l=t){let o=N(t,e,i??0,n,9*h,a,l);return v(function(t){return t.filter((e,i)=>0===i||e.x!==t[i-1].x||e.y!==t[i-1].y)}(s>0?function(t,e){return function(t,e){let i=e;for(let e=1;e<t.length;e++){let s=t[e-1],n=t[e],r=b(s,n);if(i<r){let h=i/r;return[{x:s.x+h*(n.x-s.x),y:s.y+h*(n.y-s.y)},...t.slice(e)]}i-=r}return[t[t.length-1]]}(t.slice().reverse(),e).reverse()}(o,s):o),r)}function p(t,e,i,s,n=!1,r=t){let h=i??0;return 0!==h||n?f(L(t,e,h,s,r),e,h):c(t,e,s)}function f(t,e,i){let s=R(t.start,t.end);switch(i){case 1:case 2:case 3:return s;case 4:return e.y>s.y?t.end:t.start;case 5:case 6:return b(t.start,e)>b(t.end,e)?t.end:t.start;default:return b(t.start,e)<b(t.end,e)?t.start:t.end}}function m(t,e){return w([{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}],e)}function d(t,e,i,s,n=null,r=t){let{start:h,end:a}=L(t,e,n??0,i,r);return v([h,a],s)}function g(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPoint",!1,!1,e);return i.startPath(),i.pushXY(t.x,e*t.y),i.reset(),i}function x(t,e,i,s,n,r=null,h=e,a=!0){let l=P(t,i),u=!a||o(l,h)?null:A(l,t,h,e,i,s,r);switch(i){case 1:return function(t,e,i){let s=function(t){let e=M(t,1),i=[{x:t.xmin+e,y:t.ymin}];return E(i,t.xmin+e,t.ymin+e,e,-Math.PI/2,-Math.PI),i.push({x:t.xmin,y:t.ymax-e}),E(i,t.xmin+e,t.ymax-e,e,Math.PI,Math.PI/2),i.push({x:t.xmax-e,y:t.ymax}),E(i,t.xmax-e,t.ymax-e,e,Math.PI/2,0),i.push({x:t.xmax,y:t.ymin+e}),E(i,t.xmax-e,t.ymin+e,e,0,-Math.PI/2),i.push(i[0]),i}(t);return e&&G(s,e),w(s,i)}(l,u,n);case 2:return function(t,e,i){if(!e)return function(t,e){return w(function(t){let e=[];for(let i=0;i<32;i++)e.push(z(t,2*Math.PI*i/32));return e}(t),e)}(t,i);let s=I(t,e.points[0]),n=I(t,e.points[e.points.length-1]),r=k(n-s),h=Math.min(r,2*Math.PI-r),a=r<=Math.PI?e.points.slice():[e.points[e.points.length-1],e.points[1],e.points[0]],l=r<=Math.PI?n:s,o=2*Math.PI-h,u=Math.max(1,Math.ceil(S*o/(2*Math.PI)));for(let e=1;e<u;e++)a.push(z(t,l+o*e/u));return w(a,i)}(l,u,n);default:return function(t,e,i){let s=[{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}];return e&&G(s,e),w(s,i)}(l,u,n)}}function y(t,e,i,s,n,r=null,h=e){let a=P(t,i),l=o(a,h)?null:A(a,t,h,e,i,s,r);return l?w(l.points,n):null}function P(t,e){if(2!==e)return t;let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.ymax-t.ymin),r=Math.max(.5*(t.xmax-t.xmin)*Math.SQRT2,1.25*n);return{xmin:i-r,ymin:s-n,xmax:i+r,ymax:s+n}}function M(t,e){return 1===e?Math.min(t.xmax-t.xmin,t.ymax-t.ymin)/8:0}function b(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}function C(t,e,i){t.xmin=Math.min(t.xmin,e),t.ymin=Math.min(t.ymin,i),t.xmax=Math.max(t.xmax,e),t.ymax=Math.max(t.ymax,i)}function v(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,e);i.startPath();for(let s of t)i.pushXY(s.x,e*s.y);return i.reset(),i}function w(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,e);i.startPath();for(let s of function(t){if(!t.length)return t;let e=t[0],i=t[t.length-1];return e.x===i.x&&e.y===i.y?t:[...t,e]}(t))i.pushXY(s.x,e*s.y);return i.reset(),i}const S=32;function I(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin);return k(Math.atan2((e.y-s)/r,(e.x-i)/n))}function z(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin);return{x:i+n*Math.cos(e),y:s+r*Math.sin(e)}}function k(t){let e=t%(2*Math.PI);return e<0?e+2*Math.PI:e}function A(t,e,i,s,n,r,h){if(2===n)return T(t,e,i,s,r,h);let a=t.xmax-t.xmin,l=t.ymax-t.ymin,o=t.xmin+a/2,u=t.ymin+l/2,c=-1;if(i.x>=t.xmin&&i.x<=t.xmax?i.y<=t.ymin?c=i.x<=o?7:6:i.y>=t.ymax&&(c=i.x<=o?2:3):c=i.x<t.xmin?i.y<=u?0:1:i.y<=u?5:4,c<0)return null;let _=function(t){let e=t.xmax-t.xmin,i=t.ymax-t.ymin;return[{x:t.xmin,y:t.ymin+i/4},{x:t.xmin,y:t.ymax-i/4},{x:t.xmin+e/4,y:t.ymax},{x:t.xmax-e/4,y:t.ymax},{x:t.xmax,y:t.ymax-i/4},{x:t.xmax,y:t.ymin+i/4},{x:t.xmax-e/4,y:t.ymin},{x:t.xmin+e/4,y:t.ymin}]}(t)[c];if(b(_,i)<r)return null;let p,f,m=M(t,n),d=1===n?a/4-m:a/2,g=1===n?l/4-m:l/2,x=null==h?a/8:Math.min(h/2,Math.max(d,0)),y=null==h?l/8:Math.min(h/2,Math.max(g,0));switch(c){case 0:case 1:p={x:_.x,y:_.y-y},f={x:_.x,y:_.y+y};break;case 2:case 3:p={x:_.x-x,y:_.y},f={x:_.x+x,y:_.y};break;case 4:case 5:p={x:_.x,y:_.y+y},f={x:_.x,y:_.y-y};break;default:p={x:_.x+x,y:_.y},f={x:_.x-x,y:_.y}}return{index:c,points:[p,s,f]}}function T(t,e,i,s,h,a){let l={x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)},o=i.x-l.x,u=i.y-l.y,c=Math.hypot(o,u);if(0===c)return null;let _={x:o/c,y:u/c};if(b(n(t,_),i)<h)return null;let p={x:-_.y,y:_.x},f=b(l,n(t,p)),m=Math.min(e.xmax-e.xmin,e.ymax-e.ymin)/8,d=Math.min(null==a?m:a/2,f),g={x:l.x-p.x*d,y:l.y-p.y*d};return{index:-1,points:[r(t,i,{x:l.x+p.x*d,y:l.y+p.y*d}),s,r(t,i,g)]}}function E(t,e,i,s,n,r){for(let h=1;h<=4;h++){let a=n+(r-n)*h/4;t.push({x:e+s*Math.cos(a),y:i+s*Math.sin(a)})}}function G(t,e){let[i,,s]=e.points;for(let n=0;n<t.length-1;n++)if(O(i,t[n],t[n+1])&&O(s,t[n],t[n+1]))return void t.splice(n+1,0,...e.points)}function O(t,e,i){let s=1e-9,n=(t.x-e.x)*(i.y-e.y)-(t.y-e.y)*(i.x-e.x);return!(Math.abs(n)>s)&&t.x>=Math.min(e.x,i.x)-s&&t.x<=Math.max(e.x,i.x)+s&&t.y>=Math.min(e.y,i.y)-s&&t.y<=Math.max(e.y,i.y)+s}function N(t,e,i,s,n,r,h){if(0===i&&!r)return[c(t,e,s),e];let a=L(t,e,i,s,h),l=f(a,e,i);switch(i){case 1:default:return[l,e];case 2:return[l,F(l,a.onLeft,n),e];case 3:{let t=F(l,a.onLeft,n),i=b(a.start,e)<b(a.end,e)?a.start:a.end;return[l,t,{x:t.x,y:i.y},e]}case 4:return[{x:a.onLeft?t.xmax:t.xmin,y:l.y},l,e];case 5:case 6:return function(t,e,i){let s=b(t,e);if(0===s)return[t];let n=.75*s,r=R(t,e),h=Math.sqrt(n*n-.25*s*s),a=-(e.y-t.y)/s,l=(e.x-t.x)/s,o=i?-1:1,u=r.x+o*h*a,c=r.y+o*h*l,_=Math.atan2(t.y-c,t.x-u),p=Math.atan2(e.y-c,e.x-u)-_;i&&p>0?p-=2*Math.PI:!i&&p<0&&(p+=2*Math.PI);let f=[t];for(let t=1;t<=12;t++){let e=_+p*t/12;f.push({x:u+n*Math.cos(e),y:c+n*Math.sin(e)})}return f[12]=e,f}(l,e,5===i)}}function L(t,e,i,s,n){let r=e.x<=.5*(n.xmin+n.xmax);3===i&&(r=!r);let h=r?t.xmin-s:t.xmax+s;return{start:{x:h,y:t.ymin},end:{x:h,y:t.ymax},onLeft:r}}function R(t,e){return{x:.5*(t.x+e.x),y:.5*(t.y+e.y)}}function F(t,e,i){return{x:t.x+(e?-i:i),y:t.y}}},35521(t,e,i){var s=i(28076);s.D.CIMSolidStroke.capstyle,s.D.CIMSolidStroke.joinstyle,s.D.CIMSolidStroke.miterlimit},75585(t,e,i){function s(t){let e="normal",i="normal";if(t){let s=t.toLowerCase();s.includes("italic")?e="italic":s.includes("oblique")&&(e="oblique"),s.includes("bold")?i="bold":s.includes("light")&&(i="lighter")}return{style:e,weight:i}}i.d(e,{_:()=>s})},69754(t,e,i){i.d(e,{Z:()=>o,q:()=>l});var s=i(68197),n=i(75585);const r=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,h=/&(amp|lt|gt|quot|apos);/g,a=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|UND|_UND|FNT|CHR)\b/i;function l(t){return a.test(t)}function o(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;let e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),i=[],s=[],n=u(e),r="",h=!1,a=t.textString,l=()=>{if(!r)return;let t=c(r);if(!t)return void(r="");let e=s[s.length-1];e&&function(t,e){return t.fontSize===e.fontSize&&t.characterSpacing===e.characterSpacing&&t.font.family===e.font.family&&t.font.style===e.font.style&&t.font.weight===e.font.weight&&t.font.decoration===e.font.decoration&&function(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}(t.color,e.color)}(e,n)?e.text+=t:s.push({text:t,font:{...n.font},fontSize:n.fontSize,characterSpacing:n.characterSpacing,color:n.color}),r=""},o=0;for(;o<a.length;){let t=a[o];if("<"!==t){r+=t,o++;continue}let e=a.indexOf(">",o+1);if(-1===e)return null;let s=_(a.slice(o+1,e));if(!s)return null;if(h=!0,l(),s.isEnd){let t=i.pop();if(!t||t.name!==s.name)return null;n=t.previous}else{let t=u(n);n=p(n,s),i.push({name:s.name,previous:t})}o=e+1}return i.length?null:(l(),h?s.filter(t=>t.text.length>0):null)}function u(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function c(t){return t.replaceAll(h,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function _(t){let e=t.trim();if(!e)return null;let i=e.startsWith("/"),s=i?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(s);if(!n)return null;let h,a=n[1],l=s.slice(a.length),o={};for(r.lastIndex=0;h=r.exec(l);)o[h[1]]=h[3];return{isEnd:i,name:a,attributes:o}}function p(t,e){let i=u(t);switch(e.name.toUpperCase()){case"BOL":i.font.weight="bold";break;case"_BOL":i.font.weight="normal";break;case"ITA":i.font.style="italic";break;case"_ITA":i.font.style="normal";break;case"UND":i.font.decoration="underline";break;case"_UND":i.font.decoration="none";break;case"FNT":!function(t,e){let{name:i,style:s,size:r,scale:h,wght:a,ital:l}=e;if(i&&(t.font.family=i),s){let e=(0,n._)(s);t.font.style=e.style,t.font.weight=e.weight}if(a){let e=Number(a);t.font.weight=e>=600?"bold":"normal"}if(l){let e=Number(l);isNaN(e)||(t.font.style=0===e?"normal":"italic")}if(r){let e=Number(r);!isNaN(e)&&e>0&&(t.fontSize=e)}if(h){let e=Number(h);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(i,e.attributes);break;case"CLR":i.color=function(t){if(t.hex){let e=s.A.fromHex(t.hex)?.toArray();if(e){let i="alpha"in t?d(t.alpha):e[3];return[e[0],e[1],e[2],i]}}if("red"in t||"green"in t||"blue"in t)return[f(t.red),f(t.green),f(t.blue),d(t.alpha)];let e=m(t.cyan),i=m(t.magenta),n=m(t.yellow),r=m(t.black),h=d(t.alpha),a=m(t.tint,100)/100,l=1-r;return[Math.round(255*(1-e)*l*a),Math.round(255*(1-i)*l*a),Math.round(255*(1-n)*l*a),h]}(e.attributes);break;case"CHR":!function(t,e){let i=Number(e.spacing);!isNaN(i)&&i>=0&&(t.characterSpacing=i/100)}(i,e.attributes)}return i}function f(t){let e=Number(t);return function(t){return Math.max(0,Math.min(255,Math.round(t)))}(isNaN(e)?0:e)}function m(t,e=0){let i=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(i)?e:i)/100)}function d(t){return Math.round(255*m(t,100))}},37615(t,e,i){i.d(e,{A:()=>h});var s=i(49186),n=i(53966),r=i(62577);function h(t,e,i,s,r,h){if(null==t)return null;let a=t.references("geometry")&&h?l(e,s,h):e,o=t.repurposeFeature(a,r);try{return t.evaluate(o,i)}catch(t){return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",t),null}}const a=new Map;function l(t,e,i){let{transform:h,hasZ:l,hasM:o}=i;a.has(e)||a.set(e,function(t){let e={};switch(t){case"esriGeometryPoint":return(t,i,s,n)=>(0,r.Tr)(i,e,t,s,n);case"esriGeometryPolygon":return(t,i,s,n)=>(0,r.$X)(i,e,t,s,n);case"esriGeometryPolyline":return(t,i,s,n)=>(0,r.P5)(i,e,t,s,n);case"esriGeometryMultipoint":return(t,i,s,n)=>(0,r.SW)(i,e,t,s,n);default:return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").error(new s.A("mapview-arcade",`Unable to handle geometryType: ${t}`)),t=>t}}(e));let u=a.get(e)(t.geometry,h,l,o);return{...t,geometry:u}}},18989(t,e,i){i.d(e,{A:()=>s});class s{constructor(t=0,e=0,i=0,s=0){this.x=t,this.y=e,this.width=i,this.height=s}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)}}},63933(t,e,i){function s(t){if(!t)return 0;switch(t){case"Left":case"left":return-1;case"Right":case"right":return 1;case"justify":case"Justify":return 2;case"Center":case"center":return 0}}function n(t){if(!t)return 0;switch(t){case"Top":case"top":return 1;case"Center":case"middle":return 0;case"Baseline":case"baseline":return 2;case"Bottom":case"bottom":return-1}}function r(t){switch(t){case 1:case"right":return-1;case 2:case"justify":return 1;case 0:case"center":return 0;case-1:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function h(t){switch(t){case 1:case"top":return 1;case 0:case"middle":return 0;case-1:case 2:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}i.d(e,{Dy:()=>h,UD:()=>n,iT:()=>r,xy:()=>s})},15660(t,e,i){i.d(e,{A:()=>n});var s=i(88340);class n{constructor(t,e,i,n){this.transformedX=0,this.transformedY=0,this.center=(0,s.fA)(t,e),this.centerT=(0,s.vt)(),this.halfWidth=i/2,this.halfHeight=n/2,this.width=i,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){let i=Math.abs(t.centerT[0]-this.centerT[0]),s=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/i,r=(t.halfHeight+this.halfHeight+e)/s;return Math.log2(Math.min(n,r))}extend(t){let e=Math.min(this.xmin,t.xmin),i=Math.min(this.ymin,t.ymin),s=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-i,r=e+s/2,h=i+n/2;this.width=s,this.height=n,this.halfWidth=s/2,this.halfHeight=n/2,this.x=r,this.y=h}static deserialize(t){let e=t.readF32(),i=t.readF32(),s=t.readInt32(),r=t.readInt32();return new n(e,i,s,r)}}},75434(t,e,i){i.d(e,{HB:()=>v,tA:()=>C});var s=i(90629),n=i(16905),r=i(85560),h=i(37585),a=i(88340),l=i(63933),o=i(18989),u=i(15660);const c=Math.PI/180;class _{static fromGlyph(t,e,i,s,n){let{mosaicItem:r,rect:h,shaping:a,code:l}=i,o=r.rect;return new _({width:0===l?h.width:o.width*s,height:0===l?h.height:o.height*s,x:s*(t+a.xOffset+h.left),y:s*(e+a.yOffset-h.top),textureBinding:r.textureBinding,texcoords:{topLeft:[o.x,o.y],topRight:[o.x+o.width,o.y],bottomLeft:[o.x,o.y+o.height],bottomRight:[o.x+o.width,o.y+o.height]},fontSize:n?.fontSize,color:n?.color})}constructor(t){this._rotationT=(0,r.vt)(),this._transform=(0,r.vt)(),this._angle=0,this._bounds=null,this.width=t.width,this.height=t.height,this.x=t.x,this.y=t.y,this.textureBinding=t.textureBinding,this.texcoords=t.texcoords,this.fontSize=t.fontSize,this.color=t.color}set angle(t){this._angle=t,(0,n.$0)(this._rotationT,-t),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){let{x:t,y:e,width:i,height:s}=this,a=(0,n.$0)((0,r.vt)(),-this.angle),l=(0,n.lw)((0,r.vt)(),a,this._transform);this._offsets={topLeft:(0,h.l0)([0,0],[t,e],l),topRight:(0,h.l0)([0,0],[t+i,e],l),bottomLeft:(0,h.l0)([0,0],[t,e+s],l),bottomRight:(0,h.l0)([0,0],[t+i,e+s],l)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){let t=this.offsets,e=1/0,i=1/0,s=-1/0,n=-1/0;for(let[r,h]of[t.topLeft,t.topRight,t.bottomLeft,t.bottomRight])e=Math.min(e,r),i=Math.min(i,h),s=Math.max(s,r),n=Math.max(n,h);let r=s-e,h=n-i,a=e+r/2,l=i+h/2;this._bounds=new u.A(a,l,r,h)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}}const p=(t,e)=>({code:0,mosaicItem:{rect:new o.A(0,0,11,8),sdf:!0,page:0,textureBinding:e},rect:{height:4,width:t,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function f(t){return"underline"===t?(0,s.Lz)(2):0}function m(t,e,i,s,n){switch(t){case"underline":return(i??n?.baseline??22)+4+f(t)/e;case"line-through":return s??n?.midline??16;default:return 0}}function d(t,e){return t.forEach(t=>(0,h.l0)(t,t,e)),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class g{constructor(t,e,i,s){this._rotation=0,this._decorate(t,e,i,s),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==i.angle,this._transform=this._createGlyphTransform(this.bounds,i),this._borderLineSizePx=i.borderLineSizePx,(i.borderLineSizePx||i.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(let e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;let e=this._transform,i=(0,n.$0)((0,r.vt)(),t);(0,n.lw)(e,i,e);for(let t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,i,s){if(!i.decoration||"none"===i.decoration||!t.length)return;let n=i.scale,r=t[0].textureBinding;for(let h of e){let e=h.scale??n,a=m(i.decoration,e,h.baseline,h.midline,s),l=h.startX*e,o=h.startY*e,u=(h.width+h.glyphWidthEnd)*e;t.push(_.fromGlyph(l,o+a*e,p(u,r),1))}}shapeBackground(t){let e=(1.5+(this._borderLineSizePx||0))/2,i=this._borderLineSizePx?e:0,{xmin:s,ymin:n,xmax:r,ymax:h,x:a,y:l,width:o,height:c}=this.bounds,_=[s-8,n-8],p=[r+8,n-8],f=[s-8,h+8],m=[r+8,h+8],g=d([[_[0]-e,_[1]-e],[p[0]+e,p[1]-e],[_[0]+i,_[1]+i],[p[0]-i,p[1]+i]],t),x=d([[f[0]+i,f[1]-i],[m[0]-i,m[1]-i],[f[0]-e,f[1]+e],[m[0]+e,m[1]+e]],t),y=d([[_[0]-e,_[1]-e],[_[0]+i,_[1]+i],[f[0]-e,f[1]+e],[f[0]+i,f[1]-i]],t),P=d([[p[0]-i,p[1]+i],[p[0]+e,p[1]-e],[m[0]-i,m[1]-i],[m[0]+e,m[1]+e]],t),M={main:d([_,p,f,m],t),top:g,bot:x,left:y,right:P};return[new u.A(a,l,o+2*e,c+2*e),M]}get boundsT(){let t=this.bounds,e=(0,h.hZ)((0,a.vt)(),t.x,t.y);if((0,h.l0)(e,e,this._transform),this._hasRotation){let i=Math.max(t.width,t.height);return new u.A(e[0],e[1],i,i)}return new u.A(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,i=1/0,s=0,n=0;for(let r of t)e=Math.min(e,r.offsets.topLeft[0]),i=Math.min(i,r.offsets.topLeft[1]),s=Math.max(s,r.offsets.bottomRight[0]),n=Math.max(n,r.offsets.bottomRight[1]);let r=s-e,h=n-i,a=e+r/2,l=i+h/2;return new u.A(a,l,r,h)}_createGlyphTransform(t,e){let i=c*e.angle,s=(0,r.vt)(),l=(0,a.vt)();return(0,n.Tl)(s,s,(0,h.hZ)(l,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,n.e$)(s,s,i):((0,n.Tl)(s,s,(0,h.hZ)(l,t.x,t.y)),(0,n.e$)(s,s,i),(0,n.Tl)(s,s,(0,h.hZ)(l,-t.x,-t.y))),s}}class x{constructor(t,e,i,s,n,r){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,i)),this.end=Math.max(0,Math.max(e,i)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].rect.width),this.width=s,this.yMin=n,this.yMax=r}}const y=t=>10===t,P=t=>32===t;function M(t,e,i){let s=[],n=1/i.scale,r=i.maxLineWidth*n,h=t.length,a=0,l=0,o=0,u=a,c=u,_=0,p=1/0,f=0;for(;a!==h;){let{code:e,rect:i,shaping:n}=t[a],h=Math.abs(i.top);if(!y(e)&&!P(e)&&(p=Math.min(p,h),f=Math.max(f,h+i.height)),y(e))0!==a&&(s.push(new x(t,u,a-1,l,p===1/0?0:p,f)),p=1/0,f=0),l=0,u=a+1,c=a+1,o=0;else if(P(e))c=a+1,o=0,_=n.xAdvance,l+=n.xAdvance;else if(l>r){if(c!==u){let e=c-2;l-=_,s.push(new x(t,u,e,l-o,p,f)),p=1/0,f=0,u=c,l=o}else s.push(new x(t,u,a-1,l,p,f)),p=1/0,f=0,u=a,c=a,l=0;l+=n.xAdvance,o+=n.xAdvance}else l+=n.xAdvance,o+=n.xAdvance;a+=1}let m=new x(t,u,a-1,l,p,f);return m.start>=0&&m.end<t.length&&s.push(m),s}function b(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].code)&&!y(t[n+1].code)&&s++;return s}function C(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,s=[],n=t.sdfPadding,{faceInfo:r,glyphs:h,isRightToLeft:a}=t,o="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,u=M(h,0,e),c=u.length?function(t,e){let i=0;for(let e=0;e<t.length;e++){let{width:s}=t[e];i=Math.max(s,i)}let s="underline"===e.decoration?4:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+s-n,width:i}}(u,e):{y:0,height:0,width:0},p=o?a?1:-1:(0,l.xy)(e.horizontalAlignment),f=(0,l.UD)(e.verticalAlignment),m=+(2===f),d=m?0:f-1,x=r?.baseline??22,C=u.length>1,v=m?C?-c.y-c.height:-x:-c.y+d*(c.height/2);for(let r=0;r<u.length;r++){let{start:a,end:l,width:f}=u[r],m=o&&r<u.length-1?b(h,a,l):0,d=m>0?(c.width-f)/m:0,g=-1*(p+1)*((d>0?c.width:f)/2)-n,x=(t.isRightToLeft?u.length-1-r:r)*e.lineHeight+v-n;u[r].startX=g,u[r].startY=x;for(let t=a;t<=l;t++){let e=h[t];if(y(e.code))continue;let n=_.fromGlyph(g,x,e,i);g+=e.shaping.xAdvance,d>0&&P(e.code)&&(g+=d),s.push(n)}}return new g(s,u,e,r)}(t,e):function(t,e){let i=w(t,e),s=function(t,e){let i=[],s=e.maxLineWidth,n=0,r=0,h=0,a=0,l=0,o=0;for(;n<t.length;){let e=t[n],{glyph:u}=e;if(y(u.code))0!==n&&i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),r=0,a=n+1,l=a,h=0,o=0;else if(P(u.code))l=n+1,h=0,o=e.xAdvance,r+=e.xAdvance;else if(r>s){if(l!==a){let e=l-2;r-=o,i.push({width:r-h,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=l,r=h}else i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=n,l=n,r=0;r+=e.xAdvance,h+=e.xAdvance}else r+=e.xAdvance,h+=e.xAdvance;n++}if(a<t.length){let e=t.length-1;i.push({width:r,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1})}return function(t,e){for(let i=0;i<e.length;i++){let s=e[i],n=0,r=1/0,h=0,a=0;for(let e=s.start;e<=s.end;e++){let i=t[e];"underline"===i.decoration&&(a=Math.max(a,i.underlineOffset)),!y(i.glyph.code)&&!P(i.glyph.code)&&(n=Math.max(n,i.baseline),h=Math.max(h,i.lineHeight))}let l=1/0,o=-1/0;for(let e=s.start;e<=s.end;e++){let i=t[e];y(i.glyph.code)||P(i.glyph.code)||(l=Math.min(l,n-i.baseline+i.top),o=Math.max(o,n-i.baseline+i.bottom),r=Math.min(r,n-i.baseline+i.midline))}a>0&&(o=Math.max(o,n+a)),s.baseline=n,s.midline=r===1/0?n:r,s.lineHeight=Math.max(h,o),s.yMin=l===1/0?0:l,s.yMax=o===-1/0?0:o,s.startY=i>0?e[i-1].startY+e[i-1].lineHeight:0}return e}(t,i)}(i,e),n=s.length?function(t){let e=0;for(let i of t)e=Math.max(i.width+i.glyphWidthEnd,e);let i=t[0].yMin;return{x:0,y:i,height:S(t[t.length-1])-i,width:e}}(s):{width:0},r=[],h="underline"===e.decoration?"none":e.decoration,a="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,o=a?-1:(0,l.xy)(e.horizontalAlignment),u=(0,l.UD)(e.verticalAlignment),c=2===u,p=s.length?s[0].yMin:0,f=s.length?S(s[s.length-1]):0,m=f-p,d=c?s.length>1?-f:-(s[0]?.baseline??0):1===u?-p:-1===u?-f:-(p+m/2);for(let t=0;t<s.length;t++){let e=s[t],h=a&&t<s.length-1?I(i,e.start,e.end):0,l=h>0?(n.width-e.width)/h:0,u=-1*(o+1)*((l>0?n.width:e.width)/2),c=e.startY+d,p=null;e.startX=u,e.startY=c;for(let t=e.start;t<=e.end;t++){let s=i[t],{glyph:n,scale:h,fontSize:a}=s,o=u;if(y(n.code)){p=z(r,p,c,e.baseline);continue}"underline"===s.decoration?(p&&p.underlineOffset!==s.underlineOffset||p&&!k(p.color,s.color))&&(p=z(r,p,c,e.baseline)):p=z(r,p,c,e.baseline);let f=c+e.baseline-s.baseline;r.push(_.fromGlyph(u/h,f/h,n,h,{fontSize:a,color:s.color})),u+=s.xAdvance,"underline"===s.decoration&&(p??={startX:o,endX:u,glyphWidthEnd:n.rect.width*h,textureBinding:n.mosaicItem.textureBinding,underlineOffset:s.underlineOffset,color:s.color},p.endX=u,p.glyphWidthEnd=n.rect.width*h,p.textureBinding=p.textureBinding??n.mosaicItem.textureBinding),l>0&&P(n.code)&&(u+=l,p&&(p.endX=u))}z(r,p,c,e.baseline)}return new g(r,s,{...e,decoration:h})}(t,e)}function v(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,{faceInfo:s,glyphs:n}=t,r=n.reduce((t,e)=>Math.max(t,e.rect.height),0),h=n.filter(t=>!y(t.code)&&t.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.rect.width/2,-r,t,i));return new g(h,[],e,s)}(t,e):function(t,e){let i=w(t,e),s=i.reduce((t,e)=>Math.max(t,e.glyph.rect.height*e.scale),0),n=i.filter(t=>!y(t.glyph.code)&&t.glyph.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.glyph.rect.width/2,-s/t.scale,t.glyph,t.scale,{fontSize:t.fontSize,color:t.color}));return new g(n,[],e)}(t,e)}function w(t,e){let i=e.lineHeightRatio??1,n=[];for(let e of t.runs){let t=(0,s.Lz)(e.fontSize),r=t/e.glyphs.sdfSize,h=29/24*t*i,a=(e.glyphs.faceInfo?.baseline??22)*r,l=(e.glyphs.faceInfo?.midline??16)*r,o=4*r+f(e.decoration),u=1+(e.characterSpacing??0);for(let i of e.glyphs.glyphs){let s=i.shaping.xAdvance*r,c=Math.abs(i.rect.top)*r,_=c+i.rect.height*r;n.push({glyph:i,scale:r,fontSize:t,decoration:e.decoration,underlineOffset:o,color:e.color,xAdvance:y(i.code)||P(i.code)?s:s*u,top:c,bottom:_,lineHeight:h,baseline:a,midline:l})}}return n}function S(t){return t.startY+t.lineHeight}function I(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].glyph.code)&&!y(t[n+1].glyph.code)&&s++;return s}function z(t,e,i,s){return e&&t.push(_.fromGlyph(e.startX,i+s+e.underlineOffset,p(e.endX-e.startX+e.glyphWidthEnd,e.textureBinding),1,{color:e.color})),null}function k(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}},69221(t,e,i){i.d(e,{Lu:()=>r,hV:()=>n});var s=i(90629);function n(t){return(0,s.PN)(Math.round((0,s.Lz)(t)))}function r(t){let e=(0,s.PN)(32),i=(0,s.PN)(5e3);return Math.max(e,Math.min(t||i,i))}i(39829)},86235(t,e,i){i.d(e,{HZ:()=>r});var s=i(36745),n=i(14057);class r{static{this.instance=null}static local(){return null===r.instance&&(r.instance=new r),r.instance}execute(t,e,i){return new h(t,e,i)}}class h{constructor(t,e,i){this._cursor=t,this._effect=e,this._context=i}next(){let t=this._cursor.next();if(t&&t.totalSize>0){let e=t.asJSON(),i=l[this._effect.part](e,{...this._effect,target:this._context.target,scaleFactor:this._context.scaleFactor,matcher:this._context.matcher,tileKey:this._context.tileKey,geomUnitsPerPoint:this._context.geomUnitsPerPoint});return i?s.z.fromJSONCIM(i):null}return null}}function a(t,e){let i=e.matcher,s=e.target.getObjectId(),r=(0,n.$)(e.tileKey,s),h=i.getAnalyzedGraphic(r);return h?(h.evaluateWithGeometry(t,e.geomUnitsPerPoint*e.scaleFactor),h):null}const l={textPoint:function(t,e){let i=a(t,e);return i&&i.textPoint?{x:i.textPoint[0],y:i.textPoint[1],spatialReference:t.spatialReference}:t},beginDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[0],n=s[1][0],r=s[1][1],h=s[0][0],l=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},endDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[1],n=s[1][0],r=s[1][1],h=s[0][0],l=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},beginExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[0],n=s[0][0],r=s[0][1],h=s[1][0],l=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},endExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[1],n=s[0][0],r=s[0][1],h=s[1][0],l=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}}};i.d(e,["Bd",0,"beginMarker","Cr",0,"beginExtensionLine","FF",0,"endMarker","Fn",0,"beginDimensionLine","NR",0,"textPoint","tz",0,"endDimensionLine","w0",0,"endExtensionLine"])},14057(t,e,i){function s(t,e){return`${t}_${e}`}i.d(e,{$:()=>s})}}]);