@motionscript/core 0.1.0-alpha.5 → 0.1.0-alpha.6

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 (251) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/browser/chunks/chunk-2RIYH36X.js +3 -0
  3. package/dist/browser/chunks/{chunk-QG6C23IJ.js.map → chunk-2RIYH36X.js.map} +4 -4
  4. package/dist/browser/chunks/chunk-DDJN3QII.js +15 -0
  5. package/dist/browser/chunks/chunk-DDJN3QII.js.map +7 -0
  6. package/dist/browser/chunks/chunk-DHB4COFY.js +2 -0
  7. package/dist/browser/chunks/chunk-DHB4COFY.js.map +7 -0
  8. package/dist/browser/chunks/chunk-EJDPYDQI.js +5 -0
  9. package/dist/browser/chunks/chunk-EJDPYDQI.js.map +7 -0
  10. package/dist/browser/chunks/chunk-XAWE4EAK.js +2 -0
  11. package/dist/browser/chunks/chunk-XAWE4EAK.js.map +7 -0
  12. package/dist/browser/component.js +1 -1
  13. package/dist/browser/component.js.map +4 -4
  14. package/dist/browser/experimental.js +2 -0
  15. package/dist/browser/experimental.js.map +7 -0
  16. package/dist/browser/index.js +1 -1
  17. package/dist/browser/index.js.map +4 -4
  18. package/dist/browser/jsx-jsx-dev-runtime.js +1 -1
  19. package/dist/browser/jsx-jsx-runtime.js +1 -1
  20. package/dist/browser/manifest.json +2 -1
  21. package/dist/browser/sdk.js +1 -1
  22. package/dist/component/api.d.ts +508 -0
  23. package/dist/component/api.d.ts.map +1 -0
  24. package/dist/component/api.js +4 -0
  25. package/dist/component/api.js.map +1 -0
  26. package/dist/component/builtins/audio.d.ts +26 -0
  27. package/dist/component/builtins/audio.d.ts.map +1 -0
  28. package/dist/component/builtins/audio.js +41 -0
  29. package/dist/component/builtins/audio.js.map +1 -0
  30. package/dist/component/builtins/canvas3d.d.ts +98 -0
  31. package/dist/component/builtins/canvas3d.d.ts.map +1 -0
  32. package/dist/component/builtins/canvas3d.js +21 -0
  33. package/dist/component/builtins/canvas3d.js.map +1 -0
  34. package/dist/component/builtins/composite.d.ts +56 -0
  35. package/dist/component/builtins/composite.d.ts.map +1 -0
  36. package/dist/component/builtins/composite.js +25 -0
  37. package/dist/component/builtins/composite.js.map +1 -0
  38. package/dist/component/builtins/geometry.d.ts +505 -0
  39. package/dist/component/builtins/geometry.d.ts.map +1 -0
  40. package/dist/component/builtins/geometry.js +107 -0
  41. package/dist/component/builtins/geometry.js.map +1 -0
  42. package/dist/component/builtins/layout.d.ts +88 -0
  43. package/dist/component/builtins/layout.d.ts.map +1 -0
  44. package/dist/component/builtins/layout.js +84 -0
  45. package/dist/component/builtins/layout.js.map +1 -0
  46. package/dist/component/builtins/media.d.ts +95 -0
  47. package/dist/component/builtins/media.d.ts.map +1 -0
  48. package/dist/component/builtins/media.js +149 -0
  49. package/dist/component/builtins/media.js.map +1 -0
  50. package/dist/component/builtins/providers.d.ts +23 -0
  51. package/dist/component/builtins/providers.d.ts.map +1 -0
  52. package/dist/component/builtins/providers.js +30 -0
  53. package/dist/component/builtins/providers.js.map +1 -0
  54. package/dist/component/builtins/text.d.ts +193 -0
  55. package/dist/component/builtins/text.d.ts.map +1 -0
  56. package/dist/component/builtins/text.js +113 -0
  57. package/dist/component/builtins/text.js.map +1 -0
  58. package/dist/component/builtins/three.d.ts +1085 -0
  59. package/dist/component/builtins/three.d.ts.map +1 -0
  60. package/dist/component/builtins/three.js +265 -0
  61. package/dist/component/builtins/three.js.map +1 -0
  62. package/dist/component/clip-of.d.ts +5 -0
  63. package/dist/component/clip-of.d.ts.map +1 -0
  64. package/dist/component/clip-of.js +33 -0
  65. package/dist/component/clip-of.js.map +1 -0
  66. package/dist/component/commands-for.d.ts +19 -0
  67. package/dist/component/commands-for.d.ts.map +1 -0
  68. package/dist/component/commands-for.js +5 -0
  69. package/dist/component/commands-for.js.map +1 -0
  70. package/dist/component/component-audio.d.ts +9 -0
  71. package/dist/component/component-audio.d.ts.map +1 -0
  72. package/dist/component/component-audio.js +18 -0
  73. package/dist/component/component-audio.js.map +1 -0
  74. package/dist/component/component2d.d.ts +9 -0
  75. package/dist/component/component2d.d.ts.map +1 -0
  76. package/dist/component/component2d.js +239 -0
  77. package/dist/component/component2d.js.map +1 -0
  78. package/dist/component/component3d.d.ts +9 -0
  79. package/dist/component/component3d.d.ts.map +1 -0
  80. package/dist/component/component3d.js +99 -0
  81. package/dist/component/component3d.js.map +1 -0
  82. package/dist/component/factory.d.ts +63 -0
  83. package/dist/component/factory.d.ts.map +1 -0
  84. package/dist/component/factory.js +313 -0
  85. package/dist/component/factory.js.map +1 -0
  86. package/dist/component/modules/aim.d.ts +30 -0
  87. package/dist/component/modules/aim.d.ts.map +1 -0
  88. package/dist/component/modules/aim.js +39 -0
  89. package/dist/component/modules/aim.js.map +1 -0
  90. package/dist/component/modules/corners.d.ts +13 -0
  91. package/dist/component/modules/corners.d.ts.map +1 -0
  92. package/dist/component/modules/corners.js +12 -0
  93. package/dist/component/modules/corners.js.map +1 -0
  94. package/dist/component/modules/flow.d.ts +26 -0
  95. package/dist/component/modules/flow.d.ts.map +1 -0
  96. package/dist/component/modules/flow.js +55 -0
  97. package/dist/component/modules/flow.js.map +1 -0
  98. package/dist/component/modules/material.d.ts +40 -0
  99. package/dist/component/modules/material.d.ts.map +1 -0
  100. package/dist/component/modules/material.js +75 -0
  101. package/dist/component/modules/material.js.map +1 -0
  102. package/dist/component/modules/paint.d.ts +71 -0
  103. package/dist/component/modules/paint.d.ts.map +1 -0
  104. package/dist/component/modules/paint.js +106 -0
  105. package/dist/component/modules/paint.js.map +1 -0
  106. package/dist/component/modules/shapes.d.ts +31 -0
  107. package/dist/component/modules/shapes.d.ts.map +1 -0
  108. package/dist/component/modules/shapes.js +43 -0
  109. package/dist/component/modules/shapes.js.map +1 -0
  110. package/dist/component/modules/text-layout.d.ts +26 -0
  111. package/dist/component/modules/text-layout.d.ts.map +1 -0
  112. package/dist/component/modules/text-layout.js +57 -0
  113. package/dist/component/modules/text-layout.js.map +1 -0
  114. package/dist/component/modules/text-style.d.ts +48 -0
  115. package/dist/component/modules/text-style.d.ts.map +1 -0
  116. package/dist/component/modules/text-style.js +63 -0
  117. package/dist/component/modules/text-style.js.map +1 -0
  118. package/dist/component/modules/three-entries.d.ts +23 -0
  119. package/dist/component/modules/three-entries.d.ts.map +1 -0
  120. package/dist/component/modules/three-entries.js +41 -0
  121. package/dist/component/modules/three-entries.js.map +1 -0
  122. package/dist/component/modules/view3d.d.ts +55 -0
  123. package/dist/component/modules/view3d.d.ts.map +1 -0
  124. package/dist/component/modules/view3d.js +160 -0
  125. package/dist/component/modules/view3d.js.map +1 -0
  126. package/dist/component/timeline.d.ts +22 -0
  127. package/dist/component/timeline.d.ts.map +1 -0
  128. package/dist/component/timeline.js +128 -0
  129. package/dist/component/timeline.js.map +1 -0
  130. package/dist/component/type-def.d.ts +26 -0
  131. package/dist/component/type-def.d.ts.map +1 -0
  132. package/dist/component/type-def.js +16 -0
  133. package/dist/component/type-def.js.map +1 -0
  134. package/dist/component/types.d.ts +91 -0
  135. package/dist/component/types.d.ts.map +1 -0
  136. package/dist/component/types.js +88 -0
  137. package/dist/component/types.js.map +1 -0
  138. package/dist/component/views.d.ts +121 -0
  139. package/dist/component/views.d.ts.map +1 -0
  140. package/dist/component/views.js +413 -0
  141. package/dist/component/views.js.map +1 -0
  142. package/dist/component.d.ts +4 -5
  143. package/dist/component.d.ts.map +1 -1
  144. package/dist/component.js +3 -5
  145. package/dist/component.js.map +1 -1
  146. package/dist/document/audio.d.ts +9 -1
  147. package/dist/document/audio.d.ts.map +1 -1
  148. package/dist/document/audio.js +41 -0
  149. package/dist/document/audio.js.map +1 -1
  150. package/dist/document/builtins.d.ts.map +1 -1
  151. package/dist/document/builtins.js +9 -27
  152. package/dist/document/builtins.js.map +1 -1
  153. package/dist/document/command-traits.js +3 -0
  154. package/dist/document/command-traits.js.map +1 -1
  155. package/dist/document/diff.d.ts.map +1 -1
  156. package/dist/document/diff.js +3 -3
  157. package/dist/document/diff.js.map +1 -1
  158. package/dist/document/doc-index.d.ts.map +1 -1
  159. package/dist/document/doc-index.js +3 -3
  160. package/dist/document/doc-index.js.map +1 -1
  161. package/dist/document/node-descriptor.d.ts +6 -0
  162. package/dist/document/node-descriptor.d.ts.map +1 -1
  163. package/dist/document/node-descriptor.js.map +1 -1
  164. package/dist/document/placement.js +2 -2
  165. package/dist/document/placement.js.map +1 -1
  166. package/dist/document/registry.d.ts +6 -11
  167. package/dist/document/registry.d.ts.map +1 -1
  168. package/dist/document/registry.js +17 -17
  169. package/dist/document/registry.js.map +1 -1
  170. package/dist/document/settled-index.d.ts +49 -0
  171. package/dist/document/settled-index.d.ts.map +1 -0
  172. package/dist/document/settled-index.js +247 -0
  173. package/dist/document/settled-index.js.map +1 -0
  174. package/dist/document/timeline.d.ts +27 -1
  175. package/dist/document/timeline.d.ts.map +1 -1
  176. package/dist/document/timeline.js +98 -2
  177. package/dist/document/timeline.js.map +1 -1
  178. package/dist/experimental.d.ts +22 -0
  179. package/dist/experimental.d.ts.map +1 -0
  180. package/dist/experimental.js +20 -0
  181. package/dist/experimental.js.map +1 -0
  182. package/dist/index.d.ts +9 -0
  183. package/dist/index.d.ts.map +1 -1
  184. package/dist/index.js +9 -0
  185. package/dist/index.js.map +1 -1
  186. package/dist/nodes/audio/index.d.ts +2 -2
  187. package/dist/nodes/audio/index.d.ts.map +1 -1
  188. package/dist/nodes/audio/index.js +0 -2
  189. package/dist/nodes/audio/index.js.map +1 -1
  190. package/dist/nodes/audio/sound-node.d.ts +2 -1
  191. package/dist/nodes/audio/sound-node.d.ts.map +1 -1
  192. package/dist/nodes/audio/sound-node.js +3 -0
  193. package/dist/nodes/audio/sound-node.js.map +1 -1
  194. package/dist/nodes/index.d.ts +39 -27
  195. package/dist/nodes/index.d.ts.map +1 -1
  196. package/dist/nodes/index.js +16 -30
  197. package/dist/nodes/index.js.map +1 -1
  198. package/dist/nodes/node/node.d.ts +7 -1
  199. package/dist/nodes/node/node.d.ts.map +1 -1
  200. package/dist/nodes/node/node.js +23 -8
  201. package/dist/nodes/node/node.js.map +1 -1
  202. package/dist/nodes/root/canvas2d-node.d.ts +2 -1
  203. package/dist/nodes/root/canvas2d-node.d.ts.map +1 -1
  204. package/dist/nodes/root/canvas2d-node.js +3 -0
  205. package/dist/nodes/root/canvas2d-node.js.map +1 -1
  206. package/dist/nodes/text/richtext-node.d.ts +0 -5
  207. package/dist/nodes/text/richtext-node.d.ts.map +1 -1
  208. package/dist/nodes/text/richtext-node.js +5 -71
  209. package/dist/nodes/text/richtext-node.js.map +1 -1
  210. package/dist/nodes/text/text-base.d.ts +5 -22
  211. package/dist/nodes/text/text-base.d.ts.map +1 -1
  212. package/dist/nodes/text/text-base.js +12 -363
  213. package/dist/nodes/text/text-base.js.map +1 -1
  214. package/dist/nodes/text/text-layout.d.ts +87 -0
  215. package/dist/nodes/text/text-layout.d.ts.map +1 -0
  216. package/dist/nodes/text/text-layout.js +368 -0
  217. package/dist/nodes/text/text-layout.js.map +1 -0
  218. package/dist/nodes/three/canvas3d-node.d.ts +3 -1
  219. package/dist/nodes/three/canvas3d-node.d.ts.map +1 -1
  220. package/dist/nodes/three/canvas3d-node.js +6 -0
  221. package/dist/nodes/three/canvas3d-node.js.map +1 -1
  222. package/dist/runtime/clip-instance.d.ts +4 -1
  223. package/dist/runtime/clip-instance.d.ts.map +1 -1
  224. package/dist/runtime/clip-instance.js +17 -3
  225. package/dist/runtime/clip-instance.js.map +1 -1
  226. package/dist/runtime/clip-store.d.ts +9 -0
  227. package/dist/runtime/clip-store.d.ts.map +1 -1
  228. package/dist/runtime/clip-store.js +78 -0
  229. package/dist/runtime/clip-store.js.map +1 -1
  230. package/dist/runtime/node-picking.d.ts.map +1 -1
  231. package/dist/runtime/node-picking.js +6 -7
  232. package/dist/runtime/node-picking.js.map +1 -1
  233. package/dist/runtime/node-picking3d.d.ts +11 -4
  234. package/dist/runtime/node-picking3d.d.ts.map +1 -1
  235. package/dist/runtime/node-picking3d.js +5 -0
  236. package/dist/runtime/node-picking3d.js.map +1 -1
  237. package/dist/runtime/text-geometry.d.ts.map +1 -1
  238. package/dist/runtime/text-geometry.js +7 -3
  239. package/dist/runtime/text-geometry.js.map +1 -1
  240. package/dist/sdk/index.d.ts +35 -14
  241. package/dist/sdk/index.d.ts.map +1 -1
  242. package/dist/sdk/index.js +47 -42
  243. package/dist/sdk/index.js.map +1 -1
  244. package/dist/tween/command.d.ts +12 -0
  245. package/dist/tween/command.d.ts.map +1 -1
  246. package/dist/tween/command.js +14 -0
  247. package/dist/tween/command.js.map +1 -1
  248. package/package.json +6 -1
  249. package/dist/browser/chunks/chunk-FUZVFT3W.js +0 -18
  250. package/dist/browser/chunks/chunk-FUZVFT3W.js.map +0 -7
  251. package/dist/browser/chunks/chunk-QG6C23IJ.js +0 -3
