@mountaya/elements 0.0.0-stage → 0.2.0

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 (828) hide show
  1. package/CHANGELOG.md +273 -0
  2. package/LICENCE.fr.txt +280 -0
  3. package/LICENSE.txt +262 -0
  4. package/README.md +1510 -2
  5. package/THIRD-PARTY-NOTICES.txt +103 -0
  6. package/dist/agent/index.cjs +1211 -0
  7. package/dist/agent/index.cjs.map +1 -0
  8. package/dist/agent/index.d.cts +1966 -0
  9. package/dist/agent/index.d.ts +1966 -0
  10. package/dist/agent/index.js +1181 -0
  11. package/dist/agent/index.js.map +1 -0
  12. package/dist/camera/index.cjs +2512 -0
  13. package/dist/camera/index.cjs.map +1 -0
  14. package/dist/camera/index.d.cts +1723 -0
  15. package/dist/camera/index.d.ts +1723 -0
  16. package/dist/camera/index.js +2443 -0
  17. package/dist/camera/index.js.map +1 -0
  18. package/dist/chunk-5pTPpv4v.d.cts +897 -0
  19. package/dist/chunk-5pTPpv4v.d.ts +897 -0
  20. package/dist/chunk-6JzFMFHh.d.ts +119 -0
  21. package/dist/chunk-6qyuJVvt.d.ts +513 -0
  22. package/dist/chunk-9fp0lDic.cjs +583 -0
  23. package/dist/chunk-9fp0lDic.cjs.map +1 -0
  24. package/dist/chunk-A48H1rDg.d.cts +73 -0
  25. package/dist/chunk-A48H1rDg.d.ts +73 -0
  26. package/dist/chunk-B-m1AchR.cjs +57 -0
  27. package/dist/chunk-B-m1AchR.cjs.map +1 -0
  28. package/dist/chunk-B-qFTf04.d.ts +216 -0
  29. package/dist/chunk-B0YROiZh.d.cts +1475 -0
  30. package/dist/chunk-B14wgOvH.d.cts +68 -0
  31. package/dist/chunk-B19l3j9r.cjs +150 -0
  32. package/dist/chunk-B19l3j9r.cjs.map +1 -0
  33. package/dist/chunk-B2PtjVKg.cjs +86 -0
  34. package/dist/chunk-B2PtjVKg.cjs.map +1 -0
  35. package/dist/chunk-B56Oyb7W.cjs +70 -0
  36. package/dist/chunk-B56Oyb7W.cjs.map +1 -0
  37. package/dist/chunk-B5WGMQwK.cjs +113 -0
  38. package/dist/chunk-B5WGMQwK.cjs.map +1 -0
  39. package/dist/chunk-B98mKrdu.d.cts +302 -0
  40. package/dist/chunk-BB0PmqIM.d.cts +44 -0
  41. package/dist/chunk-BBikve0Z.cjs +269 -0
  42. package/dist/chunk-BBikve0Z.cjs.map +1 -0
  43. package/dist/chunk-BHeXmM0X.js +37 -0
  44. package/dist/chunk-BHeXmM0X.js.map +1 -0
  45. package/dist/chunk-BI8WZLpU.cjs +281 -0
  46. package/dist/chunk-BI8WZLpU.cjs.map +1 -0
  47. package/dist/chunk-BIEc_SkR.cjs +29 -0
  48. package/dist/chunk-BIEc_SkR.cjs.map +1 -0
  49. package/dist/chunk-BJ6L6_W9.cjs +553 -0
  50. package/dist/chunk-BJ6L6_W9.cjs.map +1 -0
  51. package/dist/chunk-BJ91UCbB.js +11 -0
  52. package/dist/chunk-BJ91UCbB.js.map +1 -0
  53. package/dist/chunk-BJEZWTKj.cjs +166 -0
  54. package/dist/chunk-BJEZWTKj.cjs.map +1 -0
  55. package/dist/chunk-BJz54mfg.cjs +10 -0
  56. package/dist/chunk-BJz54mfg.cjs.map +1 -0
  57. package/dist/chunk-BNX5LAfN.d.cts +912 -0
  58. package/dist/chunk-BP6KgA86.js +35 -0
  59. package/dist/chunk-BP6KgA86.js.map +1 -0
  60. package/dist/chunk-BRnjQq6K.d.cts +157 -0
  61. package/dist/chunk-BSiMEwPS.js +46 -0
  62. package/dist/chunk-BSiMEwPS.js.map +1 -0
  63. package/dist/chunk-BTPjDw_y.cjs +16 -0
  64. package/dist/chunk-BTPjDw_y.cjs.map +1 -0
  65. package/dist/chunk-BTUUABGI.js +17 -0
  66. package/dist/chunk-BTUUABGI.js.map +1 -0
  67. package/dist/chunk-BUeL9y7s.cjs +45 -0
  68. package/dist/chunk-BUeL9y7s.cjs.map +1 -0
  69. package/dist/chunk-BWMuCNc9.cjs +172 -0
  70. package/dist/chunk-BWMuCNc9.cjs.map +1 -0
  71. package/dist/chunk-BWjRfhpF.js +126 -0
  72. package/dist/chunk-BWjRfhpF.js.map +1 -0
  73. package/dist/chunk-BZ5KyZXI.d.ts +302 -0
  74. package/dist/chunk-B_4SVmvh.js +94 -0
  75. package/dist/chunk-B_4SVmvh.js.map +1 -0
  76. package/dist/chunk-BcTUuZQ3.js +95 -0
  77. package/dist/chunk-BcTUuZQ3.js.map +1 -0
  78. package/dist/chunk-BdkqSsJe.cjs +140 -0
  79. package/dist/chunk-BdkqSsJe.cjs.map +1 -0
  80. package/dist/chunk-BfktMVmI.js +70 -0
  81. package/dist/chunk-BfktMVmI.js.map +1 -0
  82. package/dist/chunk-BfzQb0EK.cjs +6 -0
  83. package/dist/chunk-BhWfT-22.d.cts +808 -0
  84. package/dist/chunk-BjJcqX5J.cjs +60 -0
  85. package/dist/chunk-BjJcqX5J.cjs.map +1 -0
  86. package/dist/chunk-Bk0L8g5J.d.cts +77 -0
  87. package/dist/chunk-Bk0L8g5J.d.ts +77 -0
  88. package/dist/chunk-Bl4_uVa6.cjs +11 -0
  89. package/dist/chunk-Bl4_uVa6.cjs.map +1 -0
  90. package/dist/chunk-BlKF4lrp.js +43 -0
  91. package/dist/chunk-BlKF4lrp.js.map +1 -0
  92. package/dist/chunk-Bm1FieGR.js +4 -0
  93. package/dist/chunk-Bm1FieGR.js.map +1 -0
  94. package/dist/chunk-Bn6ZbxkS.cjs +27 -0
  95. package/dist/chunk-BpN3hr6a.cjs +541 -0
  96. package/dist/chunk-BpN3hr6a.cjs.map +1 -0
  97. package/dist/chunk-Bq_WHTfd.d.cts +119 -0
  98. package/dist/chunk-Bqt4LBBz.cjs +648 -0
  99. package/dist/chunk-Bqt4LBBz.cjs.map +1 -0
  100. package/dist/chunk-Bqt97zwf.d.cts +54 -0
  101. package/dist/chunk-Bqt97zwf.d.ts +54 -0
  102. package/dist/chunk-BsBiN4w6.d.cts +245 -0
  103. package/dist/chunk-BvTpOUoC.cjs +207 -0
  104. package/dist/chunk-BvTpOUoC.cjs.map +1 -0
  105. package/dist/chunk-BwK6Hl3q.cjs +446 -0
  106. package/dist/chunk-BwK6Hl3q.cjs.map +1 -0
  107. package/dist/chunk-BxDQZDXR.d.cts +76 -0
  108. package/dist/chunk-BxDQZDXR.d.ts +76 -0
  109. package/dist/chunk-BxUio8kX.js +20 -0
  110. package/dist/chunk-BxUio8kX.js.map +1 -0
  111. package/dist/chunk-BxaocpFi.d.cts +1 -0
  112. package/dist/chunk-Bywi0K1N.js +36 -0
  113. package/dist/chunk-Bywi0K1N.js.map +1 -0
  114. package/dist/chunk-C-IlmkDl.js +59 -0
  115. package/dist/chunk-C-IlmkDl.js.map +1 -0
  116. package/dist/chunk-C5PtVewq.d.ts +389 -0
  117. package/dist/chunk-C5dpC7mQ.js +19 -0
  118. package/dist/chunk-C5dpC7mQ.js.map +1 -0
  119. package/dist/chunk-C5q1sgSa.js +46 -0
  120. package/dist/chunk-C5q1sgSa.js.map +1 -0
  121. package/dist/chunk-C6fU9G5I.cjs +221 -0
  122. package/dist/chunk-C6fU9G5I.cjs.map +1 -0
  123. package/dist/chunk-C71dpWUK.js +5 -0
  124. package/dist/chunk-C71dpWUK.js.map +1 -0
  125. package/dist/chunk-C82N1gQX.d.ts +1831 -0
  126. package/dist/chunk-C8HdaHpu.js +118 -0
  127. package/dist/chunk-C8HdaHpu.js.map +1 -0
  128. package/dist/chunk-C8ZGryck.js +236 -0
  129. package/dist/chunk-C8ZGryck.js.map +1 -0
  130. package/dist/chunk-C95NG0oD.cjs +43 -0
  131. package/dist/chunk-C95NG0oD.cjs.map +1 -0
  132. package/dist/chunk-C9aR8DXb.js +9 -0
  133. package/dist/chunk-C9aR8DXb.js.map +1 -0
  134. package/dist/chunk-CAUZnoCs.d.ts +525 -0
  135. package/dist/chunk-CBXWWuM9.cjs +82 -0
  136. package/dist/chunk-CBXWWuM9.cjs.map +1 -0
  137. package/dist/chunk-CC_Kquu7.d.cts +125 -0
  138. package/dist/chunk-CC_Kquu7.d.ts +125 -0
  139. package/dist/chunk-CCp85vXg.cjs +60 -0
  140. package/dist/chunk-CCp85vXg.cjs.map +1 -0
  141. package/dist/chunk-CEcB1_uK.js +39 -0
  142. package/dist/chunk-CEcB1_uK.js.map +1 -0
  143. package/dist/chunk-CFIo021l.d.cts +216 -0
  144. package/dist/chunk-CH_IZoJE.js +33 -0
  145. package/dist/chunk-CH_IZoJE.js.map +1 -0
  146. package/dist/chunk-CHrasH_g.cjs +25 -0
  147. package/dist/chunk-CHrasH_g.cjs.map +1 -0
  148. package/dist/chunk-CJVoSaAE.cjs +3 -0
  149. package/dist/chunk-CJp8nGcb.js +96 -0
  150. package/dist/chunk-CJp8nGcb.js.map +1 -0
  151. package/dist/chunk-CJwUtkOt.js +112 -0
  152. package/dist/chunk-CJwUtkOt.js.map +1 -0
  153. package/dist/chunk-CKhCOVIf.d.cts +751 -0
  154. package/dist/chunk-CKiVSRYg.js +50 -0
  155. package/dist/chunk-CKiVSRYg.js.map +1 -0
  156. package/dist/chunk-CKtd19eD.cjs +59 -0
  157. package/dist/chunk-CKtd19eD.cjs.map +1 -0
  158. package/dist/chunk-CL92KE3j.d.ts +3188 -0
  159. package/dist/chunk-CLqUlkAe.js +54 -0
  160. package/dist/chunk-CLqUlkAe.js.map +1 -0
  161. package/dist/chunk-CMG5OV0q.cjs +4741 -0
  162. package/dist/chunk-CMG5OV0q.cjs.map +1 -0
  163. package/dist/chunk-CN_TKSgm.js +10 -0
  164. package/dist/chunk-CN_TKSgm.js.map +1 -0
  165. package/dist/chunk-CNe6MtqV.cjs +29 -0
  166. package/dist/chunk-CNe6MtqV.cjs.map +1 -0
  167. package/dist/chunk-COQkDTC5.js +83 -0
  168. package/dist/chunk-COQkDTC5.js.map +1 -0
  169. package/dist/chunk-CPBl6K4M.cjs +168 -0
  170. package/dist/chunk-CPBl6K4M.cjs.map +1 -0
  171. package/dist/chunk-CPx0ZYFB.d.ts +3 -0
  172. package/dist/chunk-CQQhcP_C.d.ts +197 -0
  173. package/dist/chunk-CTNoajFh.d.cts +389 -0
  174. package/dist/chunk-CTd-qgJc.cjs +384 -0
  175. package/dist/chunk-CTd-qgJc.cjs.map +1 -0
  176. package/dist/chunk-CW80YYtU.cjs +1056 -0
  177. package/dist/chunk-CW80YYtU.cjs.map +1 -0
  178. package/dist/chunk-CWpqBgkF.d.cts +24 -0
  179. package/dist/chunk-CWpqBgkF.d.ts +24 -0
  180. package/dist/chunk-CXjRArgy.d.ts +3 -0
  181. package/dist/chunk-CXonfH3-.cjs +14 -0
  182. package/dist/chunk-CXonfH3-.cjs.map +1 -0
  183. package/dist/chunk-CYcouGXN.d.ts +825 -0
  184. package/dist/chunk-CZDAzEBw.cjs +1621 -0
  185. package/dist/chunk-CZDAzEBw.cjs.map +1 -0
  186. package/dist/chunk-C_fQFr70.d.cts +159 -0
  187. package/dist/chunk-C_fQFr70.d.ts +159 -0
  188. package/dist/chunk-CbOtHnnB.cjs +359 -0
  189. package/dist/chunk-CbOtHnnB.cjs.map +1 -0
  190. package/dist/chunk-CdA6ZMGk.d.cts +825 -0
  191. package/dist/chunk-Ce1_thm7.js +146 -0
  192. package/dist/chunk-Ce1_thm7.js.map +1 -0
  193. package/dist/chunk-CeD8Hw0j.d.cts +3188 -0
  194. package/dist/chunk-CeiTuMyt.d.cts +525 -0
  195. package/dist/chunk-Ch1OLzLi.js +1 -0
  196. package/dist/chunk-Cizu_j1N.cjs +87 -0
  197. package/dist/chunk-Cizu_j1N.cjs.map +1 -0
  198. package/dist/chunk-CjDe9z6A.d.cts +427 -0
  199. package/dist/chunk-Cl1etdlu.js +63 -0
  200. package/dist/chunk-Cl1etdlu.js.map +1 -0
  201. package/dist/chunk-CmoVJDoz.js +4 -0
  202. package/dist/chunk-CmoVJDoz.js.map +1 -0
  203. package/dist/chunk-CnLucxjG.cjs +197 -0
  204. package/dist/chunk-CnLucxjG.cjs.map +1 -0
  205. package/dist/chunk-CsWjBmdi.cjs +56 -0
  206. package/dist/chunk-CsWjBmdi.cjs.map +1 -0
  207. package/dist/chunk-CuseO5MZ.d.cts +3 -0
  208. package/dist/chunk-CvMHibbA.d.ts +427 -0
  209. package/dist/chunk-CwDeiN5U.js +870 -0
  210. package/dist/chunk-CwDeiN5U.js.map +1 -0
  211. package/dist/chunk-Cwdmx4tG.js +1 -0
  212. package/dist/chunk-D-4MxHTt.d.cts +105 -0
  213. package/dist/chunk-D-4MxHTt.d.ts +105 -0
  214. package/dist/chunk-D0LF-99V.js +1093 -0
  215. package/dist/chunk-D0LF-99V.js.map +1 -0
  216. package/dist/chunk-D1fe-0c_.js +367 -0
  217. package/dist/chunk-D1fe-0c_.js.map +1 -0
  218. package/dist/chunk-D21fEI6A.d.ts +1926 -0
  219. package/dist/chunk-D39gAxya.cjs +89 -0
  220. package/dist/chunk-D39gAxya.cjs.map +1 -0
  221. package/dist/chunk-D6KdIW5e.cjs +228 -0
  222. package/dist/chunk-D6KdIW5e.cjs.map +1 -0
  223. package/dist/chunk-D6qHYbgW.d.cts +36 -0
  224. package/dist/chunk-D89E-w70.d.ts +44 -0
  225. package/dist/chunk-D8bdTysL.js +552 -0
  226. package/dist/chunk-D8bdTysL.js.map +1 -0
  227. package/dist/chunk-D96QJT24.cjs +109 -0
  228. package/dist/chunk-D96QJT24.cjs.map +1 -0
  229. package/dist/chunk-DAmkQl-i.js +119 -0
  230. package/dist/chunk-DAmkQl-i.js.map +1 -0
  231. package/dist/chunk-DEfsb2lc.cjs +10 -0
  232. package/dist/chunk-DEfsb2lc.cjs.map +1 -0
  233. package/dist/chunk-DIFjT5-V.d.cts +66 -0
  234. package/dist/chunk-DJpUw8TN.d.ts +912 -0
  235. package/dist/chunk-DK6lm2IZ.cjs +11 -0
  236. package/dist/chunk-DK6lm2IZ.cjs.map +1 -0
  237. package/dist/chunk-DKqgr31j.cjs +61 -0
  238. package/dist/chunk-DKqgr31j.cjs.map +1 -0
  239. package/dist/chunk-DLZ0QYm9.js +37 -0
  240. package/dist/chunk-DLZ0QYm9.js.map +1 -0
  241. package/dist/chunk-DLjS0uaC.js +4 -0
  242. package/dist/chunk-DLjS0uaC.js.map +1 -0
  243. package/dist/chunk-DMokwmOV.cjs +49 -0
  244. package/dist/chunk-DMokwmOV.cjs.map +1 -0
  245. package/dist/chunk-DMvWgBZL.d.cts +1831 -0
  246. package/dist/chunk-DNfGfIF3.js +31 -0
  247. package/dist/chunk-DNfGfIF3.js.map +1 -0
  248. package/dist/chunk-DQbSRe8D.d.ts +245 -0
  249. package/dist/chunk-DSGkP8_y.js +45 -0
  250. package/dist/chunk-DSGkP8_y.js.map +1 -0
  251. package/dist/chunk-DTctvfSd.d.cts +197 -0
  252. package/dist/chunk-DWe7igyw.cjs +206 -0
  253. package/dist/chunk-DWe7igyw.cjs.map +1 -0
  254. package/dist/chunk-DWsMP5JR.d.ts +68 -0
  255. package/dist/chunk-DWsm3HIW.d.cts +120 -0
  256. package/dist/chunk-DWsm3HIW.d.ts +120 -0
  257. package/dist/chunk-DXABHjLa.cjs +3 -0
  258. package/dist/chunk-D_BeqSbc.cjs +42 -0
  259. package/dist/chunk-D_BeqSbc.cjs.map +1 -0
  260. package/dist/chunk-D_svQNdW.d.ts +66 -0
  261. package/dist/chunk-Dav4xWrp.js +330 -0
  262. package/dist/chunk-Dav4xWrp.js.map +1 -0
  263. package/dist/chunk-DbCPhepL.js +293 -0
  264. package/dist/chunk-DbCPhepL.js.map +1 -0
  265. package/dist/chunk-DcrTy-y2.cjs +43 -0
  266. package/dist/chunk-DcrTy-y2.cjs.map +1 -0
  267. package/dist/chunk-Ddv484ld.js +487 -0
  268. package/dist/chunk-Ddv484ld.js.map +1 -0
  269. package/dist/chunk-De0bjnhY.cjs +88 -0
  270. package/dist/chunk-De0bjnhY.cjs.map +1 -0
  271. package/dist/chunk-De2FmNPu.cjs +32 -0
  272. package/dist/chunk-De2FmNPu.cjs.map +1 -0
  273. package/dist/chunk-DeSjQXiI.d.ts +157 -0
  274. package/dist/chunk-Den0Ta6C.js +132 -0
  275. package/dist/chunk-Den0Ta6C.js.map +1 -0
  276. package/dist/chunk-DiDKEeEa.js +8 -0
  277. package/dist/chunk-DiDKEeEa.js.map +1 -0
  278. package/dist/chunk-Dj60k5PU.js +197 -0
  279. package/dist/chunk-Dj60k5PU.js.map +1 -0
  280. package/dist/chunk-DjnYQBCN.js +4705 -0
  281. package/dist/chunk-DjnYQBCN.js.map +1 -0
  282. package/dist/chunk-Dk9VKvyq.d.ts +1 -0
  283. package/dist/chunk-Dor1ERI9.cjs +85 -0
  284. package/dist/chunk-Dor1ERI9.cjs.map +1 -0
  285. package/dist/chunk-DpMouOoH.js +451 -0
  286. package/dist/chunk-DpMouOoH.js.map +1 -0
  287. package/dist/chunk-DposgdNL.cjs +52 -0
  288. package/dist/chunk-DposgdNL.cjs.map +1 -0
  289. package/dist/chunk-DqLTG_5Q.d.cts +3 -0
  290. package/dist/chunk-Dr5MCIpS.d.cts +63 -0
  291. package/dist/chunk-Dr5MCIpS.d.ts +63 -0
  292. package/dist/chunk-DrudttCC.cjs +4 -0
  293. package/dist/chunk-DsDYVJQC.js +173 -0
  294. package/dist/chunk-DsDYVJQC.js.map +1 -0
  295. package/dist/chunk-Dw8ur6FJ.js +27 -0
  296. package/dist/chunk-Dw8ur6FJ.js.map +1 -0
  297. package/dist/chunk-DwG6M_0v.js +64 -0
  298. package/dist/chunk-DwG6M_0v.js.map +1 -0
  299. package/dist/chunk-Dy9a5ibO.js +284 -0
  300. package/dist/chunk-Dy9a5ibO.js.map +1 -0
  301. package/dist/chunk-DyayZlQJ.js +157 -0
  302. package/dist/chunk-DyayZlQJ.js.map +1 -0
  303. package/dist/chunk-DyhJZC2i.js +126 -0
  304. package/dist/chunk-DyhJZC2i.js.map +1 -0
  305. package/dist/chunk-F9zBzmmG.cjs +45 -0
  306. package/dist/chunk-F9zBzmmG.cjs.map +1 -0
  307. package/dist/chunk-FyCYofv2.js +116 -0
  308. package/dist/chunk-FyCYofv2.js.map +1 -0
  309. package/dist/chunk-GHJRjAk2.js +1 -0
  310. package/dist/chunk-H14isiSf.d.ts +751 -0
  311. package/dist/chunk-HIJzXoN4.js +7 -0
  312. package/dist/chunk-HIJzXoN4.js.map +1 -0
  313. package/dist/chunk-Id_8kRtu.d.ts +36 -0
  314. package/dist/chunk-KN60yxBQ.js +5 -0
  315. package/dist/chunk-KN60yxBQ.js.map +1 -0
  316. package/dist/chunk-NM5yg6bh.cjs +82 -0
  317. package/dist/chunk-NM5yg6bh.cjs.map +1 -0
  318. package/dist/chunk-OXr3zJfM.cjs +119 -0
  319. package/dist/chunk-OXr3zJfM.cjs.map +1 -0
  320. package/dist/chunk-QGqgNC4z.d.ts +928 -0
  321. package/dist/chunk-QJBtJrZ0.js +36 -0
  322. package/dist/chunk-QJBtJrZ0.js.map +1 -0
  323. package/dist/chunk-QKWhxfPv.d.cts +361 -0
  324. package/dist/chunk-QKWhxfPv.d.ts +361 -0
  325. package/dist/chunk-QXW7b4Ev.d.cts +410 -0
  326. package/dist/chunk-RHZrxUrM.cjs +39 -0
  327. package/dist/chunk-RHZrxUrM.cjs.map +1 -0
  328. package/dist/chunk-RTxe2i66.js +91 -0
  329. package/dist/chunk-RTxe2i66.js.map +1 -0
  330. package/dist/chunk-RrKkJb6P.js +16 -0
  331. package/dist/chunk-RrKkJb6P.js.map +1 -0
  332. package/dist/chunk-VOJqpcnM.cjs +181 -0
  333. package/dist/chunk-VOJqpcnM.cjs.map +1 -0
  334. package/dist/chunk-VljGTrid.js +1 -0
  335. package/dist/chunk-X3UVwUEK.d.cts +513 -0
  336. package/dist/chunk-X9K2WChn.cjs +28 -0
  337. package/dist/chunk-X9K2WChn.cjs.map +1 -0
  338. package/dist/chunk-YrtOx6oy.js +251 -0
  339. package/dist/chunk-YrtOx6oy.js.map +1 -0
  340. package/dist/chunk-bY7ySujI.d.cts +928 -0
  341. package/dist/chunk-bYf1sBz5.d.cts +11 -0
  342. package/dist/chunk-bYf1sBz5.d.ts +11 -0
  343. package/dist/chunk-blfknWoM.d.cts +1926 -0
  344. package/dist/chunk-blqsohAb.js +113 -0
  345. package/dist/chunk-blqsohAb.js.map +1 -0
  346. package/dist/chunk-cDMCjodI.cjs +58 -0
  347. package/dist/chunk-cDMCjodI.cjs.map +1 -0
  348. package/dist/chunk-cWjE3qd6.cjs +10 -0
  349. package/dist/chunk-cWjE3qd6.cjs.map +1 -0
  350. package/dist/chunk-dfOgV3fu.js +26 -0
  351. package/dist/chunk-dfOgV3fu.js.map +1 -0
  352. package/dist/chunk-f9cTwUX1.cjs +125 -0
  353. package/dist/chunk-f9cTwUX1.cjs.map +1 -0
  354. package/dist/chunk-fHVYEZs4.cjs +28 -0
  355. package/dist/chunk-fHVYEZs4.cjs.map +1 -0
  356. package/dist/chunk-fWRUMgRI.js +22 -0
  357. package/dist/chunk-fWRUMgRI.js.map +1 -0
  358. package/dist/chunk-fozLXfHY.d.cts +55 -0
  359. package/dist/chunk-fozLXfHY.d.ts +55 -0
  360. package/dist/chunk-gWmB1l3A.cjs +3122 -0
  361. package/dist/chunk-gWmB1l3A.cjs.map +1 -0
  362. package/dist/chunk-gbj2R-_w.js +58 -0
  363. package/dist/chunk-gbj2R-_w.js.map +1 -0
  364. package/dist/chunk-iIWxsAXd.js +59 -0
  365. package/dist/chunk-iIWxsAXd.js.map +1 -0
  366. package/dist/chunk-lItIuOIS.cjs +137 -0
  367. package/dist/chunk-lItIuOIS.cjs.map +1 -0
  368. package/dist/chunk-m6Rh4PCe.cjs +798 -0
  369. package/dist/chunk-m6Rh4PCe.cjs.map +1 -0
  370. package/dist/chunk-o3IRANDf.cjs +99 -0
  371. package/dist/chunk-o3IRANDf.cjs.map +1 -0
  372. package/dist/chunk-obUcg3Sk.d.ts +808 -0
  373. package/dist/chunk-ohsf-6Rn.js +600 -0
  374. package/dist/chunk-ohsf-6Rn.js.map +1 -0
  375. package/dist/chunk-pBleU6Nv.js +3061 -0
  376. package/dist/chunk-pBleU6Nv.js.map +1 -0
  377. package/dist/chunk-px4e99cy.js +71 -0
  378. package/dist/chunk-px4e99cy.js.map +1 -0
  379. package/dist/chunk-qwYDLeXc.cjs +99 -0
  380. package/dist/chunk-qwYDLeXc.cjs.map +1 -0
  381. package/dist/chunk-rF_859Qk.cjs +101 -0
  382. package/dist/chunk-rF_859Qk.cjs.map +1 -0
  383. package/dist/chunk-rLJkqJ5j.d.ts +1475 -0
  384. package/dist/chunk-twQItIRg.cjs +338 -0
  385. package/dist/chunk-twQItIRg.cjs.map +1 -0
  386. package/dist/chunk-vnPrMVjY.js +10 -0
  387. package/dist/chunk-vnPrMVjY.js.map +1 -0
  388. package/dist/chunk-ws3bVwaS.d.ts +410 -0
  389. package/dist/chunk-xh3UkuVs.cjs +246 -0
  390. package/dist/chunk-xh3UkuVs.cjs.map +1 -0
  391. package/dist/chunk-yMzRr26E.js +153 -0
  392. package/dist/chunk-yMzRr26E.js.map +1 -0
  393. package/dist/collab/index.cjs +831 -0
  394. package/dist/collab/index.cjs.map +1 -0
  395. package/dist/collab/index.d.cts +824 -0
  396. package/dist/collab/index.d.ts +824 -0
  397. package/dist/collab/index.js +819 -0
  398. package/dist/collab/index.js.map +1 -0
  399. package/dist/data/index.cjs +39 -0
  400. package/dist/data/index.d.cts +6 -0
  401. package/dist/data/index.d.ts +6 -0
  402. package/dist/data/index.js +7 -0
  403. package/dist/editor/index.cjs +2713 -0
  404. package/dist/editor/index.cjs.map +1 -0
  405. package/dist/editor/index.d.cts +10 -0
  406. package/dist/editor/index.d.ts +10 -0
  407. package/dist/editor/index.js +2702 -0
  408. package/dist/editor/index.js.map +1 -0
  409. package/dist/errors/index.cjs +11 -0
  410. package/dist/errors/index.d.cts +2 -0
  411. package/dist/errors/index.d.ts +2 -0
  412. package/dist/errors/index.js +1 -0
  413. package/dist/geo/index.cjs +68 -0
  414. package/dist/geo/index.d.cts +6 -0
  415. package/dist/geo/index.d.ts +6 -0
  416. package/dist/geo/index.js +11 -0
  417. package/dist/i18n/fr/index.cjs +333 -0
  418. package/dist/i18n/fr/index.cjs.map +1 -0
  419. package/dist/i18n/fr/index.d.cts +18 -0
  420. package/dist/i18n/fr/index.d.ts +18 -0
  421. package/dist/i18n/fr/index.js +328 -0
  422. package/dist/i18n/fr/index.js.map +1 -0
  423. package/dist/i18n/index.cjs +451 -0
  424. package/dist/i18n/index.cjs.map +1 -0
  425. package/dist/i18n/index.d.cts +268 -0
  426. package/dist/i18n/index.d.ts +268 -0
  427. package/dist/i18n/index.js +430 -0
  428. package/dist/i18n/index.js.map +1 -0
  429. package/dist/icons/index.cjs +37 -0
  430. package/dist/icons/index.d.cts +4 -0
  431. package/dist/icons/index.d.ts +4 -0
  432. package/dist/icons/index.js +8 -0
  433. package/dist/index.cjs +517 -0
  434. package/dist/index.cjs.map +1 -0
  435. package/dist/index.d.cts +174 -0
  436. package/dist/index.d.ts +174 -0
  437. package/dist/index.js +54 -0
  438. package/dist/index.js.map +1 -0
  439. package/dist/layers/index.cjs +83 -0
  440. package/dist/layers/index.d.cts +3 -0
  441. package/dist/layers/index.d.ts +3 -0
  442. package/dist/layers/index.js +5 -0
  443. package/dist/map-client/index.cjs +5 -0
  444. package/dist/map-client/index.d.cts +6 -0
  445. package/dist/map-client/index.d.ts +6 -0
  446. package/dist/map-client/index.js +0 -0
  447. package/dist/maplibre-worker.mjs +12 -0
  448. package/dist/navigation/index.cjs +612 -0
  449. package/dist/navigation/index.cjs.map +1 -0
  450. package/dist/navigation/index.d.cts +551 -0
  451. package/dist/navigation/index.d.ts +551 -0
  452. package/dist/navigation/index.js +599 -0
  453. package/dist/navigation/index.js.map +1 -0
  454. package/dist/profile/index.cjs +177 -0
  455. package/dist/profile/index.d.cts +8 -0
  456. package/dist/profile/index.d.ts +8 -0
  457. package/dist/profile/index.js +10 -0
  458. package/dist/seams/index.cjs +15 -0
  459. package/dist/seams/index.d.cts +4 -0
  460. package/dist/seams/index.d.ts +4 -0
  461. package/dist/seams/index.js +4 -0
  462. package/dist/search/index.cjs +39 -0
  463. package/dist/search/index.d.cts +6 -0
  464. package/dist/search/index.d.ts +6 -0
  465. package/dist/search/index.js +3 -0
  466. package/dist/style/index.cjs +34 -0
  467. package/dist/style/index.d.cts +5 -0
  468. package/dist/style/index.d.ts +5 -0
  469. package/dist/style/index.js +5 -0
  470. package/dist/styles.css +11 -0
  471. package/dist/testing/index.cjs +444 -0
  472. package/dist/testing/index.cjs.map +1 -0
  473. package/dist/testing/index.d.cts +217 -0
  474. package/dist/testing/index.d.ts +217 -0
  475. package/dist/testing/index.js +435 -0
  476. package/dist/testing/index.js.map +1 -0
  477. package/dist/timezone/index.cjs +1953 -0
  478. package/dist/timezone/index.cjs.map +1 -0
  479. package/dist/timezone/index.d.cts +28 -0
  480. package/dist/timezone/index.d.ts +28 -0
  481. package/dist/timezone/index.js +1948 -0
  482. package/dist/timezone/index.js.map +1 -0
  483. package/dist/units/index.cjs +29 -0
  484. package/dist/units/index.d.cts +3 -0
  485. package/dist/units/index.d.ts +3 -0
  486. package/dist/units/index.js +3 -0
  487. package/dist/video/index.cjs +1713 -0
  488. package/dist/video/index.cjs.map +1 -0
  489. package/dist/video/index.d.cts +846 -0
  490. package/dist/video/index.d.ts +846 -0
  491. package/dist/video/index.js +1689 -0
  492. package/dist/video/index.js.map +1 -0
  493. package/dist/view/index.cjs +7 -0
  494. package/dist/view/index.d.cts +3 -0
  495. package/dist/view/index.d.ts +3 -0
  496. package/dist/view/index.js +1 -0
  497. package/package.json +433 -4
  498. package/src/agent/engines/session.ts +2255 -0
  499. package/src/agent/index.ts +109 -0
  500. package/src/agent/rules/agentError.ts +128 -0
  501. package/src/agent/rules/boundedInputJson.ts +53 -0
  502. package/src/agent/rules/conversation.ts +629 -0
  503. package/src/agent/rules/conversationFaults.ts +349 -0
  504. package/src/agent/rules/conversationHost.ts +390 -0
  505. package/src/agent/rules/dispatcher.ts +102 -0
  506. package/src/agent/rules/errorCodes.ts +78 -0
  507. package/src/agent/rules/errorStatus.ts +65 -0
  508. package/src/agent/rules/scriptedTransport.ts +390 -0
  509. package/src/agent/rules/stickToBottom.ts +38 -0
  510. package/src/agent/rules/toolResultPayload.ts +197 -0
  511. package/src/auth/rules/clientHeader.ts +22 -0
  512. package/src/auth/rules/sentCredential.ts +76 -0
  513. package/src/auth/rules/transformRequest.ts +803 -0
  514. package/src/camera/engines/videoFlight.ts +1758 -0
  515. package/src/camera/index.ts +157 -0
  516. package/src/camera/rules/clearance.ts +1099 -0
  517. package/src/camera/rules/fit.ts +132 -0
  518. package/src/camera/rules/modes.ts +1019 -0
  519. package/src/camera/rules/plan.ts +478 -0
  520. package/src/camera/rules/planner.ts +129 -0
  521. package/src/camera/rules/poseRanges.ts +38 -0
  522. package/src/camera/rules/presets.ts +185 -0
  523. package/src/camera/rules/profileSamples.ts +243 -0
  524. package/src/camera/rules/route.ts +596 -0
  525. package/src/camera/rules/routeContent.ts +105 -0
  526. package/src/camera/rules/spline.ts +765 -0
  527. package/src/camera/rules/sweptViewports.ts +39 -0
  528. package/src/camera/rules/track.ts +1412 -0
  529. package/src/camera/rules/vocabulary.ts +130 -0
  530. package/src/camera/rules/zoom.ts +216 -0
  531. package/src/collab/engines/session.ts +1902 -0
  532. package/src/collab/engines/trailingThrottle.ts +151 -0
  533. package/src/collab/index.ts +52 -0
  534. package/src/collab/rules/dispatch.ts +143 -0
  535. package/src/collab/rules/peerNames.ts +51 -0
  536. package/src/collab/rules/scriptedTransport.ts +244 -0
  537. package/src/compose/engines/baseMapSwitch.ts +1136 -0
  538. package/src/compose/engines/events.ts +962 -0
  539. package/src/compose/engines/mountayaMap.ts +5648 -0
  540. package/src/compose/engines/sentCredentials.ts +146 -0
  541. package/src/compose/engines/slotRequests.ts +413 -0
  542. package/src/compose/rules/accessRefusal.ts +109 -0
  543. package/src/compose/rules/accessStanding.ts +75 -0
  544. package/src/compose/rules/analysisKinds.ts +331 -0
  545. package/src/compose/rules/analysisLayers.ts +176 -0
  546. package/src/compose/rules/cameraMoves.ts +38 -0
  547. package/src/compose/rules/carriedLayers.ts +87 -0
  548. package/src/compose/rules/developmentWarnings.ts +167 -0
  549. package/src/compose/rules/fitBox.ts +67 -0
  550. package/src/compose/rules/fitCamera.ts +54 -0
  551. package/src/compose/rules/geoJsonSlot.ts +61 -0
  552. package/src/compose/rules/geometrySlots.ts +155 -0
  553. package/src/compose/rules/glyphNode.ts +62 -0
  554. package/src/compose/rules/layerKeys.ts +92 -0
  555. package/src/compose/rules/layerOrder.ts +85 -0
  556. package/src/compose/rules/layersManifest.ts +26 -0
  557. package/src/compose/rules/mapOptions.ts +300 -0
  558. package/src/compose/rules/maplibreWorkerVersion.gen.ts +8 -0
  559. package/src/compose/rules/markerPin.ts +122 -0
  560. package/src/compose/rules/markerRegistry.ts +85 -0
  561. package/src/compose/rules/markerSprite.ts +382 -0
  562. package/src/compose/rules/maxBounds.ts +120 -0
  563. package/src/compose/rules/overlayLookup.ts +49 -0
  564. package/src/compose/rules/paintDiff.ts +38 -0
  565. package/src/compose/rules/panLock.ts +77 -0
  566. package/src/compose/rules/patch.ts +124 -0
  567. package/src/compose/rules/queriedFeature.ts +55 -0
  568. package/src/compose/rules/queryLayers.ts +46 -0
  569. package/src/compose/rules/searchHighlight.ts +313 -0
  570. package/src/compose/rules/slotNames.ts +19 -0
  571. package/src/compose/rules/stripeImage.ts +253 -0
  572. package/src/compose/rules/swapMarker.ts +66 -0
  573. package/src/compose/rules/terrainVariant.ts +88 -0
  574. package/src/compose/rules/types.ts +559 -0
  575. package/src/compose/rules/urlHash.ts +19 -0
  576. package/src/compose/rules/viewOptions.ts +451 -0
  577. package/src/compose/rules/workerUrl.ts +131 -0
  578. package/src/data/engines/itineraryResource.ts +643 -0
  579. package/src/data/index.ts +78 -0
  580. package/src/data/rules/adapt.ts +473 -0
  581. package/src/data/rules/editModes.ts +51 -0
  582. package/src/data/rules/itinerary.ts +168 -0
  583. package/src/data/rules/nullable.ts +63 -0
  584. package/src/data/rules/roadAccess.ts +169 -0
  585. package/src/data/rules/segmentGroups.ts +309 -0
  586. package/src/data/rules/selectors.ts +95 -0
  587. package/src/data/rules/zones.ts +79 -0
  588. package/src/draw/engines/boundaryEngine.ts +1003 -0
  589. package/src/draw/engines/framedAdapter.ts +198 -0
  590. package/src/draw/engines/pointerCursor.ts +205 -0
  591. package/src/draw/engines/segmentEngine.ts +1405 -0
  592. package/src/draw/engines/snapIndex.ts +254 -0
  593. package/src/draw/engines/waypointEngine.ts +574 -0
  594. package/src/draw/engines/zoneEngine.ts +1137 -0
  595. package/src/draw/rules/drawFrame.ts +123 -0
  596. package/src/draw/rules/insertVertex.ts +226 -0
  597. package/src/draw/rules/screenSpace.ts +62 -0
  598. package/src/draw/rules/seeds.ts +185 -0
  599. package/src/draw/rules/snap.ts +115 -0
  600. package/src/draw/rules/snapCameraKey.ts +50 -0
  601. package/src/draw/rules/terraDrawShared.ts +214 -0
  602. package/src/draw/rules/zoneOutline.ts +213 -0
  603. package/src/editing/engines/cursor.ts +505 -0
  604. package/src/editing/engines/draftMarker.ts +149 -0
  605. package/src/editing/rules/accent.ts +11 -0
  606. package/src/editing/rules/engine.ts +288 -0
  607. package/src/editing/rules/placement.ts +22 -0
  608. package/src/editing/rules/positions.ts +89 -0
  609. package/src/editing/rules/sources.ts +9 -0
  610. package/src/editing/rules/types.ts +457 -0
  611. package/src/editing/rules/vocabulary.ts +10 -0
  612. package/src/editing/rules/waypointCursor.ts +228 -0
  613. package/src/editor/engines/directionArrows.ts +459 -0
  614. package/src/editor/engines/directions.ts +1383 -0
  615. package/src/editor/engines/editorClient.ts +134 -0
  616. package/src/editor/engines/eventScope.ts +59 -0
  617. package/src/editor/engines/frameLoop.ts +159 -0
  618. package/src/editor/engines/itineraryPreview.ts +272 -0
  619. package/src/editor/engines/mapLockGuard.ts +66 -0
  620. package/src/editor/engines/overlayRenderer.ts +2696 -0
  621. package/src/editor/engines/peerDraft.ts +760 -0
  622. package/src/editor/engines/poiPick.ts +305 -0
  623. package/src/editor/engines/pointPick.ts +84 -0
  624. package/src/editor/engines/roadAccessLine.ts +140 -0
  625. package/src/editor/engines/searchHighlight.ts +183 -0
  626. package/src/editor/engines/viewClient.ts +4091 -0
  627. package/src/editor/engines/zoneBadges.ts +503 -0
  628. package/src/editor/index.ts +97 -0
  629. package/src/editor/rules/accentColor.ts +116 -0
  630. package/src/editor/rules/camera.ts +121 -0
  631. package/src/editor/rules/contract.ts +120 -0
  632. package/src/editor/rules/icons.ts +825 -0
  633. package/src/editor/rules/markerElements.ts +244 -0
  634. package/src/editor/rules/style.ts +51 -0
  635. package/src/editor/rules/terrain.ts +98 -0
  636. package/src/editor/rules/tileWarm.ts +191 -0
  637. package/src/editor/rules/tilesReload.ts +158 -0
  638. package/src/editor/rules/zoneBadgePlacement.ts +1832 -0
  639. package/src/editor/rules/zoneTimeStyling.ts +119 -0
  640. package/src/errors/index.ts +25 -0
  641. package/src/errors/rules/errors.ts +158 -0
  642. package/src/errors/rules/print.ts +129 -0
  643. package/src/geo/index.ts +89 -0
  644. package/src/geo/rules/boundaries.ts +105 -0
  645. package/src/geo/rules/camera.ts +496 -0
  646. package/src/geo/rules/corridor.ts +242 -0
  647. package/src/geo/rules/elevationTiles.ts +269 -0
  648. package/src/geo/rules/formatLngLat.ts +63 -0
  649. package/src/geo/rules/geodesy.ts +125 -0
  650. package/src/geo/rules/geometry.ts +362 -0
  651. package/src/geo/rules/lineWalk.ts +77 -0
  652. package/src/geo/rules/longitude.ts +99 -0
  653. package/src/geo/rules/searchLimits.ts +22 -0
  654. package/src/geo/rules/segmentGeometry.ts +80 -0
  655. package/src/geo/rules/terrain.ts +107 -0
  656. package/src/geo/rules/tuples.ts +124 -0
  657. package/src/geo/rules/types.ts +54 -0
  658. package/src/geo/rules/webMercator.ts +57 -0
  659. package/src/i18n/fr/index.ts +17 -0
  660. package/src/i18n/fr/rules/fr.ts +85 -0
  661. package/src/i18n/fr/rules/words.gen.ts +277 -0
  662. package/src/i18n/index.ts +82 -0
  663. package/src/i18n/rules/bundle.ts +378 -0
  664. package/src/i18n/rules/config.ts +71 -0
  665. package/src/i18n/rules/dates.ts +165 -0
  666. package/src/i18n/rules/endonyms.gen.ts +19 -0
  667. package/src/i18n/rules/language.ts +92 -0
  668. package/src/i18n/rules/localizedName.ts +33 -0
  669. package/src/i18n/rules/merge.ts +106 -0
  670. package/src/i18n/rules/scope.ts +127 -0
  671. package/src/i18n/rules/strings.ts +632 -0
  672. package/src/i18n/rules/videoOverlay.ts +121 -0
  673. package/src/i18n/rules/wordForms.ts +95 -0
  674. package/src/i18n/rules/words.gen.ts +277 -0
  675. package/src/icons/index.ts +54 -0
  676. package/src/icons/rules/activities.ts +40 -0
  677. package/src/icons/rules/amenities.ts +250 -0
  678. package/src/icons/rules/artwork.gen.ts +83 -0
  679. package/src/icons/rules/artwork.ts +47 -0
  680. package/src/icons/rules/fallback.ts +21 -0
  681. package/src/icons/rules/lucideMarkers.gen.ts +112 -0
  682. package/src/icons/rules/lucideUi.gen.ts +197 -0
  683. package/src/icons/rules/paint.ts +107 -0
  684. package/src/icons/rules/parse.ts +475 -0
  685. package/src/icons/rules/provider.ts +373 -0
  686. package/src/icons/rules/sprites.ts +54 -0
  687. package/src/icons/rules/ui.ts +348 -0
  688. package/src/icons/rules/waypoints.ts +215 -0
  689. package/src/index.ts +993 -0
  690. package/src/layers/engines/layersSelection.ts +515 -0
  691. package/src/layers/engines/readoutEngine.ts +131 -0
  692. package/src/layers/index.ts +151 -0
  693. package/src/layers/rules/analysis.ts +135 -0
  694. package/src/layers/rules/enrichment.ts +30 -0
  695. package/src/layers/rules/geoJson.ts +270 -0
  696. package/src/layers/rules/hover.ts +67 -0
  697. package/src/layers/rules/itineraries.ts +182 -0
  698. package/src/layers/rules/layersPanel.ts +237 -0
  699. package/src/layers/rules/order.ts +194 -0
  700. package/src/layers/rules/overlayInstant.ts +49 -0
  701. package/src/layers/rules/overlays.ts +52 -0
  702. package/src/layers/rules/poiPanel.ts +119 -0
  703. package/src/layers/rules/pois.ts +114 -0
  704. package/src/layers/rules/readout.ts +340 -0
  705. package/src/layers/rules/streetView.ts +16 -0
  706. package/src/layers/rules/tileTimestamp.ts +146 -0
  707. package/src/layers/rules/timeSlider.ts +192 -0
  708. package/src/layers/rules/timeWindow.ts +123 -0
  709. package/src/layers/rules/zones.ts +43 -0
  710. package/src/layers/rules/zoom.ts +77 -0
  711. package/src/map-client/index.ts +71 -0
  712. package/src/map-client/rules/mapClient.ts +1945 -0
  713. package/src/navigation/engines/navigation.ts +493 -0
  714. package/src/navigation/index.ts +51 -0
  715. package/src/navigation/rules/followedRoute.ts +78 -0
  716. package/src/navigation/rules/instructions.ts +89 -0
  717. package/src/navigation/rules/itineraryRoute.ts +232 -0
  718. package/src/navigation/rules/offRoute.ts +41 -0
  719. package/src/navigation/rules/progress.ts +230 -0
  720. package/src/navigation/rules/prompts.ts +217 -0
  721. package/src/navigation/rules/routeRequest.ts +98 -0
  722. package/src/navigation/rules/status.ts +142 -0
  723. package/src/navigation/rules/steps.ts +234 -0
  724. package/src/navigation/rules/types.ts +83 -0
  725. package/src/profile/index.ts +307 -0
  726. package/src/profile/rules/amenityBadge.ts +35 -0
  727. package/src/profile/rules/amenityFilter.ts +74 -0
  728. package/src/profile/rules/amenityStacks.ts +66 -0
  729. package/src/profile/rules/axis.ts +89 -0
  730. package/src/profile/rules/axisCulling.ts +83 -0
  731. package/src/profile/rules/axisLookup.ts +180 -0
  732. package/src/profile/rules/climbs.ts +292 -0
  733. package/src/profile/rules/cursorMarker.ts +122 -0
  734. package/src/profile/rules/cursorReadout.ts +104 -0
  735. package/src/profile/rules/curvePlacement.ts +216 -0
  736. package/src/profile/rules/dock.ts +293 -0
  737. package/src/profile/rules/elevation.ts +1263 -0
  738. package/src/profile/rules/instant.ts +89 -0
  739. package/src/profile/rules/intl.ts +237 -0
  740. package/src/profile/rules/legEmphasis.ts +53 -0
  741. package/src/profile/rules/profileColors.ts +66 -0
  742. package/src/profile/rules/profileLayout.ts +59 -0
  743. package/src/profile/rules/profileSlices.ts +55 -0
  744. package/src/profile/rules/routeProfile.ts +475 -0
  745. package/src/profile/rules/rowMatch.ts +50 -0
  746. package/src/profile/rules/scale.ts +646 -0
  747. package/src/profile/rules/scaleFrame.ts +171 -0
  748. package/src/profile/rules/sectionChips.ts +83 -0
  749. package/src/profile/rules/sections.ts +923 -0
  750. package/src/profile/rules/slopeRamp.ts +160 -0
  751. package/src/profile/rules/statStrip.ts +103 -0
  752. package/src/profile/rules/steepness.ts +51 -0
  753. package/src/profile/rules/tableCells.ts +269 -0
  754. package/src/profile/rules/tableCursor.ts +87 -0
  755. package/src/profile/rules/unitPatterns.ts +335 -0
  756. package/src/profile/rules/units.ts +1025 -0
  757. package/src/profile/rules/waypointCard.ts +590 -0
  758. package/src/profile/rules/webAddress.ts +130 -0
  759. package/src/profile/rules/windowSpans.ts +65 -0
  760. package/src/rules/asciiFold.ts +17 -0
  761. package/src/rules/inDevelopment.ts +54 -0
  762. package/src/rules/listeners.ts +62 -0
  763. package/src/rules/timers.ts +9 -0
  764. package/src/rules/types.ts +22 -0
  765. package/src/rules/uuid.ts +87 -0
  766. package/src/seams/engines/geolocateControl.ts +286 -0
  767. package/src/seams/index.ts +50 -0
  768. package/src/seams/rules/clock.ts +169 -0
  769. package/src/seams/rules/geolocation.ts +165 -0
  770. package/src/seams/rules/segmentRoute.ts +187 -0
  771. package/src/search/engines/search.ts +1093 -0
  772. package/src/search/index.ts +99 -0
  773. package/src/search/rules/describe.ts +383 -0
  774. package/src/search/rules/filters.ts +195 -0
  775. package/src/search/rules/highlight.ts +270 -0
  776. package/src/search/rules/pick.ts +90 -0
  777. package/src/search/rules/rows.ts +258 -0
  778. package/src/search/rules/searchFocus.ts +27 -0
  779. package/src/search/rules/searchViewport.ts +44 -0
  780. package/src/search/rules/shown.ts +77 -0
  781. package/src/search/rules/types.ts +340 -0
  782. package/src/stream/rules/reconnectSchedule.ts +83 -0
  783. package/src/style/engines/organizationRead.ts +80 -0
  784. package/src/style/index.ts +63 -0
  785. package/src/style/rules/apply.ts +268 -0
  786. package/src/style/rules/attribution.ts +119 -0
  787. package/src/style/rules/itineraryLine.ts +142 -0
  788. package/src/style/rules/language.ts +668 -0
  789. package/src/style/rules/layout.gen.ts +27 -0
  790. package/src/style/rules/organization.ts +96 -0
  791. package/src/style/rules/paint.ts +143 -0
  792. package/src/style/rules/panelLayout.ts +51 -0
  793. package/src/style/rules/roadAccessColors.ts +29 -0
  794. package/src/style/rules/roadAccessLine.ts +267 -0
  795. package/src/style/rules/segmentColors.ts +207 -0
  796. package/src/testing/catalogs.ts +103 -0
  797. package/src/testing/index.ts +30 -0
  798. package/src/testing/mapClient.ts +241 -0
  799. package/src/testing/mountayaMap.ts +741 -0
  800. package/src/timezone/index.ts +14 -0
  801. package/src/timezone/rules/viewport.ts +875 -0
  802. package/src/units/index.ts +55 -0
  803. package/src/units/rules/conversions.ts +620 -0
  804. package/src/units/rules/preferenceChoices.ts +124 -0
  805. package/src/units/rules/preferences.ts +77 -0
  806. package/src/units/rules/rounding.ts +69 -0
  807. package/src/video/engines/videoRun.ts +654 -0
  808. package/src/video/engines/viewClient.ts +6 -0
  809. package/src/video/index.ts +83 -0
  810. package/src/video/profileOverlay/rules/contract.ts +210 -0
  811. package/src/video/profileOverlay/rules/curve.ts +216 -0
  812. package/src/video/profileOverlay/rules/draw.ts +410 -0
  813. package/src/video/profileOverlay/rules/fonts.ts +54 -0
  814. package/src/video/profileOverlay/rules/graphDesign.ts +690 -0
  815. package/src/video/profileOverlay/rules/minimalDesign.ts +144 -0
  816. package/src/video/profileOverlay/rules/registry.ts +23 -0
  817. package/src/video/profileOverlay/rules/staticLayer.ts +582 -0
  818. package/src/video/profileOverlay/rules/stripDesign.ts +327 -0
  819. package/src/video/profileOverlay/rules/types.ts +78 -0
  820. package/src/video/rules/videoConstants.ts +250 -0
  821. package/src/video/rules/videoEncoder.ts +277 -0
  822. package/src/video/rules/videoFrames.ts +99 -0
  823. package/src/video/rules/videoPreview.ts +185 -0
  824. package/src/video/rules/videoRecorder.ts +746 -0
  825. package/src/video/rules/videoWatermark.ts +155 -0
  826. package/src/video/rules/watermarkMark.ts +40 -0
  827. package/src/view/engines/viewClient.ts +6 -0
  828. package/src/view/index.ts +20 -0
