@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.
- package/CHANGELOG.md +273 -0
- package/LICENCE.fr.txt +280 -0
- package/LICENSE.txt +262 -0
- package/README.md +1510 -2
- package/THIRD-PARTY-NOTICES.txt +103 -0
- package/dist/agent/index.cjs +1211 -0
- package/dist/agent/index.cjs.map +1 -0
- package/dist/agent/index.d.cts +1966 -0
- package/dist/agent/index.d.ts +1966 -0
- package/dist/agent/index.js +1181 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/camera/index.cjs +2512 -0
- package/dist/camera/index.cjs.map +1 -0
- package/dist/camera/index.d.cts +1723 -0
- package/dist/camera/index.d.ts +1723 -0
- package/dist/camera/index.js +2443 -0
- package/dist/camera/index.js.map +1 -0
- package/dist/chunk-5pTPpv4v.d.cts +897 -0
- package/dist/chunk-5pTPpv4v.d.ts +897 -0
- package/dist/chunk-6JzFMFHh.d.ts +119 -0
- package/dist/chunk-6qyuJVvt.d.ts +513 -0
- package/dist/chunk-9fp0lDic.cjs +583 -0
- package/dist/chunk-9fp0lDic.cjs.map +1 -0
- package/dist/chunk-A48H1rDg.d.cts +73 -0
- package/dist/chunk-A48H1rDg.d.ts +73 -0
- package/dist/chunk-B-m1AchR.cjs +57 -0
- package/dist/chunk-B-m1AchR.cjs.map +1 -0
- package/dist/chunk-B-qFTf04.d.ts +216 -0
- package/dist/chunk-B0YROiZh.d.cts +1475 -0
- package/dist/chunk-B14wgOvH.d.cts +68 -0
- package/dist/chunk-B19l3j9r.cjs +150 -0
- package/dist/chunk-B19l3j9r.cjs.map +1 -0
- package/dist/chunk-B2PtjVKg.cjs +86 -0
- package/dist/chunk-B2PtjVKg.cjs.map +1 -0
- package/dist/chunk-B56Oyb7W.cjs +70 -0
- package/dist/chunk-B56Oyb7W.cjs.map +1 -0
- package/dist/chunk-B5WGMQwK.cjs +113 -0
- package/dist/chunk-B5WGMQwK.cjs.map +1 -0
- package/dist/chunk-B98mKrdu.d.cts +302 -0
- package/dist/chunk-BB0PmqIM.d.cts +44 -0
- package/dist/chunk-BBikve0Z.cjs +269 -0
- package/dist/chunk-BBikve0Z.cjs.map +1 -0
- package/dist/chunk-BHeXmM0X.js +37 -0
- package/dist/chunk-BHeXmM0X.js.map +1 -0
- package/dist/chunk-BI8WZLpU.cjs +281 -0
- package/dist/chunk-BI8WZLpU.cjs.map +1 -0
- package/dist/chunk-BIEc_SkR.cjs +29 -0
- package/dist/chunk-BIEc_SkR.cjs.map +1 -0
- package/dist/chunk-BJ6L6_W9.cjs +553 -0
- package/dist/chunk-BJ6L6_W9.cjs.map +1 -0
- package/dist/chunk-BJ91UCbB.js +11 -0
- package/dist/chunk-BJ91UCbB.js.map +1 -0
- package/dist/chunk-BJEZWTKj.cjs +166 -0
- package/dist/chunk-BJEZWTKj.cjs.map +1 -0
- package/dist/chunk-BJz54mfg.cjs +10 -0
- package/dist/chunk-BJz54mfg.cjs.map +1 -0
- package/dist/chunk-BNX5LAfN.d.cts +912 -0
- package/dist/chunk-BP6KgA86.js +35 -0
- package/dist/chunk-BP6KgA86.js.map +1 -0
- package/dist/chunk-BRnjQq6K.d.cts +157 -0
- package/dist/chunk-BSiMEwPS.js +46 -0
- package/dist/chunk-BSiMEwPS.js.map +1 -0
- package/dist/chunk-BTPjDw_y.cjs +16 -0
- package/dist/chunk-BTPjDw_y.cjs.map +1 -0
- package/dist/chunk-BTUUABGI.js +17 -0
- package/dist/chunk-BTUUABGI.js.map +1 -0
- package/dist/chunk-BUeL9y7s.cjs +45 -0
- package/dist/chunk-BUeL9y7s.cjs.map +1 -0
- package/dist/chunk-BWMuCNc9.cjs +172 -0
- package/dist/chunk-BWMuCNc9.cjs.map +1 -0
- package/dist/chunk-BWjRfhpF.js +126 -0
- package/dist/chunk-BWjRfhpF.js.map +1 -0
- package/dist/chunk-BZ5KyZXI.d.ts +302 -0
- package/dist/chunk-B_4SVmvh.js +94 -0
- package/dist/chunk-B_4SVmvh.js.map +1 -0
- package/dist/chunk-BcTUuZQ3.js +95 -0
- package/dist/chunk-BcTUuZQ3.js.map +1 -0
- package/dist/chunk-BdkqSsJe.cjs +140 -0
- package/dist/chunk-BdkqSsJe.cjs.map +1 -0
- package/dist/chunk-BfktMVmI.js +70 -0
- package/dist/chunk-BfktMVmI.js.map +1 -0
- package/dist/chunk-BfzQb0EK.cjs +6 -0
- package/dist/chunk-BhWfT-22.d.cts +808 -0
- package/dist/chunk-BjJcqX5J.cjs +60 -0
- package/dist/chunk-BjJcqX5J.cjs.map +1 -0
- package/dist/chunk-Bk0L8g5J.d.cts +77 -0
- package/dist/chunk-Bk0L8g5J.d.ts +77 -0
- package/dist/chunk-Bl4_uVa6.cjs +11 -0
- package/dist/chunk-Bl4_uVa6.cjs.map +1 -0
- package/dist/chunk-BlKF4lrp.js +43 -0
- package/dist/chunk-BlKF4lrp.js.map +1 -0
- package/dist/chunk-Bm1FieGR.js +4 -0
- package/dist/chunk-Bm1FieGR.js.map +1 -0
- package/dist/chunk-Bn6ZbxkS.cjs +27 -0
- package/dist/chunk-BpN3hr6a.cjs +541 -0
- package/dist/chunk-BpN3hr6a.cjs.map +1 -0
- package/dist/chunk-Bq_WHTfd.d.cts +119 -0
- package/dist/chunk-Bqt4LBBz.cjs +648 -0
- package/dist/chunk-Bqt4LBBz.cjs.map +1 -0
- package/dist/chunk-Bqt97zwf.d.cts +54 -0
- package/dist/chunk-Bqt97zwf.d.ts +54 -0
- package/dist/chunk-BsBiN4w6.d.cts +245 -0
- package/dist/chunk-BvTpOUoC.cjs +207 -0
- package/dist/chunk-BvTpOUoC.cjs.map +1 -0
- package/dist/chunk-BwK6Hl3q.cjs +446 -0
- package/dist/chunk-BwK6Hl3q.cjs.map +1 -0
- package/dist/chunk-BxDQZDXR.d.cts +76 -0
- package/dist/chunk-BxDQZDXR.d.ts +76 -0
- package/dist/chunk-BxUio8kX.js +20 -0
- package/dist/chunk-BxUio8kX.js.map +1 -0
- package/dist/chunk-BxaocpFi.d.cts +1 -0
- package/dist/chunk-Bywi0K1N.js +36 -0
- package/dist/chunk-Bywi0K1N.js.map +1 -0
- package/dist/chunk-C-IlmkDl.js +59 -0
- package/dist/chunk-C-IlmkDl.js.map +1 -0
- package/dist/chunk-C5PtVewq.d.ts +389 -0
- package/dist/chunk-C5dpC7mQ.js +19 -0
- package/dist/chunk-C5dpC7mQ.js.map +1 -0
- package/dist/chunk-C5q1sgSa.js +46 -0
- package/dist/chunk-C5q1sgSa.js.map +1 -0
- package/dist/chunk-C6fU9G5I.cjs +221 -0
- package/dist/chunk-C6fU9G5I.cjs.map +1 -0
- package/dist/chunk-C71dpWUK.js +5 -0
- package/dist/chunk-C71dpWUK.js.map +1 -0
- package/dist/chunk-C82N1gQX.d.ts +1831 -0
- package/dist/chunk-C8HdaHpu.js +118 -0
- package/dist/chunk-C8HdaHpu.js.map +1 -0
- package/dist/chunk-C8ZGryck.js +236 -0
- package/dist/chunk-C8ZGryck.js.map +1 -0
- package/dist/chunk-C95NG0oD.cjs +43 -0
- package/dist/chunk-C95NG0oD.cjs.map +1 -0
- package/dist/chunk-C9aR8DXb.js +9 -0
- package/dist/chunk-C9aR8DXb.js.map +1 -0
- package/dist/chunk-CAUZnoCs.d.ts +525 -0
- package/dist/chunk-CBXWWuM9.cjs +82 -0
- package/dist/chunk-CBXWWuM9.cjs.map +1 -0
- package/dist/chunk-CC_Kquu7.d.cts +125 -0
- package/dist/chunk-CC_Kquu7.d.ts +125 -0
- package/dist/chunk-CCp85vXg.cjs +60 -0
- package/dist/chunk-CCp85vXg.cjs.map +1 -0
- package/dist/chunk-CEcB1_uK.js +39 -0
- package/dist/chunk-CEcB1_uK.js.map +1 -0
- package/dist/chunk-CFIo021l.d.cts +216 -0
- package/dist/chunk-CH_IZoJE.js +33 -0
- package/dist/chunk-CH_IZoJE.js.map +1 -0
- package/dist/chunk-CHrasH_g.cjs +25 -0
- package/dist/chunk-CHrasH_g.cjs.map +1 -0
- package/dist/chunk-CJVoSaAE.cjs +3 -0
- package/dist/chunk-CJp8nGcb.js +96 -0
- package/dist/chunk-CJp8nGcb.js.map +1 -0
- package/dist/chunk-CJwUtkOt.js +112 -0
- package/dist/chunk-CJwUtkOt.js.map +1 -0
- package/dist/chunk-CKhCOVIf.d.cts +751 -0
- package/dist/chunk-CKiVSRYg.js +50 -0
- package/dist/chunk-CKiVSRYg.js.map +1 -0
- package/dist/chunk-CKtd19eD.cjs +59 -0
- package/dist/chunk-CKtd19eD.cjs.map +1 -0
- package/dist/chunk-CL92KE3j.d.ts +3188 -0
- package/dist/chunk-CLqUlkAe.js +54 -0
- package/dist/chunk-CLqUlkAe.js.map +1 -0
- package/dist/chunk-CMG5OV0q.cjs +4741 -0
- package/dist/chunk-CMG5OV0q.cjs.map +1 -0
- package/dist/chunk-CN_TKSgm.js +10 -0
- package/dist/chunk-CN_TKSgm.js.map +1 -0
- package/dist/chunk-CNe6MtqV.cjs +29 -0
- package/dist/chunk-CNe6MtqV.cjs.map +1 -0
- package/dist/chunk-COQkDTC5.js +83 -0
- package/dist/chunk-COQkDTC5.js.map +1 -0
- package/dist/chunk-CPBl6K4M.cjs +168 -0
- package/dist/chunk-CPBl6K4M.cjs.map +1 -0
- package/dist/chunk-CPx0ZYFB.d.ts +3 -0
- package/dist/chunk-CQQhcP_C.d.ts +197 -0
- package/dist/chunk-CTNoajFh.d.cts +389 -0
- package/dist/chunk-CTd-qgJc.cjs +384 -0
- package/dist/chunk-CTd-qgJc.cjs.map +1 -0
- package/dist/chunk-CW80YYtU.cjs +1056 -0
- package/dist/chunk-CW80YYtU.cjs.map +1 -0
- package/dist/chunk-CWpqBgkF.d.cts +24 -0
- package/dist/chunk-CWpqBgkF.d.ts +24 -0
- package/dist/chunk-CXjRArgy.d.ts +3 -0
- package/dist/chunk-CXonfH3-.cjs +14 -0
- package/dist/chunk-CXonfH3-.cjs.map +1 -0
- package/dist/chunk-CYcouGXN.d.ts +825 -0
- package/dist/chunk-CZDAzEBw.cjs +1621 -0
- package/dist/chunk-CZDAzEBw.cjs.map +1 -0
- package/dist/chunk-C_fQFr70.d.cts +159 -0
- package/dist/chunk-C_fQFr70.d.ts +159 -0
- package/dist/chunk-CbOtHnnB.cjs +359 -0
- package/dist/chunk-CbOtHnnB.cjs.map +1 -0
- package/dist/chunk-CdA6ZMGk.d.cts +825 -0
- package/dist/chunk-Ce1_thm7.js +146 -0
- package/dist/chunk-Ce1_thm7.js.map +1 -0
- package/dist/chunk-CeD8Hw0j.d.cts +3188 -0
- package/dist/chunk-CeiTuMyt.d.cts +525 -0
- package/dist/chunk-Ch1OLzLi.js +1 -0
- package/dist/chunk-Cizu_j1N.cjs +87 -0
- package/dist/chunk-Cizu_j1N.cjs.map +1 -0
- package/dist/chunk-CjDe9z6A.d.cts +427 -0
- package/dist/chunk-Cl1etdlu.js +63 -0
- package/dist/chunk-Cl1etdlu.js.map +1 -0
- package/dist/chunk-CmoVJDoz.js +4 -0
- package/dist/chunk-CmoVJDoz.js.map +1 -0
- package/dist/chunk-CnLucxjG.cjs +197 -0
- package/dist/chunk-CnLucxjG.cjs.map +1 -0
- package/dist/chunk-CsWjBmdi.cjs +56 -0
- package/dist/chunk-CsWjBmdi.cjs.map +1 -0
- package/dist/chunk-CuseO5MZ.d.cts +3 -0
- package/dist/chunk-CvMHibbA.d.ts +427 -0
- package/dist/chunk-CwDeiN5U.js +870 -0
- package/dist/chunk-CwDeiN5U.js.map +1 -0
- package/dist/chunk-Cwdmx4tG.js +1 -0
- package/dist/chunk-D-4MxHTt.d.cts +105 -0
- package/dist/chunk-D-4MxHTt.d.ts +105 -0
- package/dist/chunk-D0LF-99V.js +1093 -0
- package/dist/chunk-D0LF-99V.js.map +1 -0
- package/dist/chunk-D1fe-0c_.js +367 -0
- package/dist/chunk-D1fe-0c_.js.map +1 -0
- package/dist/chunk-D21fEI6A.d.ts +1926 -0
- package/dist/chunk-D39gAxya.cjs +89 -0
- package/dist/chunk-D39gAxya.cjs.map +1 -0
- package/dist/chunk-D6KdIW5e.cjs +228 -0
- package/dist/chunk-D6KdIW5e.cjs.map +1 -0
- package/dist/chunk-D6qHYbgW.d.cts +36 -0
- package/dist/chunk-D89E-w70.d.ts +44 -0
- package/dist/chunk-D8bdTysL.js +552 -0
- package/dist/chunk-D8bdTysL.js.map +1 -0
- package/dist/chunk-D96QJT24.cjs +109 -0
- package/dist/chunk-D96QJT24.cjs.map +1 -0
- package/dist/chunk-DAmkQl-i.js +119 -0
- package/dist/chunk-DAmkQl-i.js.map +1 -0
- package/dist/chunk-DEfsb2lc.cjs +10 -0
- package/dist/chunk-DEfsb2lc.cjs.map +1 -0
- package/dist/chunk-DIFjT5-V.d.cts +66 -0
- package/dist/chunk-DJpUw8TN.d.ts +912 -0
- package/dist/chunk-DK6lm2IZ.cjs +11 -0
- package/dist/chunk-DK6lm2IZ.cjs.map +1 -0
- package/dist/chunk-DKqgr31j.cjs +61 -0
- package/dist/chunk-DKqgr31j.cjs.map +1 -0
- package/dist/chunk-DLZ0QYm9.js +37 -0
- package/dist/chunk-DLZ0QYm9.js.map +1 -0
- package/dist/chunk-DLjS0uaC.js +4 -0
- package/dist/chunk-DLjS0uaC.js.map +1 -0
- package/dist/chunk-DMokwmOV.cjs +49 -0
- package/dist/chunk-DMokwmOV.cjs.map +1 -0
- package/dist/chunk-DMvWgBZL.d.cts +1831 -0
- package/dist/chunk-DNfGfIF3.js +31 -0
- package/dist/chunk-DNfGfIF3.js.map +1 -0
- package/dist/chunk-DQbSRe8D.d.ts +245 -0
- package/dist/chunk-DSGkP8_y.js +45 -0
- package/dist/chunk-DSGkP8_y.js.map +1 -0
- package/dist/chunk-DTctvfSd.d.cts +197 -0
- package/dist/chunk-DWe7igyw.cjs +206 -0
- package/dist/chunk-DWe7igyw.cjs.map +1 -0
- package/dist/chunk-DWsMP5JR.d.ts +68 -0
- package/dist/chunk-DWsm3HIW.d.cts +120 -0
- package/dist/chunk-DWsm3HIW.d.ts +120 -0
- package/dist/chunk-DXABHjLa.cjs +3 -0
- package/dist/chunk-D_BeqSbc.cjs +42 -0
- package/dist/chunk-D_BeqSbc.cjs.map +1 -0
- package/dist/chunk-D_svQNdW.d.ts +66 -0
- package/dist/chunk-Dav4xWrp.js +330 -0
- package/dist/chunk-Dav4xWrp.js.map +1 -0
- package/dist/chunk-DbCPhepL.js +293 -0
- package/dist/chunk-DbCPhepL.js.map +1 -0
- package/dist/chunk-DcrTy-y2.cjs +43 -0
- package/dist/chunk-DcrTy-y2.cjs.map +1 -0
- package/dist/chunk-Ddv484ld.js +487 -0
- package/dist/chunk-Ddv484ld.js.map +1 -0
- package/dist/chunk-De0bjnhY.cjs +88 -0
- package/dist/chunk-De0bjnhY.cjs.map +1 -0
- package/dist/chunk-De2FmNPu.cjs +32 -0
- package/dist/chunk-De2FmNPu.cjs.map +1 -0
- package/dist/chunk-DeSjQXiI.d.ts +157 -0
- package/dist/chunk-Den0Ta6C.js +132 -0
- package/dist/chunk-Den0Ta6C.js.map +1 -0
- package/dist/chunk-DiDKEeEa.js +8 -0
- package/dist/chunk-DiDKEeEa.js.map +1 -0
- package/dist/chunk-Dj60k5PU.js +197 -0
- package/dist/chunk-Dj60k5PU.js.map +1 -0
- package/dist/chunk-DjnYQBCN.js +4705 -0
- package/dist/chunk-DjnYQBCN.js.map +1 -0
- package/dist/chunk-Dk9VKvyq.d.ts +1 -0
- package/dist/chunk-Dor1ERI9.cjs +85 -0
- package/dist/chunk-Dor1ERI9.cjs.map +1 -0
- package/dist/chunk-DpMouOoH.js +451 -0
- package/dist/chunk-DpMouOoH.js.map +1 -0
- package/dist/chunk-DposgdNL.cjs +52 -0
- package/dist/chunk-DposgdNL.cjs.map +1 -0
- package/dist/chunk-DqLTG_5Q.d.cts +3 -0
- package/dist/chunk-Dr5MCIpS.d.cts +63 -0
- package/dist/chunk-Dr5MCIpS.d.ts +63 -0
- package/dist/chunk-DrudttCC.cjs +4 -0
- package/dist/chunk-DsDYVJQC.js +173 -0
- package/dist/chunk-DsDYVJQC.js.map +1 -0
- package/dist/chunk-Dw8ur6FJ.js +27 -0
- package/dist/chunk-Dw8ur6FJ.js.map +1 -0
- package/dist/chunk-DwG6M_0v.js +64 -0
- package/dist/chunk-DwG6M_0v.js.map +1 -0
- package/dist/chunk-Dy9a5ibO.js +284 -0
- package/dist/chunk-Dy9a5ibO.js.map +1 -0
- package/dist/chunk-DyayZlQJ.js +157 -0
- package/dist/chunk-DyayZlQJ.js.map +1 -0
- package/dist/chunk-DyhJZC2i.js +126 -0
- package/dist/chunk-DyhJZC2i.js.map +1 -0
- package/dist/chunk-F9zBzmmG.cjs +45 -0
- package/dist/chunk-F9zBzmmG.cjs.map +1 -0
- package/dist/chunk-FyCYofv2.js +116 -0
- package/dist/chunk-FyCYofv2.js.map +1 -0
- package/dist/chunk-GHJRjAk2.js +1 -0
- package/dist/chunk-H14isiSf.d.ts +751 -0
- package/dist/chunk-HIJzXoN4.js +7 -0
- package/dist/chunk-HIJzXoN4.js.map +1 -0
- package/dist/chunk-Id_8kRtu.d.ts +36 -0
- package/dist/chunk-KN60yxBQ.js +5 -0
- package/dist/chunk-KN60yxBQ.js.map +1 -0
- package/dist/chunk-NM5yg6bh.cjs +82 -0
- package/dist/chunk-NM5yg6bh.cjs.map +1 -0
- package/dist/chunk-OXr3zJfM.cjs +119 -0
- package/dist/chunk-OXr3zJfM.cjs.map +1 -0
- package/dist/chunk-QGqgNC4z.d.ts +928 -0
- package/dist/chunk-QJBtJrZ0.js +36 -0
- package/dist/chunk-QJBtJrZ0.js.map +1 -0
- package/dist/chunk-QKWhxfPv.d.cts +361 -0
- package/dist/chunk-QKWhxfPv.d.ts +361 -0
- package/dist/chunk-QXW7b4Ev.d.cts +410 -0
- package/dist/chunk-RHZrxUrM.cjs +39 -0
- package/dist/chunk-RHZrxUrM.cjs.map +1 -0
- package/dist/chunk-RTxe2i66.js +91 -0
- package/dist/chunk-RTxe2i66.js.map +1 -0
- package/dist/chunk-RrKkJb6P.js +16 -0
- package/dist/chunk-RrKkJb6P.js.map +1 -0
- package/dist/chunk-VOJqpcnM.cjs +181 -0
- package/dist/chunk-VOJqpcnM.cjs.map +1 -0
- package/dist/chunk-VljGTrid.js +1 -0
- package/dist/chunk-X3UVwUEK.d.cts +513 -0
- package/dist/chunk-X9K2WChn.cjs +28 -0
- package/dist/chunk-X9K2WChn.cjs.map +1 -0
- package/dist/chunk-YrtOx6oy.js +251 -0
- package/dist/chunk-YrtOx6oy.js.map +1 -0
- package/dist/chunk-bY7ySujI.d.cts +928 -0
- package/dist/chunk-bYf1sBz5.d.cts +11 -0
- package/dist/chunk-bYf1sBz5.d.ts +11 -0
- package/dist/chunk-blfknWoM.d.cts +1926 -0
- package/dist/chunk-blqsohAb.js +113 -0
- package/dist/chunk-blqsohAb.js.map +1 -0
- package/dist/chunk-cDMCjodI.cjs +58 -0
- package/dist/chunk-cDMCjodI.cjs.map +1 -0
- package/dist/chunk-cWjE3qd6.cjs +10 -0
- package/dist/chunk-cWjE3qd6.cjs.map +1 -0
- package/dist/chunk-dfOgV3fu.js +26 -0
- package/dist/chunk-dfOgV3fu.js.map +1 -0
- package/dist/chunk-f9cTwUX1.cjs +125 -0
- package/dist/chunk-f9cTwUX1.cjs.map +1 -0
- package/dist/chunk-fHVYEZs4.cjs +28 -0
- package/dist/chunk-fHVYEZs4.cjs.map +1 -0
- package/dist/chunk-fWRUMgRI.js +22 -0
- package/dist/chunk-fWRUMgRI.js.map +1 -0
- package/dist/chunk-fozLXfHY.d.cts +55 -0
- package/dist/chunk-fozLXfHY.d.ts +55 -0
- package/dist/chunk-gWmB1l3A.cjs +3122 -0
- package/dist/chunk-gWmB1l3A.cjs.map +1 -0
- package/dist/chunk-gbj2R-_w.js +58 -0
- package/dist/chunk-gbj2R-_w.js.map +1 -0
- package/dist/chunk-iIWxsAXd.js +59 -0
- package/dist/chunk-iIWxsAXd.js.map +1 -0
- package/dist/chunk-lItIuOIS.cjs +137 -0
- package/dist/chunk-lItIuOIS.cjs.map +1 -0
- package/dist/chunk-m6Rh4PCe.cjs +798 -0
- package/dist/chunk-m6Rh4PCe.cjs.map +1 -0
- package/dist/chunk-o3IRANDf.cjs +99 -0
- package/dist/chunk-o3IRANDf.cjs.map +1 -0
- package/dist/chunk-obUcg3Sk.d.ts +808 -0
- package/dist/chunk-ohsf-6Rn.js +600 -0
- package/dist/chunk-ohsf-6Rn.js.map +1 -0
- package/dist/chunk-pBleU6Nv.js +3061 -0
- package/dist/chunk-pBleU6Nv.js.map +1 -0
- package/dist/chunk-px4e99cy.js +71 -0
- package/dist/chunk-px4e99cy.js.map +1 -0
- package/dist/chunk-qwYDLeXc.cjs +99 -0
- package/dist/chunk-qwYDLeXc.cjs.map +1 -0
- package/dist/chunk-rF_859Qk.cjs +101 -0
- package/dist/chunk-rF_859Qk.cjs.map +1 -0
- package/dist/chunk-rLJkqJ5j.d.ts +1475 -0
- package/dist/chunk-twQItIRg.cjs +338 -0
- package/dist/chunk-twQItIRg.cjs.map +1 -0
- package/dist/chunk-vnPrMVjY.js +10 -0
- package/dist/chunk-vnPrMVjY.js.map +1 -0
- package/dist/chunk-ws3bVwaS.d.ts +410 -0
- package/dist/chunk-xh3UkuVs.cjs +246 -0
- package/dist/chunk-xh3UkuVs.cjs.map +1 -0
- package/dist/chunk-yMzRr26E.js +153 -0
- package/dist/chunk-yMzRr26E.js.map +1 -0
- package/dist/collab/index.cjs +831 -0
- package/dist/collab/index.cjs.map +1 -0
- package/dist/collab/index.d.cts +824 -0
- package/dist/collab/index.d.ts +824 -0
- package/dist/collab/index.js +819 -0
- package/dist/collab/index.js.map +1 -0
- package/dist/data/index.cjs +39 -0
- package/dist/data/index.d.cts +6 -0
- package/dist/data/index.d.ts +6 -0
- package/dist/data/index.js +7 -0
- package/dist/editor/index.cjs +2713 -0
- package/dist/editor/index.cjs.map +1 -0
- package/dist/editor/index.d.cts +10 -0
- package/dist/editor/index.d.ts +10 -0
- package/dist/editor/index.js +2702 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/errors/index.cjs +11 -0
- package/dist/errors/index.d.cts +2 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +1 -0
- package/dist/geo/index.cjs +68 -0
- package/dist/geo/index.d.cts +6 -0
- package/dist/geo/index.d.ts +6 -0
- package/dist/geo/index.js +11 -0
- package/dist/i18n/fr/index.cjs +333 -0
- package/dist/i18n/fr/index.cjs.map +1 -0
- package/dist/i18n/fr/index.d.cts +18 -0
- package/dist/i18n/fr/index.d.ts +18 -0
- package/dist/i18n/fr/index.js +328 -0
- package/dist/i18n/fr/index.js.map +1 -0
- package/dist/i18n/index.cjs +451 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +268 -0
- package/dist/i18n/index.d.ts +268 -0
- package/dist/i18n/index.js +430 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/icons/index.cjs +37 -0
- package/dist/icons/index.d.cts +4 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +8 -0
- package/dist/index.cjs +517 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +174 -0
- package/dist/index.d.ts +174 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/layers/index.cjs +83 -0
- package/dist/layers/index.d.cts +3 -0
- package/dist/layers/index.d.ts +3 -0
- package/dist/layers/index.js +5 -0
- package/dist/map-client/index.cjs +5 -0
- package/dist/map-client/index.d.cts +6 -0
- package/dist/map-client/index.d.ts +6 -0
- package/dist/map-client/index.js +0 -0
- package/dist/maplibre-worker.mjs +12 -0
- package/dist/navigation/index.cjs +612 -0
- package/dist/navigation/index.cjs.map +1 -0
- package/dist/navigation/index.d.cts +551 -0
- package/dist/navigation/index.d.ts +551 -0
- package/dist/navigation/index.js +599 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/profile/index.cjs +177 -0
- package/dist/profile/index.d.cts +8 -0
- package/dist/profile/index.d.ts +8 -0
- package/dist/profile/index.js +10 -0
- package/dist/seams/index.cjs +15 -0
- package/dist/seams/index.d.cts +4 -0
- package/dist/seams/index.d.ts +4 -0
- package/dist/seams/index.js +4 -0
- package/dist/search/index.cjs +39 -0
- package/dist/search/index.d.cts +6 -0
- package/dist/search/index.d.ts +6 -0
- package/dist/search/index.js +3 -0
- package/dist/style/index.cjs +34 -0
- package/dist/style/index.d.cts +5 -0
- package/dist/style/index.d.ts +5 -0
- package/dist/style/index.js +5 -0
- package/dist/styles.css +11 -0
- package/dist/testing/index.cjs +444 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +217 -0
- package/dist/testing/index.d.ts +217 -0
- package/dist/testing/index.js +435 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/timezone/index.cjs +1953 -0
- package/dist/timezone/index.cjs.map +1 -0
- package/dist/timezone/index.d.cts +28 -0
- package/dist/timezone/index.d.ts +28 -0
- package/dist/timezone/index.js +1948 -0
- package/dist/timezone/index.js.map +1 -0
- package/dist/units/index.cjs +29 -0
- package/dist/units/index.d.cts +3 -0
- package/dist/units/index.d.ts +3 -0
- package/dist/units/index.js +3 -0
- package/dist/video/index.cjs +1713 -0
- package/dist/video/index.cjs.map +1 -0
- package/dist/video/index.d.cts +846 -0
- package/dist/video/index.d.ts +846 -0
- package/dist/video/index.js +1689 -0
- package/dist/video/index.js.map +1 -0
- package/dist/view/index.cjs +7 -0
- package/dist/view/index.d.cts +3 -0
- package/dist/view/index.d.ts +3 -0
- package/dist/view/index.js +1 -0
- package/package.json +433 -4
- package/src/agent/engines/session.ts +2255 -0
- package/src/agent/index.ts +109 -0
- package/src/agent/rules/agentError.ts +128 -0
- package/src/agent/rules/boundedInputJson.ts +53 -0
- package/src/agent/rules/conversation.ts +629 -0
- package/src/agent/rules/conversationFaults.ts +349 -0
- package/src/agent/rules/conversationHost.ts +390 -0
- package/src/agent/rules/dispatcher.ts +102 -0
- package/src/agent/rules/errorCodes.ts +78 -0
- package/src/agent/rules/errorStatus.ts +65 -0
- package/src/agent/rules/scriptedTransport.ts +390 -0
- package/src/agent/rules/stickToBottom.ts +38 -0
- package/src/agent/rules/toolResultPayload.ts +197 -0
- package/src/auth/rules/clientHeader.ts +22 -0
- package/src/auth/rules/sentCredential.ts +76 -0
- package/src/auth/rules/transformRequest.ts +803 -0
- package/src/camera/engines/videoFlight.ts +1758 -0
- package/src/camera/index.ts +157 -0
- package/src/camera/rules/clearance.ts +1099 -0
- package/src/camera/rules/fit.ts +132 -0
- package/src/camera/rules/modes.ts +1019 -0
- package/src/camera/rules/plan.ts +478 -0
- package/src/camera/rules/planner.ts +129 -0
- package/src/camera/rules/poseRanges.ts +38 -0
- package/src/camera/rules/presets.ts +185 -0
- package/src/camera/rules/profileSamples.ts +243 -0
- package/src/camera/rules/route.ts +596 -0
- package/src/camera/rules/routeContent.ts +105 -0
- package/src/camera/rules/spline.ts +765 -0
- package/src/camera/rules/sweptViewports.ts +39 -0
- package/src/camera/rules/track.ts +1412 -0
- package/src/camera/rules/vocabulary.ts +130 -0
- package/src/camera/rules/zoom.ts +216 -0
- package/src/collab/engines/session.ts +1902 -0
- package/src/collab/engines/trailingThrottle.ts +151 -0
- package/src/collab/index.ts +52 -0
- package/src/collab/rules/dispatch.ts +143 -0
- package/src/collab/rules/peerNames.ts +51 -0
- package/src/collab/rules/scriptedTransport.ts +244 -0
- package/src/compose/engines/baseMapSwitch.ts +1136 -0
- package/src/compose/engines/events.ts +962 -0
- package/src/compose/engines/mountayaMap.ts +5648 -0
- package/src/compose/engines/sentCredentials.ts +146 -0
- package/src/compose/engines/slotRequests.ts +413 -0
- package/src/compose/rules/accessRefusal.ts +109 -0
- package/src/compose/rules/accessStanding.ts +75 -0
- package/src/compose/rules/analysisKinds.ts +331 -0
- package/src/compose/rules/analysisLayers.ts +176 -0
- package/src/compose/rules/cameraMoves.ts +38 -0
- package/src/compose/rules/carriedLayers.ts +87 -0
- package/src/compose/rules/developmentWarnings.ts +167 -0
- package/src/compose/rules/fitBox.ts +67 -0
- package/src/compose/rules/fitCamera.ts +54 -0
- package/src/compose/rules/geoJsonSlot.ts +61 -0
- package/src/compose/rules/geometrySlots.ts +155 -0
- package/src/compose/rules/glyphNode.ts +62 -0
- package/src/compose/rules/layerKeys.ts +92 -0
- package/src/compose/rules/layerOrder.ts +85 -0
- package/src/compose/rules/layersManifest.ts +26 -0
- package/src/compose/rules/mapOptions.ts +300 -0
- package/src/compose/rules/maplibreWorkerVersion.gen.ts +8 -0
- package/src/compose/rules/markerPin.ts +122 -0
- package/src/compose/rules/markerRegistry.ts +85 -0
- package/src/compose/rules/markerSprite.ts +382 -0
- package/src/compose/rules/maxBounds.ts +120 -0
- package/src/compose/rules/overlayLookup.ts +49 -0
- package/src/compose/rules/paintDiff.ts +38 -0
- package/src/compose/rules/panLock.ts +77 -0
- package/src/compose/rules/patch.ts +124 -0
- package/src/compose/rules/queriedFeature.ts +55 -0
- package/src/compose/rules/queryLayers.ts +46 -0
- package/src/compose/rules/searchHighlight.ts +313 -0
- package/src/compose/rules/slotNames.ts +19 -0
- package/src/compose/rules/stripeImage.ts +253 -0
- package/src/compose/rules/swapMarker.ts +66 -0
- package/src/compose/rules/terrainVariant.ts +88 -0
- package/src/compose/rules/types.ts +559 -0
- package/src/compose/rules/urlHash.ts +19 -0
- package/src/compose/rules/viewOptions.ts +451 -0
- package/src/compose/rules/workerUrl.ts +131 -0
- package/src/data/engines/itineraryResource.ts +643 -0
- package/src/data/index.ts +78 -0
- package/src/data/rules/adapt.ts +473 -0
- package/src/data/rules/editModes.ts +51 -0
- package/src/data/rules/itinerary.ts +168 -0
- package/src/data/rules/nullable.ts +63 -0
- package/src/data/rules/roadAccess.ts +169 -0
- package/src/data/rules/segmentGroups.ts +309 -0
- package/src/data/rules/selectors.ts +95 -0
- package/src/data/rules/zones.ts +79 -0
- package/src/draw/engines/boundaryEngine.ts +1003 -0
- package/src/draw/engines/framedAdapter.ts +198 -0
- package/src/draw/engines/pointerCursor.ts +205 -0
- package/src/draw/engines/segmentEngine.ts +1405 -0
- package/src/draw/engines/snapIndex.ts +254 -0
- package/src/draw/engines/waypointEngine.ts +574 -0
- package/src/draw/engines/zoneEngine.ts +1137 -0
- package/src/draw/rules/drawFrame.ts +123 -0
- package/src/draw/rules/insertVertex.ts +226 -0
- package/src/draw/rules/screenSpace.ts +62 -0
- package/src/draw/rules/seeds.ts +185 -0
- package/src/draw/rules/snap.ts +115 -0
- package/src/draw/rules/snapCameraKey.ts +50 -0
- package/src/draw/rules/terraDrawShared.ts +214 -0
- package/src/draw/rules/zoneOutline.ts +213 -0
- package/src/editing/engines/cursor.ts +505 -0
- package/src/editing/engines/draftMarker.ts +149 -0
- package/src/editing/rules/accent.ts +11 -0
- package/src/editing/rules/engine.ts +288 -0
- package/src/editing/rules/placement.ts +22 -0
- package/src/editing/rules/positions.ts +89 -0
- package/src/editing/rules/sources.ts +9 -0
- package/src/editing/rules/types.ts +457 -0
- package/src/editing/rules/vocabulary.ts +10 -0
- package/src/editing/rules/waypointCursor.ts +228 -0
- package/src/editor/engines/directionArrows.ts +459 -0
- package/src/editor/engines/directions.ts +1383 -0
- package/src/editor/engines/editorClient.ts +134 -0
- package/src/editor/engines/eventScope.ts +59 -0
- package/src/editor/engines/frameLoop.ts +159 -0
- package/src/editor/engines/itineraryPreview.ts +272 -0
- package/src/editor/engines/mapLockGuard.ts +66 -0
- package/src/editor/engines/overlayRenderer.ts +2696 -0
- package/src/editor/engines/peerDraft.ts +760 -0
- package/src/editor/engines/poiPick.ts +305 -0
- package/src/editor/engines/pointPick.ts +84 -0
- package/src/editor/engines/roadAccessLine.ts +140 -0
- package/src/editor/engines/searchHighlight.ts +183 -0
- package/src/editor/engines/viewClient.ts +4091 -0
- package/src/editor/engines/zoneBadges.ts +503 -0
- package/src/editor/index.ts +97 -0
- package/src/editor/rules/accentColor.ts +116 -0
- package/src/editor/rules/camera.ts +121 -0
- package/src/editor/rules/contract.ts +120 -0
- package/src/editor/rules/icons.ts +825 -0
- package/src/editor/rules/markerElements.ts +244 -0
- package/src/editor/rules/style.ts +51 -0
- package/src/editor/rules/terrain.ts +98 -0
- package/src/editor/rules/tileWarm.ts +191 -0
- package/src/editor/rules/tilesReload.ts +158 -0
- package/src/editor/rules/zoneBadgePlacement.ts +1832 -0
- package/src/editor/rules/zoneTimeStyling.ts +119 -0
- package/src/errors/index.ts +25 -0
- package/src/errors/rules/errors.ts +158 -0
- package/src/errors/rules/print.ts +129 -0
- package/src/geo/index.ts +89 -0
- package/src/geo/rules/boundaries.ts +105 -0
- package/src/geo/rules/camera.ts +496 -0
- package/src/geo/rules/corridor.ts +242 -0
- package/src/geo/rules/elevationTiles.ts +269 -0
- package/src/geo/rules/formatLngLat.ts +63 -0
- package/src/geo/rules/geodesy.ts +125 -0
- package/src/geo/rules/geometry.ts +362 -0
- package/src/geo/rules/lineWalk.ts +77 -0
- package/src/geo/rules/longitude.ts +99 -0
- package/src/geo/rules/searchLimits.ts +22 -0
- package/src/geo/rules/segmentGeometry.ts +80 -0
- package/src/geo/rules/terrain.ts +107 -0
- package/src/geo/rules/tuples.ts +124 -0
- package/src/geo/rules/types.ts +54 -0
- package/src/geo/rules/webMercator.ts +57 -0
- package/src/i18n/fr/index.ts +17 -0
- package/src/i18n/fr/rules/fr.ts +85 -0
- package/src/i18n/fr/rules/words.gen.ts +277 -0
- package/src/i18n/index.ts +82 -0
- package/src/i18n/rules/bundle.ts +378 -0
- package/src/i18n/rules/config.ts +71 -0
- package/src/i18n/rules/dates.ts +165 -0
- package/src/i18n/rules/endonyms.gen.ts +19 -0
- package/src/i18n/rules/language.ts +92 -0
- package/src/i18n/rules/localizedName.ts +33 -0
- package/src/i18n/rules/merge.ts +106 -0
- package/src/i18n/rules/scope.ts +127 -0
- package/src/i18n/rules/strings.ts +632 -0
- package/src/i18n/rules/videoOverlay.ts +121 -0
- package/src/i18n/rules/wordForms.ts +95 -0
- package/src/i18n/rules/words.gen.ts +277 -0
- package/src/icons/index.ts +54 -0
- package/src/icons/rules/activities.ts +40 -0
- package/src/icons/rules/amenities.ts +250 -0
- package/src/icons/rules/artwork.gen.ts +83 -0
- package/src/icons/rules/artwork.ts +47 -0
- package/src/icons/rules/fallback.ts +21 -0
- package/src/icons/rules/lucideMarkers.gen.ts +112 -0
- package/src/icons/rules/lucideUi.gen.ts +197 -0
- package/src/icons/rules/paint.ts +107 -0
- package/src/icons/rules/parse.ts +475 -0
- package/src/icons/rules/provider.ts +373 -0
- package/src/icons/rules/sprites.ts +54 -0
- package/src/icons/rules/ui.ts +348 -0
- package/src/icons/rules/waypoints.ts +215 -0
- package/src/index.ts +993 -0
- package/src/layers/engines/layersSelection.ts +515 -0
- package/src/layers/engines/readoutEngine.ts +131 -0
- package/src/layers/index.ts +151 -0
- package/src/layers/rules/analysis.ts +135 -0
- package/src/layers/rules/enrichment.ts +30 -0
- package/src/layers/rules/geoJson.ts +270 -0
- package/src/layers/rules/hover.ts +67 -0
- package/src/layers/rules/itineraries.ts +182 -0
- package/src/layers/rules/layersPanel.ts +237 -0
- package/src/layers/rules/order.ts +194 -0
- package/src/layers/rules/overlayInstant.ts +49 -0
- package/src/layers/rules/overlays.ts +52 -0
- package/src/layers/rules/poiPanel.ts +119 -0
- package/src/layers/rules/pois.ts +114 -0
- package/src/layers/rules/readout.ts +340 -0
- package/src/layers/rules/streetView.ts +16 -0
- package/src/layers/rules/tileTimestamp.ts +146 -0
- package/src/layers/rules/timeSlider.ts +192 -0
- package/src/layers/rules/timeWindow.ts +123 -0
- package/src/layers/rules/zones.ts +43 -0
- package/src/layers/rules/zoom.ts +77 -0
- package/src/map-client/index.ts +71 -0
- package/src/map-client/rules/mapClient.ts +1945 -0
- package/src/navigation/engines/navigation.ts +493 -0
- package/src/navigation/index.ts +51 -0
- package/src/navigation/rules/followedRoute.ts +78 -0
- package/src/navigation/rules/instructions.ts +89 -0
- package/src/navigation/rules/itineraryRoute.ts +232 -0
- package/src/navigation/rules/offRoute.ts +41 -0
- package/src/navigation/rules/progress.ts +230 -0
- package/src/navigation/rules/prompts.ts +217 -0
- package/src/navigation/rules/routeRequest.ts +98 -0
- package/src/navigation/rules/status.ts +142 -0
- package/src/navigation/rules/steps.ts +234 -0
- package/src/navigation/rules/types.ts +83 -0
- package/src/profile/index.ts +307 -0
- package/src/profile/rules/amenityBadge.ts +35 -0
- package/src/profile/rules/amenityFilter.ts +74 -0
- package/src/profile/rules/amenityStacks.ts +66 -0
- package/src/profile/rules/axis.ts +89 -0
- package/src/profile/rules/axisCulling.ts +83 -0
- package/src/profile/rules/axisLookup.ts +180 -0
- package/src/profile/rules/climbs.ts +292 -0
- package/src/profile/rules/cursorMarker.ts +122 -0
- package/src/profile/rules/cursorReadout.ts +104 -0
- package/src/profile/rules/curvePlacement.ts +216 -0
- package/src/profile/rules/dock.ts +293 -0
- package/src/profile/rules/elevation.ts +1263 -0
- package/src/profile/rules/instant.ts +89 -0
- package/src/profile/rules/intl.ts +237 -0
- package/src/profile/rules/legEmphasis.ts +53 -0
- package/src/profile/rules/profileColors.ts +66 -0
- package/src/profile/rules/profileLayout.ts +59 -0
- package/src/profile/rules/profileSlices.ts +55 -0
- package/src/profile/rules/routeProfile.ts +475 -0
- package/src/profile/rules/rowMatch.ts +50 -0
- package/src/profile/rules/scale.ts +646 -0
- package/src/profile/rules/scaleFrame.ts +171 -0
- package/src/profile/rules/sectionChips.ts +83 -0
- package/src/profile/rules/sections.ts +923 -0
- package/src/profile/rules/slopeRamp.ts +160 -0
- package/src/profile/rules/statStrip.ts +103 -0
- package/src/profile/rules/steepness.ts +51 -0
- package/src/profile/rules/tableCells.ts +269 -0
- package/src/profile/rules/tableCursor.ts +87 -0
- package/src/profile/rules/unitPatterns.ts +335 -0
- package/src/profile/rules/units.ts +1025 -0
- package/src/profile/rules/waypointCard.ts +590 -0
- package/src/profile/rules/webAddress.ts +130 -0
- package/src/profile/rules/windowSpans.ts +65 -0
- package/src/rules/asciiFold.ts +17 -0
- package/src/rules/inDevelopment.ts +54 -0
- package/src/rules/listeners.ts +62 -0
- package/src/rules/timers.ts +9 -0
- package/src/rules/types.ts +22 -0
- package/src/rules/uuid.ts +87 -0
- package/src/seams/engines/geolocateControl.ts +286 -0
- package/src/seams/index.ts +50 -0
- package/src/seams/rules/clock.ts +169 -0
- package/src/seams/rules/geolocation.ts +165 -0
- package/src/seams/rules/segmentRoute.ts +187 -0
- package/src/search/engines/search.ts +1093 -0
- package/src/search/index.ts +99 -0
- package/src/search/rules/describe.ts +383 -0
- package/src/search/rules/filters.ts +195 -0
- package/src/search/rules/highlight.ts +270 -0
- package/src/search/rules/pick.ts +90 -0
- package/src/search/rules/rows.ts +258 -0
- package/src/search/rules/searchFocus.ts +27 -0
- package/src/search/rules/searchViewport.ts +44 -0
- package/src/search/rules/shown.ts +77 -0
- package/src/search/rules/types.ts +340 -0
- package/src/stream/rules/reconnectSchedule.ts +83 -0
- package/src/style/engines/organizationRead.ts +80 -0
- package/src/style/index.ts +63 -0
- package/src/style/rules/apply.ts +268 -0
- package/src/style/rules/attribution.ts +119 -0
- package/src/style/rules/itineraryLine.ts +142 -0
- package/src/style/rules/language.ts +668 -0
- package/src/style/rules/layout.gen.ts +27 -0
- package/src/style/rules/organization.ts +96 -0
- package/src/style/rules/paint.ts +143 -0
- package/src/style/rules/panelLayout.ts +51 -0
- package/src/style/rules/roadAccessColors.ts +29 -0
- package/src/style/rules/roadAccessLine.ts +267 -0
- package/src/style/rules/segmentColors.ts +207 -0
- package/src/testing/catalogs.ts +103 -0
- package/src/testing/index.ts +30 -0
- package/src/testing/mapClient.ts +241 -0
- package/src/testing/mountayaMap.ts +741 -0
- package/src/timezone/index.ts +14 -0
- package/src/timezone/rules/viewport.ts +875 -0
- package/src/units/index.ts +55 -0
- package/src/units/rules/conversions.ts +620 -0
- package/src/units/rules/preferenceChoices.ts +124 -0
- package/src/units/rules/preferences.ts +77 -0
- package/src/units/rules/rounding.ts +69 -0
- package/src/video/engines/videoRun.ts +654 -0
- package/src/video/engines/viewClient.ts +6 -0
- package/src/video/index.ts +83 -0
- package/src/video/profileOverlay/rules/contract.ts +210 -0
- package/src/video/profileOverlay/rules/curve.ts +216 -0
- package/src/video/profileOverlay/rules/draw.ts +410 -0
- package/src/video/profileOverlay/rules/fonts.ts +54 -0
- package/src/video/profileOverlay/rules/graphDesign.ts +690 -0
- package/src/video/profileOverlay/rules/minimalDesign.ts +144 -0
- package/src/video/profileOverlay/rules/registry.ts +23 -0
- package/src/video/profileOverlay/rules/staticLayer.ts +582 -0
- package/src/video/profileOverlay/rules/stripDesign.ts +327 -0
- package/src/video/profileOverlay/rules/types.ts +78 -0
- package/src/video/rules/videoConstants.ts +250 -0
- package/src/video/rules/videoEncoder.ts +277 -0
- package/src/video/rules/videoFrames.ts +99 -0
- package/src/video/rules/videoPreview.ts +185 -0
- package/src/video/rules/videoRecorder.ts +746 -0
- package/src/video/rules/videoWatermark.ts +155 -0
- package/src/video/rules/watermarkMark.ts +40 -0
- package/src/view/engines/viewClient.ts +6 -0
- package/src/view/index.ts +20 -0
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
import { v as InfoBand, y as RouteProfilePoint } from "./chunk-QKWhxfPv.cjs";
|
|
2
|
+
import { Rn as ClimbCategory } from "./chunk-blfknWoM.cjs";
|
|
3
|
+
import { r as UnitFormatOptions } from "./chunk-5pTPpv4v.cjs";
|
|
4
|
+
import "./chunk-CuseO5MZ.cjs";
|
|
5
|
+
/**
|
|
6
|
+
* Every closed vocabulary a camera plan is written in, as values.
|
|
7
|
+
*
|
|
8
|
+
* One tuple per vocabulary, declared once. `@mountaya/studio` builds the zod enum from each, so
|
|
9
|
+
* a plan can be composed, interpolated and recorded without a validation runtime, and a Dart or
|
|
10
|
+
* Swift port has a list to read rather than a schema to reverse-engineer.
|
|
11
|
+
*
|
|
12
|
+
* The plan, the presets and the studio's output schema all import DOWN to this module, so none
|
|
13
|
+
* of them restates a vocabulary and no module cycle has to be routed around: the encoder's
|
|
14
|
+
* resolution, frame rate and format, and the frame aspect ({@link CAMERA_ASPECTS}), each have
|
|
15
|
+
* this one home.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* CAMERA_BEARING_MODES names how a shot chooses its heading: `follow` tracks the route's own
|
|
19
|
+
* direction of travel, `locked` holds the previous shot's heading, and `value` takes the
|
|
20
|
+
* explicit `bearingDeg` the shot carries.
|
|
21
|
+
*
|
|
22
|
+
* A locked shot holds the heading resolved for the shot before it, whatever mode chose that one,
|
|
23
|
+
* so a run of locked shots holds one heading. A locked first shot has no shot before it and
|
|
24
|
+
* holds the route's overall heading, from its first vertex toward its last. A route that ends
|
|
25
|
+
* where it starts has no such heading, and the shot holds the one the route sets out on.
|
|
26
|
+
*/
|
|
27
|
+
declare const CAMERA_BEARING_MODES: readonly ["follow", "locked", "value"];
|
|
28
|
+
/** CameraBearingMode names how a shot chooses its heading: one of {@link CAMERA_BEARING_MODES}. */
|
|
29
|
+
type CameraBearingMode = (typeof CAMERA_BEARING_MODES)[number];
|
|
30
|
+
/**
|
|
31
|
+
* CAMERA_MODES names the camera direction a plan is authored in.
|
|
32
|
+
*
|
|
33
|
+
* **The order is the order the mode cards render in**, with `director`, the mode an
|
|
34
|
+
* organization's itinerary offers, last. So the picker reads this tuple as well as the validator,
|
|
35
|
+
* and reordering it reorders the UI. That is deliberate: one list, one order, no second array
|
|
36
|
+
* agreeing with it.
|
|
37
|
+
*/
|
|
38
|
+
declare const CAMERA_MODES: readonly ["smart", "cinematic", "drone", "helicopter", "chase", "overview", "director"];
|
|
39
|
+
/** CameraMode names the camera direction a plan is authored in. */
|
|
40
|
+
type CameraMode = (typeof CAMERA_MODES)[number];
|
|
41
|
+
/**
|
|
42
|
+
* CAMERA_OUTPUT_FORMATS names the encoder container/codec a recording targets. `mp4` (H.264) is
|
|
43
|
+
* the broadly-compatible default; the two WebM members are reserved for the custom-encoder
|
|
44
|
+
* controls a later surface adds, so the value space is in place from the first plan.
|
|
45
|
+
*/
|
|
46
|
+
declare const CAMERA_OUTPUT_FORMATS: readonly ["mp4", "webm-vp9", "webm-vp8"];
|
|
47
|
+
/** CameraOutputFormat names the encoder container/codec. */
|
|
48
|
+
type CameraOutputFormat = (typeof CAMERA_OUTPUT_FORMATS)[number];
|
|
49
|
+
/** CAMERA_RESOLUTIONS names the recording's vertical resolution. `1080p` is the default. */
|
|
50
|
+
declare const CAMERA_RESOLUTIONS: readonly ["720p", "1080p", "1440p", "2160p"];
|
|
51
|
+
/** CameraResolution names the recording's vertical resolution. */
|
|
52
|
+
type CameraResolution = (typeof CAMERA_RESOLUTIONS)[number];
|
|
53
|
+
/**
|
|
54
|
+
* CAMERA_FPS is the recording frame rate, constrained to the three rates the encoder supports.
|
|
55
|
+
*
|
|
56
|
+
* Numbers rather than strings, so the value the track resolver divides by is the value the
|
|
57
|
+
* picker offers: a frame rate that had to be parsed out of `"30"` at each use is a frame rate
|
|
58
|
+
* somebody eventually forgets to parse.
|
|
59
|
+
*/
|
|
60
|
+
declare const CAMERA_FPS: readonly [24, 30, 60];
|
|
61
|
+
/** CameraFps is the recording frame rate. */
|
|
62
|
+
type CameraFps = (typeof CAMERA_FPS)[number];
|
|
63
|
+
/**
|
|
64
|
+
* CAMERA_ASPECTS names the frame shape a recording is composed for.
|
|
65
|
+
*
|
|
66
|
+
* One tuple for the output schema, the preset template and `aspectRatio`'s parameter, so a
|
|
67
|
+
* shape added here reaches all three at once.
|
|
68
|
+
*/
|
|
69
|
+
declare const CAMERA_ASPECTS: readonly ["16:9", "9:16", "1:1"];
|
|
70
|
+
/** CameraAspect names the frame shape a recording is composed for. */
|
|
71
|
+
type CameraAspect = (typeof CAMERA_ASPECTS)[number];
|
|
72
|
+
/**
|
|
73
|
+
* VIDEO_PRESETS_AVAILABLE names the framing preset the wizard's first choice applies.
|
|
74
|
+
*
|
|
75
|
+
* `vertical` (9:16), `widescreen` (16:9) and `square` (1:1) are ready-made templates for the
|
|
76
|
+
* platforms a video is posted to: the same 1080p H.264 30 fps recipe, differing only in frame
|
|
77
|
+
* shape. `custom` is the escape hatch that reveals the full encoder matrix.
|
|
78
|
+
*/
|
|
79
|
+
declare const VIDEO_PRESETS_AVAILABLE: readonly ["vertical", "widescreen", "square", "custom"];
|
|
80
|
+
/** VideoPreset names the framing preset the wizard's first choice applies. */
|
|
81
|
+
type VideoPreset = (typeof VIDEO_PRESETS_AVAILABLE)[number];
|
|
82
|
+
/**
|
|
83
|
+
* QUALITY_TIERS names the encoder quality tier the Custom matrix exposes, which, paired with
|
|
84
|
+
* the resolution and fps, picks a bitrate rather than letting the user type a raw Mbps.
|
|
85
|
+
*/
|
|
86
|
+
declare const QUALITY_TIERS: readonly ["low", "medium", "high"];
|
|
87
|
+
/** Quality names the encoder quality tier. */
|
|
88
|
+
type Quality = (typeof QUALITY_TIERS)[number];
|
|
89
|
+
/** PROFILE_DESIGNS names how the elevation profile overlay is drawn over a recording. */
|
|
90
|
+
declare const PROFILE_DESIGNS: readonly ["graph", "strip", "minimal"];
|
|
91
|
+
/** ProfileDesign names how the elevation profile overlay is drawn. */
|
|
92
|
+
type ProfileDesign = (typeof PROFILE_DESIGNS)[number];
|
|
93
|
+
/**
|
|
94
|
+
* VIDEO_RECORDING_PHASES names the stages a recording run walks, in the order it walks them.
|
|
95
|
+
*
|
|
96
|
+
* `preparing` is the setup before the frame loop (sizing buffers, settling the first tiles),
|
|
97
|
+
* `recording` is the loop that captures and encodes a frame at a time, and `encoding` is the
|
|
98
|
+
* muxer's finalize, which can take seconds on a long output: the loop is done and the file is
|
|
99
|
+
* still being written. A preview reports `recording` alone.
|
|
100
|
+
*
|
|
101
|
+
* Declared here, with no renderer behind it, so a package that validates a recording's status
|
|
102
|
+
* builds its enum from this tuple and never reads the editor's entry for it.
|
|
103
|
+
*/
|
|
104
|
+
declare const VIDEO_RECORDING_PHASES: readonly ["preparing", "recording", "encoding"];
|
|
105
|
+
/** VideoRecordingPhase names the stage a recording run is in, so a readout can label the work. */
|
|
106
|
+
type VideoRecordingPhase = (typeof VIDEO_RECORDING_PHASES)[number];
|
|
107
|
+
/**
|
|
108
|
+
* CameraShot is one keyframe in a camera plan, anchored by progress along the itinerary (`at` in
|
|
109
|
+
* 0..1) rather than by wall-clock, so retiming a plan never invalidates its shots.
|
|
110
|
+
*
|
|
111
|
+
* `pitchDeg` (0..85, MapLibre's tilt ceiling) and `zoom` (0..22) frame the view; `bearingMode`
|
|
112
|
+
* picks how the heading is chosen and `bearingDeg` supplies the explicit value when the mode is
|
|
113
|
+
* `value`; `holdMs` pauses the camera at the shot for an intro or outro beat; `speedScale`
|
|
114
|
+
* retimes the leg leading into the shot (>1 faster, <1 slower) while preserving relative pacing;
|
|
115
|
+
* `id` is a stable handle so a camera-edit tool can target one shot.
|
|
116
|
+
*/
|
|
117
|
+
interface CameraShot {
|
|
118
|
+
at: number;
|
|
119
|
+
bearingDeg?: number | undefined;
|
|
120
|
+
bearingMode: CameraBearingMode;
|
|
121
|
+
holdMs: number;
|
|
122
|
+
id: string;
|
|
123
|
+
pitchDeg: number;
|
|
124
|
+
speedScale: number;
|
|
125
|
+
zoom: number;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* CameraOutput is the encoder configuration a recording targets: the frame `aspect` the wizard
|
|
129
|
+
* map is framed to, an optional `bitrateMbps` override (absent lets the encoder pick the
|
|
130
|
+
* resolution's default), the container `format`, the `fps`, the vertical `resolution`, the
|
|
131
|
+
* `preset` the output was seeded from, and the `quality` tier the Custom matrix derives its
|
|
132
|
+
* bitrate from.
|
|
133
|
+
*/
|
|
134
|
+
interface CameraOutput {
|
|
135
|
+
aspect: CameraAspect;
|
|
136
|
+
bitrateMbps?: number | undefined;
|
|
137
|
+
format: CameraOutputFormat;
|
|
138
|
+
fps: CameraFps;
|
|
139
|
+
preset: VideoPreset;
|
|
140
|
+
quality: Quality;
|
|
141
|
+
resolution: CameraResolution;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* CameraPlan is the single shared artifact a recording is built from: the `mode` it was authored
|
|
145
|
+
* in, the encoder `output`, the `shots` keyframe list, the `targetDurationMs` the whole flight
|
|
146
|
+
* runs for, and a `version` literal so a future shape change is detectable.
|
|
147
|
+
*
|
|
148
|
+
* **`shots` is kept sorted ascending by `at` as an invariant** (see {@link insertShotSorted}),
|
|
149
|
+
* so the resolver can walk it without re-sorting per frame.
|
|
150
|
+
*/
|
|
151
|
+
interface CameraPlan {
|
|
152
|
+
mode: CameraMode;
|
|
153
|
+
output: CameraOutput;
|
|
154
|
+
shots: CameraShot[];
|
|
155
|
+
targetDurationMs: number;
|
|
156
|
+
version: 1;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* RouteGeometry is the flattened path a camera plan resolves against: the `line` as ordered
|
|
160
|
+
* `[lng, lat]` pairs (at least two, so a flight has a direction) and the optional matching
|
|
161
|
+
* `elevations` in meters, one per line vertex, absent for a 2D itinerary.
|
|
162
|
+
*
|
|
163
|
+
* The "at least two" bound is a fact about a valid route and cannot be said in a type, so it is
|
|
164
|
+
* said by the schema at the boundary where a route arrives.
|
|
165
|
+
*
|
|
166
|
+
* Every vertex names a place. The preset generators, `resolveCameraTrack`,
|
|
167
|
+
* `resolveRouteMarkers` and `resolveProfileSamples` refuse a route holding a longitude or a
|
|
168
|
+
* latitude that is no finite number, naming the vertex, and `itineraryToRouteGeometry` leaves
|
|
169
|
+
* such a vertex out of the route it builds.
|
|
170
|
+
*/
|
|
171
|
+
interface RouteGeometry {
|
|
172
|
+
elevations?: number[] | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* The index in `line` of each vertex a line starts on after the first, ascending: where the
|
|
175
|
+
* route was flattened from several lines, the legs that join them.
|
|
176
|
+
*
|
|
177
|
+
* The camera flies the leg that reaches such a vertex, and it is ground nobody covers: the
|
|
178
|
+
* itinerary's distance axis, which a profile's points, bands and spans stand on, charges
|
|
179
|
+
* nothing for it. `resolveProfileSamples` reads each frame's distance on that axis, with the
|
|
180
|
+
* jumps the flight has crossed left out, so the readout stays on the curve it is drawn over.
|
|
181
|
+
* `itineraryToRouteGeometry` states them. A route built by hand states them wherever its
|
|
182
|
+
* line joins two lines of an itinerary, and leaves the member out for one continuous line.
|
|
183
|
+
*
|
|
184
|
+
* An entry that names no leg of the line (below 1, at or past the line's length, or no whole
|
|
185
|
+
* number) is read as no jump.
|
|
186
|
+
*
|
|
187
|
+
* @default undefined, read as a route flown along one continuous line.
|
|
188
|
+
*/
|
|
189
|
+
jumps?: number[] | undefined;
|
|
190
|
+
line: [number, number][];
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* ShotCamera is the camera pose a keyframe holds: where it looks from, and how. The `[lng, lat]`
|
|
194
|
+
* `center` to look at, the `zoom`, the `pitch` in degrees, and the `bearing` in degrees.
|
|
195
|
+
*
|
|
196
|
+
* The same four fields the package's published `Camera` carries, deliberately named apart rather
|
|
197
|
+
* than shared. `Camera` is the map's CURRENT pose, read off a live renderer. This is a pose in a
|
|
198
|
+
* PLAN, a value the director composes and interpolates between before any map exists. Both are
|
|
199
|
+
* read-only: a changed pose is a new object, which is what lets a resolved track be shared
|
|
200
|
+
* between its callers.
|
|
201
|
+
*/
|
|
202
|
+
interface ShotCamera {
|
|
203
|
+
readonly bearing: number;
|
|
204
|
+
readonly center: [number, number];
|
|
205
|
+
readonly pitch: number;
|
|
206
|
+
readonly zoom: number;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* insertShotSorted returns a new shot list with `shot` inserted so the list stays sorted
|
|
210
|
+
* ascending by `at`: the invariant {@link CameraPlan} documents and the resolver relies on.
|
|
211
|
+
*
|
|
212
|
+
* Ties keep the existing shot ahead of the inserted one (a stable insert), so adding a shot at
|
|
213
|
+
* the same progress as another lands it immediately after. The input list is not mutated.
|
|
214
|
+
*/
|
|
215
|
+
declare const insertShotSorted: (shots: readonly CameraShot[], shot: CameraShot) => CameraShot[];
|
|
216
|
+
/**
|
|
217
|
+
* defaultCameraShot is what a keyframe holds when the author has said nothing about it.
|
|
218
|
+
*
|
|
219
|
+
* Its fields are here for the reason `defaultCameraOutput` is: `@mountaya/studio`'s
|
|
220
|
+
* `cameraShotSchema` reads its `.default()` values from this object rather than restating them,
|
|
221
|
+
* so a shot built in process and the same shot round-tripped through the schema are the same
|
|
222
|
+
* shot. Two sets of defaults that agree are one set of defaults and one silent way to diverge.
|
|
223
|
+
*
|
|
224
|
+
* `at`, `id`, `pitchDeg` and `zoom` are deliberately absent: a keyframe with no position on the
|
|
225
|
+
* route and no altitude is not a keyframe with defaults, it is a keyframe the caller forgot to
|
|
226
|
+
* place.
|
|
227
|
+
*/
|
|
228
|
+
declare const defaultCameraShot: Pick<CameraShot, "bearingMode" | "holdMs" | "speedScale">;
|
|
229
|
+
/**
|
|
230
|
+
* defaultCameraOutput is what a fresh plan encodes at, and the single source for it.
|
|
231
|
+
*
|
|
232
|
+
* It matches `videoPresets.vertical`: a fresh plan opens vertical-first (9:16, 1080p H.264
|
|
233
|
+
* 30 fps), so the wizard's checked preset and the framed aspect agree from the first frame
|
|
234
|
+
* rather than the preset disagreeing with the framing. `bitrateMbps` is left absent so the
|
|
235
|
+
* encoder picks the resolution's default, which IS the Vertical template's bitrate: a default
|
|
236
|
+
* recording encodes at the preset's rate without a literal being restated here.
|
|
237
|
+
*
|
|
238
|
+
* `@mountaya/studio`'s `cameraOutputSchema` reads its `.default()` values from this object
|
|
239
|
+
* rather than restating them. Two sets of defaults that agree today are two sets of defaults,
|
|
240
|
+
* and the way they diverge is silent: a plan built in process and the same plan round-tripped
|
|
241
|
+
* through a parse stop being the same plan.
|
|
242
|
+
*/
|
|
243
|
+
declare const defaultCameraOutput: CameraOutput;
|
|
244
|
+
/** DEFAULT_TARGET_DURATION_MS is how long a flight runs for until something retimes it. */
|
|
245
|
+
declare const DEFAULT_TARGET_DURATION_MS = 20000;
|
|
246
|
+
/**
|
|
247
|
+
* CameraPlanInput is what {@link createCameraPlan} assembles a plan from: the mode, and whichever
|
|
248
|
+
* of the other parts the caller states.
|
|
249
|
+
*
|
|
250
|
+
* Every optional part is written `| undefined`, so a caller compiling with
|
|
251
|
+
* `exactOptionalPropertyTypes` forwards a setting it may not hold
|
|
252
|
+
* (`targetDurationMs: settings.targetDurationMs`) and the default stands in for it.
|
|
253
|
+
*/
|
|
254
|
+
interface CameraPlanInput {
|
|
255
|
+
/** The mode the plan is authored in. */
|
|
256
|
+
mode: CameraMode;
|
|
257
|
+
/**
|
|
258
|
+
* The encoder configuration the recording targets.
|
|
259
|
+
*
|
|
260
|
+
* @default A copy of {@link defaultCameraOutput}.
|
|
261
|
+
*/
|
|
262
|
+
output?: CameraOutput | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* The keyframes, ascending by `at`.
|
|
265
|
+
*
|
|
266
|
+
* @default An empty list.
|
|
267
|
+
*/
|
|
268
|
+
shots?: CameraShot[] | undefined;
|
|
269
|
+
/**
|
|
270
|
+
* How long the whole flight runs for, in milliseconds.
|
|
271
|
+
*
|
|
272
|
+
* @default {@link DEFAULT_TARGET_DURATION_MS}
|
|
273
|
+
*/
|
|
274
|
+
targetDurationMs?: number | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* Taken so a plan can be handed back whole, and never read: the plan answered is version 1.
|
|
277
|
+
*
|
|
278
|
+
* @default 1
|
|
279
|
+
*/
|
|
280
|
+
version?: 1 | undefined;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* createCameraPlan assembles a plan from the parts a generator produces, filling the rest.
|
|
284
|
+
*
|
|
285
|
+
* Reaching for `cameraPlanSchema.parse()` to do this works and costs more than it looks: a zod
|
|
286
|
+
* parse is a VALIDATION boundary, and these values were built in process moments earlier by the
|
|
287
|
+
* code calling it. It would mean `./camera` could not be composed without a schema library, and
|
|
288
|
+
* it would make "apply the defaults" and "check untrusted input" the same call, so neither
|
|
289
|
+
* could change without the other.
|
|
290
|
+
*
|
|
291
|
+
* Untrusted input still parses. This is for the other case, which is most of them.
|
|
292
|
+
*
|
|
293
|
+
* It holds no range a schema states, and it does refuse the numbers no flight can be planned
|
|
294
|
+
* with ({@link refuseUnplannablePlan}), because each one sizes the frame grid or divides a leg's
|
|
295
|
+
* time: read on, it surfaces as an allocation that throws a `RangeError` or as a flight of `NaN`
|
|
296
|
+
* poses, far from the call that wrote it.
|
|
297
|
+
*
|
|
298
|
+
* @param plan The mode, and whichever of the output, the shots and the target duration the
|
|
299
|
+
* caller states.
|
|
300
|
+
* @returns The plan, with `output` a copy of {@link defaultCameraOutput}, `shots` empty and
|
|
301
|
+
* `targetDurationMs` at {@link DEFAULT_TARGET_DURATION_MS} where the caller states none, and
|
|
302
|
+
* `version` 1.
|
|
303
|
+
* @throws {MountayaElementsError} Naming the member, when `output` is no object, `shots` no
|
|
304
|
+
* array or an entry of `shots` no object, when `targetDurationMs` is not a finite number above
|
|
305
|
+
* 0, when `output.fps` is not one of {@link CAMERA_FPS}, when a stated `output.bitrateMbps` is
|
|
306
|
+
* not a finite number above 0, or when a shot holds a number that is not finite, a `holdMs`
|
|
307
|
+
* below 0 or a `speedScale` at or below 0.
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* ```ts
|
|
311
|
+
* import { createCameraPlan } from "@mountaya/elements/camera";
|
|
312
|
+
*
|
|
313
|
+
* const plan = createCameraPlan({ mode: "director", targetDurationMs: 45_000 });
|
|
314
|
+
* ```
|
|
315
|
+
*/
|
|
316
|
+
declare const createCameraPlan: (plan: CameraPlanInput) => CameraPlan;
|
|
317
|
+
/**
|
|
318
|
+
* SegmentSpan places one itinerary segment on the cumulative distance axis: the segment's display
|
|
319
|
+
* `name`, its `speed` (m/s, null when the segment never carried the metric), and the
|
|
320
|
+
* `[startKm, endKm]` stretch it spans.
|
|
321
|
+
*
|
|
322
|
+
* The overlay reads the speed and segment name under the moving flight position from these: the
|
|
323
|
+
* band counterpart for the per-segment channels the index-ranged analyses do not carry.
|
|
324
|
+
*/
|
|
325
|
+
interface SegmentSpan {
|
|
326
|
+
endKm: number;
|
|
327
|
+
name: string;
|
|
328
|
+
speed: number | null;
|
|
329
|
+
startKm: number;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* ProfileSource is the plan-independent analysis the live profile overlay resolves a per-frame
|
|
333
|
+
* sample from: the `elevationPoints` series, the categorical `surfaceBands` / `waytypeBands`, the
|
|
334
|
+
* numeric `slopeBands`, and the per-segment `segmentSpans`.
|
|
335
|
+
*
|
|
336
|
+
* It is derived from the wizard's itinerary detail once and stored alongside the itinerary,
|
|
337
|
+
* because the full itinerary is not reachable at record time: the resolver reads this frozen
|
|
338
|
+
* source instead. `@mountaya/studio` validates one arriving over the tool seam; this is the shape
|
|
339
|
+
* it validates against.
|
|
340
|
+
*/
|
|
341
|
+
interface ProfileSource {
|
|
342
|
+
elevationPoints: RouteProfilePoint[];
|
|
343
|
+
segmentSpans: SegmentSpan[];
|
|
344
|
+
slopeBands: InfoBand<number>[];
|
|
345
|
+
surfaceBands: InfoBand<string>[];
|
|
346
|
+
waytypeBands: InfoBand<string>[];
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* ProfileSample is the overlay's readout at one frame, aligned with the camera
|
|
350
|
+
* pose and the itinerary marker at the same index: the cumulative `distanceKm` along
|
|
351
|
+
* the itinerary, the `elevation` (m) and `slopeDeg` there, the running `ascentM` (total
|
|
352
|
+
* positive climb, m, from the itinerary start to this point), the `surface` and
|
|
353
|
+
* `waytype` categories under the flight position, the segment `speed` (m/s) and
|
|
354
|
+
* `segmentName`, the categorized climb the frame sits on (`climbCategory`, its
|
|
355
|
+
* average grade `climbAvgGradePercent`, and `climbEndKm`, the summit's distance,
|
|
356
|
+
* so a renderer reads "to summit" as `climbEndKm - distanceKm`; all three null
|
|
357
|
+
* off-climb), and `progress` (0..1 of the way through the flight, the frame's
|
|
358
|
+
* fraction). Every channel except distance/progress is nullable: a 2D itinerary carries
|
|
359
|
+
* no elevation (so no ascent and no climbs), a gap between bands carries no
|
|
360
|
+
* category, and a segment may lack a speed. It is a hand-written interface (not
|
|
361
|
+
* schema-derived) because it is a trusted in-process value the overlay renderer
|
|
362
|
+
* reads per frame, never parsed at a boundary: the source it is built from carries
|
|
363
|
+
* the Zod guard.
|
|
364
|
+
*/
|
|
365
|
+
interface ProfileSample {
|
|
366
|
+
ascentM: number | null;
|
|
367
|
+
climbAvgGradePercent: number | null;
|
|
368
|
+
climbCategory: ClimbCategory | null;
|
|
369
|
+
climbEndKm: number | null;
|
|
370
|
+
distanceKm: number;
|
|
371
|
+
elevation: number | null;
|
|
372
|
+
progress: number;
|
|
373
|
+
segmentName: string | null;
|
|
374
|
+
slopeDeg: number | null;
|
|
375
|
+
speed: number | null;
|
|
376
|
+
surface: string | null;
|
|
377
|
+
waytype: string | null;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* resolveProfileSamples produces one ProfileSample per frame, index-aligned with
|
|
381
|
+
* resolveCameraTrack and resolveRouteMarkers by consuming the same per-frame
|
|
382
|
+
* fraction sequence (resolveFrameProgressions), so samples[i] is the overlay
|
|
383
|
+
* readout for pose[i] and marker[i].
|
|
384
|
+
*
|
|
385
|
+
* Each frame's distance is read on the itinerary's axis, the one the source's points, bands
|
|
386
|
+
* and spans stand on: the fraction of the flight line the frame has travelled, with the jumps
|
|
387
|
+
* it has crossed left out ({@link groundMetersAt} over the route's `jumps`). A frame over a
|
|
388
|
+
* jump holds the distance the line before it ended on, so the readout never runs past the end
|
|
389
|
+
* of the curve. A route that states no jump reads the fraction times its length. It resolves
|
|
390
|
+
* the nearest elevation index once per frame (nearestRoutePointIndexAt, a binary search) and
|
|
391
|
+
* reads both the elevation and the running ascent (the precomputed ascentPrefix) from that
|
|
392
|
+
* same index, so the two never disagree; slope / surface / way-type come from the bands at
|
|
393
|
+
* that distance (bandValueAt), and speed and segment name from the segment span. The frame's
|
|
394
|
+
* fraction rides along as `progress`, and ascent is null when the itinerary carries no
|
|
395
|
+
* elevation points. Render-free and pure, so the live preview overlay and the recorder
|
|
396
|
+
* composite read identical samples from (plan, itinerary, source).
|
|
397
|
+
*
|
|
398
|
+
* **Memoized as the poses are**, which is what makes that last sentence literal and not a claim
|
|
399
|
+
* about two computations agreeing: on the route and the source by identity, and on the plan by
|
|
400
|
+
* what it holds ({@link posePlanSignature}). The preview resolves the samples to draw the
|
|
401
|
+
* overlay; the recorder resolves them again to composite the same overlay into the file, and
|
|
402
|
+
* the two are the same array. Each resolve is a frame-count walk, thousands for a minute at
|
|
403
|
+
* 60 fps, over a climb detection and an ascent prefix built per call.
|
|
404
|
+
*
|
|
405
|
+
* A plan edited in place is another flight, so it resolves another set, as
|
|
406
|
+
* `resolveCameraTrack` resolves another track for it: keyed on the plan object, the samples of
|
|
407
|
+
* its first resolve would stand beside the poses of its second. Two plans that differ only in
|
|
408
|
+
* what an encoder reads fly one frame grid and share one set.
|
|
409
|
+
*
|
|
410
|
+
* **The memoized array is SHARED with the next caller, so treat it as read-only.** Copying it
|
|
411
|
+
* would allocate a sample object per frame and give back what the memo saves. Every consumer
|
|
412
|
+
* reads a frame out of it: the overlay draws one, the recorder composites one.
|
|
413
|
+
*
|
|
414
|
+
* @throws {MountayaElementsError} When the route holds a vertex whose longitude or latitude is
|
|
415
|
+
* no finite number, naming it, as `resolveCameraTrack` and `resolveRouteMarkers` refuse the same
|
|
416
|
+
* route: a readout over it would state a distance of `NaN` on every frame.
|
|
417
|
+
*/
|
|
418
|
+
declare const resolveProfileSamples: (plan: CameraPlan, itinerary: RouteGeometry, source: ProfileSource) => ProfileSample[];
|
|
419
|
+
/**
|
|
420
|
+
* RecordingCamera is the per-frame camera a flight plays and a recording captures: the [lng, lat]
|
|
421
|
+
* `center` to look at, the `zoom`, the `pitch` in degrees and the `bearing` in degrees. Every
|
|
422
|
+
* channel is present. The map receives resolved poses and does no track or spline maths: the
|
|
423
|
+
* caller resolves a plan into an array of these and hands it to the map client's `recordPoses`.
|
|
424
|
+
*
|
|
425
|
+
* It is the published `ShotCamera` of `@mountaya/elements/camera`, whose renderer-free rules
|
|
426
|
+
* resolve it. It has the shape of the root's `Camera`, so a pose read off a live map seeds a plan
|
|
427
|
+
* and a planned pose flies back to the map, but it names a pose a director composed rather than the
|
|
428
|
+
* one the map stands at.
|
|
429
|
+
*/
|
|
430
|
+
type RecordingCamera = ShotCamera;
|
|
431
|
+
/**
|
|
432
|
+
* RecordOutput is the render-free encoder configuration a recording targets: the
|
|
433
|
+
* container `format`, the vertical `resolution`, the frame rate `fps`, the frame
|
|
434
|
+
* `aspect`, and an optional `bitrateMbps` override (absent lets the encoder pick a
|
|
435
|
+
* bitrate from the resolution and frame rate). The map resolves `resolution` +
|
|
436
|
+
* `aspect` to a pixel size and `format` to a codec/container at record time.
|
|
437
|
+
*
|
|
438
|
+
* The published `CameraOutput` projected onto the fields the recorder reads, rather
|
|
439
|
+
* than a hand-kept copy of them. `preset` and `quality` are the wizard's own (they
|
|
440
|
+
* seed an output and are never read at record time) so the projection is what makes
|
|
441
|
+
* "the encoder slice" a type instead of a claim in a comment. A field renamed or
|
|
442
|
+
* retyped upstream fails here at compile time, and a field DROPPED upstream fails
|
|
443
|
+
* the `Pick` itself.
|
|
444
|
+
*/
|
|
445
|
+
type RecordOutput = Pick<CameraOutput, "aspect" | "bitrateMbps" | "format" | "fps" | "resolution">;
|
|
446
|
+
/**
|
|
447
|
+
* RecordProfile is the live profile overlay's recording input handed across the recordPoses
|
|
448
|
+
* seam. Absent on a recording, no overlay is composited.
|
|
449
|
+
*
|
|
450
|
+
* This is the ONE name for that shape, on both sides of the seam. The interface declares
|
|
451
|
+
* it and the recorder consumes it, so a field added here reaches the implementation by
|
|
452
|
+
* compiling rather than by two declarations happening to agree.
|
|
453
|
+
*
|
|
454
|
+
* All its fields are the PUBLISHED types, not twins of them. A readout and a unit triple
|
|
455
|
+
* restated field for field would need a compile-time gate to hold the copies together, and
|
|
456
|
+
* nothing requires the copies: the renderer may read this package's own renderer-free
|
|
457
|
+
* entries, and several modules in this tree already do, some naming `ProfileSample`
|
|
458
|
+
* directly.
|
|
459
|
+
*/
|
|
460
|
+
interface RecordProfile {
|
|
461
|
+
/**
|
|
462
|
+
* The overlay's design: one of the members `profileDesignSchema` parses, the enum the wizard
|
|
463
|
+
* parses and the overlay renderer switches on.
|
|
464
|
+
*/
|
|
465
|
+
design: ProfileDesign;
|
|
466
|
+
/** The video-scoped unit format every number of the overlay renders through. */
|
|
467
|
+
format: UnitFormatOptions;
|
|
468
|
+
/**
|
|
469
|
+
* The readout of each frame, index-aligned with the poses: `samples[i]` is the readout for
|
|
470
|
+
* pose i.
|
|
471
|
+
*/
|
|
472
|
+
samples: ProfileSample[];
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* VideoProgress is the readout a preview or recording emits as it advances: the
|
|
476
|
+
* completion `fraction` (0..1) and the `phase` the run is in. A preview reports
|
|
477
|
+
* only the `recording` phase (its rAF camera fly); a recording walks
|
|
478
|
+
* `preparing` → `recording` → `encoding`.
|
|
479
|
+
*/
|
|
480
|
+
interface VideoProgress {
|
|
481
|
+
/** How far the run has come, from 0 to 1. */
|
|
482
|
+
fraction: number;
|
|
483
|
+
/** The stage the run is in. A preview reports `recording` alone. */
|
|
484
|
+
phase: VideoRecordingPhase;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* VideoRecordingResult is the outcome of a recordPoses run: the encoded `blob`,
|
|
488
|
+
* whether the run was `cancelled`, the `error` a failed run stopped on, and the
|
|
489
|
+
* file `extension` the chosen container resolves to (e.g. "mp4"). The result is
|
|
490
|
+
* always resolved, because recordPoses never rejects, so a caller branches on the
|
|
491
|
+
* fields rather than on a thrown error.
|
|
492
|
+
*
|
|
493
|
+
* No blob comes back from a cancel, a refusal or a failure. A cancel has `cancelled`
|
|
494
|
+
* true and no `reason`. A run that could not start, which nobody cancelled, has
|
|
495
|
+
* `cancelled` true and `reason: "unavailable"`. A failure has `cancelled` false and
|
|
496
|
+
* an `error`. A recorder a host supplies may also resolve `cancelled` false with
|
|
497
|
+
* neither.
|
|
498
|
+
*/
|
|
499
|
+
interface VideoRecordingResult {
|
|
500
|
+
/** The encoded video, or null for a cancel, a refusal or a failure. */
|
|
501
|
+
blob: Blob | null;
|
|
502
|
+
/**
|
|
503
|
+
* Whether the run ended with no file and no failure: `true` for a cancel and for a run that
|
|
504
|
+
* could not start.
|
|
505
|
+
*/
|
|
506
|
+
cancelled: boolean;
|
|
507
|
+
/**
|
|
508
|
+
* The failure that stopped the run: a missing `mediabunny`, a composite surface, frame
|
|
509
|
+
* capture or encoder that could not be built, or a capture or encode that threw. Set only
|
|
510
|
+
* on a failed run, which also has `blob` null and `cancelled` false. Absent on every other
|
|
511
|
+
* outcome.
|
|
512
|
+
*/
|
|
513
|
+
error?: Error | undefined;
|
|
514
|
+
/** The file extension the chosen container resolves to, such as `mp4`. */
|
|
515
|
+
extension: string;
|
|
516
|
+
/**
|
|
517
|
+
* Why a run with no blob and `cancelled` true did not record. `unavailable` is a run that
|
|
518
|
+
* could not start, which nobody cancelled: no recorder wired to the map, no pose to capture,
|
|
519
|
+
* no drawing buffer to read, a canvas under the minimum size, no 2D context to composite in,
|
|
520
|
+
* a first frame that read black. Absent on a cancel and on every other outcome.
|
|
521
|
+
*/
|
|
522
|
+
reason?: "unavailable" | undefined;
|
|
523
|
+
}
|
|
524
|
+
export { CameraMode as A, VideoRecordingPhase as B, CAMERA_FPS as C, CameraAspect as D, CAMERA_RESOLUTIONS as E, QUALITY_TIERS as F, Quality as I, VIDEO_PRESETS_AVAILABLE as L, CameraResolution as M, PROFILE_DESIGNS as N, CameraBearingMode as O, ProfileDesign as P, VIDEO_RECORDING_PHASES as R, CAMERA_BEARING_MODES as S, CAMERA_OUTPUT_FORMATS as T, createCameraPlan as _, VideoRecordingResult as a, insertShotSorted as b, SegmentSpan as c, CameraPlan as d, CameraPlanInput as f, ShotCamera as g, RouteGeometry as h, VideoProgress as i, CameraOutputFormat as j, CameraFps as k, resolveProfileSamples as l, DEFAULT_TARGET_DURATION_MS as m, RecordProfile as n, ProfileSample as o, CameraShot as p, RecordingCamera as r, ProfileSource as s, RecordOutput as t, CameraOutput as u, defaultCameraOutput as v, CAMERA_MODES as w, CAMERA_ASPECTS as x, defaultCameraShot as y, VideoPreset as z };
|
|
525
|
+
//# sourceMappingURL=chunk-CeiTuMyt.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as SEARCH_HIGHLIGHT_ROLES, n as SEARCH_HIGHLIGHT_SOURCE, r as searchHighlightLayers, i as searchHighlightStyle } from "./chunk-Dj60k5PU.js";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const require_webMercator = require("./chunk-fHVYEZs4.cjs");
|
|
3
|
+
const require_conversions = require("./chunk-BBikve0Z.cjs");
|
|
4
|
+
const CINEMATIC_EYE_HEIGHT_METERS = 260;
|
|
5
|
+
const POINT_ZOOM = 13;
|
|
6
|
+
const DEFAULT_VIEWPORT_HEIGHT_PX = 800;
|
|
7
|
+
const FOV_ALTITUDE_FACTOR = 1.5;
|
|
8
|
+
const altitudeToZoom = (altitudeMeters, latitude, viewportHeightPx = 800) => {
|
|
9
|
+
if (!Number.isFinite(altitudeMeters) || altitudeMeters <= 0) return 12;
|
|
10
|
+
const circumference = require_webMercator.EQUATORIAL_CIRCUMFERENCE_METERS * Math.cos(latitude * require_conversions.DEGREES_TO_RADIANS);
|
|
11
|
+
const altitudePx = (Number.isFinite(viewportHeightPx) && viewportHeightPx > 0 ? viewportHeightPx : 800) * FOV_ALTITUDE_FACTOR;
|
|
12
|
+
const z = Math.log2(altitudePx * circumference / (512 * altitudeMeters));
|
|
13
|
+
if (!Number.isFinite(z)) return 12;
|
|
14
|
+
return Math.min(16, Math.max(4, z));
|
|
15
|
+
};
|
|
16
|
+
const zoomToAltitude = (zoom, latitude, viewportHeightPx = 800) => {
|
|
17
|
+
if (!Number.isFinite(zoom)) return 1e3;
|
|
18
|
+
const circumference = require_webMercator.EQUATORIAL_CIRCUMFERENCE_METERS * Math.cos(latitude * require_conversions.DEGREES_TO_RADIANS);
|
|
19
|
+
const altitude = (Number.isFinite(viewportHeightPx) && viewportHeightPx > 0 ? viewportHeightPx : 800) * FOV_ALTITUDE_FACTOR * circumference / (512 * 2 ** zoom);
|
|
20
|
+
if (!Number.isFinite(altitude) || altitude <= 0) return 1e3;
|
|
21
|
+
return altitude;
|
|
22
|
+
};
|
|
23
|
+
const viewportGroundSpanMeters = (zoom, latitude, viewportHeightPx = 800) => {
|
|
24
|
+
return (Number.isFinite(viewportHeightPx) && viewportHeightPx > 0 ? viewportHeightPx : 800) * require_webMercator.groundMetersPerPixel(zoom, latitude);
|
|
25
|
+
};
|
|
26
|
+
const zoomLimitReached = (zoom, window) => {
|
|
27
|
+
const atCeiling = zoom >= window.max;
|
|
28
|
+
const atFloor = zoom <= window.min;
|
|
29
|
+
if (atCeiling && atFloor) return "both";
|
|
30
|
+
return atCeiling ? "ceiling" : atFloor ? "floor" : "none";
|
|
31
|
+
};
|
|
32
|
+
const zoomControlsDisabled = {
|
|
33
|
+
both: ["zoom-in", "zoom-out"],
|
|
34
|
+
ceiling: ["zoom-in"],
|
|
35
|
+
floor: ["zoom-out"],
|
|
36
|
+
none: []
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "CINEMATIC_EYE_HEIGHT_METERS", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function() {
|
|
41
|
+
return CINEMATIC_EYE_HEIGHT_METERS;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "DEFAULT_VIEWPORT_HEIGHT_PX", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function() {
|
|
47
|
+
return DEFAULT_VIEWPORT_HEIGHT_PX;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "POINT_ZOOM", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function() {
|
|
53
|
+
return POINT_ZOOM;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "altitudeToZoom", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function() {
|
|
59
|
+
return altitudeToZoom;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "viewportGroundSpanMeters", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function() {
|
|
65
|
+
return viewportGroundSpanMeters;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "zoomControlsDisabled", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function() {
|
|
71
|
+
return zoomControlsDisabled;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "zoomLimitReached", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function() {
|
|
77
|
+
return zoomLimitReached;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "zoomToAltitude", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function() {
|
|
83
|
+
return zoomToAltitude;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=chunk-Cizu_j1N.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-Cizu_j1N.cjs","names":["EQUATORIAL_CIRCUMFERENCE_METERS","DEGREES_TO_RADIANS","groundMetersPerPixel"],"sources":["../src/camera/rules/zoom.ts"],"mappings":";;;AAgBA,MAAa,8BAA8B;AAmB3C,MAAa,aAAa;AAU1B,MAAa,6BAA6B;AAQ1C,MAAM,sBAAsB;AAkB5B,MAAa,kBACX,gBACA,UACA,mBAAA,QACW;CACX,IAAI,CAAC,OAAO,SAAS,cAAc,KAAK,kBAAkB,GACxD,OAAO;CAGT,MAAM,gBAAgBA,oBAAAA,kCAAkC,KAAK,IAAI,WAAWC,oBAAAA,kBAAkB;CAK9F,MAAM,cAHJ,OAAO,SAAS,gBAAgB,KAAK,mBAAmB,IACpD,mBAAA,OAE4B;CAClC,MAAM,IAAI,KAAK,KAAM,aAAa,iBAAA,MAAiC,eAAe;CAClF,IAAI,CAAC,OAAO,SAAS,CAAC,GACpB,OAAO;CAGT,OAAO,KAAK,IAAI,IAAI,KAAK,IAAI,GAAG,CAAC,CAAC;AACpC;AAoBA,MAAa,kBACX,MACA,UACA,mBAAA,QACW;CACX,IAAI,CAAC,OAAO,SAAS,IAAI,GACvB,OAAO;CAGT,MAAM,gBAAgBD,oBAAAA,kCAAkC,KAAK,IAAI,WAAWC,oBAAAA,kBAAkB;CAM9F,MAAM,YAJJ,OAAO,SAAS,gBAAgB,KAAK,mBAAmB,IACpD,mBAAA,OAE4B,sBACH,iBAAA,MAAiC,KAAK;CACrE,IAAI,CAAC,OAAO,SAAS,QAAQ,KAAK,YAAY,GAC5C,OAAO;CAGT,OAAO;AACT;AAcA,MAAa,4BACX,MACA,UACA,mBAAA,QACW;CAMX,QAJE,OAAO,SAAS,gBAAgB,KAAK,mBAAmB,IACpD,mBAAA,OAGgBC,oBAAAA,qBAAqB,MAAM,QAAQ;AAC3D;AA+BA,MAAa,oBACX,MACA,WACqB;CACrB,MAAM,YAAY,QAAQ,OAAO;CACjC,MAAM,UAAU,QAAQ,OAAO;CAC/B,IAAI,aAAa,SACf,OAAO;CAGT,OAAO,YAAY,YAAY,UAAU,UAAU;AACrD;AAQA,MAAa,uBAET;CACF,MAAM,CAAC,WAAW,UAAU;CAC5B,SAAS,CAAC,SAAS;CACnB,OAAO,CAAC,UAAU;CAClB,MAAM,CAAC;AACT"}
|