@@ -1,3 +0,0 @@
1
- function at(t,n,e){return t+(n-t)*e}function qe(t,n,e){let o=t!==0?1/t:0,r=n!==0?1/n:0,c=o+(r-o)*e;return c!==0?1/c:0}function m(t,n,e){return{x:at(t.x,n.x,e),y:at(t.y,n.y,e)}}var Xe={resolve:t=>t,lerp:m};var Ft=new Map([["aliceblue",[.941,.973,1,1]],["antiquewhite",[.98,.922,.843,1]],["aqua",[0,1,1,1]],["aquamarine",[.498,1,.831,1]],["azure",[.941,1,1,1]],["beige",[.961,.961,.863,1]],["bisque",[1,.894,.769,1]],["black",[0,0,0,1]],["blanchedalmond",[1,.922,.804,1]],["blue",[0,0,1,1]],["blueviolet",[.541,.169,.886,1]],["brown",[.647,.165,.165,1]],["burlywood",[.871,.722,.529,1]],["cadetblue",[.373,.62,.627,1]],["chartreuse",[.498,1,0,1]],["chocolate",[.824,.412,.118,1]],["coral",[1,.498,.314,1]],["cornflowerblue",[.392,.584,.929,1]],["cornsilk",[1,.973,.863,1]],["crimson",[.863,.078,.235,1]],["cyan",[0,1,1,1]],["darkblue",[0,0,.545,1]],["darkcyan",[0,.545,.545,1]],["darkgoldenrod",[.722,.525,.043,1]],["darkgray",[.663,.663,.663,1]],["darkgreen",[0,.392,0,1]],["darkgrey",[.663,.663,.663,1]],["darkkhaki",[.741,.718,.42,1]],["darkmagenta",[.545,0,.545,1]],["darkolivegreen",[.333,.42,.184,1]],["darkorange",[1,.549,0,1]],["darkorchid",[.6,.196,.8,1]],["darkred",[.545,0,0,1]],["darksalmon",[.914,.588,.478,1]],["darkseagreen",[.561,.737,.561,1]],["darkslateblue",[.282,.239,.545,1]],["darkslategray",[.184,.31,.31,1]],["darkslategrey",[.184,.31,.31,1]],["darkturquoise",[0,.808,.82,1]],["darkviolet",[.58,0,.827,1]],["deeppink",[1,.078,.576,1]],["deepskyblue",[0,.749,1,1]],["dimgray",[.412,.412,.412,1]],["dimgrey",[.412,.412,.412,1]],["dodgerblue",[.118,.565,1,1]],["firebrick",[.698,.133,.133,1]],["floralwhite",[1,.98,.941,1]],["forestgreen",[.133,.545,.133,1]],["fuchsia",[1,0,1,1]],["gainsboro",[.863,.863,.863,1]],["ghostwhite",[.973,.973,1,1]],["gold",[1,.843,0,1]],["goldenrod",[.855,.647,.125,1]],["gray",[.502,.502,.502,1]],["green",[0,.502,0,1]],["greenyellow",[.678,1,.184,1]],["grey",[.502,.502,.502,1]],["honeydew",[.941,1,.941,1]],["hotpink",[1,.412,.706,1]],["indianred",[.804,.361,.361,1]],["indigo",[.294,0,.51,1]],["ivory",[1,1,.941,1]],["khaki",[.941,.902,.549,1]],["lavender",[.902,.902,.98,1]],["lavenderblush",[1,.941,.961,1]],["lawngreen",[.486,.988,0,1]],["lemonchiffon",[1,.98,.804,1]],["lightblue",[.678,.847,.902,1]],["lightcoral",[.941,.502,.502,1]],["lightcyan",[.878,1,1,1]],["lightgoldenrodyellow",[.98,.98,.824,1]],["lightgray",[.827,.827,.827,1]],["lightgreen",[.565,.933,.565,1]],["lightgrey",[.827,.827,.827,1]],["lightpink",[1,.714,.757,1]],["lightsalmon",[1,.627,.478,1]],["lightseagreen",[.125,.698,.667,1]],["lightskyblue",[.529,.808,.98,1]],["lightslategray",[.467,.533,.6,1]],["lightslategrey",[.467,.533,.6,1]],["lightsteelblue",[.69,.769,.871,1]],["lightyellow",[1,1,.878,1]],["lime",[0,1,0,1]],["limegreen",[.196,.804,.196,1]],["linen",[.98,.941,.902,1]],["magenta",[1,0,1,1]],["maroon",[.502,0,0,1]],["mediumaquamarine",[.4,.804,.667,1]],["mediumblue",[0,0,.804,1]],["mediumorchid",[.729,.333,.827,1]],["mediumpurple",[.576,.439,.859,1]],["mediumseagreen",[.235,.702,.443,1]],["mediumslateblue",[.482,.408,.933,1]],["mediumspringgreen",[0,.98,.604,1]],["mediumturquoise",[.282,.82,.8,1]],["mediumvioletred",[.78,.082,.522,1]],["midnightblue",[.098,.098,.439,1]],["mintcream",[.961,1,.98,1]],["mistyrose",[1,.894,.882,1]],["moccasin",[1,.894,.71,1]],["navajowhite",[1,.871,.678,1]],["navy",[0,0,.502,1]],["oldlace",[.992,.961,.902,1]],["olive",[.502,.502,0,1]],["olivedrab",[.42,.557,.137,1]],["orange",[1,.647,0,1]],["orangered",[1,.271,0,1]],["orchid",[.855,.439,.839,1]],["palegoldenrod",[.933,.91,.667,1]],["palegreen",[.596,.984,.596,1]],["paleturquoise",[.686,.933,.933,1]],["palevioletred",[.859,.439,.576,1]],["papayawhip",[1,.937,.835,1]],["peachpuff",[1,.855,.725,1]],["peru",[.804,.522,.247,1]],["pink",[1,.753,.796,1]],["plum",[.867,.627,.867,1]],["powderblue",[.69,.878,.902,1]],["purple",[.502,0,.502,1]],["rebeccapurple",[.4,.2,.6,1]],["red",[1,0,0,1]],["rosybrown",[.737,.561,.561,1]],["royalblue",[.255,.412,.882,1]],["saddlebrown",[.545,.271,.075,1]],["salmon",[.98,.502,.447,1]],["sandybrown",[.957,.643,.376,1]],["seagreen",[.18,.545,.341,1]],["seashell",[1,.961,.933,1]],["sienna",[.627,.322,.176,1]],["silver",[.753,.753,.753,1]],["skyblue",[.529,.808,.922,1]],["slateblue",[.416,.353,.804,1]],["slategray",[.439,.502,.565,1]],["slategrey",[.439,.502,.565,1]],["snow",[1,.98,.98,1]],["springgreen",[0,1,.498,1]],["steelblue",[.275,.51,.706,1]],["tan",[.824,.706,.549,1]],["teal",[0,.502,.502,1]],["thistle",[.847,.749,.847,1]],["tomato",[1,.388,.278,1]],["transparent",[0,0,0,0]],["turquoise",[.251,.878,.816,1]],["violet",[.933,.51,.933,1]],["wheat",[.961,.871,.702,1]],["white",[1,1,1,1]],["whitesmoke",[.961,.961,.961,1]],["yellow",[1,1,0,1]],["yellowgreen",[.604,.804,.196,1]]]);function lt(t){return t=Math.max(0,Math.min(1,t)),t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function Et(t,n,e,o){return[lt(t),lt(n),lt(e),o]}function Rn(t,n,e){return[3.2404542*t-1.5371385*n-.4985314*e,-.969266*t+1.8760108*n+.041556*e,.0556434*t-.2040259*n+1.0572252*e]}function L(t){let n=t.lastIndexOf("/"),e,o=t;n!==-1&&(e=t.slice(n+1).trim(),o=t.slice(0,n));let r=o.trim().split(/[\s,]+/).filter(Boolean);if(r.length===4&&e===void 0&&(e=r.pop()),r.length!==3)return null;let c=e===void 0?1:Fn(e);return Number.isFinite(c)?{tokens:r,alpha:c}:null}function Fn(t){return t.endsWith("%")?Number(t.slice(0,-1))/100:Number(t)}function N(t,n,e=1){return t.endsWith("%")?Number(t.slice(0,-1))/100*n:Number(t)/e}var En={deg:1,grad:.9,rad:180/Math.PI,turn:360};function ht(t){let n=t.match(/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(deg|grad|rad|turn)?$/);return n?Number(n[1])*En[n[2]??"deg"]:NaN}function $(t){return t.every(Number.isFinite)?t:null}var O=globalThis;O.__msThemeMap||(O.__msThemeMap=new Map);var ft=O.__msThemeMap;O.__msTypographyMap||(O.__msTypographyMap=new Map);var pt=O.__msTypographyMap;function qt(t,n,e){if(t)for(let[o,r]of Object.entries(t)){let c=n?`${n}-${o}`:o;if(r!=null&&!Array.isArray(r)&&typeof r=="object")qt(r,c,e);else{let s=r;e.set(c.toLowerCase(),Array.isArray(s)?s:xt(s))}}}function je(t={}){let n=t??{};if(ft.clear(),pt.clear(),qt(n.colors,"",ft),n.typography)for(let[e,o]of Object.entries(n.typography))pt.set(e.toLowerCase(),o)}function De(t){return pt.get(t.toLowerCase())}function qn(t){return ft.get(t)??Ft.get(t)??null}function vn(t){if(!t.startsWith("#"))return null;let n=t.slice(1);if(!/^[0-9a-f]+$/.test(n))return null;(n.length===3||n.length===4)&&(n=n.split("").map(o=>o+o).join(""));let e=parseInt(n,16);return n.length===6?[(e>>16&255)/255,(e>>8&255)/255,(e&255)/255,1]:n.length===8?[(e>>>24)/255,(e>>16&255)/255,(e>>8&255)/255,(e&255)/255]:null}function Yn(t){let n=t.match(/^rgba?\s*\((.+)\)/);if(!n)return null;let e=L(n[1]);if(!e)return null;let[o,r,c]=e.tokens.map(s=>N(s,1,255));return $([o,r,c,e.alpha])}function Xn(t){let n=t.match(/^hsla?\s*\((.+)\)/);if(!n)return null;let e=L(n[1]);if(!e)return null;let o=ht(e.tokens[0]),r=parseFloat(e.tokens[1])/100,c=parseFloat(e.tokens[2])/100,s=a=>((a+o/30)%12+12)%12,u=r*Math.min(c,1-c),i=a=>c-u*Math.max(-1,Math.min(s(a)-3,Math.min(9-s(a),1)));return $([i(0),i(8),i(4),e.alpha])}function zn(t){let n=t.match(/^lab\s*\((.+)\)/);if(!n)return null;let e=L(n[1]);if(!e)return null;let o=parseFloat(e.tokens[0]),r=parseFloat(e.tokens[1]),c=parseFloat(e.tokens[2]);return $(vt(o,r,c,e.alpha))}function Un(t){let n=t.match(/^lch\s*\((.+)\)/);if(!n)return null;let e=L(n[1]);if(!e)return null;let o=parseFloat(e.tokens[0]),r=parseFloat(e.tokens[1]),c=ht(e.tokens[2])*(Math.PI/180);return $(vt(o,r*Math.cos(c),r*Math.sin(c),e.alpha))}function Bn(t){let n=t.match(/^oklab\s*\((.+)\)/);if(!n)return null;let e=L(n[1]);if(!e)return null;let[o,r,c]=[N(e.tokens[0],1),N(e.tokens[1],.4),N(e.tokens[2],.4)];return $(Yt(o,r,c,e.alpha))}function jn(t){let n=t.match(/^oklch\s*\((.+)\)/);if(!n)return null;let e=L(n[1]);if(!e)return null;let o=N(e.tokens[0],1),r=N(e.tokens[1],.4),c=ht(e.tokens[2])*(Math.PI/180);return $(Yt(o,r*Math.cos(c),r*Math.sin(c),e.alpha))}function vt(t,n,e,o){let s=(t+16)/116,u=n/500+s,i=s-e/200,a=(u**3>.008856?u**3:(116*u-16)/903.3)*.95047,l=t>903.3*.008856?((t+16)/116)**3:t/903.3,p=(i**3>.008856?i**3:(116*i-16)/903.3)*1.08883,[h,x,f]=Rn(a,l,p);return Et(h,x,f,o)}function Yt(t,n,e,o){let r=t+.3963377774*n+.2158037573*e,c=t-.1055613458*n-.0638541728*e,s=t-.0894841775*n-1.291485548*e,u=r**3,i=c**3,a=s**3;return Et(4.0767416621*u-3.3077115913*i+.2309699292*a,-1.2684380046*u+2.6097574011*i-.3413193965*a,-.0041960863*u-.7034186147*i+1.6956065236*a,o)}function Dn(t){if(t.includes("("))return{color:t,opacity:1};let n=t.match(/^(.*[^/])\/\s*([\d.]+)%?$/);if(!n)return{color:t,opacity:1};let e=parseFloat(n[2]);return Number.isFinite(e)?{color:n[1].trim(),opacity:Math.max(0,Math.min(1,e/100))}:{color:t,opacity:1}}function xt(t){let{color:n,opacity:e}=Dn(t.trim().toLowerCase()),o=qn(n)??vn(n)??Yn(n)??Xn(n)??zn(n)??Un(n)??Bn(n)??jn(n)??(console.warn(`[Motion Engine] Unsupported color format: "${t}". Defaulting to black.`),[0,0,0,1]);return e!==1?[o[0],o[1],o[2],o[3]*e]:o}function T(t,n){let e=n.x-t.x,o=n.y-t.y;return Math.sqrt(e*e+o*o)}function _(t,n,e,o,r){let c=1-t;return c*c*c*n+3*c*c*t*e+3*c*t*t*o+t*t*t*r}function Xt(t,n,e,o){let r=1-t;return r*r*n+2*r*t*e+t*t*o}function U(t,n,e,o,r){return{x:_(r,t.x,n.x,e.x,o.x),y:_(r,t.y,n.y,e.y,o.y)}}function dt(t,n,e,o){return{x:Xt(o,t.x,n.x,e.x),y:Xt(o,t.y,n.y,e.y)}}function mt(t,n){return{p0:t,c1:m(t,n,1/3),c2:m(t,n,2/3),p1:n}}function K(t,n,e){return{p0:t,c1:{x:t.x+2/3*(n.x-t.x),y:t.y+2/3*(n.y-t.y)},c2:{x:e.x+2/3*(n.x-e.x),y:e.y+2/3*(n.y-e.y)},p1:e}}function z(t,n,e,o,r){let c=m(t,n,r),s=m(n,e,r),u=m(e,o,r),i=m(c,s,r),a=m(s,u,r),l=m(i,a,r);return{left:{from:t,cp1:c,cp2:i,to:l},right:{from:l,cp1:a,cp2:u,to:o}}}function Bt(t,n,e,o,r,c){if(r===0)return z(t,n,e,o,c).left;let{right:s}=z(t,n,e,o,r),u=(c-r)/(1-r);return z(s.from,s.cp1,s.cp2,s.to,u).left}function yt(t,n,e,o){let r=m(t,n,o),c=m(n,e,o),s=m(r,c,o);return{left:{from:t,cp:r,to:s},right:{from:s,cp:c,to:e}}}function jt(t,n,e,o,r){if(o===0)return yt(t,n,e,r).left;let{right:c}=yt(t,n,e,o),s=(r-o)/(1-o);return yt(c.from,c.cp,c.to,s).left}function F(t,n,e,o){let r=-t+3*n-3*e+o,c=2*(t-2*n+e),s=n-t,u=[],i=p=>{p>0&&p<1&&u.push(p)};if(Math.abs(r)<1e-12)return Math.abs(c)>1e-12&&i(-s/c),u;let a=c*c-4*r*s;if(a<0)return u;let l=Math.sqrt(a);return i((-c+l)/(2*r)),i((-c-l)/(2*r)),u}function gt(t,n,e){let o=t-2*n+e;if(Math.abs(o)<1e-12)return[];let r=(t-n)/o;return r>0&&r<1?[r]:[]}function zt(t,n,e,o){let r=t*e+n*o,c=Math.sqrt(t*t+n*n)*Math.sqrt(e*e+o*o),s=Math.acos(Math.max(-1,Math.min(1,r/c)));return t*o-n*e<0&&(s=-s),s}function Dt(t,n,e,o,r,c,s){let u=r*Math.PI/180,i=Math.cos(u),a=Math.sin(u),l=(t.x-n.x)/2,p=(t.y-n.y)/2,h=i*l+a*p,x=-a*l+i*p,f=Math.abs(e),y=Math.abs(o),d=h*h/(f*f)+x*x/(y*y);if(d>1){let Rt=Math.sqrt(d);f*=Rt,y*=Rt}let g=f*f,b=y*y,k=h*h,C=x*x,A=Math.max(0,(g*b-g*C-b*k)/(g*C+b*k)),Y=c===s?-1:1,w=Y*Math.sqrt(A)*(f*x/y),I=Y*Math.sqrt(A)*-(y*h/f),ut=i*w-a*I+(t.x+n.x)/2,G=a*w+i*I+(t.y+n.y)/2,W=zt(1,0,(h-w)/f,(x-I)/y),X=zt((h-w)/f,(x-I)/y,(-h-w)/f,(-x-I)/y);return s===0&&X>0&&(X-=2*Math.PI),s===1&&X<0&&(X+=2*Math.PI),{cx:ut,cy:G,rx:f,ry:y,phi:u,theta1:W,dtheta:X}}function R(t,n){let e=Math.cos(t.phi),o=Math.sin(t.phi),r=Math.cos(n),c=Math.sin(n);return{x:e*t.rx*r-o*t.ry*c+t.cx,y:o*t.rx*r+e*t.ry*c+t.cy}}function Ut(t,n){let e=Math.cos(t.phi),o=Math.sin(t.phi),r=Math.cos(n),c=Math.sin(n);return{x:-t.rx*e*c-t.ry*o*r,y:-t.rx*o*c+t.ry*e*r}}function J(t,n,e){let o=e-n;if(Math.abs(o)<1e-12)return[];let r=Math.max(1,Math.ceil(Math.abs(o)/(Math.PI/2))),c=o/r,s=4/3*Math.tan(c/4),u=[];for(let i=0;i<r;i++){let a=n+c*i,l=a+c,p=R(t,a),h=R(t,l),x=Ut(t,a),f=Ut(t,l);u.push({p0:p,c1:{x:p.x+s*x.x,y:p.y+s*x.y},c2:{x:h.x-s*f.x,y:h.y-s*f.y},p1:h})}return u}function Vt(t){let n=Math.cos(t.phi),e=Math.sin(t.phi),o=Math.atan2(-t.ry*e,t.rx*n),r=Math.atan2(t.ry*n,t.rx*e);return{x:[o,o+Math.PI],y:[r,r+Math.PI]}}function Qt(t,n){let e=Math.PI*2;return((t.dtheta>=0?n-t.theta1:t.theta1-n)%e+e)%e<=Math.abs(t.dtheta)+1e-9}var Vn="MmLlHhVvCcSsQqTtAaZz";function Qn(t){return t===" "||t===","||t===" "||t===`
2
- `||t==="\r"}function B(t){return t>="0"&&t<="9"}function Zn(t){let n=0,e=()=>{for(;n<t.length&&Qn(t[n]);)n++};return{atEnd:()=>(e(),n>=t.length),takeLetter:()=>(e(),n<t.length&&Vn.includes(t[n])?t[n++]:null),hasNumber:()=>{if(e(),n>=t.length)return!1;let r=t[n];return B(r)||r==="."||r==="+"||r==="-"},takeNumber:()=>{e();let r=n;for((t[n]==="+"||t[n]==="-")&&n++;n<t.length&&B(t[n]);)n++;if(t[n]===".")for(n++;n<t.length&&B(t[n]);)n++;if(t[n]==="e"||t[n]==="E"){let s=n;if(n++,(t[n]==="+"||t[n]==="-")&&n++,n<t.length&&B(t[n]))for(;n<t.length&&B(t[n]);)n++;else n=s}if(n===r)return null;let c=Number(t.slice(r,n));return Number.isFinite(c)?c:(n=r,null)},takeFlag:()=>(e(),t[n]==="0"?(n++,0):t[n]==="1"?(n++,1):null)}}function D(t,n){return{kind:"line",from:t,to:n}}function Zt(t,n,e){return{kind:"quad",from:t,c:n,to:e}}function Gt(t,n,e,o){return{kind:"cubic",from:t,c1:n,c2:e,to:o}}function Gn(t,n,e,o,r,c,s){return e===0||o===0||t.x===n.x&&t.y===n.y?D(t,n):{kind:"arc",from:t,to:n,rx:e,ry:o,rotation:r,largeArc:c,sweep:s}}function E(t){return Dt(t.from,t.to,t.rx,t.ry,t.rotation,t.largeArc,t.sweep)}function bt(t,n){switch(t.kind){case"line":return m(t.from,t.to,n);case"quad":return dt(t.from,t.c,t.to,n);case"cubic":return U(t.from,t.c1,t.c2,t.to,n);case"arc":{let e=E(t);return R(e,e.theta1+n*e.dtheta)}}}function tt(t){let n=1/0,e=1/0,o=-1/0,r=-1/0;for(let c of t)c.x<n&&(n=c.x),c.x>o&&(o=c.x),c.y<e&&(e=c.y),c.y>r&&(r=c.y);return{minX:n,minY:e,maxX:o,maxY:r}}function Wn(t){switch(t.kind){case"line":return tt([t.from,t.to]);case"quad":{let n=e=>dt(t.from,t.c,t.to,e);return tt([t.from,t.to,...gt(t.from.x,t.c.x,t.to.x).map(n),...gt(t.from.y,t.c.y,t.to.y).map(n)])}case"cubic":{let n=e=>U(t.from,t.c1,t.c2,t.to,e);return tt([t.from,t.to,...F(t.from.x,t.c1.x,t.c2.x,t.to.x).map(n),...F(t.from.y,t.c1.y,t.c2.y,t.to.y).map(n)])}case"arc":{let n=E(t),e=[t.from,t.to],o=Vt(n);for(let r of[...o.x,...o.y])Qt(n,r)&&e.push(R(n,r));return tt(e)}}}function Wt(t){switch(t.kind){case"line":return[mt(t.from,t.to)];case"quad":return[K(t.from,t.c,t.to)];case"cubic":return[{p0:t.from,c1:t.c1,c2:t.c2,p1:t.to}];case"arc":{let n=E(t),e=J(n,n.theta1,n.theta1+n.dtheta);return e.length>0?e:[mt(t.from,t.to)]}}}function Kt(t,n,e){switch(t.kind){case"line":{let o=m(t.from,t.to,e);return[{type:"L",x:o.x,y:o.y}]}case"quad":{let o=jt(t.from,t.c,t.to,n,e);return[{type:"Q",x1:o.cp.x,y1:o.cp.y,x:o.to.x,y:o.to.y}]}case"cubic":{let o=Bt(t.from,t.c1,t.c2,t.to,n,e);return[{type:"C",x1:o.cp1.x,y1:o.cp1.y,x2:o.cp2.x,y2:o.cp2.y,x:o.to.x,y:o.to.y}]}case"arc":{let o=E(t),r=o.theta1+n*o.dtheta,c=o.theta1+e*o.dtheta,s=R(o,c);return[{type:"A",rx:o.rx,ry:o.ry,rotation:t.rotation,largeArc:Math.abs(c-r)>Math.PI?1:0,sweep:t.sweep,x:s.x,y:s.y}]}}}function Kn(t){if(!t.closed||t.segments.length===0)return null;let n=t.segments[t.segments.length-1].to;return Math.abs(n.x-t.start.x)<1e-9&&Math.abs(n.y-t.start.y)<1e-9?null:D(n,t.start)}function nt(t){let n=Kn(t);return n?[...t.segments,n]:t.segments}function Jn(t){let n=1/0,e=1/0,o=-1/0,r=-1/0,c=!1,s=u=>{c=!0,u.minX<n&&(n=u.minX),u.minY<e&&(e=u.minY),u.maxX>o&&(o=u.maxX),u.maxY>r&&(r=u.maxY)};for(let u of t){if(u.segments.length===0){s({minX:u.start.x,minY:u.start.y,maxX:u.start.x,maxY:u.start.y});continue}for(let i of u.segments)s(Wn(i))}return c?{minX:n,minY:e,maxX:o,maxY:r}:null}function te(t){let n=Zn(t),e=[],o=null;for(;!n.atEnd();){let r=n.takeLetter();if(r!==null)o=r;else{if(o===null)return e;if(o==="M")o="L";else if(o==="m")o="l";else if(o==="Z"||o==="z")return e}let c=o.toUpperCase(),s=o!==c;if(c==="Z"){e.push({type:"Z"});continue}let u=i=>{let a=[];for(let l=0;l<i;l++){let p=n.takeNumber();if(p===null)return null;a.push(p)}return a};switch(c){case"M":case"L":case"T":{let i=u(2);if(!i)return e;let a=c==="M"?"M":c==="L"?"L":"T";e.push({type:s?a.toLowerCase():a,x:i[0],y:i[1]});break}case"H":{let i=u(1);if(!i)return e;e.push({type:s?"h":"H",x:i[0]});break}case"V":{let i=u(1);if(!i)return e;e.push({type:s?"v":"V",y:i[0]});break}case"C":{let i=u(6);if(!i)return e;e.push({type:s?"c":"C",x1:i[0],y1:i[1],x2:i[2],y2:i[3],x:i[4],y:i[5]});break}case"S":case"Q":{let i=u(4);if(!i)return e;e.push(c==="S"?{type:s?"s":"S",x2:i[0],y2:i[1],x:i[2],y:i[3]}:{type:s?"q":"Q",x1:i[0],y1:i[1],x:i[2],y:i[3]});break}case"A":{let i=u(3);if(!i)return e;let a=n.takeFlag(),l=n.takeFlag();if(a===null||l===null)return e;let p=u(2);if(!p)return e;e.push({type:s?"a":"A",rx:i[0],ry:i[1],rotation:i[2],largeArc:a,sweep:l,x:p[0],y:p[1]});break}default:return e}if(!n.hasNumber()&&n.atEnd())break}return e}function q(t){return t==null?[]:typeof t=="string"?te(t):t}var j=new Map,ne=32;function P(t){if(t==null)return[];let n=j.get(t);if(n)return n;let e=ee(q(t));return j.size>=ne&&j.delete(j.keys().next().value),j.set(t,e),e}function ee(t){let n=[],e=null,o={x:0,y:0},r={x:0,y:0},c=null,s=null,u=a=>{let l={start:a,segments:[],closed:!1};return n.push(l),r=a,l},i=a=>{e||(e=u(o)),e.segments.push(a)};for(let a of t){let l=a.type!==a.type.toUpperCase(),p=(f,y)=>l?{x:o.x+f,y:o.y+y}:{x:f,y},h=null,x=null;switch(a.type){case"M":case"m":{let f=p(a.x,a.y);e=u(f),o=f;break}case"L":case"l":{let f=p(a.x,a.y);i(D(o,f)),o=f;break}case"H":case"h":{let f={x:l?o.x+a.x:a.x,y:o.y};i(D(o,f)),o=f;break}case"V":case"v":{let f={x:o.x,y:l?o.y+a.y:a.y};i(D(o,f)),o=f;break}case"C":case"c":{let f=p(a.x1,a.y1),y=p(a.x2,a.y2),d=p(a.x,a.y);i(Gt(o,f,y,d)),o=d,h=y;break}case"S":case"s":{let f=c?{x:2*o.x-c.x,y:2*o.y-c.y}:o,y=p(a.x2,a.y2),d=p(a.x,a.y);i(Gt(o,f,y,d)),o=d,h=y;break}case"Q":case"q":{let f=p(a.x1,a.y1),y=p(a.x,a.y);i(Zt(o,f,y)),o=y,x=f;break}case"T":case"t":{let f=s?{x:2*o.x-s.x,y:2*o.y-s.y}:o,y=p(a.x,a.y);i(Zt(o,f,y)),o=y,x=f;break}case"A":case"a":{let f=p(a.x,a.y);i(Gn(o,f,a.rx,a.ry,a.rotation,a.largeArc,a.sweep)),o=f;break}case"Z":case"z":{e&&(e.closed=!0,e=null),o=r;break}}c=h,s=x}return n}function Mt(t){return Jn(P(t))}function Jt(t){let n=Mt(t);return n?{width:n.maxX-n.minX,height:n.maxY-n.minY}:{width:0,height:0}}var to="";function oe(t,n){return Math.abs(t.x-n.x)<1e-6&&Math.abs(t.y-n.y)<1e-6}function re(t){t.closed=!0;let{anchors:n}=t;if(n.length<2)return;let e=n[0],o=n[n.length-1];oe(e.point,o.point)&&(e.inHandle=o.inHandle,n.pop())}var V=t=>({x:t.x,y:t.y});function ce(t){let n=[{point:V(t.start),inHandle:null,outHandle:null}],e=r=>{n[n.length-1].outHandle=V(r.c1),n.push({point:V(r.p1),inHandle:V(r.c2),outHandle:null})};for(let r of t.segments)switch(r.kind){case"line":n.push({point:V(r.to),inHandle:null,outHandle:null});break;case"cubic":e({p0:r.from,c1:r.c1,c2:r.c2,p1:r.to});break;case"quad":e(K(r.from,r.c,r.to));break;case"arc":{let c=E(r);for(let s of J(c,c.theta1,c.theta1+c.dtheta))e(s);break}}let o={anchors:n,closed:!1};return t.closed&&re(o),o}function tn(t){return P(t).map(ce).filter(n=>n.anchors.length>0)}var se=5;function M(t){if(!Number.isFinite(t))return"0";let n=Number(t.toFixed(se));return String(n===0?0:n)}function kt(t,n){return t.outHandle===null&&n.inHandle===null?{line:!0,to:n.point}:{line:!1,c1:t.outHandle??t.point,c2:n.inHandle??n.point,to:n.point}}function nn(t){let n=[];for(let{anchors:e,closed:o}of t)if(e.length!==0){n.push(`M ${M(e[0].point.x)} ${M(e[0].point.y)}`);for(let r=1;r<e.length;r++){let c=kt(e[r-1],e[r]);n.push(c.line?`L ${M(c.to.x)} ${M(c.to.y)}`:`C ${M(c.c1.x)} ${M(c.c1.y)} ${M(c.c2.x)} ${M(c.c2.y)} ${M(c.to.x)} ${M(c.to.y)}`)}if(o){if(e.length>1){let r=kt(e[e.length-1],e[0]);r.line||n.push(`C ${M(r.c1.x)} ${M(r.c1.y)} ${M(r.c2.x)} ${M(r.c2.y)} ${M(r.to.x)} ${M(r.to.y)}`)}n.push("Z")}}return n.join(" ")}var ie=t=>t;function en(t,n=ie){let e=[],o=(r,c)=>{let s=kt(r,c),u=n(s.to);if(s.line){e.push({type:"L",x:u.x,y:u.y});return}let i=n(s.c1),a=n(s.c2);e.push({type:"C",x1:i.x,y1:i.y,x2:a.x,y2:a.y,x:u.x,y:u.y})};for(let{anchors:r,closed:c}of t){if(r.length===0)continue;let s=n(r[0].point);e.push({type:"M",x:s.x,y:s.y});for(let u=1;u<r.length;u++)o(r[u-1],r[u]);if(c){if(r.length>1){let u=r[r.length-1],i=r[0];(u.outHandle!==null||i.inHandle!==null)&&o(u,i)}e.push({type:"Z"})}}return e}function Pt(t){let n=1/0,e=1/0,o=-1/0,r=-1/0,c=!1,s=i=>{c=!0,i<n&&(n=i),i>o&&(o=i)},u=i=>{c=!0,i<e&&(e=i),i>r&&(r=i)};for(let{anchors:i,closed:a}of t){for(let p of i)s(p.point.x),u(p.point.y);let l=a&&i.length>1?i.length:i.length-1;for(let p=0;p<l;p++){let h=i[p],x=i[(p+1)%i.length];if(h.outHandle===null&&x.inHandle===null)continue;let f=h.outHandle??h.point,y=x.inHandle??x.point;for(let d of F(h.point.x,f.x,y.x,x.point.x))s(_(d,h.point.x,f.x,y.x,x.point.x));for(let d of F(h.point.y,f.y,y.y,x.point.y))u(_(d,h.point.y,f.y,y.y,x.point.y))}}return c?{minX:n,minY:e,maxX:o,maxY:r}:null}function ot(t,n){return t.map(e=>({closed:e.closed,anchors:e.anchors.map(o=>({point:n(o.point),inHandle:o.inHandle?n(o.inHandle):null,outHandle:o.outHandle?n(o.outHandle):null}))}))}function on(t,n,e){let o=n.x-t.x,r=n.y-t.y,c=o*o+r*r;if(c<1e-12){let l=e.x-n.x,p=e.y-n.y;return h=>({x:h.x+l,y:h.y+p})}let s=e.x-t.x,u=e.y-t.y,i=(s*o+u*r)/c,a=(u*o-s*r)/c;return l=>{let p=l.x-t.x,h=l.y-t.y;return{x:t.x+i*p-a*h,y:t.y+a*p+i*h}}}function rn(t){return t.every(n=>n.anchors.length<2)}var Ct=1,et=Ct/2,no={minX:-et,minY:-et,maxX:et,maxY:et};function cn(t){let n=Pt(t);return n?wt(t,n):{path:t,scaleX:1,scaleY:1,centerX:0,centerY:0}}function wt(t,n){let e=n.maxX-n.minX,o=n.maxY-n.minY,r=(n.minX+n.maxX)/2,c=(n.minY+n.maxY)/2,s=e>1e-9?e/Ct:1,u=o>1e-9?o/Ct:1;return{path:ot(t,i=>({x:(i.x-r)/s,y:(i.y-c)/u})),scaleX:s,scaleY:u,centerX:r,centerY:c}}function sn(t,n){return ot(t,e=>({x:e.x+n.x,y:e.y+n.y}))}function Tt(t,n,e){if(t.outHandle===null&&n.inHandle===null)return{x:t.point.x+(n.point.x-t.point.x)*e,y:t.point.y+(n.point.y-t.point.y)*e};let o=t.outHandle??t.point,r=n.inHandle??n.point;return{x:_(e,t.point.x,o.x,r.x,n.point.x),y:_(e,t.point.y,o.y,r.y,n.point.y)}}function un(t,n,e){if(t.outHandle===null&&n.inHandle===null)return{from:t,middle:{point:Tt(t,n,e),inHandle:null,outHandle:null},to:n};let{left:o,right:r}=z(t.point,t.outHandle??t.point,n.inHandle??n.point,n.point,e);return{from:{...t,outHandle:o.cp1},middle:{point:o.to,inHandle:o.cp2,outHandle:r.cp1},to:{...n,inHandle:r.cp2}}}var an=50;function ue(t){if(t.kind==="line")return[t.from,t.to];let n=[t.from];for(let e=1;e<an;e++)n.push(bt(t,e/an));return n.push(t.to),n}function ae(t){let n=ue(t),e=[0],o=0;for(let r=1;r<n.length;r++)o+=T(n[r-1],n[r]),e.push(o);return{segment:t,points:n,cumulative:e,length:o}}function rt(t){let n=0;return{contours:t.map(o=>{let r=nt(o).map(ae),c=r.reduce((s,u)=>s+u.length,0);return n+=c,{contour:o,metrics:r,length:c}}),length:n}}function ln(t,n){let{cumulative:e,length:o}=t;if(o<=0||n<=0)return 0;if(n>=o)return 1;let r=0,c=e.length-1;for(;r<c-1;){let a=r+c>>1;e[a]<=n?r=a:c=a}let s=e[c]-e[r],u=s>0?(n-e[r])/s:0,i=e.length-1;return(r+u)/i}function fn(t){return rt(P(t)).length}function pn(t){let n=rt(P(t)),e=[],o=[],r=0;for(let u of n.contours){let i=u.metrics[0]?.segment.from??u.contour.start;e.push(i),o.push(r);for(let a of u.metrics)for(let l=1;l<a.points.length;l++)r+=T(a.points[l-1],a.points[l]),e.push(a.points[l]),o.push(r)}let c=0;return{length:r,frameAt:u=>{if(r<=0||e.length<2)return null;let i=Math.max(0,Math.min(r,u));for(o[c]>i&&(c=0);c<e.length-2&&(o[c+1]<i||o[c+1]===o[c]);)c++;let a=e[c],l=e[c+1],p=o[c],h=o[c+1]-p,x=h>0?(i-p)/h:0,f=l.x-a.x,y=l.y-a.y,d=Math.hypot(f,y),g=d>0?f/d:1,b=d>0?y/d:0;return{x:a.x+f*x,y:a.y+y*x,tx:g,ty:b}}}}function le(t){let e=[t.metrics[0]?.segment.from??t.contour.start];for(let o of t.metrics)for(let r=1;r<o.points.length;r++)e.push(o.points[r]);return e}function fe(t,n,e,o){if(t.length<2)return"";let r=n.reduce((y,d)=>y+d,0),c=r*1e-4,s=r*1e-9,u=(e%r+r)%r,i=0,a=0;for(;a+n[i]<=u&&!(n[i]===0&&u-a<=s||(a+=n[i],i=(i+1)%n.length,i===0)););let l=[],p=n[i]-(u-a),h=i%2===0,x=!0,f=null;for(let y=1;y<t.length;y++){let d=t[y-1],g=t[y],b=g.x-d.x,k=g.y-d.y,C=T(d,g);if(C===0)continue;f={point:g,x:b/C,y:k/C};let A=0;for(;A<C;){let Y=C-A;if(p>=Y){if(h){if(x){let w=A/C;l.push(`M ${d.x+w*b} ${d.y+w*k}`),x=!1}l.push(`L ${g.x} ${g.y}`)}p-=Y,A=C,p<=s&&(i=(i+1)%n.length,h=!h,p=n[i],h&&(x=!0))}else{let w=(A+p)/C,I=d.x+w*b,ut=d.y+w*k;if(h){if(x){let W=A/C;l.push(`M ${d.x+W*b} ${d.y+W*k}`),x=!1}let G=p>0?0:c/C;l.push(`L ${I+G*b} ${ut+G*k}`)}A+=p,i=(i+1)%n.length,h=!h,p=n[i],h&&(x=!0)}}}if(!o&&h&&p<=s&&f){let{point:y,x:d,y:g}=f;l.push(`M ${y.x} ${y.y} L ${y.x-d*c} ${y.y-g*c}`)}return l.join(" ")}function At(t,n,e){let o=t.reduce((r,c)=>r+c,0);if(o<=0||e<=0)return null;if(!n.closed&&n.length>0&&t.length%2===0){let r=t[t.length-1],c=Math.max(1,Math.round((n.length+r)/o))*o-r;if(c>0)return n.length/c}return e/(Math.max(1,Math.round(e/o))*o)}function hn(t,n,e=0){if(!n||n.length===0)return"";let o=rt(P(t)),r=[];for(let c of o.contours){let s=At(n,{length:c.length,closed:c.contour.closed},o.length);if(s===null)return"";let u=fe(le(c),n.map(i=>i*s),e*s,c.contour.closed);u&&r.push(u)}return r.join(" ")}function xn(t,n,e){if(n===0&&e===1)return t;let o=Math.max(0,Math.min(1,n)),r=Math.max(o,Math.min(1,e));if(o===0&&r===1)return t;if(o>=r)return[];let c=rt(P(t));if(c.length===0)return t;let s=o*c.length,u=r*c.length,i=[],a=0;for(let l of c.contours){let p=!0;for(let h of l.metrics){let{segment:x,length:f}=h,y=a+f;if(f===0||y<=s||a>=u){a=y;continue}let d=a<s?ln(h,s-a):0,g=y>u?ln(h,u-a):1;if(p){let b=bt(x,d);i.push({type:"M",x:b.x,y:b.y}),p=!1}i.push(...Kt(x,d,g)),a=y}}return i}function ct(t){let n=[];for(let e of P(t)){let o=nt(e).flatMap(Wt);o.length!==0&&n.push({cubics:o.map(r=>({p0:{...r.p0},c1:{...r.c1},c2:{...r.c2},p1:{...r.p1}})),closed:e.closed})}return n}function yn(t){return t[0].p0}function pe(t,n=8){let e=0,o=t.p0;for(let r=1;r<=n;r++){let c=U(t.p0,t.c1,t.c2,t.p1,r/n);e+=T(o,c),o=c}return e}function Ht(t){let n=0,e=0;for(let o of t)n+=o.p0.x,e+=o.p0.y;return{x:n/t.length,y:e/t.length}}function he(t,n){let e=m(t.p0,t.c1,n),o=m(t.c1,t.c2,n),r=m(t.c2,t.p1,n),c=m(e,o,n),s=m(o,r,n),u=m(c,s,n);return[{p0:t.p0,c1:e,c2:c,p1:u},{p0:u,c1:s,c2:r,p1:t.p1}]}function dn(t,n){let e=t.slice();for(;e.length<n;){let o=0,r=-1;for(let u=0;u<e.length;u++){let i=pe(e[u]);i>r&&(r=i,o=u)}let[c,s]=he(e[o],.5);e.splice(o,1,c,s)}return e}function gn(t){let n=[];for(let e=t.length-1;e>=0;e--){let o=t[e];n.push({p0:o.p1,c1:o.c2,c2:o.c1,p1:o.p0})}return n}function xe(t,n){return n===0?t.slice():t.slice(n).concat(t.slice(0,n))}function St(t,n){let e=0;for(let o=0;o<t.length;o++){let r=t[o].p0.x-n[o].p0.x,c=t[o].p0.y-n[o].p0.y;e+=r*r+c*c}return e}function ye(t,n){let e=t.length,o=n,r=1/0;for(let c of[n,gn(n)])for(let s=0;s<e;s++){let u=xe(c,s),i=St(t,u);i<r&&(r=i,o=u)}return o}function de(t,n){let e=gn(n);return St(t,n)<=St(t,e)?n:e}function st(t,n){let e=[];for(let o=0;o<n;o++)e.push({p0:{...t},c1:{...t},c2:{...t},p1:{...t}});return e}function me(t,n){let e=[],o=new Array(n.length).fill(!1);for(let r of t){let c=Ht(r.cubics),s=-1,u=1/0;for(let i=0;i<n.length;i++){if(o[i])continue;let a=T(c,Ht(n[i].cubics));a<u&&(u=a,s=i)}s>=0?(o[s]=!0,e.push({from:r,to:n[s]})):e.push({from:r,to:{cubics:st(c,r.cubics.length),closed:r.closed}})}for(let r=0;r<n.length;r++){if(o[r])continue;let c=n[r],s=Ht(c.cubics);e.push({from:{cubics:st(s,c.cubics.length),closed:c.closed},to:c})}return e}function It(t,n){let e=ct(t),o=ct(n);if(e.length===0&&o.length===0)return{pairs:[]};if(e.length===0){let s=yn(o[0].cubics);e.push({cubics:st(s,1),closed:o[0].closed})}if(o.length===0){let s=yn(e[0].cubics);o.push({cubics:st(s,1),closed:e[0].closed})}return{pairs:me(e,o).map(({from:s,to:u})=>{let i=Math.max(s.cubics.length,u.cubics.length),a=dn(s.cubics,i),l=dn(u.cubics,i),p=s.closed&&u.closed;return l=p?ye(a,l):de(a,l),{from:a,to:l,closed:p}})}}function mn(t,n,e){return{p0:m(t.p0,n.p0,e),c1:m(t.c1,n.c1,e),c2:m(t.c2,n.c2,e),p1:m(t.p1,n.p1,e)}}function _t(t,n){let e=[];for(let o of t.pairs){let r=o.from.length;if(r===0)continue;let c=mn(o.from[0],o.to[0],n);e.push({type:"M",x:c.p0.x,y:c.p0.y}),e.push({type:"C",x1:c.c1.x,y1:c.c1.y,x2:c.c2.x,y2:c.c2.y,x:c.p1.x,y:c.p1.y});for(let s=1;s<r;s++){let u=mn(o.from[s],o.to[s],n);e.push({type:"C",x1:u.c1.x,y1:u.c1.y,x2:u.c2.x,y2:u.c2.y,x:u.p1.x,y:u.p1.y})}o.closed&&e.push({type:"Z"})}return e}var Q=null;function ge(t,n){if(Q&&Q.from===t&&Q.to===n)return Q.plan;let e=It(q(t),q(n));return Q={from:t,to:n,plan:e},e}function bn(t,n,e){return e<=0?t:e>=1?n:_t(ge(t,n),e)}var Mn={resolve:t=>t,lerp:bn,commands:q,contours:P,cubics:ct,anchors:tn,bounds:Mt,size:Jt,length:fn,sampler:pn,trim:xn,dash:hn,dashScale:At,plan:It,sample:_t,fromAnchors:nn,anchorCommands:en,anchorBounds:Pt,map:ot,translate:sn,endFit:on,isEmpty:rn,normalize:cn,fitToBox:wt,pointOn:Tt,split:un};var be=(t,n,e)=>Math.max(n,Math.min(t,e));function S(t){return be(t,0,1)}function it(t){return t.count===null?1/0:Math.max(0,Math.floor(t.count))+1}function go(t){return t!==void 0&&(t.count===null||t.count>=1)}function kn(t,n,e=n){return n<=0?n:t.count===null?Math.max(n,e):n*it(t)}function Cn(t,n,e){if(e<=0)return 1;let o=it(t),r=Math.min(Math.max(n,0)/e,o),c=Math.min(Math.floor(r),o-1),s=S(r-c);switch(t.direction??"normal"){case"reverse":return 1-s;case"alternate":return c%2===0?s:1-s;default:return s}}function Co(t){return typeof t?.at=="function"&&typeof t?.duration=="number"}function Me(t,n,e,o){return Nt(t,e,c=>n(o?o(S(c)):S(c)))}function Po(t,n,e){return Me({set:()=>{}},r=>(n(r),{}),t,e)}function wo(t,n,e){let o=t.duration;if(o<=0||it(n)<=1)return t;let r=kn(n,o,e),c=s=>t.at(Cn(n,S(s)*r,o));return{duration:r,at:c,_stepper(){let s=0;return{seek:u=>{s=u,c(u/r)},advance:u=>{s+=u;let i=s>=r;return c(i?1:s/r),i}}}}}function To(t,...n){let e=n.reduce((o,r)=>o+r.duration,0);return Nt(t,e,o=>{let r=o*e,c={},s=0;for(let u of n){if(r<s)break;let i=u.duration>0?(r-s)/u.duration:1;Object.assign(c,u.at(S(i))),s+=u.duration}return c})}function Ao(t,...n){let e=n.reduce((o,r)=>Math.max(o,r.duration),0);return Nt(t,e,o=>{let r=o*e,c={};for(let s of n){let u=s.duration>0?r/s.duration:1;Object.assign(c,s.at(S(u)))}return c})}function Nt(t,n,e){let o=r=>n>0?r/n:1;return{duration:n,at(r){let c=e(r);return t.set(c),c},_stepper(){let r=0;return{seek:c=>{r=c,t.set(e(o(c)))},advance:c=>{r+=c;let s=r>=n;return t.set(e(s?1:o(r))),s}}}}}var ke={pentagon:{sides:5,turn:0},hexagon:{sides:6,turn:0},octagon:{sides:8,turn:Math.PI/8}},Ce=.382,Pe=5;function we(t,n){let{width:e,height:o}=n;if(!(e>0)||!(o>0))return[];switch(t){case"rect":return[He(e,o,n)];case"ellipse":return Ie(e,o,n);case"triangle":return[v([{x:0,y:-o/2},{x:e/2,y:o/2},{x:-e/2,y:o/2}],n)];case"rightTriangle":return[v([{x:-e/2,y:-o/2},{x:e/2,y:o/2},{x:-e/2,y:o/2}],n)];case"polygon":return[v(Pn(Ot(n,5),0,e/2,o/2),n)];case"polygram":return[v(wn(Ot(n,5),Lt(n.ratio??.5),e/2,o/2),n)];case"star":return[v(Tn(wn(Ot(n,Pe),Lt(n.ratio??Ce),1,1),e,o),n)];default:{let r=ke[t];return r?[v(Tn(Pn(r.sides,r.turn,1,1),e,o),n)]:[]}}}function _o(t,n){let{width:e,height:o}=n,r=we(t,n);return!(e>0)||!(o>0)?r:Mn.map(r,c=>({x:c.x/e,y:c.y/o}))}function No(t){return Te.has(t)}var Te=new Set(["rect","ellipse","polygon","polygram","triangle","rightTriangle","pentagon","hexagon","octagon","star"]);function H(t){return{point:t,inHandle:null,outHandle:null}}function Ot(t,n){return Math.max(3,Math.round(t.sides??n))}function Lt(t){return Math.max(0,Math.min(1,t))}function Pn(t,n,e,o){let r=2*Math.PI/t,c=[];for(let s=0;s<t;s++){let u=-Math.PI/2+n+s*r;c.push({x:e*Math.cos(u),y:o*Math.sin(u)})}return c}function wn(t,n,e,o){let r=Math.PI/t,c=[];for(let s=0;s<t*2;s++){let u=-Math.PI/2+s*r,i=s%2===0?1:n;c.push({x:e*i*Math.cos(u),y:o*i*Math.sin(u)})}return c}function Tn(t,n,e){if(t.length===0)return t;let o=1/0,r=1/0,c=-1/0,s=-1/0;for(let x of t)x.x<o&&(o=x.x),x.x>c&&(c=x.x),x.y<r&&(r=x.y),x.y>s&&(s=x.y);let u=c-o,i=s-r,a=u>1e-9?n/u:1,l=i>1e-9?e/i:1,p=(o+c)/2,h=(r+s)/2;return t.map(x=>({x:(x.x-p)*a,y:(x.y-h)*l}))}function Hn(t){let n=t/2;return Math.abs(n)<1e-6?0:4/3*Math.tan(t/4)/Math.tan(n)}function v(t,n){let e=Ae(n.cornerRadius);if(t.length<3||e<=0)return{anchors:t.map(H),closed:!0};let o=n.cornerStyle??"rounded",r=[];for(let c=0;c<t.length;c++){let s=t[c],u=t[(c-1+t.length)%t.length],i=t[(c+1)%t.length],a=An(s,u),l=An(s,i);if(!a||!l){r.push(H(s));continue}let p=Math.max(-1,Math.min(1,a.x*l.x+a.y*l.y)),h=Math.acos(p);if(h<1e-6||Math.PI-h<1e-6){r.push(H(s));continue}let x=Math.min(e/Math.tan(h/2),T(s,u)/2,T(s,i)/2),f={x:s.x+a.x*x,y:s.y+a.y*x},y={x:s.x+l.x*x,y:s.y+l.y*x};if(o==="angled"){r.push(H(f),H(y));continue}let d=Hn(Math.PI-h);r.push({point:f,inHandle:null,outHandle:{x:f.x+(s.x-f.x)*d,y:f.y+(s.y-f.y)*d}},{point:y,inHandle:{x:y.x+(s.x-y.x)*d,y:y.y+(s.y-y.y)*d},outHandle:null})}return{anchors:r,closed:!0}}function An(t,n){let e=n.x-t.x,o=n.y-t.y,r=Math.hypot(e,o);return r<1e-9?null:{x:e/r,y:o/r}}function Ae(t){return t===void 0?0:typeof t=="number"?Math.max(0,t):Math.max(0,Math.min(t.topLeft,t.topRight,t.bottomLeft,t.bottomRight))}function He(t,n,e){let o=Se(e.cornerRadius,t,n),r=e.cornerStyle??"rounded",c=t/2,s=n/2,u=Hn(Math.PI/2),i=[],a=(f,y,d,g)=>{if(g<=0){i.push(H(f));return}let b={x:f.x-y.x*g,y:f.y-y.y*g},k={x:f.x+d.x*g,y:f.y+d.y*g};if(r==="angled"){i.push(H(b),H(k));return}i.push({point:b,inHandle:null,outHandle:{x:b.x+(f.x-b.x)*u,y:b.y+(f.y-b.y)*u}},{point:k,inHandle:{x:k.x+(f.x-k.x)*u,y:k.y+(f.y-k.y)*u},outHandle:null})},l={x:1,y:0},p={x:0,y:1},h={x:-1,y:0},x={x:0,y:-1};return a({x:-c,y:-s},x,l,o.topLeft),a({x:c,y:-s},l,p,o.topRight),a({x:c,y:s},p,h,o.bottomRight),a({x:-c,y:s},h,x,o.bottomLeft),{anchors:i,closed:!0}}function Se(t,n,e){let o=t===void 0?{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0}:typeof t=="number"?{topLeft:t,topRight:t,bottomLeft:t,bottomRight:t}:t,r=Math.min(n,e)/2;return{topLeft:Math.max(0,Math.min(o.topLeft,r)),topRight:Math.max(0,Math.min(o.topRight,r)),bottomLeft:Math.max(0,Math.min(o.bottomLeft,r)),bottomRight:Math.max(0,Math.min(o.bottomRight,r))}}function Ie(t,n,e){let o=t/2,r=n/2,c=Lt(e.ratio??0),s=Math.max(0,Math.min(360,e.sweep??360));if(s<=0)return[];let u=s>=360,i=((e.startAngle??0)-90)*(Math.PI/180),a=i+s*(Math.PI/180);if(u&&c<=0)return[{anchors:Z(o,r,i,a,!0),closed:!0}];if(u)return[{anchors:Z(o,r,i,a,!0),closed:!0},{anchors:Z(o*c,r*c,a,i,!0),closed:!0}];let l=Z(o,r,i,a,!1),p=c>0?Z(o*c,r*c,a,i,!1):[H({x:0,y:0})];return[{anchors:[...l,...p],closed:!0}]}function Z(t,n,e,o,r){let c=o-e,s=Math.max(1,Math.ceil(Math.abs(c)/(Math.PI/2))),u=c/s,i=4/3*Math.tan(u/4),a=[];for(let l=0;l<=s;l++){let p=e+u*l,h={x:t*Math.cos(p),y:n*Math.sin(p)},x={x:-t*Math.sin(p),y:n*Math.cos(p)},f={x:x.x*i,y:x.y*i};a.push({point:h,inHandle:l===0?null:{x:h.x-f.x,y:h.y-f.y},outHandle:l===s?null:{x:h.x+f.x,y:h.y+f.y}})}if(r&&a.length>1){let l=a.pop();a[0].inHandle=l.inHandle}return a}var $t={plain:"#.#",number:"#,##0.##",currency:"$#,##0.00",percent:"#,##0.#%"},_e={prefix:"",suffix:"",grouped:!1,minInt:1,minFrac:0,maxFrac:1,percent:!1};function On(t,n){let e=!1;for(let o of t){if(o==="'"){e=!e;continue}n(o,e)}}function Sn(t,n){let e=!1;return On(t,(o,r)=>{o===n&&!r&&(e=!0)}),e}function In(t,n){let e="",o=!1;for(let r of t){if(r==="'"){o=!o,e+=r;continue}r===n&&!o||(e+=r)}return e}function _n(t){let n="";return On(t,e=>{n+=e}),n}function Ne(t){let n=!1,e=-1;for(let o=0;o<t.length;o++){let r=t[o];if(r==="'"){if(n=!n,e>=0)return[e,o];continue}let c=!n&&"#0,.".includes(r);if(c&&e<0)e=o;else if(!c&&e>=0)return[e,o]}return e<0?null:[e,t.length]}function Oe(t){let n=Ne(t);if(!n)return _e;let e=t.slice(n[0],n[1]),o=t.slice(0,n[0]),r=t.slice(n[1]),c=Sn(o,"%")||Sn(r,"%"),s=_n(c?In(o,"%"):o),u=_n(c?In(r,"%"):r),i=e.indexOf("."),a=i<0?e:e.slice(0,i),l=i<0?"":e.slice(i+1),p=(h,x)=>h.split(x).length-1;return{prefix:s,suffix:c?`${u}%`:u,grouped:a.includes(","),minInt:Math.max(1,p(a,"0")),minFrac:p(l,"0"),maxFrac:l.length,percent:c}}var Nn=new Map;function Le(t){let n=Nn.get(t);if(n)return n;let e=Oe(t);return Nn.set(t,e),e}function $e(t){return t.replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Lo(t,n){if(!Number.isFinite(t))return"";let e=Le(n),r=(e.percent?t*100:t).toFixed(e.maxFrac),c=r.startsWith("-"),[s="0",u=""]=(c?r.slice(1):r).split("."),i=s.padStart(e.minInt,"0"),a=u;for(;a.length>e.minFrac&&a.endsWith("0");)a=a.slice(0,-1);let l=(e.grouped?$e(i):i)+(a?`.${a}`:"");return`${c&&Number(r)!==0?"-":""}${e.prefix}${l}${e.suffix}`}function Ln(t,n){if(t==="custom"){let e=n?.trim()??"";return e===""?$t.plain:e}return $t[t??"plain"]??$t.plain}var Fo=["number","currency","percent","custom"],Re=10;function Eo(t){if(t.format==="custom")return Ln("custom",t.customPattern);let n=Math.min(Re,Math.max(0,Math.round(t.fractionDigits))),e=t.grouped?"#,##0":"0",o=n>0?`.${"0".repeat(n)}`:"",r=`${e}${o}`;return t.format==="currency"?`${Fe(t.currencySymbol)}${r}`:t.format==="percent"?`${r}%`:r}function Fe(t){let n=t.replaceAll("'","");return n===""?"":`'${n}'`}function Yo(t){return typeof t=="string"?xt(t):t}function Xo(t,n,e){return[t[0]+(n[0]-t[0])*e,t[1]+(n[1]-t[1])*e,t[2]+(n[2]-t[2])*e,t[3]+(n[3]-t[3])*e]}function zo(t,n,e){return!Number.isFinite(t)||!Number.isFinite(n)?e<1?t:n:t+(n-t)*e}function Uo(t,n,e){return Math.round(t+(n-t)*e)}function Ee(t,n,e){return e<1?t:n}var Bo=Ee;function jo(t){return 90-t}function Do({orbit:t,elevation:n,distance:e}){let o=t*(Math.PI/180),r=n*(Math.PI/180),c=Math.cos(r)*e;return{x:Math.cos(o)*c,y:Math.sin(r)*e,z:Math.sin(o)*c}}function Vo(t){let n={};return t.orbit!==void 0&&(n.orbit=t.orbit),t.elevation!==void 0&&(n.elevation=t.elevation),t.zoom!==void 0&&(n.zoom=t.zoom),n}var $n="";function Zo(t){$n=t}function Go(){return $n}function Ko(t){if(t<=0)return 1;let n=Math.pow(10,Math.floor(Math.log10(t))),e=t/n;return(e<=1?1:e<=2?2:e<=5?5:10)*n}function Jo(t,n,e,o){let r=e?t*.3:0,c=Math.max(0,t-r),s=Math.max(0,n-1);if(o!==void 0)return{step:o,per:Math.max(0,c-o*s),caption:r};let u=c/(1+s/5);return{step:u/5,per:u,caption:r}}export{at as a,qe as b,m as c,Xe as d,je as e,De as f,xt as g,to as h,Ct as i,et as j,no as k,Mn as l,be as m,S as n,it as o,go as p,kn as q,Cn as r,Co as s,Me as t,Po as u,wo as v,To as w,Ao as x,Ce as y,Pe as z,we as A,_o as B,No as C,$t as D,Lo as E,Ln as F,Fo as G,Re as H,Eo as I,Yo as J,Xo as K,zo as L,Uo as M,Ee as N,Bo as O,jo as P,Do as Q,Vo as R,Zo as S,Go as T,Ko as U,Jo as V};
3
- //# sourceMappingURL=chunk-QG6C23IJ.js.map