@@ -0,0 +1,928 @@
1
+ import { n as FitBoundsPadding, t as BoundingBox } from "./chunk-fozLXfHY.cjs";
2
+ import { c as WaypointEditMode, i as ZoneMode, o as SegmentEditMode } from "./chunk-A48H1rDg.cjs";
3
+ import { i as TileSpecification } from "./chunk-bYf1sBz5.cjs";
4
+ import "./chunk-Bqt97zwf.cjs";
5
+ import { n as SegmentAnalyzeFn, r as SegmentRoute, s as SegmentRouteFn } from "./chunk-BRnjQq6K.cjs";
6
+ import { DataSchema, DirectionsResult as DirectionsResult$1, GeocodeResult as GeocodeResult$1, IsochronesResult as IsochronesResult$1, MatrixResult, MatrixResult as MatrixResult$1, PoisResult as PoisResult$1, RestSchema, SearchResult as SearchResult$1, SuggestionsResult as SuggestionsResult$1 } from "@mountaya/client";
7
+ import { Feature, Geometry, Polygon, Position } from "geojson";
8
+ /**
9
+ * Layers is the layers manifest: every terrain, overlay and enrichment a credential may draw, as
10
+ * `MountayaMap.loadLayers` answers it.
11
+ */
12
+ type Layers = RestSchema.Layers;
13
+ /**
14
+ * Overlay is one overlay the layers manifest lists, tile sources included: the value a map
15
+ * client's overlay slots take whole.
16
+ */
17
+ type Overlay = RestSchema.Overlay;
18
+ /** CategoryOverlays is one group of overlays the layers manifest lists, with its overlays. */
19
+ type CategoryOverlays = RestSchema.CategoryOverlays;
20
+ /** Terrain is one base map the layers manifest lists, with its light and dark variants. */
21
+ type Terrain = RestSchema.Terrain;
22
+ /** DirectionsInput is what `MountayaMap.addDirections` asks the Data API's directions read. */
23
+ type DirectionsInput = DataSchema.DirectionsInput;
24
+ /** SuggestionsInput is what `MountayaMap.addSuggestions` asks the Data API's suggestions read. */
25
+ type SuggestionsInput = DataSchema.SuggestionsInput;
26
+ /** IsochronesInput is what `MountayaMap.addIsochrones` asks the Data API's isochrones read. */
27
+ type IsochronesInput = DataSchema.IsochronesInput;
28
+ /** MatrixInput is what `MountayaMap.addMatrix` asks the Data API's matrix read. */
29
+ type MatrixInput = DataSchema.MatrixInput;
30
+ /** GeocodeInput is what `MountayaMap.addPlaces` asks the Data API's geocoding read. */
31
+ type GeocodeInput = DataSchema.GeocodeInput;
32
+ /**
33
+ * PoisInput is what `MountayaMap.setPointsOfInterest` asks the Data API's points-of-interest
34
+ * read: the contract's `PoisInput`.
35
+ */
36
+ type PoisInput = DataSchema.PoisInput;
37
+ /** SearchInput is what `MountayaMap.search` asks the Data API's unified search. */
38
+ type SearchInput = DataSchema.SearchInput;
39
+ /** SearchTargetsInput names the targets a search looks through, one flag each. */
40
+ type SearchTargetsInput = DataSchema.SearchTargetsInput;
41
+ /** DataActivitySlug is an activity as the Data API spells it, such as `"BACKCOUNTRY_SKIING"`. */
42
+ type DataActivitySlug = DataSchema.ActivitySlug;
43
+ /** DataRangeType is what an isochrone's range budgets: `"DISTANCE"` or `"TIME"`. */
44
+ type DataRangeType = DataSchema.RangeType;
45
+ /** MatrixMetric is what a matrix measures between its locations: `"DISTANCE"` or `"DURATION"`. */
46
+ type MatrixMetric = DataSchema.MatrixMetric;
47
+ /** PoiCategory is a category of point of interest, as the Data API spells it. */
48
+ type PoiCategory = DataSchema.PoiCategory;
49
+ /** RouteHazard is a hazard a directions read can be asked to route around. */
50
+ type RouteHazard = DataSchema.RouteHazard;
51
+ /** Identifies one drawn analysis result, so `edit` and `remove` can name it. */
52
+ type AnalysisId = string;
53
+ /**
54
+ * What an `add*` answers: the id it drew under, and the result it drew.
55
+ *
56
+ * Both halves earn their place. The id is what makes the resource editable and removable
57
+ * rather than only replaceable; the result is the data the query already paid for, and
58
+ * withholding it would force a second call for numbers the first one returned, which is
59
+ * the whole point for `addMatrix`, whose result has no geometry at all.
60
+ */
61
+ interface AnalysisHandle<Result> {
62
+ readonly id: AnalysisId;
63
+ readonly result: Result;
64
+ }
65
+ /** DrawOptions is what every drawing call on a map takes: whether the camera frames the drawing. */
66
+ interface DrawOptions {
67
+ /**
68
+ * Frames the camera on what the call draws, once it is drawn: `true` with MapLibre's own
69
+ * padding, zoom ceiling and ease, or the {@link FitBoundsOptions} to frame with.
70
+ *
71
+ * Off unless asked for, on every drawing call: a map that jumped on every added layer would
72
+ * fight an application driving its own camera, and opting in is one word.
73
+ *
74
+ * Read as the call is made: a value that is neither a boolean nor an object of options, and
75
+ * options `fitBounds` refuses, reject the call with a `MountayaElementsError` that names its
76
+ * method, before anything is asked or drawn.
77
+ *
78
+ * @default false
79
+ */
80
+ readonly fit?: boolean | FitBoundsOptions | undefined;
81
+ }
82
+ /**
83
+ * CollectionDrawOptions is what `MountayaMap.setCollection` takes beside the collection: whether
84
+ * the camera frames it, and the signal that withdraws the call.
85
+ */
86
+ interface CollectionDrawOptions extends DrawOptions {
87
+ /**
88
+ * Withdraws the call. The signal is handed to the read the call makes through the client, and
89
+ * an abort made before the collection is drawn rejects the call with the signal's reason, with
90
+ * nothing drawn and nothing framed.
91
+ *
92
+ * @default undefined The call cannot be withdrawn, and a later call or a clear supersedes it.
93
+ */
94
+ readonly signal?: AbortSignal | undefined;
95
+ }
96
+ /**
97
+ * ItineraryDrawOptions is what `MountayaMap.setItinerary` takes beside the itinerary: whether the
98
+ * camera frames it, and the signal that withdraws the call.
99
+ */
100
+ interface ItineraryDrawOptions extends DrawOptions {
101
+ /**
102
+ * Withdraws the call. The signal is handed to every read the call makes through the client,
103
+ * and an abort made before the itinerary is drawn rejects the call with the signal's reason,
104
+ * with nothing drawn and nothing framed.
105
+ *
106
+ * @default undefined The call cannot be withdrawn, and a later call or a clear supersedes it.
107
+ */
108
+ readonly signal?: AbortSignal | undefined;
109
+ }
110
+ /**
111
+ * SuggestionDrawOptions is what `MountayaMap.addSuggestions` and `editSuggestions` take beside
112
+ * the input: whether the camera frames the drawing, and which candidate reads as chosen.
113
+ */
114
+ interface SuggestionDrawOptions extends DrawOptions {
115
+ /**
116
+ * Which candidate reads as chosen: solid, in the chosen colour, with the rest dashed.
117
+ *
118
+ * Changing it through `editSuggestions(id, {}, { chosen })` restyles from the result already
119
+ * held rather than asking again: suggestions are seeded, so re-running would answer a
120
+ * *different* set of itineraries than the one whose candidate the user just picked.
121
+ *
122
+ * @default 0, because the API returns candidates best-first.
123
+ */
124
+ readonly chosen?: number | undefined;
125
+ }
126
+ /**
127
+ * MatrixDrawOptions is what `MountayaMap.addMatrix` takes beside the input: whether the camera
128
+ * frames the matrix, and a result already held for that input.
129
+ */
130
+ interface MatrixDrawOptions extends DrawOptions {
131
+ /**
132
+ * The result of this input, when the caller already holds it: the matrix is drawn from it and
133
+ * the client is asked nothing.
134
+ *
135
+ * A matrix result is grids of numbers and no geometry, so it rides beside the input whose
136
+ * locations its connectors run between, and never in its place. The result is the caller's
137
+ * to match to the input: a cell the grid does not hold for a pair of locations draws no
138
+ * connector. The input is kept, so `editMatrix` merges its patch onto it and asks the client
139
+ * then.
140
+ *
141
+ * @default undefined The map asks the client for the matrix.
142
+ */
143
+ readonly result?: MatrixResult | undefined;
144
+ }
145
+ /**
146
+ * A renderable resource, given either as an id to fetch or as a specification already held.
147
+ *
148
+ * Both forms exist because both are real. An application that has just read an itinerary
149
+ * detail already holds its specification, and making it pass an id would buy a second round
150
+ * trip for bytes it has in hand; an application that only knows an id should not have to
151
+ * learn which endpoint answers a specification. `null` clears the slot.
152
+ */
153
+ type Renderable = string | TileSpecification | null;
154
+ /** A camera position. Every field is optional; the ones omitted are left where they are. */
155
+ interface CameraPose {
156
+ readonly center?: [number, number] | undefined;
157
+ readonly zoom?: number | undefined;
158
+ readonly bearing?: number | undefined;
159
+ readonly pitch?: number | undefined;
160
+ }
161
+ /** The camera as it currently stands. Unlike `CameraPose`, every field is present. */
162
+ interface Camera {
163
+ readonly center: [number, number];
164
+ readonly zoom: number;
165
+ readonly bearing: number;
166
+ readonly pitch: number;
167
+ }
168
+ /** A pin on the map, drawn with Mountaya's own glyph set. */
169
+ interface MarkerOptions {
170
+ /**
171
+ * Identifies the marker for `removeMarker`. Adding a second marker with an id in use replaces
172
+ * the first.
173
+ */
174
+ readonly id: string;
175
+ /**
176
+ * Where the marker is pinned: a longitude and a latitude, the latitude from -90 to 90, and an
177
+ * altitude after them where the caller holds one, as a GeoJSON position carries it. A marker is
178
+ * drawn flat on the map, so the altitude is ignored.
179
+ */
180
+ readonly lngLat: [number, number] | [number, number, number];
181
+ /** A glyph name the icon provider can draw. Falls back to a plain pin when it cannot. */
182
+ readonly glyph?: string | undefined;
183
+ readonly color?: string | undefined;
184
+ /** Rendered in a popup on click, as text. Never as markup: a marker label is data. */
185
+ readonly label?: string | undefined;
186
+ readonly onClick?: (() => void) | undefined;
187
+ /**
188
+ * An element to stand up instead of the glyph pin, built fresh each time the marker is built.
189
+ *
190
+ * The escape hatch for a marker this package cannot describe: a rotating bearing arrow, a
191
+ * profile cursor that carries its own chrome, a focus dot drawn to a video's design. Without
192
+ * it the only way to draw one is `new maplibregl.Marker(...).addTo(map.raw)`, which is a
193
+ * second marker lifecycle beside this one: `removeMarker` and `clearMarkers` cannot see it,
194
+ * and an id collision is undetectable.
195
+ *
196
+ * A factory rather than an element, because a marker is built again from what it holds:
197
+ * `render` runs at `addMarker`, and again at every `editMarker` of the id. Handed a live node
198
+ * the map could only re-attach the same one, which is the arrangement that breaks the moment
199
+ * a caller mutates it. A marker is DOM over the canvas, so a base-map switch leaves it as it is.
200
+ *
201
+ * `glyph` and `color` are ignored when this is set: the element IS the marker. `label` and
202
+ * `onClick` still apply, so a custom marker keeps the popup and the handler.
203
+ */
204
+ readonly render?: (() => HTMLElement) | undefined;
205
+ }
206
+ /**
207
+ * FitBoundsOptions is how `MountayaMap.fitBounds` frames a box, and what `fit` frames a drawing
208
+ * with: `padding` in pixels, on every side or per side, `maxZoom` the zoom the camera stops at,
209
+ * and `duration` the ease in milliseconds. A member left out, or stated as `undefined`, takes
210
+ * MapLibre's own default.
211
+ */
212
+ interface FitBoundsOptions {
213
+ readonly padding?: FitBoundsPadding | number | undefined;
214
+ readonly maxZoom?: number | undefined;
215
+ readonly duration?: number | undefined;
216
+ }
217
+ /**
218
+ * The zoom window a layer draws over, as MapLibre spells it.
219
+ *
220
+ * `minzoom`/`maxzoom` rather than `min`/`max` because those are the names a layer carries in
221
+ * a style document, so a caller reading one off `map.raw.getLayer(id)` passes it straight in.
222
+ * A tile specification states the same window per source and is accepted in its place (see
223
+ * `MountayaMap.easeIntoZoomRange`).
224
+ */
225
+ interface ZoomRange {
226
+ readonly minzoom: number;
227
+ readonly maxzoom: number;
228
+ }
229
+ /**
230
+ * What a slot has just put on the map, handed to `onMounted`.
231
+ *
232
+ * The ids are the payload, not a convenience. A manifest assigns layer and source ids with a
233
+ * per-source prefix that is not stable across specifications, so a caller cannot spell them
234
+ * in advance, and they are exactly what a companion layer needs: the anchor to draw against
235
+ * and the targets to re-assert a paint fold on. The specification travels with them so a
236
+ * handler shared across slots can read the source windows without holding the bytes twice.
237
+ */
238
+ interface MountedSpecification {
239
+ /** The specification whose layers were just added. */
240
+ readonly specification: TileSpecification;
241
+ /** The layer ids now live, in the order they were added. */
242
+ readonly layerIds: readonly string[];
243
+ /** The source ids now registered. */
244
+ readonly sourceIds: readonly string[];
245
+ }
246
+ /** Options every specification mount accepts. */
247
+ interface MountOptions {
248
+ /**
249
+ * Called once the slot's layers are live, and again after every style swap replays them.
250
+ *
251
+ * The seam for content this package draws and a caller has to finish: a companion layer
252
+ * added with `MountayaMap.addLayer`, or a paint fold written straight onto the ids the
253
+ * manifest assigned. A paint fold is destroyed by `setStyle` and `setTerrain`, which rebuild
254
+ * the style from nothing and draw the slot's layers again as the manifest writes them, and a
255
+ * companion layer is carried over as `MountayaMap.addLayer` states, where the hook's own add
256
+ * finds it. Without a hook that fires on the replay too, a base-map switch leaves the mount
257
+ * whole and the caller's fold gone, silently.
258
+ *
259
+ * A mount made while a base-map switch is still fetching its document is drawn at once on
260
+ * the base map still shown when that base map reports loaded, which is where the reader sees
261
+ * it, so the hook runs then and again once the switch replays it. While that base map's own
262
+ * tiles are still loading the mount waits for the switch to end, and is drawn on the style
263
+ * the switch leaves on the map. A switch whose style does not arrive replays nothing that
264
+ * stayed drawn, and runs no hook for it.
265
+ *
266
+ * May return a promise, which is awaited: a swap resolves when the map is finished, folds
267
+ * included. A rejection at the call site rejects that `set` or `add`, since the caller is
268
+ * there to catch it. A rejection during a replay is emitted on the map's `error` event
269
+ * instead: one caller's fold must not be able to abort the replay of every other slot.
270
+ */
271
+ readonly onMounted?: ((mounted: MountedSpecification) => void | Promise<void>) | undefined;
272
+ }
273
+ /**
274
+ * A feature a point query found: a GeoJSON feature, with the layer that drew it and the source
275
+ * layer it was read from.
276
+ *
277
+ * `id` is the feature's own, where the source gives it one. `properties` holds the ones that are a
278
+ * string, a number, a boolean or null. A feature two layers drew, a line and the casing under it,
279
+ * is answered once for each, each naming its own `layer`.
280
+ */
281
+ interface QueriedFeature extends Feature<Geometry, Record<string, boolean | number | string | null>> {
282
+ /** The id of the layer that drew the feature. */
283
+ readonly layer: string;
284
+ /** The source layer the feature was read from, where its layer reads a vector source. */
285
+ readonly sourceLayer?: string | undefined;
286
+ }
287
+ /**
288
+ * The events a map emits.
289
+ *
290
+ * Deliberately smaller than MapLibre's own set. These are the ones expressed in Mountaya's
291
+ * vocabulary: a feature rather than a rendered layer, an access refusal rather than an HTTP
292
+ * status. Everything MapLibre emits stays reachable on `map.raw`.
293
+ */
294
+ interface MountayaMapEvents {
295
+ /**
296
+ * A click anywhere on the map that no edit in progress took.
297
+ *
298
+ * Told once every listener of the gesture on the renderer has run, a microtask after it and
299
+ * inside the same task. A click an edit engine handled, such as one that places a vertex,
300
+ * marks the renderer's event with `preventDefault`, and is told to nobody here: neither as
301
+ * `click` nor as `featureclick`.
302
+ *
303
+ * `lngLat` is `[longitude, latitude]`, the longitude within [-180, 180] over every copy of the
304
+ * world the camera shows. `point` is the pixel, as the renderer reads it.
305
+ */
306
+ click: {
307
+ readonly lngLat: [number, number];
308
+ readonly point: [number, number];
309
+ };
310
+ /**
311
+ * The camera as it changes: continuously through a pan, zoom, rotate or pitch, and once
312
+ * per rendered frame for as long as the gesture or the animation lasts.
313
+ *
314
+ * What a compass needle, a scale bar or a zoom readout follows: anything drawn from the
315
+ * pose has to arrive per frame or it sits still through the drag and then snaps. A handler
316
+ * here runs on the render path, so compare before acting on it: the four fields rarely
317
+ * change together, and a pan leaves three of them exactly where they were.
318
+ */
319
+ move: Camera;
320
+ /**
321
+ * The camera settled after a pan, zoom, rotate or pitch.
322
+ *
323
+ * Where anything a frame cannot afford belongs: a query scoped to the visible area, a URL
324
+ * the pose is written into, a fetch for what is now on screen. The payload is the same as
325
+ * `move`, so the choice between the two is only ever about what the handler costs.
326
+ */
327
+ moveend: Camera;
328
+ /**
329
+ * The zoom window changed: the lowest or the highest zoom the camera may reach, as
330
+ * `getZoomLimits` now answers it.
331
+ *
332
+ * Told once per change, by whichever caller made it (`setConstraints` on the map or on a client
333
+ * over it), and never for a call that left the window where it was. A window that leaves the
334
+ * camera outside it moves the camera to its nearest limit, which `move` and `moveend` tell; this
335
+ * tells a window that moved with the camera standing still, the one change a zoom button gated
336
+ * on the limits would otherwise miss.
337
+ */
338
+ zoomlimitschange: {
339
+ readonly max: number;
340
+ readonly min: number;
341
+ };
342
+ /**
343
+ * A click that landed on one of the map's own features, told as `click` is and under the same
344
+ * rule, its longitude within [-180, 180].
345
+ */
346
+ featureclick: {
347
+ readonly lngLat: [number, number];
348
+ readonly features: readonly QueriedFeature[];
349
+ };
350
+ /**
351
+ * The pointer moved over the map: `features` holds the itinerary's features under it, routed
352
+ * lines and waypoints, topmost first, and is empty while the pointer is off them and as it
353
+ * leaves the canvas.
354
+ *
355
+ * The itinerary's features alone, where `featureclick` reports every feature the map drew: a hover
356
+ * follows a route, and a hit-test across every overlay and point of interest the map holds
357
+ * would cost each pointer frame a query no listener reads. `poisAt` and `zonesAt` answer for
358
+ * the other layers at a point of your choosing.
359
+ *
360
+ * Reported at most once per animation frame, for the position the pointer ended the frame on,
361
+ * and for as long as the pointer moves, so a handler hears a feature again on every frame the
362
+ * pointer is still over it. Nothing is asked of the renderer while no handler is attached. The
363
+ * longitude is within [-180, 180].
364
+ */
365
+ featurehover: {
366
+ readonly lngLat: [number, number];
367
+ readonly features: readonly QueriedFeature[];
368
+ };
369
+ /**
370
+ * A right-click, or a long press, anywhere on the map that no edit in progress took. Told as
371
+ * `click` is: after every listener of the gesture on the renderer has run, and never for one
372
+ * an edit engine marked with `preventDefault`. The longitude is within [-180, 180].
373
+ */
374
+ contextmenu: {
375
+ readonly lngLat: [number, number];
376
+ readonly point: [number, number];
377
+ };
378
+ /**
379
+ * The API refused one of the map's own requests for want of access: a 401, a 402 or a 403.
380
+ *
381
+ * `status` is the refusal and `url` the address refused: a tile, a sprite, a glyph or a style
382
+ * MapLibre asked for, or the layers manifest the map reads for itself when it is built with no
383
+ * `style`. A 401 is a credential the API does not accept (a session token that expired), a 402
384
+ * an entitlement the agreement does not include, and a 403 a resource the credential may not
385
+ * read. To add an entitlement to the agreement, talk to us at https://mountaya.com/en/contact/.
386
+ *
387
+ * Emitted rather than thrown because it arrives asynchronously, from inside MapLibre's own
388
+ * fetching or from the read the constructor started, with no call of yours on the stack to
389
+ * reject. Entitlement itself is not this package's business: the API refuses and this
390
+ * reports that it did, so an application can show its own notice of what the credential or
391
+ * the agreement does not cover instead of a map that quietly stays blank. A refusal is never
392
+ * also reported as `error`.
393
+ *
394
+ * A 401 or a 403 answering a request that left with a session token the client has replaced
395
+ * since, or under the key alone before the client's first token arrived, is neither emitted nor
396
+ * reported as `error`, and starts no refusal: it refuses a credential the map has given up, and
397
+ * the next request carries the one the client sends now. A style refused so is asked for again.
398
+ * A refusal of a request a `transformRequest` of your own sent is emitted as it is, since the
399
+ * map cannot read what that transform attaches, and so is a refusal of a share-link visitor's
400
+ * cookie, which the browser holds out of the page's reach.
401
+ *
402
+ * The first can arrive before the style has loaded, so attach the handler as soon as the map
403
+ * is built. An event emitted while no handler is attached is not kept.
404
+ */
405
+ accessrequired: {
406
+ readonly status: number;
407
+ readonly url: string;
408
+ };
409
+ /**
410
+ * The last refusal of access that stood has ended: what `accessrequired` reported is over, and
411
+ * `isAccessRequired` answers false.
412
+ *
413
+ * A refusal stands for the source it came from until a tile of that source loads, so one tile
414
+ * sent with a session token that had just expired is answered by the next tile sent with the
415
+ * fresh one, while an agreement that does not include what a source draws keeps it refused
416
+ * however many tiles load beside it. A source that leaves the style takes its refusal with it,
417
+ * which the next tile to load from any source, or the next style, finds. A refusal that names
418
+ * no source, of a style, a sprite or the layers manifest, ends as the next style loads.
419
+ *
420
+ * Told once as the last standing refusal ends, and again only after a later refusal has ended in
421
+ * turn. It is the event that lowers a notice `accessrequired` raised.
422
+ */
423
+ accessrestored: undefined;
424
+ /**
425
+ * What the map draws from its tile slots, or shows of it, changed: an itinerary, a collection,
426
+ * an overlay, an enrichment, a named specification or a toggle was asked for, replaced or
427
+ * cleared; a layer of the caller's own was added, removed or placed at another rank; or a
428
+ * layer or a key was hidden or shown.
429
+ *
430
+ * It is the signal to read the map again: `drawnLayerKeys`, `layerIdsForKey`, `getEnrichments`,
431
+ * `getSpecifications`, `isLayerVisible` and `isKeyVisible` already answer the change as a
432
+ * handler hears of it. A getter that answers a list answers one frozen array from a change
433
+ * to the next, so read twice in between it answers the same array, which makes the event and
434
+ * a getter the pair `useSyncExternalStore` takes.
435
+ *
436
+ * Emitted once per change, by whichever caller made it, and never for a call that changed
437
+ * nothing: a slot restating the specification or the overlay it holds, a clear of an empty
438
+ * slot, a layer hidden twice. A key hidden across several layers is one change. A slot taken
439
+ * from a call still waiting on the style, by a call that has yet to load, is a change, and so
440
+ * is the slot given back as that call is withdrawn.
441
+ *
442
+ * A slot is reported as it is asked for, so its layers may still be waiting on the style:
443
+ * `onMounted` is the hook that follows them onto the map. A base-map switch replays the same
444
+ * content and is reported as `styleload` alone. A preview, a highlight, an emphasis, a Data
445
+ * API result, a marker and the Street View coverage are not reported: they move with the
446
+ * pointer or a gesture, and none of those getters reads them.
447
+ */
448
+ displaychange: undefined;
449
+ /**
450
+ * What `getLayers` answers changed: a read of the layers manifest landed, or
451
+ * `setLayersOrganization` moved the studio scope and dropped the manifest held, which
452
+ * `getLayers` then answers as undefined until the new scope's read lands.
453
+ *
454
+ * It is the signal for a picker to read the catalogue again. A read that lands after the scope
455
+ * moved is never told: what it holds is another scope's catalogue.
456
+ */
457
+ layerschange: undefined;
458
+ /**
459
+ * A style finished loading: the one the map is built with, the one each base-map switch
460
+ * brings in, and the one the map had as it returns with a lost WebGL context. A switch whose
461
+ * style does not arrive reports none.
462
+ */
463
+ styleload: undefined;
464
+ /**
465
+ * A failure with no call of yours on the stack to reject: an error MapLibre reported (a style
466
+ * that does not parse, a tile the server failed on), the base map the constructor asked for
467
+ * not arriving (the layers manifest unreachable, a `terrain` it does not list), or the canvas
468
+ * losing its WebGL context. A refusal of access is `accessrequired` and never arrives here.
469
+ *
470
+ * A lost context arrives once per loss, as a `MountayaElementsError` whose `cause` is the
471
+ * browser's own `webglcontextlost` event. The canvas is blank from then until the browser
472
+ * restores the context, which MapLibre redraws on by itself. What the map is asked to draw or
473
+ * to clear meanwhile is on the style once the context is back, as `styleload` reports it.
474
+ *
475
+ * Attach the handler as soon as the map is built, for the reason `accessrequired` gives.
476
+ */
477
+ error: {
478
+ readonly error: Error;
479
+ };
480
+ }
481
+ /** MountayaMapEvent names an event a map emits, as {@link MountayaMapEvents} keys it. */
482
+ type MountayaMapEvent = keyof MountayaMapEvents;
483
+ /** Unsubscribes a listener. Returned by `on` so a caller never needs the handler again. */
484
+ type Unsubscribe = () => void;
485
+ /**
486
+ * The paint a caller may state for a raster a map adds on its behalf.
487
+ *
488
+ * Spelled out rather than aliased to MapLibre's `RasterLayerSpecification["paint"]`, which is
489
+ * the wider set and includes the properties that would break the layer's contract with the
490
+ * rest of the map: `raster-fade-duration`, whose zero is the reason the coverage paints
491
+ * at all under draped terrain, and the source-driven properties a caller has no source to
492
+ * drive. The members here are the ones that describe how an already-correct raster should LOOK.
493
+ */
494
+ interface RasterPaint {
495
+ readonly "raster-brightness-max"?: number | undefined;
496
+ readonly "raster-brightness-min"?: number | undefined;
497
+ readonly "raster-contrast"?: number | undefined;
498
+ readonly "raster-hue-rotate"?: number | undefined;
499
+ readonly "raster-saturation"?: number | undefined;
500
+ }
501
+ /**
502
+ * ZoneEditMode is one zone authoring mode: a member of `ZONE_MODES`, the zone vocabulary
503
+ * `./data` publishes, under the name a reader of an edit session reaches for.
504
+ *
505
+ * The segment and waypoint vocabularies, `SEGMENT_EDIT_MODES` and `WAYPOINT_EDIT_MODES`, are
506
+ * declared in `./data` beside `ZONE_MODES`.
507
+ */
508
+ type ZoneEditMode = ZoneMode;
509
+ /**
510
+ * SegmentEditOptions starts an editable segment: the mode that picks the engine, the segment the
511
+ * edit stands for, the handles it opens on, the pins that keep it continuous with its neighbours
512
+ * and the colour it is drawn in. The whole edit render (the draggable handles and the routed
513
+ * line) is drawn in `color`, so the editable copy matches the segment it stands in for while its
514
+ * tile copy is hidden.
515
+ */
516
+ interface SegmentEditOptions {
517
+ /**
518
+ * The slug of the activity the edit routes for: the itinerary's, which every segment shares.
519
+ *
520
+ * A directions edit requires it, and its engine throws `MountayaElementsError` from its
521
+ * constructor when it is missing or empty. The freehand engine hands it to `analyzeFn`.
522
+ */
523
+ activitySlug?: string | undefined;
524
+ /**
525
+ * The elevation/analysis resolver the freehand engine asks for the drawn line's profile, the
526
+ * linestring twin of `routeFn`, so the live elevation panel reflects a freehand edit. The
527
+ * directions engine ignores it and reads `routeFn`.
528
+ *
529
+ * @default undefined, and a freehand edit resolves no profile.
530
+ */
531
+ analyzeFn?: SegmentAnalyzeFn | undefined;
532
+ /**
533
+ * The colour the edit is drawn in, as `#rrggbb` or `#rgb` (hexadecimal digits, either case),
534
+ * the two forms the API stores. `#rgb` is drawn as `#rrggbb`, each digit twice. Any other form
535
+ * is refused by name as the edit opens and as its style is set.
536
+ */
537
+ color: string;
538
+ /**
539
+ * The id of the segment the edit stands for. The edit feature is keyed on it, so a draft maps
540
+ * back to its segment without a translation.
541
+ */
542
+ featureId: string;
543
+ /**
544
+ * The model the segment is edited under, which picks the engine: `directions` routes between
545
+ * vias, `linestring` draws a freehand line.
546
+ */
547
+ mode: SegmentEditMode;
548
+ /**
549
+ * onViaCapRefused fires when an interactive add is declined because the draft
550
+ * already holds the router's maximum vias. The engine reverts the add silently
551
+ * (routing an over-cap set would floor to NoRoute and clear the painted line), so
552
+ * without this seam the click is indistinguishable from a missed one. Directions
553
+ * only; the freehand engine has no cap and never calls it.
554
+ */
555
+ onViaCapRefused?: (() => void) | undefined;
556
+ /**
557
+ * The position the edit's last via is held on, `[longitude, latitude]`: the first via of the
558
+ * segment that follows, for an insert, so the insert meets both neighbours without moving either.
559
+ * An edit with no successor (an append, a reshape) leaves it out.
560
+ *
561
+ * An engine throws `MountayaElementsError` from its constructor for a pin no map can place.
562
+ * The directions engine takes two finite numbers with a latitude from -90 to 90, and names
563
+ * the member and the value. The freehand engine draws the pin as a via, so it holds it to
564
+ * what {@link SegmentEditOptions.seedVias} states of a line.
565
+ *
566
+ * @default No pin: the end is the user's to drag.
567
+ */
568
+ pinnedEnd?: Position | undefined;
569
+ /**
570
+ * The position the edit's first via is held on, `[longitude, latitude]`: the last via of the
571
+ * segment before it, which keeps the chain continuous. The first segment leaves it out. It is
572
+ * read as {@link SegmentEditOptions.pinnedEnd} is.
573
+ *
574
+ * @default No pin: the start is the user's to drag.
575
+ */
576
+ pinnedStart?: Position | undefined;
577
+ /**
578
+ * The router the directions engine computes the routed line from the vias with. A directions
579
+ * edit requires it, and its engine throws `MountayaElementsError` from its constructor when it
580
+ * is not a function. The freehand engine ignores it.
581
+ */
582
+ routeFn?: SegmentRouteFn | undefined;
583
+ /**
584
+ * The handles the edit opens on. Both engines throw `MountayaElementsError` from their
585
+ * constructor for a via no map can place, naming it by its index.
586
+ *
587
+ * The freehand engine draws each via as its longitude and latitude alone, at nine decimals,
588
+ * and throws the same error for a line its drawing library refuses (a longitude past 180). It
589
+ * throws it, naming both members, for a line of two vias or more that does not start at
590
+ * `pinnedStart` or end at `pinnedEnd`, and for two pins that differ with a shorter line: the
591
+ * positions are compared as they are drawn. The directions engine opens a line whose head or
592
+ * tail is further from its pin than the backend's tolerance with the pin in its place.
593
+ */
594
+ seedVias?: Position[] | undefined;
595
+ }
596
+ /**
597
+ * DraftPhase says whether a draft is a frame of a gesture still under way or a whole change.
598
+ *
599
+ * - `live`: one frame of a drag, while the pointer is still down. The next frame replaces it,
600
+ * so a subscriber previews it (the shape on the map, the live elevation profile) and records
601
+ * nothing.
602
+ * - `settled`: a whole change. The draft that closes a drag carries it, and so does every
603
+ * discrete edit (a click that adds a point) and every programmatic write (a draft applied, an
604
+ * undo or redo restore, a resolved route). A history subscriber records one step per settled
605
+ * draft its own gesture produced, which makes a drag of any length one undo step.
606
+ *
607
+ * It says nothing about who made the change; {@link SegmentDraft.programmatic} does. A
608
+ * programmatic draft is always `settled`, and a subscriber skips its own programmatic echo in
609
+ * either phase.
610
+ */
611
+ type DraftPhase = "live" | "settled";
612
+ /**
613
+ * SegmentDraft is the current state of the segment being edited, read back for a re-route
614
+ * (directions) or a persist.
615
+ */
616
+ interface SegmentDraft {
617
+ /**
618
+ * Whether the draft is one frame of a drag (`live`) or a whole change (`settled`): the draft
619
+ * that closes a drag and every discrete or programmatic change. See {@link DraftPhase}. An engine
620
+ * sets it on every draft it emits.
621
+ */
622
+ phase: DraftPhase;
623
+ /**
624
+ * Whether the draft arrived programmatically (a draft applied, an undo or redo restore, a route
625
+ * re-apply) rather than from an interactive drag or insert, so a subscriber re-routes on an
626
+ * interactive change and skips its own programmatic echo rather than looping.
627
+ */
628
+ programmatic: boolean;
629
+ /**
630
+ * The latest `routeFn` response the engine resolved for these vias (the 3D geometry, the
631
+ * elevation summary and the surface, way-type and slope analysis), so a downstream consumer such
632
+ * as the live elevation panel sees the freshly routed metrics without a second round-trip. Null
633
+ * when no route resolves (a below-floor via count, a `routeFn` error), undefined when the engine
634
+ * emits a vias-only draft.
635
+ */
636
+ route?: SegmentRoute | null | undefined;
637
+ /**
638
+ * The editable handle coordinates: the via array in directions, the line vertices in freehand.
639
+ */
640
+ vias: Position[];
641
+ }
642
+ /**
643
+ * SegmentViaPromptEvent is a request to ASK the user what a click on an existing
644
+ * handle should do, emitted instead of acting on it. Clicking a handle is
645
+ * ambiguous (a user closing a loop wants to route through that point again,
646
+ * while another wants it gone) and a segment edit has no undo affordance on the
647
+ * map itself, so neither reading may be assumed. The engine suppresses its own
648
+ * destructive default, emits this, and waits: the host resolves it by rewriting
649
+ * the draft (remove the handle, or append its coordinate so the line passes
650
+ * through it a second time) or by dismissing it.
651
+ *
652
+ * It is the EVENT, not the open prompt: `@mountaya/studio`'s `SegmentViaPrompt` is what the
653
+ * studio's store holds once one is open, and it carries a third field: `point`, the container
654
+ * pixel the popup anchors at. An engine cannot supply that. It knows the draft and the map, not
655
+ * where a host chose to mount its surface, so the projection belongs to whoever opens the
656
+ * prompt. The open prompt is assignable to the event and the event to no prompt, so a value
657
+ * without the pixel never stands where the pixel is read.
658
+ */
659
+ interface SegmentViaPromptEvent {
660
+ /**
661
+ * The handle's position in the current draft coordinates, which a host rewrites the draft at.
662
+ */
663
+ index: number;
664
+ /**
665
+ * Where the handle sits, `[longitude, latitude]`, so a surface can anchor its prompt at the
666
+ * handle without querying the map again.
667
+ */
668
+ lngLat: [number, number];
669
+ }
670
+ /**
671
+ * WaypointDraftSnapshot is the engine-rendered shape of an active waypoint
672
+ * draft: the dropped coordinate the marker sits at and the icon + color the
673
+ * symbol layer paints in. It is what an engine reads back when an undo or redo restores a
674
+ * prior draft, and what applying a draft accepts.
675
+ */
676
+ interface WaypointDraftSnapshot {
677
+ /** The colour the marker is painted in. */
678
+ color: string;
679
+ /** The glyph the marker shows. */
680
+ icon: string;
681
+ /** Where the marker sits, `[longitude, latitude]`. */
682
+ lngLat: [number, number];
683
+ }
684
+ /**
685
+ * WaypointPoiSeed is the POI capture context attached to a waypoint draft when its position came
686
+ * from a POI-pick. It rides through the commit so the persisted waypoint records its provenance;
687
+ * a `point`-mode draft carries null.
688
+ *
689
+ * This is the shape's one declaration. A package that validates it at a boundary states a
690
+ * schema for it (`@mountaya/studio` parses it as `waypointPoiSeedSchema`), and the interface is
691
+ * exported so that schema can be held to it with `satisfies`: a member added on one side alone
692
+ * then fails to compile on the other.
693
+ */
694
+ interface WaypointPoiSeed {
695
+ /**
696
+ * The OpenMapTiles category that resolved the click.
697
+ *
698
+ * A plain string rather than the `PoiCategory` union, deliberately. The studio parses this at
699
+ * the BUS boundary, where the value may arrive from an agent or from a tile whose category set
700
+ * has moved ahead of ours; narrowing it would reject a whole draft over a provenance field
701
+ * nobody reads for logic. A producer that resolves a real tile feature holds the strict type
702
+ * on its own side, and the narrowing is theirs to keep.
703
+ */
704
+ category: string;
705
+ /** The picked feature's display name from the tile, null when the tile carries none. */
706
+ name: string | null;
707
+ /**
708
+ * The id of the tile feature the click resolved, as a string, or null when the tile carries none
709
+ * (an auto-emitted feature has no stable id).
710
+ */
711
+ sourceFeatureId: string | null;
712
+ }
713
+ /**
714
+ * WaypointPoiCapture is the POI context an engine carries on a draft-change emission when the
715
+ * click hit a POI feature. A host reads it to re-seed icon + color + name from the POI's
716
+ * category contract: the last POI wins, so manual overrides are discarded on each fresh capture.
717
+ *
718
+ * It is {@link WaypointPoiSeed} narrowed on one field, and the narrowing is the whole
719
+ * difference between the two ends of this value. An engine reads the feature under the click
720
+ * off the tile, so its `category` IS a `PoiCategory` and saying so costs nothing. The seed the
721
+ * store parses is a plain string, because there the value may arrive from an agent or from a
722
+ * tile whose category set has moved ahead of the client's, and rejecting a whole draft over a
723
+ * provenance field nobody reads for logic would be the wrong trade.
724
+ *
725
+ * Expressed as an extension rather than as a second interface so the relation is the one that
726
+ * has to hold (a capture is assignable to a seed, never the reverse) and so a field added to
727
+ * the schema cannot be forgotten here.
728
+ */
729
+ interface WaypointPoiCapture extends WaypointPoiSeed {
730
+ /** The OpenMapTiles category of the feature under the click, as the tile states it. */
731
+ category: DataSchema.PoiCategory;
732
+ }
733
+ /**
734
+ * WaypointEngineDraftChange is the discrete event a waypoint engine emits on each click that
735
+ * lands a placement.
736
+ */
737
+ interface WaypointEngineDraftChange {
738
+ /** The position the click resolved to, `[longitude, latitude]`. */
739
+ lngLat: [number, number];
740
+ /**
741
+ * The POI the click captured: present only in `poi-pick` mode when a POI feature was under the
742
+ * click, and null otherwise.
743
+ */
744
+ poiSeed: WaypointPoiCapture | null;
745
+ }
746
+ /**
747
+ * WaypointEditOptions starts an editable waypoint: the id its session is keyed on, the mode that
748
+ * picks the engine, and the glyph, colour and position the draft marker starts from, so the first
749
+ * paint matches the side panel's display.
750
+ */
751
+ interface WaypointEditOptions {
752
+ /** The colour the draft marker is first painted in. */
753
+ initialColor: string;
754
+ /** The glyph the draft marker first shows. */
755
+ initialIcon: string;
756
+ /**
757
+ * The position the marker starts at, `[longitude, latitude]`: the saved coordinate on an
758
+ * `update` session, or `null` for a waypoint not placed yet, which a `create` session opens
759
+ * on and which shows no draft until the first click lands.
760
+ *
761
+ * An engine throws `MountayaElementsError` from its constructor, naming the member and the
762
+ * value, for a position no map can place: it takes two finite numbers with a latitude from
763
+ * -90 to 90.
764
+ */
765
+ initialLngLat: [number, number] | null;
766
+ /**
767
+ * How the waypoint is placed, which picks the engine: `point` drops it at the next click, and
768
+ * `poi-pick` captures the POI feature under the click.
769
+ */
770
+ mode: WaypointEditMode;
771
+ /**
772
+ * Told when the pointer moves onto a POI a click would capture (`true`) and when it moves
773
+ * off it (`false`). Read by a `poi-pick` edit alone.
774
+ *
775
+ * It rides on the options the edit begins with, so the host that begins the edit is the one
776
+ * told, at the call site that began it. The engine reaches no element of the page for it:
777
+ * what the signal becomes (a tooltip's second line, an attribute, a store slot) is the
778
+ * host's to write.
779
+ *
780
+ * It is told of changes only, starting from `false`, at most once per animation frame, and
781
+ * of `false` when the edit ends over a POI. A handler that throws stops neither the edit nor
782
+ * its teardown: its error is handed to the runtime on a microtask.
783
+ *
784
+ * @default undefined, and the edit follows no pointer move for it.
785
+ */
786
+ onPoiHoverChange?: ((isOverPoi: boolean) => void) | undefined;
787
+ /**
788
+ * The id the session is keyed on: a freshly generated client id on a `create`, the waypoint's
789
+ * own id on an `update`.
790
+ */
791
+ waypointId: string;
792
+ }
793
+ /**
794
+ * ZoneEditOptions starts an editable zone: the primitive it is drawn as, the zone it stands for,
795
+ * the shape it opens on and the colour it is drawn in. `color` is the level color the whole
796
+ * draft renders in (its area + handles), resolved from the zone's level by the caller through
797
+ * zoneLevelColors so the editable copy matches the level it stands for. `seedGeometry` is left
798
+ * out for a fresh create, which has no shape until the first draw gesture lands.
799
+ */
800
+ interface ZoneEditOptions {
801
+ /**
802
+ * The colour the edit is drawn in, as `#rrggbb` or `#rgb` (hexadecimal digits, either case),
803
+ * the two forms the API stores. `#rgb` is drawn as `#rrggbb`, each digit twice. Any other form
804
+ * is refused by name as the edit opens and as its style is set.
805
+ */
806
+ color: string;
807
+ /**
808
+ * The id of the zone the edit stands for. The edit feature is keyed on it, so a draft maps back
809
+ * to its zone without a translation, as {@link SegmentEditOptions.featureId} does.
810
+ */
811
+ featureId: string;
812
+ /**
813
+ * The geometric primitive the zone is drawn as, and so the TerraDraw draw mode the engine arms.
814
+ * It is immutable for the life of an edit (the engine never swaps draw modes mid-session), so a
815
+ * create that picks `circle` and an edit of a `freehand` zone each arm exactly one draw mode.
816
+ */
817
+ mode: ZoneEditMode;
818
+ /**
819
+ * Told whether the edit's latest gesture was refused because the outline it would leave
820
+ * crosses itself, as it is stored or as the map draws it: `true` when a corner, a stretch of a
821
+ * freehand trace, a close or the removal of a corner is refused, and `false` when the next
822
+ * gesture is admitted or the edit ends. It is told only when that changes, so a pointer held
823
+ * where the outline would cross tells it once. A refused gesture changes nothing on the map,
824
+ * so this is how a host says why beside the pointer.
825
+ *
826
+ * A corner dragged where the outline would cross is held where it last stood and tells it
827
+ * nothing. Neither does a gesture on an outline too long to judge as it is drawn, which is
828
+ * left to the API to refuse when the zone is saved, nor a shape the host writes, which is drawn
829
+ * as written.
830
+ */
831
+ onOutlineRefusedChange?: ((refused: boolean) => void) | undefined;
832
+ /**
833
+ * The shape the edit opens on. It is drawn with each position as its longitude and latitude
834
+ * alone, at nine decimals. A zone astride the antimeridian is one continuous ring, its
835
+ * longitudes running past 180 or below -180, and it is drawn and answered as that ring. The
836
+ * engine throws `MountayaElementsError` from its constructor for a shape its drawing library
837
+ * refuses (a hole, an open ring, a ring too wide to hold). A ring whose longitudes are within
838
+ * half a turn of each other is never too wide.
839
+ */
840
+ seedGeometry?: Polygon | undefined;
841
+ }
842
+ /**
843
+ * ZoneDraft is the current state of the zone being edited, read back for a persist or a history
844
+ * snapshot.
845
+ */
846
+ interface ZoneDraft {
847
+ /**
848
+ * The drawn shape, the Polygon every zone mode draws (circle, polygon, sector, sensor and
849
+ * freehand), which the backend stores in the `fills` source-layer. A null geometry is not
850
+ * representable: an engine emits a draft only once a shape exists, and reading the draft answers
851
+ * null before that. A shape astride the antimeridian is one continuous ring: its longitudes run
852
+ * past 180 or below -180, and no two consecutive positions sit a turn apart.
853
+ */
854
+ geometry: Polygon;
855
+ /**
856
+ * The authoring mode the shape was drawn under. It is immutable for the session, so it rides
857
+ * every draft for the consumer that persists the zone.
858
+ */
859
+ mode: ZoneEditMode;
860
+ /**
861
+ * `live` for each frame of a drag, `settled` for the draft that closes it, for a completed draw
862
+ * and for every programmatic write (see {@link DraftPhase}). An engine sets it on every draft it
863
+ * emits.
864
+ */
865
+ phase: DraftPhase;
866
+ /**
867
+ * Whether the draft arrived programmatically (a draft applied, an undo or redo restore) rather
868
+ * than from an interactive draw or drag, so a history subscriber records its own interactive
869
+ * edits and skips its own programmatic echo rather than looping, as it does for
870
+ * {@link SegmentDraft.programmatic}.
871
+ */
872
+ programmatic: boolean;
873
+ }
874
+ /**
875
+ * BoundaryEditOptions starts an editable boundary box: the named region an organization's embed
876
+ * geofence is made of. `color` paints the whole draft (its fill + outline), and `seedBbox` seeds
877
+ * an existing region so an edit opens on it; a fresh draw omits it and the surface starts empty.
878
+ * A seed that crosses the antimeridian is drawn up to the line from the side of its west edge,
879
+ * and one whose west edge is on the line is drawn whole from -180; the seed is not emitted, so
880
+ * the box as drawn reaches the host with the next change.
881
+ *
882
+ * The seam speaks {@link BoundingBox} rather than the safety-rule wire pair or a
883
+ * GeoJSON Polygon, so neither a drawing library's shape nor a wire shape leaks through it:
884
+ * a host converts once at its own boundary.
885
+ */
886
+ interface BoundaryEditOptions {
887
+ /**
888
+ * The colour the edit is drawn in, as `#rrggbb` or `#rgb` (hexadecimal digits, either case),
889
+ * the two forms the API stores. `#rgb` is drawn as `#rrggbb`, each digit twice. Any other form
890
+ * is refused by name as the edit opens and as its style is set.
891
+ */
892
+ color: string;
893
+ /** The id of the boundary the edit stands for, which the edit feature is keyed on. */
894
+ featureId: string;
895
+ /**
896
+ * The box the edit opens on, drawn at nine decimals. The engine throws
897
+ * `MountayaElementsError` from its constructor for a box its drawing library refuses, one
898
+ * that holds `NaN`. A box with an infinite longitude is drawn as wide as the whole world, and
899
+ * a latitude past the Web Mercator limit is drawn at the limit, as `normalizeBoundingBox`
900
+ * writes them. A box with no width or no height is drawn as it is.
901
+ */
902
+ seedBbox?: BoundingBox | undefined;
903
+ }
904
+ /**
905
+ * BoundaryDraft is the current state of the boundary box being edited.
906
+ */
907
+ interface BoundaryDraft {
908
+ /**
909
+ * The box, or null until a box exists and again after it is cleared for a redraw: a boundary
910
+ * editor is meaningfully empty, unlike a zone draft, which is only ever emitted once a shape has
911
+ * been drawn.
912
+ */
913
+ bbox: BoundingBox | null;
914
+ /**
915
+ * `live` for each frame of a corner drag or a whole-box drag, and `settled` for the draft that
916
+ * closes it on release, for a completed draw, a clear and every programmatic write (see
917
+ * {@link DraftPhase}), so a subscriber records one undo step per drag.
918
+ */
919
+ phase: DraftPhase;
920
+ /**
921
+ * Whether the draft arrived programmatically (a draft applied, a box written onto an empty
922
+ * surface) rather than from the user's own gesture, so a subscriber can skip its own echo, the
923
+ * same posture {@link ZoneDraft.programmatic} takes. The seed the edit opens on is not emitted.
924
+ */
925
+ programmatic: boolean;
926
+ }
927
+ export { SuggestionsInput as $, ItineraryDrawOptions as A, MountedSpecification as B, DirectionsResult$1 as C, GeocodeResult$1 as D, GeocodeInput as E, MatrixMetric as F, QueriedFeature as G, PoiCategory as H, MatrixResult$1 as I, RouteHazard as J, RasterPaint as K, MountOptions as L, MarkerOptions as M, MatrixDrawOptions as N, IsochronesInput as O, MatrixInput as P, SuggestionDrawOptions as Q, MountayaMapEvent as R, DirectionsInput as S, FitBoundsOptions as T, PoisInput as U, Overlay as V, PoisResult$1 as W, SearchResult$1 as X, SearchInput as Y, SearchTargetsInput as Z, CameraPose as _, SegmentEditOptions as a, DataActivitySlug as b, WaypointEditOptions as c, WaypointPoiSeed as d, SuggestionsResult$1 as et, ZoneDraft as f, Camera as g, AnalysisId as h, SegmentDraft as i, Layers as j, IsochronesResult$1 as k, WaypointEngineDraftChange as l, AnalysisHandle as m, BoundaryEditOptions as n, Unsubscribe as nt, SegmentViaPromptEvent as o, ZoneEditOptions as p, Renderable as q, DraftPhase as r, ZoomRange as rt, WaypointDraftSnapshot as s, BoundaryDraft as t, Terrain as tt, WaypointPoiCapture as u, CategoryOverlays as v, DrawOptions as w, DataRangeType as x, CollectionDrawOptions as y, MountayaMapEvents as z };
928
+ //# sourceMappingURL=chunk-bY7ySujI.d.cts.map