@kolkrabbi/design-editor 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/README.md +42 -25
  2. package/dist/BufferResource-BfLgK37S.js +273 -0
  3. package/dist/CanvasPool-YNSF8hsR.js +30 -0
  4. package/dist/CanvasRenderer-Bl0rlqNq.js +2 -0
  5. package/dist/FederatedEventTarget-BJgROaRQ.js +975 -0
  6. package/dist/FilterSystem-BUrPNXx-.js +1323 -0
  7. package/dist/Geometry-C5s5KpWq.js +3805 -0
  8. package/dist/{OrbitControls-BAhLQ5d8.js → OrbitControls-Cql8Rn2i.js} +10305 -9058
  9. package/dist/RenderTargetSystem-oFwWv5IW.js +2889 -0
  10. package/dist/WebGLRenderer-CXxpVIx3.js +2 -0
  11. package/dist/WebGPURenderer-BwLEUYBa.js +2 -0
  12. package/dist/browserAll-CAzdTUbR.js +6 -0
  13. package/dist/canvasUtils-BoNfkAod.js +168 -0
  14. package/dist/chunk-3b4jIN3o.js +13 -0
  15. package/dist/design-editor.css +2 -2
  16. package/dist/design-editor.js +52017 -38760
  17. package/dist/getTextureBatchBindGroup-CNWhZRbV.js +19 -0
  18. package/dist/{host-IfZgcJFg.js → host-CVR9RL_W.js} +505 -556
  19. package/dist/{host-Cidlc8xP.js → host-be1CWhN1.js} +133 -85
  20. package/dist/init-jApIMi04.js +4 -0
  21. package/dist/phase-t_DhU5Nm.js +1719 -0
  22. package/dist/pipeline-CMpuPUaX.js +11995 -0
  23. package/dist/src-QwKcYKfv.js +4315 -0
  24. package/dist/webworkerAll-DEZhpG90.js +2 -0
  25. package/package.json +42 -31
  26. package/LICENSE +0 -21
  27. package/dist/favicon/favicon.svg +0 -12
  28. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Black.woff2 +0 -0
  29. package/dist/fonts/Right-Grotesk/PPRightGrotesk-BlackItalic.woff2 +0 -0
  30. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Bold.woff2 +0 -0
  31. package/dist/fonts/Right-Grotesk/PPRightGrotesk-BoldItalic.woff2 +0 -0
  32. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBlack.woff2 +0 -0
  33. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBlackItalic.woff2 +0 -0
  34. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBold.woff2 +0 -0
  35. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBoldItalic.woff2 +0 -0
  36. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactDark.woff2 +0 -0
  37. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactDarkItalic.woff2 +0 -0
  38. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactFine.woff2 +0 -0
  39. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactFineItalic.woff2 +0 -0
  40. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactLight.woff2 +0 -0
  41. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactLightItalic.woff2 +0 -0
  42. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactMedium.woff2 +0 -0
  43. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactMediumItalic.woff2 +0 -0
  44. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactRegular.woff2 +0 -0
  45. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactRegularItalic.woff2 +0 -0
  46. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Dark.woff2 +0 -0
  47. package/dist/fonts/Right-Grotesk/PPRightGrotesk-DarkItalic.woff2 +0 -0
  48. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Fine.woff2 +0 -0
  49. package/dist/fonts/Right-Grotesk/PPRightGrotesk-FineItalic.woff2 +0 -0
  50. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Light.woff2 +0 -0
  51. package/dist/fonts/Right-Grotesk/PPRightGrotesk-LightItalic.woff2 +0 -0
  52. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Medium.woff2 +0 -0
  53. package/dist/fonts/Right-Grotesk/PPRightGrotesk-MediumItalic.woff2 +0 -0
  54. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBlack.woff2 +0 -0
  55. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBlackItalic.woff2 +0 -0
  56. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBold.woff2 +0 -0
  57. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBoldItalic.woff2 +0 -0
  58. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowDark.woff2 +0 -0
  59. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowDarkItalic.woff2 +0 -0
  60. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowFine.woff2 +0 -0
  61. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowFineItalic.woff2 +0 -0
  62. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowLight.woff2 +0 -0
  63. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowLightItalic.woff2 +0 -0
  64. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowMedium.woff2 +0 -0
  65. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowMediumItalic.woff2 +0 -0
  66. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowRegular.woff2 +0 -0
  67. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowRegularItalic.woff2 +0 -0
  68. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Regular.woff2 +0 -0
  69. package/dist/fonts/Right-Grotesk/PPRightGrotesk-RegularItalic.woff2 +0 -0
  70. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBlack.woff2 +0 -0
  71. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBlackItalic.woff2 +0 -0
  72. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBold.woff2 +0 -0
  73. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBoldItalic.woff2 +0 -0
  74. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialDark.woff2 +0 -0
  75. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialDarkItalic.woff2 +0 -0
  76. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialFine.woff2 +0 -0
  77. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialFineItalic.woff2 +0 -0
  78. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialLight.woff2 +0 -0
  79. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialLightItalic.woff2 +0 -0
  80. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialMedium.woff2 +0 -0
  81. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialMediumItalic.woff2 +0 -0
  82. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialRegular.woff2 +0 -0
  83. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialRegularItalic.woff2 +0 -0
  84. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBlack.woff2 +0 -0
  85. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBlackItalic.woff2 +0 -0
  86. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBold.woff2 +0 -0
  87. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBoldItalic.woff2 +0 -0
  88. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallDark.woff2 +0 -0
  89. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallDarkItalic.woff2 +0 -0
  90. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallFine.woff2 +0 -0
  91. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallFineItalic.woff2 +0 -0
  92. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallLight.woff2 +0 -0
  93. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallLightItalic.woff2 +0 -0
  94. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallMedium.woff2 +0 -0
  95. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallMediumItalic.woff2 +0 -0
  96. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallRegular.woff2 +0 -0
  97. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallRegularItalic.woff2 +0 -0
  98. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBlack.woff2 +0 -0
  99. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBlackItalic.woff2 +0 -0
  100. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBold.woff2 +0 -0
  101. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBoldItalic.woff2 +0 -0
  102. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightDark.woff2 +0 -0
  103. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightDarkItalic.woff2 +0 -0
  104. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightFine.woff2 +0 -0
  105. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightFineItalic.woff2 +0 -0
  106. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightLight.woff2 +0 -0
  107. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightLightItalic.woff2 +0 -0
  108. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightMedium.woff2 +0 -0
  109. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightMediumItalic.woff2 +0 -0
  110. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightRegular.woff2 +0 -0
  111. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightRegularItalic.woff2 +0 -0
  112. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBlack.woff2 +0 -0
  113. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBlackItalic.woff2 +0 -0
  114. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBold.woff2 +0 -0
  115. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBoldItalic.woff2 +0 -0
  116. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideDark.woff2 +0 -0
  117. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideDarkItalic.woff2 +0 -0
  118. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideFine.woff2 +0 -0
  119. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideFineItalic.woff2 +0 -0
  120. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideLight.woff2 +0 -0
  121. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideLightItalic.woff2 +0 -0
  122. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideMedium.woff2 +0 -0
  123. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideMediumItalic.woff2 +0 -0
  124. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideRegular.woff2 +0 -0
  125. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideRegularItalic.woff2 +0 -0
  126. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Bold.woff2 +0 -0
  127. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-BoldItalic.woff2 +0 -0
  128. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Dark.woff2 +0 -0
  129. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Fine.woff2 +0 -0
  130. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-FineItalic.woff2 +0 -0
  131. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Light.woff2 +0 -0
  132. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Medium.woff2 +0 -0
  133. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Regular.woff2 +0 -0
  134. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-RegularItalic.woff2 +0 -0
  135. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactLight.woff2 +0 -0
  136. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactLightItalic.woff2 +0 -0
  137. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactMedium.woff2 +0 -0
  138. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactMediumItalic.woff2 +0 -0
  139. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-Regular.woff2 +0 -0
  140. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-RegularItalic.woff2 +0 -0
  141. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialBold.woff2 +0 -0
  142. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialBoldItalic.woff2 +0 -0
  143. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialLight.woff2 +0 -0
  144. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialLightItalic.woff2 +0 -0
  145. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-WideBold.woff2 +0 -0
  146. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-WideBoldItalic.woff2 +0 -0
  147. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Black.ttf +0 -0
  148. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-BlackItalic.ttf +0 -0
  149. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Bold.ttf +0 -0
  150. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-BoldItalic.ttf +0 -0
  151. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBlack.ttf +0 -0
  152. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBlackItalic.ttf +0 -0
  153. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBold.ttf +0 -0
  154. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBoldItalic.ttf +0 -0
  155. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactDark.ttf +0 -0
  156. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactDarkItalic.ttf +0 -0
  157. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactFine.ttf +0 -0
  158. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactFineItalic.ttf +0 -0
  159. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactLight.ttf +0 -0
  160. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactLightItalic.ttf +0 -0
  161. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactMedium.ttf +0 -0
  162. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactMediumItalic.ttf +0 -0
  163. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactRegular.ttf +0 -0
  164. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactRegularItalic.ttf +0 -0
  165. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Dark.ttf +0 -0
  166. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-DarkItalic.ttf +0 -0
  167. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Fine.ttf +0 -0
  168. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-FineItalic.ttf +0 -0
  169. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Light.ttf +0 -0
  170. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-LightItalic.ttf +0 -0
  171. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Medium.ttf +0 -0
  172. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-MediumItalic.ttf +0 -0
  173. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBlack.ttf +0 -0
  174. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBlackItalic.ttf +0 -0
  175. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBold.ttf +0 -0
  176. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBoldItalic.ttf +0 -0
  177. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowDark.ttf +0 -0
  178. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowDarkItalic.ttf +0 -0
  179. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowFine.ttf +0 -0
  180. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowFineItalic.ttf +0 -0
  181. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowLight.ttf +0 -0
  182. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowLightItalic.ttf +0 -0
  183. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowMedium.ttf +0 -0
  184. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowMediumItalic.ttf +0 -0
  185. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowRegular.ttf +0 -0
  186. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowRegularItalic.ttf +0 -0
  187. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Regular.ttf +0 -0
  188. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-RegularItalic.ttf +0 -0
  189. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBlack.ttf +0 -0
  190. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBlackItalic.ttf +0 -0
  191. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBold.ttf +0 -0
  192. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBoldItalic.ttf +0 -0
  193. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialDark.ttf +0 -0
  194. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialDarkItalic.ttf +0 -0
  195. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialFine.ttf +0 -0
  196. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialFineItalic.ttf +0 -0
  197. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialLight.ttf +0 -0
  198. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialLightItalic.ttf +0 -0
  199. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialMedium.ttf +0 -0
  200. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialMediumItalic.ttf +0 -0
  201. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialRegular.ttf +0 -0
  202. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialRegularItalic.ttf +0 -0
  203. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBlack.ttf +0 -0
  204. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBlackItalic.ttf +0 -0
  205. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBold.ttf +0 -0
  206. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBoldItalic.ttf +0 -0
  207. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallDark.ttf +0 -0
  208. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallDarkItalic.ttf +0 -0
  209. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallFine.ttf +0 -0
  210. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallFineItalic.ttf +0 -0
  211. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallLight.ttf +0 -0
  212. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallLightItalic.ttf +0 -0
  213. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallMedium.ttf +0 -0
  214. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallMediumItalic.ttf +0 -0
  215. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallRegular.ttf +0 -0
  216. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallRegularItalic.ttf +0 -0
  217. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBlack.ttf +0 -0
  218. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBlackItalic.ttf +0 -0
  219. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBold.ttf +0 -0
  220. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBoldItalic.ttf +0 -0
  221. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightDark.ttf +0 -0
  222. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightDarkItalic.ttf +0 -0
  223. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightFine.ttf +0 -0
  224. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightFineItalic.ttf +0 -0
  225. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightLight.ttf +0 -0
  226. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightLightItalic.ttf +0 -0
  227. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightMedium.ttf +0 -0
  228. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightMediumItalic.ttf +0 -0
  229. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightRegular.ttf +0 -0
  230. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightRegularItalic.ttf +0 -0
  231. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBlack.ttf +0 -0
  232. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBlackItalic.ttf +0 -0
  233. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBold.ttf +0 -0
  234. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBoldItalic.ttf +0 -0
  235. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideDark.ttf +0 -0
  236. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideDarkItalic.ttf +0 -0
  237. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideFine.ttf +0 -0
  238. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideFineItalic.ttf +0 -0
  239. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideLight.ttf +0 -0
  240. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideLightItalic.ttf +0 -0
  241. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideMedium.ttf +0 -0
  242. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideMediumItalic.ttf +0 -0
  243. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideRegular.ttf +0 -0
  244. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideRegularItalic.ttf +0 -0
  245. package/dist/fonts/TG/TGGullhamrarVF.ttf +0 -0
  246. package/dist/fonts/TG/TGMalromurRomanVF.ttf +0 -0
  247. package/dist/fonts/TG/TGRotVF.ttf +0 -0
  248. package/dist/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2 +0 -0
  249. package/dist/fonts/jetbrains-mono/JetBrainsMono-MediumItalic.woff2 +0 -0
  250. package/dist/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2 +0 -0
  251. package/dist/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2 +0 -0
  252. package/dist/meshPalettes-BJODHYrY.js +0 -892
@@ -0,0 +1,975 @@
1
+ import { G as e, J as t, S as n, at as r, it as i, tt as a, x as o } from "./Geometry-C5s5KpWq.js";
2
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/dom/CanvasObserver.mjs
3
+ var s = class {
4
+ constructor(e) {
5
+ this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
6
+ if (!this._canvas) return;
7
+ let e = this._canvas.getBoundingClientRect(), t = this._canvas.width, n = this._canvas.height, r = e.width / t * this._renderer.resolution, i = e.height / n * this._renderer.resolution, a = `translate(${e.left}px, ${e.top}px) scale(${r}, ${i})`;
8
+ a !== this._lastTransform && (this._domElement.style.transform = a, this._lastTransform = a);
9
+ }, this._domElement = e.domElement, this._renderer = e.renderer, !(globalThis.OffscreenCanvas && this._renderer.canvas instanceof OffscreenCanvas) && (this._canvas = this._renderer.canvas, this._attachObserver());
10
+ }
11
+ get canvas() {
12
+ return this._canvas;
13
+ }
14
+ ensureAttached() {
15
+ !this._domElement.parentNode && this._canvas.parentNode && (this._canvas.parentNode.appendChild(this._domElement), this.updateTranslation());
16
+ }
17
+ _attachObserver() {
18
+ "ResizeObserver" in globalThis ? (this._observer &&= (this._observer.disconnect(), null), this._observer = new ResizeObserver((e) => {
19
+ for (let t of e) {
20
+ if (t.target !== this._canvas) continue;
21
+ let e = this.canvas.width, n = this.canvas.height, r = t.contentRect.width / e * this._renderer.resolution, i = t.contentRect.height / n * this._renderer.resolution;
22
+ (this._lastScaleX !== r || this._lastScaleY !== i) && (this.updateTranslation(), this._lastScaleX = r, this._lastScaleY = i);
23
+ }
24
+ }), this._observer.observe(this._canvas)) : this._tickerAttached || o.shared.add(this.updateTranslation, this, n.HIGH);
25
+ }
26
+ destroy() {
27
+ this._observer ? (this._observer.disconnect(), this._observer = null) : this._tickerAttached && o.shared.remove(this.updateTranslation), this._domElement = null, this._renderer = null, this._canvas = null, this._tickerAttached = !1, this._lastTransform = "", this._lastScaleX = null, this._lastScaleY = null;
28
+ }
29
+ }, c = class e {
30
+ constructor(t) {
31
+ this.bubbles = !0, this.cancelBubble = !0, this.cancelable = !1, this.composed = !1, this.defaultPrevented = !1, this.eventPhase = e.prototype.NONE, this.propagationStopped = !1, this.propagationImmediatelyStopped = !1, this.layer = new a(), this.page = new a(), this.NONE = 0, this.CAPTURING_PHASE = 1, this.AT_TARGET = 2, this.BUBBLING_PHASE = 3, this.manager = t;
32
+ }
33
+ get layerX() {
34
+ return this.layer.x;
35
+ }
36
+ get layerY() {
37
+ return this.layer.y;
38
+ }
39
+ get pageX() {
40
+ return this.page.x;
41
+ }
42
+ get pageY() {
43
+ return this.page.y;
44
+ }
45
+ get data() {
46
+ return this;
47
+ }
48
+ composedPath() {
49
+ return this.manager && (!this.path || this.path[this.path.length - 1] !== this.target) && (this.path = this.target ? this.manager.propagationPath(this.target) : []), this.path;
50
+ }
51
+ initEvent(e, t, n) {
52
+ throw Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.");
53
+ }
54
+ initUIEvent(e, t, n, r, i) {
55
+ throw Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.");
56
+ }
57
+ preventDefault() {
58
+ this.nativeEvent instanceof Event && this.nativeEvent.cancelable && this.nativeEvent.preventDefault(), this.defaultPrevented = !0;
59
+ }
60
+ stopImmediatePropagation() {
61
+ this.propagationImmediatelyStopped = !0;
62
+ }
63
+ stopPropagation() {
64
+ this.propagationStopped = !0;
65
+ }
66
+ }, l = /iPhone/i, u = /iPod/i, d = /iPad/i, f = /\biOS-universal(?:.+)Mac\b/i, p = /\bAndroid(?:.+)Mobile\b/i, m = /Android/i, h = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, g = /Silk/i, _ = /Windows Phone/i, v = /\bWindows(?:.+)ARM\b/i, y = /BlackBerry/i, b = /BB10/i, x = /Opera Mini/i, S = /\b(CriOS|Chrome)(?:.+)Mobile/i, C = /Mobile(?:.+)Firefox\b/i, w = function(e) {
67
+ return e !== void 0 && e.platform === "MacIntel" && typeof e.maxTouchPoints == "number" && e.maxTouchPoints > 1 && typeof MSStream > "u";
68
+ };
69
+ function T(e) {
70
+ return function(t) {
71
+ return t.test(e);
72
+ };
73
+ }
74
+ function E(e) {
75
+ var t = {
76
+ userAgent: "",
77
+ platform: "",
78
+ maxTouchPoints: 0
79
+ };
80
+ !e && typeof navigator < "u" ? t = {
81
+ userAgent: navigator.userAgent,
82
+ platform: navigator.platform,
83
+ maxTouchPoints: navigator.maxTouchPoints || 0
84
+ } : typeof e == "string" ? t.userAgent = e : e && e.userAgent && (t = {
85
+ userAgent: e.userAgent,
86
+ platform: e.platform,
87
+ maxTouchPoints: e.maxTouchPoints || 0
88
+ });
89
+ var n = t.userAgent, r = n.split("[FBAN");
90
+ r[1] !== void 0 && (n = r[0]), r = n.split("Twitter"), r[1] !== void 0 && (n = r[0]);
91
+ var i = T(n), a = {
92
+ apple: {
93
+ phone: i(l) && !i(_),
94
+ ipod: i(u),
95
+ tablet: !i(l) && (i(d) || w(t)) && !i(_),
96
+ universal: i(f),
97
+ device: (i(l) || i(u) || i(d) || i(f) || w(t)) && !i(_)
98
+ },
99
+ amazon: {
100
+ phone: i(h),
101
+ tablet: !i(h) && i(g),
102
+ device: i(h) || i(g)
103
+ },
104
+ android: {
105
+ phone: !i(_) && i(h) || !i(_) && i(p),
106
+ tablet: !i(_) && !i(h) && !i(p) && (i(g) || i(m)),
107
+ device: !i(_) && (i(h) || i(g) || i(p) || i(m)) || i(/\bokhttp\b/i)
108
+ },
109
+ windows: {
110
+ phone: i(_),
111
+ tablet: i(v),
112
+ device: i(_) || i(v)
113
+ },
114
+ other: {
115
+ blackberry: i(y),
116
+ blackberry10: i(b),
117
+ opera: i(x),
118
+ firefox: i(C),
119
+ chrome: i(S),
120
+ device: i(y) || i(b) || i(x) || i(C) || i(S)
121
+ },
122
+ any: !1,
123
+ phone: !1,
124
+ tablet: !1
125
+ };
126
+ return a.any = a.apple.device || a.android.device || a.windows.device || a.other.device, a.phone = a.apple.phone || a.android.phone || a.windows.phone, a.tablet = a.apple.tablet || a.android.tablet || a.windows.tablet, a;
127
+ }
128
+ //#endregion
129
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/browser/isMobile.mjs
130
+ var D = (E.default ?? E)(globalThis.navigator), O = 9, k = 100, A = 0, j = 0, M = 2, N = 1, P = -1e3, F = -1e3, I = 2, L = class t {
131
+ constructor(e, t = D) {
132
+ this._mobileInfo = t, this.debug = !1, this._activateOnTab = !0, this._deactivateOnMouseMove = !0, this._isActive = !1, this._isMobileAccessibility = !1, this._div = null, this._pools = {}, this._renderId = 0, this._children = [], this._androidUpdateCount = 0, this._androidUpdateFrequency = 500, this._isRunningTests = !1, this._boundOnKeyDown = this._onKeyDown.bind(this), this._boundOnMouseMove = this._onMouseMove.bind(this), this._hookDiv = null, (t.tablet || t.phone) && this._createTouchHook(), this._renderer = e;
133
+ }
134
+ get isActive() {
135
+ return this._isActive;
136
+ }
137
+ get isMobileAccessibility() {
138
+ return this._isMobileAccessibility;
139
+ }
140
+ get hookDiv() {
141
+ return this._hookDiv;
142
+ }
143
+ get div() {
144
+ return this._div;
145
+ }
146
+ _createTouchHook() {
147
+ let e = document.createElement("button");
148
+ e.style.width = `${N}px`, e.style.height = `${N}px`, e.style.position = "absolute", e.style.top = `${P}px`, e.style.left = `${F}px`, e.style.zIndex = I.toString(), e.style.backgroundColor = "#FF0000", e.title = "select to enable accessibility for this content", e.addEventListener("focus", () => {
149
+ this._isMobileAccessibility = !0, this._activate(), this._destroyTouchHook();
150
+ }), document.body.appendChild(e), this._hookDiv = e;
151
+ }
152
+ _destroyTouchHook() {
153
+ this._hookDiv &&= (document.body.removeChild(this._hookDiv), null);
154
+ }
155
+ _activate() {
156
+ if (this._isActive) return;
157
+ this._isActive = !0, this._div || (this._div = document.createElement("div"), this._div.style.position = "absolute", this._div.style.top = `${A}px`, this._div.style.left = `${j}px`, this._div.style.pointerEvents = "none", this._div.style.zIndex = M.toString(), this._canvasObserver = new s({
158
+ domElement: this._div,
159
+ renderer: this._renderer
160
+ })), this._activateOnTab && globalThis.addEventListener("keydown", this._boundOnKeyDown, !1), this._deactivateOnMouseMove && globalThis.document.addEventListener("mousemove", this._boundOnMouseMove, !0);
161
+ let e = this._renderer.view.canvas;
162
+ if (e.parentNode) this._canvasObserver.ensureAttached(), this._initAccessibilitySetup();
163
+ else {
164
+ let t = new MutationObserver(() => {
165
+ e.parentNode && (t.disconnect(), this._canvasObserver.ensureAttached(), this._initAccessibilitySetup());
166
+ });
167
+ t.observe(document.body, {
168
+ childList: !0,
169
+ subtree: !0
170
+ });
171
+ }
172
+ }
173
+ _initAccessibilitySetup() {
174
+ this._renderer.runners.postrender.add(this), this._renderer.lastObjectRendered && this._updateAccessibleObjects(this._renderer.lastObjectRendered);
175
+ }
176
+ _deactivate() {
177
+ if (!(!this._isActive || this._isMobileAccessibility)) {
178
+ this._isActive = !1, globalThis.document.removeEventListener("mousemove", this._boundOnMouseMove, !0), this._activateOnTab && globalThis.addEventListener("keydown", this._boundOnKeyDown, !1), this._renderer.runners.postrender.remove(this);
179
+ for (let e of this._children) e._accessibleDiv?.parentNode && (e._accessibleDiv.parentNode.removeChild(e._accessibleDiv), e._accessibleDiv = null), e._accessibleActive = !1;
180
+ for (let e in this._pools) this._pools[e].forEach((e) => {
181
+ e.parentNode && e.parentNode.removeChild(e);
182
+ }), delete this._pools[e];
183
+ this._div?.parentNode && this._div.parentNode.removeChild(this._div), this._pools = {}, this._children = [];
184
+ }
185
+ }
186
+ _updateAccessibleObjects(e) {
187
+ if (!e.visible || !e.accessibleChildren) return;
188
+ e.accessible && (e._accessibleActive || this._addChild(e), e._renderId = this._renderId);
189
+ let t = e.children;
190
+ if (t) for (let e = 0; e < t.length; e++) this._updateAccessibleObjects(t[e]);
191
+ }
192
+ init(e) {
193
+ let n = { accessibilityOptions: {
194
+ ...t.defaultOptions,
195
+ ...e?.accessibilityOptions || {}
196
+ } };
197
+ this.debug = n.accessibilityOptions.debug, this._activateOnTab = n.accessibilityOptions.activateOnTab, this._deactivateOnMouseMove = n.accessibilityOptions.deactivateOnMouseMove, n.accessibilityOptions.enabledByDefault && this._activate(), this._renderer.runners.postrender.remove(this);
198
+ }
199
+ postrender() {
200
+ let t = performance.now();
201
+ if (this._mobileInfo.android.device && t < this._androidUpdateCount || (this._androidUpdateCount = t + this._androidUpdateFrequency, (!this._renderer.renderingToScreen || !this._renderer.view.canvas) && !this._isRunningTests)) return;
202
+ let n = /* @__PURE__ */ new Set();
203
+ if (this._renderer.lastObjectRendered) {
204
+ this._updateAccessibleObjects(this._renderer.lastObjectRendered);
205
+ for (let e of this._children) e._renderId === this._renderId && n.add(this._children.indexOf(e));
206
+ }
207
+ for (let t = this._children.length - 1; t >= 0; t--) {
208
+ let r = this._children[t];
209
+ n.has(t) || (r._accessibleDiv && r._accessibleDiv.parentNode && (r._accessibleDiv.parentNode.removeChild(r._accessibleDiv), this._getPool(r.accessibleType).push(r._accessibleDiv), r._accessibleDiv = null), r._accessibleActive = !1, e(this._children, t, 1));
210
+ }
211
+ this._renderer.renderingToScreen && this._canvasObserver.ensureAttached();
212
+ for (let e = 0; e < this._children.length; e++) {
213
+ let t = this._children[e];
214
+ if (!t._accessibleActive || !t._accessibleDiv) continue;
215
+ let n = t._accessibleDiv, r = t.hitArea || t.getBounds().rectangle;
216
+ if (t.hitArea) {
217
+ let e = t.worldTransform;
218
+ n.style.left = `${e.tx + r.x * e.a}px`, n.style.top = `${e.ty + r.y * e.d}px`, n.style.width = `${r.width * e.a}px`, n.style.height = `${r.height * e.d}px`;
219
+ } else this._capHitArea(r), n.style.left = `${r.x}px`, n.style.top = `${r.y}px`, n.style.width = `${r.width}px`, n.style.height = `${r.height}px`;
220
+ }
221
+ this._renderId++;
222
+ }
223
+ _updateDebugHTML(e) {
224
+ e.innerHTML = `type: ${e.type}</br> title : ${e.title}</br> tabIndex: ${e.tabIndex}`;
225
+ }
226
+ _capHitArea(e) {
227
+ e.x < 0 && (e.width += e.x, e.x = 0), e.y < 0 && (e.height += e.y, e.y = 0);
228
+ let { width: t, height: n } = this._renderer;
229
+ e.x + e.width > t && (e.width = t - e.x), e.y + e.height > n && (e.height = n - e.y);
230
+ }
231
+ _addChild(e) {
232
+ let t = this._getPool(e.accessibleType).pop();
233
+ t ? (t.innerHTML = "", t.removeAttribute("title"), t.removeAttribute("aria-label"), t.tabIndex = 0) : (e.accessibleType === "button" ? t = document.createElement("button") : (t = document.createElement(e.accessibleType), t.style.cssText = "\n color: transparent;\n pointer-events: none;\n padding: 0;\n margin: 0;\n border: 0;\n outline: 0;\n background: transparent;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n ", e.accessibleText && (t.innerText = e.accessibleText)), t.style.width = `${k}px`, t.style.height = `${k}px`, t.style.backgroundColor = this.debug ? "rgba(255,255,255,0.5)" : "transparent", t.style.position = "absolute", t.style.zIndex = M.toString(), t.style.borderStyle = "none", navigator.userAgent.toLowerCase().includes("chrome") ? t.setAttribute("aria-live", "off") : t.setAttribute("aria-live", "polite"), navigator.userAgent.match(/rv:.*Gecko\//) ? t.setAttribute("aria-relevant", "additions") : t.setAttribute("aria-relevant", "text"), t.addEventListener("click", this._onClick.bind(this)), t.addEventListener("focus", this._onFocus.bind(this)), t.addEventListener("focusout", this._onFocusOut.bind(this))), t.style.pointerEvents = e.accessiblePointerEvents, t.type = e.accessibleType, e.accessibleTitle && e.accessibleTitle !== null ? t.title = e.accessibleTitle : (!e.accessibleHint || e.accessibleHint === null) && (t.title = `container ${e.tabIndex}`), e.accessibleHint && e.accessibleHint !== null && t.setAttribute("aria-label", e.accessibleHint), e.interactive ? t.tabIndex = e.tabIndex : t.tabIndex = 0, this.debug && this._updateDebugHTML(t), e._accessibleActive = !0, e._accessibleDiv = t, t.container = e, this._children.push(e), this._div.appendChild(e._accessibleDiv);
234
+ }
235
+ _dispatchEvent(e, t) {
236
+ let { container: n } = e.target, r = this._renderer.events.rootBoundary, i = Object.assign(new c(r), { target: n });
237
+ r.rootTarget = this._renderer.lastObjectRendered, t.forEach((e) => r.dispatchEvent(i, e));
238
+ }
239
+ _onClick(e) {
240
+ this._dispatchEvent(e, [
241
+ "click",
242
+ "pointertap",
243
+ "tap"
244
+ ]);
245
+ }
246
+ _onFocus(e) {
247
+ e.target.getAttribute("aria-live") || e.target.setAttribute("aria-live", "assertive"), this._dispatchEvent(e, ["mouseover"]);
248
+ }
249
+ _onFocusOut(e) {
250
+ e.target.getAttribute("aria-live") || e.target.setAttribute("aria-live", "polite"), this._dispatchEvent(e, ["mouseout"]);
251
+ }
252
+ _onKeyDown(e) {
253
+ e.keyCode !== O || !this._activateOnTab || this._activate();
254
+ }
255
+ _onMouseMove(e) {
256
+ e.movementX === 0 && e.movementY === 0 || this._deactivate();
257
+ }
258
+ destroy() {
259
+ this._deactivate(), this._destroyTouchHook(), this._canvasObserver?.destroy(), this._canvasObserver = null, this._div = null, this._pools = null, this._children = null, this._renderer = null, this._hookDiv = null, globalThis.removeEventListener("keydown", this._boundOnKeyDown), this._boundOnKeyDown = null, globalThis.document.removeEventListener("mousemove", this._boundOnMouseMove, !0), this._boundOnMouseMove = null;
260
+ }
261
+ setAccessibilityEnabled(e) {
262
+ e ? this._activate() : this._deactivate();
263
+ }
264
+ _getPool(e) {
265
+ return this._pools[e] || (this._pools[e] = []), this._pools[e];
266
+ }
267
+ };
268
+ L.extension = {
269
+ type: [r.WebGLSystem, r.WebGPUSystem],
270
+ name: "accessibility"
271
+ }, L.defaultOptions = {
272
+ enabledByDefault: !1,
273
+ debug: !1,
274
+ activateOnTab: !0,
275
+ deactivateOnMouseMove: !0
276
+ };
277
+ var R = L, z = {
278
+ accessible: !1,
279
+ accessibleTitle: null,
280
+ accessibleHint: null,
281
+ tabIndex: 0,
282
+ accessibleType: "button",
283
+ accessibleText: null,
284
+ accessiblePointerEvents: "auto",
285
+ accessibleChildren: !0,
286
+ _accessibleActive: !1,
287
+ _accessibleDiv: null,
288
+ _renderId: -1
289
+ }, B = class {
290
+ constructor(e) {
291
+ this._attachedDomElements = [], this._renderer = e, this._renderer.runners.postrender.add(this), this._renderer.runners.init.add(this), this._domElement = document.createElement("div"), this._domElement.style.position = "absolute", this._domElement.style.top = "0", this._domElement.style.left = "0", this._domElement.style.pointerEvents = "none", this._domElement.style.zIndex = "1000";
292
+ }
293
+ init() {
294
+ this._canvasObserver = new s({
295
+ domElement: this._domElement,
296
+ renderer: this._renderer
297
+ });
298
+ }
299
+ addRenderable(e, t) {
300
+ this._attachedDomElements.includes(e) || this._attachedDomElements.push(e);
301
+ }
302
+ updateRenderable(e) {}
303
+ validateRenderable(e) {
304
+ return !0;
305
+ }
306
+ postrender() {
307
+ let e = this._attachedDomElements;
308
+ if (e.length === 0) {
309
+ this._domElement.remove();
310
+ return;
311
+ }
312
+ this._canvasObserver.ensureAttached();
313
+ for (let t = 0; t < e.length; t++) {
314
+ let n = e[t], r = n.element;
315
+ if (!n.parent || n.globalDisplayStatus < 7) r?.remove(), e.splice(t, 1), t--;
316
+ else {
317
+ this._domElement.contains(r) || (r.style.position = "absolute", r.style.pointerEvents = "auto", this._domElement.appendChild(r));
318
+ let e = n.worldTransform, t = n._anchor, i = n.width * t.x, a = n.height * t.y;
319
+ r.style.transformOrigin = `${i}px ${a}px`, r.style.transform = `matrix(${e.a}, ${e.b}, ${e.c}, ${e.d}, ${e.tx - i}, ${e.ty - a})`, r.style.opacity = n.groupAlpha.toString();
320
+ }
321
+ }
322
+ }
323
+ destroy() {
324
+ this._renderer.runners.postrender.remove(this);
325
+ for (let e = 0; e < this._attachedDomElements.length; e++) this._attachedDomElements[e].element?.remove();
326
+ this._attachedDomElements.length = 0, this._domElement.remove(), this._canvasObserver.destroy(), this._renderer = null;
327
+ }
328
+ };
329
+ B.extension = {
330
+ type: [
331
+ r.WebGLPipes,
332
+ r.WebGPUPipes,
333
+ r.CanvasPipes
334
+ ],
335
+ name: "dom"
336
+ };
337
+ var V = new class {
338
+ constructor() {
339
+ this.interactionFrequency = 10, this._deltaTime = 0, this._didMove = !1, this._tickerAdded = !1, this._pauseUpdate = !0;
340
+ }
341
+ init(e) {
342
+ this.removeTickerListener(), this.events = e, this.interactionFrequency = 10, this._deltaTime = 0, this._didMove = !1, this._tickerAdded = !1, this._pauseUpdate = !0;
343
+ }
344
+ get pauseUpdate() {
345
+ return this._pauseUpdate;
346
+ }
347
+ set pauseUpdate(e) {
348
+ this._pauseUpdate = e;
349
+ }
350
+ addTickerListener() {
351
+ this._tickerAdded || !this.domElement || (o.system.add(this._tickerUpdate, this, n.INTERACTION), this._tickerAdded = !0);
352
+ }
353
+ removeTickerListener() {
354
+ this._tickerAdded &&= (o.system.remove(this._tickerUpdate, this), !1);
355
+ }
356
+ pointerMoved() {
357
+ this._didMove = !0;
358
+ }
359
+ _update() {
360
+ if (!this.domElement || this._pauseUpdate) return;
361
+ if (this._didMove) {
362
+ this._didMove = !1;
363
+ return;
364
+ }
365
+ let e = this.events._rootPointerEvent;
366
+ this.events.supportsTouchEvents && e.pointerType === "touch" || globalThis.document.dispatchEvent(this.events.supportsPointerEvents ? new PointerEvent("pointermove", {
367
+ clientX: e.clientX,
368
+ clientY: e.clientY,
369
+ pointerType: e.pointerType,
370
+ pointerId: e.pointerId
371
+ }) : new MouseEvent("mousemove", {
372
+ clientX: e.clientX,
373
+ clientY: e.clientY
374
+ }));
375
+ }
376
+ _tickerUpdate(e) {
377
+ this._deltaTime += e.deltaTime, !(this._deltaTime < this.interactionFrequency) && (this._deltaTime = 0, this._update());
378
+ }
379
+ destroy() {
380
+ this.removeTickerListener(), this.events = null, this.domElement = null, this._deltaTime = 0, this._didMove = !1, this._tickerAdded = !1, this._pauseUpdate = !0;
381
+ }
382
+ }(), H = class extends c {
383
+ constructor() {
384
+ super(...arguments), this.client = new a(), this.movement = new a(), this.offset = new a(), this.global = new a(), this.screen = new a();
385
+ }
386
+ get clientX() {
387
+ return this.client.x;
388
+ }
389
+ get clientY() {
390
+ return this.client.y;
391
+ }
392
+ get x() {
393
+ return this.clientX;
394
+ }
395
+ get y() {
396
+ return this.clientY;
397
+ }
398
+ get movementX() {
399
+ return this.movement.x;
400
+ }
401
+ get movementY() {
402
+ return this.movement.y;
403
+ }
404
+ get offsetX() {
405
+ return this.offset.x;
406
+ }
407
+ get offsetY() {
408
+ return this.offset.y;
409
+ }
410
+ get globalX() {
411
+ return this.global.x;
412
+ }
413
+ get globalY() {
414
+ return this.global.y;
415
+ }
416
+ get screenX() {
417
+ return this.screen.x;
418
+ }
419
+ get screenY() {
420
+ return this.screen.y;
421
+ }
422
+ getLocalPosition(e, t, n) {
423
+ return e.worldTransform.applyInverse(n || this.global, t);
424
+ }
425
+ getModifierState(e) {
426
+ return "getModifierState" in this.nativeEvent && this.nativeEvent.getModifierState(e);
427
+ }
428
+ initMouseEvent(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m) {
429
+ throw Error("Method not implemented.");
430
+ }
431
+ }, U = class extends H {
432
+ constructor() {
433
+ super(...arguments), this.width = 0, this.height = 0, this.isPrimary = !1, this.persistentDeviceId = 0;
434
+ }
435
+ getCoalescedEvents() {
436
+ return this.type === "pointermove" || this.type === "mousemove" || this.type === "touchmove" ? [this] : [];
437
+ }
438
+ getPredictedEvents() {
439
+ throw Error("getPredictedEvents is not supported!");
440
+ }
441
+ }, W = class extends H {
442
+ constructor() {
443
+ super(...arguments), this.DOM_DELTA_PIXEL = 0, this.DOM_DELTA_LINE = 1, this.DOM_DELTA_PAGE = 2;
444
+ }
445
+ };
446
+ W.DOM_DELTA_PIXEL = 0, W.DOM_DELTA_LINE = 1, W.DOM_DELTA_PAGE = 2;
447
+ //#endregion
448
+ //#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/events/EventBoundary.mjs
449
+ var G = 2048, K = new a(), q = new a(), J = class {
450
+ constructor(e) {
451
+ this.dispatch = new i(), this.moveOnAll = !1, this.enableGlobalMoveEvents = !0, this.mappingState = { trackingData: {} }, this.eventPool = /* @__PURE__ */ new Map(), this._allInteractiveElements = [], this._hitElements = [], this._isPointerMoveEvent = !1, this.rootTarget = e, this.hitPruneFn = this.hitPruneFn.bind(this), this.hitTestFn = this.hitTestFn.bind(this), this.mapPointerDown = this.mapPointerDown.bind(this), this.mapPointerMove = this.mapPointerMove.bind(this), this.mapPointerOut = this.mapPointerOut.bind(this), this.mapPointerOver = this.mapPointerOver.bind(this), this.mapPointerUp = this.mapPointerUp.bind(this), this.mapPointerUpOutside = this.mapPointerUpOutside.bind(this), this.mapWheel = this.mapWheel.bind(this), this.mappingTable = {}, this.addEventMapping("pointerdown", this.mapPointerDown), this.addEventMapping("pointermove", this.mapPointerMove), this.addEventMapping("pointerout", this.mapPointerOut), this.addEventMapping("pointerleave", this.mapPointerOut), this.addEventMapping("pointerover", this.mapPointerOver), this.addEventMapping("pointerup", this.mapPointerUp), this.addEventMapping("pointerupoutside", this.mapPointerUpOutside), this.addEventMapping("wheel", this.mapWheel);
452
+ }
453
+ addEventMapping(e, t) {
454
+ this.mappingTable[e] || (this.mappingTable[e] = []), this.mappingTable[e].push({
455
+ fn: t,
456
+ priority: 0
457
+ }), this.mappingTable[e].sort((e, t) => e.priority - t.priority);
458
+ }
459
+ dispatchEvent(e, t) {
460
+ e.propagationStopped = !1, e.propagationImmediatelyStopped = !1, this.propagate(e, t), this.dispatch.emit(t || e.type, e);
461
+ }
462
+ mapEvent(e) {
463
+ if (!this.rootTarget) return;
464
+ let n = this.mappingTable[e.type];
465
+ if (n) for (let t = 0, r = n.length; t < r; t++) n[t].fn(e);
466
+ else t(`[EventBoundary]: Event mapping not defined for ${e.type}`);
467
+ }
468
+ hitTest(e, t) {
469
+ V.pauseUpdate = !0;
470
+ let n = this._isPointerMoveEvent && this.enableGlobalMoveEvents ? "hitTestMoveRecursive" : "hitTestRecursive", r = this[n](this.rootTarget, this.rootTarget.eventMode, K.set(e, t), this.hitTestFn, this.hitPruneFn);
471
+ return r && r[0];
472
+ }
473
+ propagate(e, t) {
474
+ if (!e.target) return;
475
+ let n = e.composedPath();
476
+ e.eventPhase = e.CAPTURING_PHASE;
477
+ for (let r = 0, i = n.length - 1; r < i; r++) if (e.currentTarget = n[r], this.notifyTarget(e, t), e.propagationStopped || e.propagationImmediatelyStopped) return;
478
+ if (e.eventPhase = e.AT_TARGET, e.currentTarget = e.target, this.notifyTarget(e, t), !(e.propagationStopped || e.propagationImmediatelyStopped)) {
479
+ e.eventPhase = e.BUBBLING_PHASE;
480
+ for (let r = n.length - 2; r >= 0; r--) if (e.currentTarget = n[r], this.notifyTarget(e, t), e.propagationStopped || e.propagationImmediatelyStopped) return;
481
+ }
482
+ }
483
+ all(e, t, n = this._allInteractiveElements) {
484
+ if (n.length === 0) return;
485
+ e.eventPhase = e.BUBBLING_PHASE;
486
+ let r = Array.isArray(t) ? t : [t];
487
+ for (let t = n.length - 1; t >= 0; t--) r.forEach((r) => {
488
+ e.currentTarget = n[t], this.notifyTarget(e, r);
489
+ });
490
+ }
491
+ propagationPath(e) {
492
+ let t = [e];
493
+ for (let n = 0; n < G && e !== this.rootTarget && e.parent; n++) {
494
+ if (!e.parent) throw Error("Cannot find propagation path to disconnected target");
495
+ t.push(e.parent), e = e.parent;
496
+ }
497
+ return t.reverse(), t;
498
+ }
499
+ hitTestMoveRecursive(e, t, n, r, i, a = !1) {
500
+ let o = !1;
501
+ if (this._interactivePrune(e)) return null;
502
+ if ((e.eventMode === "dynamic" || t === "dynamic") && (V.pauseUpdate = !1), e.interactiveChildren && e.children) {
503
+ let s = e.children;
504
+ for (let c = s.length - 1; c >= 0; c--) {
505
+ let l = s[c], u = this.hitTestMoveRecursive(l, this._isInteractive(t) ? t : l.eventMode, n, r, i, a || i(e, n));
506
+ if (u) {
507
+ if (u.length > 0 && !u[u.length - 1].parent) continue;
508
+ let t = e.isInteractive();
509
+ (u.length > 0 || t) && (t && this._allInteractiveElements.push(e), u.push(e)), this._hitElements.length === 0 && (this._hitElements = u), o = !0;
510
+ }
511
+ }
512
+ }
513
+ let s = this._isInteractive(t), c = e.isInteractive();
514
+ return c && c && this._allInteractiveElements.push(e), a || this._hitElements.length > 0 ? null : o ? this._hitElements : s && !i(e, n) && r(e, n) ? c ? [e] : [] : null;
515
+ }
516
+ hitTestRecursive(e, t, n, r, i) {
517
+ if (this._interactivePrune(e) || i(e, n)) return null;
518
+ if ((e.eventMode === "dynamic" || t === "dynamic") && (V.pauseUpdate = !1), e.interactiveChildren && e.children) {
519
+ let a = e.children, o = n;
520
+ for (let n = a.length - 1; n >= 0; n--) {
521
+ let s = a[n], c = this.hitTestRecursive(s, this._isInteractive(t) ? t : s.eventMode, o, r, i);
522
+ if (c) {
523
+ if (c.length > 0 && !c[c.length - 1].parent) continue;
524
+ let t = e.isInteractive();
525
+ return (c.length > 0 || t) && c.push(e), c;
526
+ }
527
+ }
528
+ }
529
+ let a = this._isInteractive(t), o = e.isInteractive();
530
+ return a && r(e, n) ? o ? [e] : [] : null;
531
+ }
532
+ _isInteractive(e) {
533
+ return e === "static" || e === "dynamic";
534
+ }
535
+ _interactivePrune(e) {
536
+ return !e || !e.visible || !e.renderable || !e.measurable || e.eventMode === "none" || e.eventMode === "passive" && !e.interactiveChildren;
537
+ }
538
+ hitPruneFn(e, t) {
539
+ if (e.hitArea && (e.worldTransform.applyInverse(t, q), !e.hitArea.contains(q.x, q.y))) return !0;
540
+ if (e.effects && e.effects.length) for (let n = 0; n < e.effects.length; n++) {
541
+ let r = e.effects[n];
542
+ if (r.containsPoint && !r.containsPoint(t, this.hitTestFn)) return !0;
543
+ }
544
+ return !1;
545
+ }
546
+ hitTestFn(e, t) {
547
+ return e.hitArea ? !0 : e?.containsPoint ? (e.worldTransform.applyInverse(t, q), e.containsPoint(q)) : !1;
548
+ }
549
+ notifyTarget(e, t) {
550
+ if (!e.currentTarget.isInteractive()) return;
551
+ t ??= e.type;
552
+ let n = `on${t}`;
553
+ e.currentTarget[n]?.(e);
554
+ let r = e.eventPhase === e.CAPTURING_PHASE || e.eventPhase === e.AT_TARGET ? `${t}capture` : t;
555
+ this._notifyListeners(e, r), e.eventPhase === e.AT_TARGET && this._notifyListeners(e, t);
556
+ }
557
+ mapPointerDown(e) {
558
+ if (!(e instanceof U)) {
559
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
560
+ return;
561
+ }
562
+ let n = this.createPointerEvent(e);
563
+ if (this.dispatchEvent(n, "pointerdown"), n.pointerType === "touch") this.dispatchEvent(n, "touchstart");
564
+ else if (n.pointerType === "mouse" || n.pointerType === "pen") {
565
+ let e = n.button === 2;
566
+ this.dispatchEvent(n, e ? "rightdown" : "mousedown");
567
+ }
568
+ let r = this.trackingData(e.pointerId);
569
+ r.pressTargetsByButton[e.button] = n.composedPath(), this.freeEvent(n);
570
+ }
571
+ mapPointerMove(e) {
572
+ if (!(e instanceof U)) {
573
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
574
+ return;
575
+ }
576
+ this._allInteractiveElements.length = 0, this._hitElements.length = 0, this._isPointerMoveEvent = !0;
577
+ let n = this.createPointerEvent(e);
578
+ this._isPointerMoveEvent = !1;
579
+ let r = n.pointerType === "mouse" || n.pointerType === "pen", i = this.trackingData(e.pointerId), a = this.findMountedTarget(i.overTargets);
580
+ if (i.overTargets?.length > 0 && a !== n.target) {
581
+ let t = e.type === "mousemove" ? "mouseout" : "pointerout", i = this.createPointerEvent(e, t, a);
582
+ if (this.dispatchEvent(i, "pointerout"), r && this.dispatchEvent(i, "mouseout"), !n.composedPath().includes(a)) {
583
+ let t = this.createPointerEvent(e, "pointerleave", a);
584
+ for (t.eventPhase = t.AT_TARGET; t.target && !n.composedPath().includes(t.target);) t.currentTarget = t.target, this.notifyTarget(t), r && this.notifyTarget(t, "mouseleave"), t.target = t.target.parent;
585
+ this.freeEvent(t);
586
+ }
587
+ this.freeEvent(i);
588
+ }
589
+ if (a !== n.target) {
590
+ let t = e.type === "mousemove" ? "mouseover" : "pointerover", i = this.clonePointerEvent(n, t);
591
+ this.dispatchEvent(i, "pointerover"), r && this.dispatchEvent(i, "mouseover");
592
+ let o = a?.parent;
593
+ for (; o && o !== this.rootTarget.parent && o !== n.target;) o = o.parent;
594
+ if (!o || o === this.rootTarget.parent) {
595
+ let e = this.clonePointerEvent(n, "pointerenter");
596
+ for (e.eventPhase = e.AT_TARGET; e.target && e.target !== a && e.target !== this.rootTarget.parent;) e.currentTarget = e.target, this.notifyTarget(e), r && this.notifyTarget(e, "mouseenter"), e.target = e.target.parent;
597
+ this.freeEvent(e);
598
+ }
599
+ this.freeEvent(i);
600
+ }
601
+ let o = [], s = this.enableGlobalMoveEvents ?? !0;
602
+ this.moveOnAll ? o.push("pointermove") : this.dispatchEvent(n, "pointermove"), s && o.push("globalpointermove"), n.pointerType === "touch" && (this.moveOnAll ? o.splice(1, 0, "touchmove") : this.dispatchEvent(n, "touchmove"), s && o.push("globaltouchmove")), r && (this.moveOnAll ? o.splice(1, 0, "mousemove") : this.dispatchEvent(n, "mousemove"), s && o.push("globalmousemove"), this.cursor = n.target?.cursor), o.length > 0 && this.all(n, o), this._allInteractiveElements.length = 0, this._hitElements.length = 0, i.overTargets = n.composedPath(), this.freeEvent(n);
603
+ }
604
+ mapPointerOver(e) {
605
+ if (!(e instanceof U)) {
606
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
607
+ return;
608
+ }
609
+ let n = this.trackingData(e.pointerId), r = this.createPointerEvent(e), i = r.pointerType === "mouse" || r.pointerType === "pen";
610
+ this.dispatchEvent(r, "pointerover"), i && this.dispatchEvent(r, "mouseover"), r.pointerType === "mouse" && (this.cursor = r.target?.cursor);
611
+ let a = this.clonePointerEvent(r, "pointerenter");
612
+ for (a.eventPhase = a.AT_TARGET; a.target && a.target !== this.rootTarget.parent;) a.currentTarget = a.target, this.notifyTarget(a), i && this.notifyTarget(a, "mouseenter"), a.target = a.target.parent;
613
+ n.overTargets = r.composedPath(), this.freeEvent(r), this.freeEvent(a);
614
+ }
615
+ mapPointerOut(e) {
616
+ if (!(e instanceof U)) {
617
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
618
+ return;
619
+ }
620
+ let n = this.trackingData(e.pointerId);
621
+ if (n.overTargets) {
622
+ let t = e.pointerType === "mouse" || e.pointerType === "pen", r = this.findMountedTarget(n.overTargets), i = this.createPointerEvent(e, "pointerout", r);
623
+ this.dispatchEvent(i), t && this.dispatchEvent(i, "mouseout");
624
+ let a = this.createPointerEvent(e, "pointerleave", r);
625
+ for (a.eventPhase = a.AT_TARGET; a.target && a.target !== this.rootTarget.parent;) a.currentTarget = a.target, this.notifyTarget(a), t && this.notifyTarget(a, "mouseleave"), a.target = a.target.parent;
626
+ n.overTargets = null, this.freeEvent(i), this.freeEvent(a);
627
+ }
628
+ this.cursor = null;
629
+ }
630
+ mapPointerUp(e) {
631
+ if (!(e instanceof U)) {
632
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
633
+ return;
634
+ }
635
+ let n = performance.now(), r = this.createPointerEvent(e);
636
+ if (this.dispatchEvent(r, "pointerup"), r.pointerType === "touch") this.dispatchEvent(r, "touchend");
637
+ else if (r.pointerType === "mouse" || r.pointerType === "pen") {
638
+ let e = r.button === 2;
639
+ this.dispatchEvent(r, e ? "rightup" : "mouseup");
640
+ }
641
+ let i = this.trackingData(e.pointerId), a = this.findMountedTarget(i.pressTargetsByButton[e.button]), o = a;
642
+ if (a && !r.composedPath().includes(a)) {
643
+ let t = a;
644
+ for (; t && !r.composedPath().includes(t);) {
645
+ if (r.currentTarget = t, this.notifyTarget(r, "pointerupoutside"), r.pointerType === "touch") this.notifyTarget(r, "touchendoutside");
646
+ else if (r.pointerType === "mouse" || r.pointerType === "pen") {
647
+ let e = r.button === 2;
648
+ this.notifyTarget(r, e ? "rightupoutside" : "mouseupoutside");
649
+ }
650
+ t = t.parent;
651
+ }
652
+ delete i.pressTargetsByButton[e.button], o = t;
653
+ }
654
+ if (o) {
655
+ let t = this.clonePointerEvent(r, "click");
656
+ t.target = o, t.path = null, i.clicksByButton[e.button] || (i.clicksByButton[e.button] = {
657
+ clickCount: 0,
658
+ target: t.target,
659
+ timeStamp: n
660
+ });
661
+ let a = i.clicksByButton[e.button];
662
+ if (a.target === t.target && n - a.timeStamp < 200 ? ++a.clickCount : a.clickCount = 1, a.target = t.target, a.timeStamp = n, t.detail = a.clickCount, t.pointerType === "mouse") {
663
+ let e = t.button === 2;
664
+ this.dispatchEvent(t, e ? "rightclick" : "click");
665
+ } else t.pointerType === "touch" && this.dispatchEvent(t, "tap");
666
+ this.dispatchEvent(t, "pointertap"), this.freeEvent(t);
667
+ }
668
+ this.freeEvent(r);
669
+ }
670
+ mapPointerUpOutside(e) {
671
+ if (!(e instanceof U)) {
672
+ t("EventBoundary cannot map a non-pointer event as a pointer event");
673
+ return;
674
+ }
675
+ let n = this.trackingData(e.pointerId), r = this.findMountedTarget(n.pressTargetsByButton[e.button]), i = this.createPointerEvent(e);
676
+ if (r) {
677
+ let t = r;
678
+ for (; t;) i.currentTarget = t, this.notifyTarget(i, "pointerupoutside"), i.pointerType === "touch" ? this.notifyTarget(i, "touchendoutside") : (i.pointerType === "mouse" || i.pointerType === "pen") && this.notifyTarget(i, i.button === 2 ? "rightupoutside" : "mouseupoutside"), t = t.parent;
679
+ delete n.pressTargetsByButton[e.button];
680
+ }
681
+ this.freeEvent(i);
682
+ }
683
+ mapWheel(e) {
684
+ if (!(e instanceof W)) {
685
+ t("EventBoundary cannot map a non-wheel event as a wheel event");
686
+ return;
687
+ }
688
+ let n = this.createWheelEvent(e);
689
+ this.dispatchEvent(n), this.freeEvent(n);
690
+ }
691
+ findMountedTarget(e) {
692
+ if (!e) return null;
693
+ let t = e[0];
694
+ for (let n = 1; n < e.length && e[n].parent === t; n++) t = e[n];
695
+ return t;
696
+ }
697
+ createPointerEvent(e, t, n) {
698
+ let r = this.allocateEvent(U);
699
+ return this.copyPointerData(e, r), this.copyMouseData(e, r), this.copyData(e, r), r.nativeEvent = e.nativeEvent, r.originalEvent = e, r.target = n ?? this.hitTest(r.global.x, r.global.y) ?? this._hitElements[0], typeof t == "string" && (r.type = t), r;
700
+ }
701
+ createWheelEvent(e) {
702
+ let t = this.allocateEvent(W);
703
+ return this.copyWheelData(e, t), this.copyMouseData(e, t), this.copyData(e, t), t.nativeEvent = e.nativeEvent, t.originalEvent = e, t.target = this.hitTest(t.global.x, t.global.y), t;
704
+ }
705
+ clonePointerEvent(e, t) {
706
+ let n = this.allocateEvent(U);
707
+ return n.nativeEvent = e.nativeEvent, n.originalEvent = e.originalEvent, this.copyPointerData(e, n), this.copyMouseData(e, n), this.copyData(e, n), n.target = e.target, n.path = e.composedPath().slice(), n.type = t ?? n.type, n;
708
+ }
709
+ copyWheelData(e, t) {
710
+ t.deltaMode = e.deltaMode, t.deltaX = e.deltaX, t.deltaY = e.deltaY, t.deltaZ = e.deltaZ;
711
+ }
712
+ copyPointerData(e, t) {
713
+ e instanceof U && t instanceof U && (t.pointerId = e.pointerId, t.width = e.width, t.height = e.height, t.isPrimary = e.isPrimary, t.pointerType = e.pointerType, t.pressure = e.pressure, t.tangentialPressure = e.tangentialPressure, t.tiltX = e.tiltX, t.tiltY = e.tiltY, t.twist = e.twist, t.persistentDeviceId = e.persistentDeviceId);
714
+ }
715
+ copyMouseData(e, t) {
716
+ e instanceof H && t instanceof H && (t.altKey = e.altKey, t.button = e.button, t.buttons = e.buttons, t.client.copyFrom(e.client), t.ctrlKey = e.ctrlKey, t.metaKey = e.metaKey, t.movement.copyFrom(e.movement), t.screen.copyFrom(e.screen), t.shiftKey = e.shiftKey, t.global.copyFrom(e.global));
717
+ }
718
+ copyData(e, t) {
719
+ t.isTrusted = e.isTrusted, t.srcElement = e.srcElement, t.timeStamp = performance.now(), t.type = e.type, t.detail = e.detail, t.view = e.view, t.which = e.which, t.layer.copyFrom(e.layer), t.page.copyFrom(e.page);
720
+ }
721
+ trackingData(e) {
722
+ return this.mappingState.trackingData[e] || (this.mappingState.trackingData[e] = {
723
+ pressTargetsByButton: {},
724
+ clicksByButton: {},
725
+ overTarget: null
726
+ }), this.mappingState.trackingData[e];
727
+ }
728
+ allocateEvent(e) {
729
+ this.eventPool.has(e) || this.eventPool.set(e, []);
730
+ let t = this.eventPool.get(e).pop() || new e(this);
731
+ return t.eventPhase = t.NONE, t.currentTarget = null, t.defaultPrevented = !1, t.path = null, t.target = null, t;
732
+ }
733
+ freeEvent(e) {
734
+ if (e.manager !== this) throw Error("It is illegal to free an event not managed by this EventBoundary!");
735
+ let t = e.constructor;
736
+ this.eventPool.has(t) || this.eventPool.set(t, []), this.eventPool.get(t).push(e);
737
+ }
738
+ _notifyListeners(e, t) {
739
+ let n = e.currentTarget._events[t];
740
+ if (n) if ("fn" in n) n.once && e.currentTarget.removeListener(t, n.fn, void 0, !0), n.fn.call(n.context, e);
741
+ else for (let r = 0, i = n.length; r < i && !e.propagationImmediatelyStopped; r++) n[r].once && e.currentTarget.removeListener(t, n[r].fn, void 0, !0), n[r].fn.call(n[r].context, e);
742
+ }
743
+ }, Y = 1, X = {
744
+ touchstart: "pointerdown",
745
+ touchend: "pointerup",
746
+ touchendoutside: "pointerupoutside",
747
+ touchmove: "pointermove",
748
+ touchcancel: "pointercancel"
749
+ }, Z = class e {
750
+ constructor(t) {
751
+ this.supportsTouchEvents = "ontouchstart" in globalThis, this.supportsPointerEvents = !!globalThis.PointerEvent, this.domElement = null, this.resolution = 1, this.renderer = t, this.rootBoundary = new J(null), V.init(this), this.autoPreventDefault = !0, this._eventsAdded = !1, this._rootPointerEvent = new U(null), this._rootWheelEvent = new W(null), this.cursorStyles = {
752
+ default: "inherit",
753
+ pointer: "pointer"
754
+ }, this.features = new Proxy({ ...e.defaultEventFeatures }, { set: (e, t, n) => (t === "globalMove" && (this.rootBoundary.enableGlobalMoveEvents = n), e[t] = n, !0) }), this._onPointerDown = this._onPointerDown.bind(this), this._onPointerMove = this._onPointerMove.bind(this), this._onPointerUp = this._onPointerUp.bind(this), this._onPointerOverOut = this._onPointerOverOut.bind(this), this.onWheel = this.onWheel.bind(this);
755
+ }
756
+ static get defaultEventMode() {
757
+ return this._defaultEventMode;
758
+ }
759
+ init(t) {
760
+ let { canvas: n, resolution: r } = this.renderer;
761
+ this.setTargetElement(n), this.resolution = r, e._defaultEventMode = t.eventMode ?? "passive", Object.assign(this.features, t.eventFeatures ?? {}), this.rootBoundary.enableGlobalMoveEvents = this.features.globalMove;
762
+ }
763
+ resolutionChange(e) {
764
+ this.resolution = e;
765
+ }
766
+ destroy() {
767
+ V.destroy(), this.setTargetElement(null), this.renderer = null, this._currentCursor = null;
768
+ }
769
+ setCursor(e) {
770
+ e ||= "default";
771
+ let t = !0;
772
+ if (globalThis.OffscreenCanvas && this.domElement instanceof OffscreenCanvas && (t = !1), this._currentCursor === e) return;
773
+ this._currentCursor = e;
774
+ let n = this.cursorStyles[e];
775
+ if (n) switch (typeof n) {
776
+ case "string":
777
+ t && (this.domElement.style.cursor = n);
778
+ break;
779
+ case "function":
780
+ n(e);
781
+ break;
782
+ case "object":
783
+ t && Object.assign(this.domElement.style, n);
784
+ break;
785
+ }
786
+ else t && typeof e == "string" && !Object.prototype.hasOwnProperty.call(this.cursorStyles, e) && (this.domElement.style.cursor = e);
787
+ }
788
+ get pointer() {
789
+ return this._rootPointerEvent;
790
+ }
791
+ _onPointerDown(e) {
792
+ if (!this.features.click) return;
793
+ this.rootBoundary.rootTarget = this.renderer.lastObjectRendered;
794
+ let t = this._normalizeToPointerData(e);
795
+ this.autoPreventDefault && t[0].isNormalized && (e.cancelable || !("cancelable" in e)) && e.preventDefault();
796
+ for (let e = 0, n = t.length; e < n; e++) {
797
+ let n = t[e], r = this._bootstrapEvent(this._rootPointerEvent, n);
798
+ this.rootBoundary.mapEvent(r);
799
+ }
800
+ this.setCursor(this.rootBoundary.cursor);
801
+ }
802
+ _onPointerMove(e) {
803
+ if (!this.features.move) return;
804
+ this.rootBoundary.rootTarget = this.renderer.lastObjectRendered, V.pointerMoved();
805
+ let t = this._normalizeToPointerData(e);
806
+ for (let e = 0, n = t.length; e < n; e++) {
807
+ let n = this._bootstrapEvent(this._rootPointerEvent, t[e]);
808
+ this.rootBoundary.mapEvent(n);
809
+ }
810
+ this.setCursor(this.rootBoundary.cursor);
811
+ }
812
+ _onPointerUp(e) {
813
+ if (!this.features.click) return;
814
+ this.rootBoundary.rootTarget = this.renderer.lastObjectRendered;
815
+ let t = e.target;
816
+ e.composedPath && e.composedPath().length > 0 && (t = e.composedPath()[0]);
817
+ let n = t === this.domElement ? "" : "outside", r = this._normalizeToPointerData(e);
818
+ for (let e = 0, t = r.length; e < t; e++) {
819
+ let t = this._bootstrapEvent(this._rootPointerEvent, r[e]);
820
+ t.type += n, this.rootBoundary.mapEvent(t);
821
+ }
822
+ this.setCursor(this.rootBoundary.cursor);
823
+ }
824
+ _onPointerOverOut(e) {
825
+ if (!this.features.click) return;
826
+ this.rootBoundary.rootTarget = this.renderer.lastObjectRendered;
827
+ let t = this._normalizeToPointerData(e);
828
+ for (let e = 0, n = t.length; e < n; e++) {
829
+ let n = this._bootstrapEvent(this._rootPointerEvent, t[e]);
830
+ this.rootBoundary.mapEvent(n);
831
+ }
832
+ this.setCursor(this.rootBoundary.cursor);
833
+ }
834
+ onWheel(e) {
835
+ if (!this.features.wheel) return;
836
+ let t = this.normalizeWheelEvent(e);
837
+ this.rootBoundary.rootTarget = this.renderer.lastObjectRendered, this.rootBoundary.mapEvent(t);
838
+ }
839
+ setTargetElement(e) {
840
+ this._removeEvents(), this.domElement = e, V.domElement = e, this._addEvents();
841
+ }
842
+ _addEvents() {
843
+ if (this._eventsAdded || !this.domElement) return;
844
+ V.addTickerListener();
845
+ let e = this.domElement.style;
846
+ e && (globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "none", e.msTouchAction = "none") : this.supportsPointerEvents && (e.touchAction = "none")), this.supportsPointerEvents ? (globalThis.document.addEventListener("pointermove", this._onPointerMove, !0), this.domElement.addEventListener("pointerdown", this._onPointerDown, !0), this.domElement.addEventListener("pointerleave", this._onPointerOverOut, !0), this.domElement.addEventListener("pointerover", this._onPointerOverOut, !0), globalThis.addEventListener("pointerup", this._onPointerUp, !0)) : (globalThis.document.addEventListener("mousemove", this._onPointerMove, !0), this.domElement.addEventListener("mousedown", this._onPointerDown, !0), this.domElement.addEventListener("mouseout", this._onPointerOverOut, !0), this.domElement.addEventListener("mouseover", this._onPointerOverOut, !0), globalThis.addEventListener("mouseup", this._onPointerUp, !0), this.supportsTouchEvents && (this.domElement.addEventListener("touchstart", this._onPointerDown, !0), this.domElement.addEventListener("touchend", this._onPointerUp, !0), this.domElement.addEventListener("touchmove", this._onPointerMove, !0))), this.domElement.addEventListener("wheel", this.onWheel, {
847
+ passive: !0,
848
+ capture: !0
849
+ }), this._eventsAdded = !0;
850
+ }
851
+ _removeEvents() {
852
+ if (!this._eventsAdded || !this.domElement) return;
853
+ V.removeTickerListener();
854
+ let e = this.domElement.style;
855
+ e && (globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "", e.msTouchAction = "") : this.supportsPointerEvents && (e.touchAction = "")), this.supportsPointerEvents ? (globalThis.document.removeEventListener("pointermove", this._onPointerMove, !0), this.domElement.removeEventListener("pointerdown", this._onPointerDown, !0), this.domElement.removeEventListener("pointerleave", this._onPointerOverOut, !0), this.domElement.removeEventListener("pointerover", this._onPointerOverOut, !0), globalThis.removeEventListener("pointerup", this._onPointerUp, !0)) : (globalThis.document.removeEventListener("mousemove", this._onPointerMove, !0), this.domElement.removeEventListener("mousedown", this._onPointerDown, !0), this.domElement.removeEventListener("mouseout", this._onPointerOverOut, !0), this.domElement.removeEventListener("mouseover", this._onPointerOverOut, !0), globalThis.removeEventListener("mouseup", this._onPointerUp, !0), this.supportsTouchEvents && (this.domElement.removeEventListener("touchstart", this._onPointerDown, !0), this.domElement.removeEventListener("touchend", this._onPointerUp, !0), this.domElement.removeEventListener("touchmove", this._onPointerMove, !0))), this.domElement.removeEventListener("wheel", this.onWheel, !0), this.domElement = null, this._eventsAdded = !1;
856
+ }
857
+ mapPositionToPoint(e, t, n) {
858
+ let r = this.domElement.isConnected ? this.domElement.getBoundingClientRect() : {
859
+ x: 0,
860
+ y: 0,
861
+ width: this.domElement.width,
862
+ height: this.domElement.height,
863
+ left: 0,
864
+ top: 0
865
+ }, i = 1 / this.resolution;
866
+ e.x = (t - r.left) * (this.domElement.width / r.width) * i, e.y = (n - r.top) * (this.domElement.height / r.height) * i;
867
+ }
868
+ _normalizeToPointerData(e) {
869
+ let t = [];
870
+ if (this.supportsTouchEvents && e instanceof TouchEvent) for (let n = 0, r = e.changedTouches.length; n < r; n++) {
871
+ let r = e.changedTouches[n];
872
+ r.button === void 0 && (r.button = 0), r.buttons === void 0 && (r.buttons = 1), r.isPrimary === void 0 && (r.isPrimary = e.touches.length === 1 && e.type === "touchstart"), r.width === void 0 && (r.width = r.radiusX || 1), r.height === void 0 && (r.height = r.radiusY || 1), r.tiltX === void 0 && (r.tiltX = 0), r.tiltY === void 0 && (r.tiltY = 0), r.pointerType === void 0 && (r.pointerType = "touch"), r.pointerId === void 0 && (r.pointerId = r.identifier || 0), r.pressure === void 0 && (r.pressure = r.force || .5), r.twist === void 0 && (r.twist = 0), r.tangentialPressure === void 0 && (r.tangentialPressure = 0), r.layerX === void 0 && (r.layerX = r.offsetX = r.clientX), r.layerY === void 0 && (r.layerY = r.offsetY = r.clientY), r.isNormalized = !0, r.type = e.type, r.altKey ??= e.altKey, r.ctrlKey ??= e.ctrlKey, r.metaKey ??= e.metaKey, r.shiftKey ??= e.shiftKey, t.push(r);
873
+ }
874
+ else if (!globalThis.MouseEvent || e instanceof MouseEvent && (!this.supportsPointerEvents || !(e instanceof globalThis.PointerEvent))) {
875
+ let n = e;
876
+ n.isPrimary === void 0 && (n.isPrimary = !0), n.width === void 0 && (n.width = 1), n.height === void 0 && (n.height = 1), n.tiltX === void 0 && (n.tiltX = 0), n.tiltY === void 0 && (n.tiltY = 0), n.pointerType === void 0 && (n.pointerType = "mouse"), n.pointerId === void 0 && (n.pointerId = Y), n.pressure === void 0 && (n.pressure = .5), n.twist === void 0 && (n.twist = 0), n.tangentialPressure === void 0 && (n.tangentialPressure = 0), n.isNormalized = !0, t.push(n);
877
+ } else t.push(e);
878
+ return t;
879
+ }
880
+ normalizeWheelEvent(e) {
881
+ let t = this._rootWheelEvent;
882
+ return this._transferMouseData(t, e), t.deltaX = e.deltaX, t.deltaY = e.deltaY, t.deltaZ = e.deltaZ, t.deltaMode = e.deltaMode, this.mapPositionToPoint(t.screen, e.clientX, e.clientY), t.global.copyFrom(t.screen), t.offset.copyFrom(t.screen), t.nativeEvent = e, t.type = e.type, t;
883
+ }
884
+ _bootstrapEvent(e, t) {
885
+ return e.originalEvent = null, e.nativeEvent = t, e.pointerId = t.pointerId, e.width = t.width, e.height = t.height, e.isPrimary = t.isPrimary, e.pointerType = t.pointerType, e.pressure = t.pressure, e.tangentialPressure = t.tangentialPressure, e.tiltX = t.tiltX, e.tiltY = t.tiltY, e.twist = t.twist, this._transferMouseData(e, t), this.mapPositionToPoint(e.screen, t.clientX, t.clientY), e.global.copyFrom(e.screen), e.offset.copyFrom(e.screen), e.isTrusted = t.isTrusted, e.type === "pointerleave" && (e.type = "pointerout"), e.type.startsWith("mouse") && (e.type = e.type.replace("mouse", "pointer")), e.type.startsWith("touch") && (e.type = X[e.type] || e.type), e;
886
+ }
887
+ _transferMouseData(e, t) {
888
+ e.isTrusted = t.isTrusted, e.srcElement = t.srcElement, e.timeStamp = performance.now(), e.type = t.type, e.altKey = t.altKey, e.button = t.button, e.buttons = t.buttons, e.client.x = t.clientX, e.client.y = t.clientY, e.ctrlKey = t.ctrlKey, e.metaKey = t.metaKey, e.movement.x = t.movementX, e.movement.y = t.movementY, e.page.x = t.pageX, e.page.y = t.pageY, e.relatedTarget = null, e.shiftKey = t.shiftKey;
889
+ }
890
+ };
891
+ Z.extension = {
892
+ name: "events",
893
+ type: [
894
+ r.WebGLSystem,
895
+ r.CanvasSystem,
896
+ r.WebGPUSystem
897
+ ],
898
+ priority: -1
899
+ }, Z.defaultEventFeatures = {
900
+ move: !0,
901
+ globalMove: !0,
902
+ click: !0,
903
+ wheel: !0
904
+ };
905
+ var Q = Z, $ = {
906
+ onclick: null,
907
+ onmousedown: null,
908
+ onmouseenter: null,
909
+ onmouseleave: null,
910
+ onmousemove: null,
911
+ onglobalmousemove: null,
912
+ onmouseout: null,
913
+ onmouseover: null,
914
+ onmouseup: null,
915
+ onmouseupoutside: null,
916
+ onpointercancel: null,
917
+ onpointerdown: null,
918
+ onpointerenter: null,
919
+ onpointerleave: null,
920
+ onpointermove: null,
921
+ onglobalpointermove: null,
922
+ onpointerout: null,
923
+ onpointerover: null,
924
+ onpointertap: null,
925
+ onpointerup: null,
926
+ onpointerupoutside: null,
927
+ onrightclick: null,
928
+ onrightdown: null,
929
+ onrightup: null,
930
+ onrightupoutside: null,
931
+ ontap: null,
932
+ ontouchcancel: null,
933
+ ontouchend: null,
934
+ ontouchendoutside: null,
935
+ ontouchmove: null,
936
+ onglobaltouchmove: null,
937
+ ontouchstart: null,
938
+ onwheel: null,
939
+ get interactive() {
940
+ return this.eventMode === "dynamic" || this.eventMode === "static";
941
+ },
942
+ set interactive(e) {
943
+ this.eventMode = e ? "static" : "passive";
944
+ },
945
+ _internalEventMode: void 0,
946
+ get eventMode() {
947
+ return this._internalEventMode ?? Q.defaultEventMode;
948
+ },
949
+ set eventMode(e) {
950
+ this._internalEventMode = e;
951
+ },
952
+ isInteractive() {
953
+ return this.eventMode === "static" || this.eventMode === "dynamic";
954
+ },
955
+ interactiveChildren: !0,
956
+ hitArea: null,
957
+ addEventListener(e, t, n) {
958
+ let r = typeof n == "boolean" && n || typeof n == "object" && n.capture, i = typeof n == "object" ? n.signal : void 0, a = typeof n == "object" ? n.once === !0 : !1, o = typeof t == "function" ? void 0 : t;
959
+ e = r ? `${e}capture` : e;
960
+ let s = typeof t == "function" ? t : t.handleEvent, c = this;
961
+ i && i.addEventListener("abort", () => {
962
+ c.off(e, s, o);
963
+ }), a ? c.once(e, s, o) : c.on(e, s, o);
964
+ },
965
+ removeEventListener(e, t, n) {
966
+ let r = typeof n == "boolean" && n || typeof n == "object" && n.capture, i = typeof t == "function" ? void 0 : t;
967
+ e = r ? `${e}capture` : e, t = typeof t == "function" ? t : t.handleEvent, this.off(e, t, i);
968
+ },
969
+ dispatchEvent(e) {
970
+ if (!(e instanceof c)) throw Error("Container cannot propagate events outside of the Federated Events API");
971
+ return e.defaultPrevented = !1, e.path = null, e.target = this, e.manager.dispatchEvent(e), !e.defaultPrevented;
972
+ }
973
+ };
974
+ //#endregion
975
+ export { R as a, z as i, Q as n, B as r, $ as t };