@kolkrabbi/design-editor 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/README.md +3 -1
  2. package/dist/BufferResource-CKQMSOM4.js +265 -0
  3. package/dist/CanvasPool-ilDNHrRx.js +30 -0
  4. package/dist/CanvasRenderer-CDbc3nH9.js +3396 -0
  5. package/dist/Geometry-D3fkwmax.js +3724 -0
  6. package/dist/{OrbitControls-BAhLQ5d8.js → OrbitControls-CE3qSrHQ.js} +10260 -9043
  7. package/dist/RenderTargetSystem-umK0aqrs.js +2394 -0
  8. package/dist/WebGLRenderer-DVKPZbKc.js +2145 -0
  9. package/dist/WebGPURenderer-DHSBocAL.js +1656 -0
  10. package/dist/browserAll-CJ593myQ.js +983 -0
  11. package/dist/canvasUtils-CXoNqK7T.js +168 -0
  12. package/dist/defaultFilter.vert-C9efGgir.js +888 -0
  13. package/dist/design-editor.css +2 -2
  14. package/dist/design-editor.js +40809 -26749
  15. package/dist/getTextureBatchBindGroup-ChWkOJ3t.js +19 -0
  16. package/dist/{host-IfZgcJFg.js → host-6EhdLf5-.js} +506 -559
  17. package/dist/{host-Cidlc8xP.js → host-DPFYZP9I.js} +134 -88
  18. package/dist/init-4Y6mtayI.js +441 -0
  19. package/dist/phase-D3rwI6OO.js +1719 -0
  20. package/dist/pipeline-DfTD40M-.js +4825 -0
  21. package/dist/rolldown-runtime-B0aSnxlc.js +20 -0
  22. package/dist/src-zDOFeQWX.js +4314 -0
  23. package/dist/webworkerAll-wTH3MKcZ.js +2 -0
  24. package/package.json +26 -21
  25. package/dist/favicon/favicon.svg +0 -12
  26. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Black.woff2 +0 -0
  27. package/dist/fonts/Right-Grotesk/PPRightGrotesk-BlackItalic.woff2 +0 -0
  28. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Bold.woff2 +0 -0
  29. package/dist/fonts/Right-Grotesk/PPRightGrotesk-BoldItalic.woff2 +0 -0
  30. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBlack.woff2 +0 -0
  31. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBlackItalic.woff2 +0 -0
  32. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBold.woff2 +0 -0
  33. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactBoldItalic.woff2 +0 -0
  34. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactDark.woff2 +0 -0
  35. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactDarkItalic.woff2 +0 -0
  36. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactFine.woff2 +0 -0
  37. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactFineItalic.woff2 +0 -0
  38. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactLight.woff2 +0 -0
  39. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactLightItalic.woff2 +0 -0
  40. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactMedium.woff2 +0 -0
  41. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactMediumItalic.woff2 +0 -0
  42. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactRegular.woff2 +0 -0
  43. package/dist/fonts/Right-Grotesk/PPRightGrotesk-CompactRegularItalic.woff2 +0 -0
  44. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Dark.woff2 +0 -0
  45. package/dist/fonts/Right-Grotesk/PPRightGrotesk-DarkItalic.woff2 +0 -0
  46. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Fine.woff2 +0 -0
  47. package/dist/fonts/Right-Grotesk/PPRightGrotesk-FineItalic.woff2 +0 -0
  48. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Light.woff2 +0 -0
  49. package/dist/fonts/Right-Grotesk/PPRightGrotesk-LightItalic.woff2 +0 -0
  50. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Medium.woff2 +0 -0
  51. package/dist/fonts/Right-Grotesk/PPRightGrotesk-MediumItalic.woff2 +0 -0
  52. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBlack.woff2 +0 -0
  53. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBlackItalic.woff2 +0 -0
  54. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBold.woff2 +0 -0
  55. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowBoldItalic.woff2 +0 -0
  56. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowDark.woff2 +0 -0
  57. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowDarkItalic.woff2 +0 -0
  58. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowFine.woff2 +0 -0
  59. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowFineItalic.woff2 +0 -0
  60. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowLight.woff2 +0 -0
  61. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowLightItalic.woff2 +0 -0
  62. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowMedium.woff2 +0 -0
  63. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowMediumItalic.woff2 +0 -0
  64. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowRegular.woff2 +0 -0
  65. package/dist/fonts/Right-Grotesk/PPRightGrotesk-NarrowRegularItalic.woff2 +0 -0
  66. package/dist/fonts/Right-Grotesk/PPRightGrotesk-Regular.woff2 +0 -0
  67. package/dist/fonts/Right-Grotesk/PPRightGrotesk-RegularItalic.woff2 +0 -0
  68. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBlack.woff2 +0 -0
  69. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBlackItalic.woff2 +0 -0
  70. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBold.woff2 +0 -0
  71. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialBoldItalic.woff2 +0 -0
  72. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialDark.woff2 +0 -0
  73. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialDarkItalic.woff2 +0 -0
  74. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialFine.woff2 +0 -0
  75. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialFineItalic.woff2 +0 -0
  76. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialLight.woff2 +0 -0
  77. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialLightItalic.woff2 +0 -0
  78. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialMedium.woff2 +0 -0
  79. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialMediumItalic.woff2 +0 -0
  80. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialRegular.woff2 +0 -0
  81. package/dist/fonts/Right-Grotesk/PPRightGrotesk-SpatialRegularItalic.woff2 +0 -0
  82. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBlack.woff2 +0 -0
  83. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBlackItalic.woff2 +0 -0
  84. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBold.woff2 +0 -0
  85. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallBoldItalic.woff2 +0 -0
  86. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallDark.woff2 +0 -0
  87. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallDarkItalic.woff2 +0 -0
  88. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallFine.woff2 +0 -0
  89. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallFineItalic.woff2 +0 -0
  90. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallLight.woff2 +0 -0
  91. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallLightItalic.woff2 +0 -0
  92. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallMedium.woff2 +0 -0
  93. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallMediumItalic.woff2 +0 -0
  94. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallRegular.woff2 +0 -0
  95. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TallRegularItalic.woff2 +0 -0
  96. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBlack.woff2 +0 -0
  97. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBlackItalic.woff2 +0 -0
  98. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBold.woff2 +0 -0
  99. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightBoldItalic.woff2 +0 -0
  100. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightDark.woff2 +0 -0
  101. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightDarkItalic.woff2 +0 -0
  102. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightFine.woff2 +0 -0
  103. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightFineItalic.woff2 +0 -0
  104. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightLight.woff2 +0 -0
  105. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightLightItalic.woff2 +0 -0
  106. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightMedium.woff2 +0 -0
  107. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightMediumItalic.woff2 +0 -0
  108. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightRegular.woff2 +0 -0
  109. package/dist/fonts/Right-Grotesk/PPRightGrotesk-TightRegularItalic.woff2 +0 -0
  110. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBlack.woff2 +0 -0
  111. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBlackItalic.woff2 +0 -0
  112. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBold.woff2 +0 -0
  113. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideBoldItalic.woff2 +0 -0
  114. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideDark.woff2 +0 -0
  115. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideDarkItalic.woff2 +0 -0
  116. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideFine.woff2 +0 -0
  117. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideFineItalic.woff2 +0 -0
  118. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideLight.woff2 +0 -0
  119. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideLightItalic.woff2 +0 -0
  120. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideMedium.woff2 +0 -0
  121. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideMediumItalic.woff2 +0 -0
  122. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideRegular.woff2 +0 -0
  123. package/dist/fonts/Right-Grotesk/PPRightGrotesk-WideRegularItalic.woff2 +0 -0
  124. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Bold.woff2 +0 -0
  125. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-BoldItalic.woff2 +0 -0
  126. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Dark.woff2 +0 -0
  127. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Fine.woff2 +0 -0
  128. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-FineItalic.woff2 +0 -0
  129. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Light.woff2 +0 -0
  130. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Medium.woff2 +0 -0
  131. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-Regular.woff2 +0 -0
  132. package/dist/fonts/Right-Grotesk-Mono/PPRightGroteskMono-RegularItalic.woff2 +0 -0
  133. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactLight.woff2 +0 -0
  134. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactLightItalic.woff2 +0 -0
  135. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactMedium.woff2 +0 -0
  136. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-CompactMediumItalic.woff2 +0 -0
  137. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-Regular.woff2 +0 -0
  138. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-RegularItalic.woff2 +0 -0
  139. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialBold.woff2 +0 -0
  140. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialBoldItalic.woff2 +0 -0
  141. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialLight.woff2 +0 -0
  142. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-SpatialLightItalic.woff2 +0 -0
  143. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-WideBold.woff2 +0 -0
  144. package/dist/fonts/Right-Grotesk-Text/PPRightGroteskText-WideBoldItalic.woff2 +0 -0
  145. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Black.ttf +0 -0
  146. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-BlackItalic.ttf +0 -0
  147. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Bold.ttf +0 -0
  148. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-BoldItalic.ttf +0 -0
  149. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBlack.ttf +0 -0
  150. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBlackItalic.ttf +0 -0
  151. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBold.ttf +0 -0
  152. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactBoldItalic.ttf +0 -0
  153. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactDark.ttf +0 -0
  154. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactDarkItalic.ttf +0 -0
  155. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactFine.ttf +0 -0
  156. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactFineItalic.ttf +0 -0
  157. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactLight.ttf +0 -0
  158. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactLightItalic.ttf +0 -0
  159. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactMedium.ttf +0 -0
  160. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactMediumItalic.ttf +0 -0
  161. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactRegular.ttf +0 -0
  162. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-CompactRegularItalic.ttf +0 -0
  163. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Dark.ttf +0 -0
  164. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-DarkItalic.ttf +0 -0
  165. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Fine.ttf +0 -0
  166. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-FineItalic.ttf +0 -0
  167. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Light.ttf +0 -0
  168. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-LightItalic.ttf +0 -0
  169. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Medium.ttf +0 -0
  170. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-MediumItalic.ttf +0 -0
  171. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBlack.ttf +0 -0
  172. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBlackItalic.ttf +0 -0
  173. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBold.ttf +0 -0
  174. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowBoldItalic.ttf +0 -0
  175. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowDark.ttf +0 -0
  176. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowDarkItalic.ttf +0 -0
  177. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowFine.ttf +0 -0
  178. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowFineItalic.ttf +0 -0
  179. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowLight.ttf +0 -0
  180. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowLightItalic.ttf +0 -0
  181. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowMedium.ttf +0 -0
  182. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowMediumItalic.ttf +0 -0
  183. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowRegular.ttf +0 -0
  184. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-NarrowRegularItalic.ttf +0 -0
  185. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-Regular.ttf +0 -0
  186. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-RegularItalic.ttf +0 -0
  187. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBlack.ttf +0 -0
  188. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBlackItalic.ttf +0 -0
  189. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBold.ttf +0 -0
  190. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialBoldItalic.ttf +0 -0
  191. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialDark.ttf +0 -0
  192. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialDarkItalic.ttf +0 -0
  193. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialFine.ttf +0 -0
  194. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialFineItalic.ttf +0 -0
  195. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialLight.ttf +0 -0
  196. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialLightItalic.ttf +0 -0
  197. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialMedium.ttf +0 -0
  198. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialMediumItalic.ttf +0 -0
  199. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialRegular.ttf +0 -0
  200. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-SpatialRegularItalic.ttf +0 -0
  201. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBlack.ttf +0 -0
  202. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBlackItalic.ttf +0 -0
  203. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBold.ttf +0 -0
  204. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallBoldItalic.ttf +0 -0
  205. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallDark.ttf +0 -0
  206. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallDarkItalic.ttf +0 -0
  207. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallFine.ttf +0 -0
  208. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallFineItalic.ttf +0 -0
  209. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallLight.ttf +0 -0
  210. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallLightItalic.ttf +0 -0
  211. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallMedium.ttf +0 -0
  212. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallMediumItalic.ttf +0 -0
  213. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallRegular.ttf +0 -0
  214. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TallRegularItalic.ttf +0 -0
  215. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBlack.ttf +0 -0
  216. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBlackItalic.ttf +0 -0
  217. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBold.ttf +0 -0
  218. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightBoldItalic.ttf +0 -0
  219. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightDark.ttf +0 -0
  220. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightDarkItalic.ttf +0 -0
  221. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightFine.ttf +0 -0
  222. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightFineItalic.ttf +0 -0
  223. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightLight.ttf +0 -0
  224. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightLightItalic.ttf +0 -0
  225. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightMedium.ttf +0 -0
  226. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightMediumItalic.ttf +0 -0
  227. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightRegular.ttf +0 -0
  228. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-TightRegularItalic.ttf +0 -0
  229. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBlack.ttf +0 -0
  230. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBlackItalic.ttf +0 -0
  231. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBold.ttf +0 -0
  232. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideBoldItalic.ttf +0 -0
  233. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideDark.ttf +0 -0
  234. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideDarkItalic.ttf +0 -0
  235. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideFine.ttf +0 -0
  236. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideFineItalic.ttf +0 -0
  237. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideLight.ttf +0 -0
  238. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideLightItalic.ttf +0 -0
  239. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideMedium.ttf +0 -0
  240. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideMediumItalic.ttf +0 -0
  241. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideRegular.ttf +0 -0
  242. package/dist/fonts/Right-Grotesk-ttf/PPRightGrotesk-WideRegularItalic.ttf +0 -0
  243. package/dist/fonts/TG/TGGullhamrarVF.ttf +0 -0
  244. package/dist/fonts/TG/TGMalromurRomanVF.ttf +0 -0
  245. package/dist/fonts/TG/TGRotVF.ttf +0 -0
  246. package/dist/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2 +0 -0
  247. package/dist/fonts/jetbrains-mono/JetBrainsMono-MediumItalic.woff2 +0 -0
  248. package/dist/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2 +0 -0
  249. package/dist/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2 +0 -0
  250. package/dist/meshPalettes-BJODHYrY.js +0 -892
@@ -0,0 +1,3724 @@
1
+ import { r as e, t } from "./rolldown-runtime-B0aSnxlc.js";
2
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/extensions/Extensions.mjs
3
+ var n = /* @__PURE__ */ ((e) => (e.Application = "application", e.WebGLPipes = "webgl-pipes", e.WebGLPipesAdaptor = "webgl-pipes-adaptor", e.WebGLSystem = "webgl-system", e.WebGPUPipes = "webgpu-pipes", e.WebGPUPipesAdaptor = "webgpu-pipes-adaptor", e.WebGPUSystem = "webgpu-system", e.CanvasSystem = "canvas-system", e.CanvasPipesAdaptor = "canvas-pipes-adaptor", e.CanvasPipes = "canvas-pipes", e.Asset = "asset", e.LoadParser = "load-parser", e.ResolveParser = "resolve-parser", e.CacheParser = "cache-parser", e.DetectionParser = "detection-parser", e.MaskEffect = "mask-effect", e.BlendMode = "blend-mode", e.TextureSource = "texture-source", e.TextureUploaderWebGL = "texture-uploader-webgl", e.TextureUploaderWebGPU = "texture-uploader-webgpu", e.Environment = "environment", e.ShapeBuilder = "shape-builder", e.Batcher = "batcher", e))(n || {}), r = (e) => {
4
+ if (typeof e == "function" || typeof e == "object" && e.extension) {
5
+ if (!e.extension) throw Error("Extension class must have an extension object");
6
+ e = {
7
+ ...typeof e.extension == "object" ? e.extension : { type: e.extension },
8
+ ref: e
9
+ };
10
+ }
11
+ if (typeof e == "object") e = { ...e };
12
+ else throw Error("Invalid extension type");
13
+ return typeof e.type == "string" && (e.type = [e.type]), e;
14
+ }, i = (e, t) => r(e).priority ?? t, a = {
15
+ _addHandlers: {},
16
+ _removeHandlers: {},
17
+ _queue: {},
18
+ remove(...e) {
19
+ return e.map(r).forEach((e) => {
20
+ e.type.forEach((t) => this._removeHandlers[t]?.(e));
21
+ }), this;
22
+ },
23
+ add(...e) {
24
+ return e.map(r).forEach((e) => {
25
+ e.type.forEach((t) => {
26
+ let n = this._addHandlers, r = this._queue;
27
+ n[t] ? n[t]?.(e) : (r[t] = r[t] || [], r[t]?.push(e));
28
+ });
29
+ }), this;
30
+ },
31
+ handle(e, t, n) {
32
+ let r = this._addHandlers, i = this._removeHandlers;
33
+ if (r[e] || i[e]) throw Error(`Extension type ${e} already has a handler`);
34
+ r[e] = t, i[e] = n;
35
+ let a = this._queue;
36
+ return a[e] && (a[e]?.forEach((e) => t(e)), delete a[e]), this;
37
+ },
38
+ handleByMap(e, t) {
39
+ return this.handle(e, (e) => {
40
+ e.name && (t[e.name] = e.ref);
41
+ }, (e) => {
42
+ e.name && delete t[e.name];
43
+ });
44
+ },
45
+ handleByNamedList(e, t, n = -1) {
46
+ return this.handle(e, (e) => {
47
+ t.findIndex((t) => t.name === e.name) >= 0 || (t.push({
48
+ name: e.name,
49
+ value: e.ref
50
+ }), t.sort((e, t) => i(t.value, n) - i(e.value, n)));
51
+ }, (e) => {
52
+ let n = t.findIndex((t) => t.name === e.name);
53
+ n !== -1 && t.splice(n, 1);
54
+ });
55
+ },
56
+ handleByList(e, t, n = -1) {
57
+ return this.handle(e, (e) => {
58
+ t.includes(e.ref) || (t.push(e.ref), t.sort((e, t) => i(t, n) - i(e, n)));
59
+ }, (e) => {
60
+ let n = t.indexOf(e.ref);
61
+ n !== -1 && t.splice(n, 1);
62
+ });
63
+ },
64
+ mixin(e, ...t) {
65
+ for (let n of t) Object.defineProperties(e.prototype, Object.getOwnPropertyDescriptors(n));
66
+ }
67
+ }, o = (/* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
68
+ var n = Object.prototype.hasOwnProperty, r = "~";
69
+ function i() {}
70
+ Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
71
+ function a(e, t, n) {
72
+ this.fn = e, this.context = t, this.once = n || !1;
73
+ }
74
+ function o(e, t, n, i, o) {
75
+ if (typeof n != "function") throw TypeError("The listener must be a function");
76
+ var s = new a(n, i || e, o), c = r ? r + t : t;
77
+ return e._events[c] ? e._events[c].fn ? e._events[c] = [e._events[c], s] : e._events[c].push(s) : (e._events[c] = s, e._eventsCount++), e;
78
+ }
79
+ function s(e, t) {
80
+ --e._eventsCount === 0 ? e._events = new i() : delete e._events[t];
81
+ }
82
+ function c() {
83
+ this._events = new i(), this._eventsCount = 0;
84
+ }
85
+ c.prototype.eventNames = function() {
86
+ var e = [], t, i;
87
+ if (this._eventsCount === 0) return e;
88
+ for (i in t = this._events) n.call(t, i) && e.push(r ? i.slice(1) : i);
89
+ return Object.getOwnPropertySymbols ? e.concat(Object.getOwnPropertySymbols(t)) : e;
90
+ }, c.prototype.listeners = function(e) {
91
+ var t = r ? r + e : e, n = this._events[t];
92
+ if (!n) return [];
93
+ if (n.fn) return [n.fn];
94
+ for (var i = 0, a = n.length, o = Array(a); i < a; i++) o[i] = n[i].fn;
95
+ return o;
96
+ }, c.prototype.listenerCount = function(e) {
97
+ var t = r ? r + e : e, n = this._events[t];
98
+ return n ? n.fn ? 1 : n.length : 0;
99
+ }, c.prototype.emit = function(e, t, n, i, a, o) {
100
+ var s = r ? r + e : e;
101
+ if (!this._events[s]) return !1;
102
+ var c = this._events[s], l = arguments.length, u, d;
103
+ if (c.fn) {
104
+ switch (c.once && this.removeListener(e, c.fn, void 0, !0), l) {
105
+ case 1: return c.fn.call(c.context), !0;
106
+ case 2: return c.fn.call(c.context, t), !0;
107
+ case 3: return c.fn.call(c.context, t, n), !0;
108
+ case 4: return c.fn.call(c.context, t, n, i), !0;
109
+ case 5: return c.fn.call(c.context, t, n, i, a), !0;
110
+ case 6: return c.fn.call(c.context, t, n, i, a, o), !0;
111
+ }
112
+ for (d = 1, u = Array(l - 1); d < l; d++) u[d - 1] = arguments[d];
113
+ c.fn.apply(c.context, u);
114
+ } else {
115
+ var f = c.length, p;
116
+ for (d = 0; d < f; d++) switch (c[d].once && this.removeListener(e, c[d].fn, void 0, !0), l) {
117
+ case 1:
118
+ c[d].fn.call(c[d].context);
119
+ break;
120
+ case 2:
121
+ c[d].fn.call(c[d].context, t);
122
+ break;
123
+ case 3:
124
+ c[d].fn.call(c[d].context, t, n);
125
+ break;
126
+ case 4:
127
+ c[d].fn.call(c[d].context, t, n, i);
128
+ break;
129
+ default:
130
+ if (!u) for (p = 1, u = Array(l - 1); p < l; p++) u[p - 1] = arguments[p];
131
+ c[d].fn.apply(c[d].context, u);
132
+ }
133
+ }
134
+ return !0;
135
+ }, c.prototype.on = function(e, t, n) {
136
+ return o(this, e, t, n, !1);
137
+ }, c.prototype.once = function(e, t, n) {
138
+ return o(this, e, t, n, !0);
139
+ }, c.prototype.removeListener = function(e, t, n, i) {
140
+ var a = r ? r + e : e;
141
+ if (!this._events[a]) return this;
142
+ if (!t) return s(this, a), this;
143
+ var o = this._events[a];
144
+ if (o.fn) o.fn === t && (!i || o.once) && (!n || o.context === n) && s(this, a);
145
+ else {
146
+ for (var c = 0, l = [], u = o.length; c < u; c++) (o[c].fn !== t || i && !o[c].once || n && o[c].context !== n) && l.push(o[c]);
147
+ l.length ? this._events[a] = l.length === 1 ? l[0] : l : s(this, a);
148
+ }
149
+ return this;
150
+ }, c.prototype.removeAllListeners = function(e) {
151
+ var t;
152
+ return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
153
+ }, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
154
+ })))(), 1)).default, s = {
155
+ grad: .9,
156
+ turn: 360,
157
+ rad: 360 / (2 * Math.PI)
158
+ }, c = function(e) {
159
+ return typeof e == "string" ? e.length > 0 : typeof e == "number";
160
+ }, l = function(e, t, n) {
161
+ return t === void 0 && (t = 0), n === void 0 && (n = 10 ** t), Math.round(n * e) / n + 0;
162
+ }, u = function(e, t, n) {
163
+ return t === void 0 && (t = 0), n === void 0 && (n = 1), e > n ? n : e > t ? e : t;
164
+ }, d = function(e) {
165
+ return (e = isFinite(e) ? e % 360 : 0) > 0 ? e : e + 360;
166
+ }, f = function(e) {
167
+ return {
168
+ r: u(e.r, 0, 255),
169
+ g: u(e.g, 0, 255),
170
+ b: u(e.b, 0, 255),
171
+ a: u(e.a)
172
+ };
173
+ }, p = function(e) {
174
+ return {
175
+ r: l(e.r),
176
+ g: l(e.g),
177
+ b: l(e.b),
178
+ a: l(e.a, 3)
179
+ };
180
+ }, m = /^#([0-9a-f]{3,8})$/i, h = function(e) {
181
+ var t = e.toString(16);
182
+ return t.length < 2 ? "0" + t : t;
183
+ }, g = function(e) {
184
+ var t = e.r, n = e.g, r = e.b, i = e.a, a = Math.max(t, n, r), o = a - Math.min(t, n, r), s = o ? a === t ? (n - r) / o : a === n ? 2 + (r - t) / o : 4 + (t - n) / o : 0;
185
+ return {
186
+ h: 60 * (s < 0 ? s + 6 : s),
187
+ s: a ? o / a * 100 : 0,
188
+ v: a / 255 * 100,
189
+ a: i
190
+ };
191
+ }, _ = function(e) {
192
+ var t = e.h, n = e.s, r = e.v, i = e.a;
193
+ t = t / 360 * 6, n /= 100, r /= 100;
194
+ var a = Math.floor(t), o = r * (1 - n), s = r * (1 - (t - a) * n), c = r * (1 - (1 - t + a) * n), l = a % 6;
195
+ return {
196
+ r: 255 * [
197
+ r,
198
+ s,
199
+ o,
200
+ o,
201
+ c,
202
+ r
203
+ ][l],
204
+ g: 255 * [
205
+ c,
206
+ r,
207
+ r,
208
+ s,
209
+ o,
210
+ o
211
+ ][l],
212
+ b: 255 * [
213
+ o,
214
+ o,
215
+ c,
216
+ r,
217
+ r,
218
+ s
219
+ ][l],
220
+ a: i
221
+ };
222
+ }, v = function(e) {
223
+ return {
224
+ h: d(e.h),
225
+ s: u(e.s, 0, 100),
226
+ l: u(e.l, 0, 100),
227
+ a: u(e.a)
228
+ };
229
+ }, y = function(e) {
230
+ return {
231
+ h: l(e.h),
232
+ s: l(e.s),
233
+ l: l(e.l),
234
+ a: l(e.a, 3)
235
+ };
236
+ }, b = function(e) {
237
+ return _((n = (t = e).s, {
238
+ h: t.h,
239
+ s: (n *= ((r = t.l) < 50 ? r : 100 - r) / 100) > 0 ? 2 * n / (r + n) * 100 : 0,
240
+ v: r + n,
241
+ a: t.a
242
+ }));
243
+ var t, n, r;
244
+ }, x = function(e) {
245
+ return {
246
+ h: (t = g(e)).h,
247
+ s: (i = (200 - (n = t.s)) * (r = t.v) / 100) > 0 && i < 200 ? n * r / 100 / (i <= 100 ? i : 200 - i) * 100 : 0,
248
+ l: i / 2,
249
+ a: t.a
250
+ };
251
+ var t, n, r, i;
252
+ }, ee = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, te = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ne = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, re = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ie = {
253
+ string: [
254
+ [function(e) {
255
+ var t = m.exec(e);
256
+ return t ? (e = t[1]).length <= 4 ? {
257
+ r: parseInt(e[0] + e[0], 16),
258
+ g: parseInt(e[1] + e[1], 16),
259
+ b: parseInt(e[2] + e[2], 16),
260
+ a: e.length === 4 ? l(parseInt(e[3] + e[3], 16) / 255, 2) : 1
261
+ } : e.length === 6 || e.length === 8 ? {
262
+ r: parseInt(e.substr(0, 2), 16),
263
+ g: parseInt(e.substr(2, 2), 16),
264
+ b: parseInt(e.substr(4, 2), 16),
265
+ a: e.length === 8 ? l(parseInt(e.substr(6, 2), 16) / 255, 2) : 1
266
+ } : null : null;
267
+ }, "hex"],
268
+ [function(e) {
269
+ var t = ne.exec(e) || re.exec(e);
270
+ return t ? t[2] !== t[4] || t[4] !== t[6] ? null : f({
271
+ r: Number(t[1]) / (t[2] ? 100 / 255 : 1),
272
+ g: Number(t[3]) / (t[4] ? 100 / 255 : 1),
273
+ b: Number(t[5]) / (t[6] ? 100 / 255 : 1),
274
+ a: t[7] === void 0 ? 1 : Number(t[7]) / (t[8] ? 100 : 1)
275
+ }) : null;
276
+ }, "rgb"],
277
+ [function(e) {
278
+ var t = ee.exec(e) || te.exec(e);
279
+ if (!t) return null;
280
+ var n, r;
281
+ return b(v({
282
+ h: (n = t[1], r = t[2], r === void 0 && (r = "deg"), Number(n) * (s[r] || 1)),
283
+ s: Number(t[3]),
284
+ l: Number(t[4]),
285
+ a: t[5] === void 0 ? 1 : Number(t[5]) / (t[6] ? 100 : 1)
286
+ }));
287
+ }, "hsl"]
288
+ ],
289
+ object: [
290
+ [function(e) {
291
+ var t = e.r, n = e.g, r = e.b, i = e.a, a = i === void 0 ? 1 : i;
292
+ return c(t) && c(n) && c(r) ? f({
293
+ r: Number(t),
294
+ g: Number(n),
295
+ b: Number(r),
296
+ a: Number(a)
297
+ }) : null;
298
+ }, "rgb"],
299
+ [function(e) {
300
+ var t = e.h, n = e.s, r = e.l, i = e.a, a = i === void 0 ? 1 : i;
301
+ return !c(t) || !c(n) || !c(r) ? null : b(v({
302
+ h: Number(t),
303
+ s: Number(n),
304
+ l: Number(r),
305
+ a: Number(a)
306
+ }));
307
+ }, "hsl"],
308
+ [function(e) {
309
+ var t = e.h, n = e.s, r = e.v, i = e.a, a = i === void 0 ? 1 : i;
310
+ return !c(t) || !c(n) || !c(r) ? null : _(function(e) {
311
+ return {
312
+ h: d(e.h),
313
+ s: u(e.s, 0, 100),
314
+ v: u(e.v, 0, 100),
315
+ a: u(e.a)
316
+ };
317
+ }({
318
+ h: Number(t),
319
+ s: Number(n),
320
+ v: Number(r),
321
+ a: Number(a)
322
+ }));
323
+ }, "hsv"]
324
+ ]
325
+ }, ae = function(e, t) {
326
+ for (var n = 0; n < t.length; n++) {
327
+ var r = t[n][0](e);
328
+ if (r) return [r, t[n][1]];
329
+ }
330
+ return [null, void 0];
331
+ }, oe = function(e) {
332
+ return typeof e == "string" ? ae(e.trim(), ie.string) : typeof e == "object" && e ? ae(e, ie.object) : [null, void 0];
333
+ }, se = function(e, t) {
334
+ var n = x(e);
335
+ return {
336
+ h: n.h,
337
+ s: u(n.s + 100 * t, 0, 100),
338
+ l: n.l,
339
+ a: n.a
340
+ };
341
+ }, ce = function(e) {
342
+ return (299 * e.r + 587 * e.g + 114 * e.b) / 1e3 / 255;
343
+ }, le = function(e, t) {
344
+ var n = x(e);
345
+ return {
346
+ h: n.h,
347
+ s: n.s,
348
+ l: u(n.l + 100 * t, 0, 100),
349
+ a: n.a
350
+ };
351
+ }, ue = function() {
352
+ function e(e) {
353
+ this.parsed = oe(e)[0], this.rgba = this.parsed || {
354
+ r: 0,
355
+ g: 0,
356
+ b: 0,
357
+ a: 1
358
+ };
359
+ }
360
+ return e.prototype.isValid = function() {
361
+ return this.parsed !== null;
362
+ }, e.prototype.brightness = function() {
363
+ return l(ce(this.rgba), 2);
364
+ }, e.prototype.isDark = function() {
365
+ return ce(this.rgba) < .5;
366
+ }, e.prototype.isLight = function() {
367
+ return ce(this.rgba) >= .5;
368
+ }, e.prototype.toHex = function() {
369
+ return e = p(this.rgba), t = e.r, n = e.g, r = e.b, a = (i = e.a) < 1 ? h(l(255 * i)) : "", "#" + h(t) + h(n) + h(r) + a;
370
+ var e, t, n, r, i, a;
371
+ }, e.prototype.toRgb = function() {
372
+ return p(this.rgba);
373
+ }, e.prototype.toRgbString = function() {
374
+ return e = p(this.rgba), t = e.r, n = e.g, r = e.b, (i = e.a) < 1 ? "rgba(" + t + ", " + n + ", " + r + ", " + i + ")" : "rgb(" + t + ", " + n + ", " + r + ")";
375
+ var e, t, n, r, i;
376
+ }, e.prototype.toHsl = function() {
377
+ return y(x(this.rgba));
378
+ }, e.prototype.toHslString = function() {
379
+ return e = y(x(this.rgba)), t = e.h, n = e.s, r = e.l, (i = e.a) < 1 ? "hsla(" + t + ", " + n + "%, " + r + "%, " + i + ")" : "hsl(" + t + ", " + n + "%, " + r + "%)";
380
+ var e, t, n, r, i;
381
+ }, e.prototype.toHsv = function() {
382
+ return e = g(this.rgba), {
383
+ h: l(e.h),
384
+ s: l(e.s),
385
+ v: l(e.v),
386
+ a: l(e.a, 3)
387
+ };
388
+ var e;
389
+ }, e.prototype.invert = function() {
390
+ return S({
391
+ r: 255 - (e = this.rgba).r,
392
+ g: 255 - e.g,
393
+ b: 255 - e.b,
394
+ a: e.a
395
+ });
396
+ var e;
397
+ }, e.prototype.saturate = function(e) {
398
+ return e === void 0 && (e = .1), S(se(this.rgba, e));
399
+ }, e.prototype.desaturate = function(e) {
400
+ return e === void 0 && (e = .1), S(se(this.rgba, -e));
401
+ }, e.prototype.grayscale = function() {
402
+ return S(se(this.rgba, -1));
403
+ }, e.prototype.lighten = function(e) {
404
+ return e === void 0 && (e = .1), S(le(this.rgba, e));
405
+ }, e.prototype.darken = function(e) {
406
+ return e === void 0 && (e = .1), S(le(this.rgba, -e));
407
+ }, e.prototype.rotate = function(e) {
408
+ return e === void 0 && (e = 15), this.hue(this.hue() + e);
409
+ }, e.prototype.alpha = function(e) {
410
+ return typeof e == "number" ? S({
411
+ r: (t = this.rgba).r,
412
+ g: t.g,
413
+ b: t.b,
414
+ a: e
415
+ }) : l(this.rgba.a, 3);
416
+ var t;
417
+ }, e.prototype.hue = function(e) {
418
+ var t = x(this.rgba);
419
+ return typeof e == "number" ? S({
420
+ h: e,
421
+ s: t.s,
422
+ l: t.l,
423
+ a: t.a
424
+ }) : l(t.h);
425
+ }, e.prototype.isEqual = function(e) {
426
+ return this.toHex() === S(e).toHex();
427
+ }, e;
428
+ }(), S = function(e) {
429
+ return e instanceof ue ? e : new ue(e);
430
+ }, de = [], fe = function(e) {
431
+ e.forEach(function(e) {
432
+ de.indexOf(e) < 0 && (e(ue, ie), de.push(e));
433
+ });
434
+ };
435
+ //#endregion
436
+ //#region node_modules/.pnpm/@pixi+colord@2.9.6/node_modules/@pixi/colord/plugins/names.mjs
437
+ function pe(e, t) {
438
+ var n = {
439
+ white: "#ffffff",
440
+ bisque: "#ffe4c4",
441
+ blue: "#0000ff",
442
+ cadetblue: "#5f9ea0",
443
+ chartreuse: "#7fff00",
444
+ chocolate: "#d2691e",
445
+ coral: "#ff7f50",
446
+ antiquewhite: "#faebd7",
447
+ aqua: "#00ffff",
448
+ azure: "#f0ffff",
449
+ whitesmoke: "#f5f5f5",
450
+ papayawhip: "#ffefd5",
451
+ plum: "#dda0dd",
452
+ blanchedalmond: "#ffebcd",
453
+ black: "#000000",
454
+ gold: "#ffd700",
455
+ goldenrod: "#daa520",
456
+ gainsboro: "#dcdcdc",
457
+ cornsilk: "#fff8dc",
458
+ cornflowerblue: "#6495ed",
459
+ burlywood: "#deb887",
460
+ aquamarine: "#7fffd4",
461
+ beige: "#f5f5dc",
462
+ crimson: "#dc143c",
463
+ cyan: "#00ffff",
464
+ darkblue: "#00008b",
465
+ darkcyan: "#008b8b",
466
+ darkgoldenrod: "#b8860b",
467
+ darkkhaki: "#bdb76b",
468
+ darkgray: "#a9a9a9",
469
+ darkgreen: "#006400",
470
+ darkgrey: "#a9a9a9",
471
+ peachpuff: "#ffdab9",
472
+ darkmagenta: "#8b008b",
473
+ darkred: "#8b0000",
474
+ darkorchid: "#9932cc",
475
+ darkorange: "#ff8c00",
476
+ darkslateblue: "#483d8b",
477
+ gray: "#808080",
478
+ darkslategray: "#2f4f4f",
479
+ darkslategrey: "#2f4f4f",
480
+ deeppink: "#ff1493",
481
+ deepskyblue: "#00bfff",
482
+ wheat: "#f5deb3",
483
+ firebrick: "#b22222",
484
+ floralwhite: "#fffaf0",
485
+ ghostwhite: "#f8f8ff",
486
+ darkviolet: "#9400d3",
487
+ magenta: "#ff00ff",
488
+ green: "#008000",
489
+ dodgerblue: "#1e90ff",
490
+ grey: "#808080",
491
+ honeydew: "#f0fff0",
492
+ hotpink: "#ff69b4",
493
+ blueviolet: "#8a2be2",
494
+ forestgreen: "#228b22",
495
+ lawngreen: "#7cfc00",
496
+ indianred: "#cd5c5c",
497
+ indigo: "#4b0082",
498
+ fuchsia: "#ff00ff",
499
+ brown: "#a52a2a",
500
+ maroon: "#800000",
501
+ mediumblue: "#0000cd",
502
+ lightcoral: "#f08080",
503
+ darkturquoise: "#00ced1",
504
+ lightcyan: "#e0ffff",
505
+ ivory: "#fffff0",
506
+ lightyellow: "#ffffe0",
507
+ lightsalmon: "#ffa07a",
508
+ lightseagreen: "#20b2aa",
509
+ linen: "#faf0e6",
510
+ mediumaquamarine: "#66cdaa",
511
+ lemonchiffon: "#fffacd",
512
+ lime: "#00ff00",
513
+ khaki: "#f0e68c",
514
+ mediumseagreen: "#3cb371",
515
+ limegreen: "#32cd32",
516
+ mediumspringgreen: "#00fa9a",
517
+ lightskyblue: "#87cefa",
518
+ lightblue: "#add8e6",
519
+ midnightblue: "#191970",
520
+ lightpink: "#ffb6c1",
521
+ mistyrose: "#ffe4e1",
522
+ moccasin: "#ffe4b5",
523
+ mintcream: "#f5fffa",
524
+ lightslategray: "#778899",
525
+ lightslategrey: "#778899",
526
+ navajowhite: "#ffdead",
527
+ navy: "#000080",
528
+ mediumvioletred: "#c71585",
529
+ powderblue: "#b0e0e6",
530
+ palegoldenrod: "#eee8aa",
531
+ oldlace: "#fdf5e6",
532
+ paleturquoise: "#afeeee",
533
+ mediumturquoise: "#48d1cc",
534
+ mediumorchid: "#ba55d3",
535
+ rebeccapurple: "#663399",
536
+ lightsteelblue: "#b0c4de",
537
+ mediumslateblue: "#7b68ee",
538
+ thistle: "#d8bfd8",
539
+ tan: "#d2b48c",
540
+ orchid: "#da70d6",
541
+ mediumpurple: "#9370db",
542
+ purple: "#800080",
543
+ pink: "#ffc0cb",
544
+ skyblue: "#87ceeb",
545
+ springgreen: "#00ff7f",
546
+ palegreen: "#98fb98",
547
+ red: "#ff0000",
548
+ yellow: "#ffff00",
549
+ slateblue: "#6a5acd",
550
+ lavenderblush: "#fff0f5",
551
+ peru: "#cd853f",
552
+ palevioletred: "#db7093",
553
+ violet: "#ee82ee",
554
+ teal: "#008080",
555
+ slategray: "#708090",
556
+ slategrey: "#708090",
557
+ aliceblue: "#f0f8ff",
558
+ darkseagreen: "#8fbc8f",
559
+ darkolivegreen: "#556b2f",
560
+ greenyellow: "#adff2f",
561
+ seagreen: "#2e8b57",
562
+ seashell: "#fff5ee",
563
+ tomato: "#ff6347",
564
+ silver: "#c0c0c0",
565
+ sienna: "#a0522d",
566
+ lavender: "#e6e6fa",
567
+ lightgreen: "#90ee90",
568
+ orange: "#ffa500",
569
+ orangered: "#ff4500",
570
+ steelblue: "#4682b4",
571
+ royalblue: "#4169e1",
572
+ turquoise: "#40e0d0",
573
+ yellowgreen: "#9acd32",
574
+ salmon: "#fa8072",
575
+ saddlebrown: "#8b4513",
576
+ sandybrown: "#f4a460",
577
+ rosybrown: "#bc8f8f",
578
+ darksalmon: "#e9967a",
579
+ lightgoldenrodyellow: "#fafad2",
580
+ snow: "#fffafa",
581
+ lightgrey: "#d3d3d3",
582
+ lightgray: "#d3d3d3",
583
+ dimgray: "#696969",
584
+ dimgrey: "#696969",
585
+ olivedrab: "#6b8e23",
586
+ olive: "#808000"
587
+ }, r = {};
588
+ for (var i in n) r[n[i]] = i;
589
+ var a = {};
590
+ e.prototype.toName = function(t) {
591
+ if (!(this.rgba.a || this.rgba.r || this.rgba.g || this.rgba.b)) return "transparent";
592
+ var i, o, s = r[this.toHex()];
593
+ if (s) return s;
594
+ if (t?.closest) {
595
+ var c = this.toRgb(), l = 1 / 0, u = "black";
596
+ if (!a.length) for (var d in n) a[d] = new e(n[d]).toRgb();
597
+ for (var f in n) {
598
+ var p = (i = c, o = a[f], (i.r - o.r) ** 2 + (i.g - o.g) ** 2 + (i.b - o.b) ** 2);
599
+ p < l && (l = p, u = f);
600
+ }
601
+ return u;
602
+ }
603
+ }, t.string.push([function(t) {
604
+ var r = t.toLowerCase(), i = r === "transparent" ? "#0000" : n[r];
605
+ return i ? new e(i).toRgb() : null;
606
+ }, "name"]);
607
+ }
608
+ //#endregion
609
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/color/Color.mjs
610
+ fe([pe]);
611
+ var C = class e {
612
+ constructor(e = 16777215) {
613
+ this._value = null, this._components = /* @__PURE__ */ new Float32Array(4), this._components.fill(1), this._int = 16777215, this.value = e;
614
+ }
615
+ get red() {
616
+ return this._components[0];
617
+ }
618
+ get green() {
619
+ return this._components[1];
620
+ }
621
+ get blue() {
622
+ return this._components[2];
623
+ }
624
+ get alpha() {
625
+ return this._components[3];
626
+ }
627
+ setValue(e) {
628
+ return this.value = e, this;
629
+ }
630
+ set value(t) {
631
+ if (t instanceof e) this._value = this._cloneSource(t._value), this._int = t._int, this._components.set(t._components);
632
+ else if (t === null) throw Error("Cannot set Color#value to null");
633
+ else (this._value === null || !this._isSourceEqual(this._value, t)) && (this._value = this._cloneSource(t), this._normalize(this._value));
634
+ }
635
+ get value() {
636
+ return this._value;
637
+ }
638
+ _cloneSource(e) {
639
+ return typeof e == "string" || typeof e == "number" || e instanceof Number || e === null ? e : Array.isArray(e) || ArrayBuffer.isView(e) ? e.slice(0) : typeof e == "object" && e ? { ...e } : e;
640
+ }
641
+ _isSourceEqual(e, t) {
642
+ let n = typeof e;
643
+ if (n !== typeof t) return !1;
644
+ if (n === "number" || n === "string" || e instanceof Number) return e === t;
645
+ if (Array.isArray(e) && Array.isArray(t) || ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) return e.length === t.length && e.every((e, n) => e === t[n]);
646
+ if (e !== null && t !== null) {
647
+ let n = Object.keys(e), r = Object.keys(t);
648
+ return n.length === r.length && n.every((n) => e[n] === t[n]);
649
+ }
650
+ return e === t;
651
+ }
652
+ toRgba() {
653
+ let [e, t, n, r] = this._components;
654
+ return {
655
+ r: e,
656
+ g: t,
657
+ b: n,
658
+ a: r
659
+ };
660
+ }
661
+ toRgb() {
662
+ let [e, t, n] = this._components;
663
+ return {
664
+ r: e,
665
+ g: t,
666
+ b: n
667
+ };
668
+ }
669
+ toRgbaString() {
670
+ let [e, t, n] = this.toUint8RgbArray();
671
+ return `rgba(${e},${t},${n},${this.alpha})`;
672
+ }
673
+ toUint8RgbArray(e) {
674
+ let [t, n, r] = this._components;
675
+ return this._arrayRgb ||= [], e ||= this._arrayRgb, e[0] = Math.round(t * 255), e[1] = Math.round(n * 255), e[2] = Math.round(r * 255), e;
676
+ }
677
+ toArray(e) {
678
+ this._arrayRgba ||= [], e ||= this._arrayRgba;
679
+ let [t, n, r, i] = this._components;
680
+ return e[0] = t, e[1] = n, e[2] = r, e[3] = i, e;
681
+ }
682
+ toRgbArray(e) {
683
+ this._arrayRgb ||= [], e ||= this._arrayRgb;
684
+ let [t, n, r] = this._components;
685
+ return e[0] = t, e[1] = n, e[2] = r, e;
686
+ }
687
+ toNumber() {
688
+ return this._int;
689
+ }
690
+ toBgrNumber() {
691
+ let [e, t, n] = this.toUint8RgbArray();
692
+ return (n << 16) + (t << 8) + e;
693
+ }
694
+ toLittleEndianNumber() {
695
+ let e = this._int;
696
+ return (e >> 16) + (e & 65280) + ((e & 255) << 16);
697
+ }
698
+ multiply(t) {
699
+ let [n, r, i, a] = e._temp.setValue(t)._components;
700
+ return this._components[0] *= n, this._components[1] *= r, this._components[2] *= i, this._components[3] *= a, this._refreshInt(), this._value = null, this;
701
+ }
702
+ premultiply(e, t = !0) {
703
+ return t && (this._components[0] *= e, this._components[1] *= e, this._components[2] *= e), this._components[3] = e, this._refreshInt(), this._value = null, this;
704
+ }
705
+ toPremultiplied(e, t = !0) {
706
+ if (e === 1) return (255 << 24) + this._int;
707
+ if (e === 0) return t ? 0 : this._int;
708
+ let n = this._int >> 16 & 255, r = this._int >> 8 & 255, i = this._int & 255;
709
+ return t && (n = n * e + .5 | 0, r = r * e + .5 | 0, i = i * e + .5 | 0), (e * 255 << 24) + (n << 16) + (r << 8) + i;
710
+ }
711
+ toHex() {
712
+ let e = this._int.toString(16);
713
+ return `#${"000000".substring(0, 6 - e.length) + e}`;
714
+ }
715
+ toHexa() {
716
+ let e = Math.round(this._components[3] * 255).toString(16);
717
+ return this.toHex() + "00".substring(0, 2 - e.length) + e;
718
+ }
719
+ setAlpha(e) {
720
+ return this._components[3] = this._clamp(e), this._value = null, this;
721
+ }
722
+ _normalize(t) {
723
+ let n, r, i, a;
724
+ if ((typeof t == "number" || t instanceof Number) && t >= 0 && t <= 16777215) {
725
+ let e = t;
726
+ n = (e >> 16 & 255) / 255, r = (e >> 8 & 255) / 255, i = (e & 255) / 255, a = 1;
727
+ } else if ((Array.isArray(t) || t instanceof Float32Array) && t.length >= 3 && t.length <= 4) t = this._clamp(t), [n, r, i, a = 1] = t;
728
+ else if ((t instanceof Uint8Array || t instanceof Uint8ClampedArray) && t.length >= 3 && t.length <= 4) t = this._clamp(t, 0, 255), [n, r, i, a = 255] = t, n /= 255, r /= 255, i /= 255, a /= 255;
729
+ else if (typeof t == "string" || typeof t == "object") {
730
+ if (typeof t == "string") {
731
+ let n = e.HEX_PATTERN.exec(t);
732
+ n && (t = `#${n[2]}`);
733
+ }
734
+ let o = S(t);
735
+ o.isValid() && ({r: n, g: r, b: i, a} = o.rgba, n /= 255, r /= 255, i /= 255);
736
+ }
737
+ if (n !== void 0) this._components[0] = n, this._components[1] = r, this._components[2] = i, this._components[3] = a, this._refreshInt();
738
+ else throw Error(`Unable to convert color ${t}`);
739
+ }
740
+ _refreshInt() {
741
+ this._clamp(this._components);
742
+ let [e, t, n] = this._components;
743
+ this._int = (e * 255 << 16) + (t * 255 << 8) + (n * 255 | 0);
744
+ }
745
+ _clamp(e, t = 0, n = 1) {
746
+ return typeof e == "number" ? Math.min(Math.max(e, t), n) : (e.forEach((r, i) => {
747
+ e[i] = Math.min(Math.max(r, t), n);
748
+ }), e);
749
+ }
750
+ static isColorLike(t) {
751
+ return typeof t == "number" || typeof t == "string" || t instanceof Number || t instanceof e || Array.isArray(t) || t instanceof Uint8Array || t instanceof Uint8ClampedArray || t instanceof Float32Array || t.r !== void 0 && t.g !== void 0 && t.b !== void 0 || t.r !== void 0 && t.g !== void 0 && t.b !== void 0 && t.a !== void 0 || t.h !== void 0 && t.s !== void 0 && t.l !== void 0 || t.h !== void 0 && t.s !== void 0 && t.l !== void 0 && t.a !== void 0 || t.h !== void 0 && t.s !== void 0 && t.v !== void 0 || t.h !== void 0 && t.s !== void 0 && t.v !== void 0 && t.a !== void 0;
752
+ }
753
+ };
754
+ C.shared = new C(), C._temp = new C(), C.HEX_PATTERN = /^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;
755
+ var me = C, he = {
756
+ cullArea: null,
757
+ cullable: !1,
758
+ cullableChildren: !0
759
+ }, ge = Math.PI * 2, _e = 180 / Math.PI, ve = Math.PI / 180, w = class e {
760
+ constructor(e = 0, t = 0) {
761
+ this.x = 0, this.y = 0, this.x = e, this.y = t;
762
+ }
763
+ clone() {
764
+ return new e(this.x, this.y);
765
+ }
766
+ copyFrom(e) {
767
+ return this.set(e.x, e.y), this;
768
+ }
769
+ copyTo(e) {
770
+ return e.set(this.x, this.y), e;
771
+ }
772
+ equals(e) {
773
+ return e.x === this.x && e.y === this.y;
774
+ }
775
+ set(e = 0, t = e) {
776
+ return this.x = e, this.y = t, this;
777
+ }
778
+ toString() {
779
+ return `[pixi.js/math:Point x=${this.x} y=${this.y}]`;
780
+ }
781
+ static get shared() {
782
+ return ye.x = 0, ye.y = 0, ye;
783
+ }
784
+ }, ye = new w(), T = class e {
785
+ constructor(e = 1, t = 0, n = 0, r = 1, i = 0, a = 0) {
786
+ this.array = null, this.a = e, this.b = t, this.c = n, this.d = r, this.tx = i, this.ty = a;
787
+ }
788
+ fromArray(e) {
789
+ this.a = e[0], this.b = e[1], this.c = e[3], this.d = e[4], this.tx = e[2], this.ty = e[5];
790
+ }
791
+ set(e, t, n, r, i, a) {
792
+ return this.a = e, this.b = t, this.c = n, this.d = r, this.tx = i, this.ty = a, this;
793
+ }
794
+ toArray(e, t) {
795
+ this.array ||= /* @__PURE__ */ new Float32Array(9);
796
+ let n = t || this.array;
797
+ return e ? (n[0] = this.a, n[1] = this.b, n[2] = 0, n[3] = this.c, n[4] = this.d, n[5] = 0, n[6] = this.tx, n[7] = this.ty, n[8] = 1) : (n[0] = this.a, n[1] = this.c, n[2] = this.tx, n[3] = this.b, n[4] = this.d, n[5] = this.ty, n[6] = 0, n[7] = 0, n[8] = 1), n;
798
+ }
799
+ apply(e, t) {
800
+ t ||= new w();
801
+ let n = e.x, r = e.y;
802
+ return t.x = this.a * n + this.c * r + this.tx, t.y = this.b * n + this.d * r + this.ty, t;
803
+ }
804
+ applyInverse(e, t) {
805
+ t ||= new w();
806
+ let n = this.a, r = this.b, i = this.c, a = this.d, o = this.tx, s = this.ty, c = 1 / (n * a + i * -r), l = e.x, u = e.y;
807
+ return t.x = a * c * l + -i * c * u + (s * i - o * a) * c, t.y = n * c * u + -r * c * l + (-s * n + o * r) * c, t;
808
+ }
809
+ translate(e, t) {
810
+ return this.tx += e, this.ty += t, this;
811
+ }
812
+ scale(e, t) {
813
+ return this.a *= e, this.d *= t, this.c *= e, this.b *= t, this.tx *= e, this.ty *= t, this;
814
+ }
815
+ rotate(e) {
816
+ let t = Math.cos(e), n = Math.sin(e), r = this.a, i = this.c, a = this.tx;
817
+ return this.a = r * t - this.b * n, this.b = r * n + this.b * t, this.c = i * t - this.d * n, this.d = i * n + this.d * t, this.tx = a * t - this.ty * n, this.ty = a * n + this.ty * t, this;
818
+ }
819
+ append(e) {
820
+ let t = this.a, n = this.b, r = this.c, i = this.d;
821
+ return this.a = e.a * t + e.b * r, this.b = e.a * n + e.b * i, this.c = e.c * t + e.d * r, this.d = e.c * n + e.d * i, this.tx = e.tx * t + e.ty * r + this.tx, this.ty = e.tx * n + e.ty * i + this.ty, this;
822
+ }
823
+ appendFrom(e, t) {
824
+ let n = e.a, r = e.b, i = e.c, a = e.d, o = e.tx, s = e.ty, c = t.a, l = t.b, u = t.c, d = t.d;
825
+ return this.a = n * c + r * u, this.b = n * l + r * d, this.c = i * c + a * u, this.d = i * l + a * d, this.tx = o * c + s * u + t.tx, this.ty = o * l + s * d + t.ty, this;
826
+ }
827
+ setTransform(e, t, n, r, i, a, o, s, c) {
828
+ return this.a = Math.cos(o + c) * i, this.b = Math.sin(o + c) * i, this.c = -Math.sin(o - s) * a, this.d = Math.cos(o - s) * a, this.tx = e - (n * this.a + r * this.c), this.ty = t - (n * this.b + r * this.d), this;
829
+ }
830
+ prepend(e) {
831
+ let t = this.tx;
832
+ if (e.a !== 1 || e.b !== 0 || e.c !== 0 || e.d !== 1) {
833
+ let t = this.a, n = this.c;
834
+ this.a = t * e.a + this.b * e.c, this.b = t * e.b + this.b * e.d, this.c = n * e.a + this.d * e.c, this.d = n * e.b + this.d * e.d;
835
+ }
836
+ return this.tx = t * e.a + this.ty * e.c + e.tx, this.ty = t * e.b + this.ty * e.d + e.ty, this;
837
+ }
838
+ decompose(e) {
839
+ let t = this.a, n = this.b, r = this.c, i = this.d, a = e.pivot, o = -Math.atan2(-r, i), s = Math.atan2(n, t), c = Math.abs(o + s);
840
+ return c < 1e-5 || Math.abs(ge - c) < 1e-5 ? (e.rotation = s, e.skew.x = e.skew.y = 0) : (e.rotation = 0, e.skew.x = o, e.skew.y = s), e.scale.x = Math.sqrt(t * t + n * n), e.scale.y = Math.sqrt(r * r + i * i), e.position.x = this.tx + (a.x * t + a.y * r), e.position.y = this.ty + (a.x * n + a.y * i), e;
841
+ }
842
+ invert() {
843
+ let e = this.a, t = this.b, n = this.c, r = this.d, i = this.tx, a = e * r - t * n;
844
+ return this.a = r / a, this.b = -t / a, this.c = -n / a, this.d = e / a, this.tx = (n * this.ty - r * i) / a, this.ty = -(e * this.ty - t * i) / a, this;
845
+ }
846
+ isIdentity() {
847
+ return this.a === 1 && this.b === 0 && this.c === 0 && this.d === 1 && this.tx === 0 && this.ty === 0;
848
+ }
849
+ identity() {
850
+ return this.a = 1, this.b = 0, this.c = 0, this.d = 1, this.tx = 0, this.ty = 0, this;
851
+ }
852
+ clone() {
853
+ let t = new e();
854
+ return t.a = this.a, t.b = this.b, t.c = this.c, t.d = this.d, t.tx = this.tx, t.ty = this.ty, t;
855
+ }
856
+ copyTo(e) {
857
+ return e.a = this.a, e.b = this.b, e.c = this.c, e.d = this.d, e.tx = this.tx, e.ty = this.ty, e;
858
+ }
859
+ copyFrom(e) {
860
+ return this.a = e.a, this.b = e.b, this.c = e.c, this.d = e.d, this.tx = e.tx, this.ty = e.ty, this;
861
+ }
862
+ equals(e) {
863
+ return e.a === this.a && e.b === this.b && e.c === this.c && e.d === this.d && e.tx === this.tx && e.ty === this.ty;
864
+ }
865
+ toString() {
866
+ return `[pixi.js:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`;
867
+ }
868
+ static get IDENTITY() {
869
+ return xe.identity();
870
+ }
871
+ static get shared() {
872
+ return be.identity();
873
+ }
874
+ }, be = new T(), xe = new T(), E = class e {
875
+ constructor(e, t, n) {
876
+ this._x = t || 0, this._y = n || 0, this._observer = e;
877
+ }
878
+ clone(t) {
879
+ return new e(t ?? this._observer, this._x, this._y);
880
+ }
881
+ set(e = 0, t = e) {
882
+ return (this._x !== e || this._y !== t) && (this._x = e, this._y = t, this._observer._onUpdate(this)), this;
883
+ }
884
+ copyFrom(e) {
885
+ return (this._x !== e.x || this._y !== e.y) && (this._x = e.x, this._y = e.y, this._observer._onUpdate(this)), this;
886
+ }
887
+ copyTo(e) {
888
+ return e.set(this._x, this._y), e;
889
+ }
890
+ equals(e) {
891
+ return e.x === this._x && e.y === this._y;
892
+ }
893
+ toString() {
894
+ return `[pixi.js/math:ObservablePoint x=${this._x} y=${this._y} scope=${this._observer}]`;
895
+ }
896
+ get x() {
897
+ return this._x;
898
+ }
899
+ set x(e) {
900
+ this._x !== e && (this._x = e, this._observer._onUpdate(this));
901
+ }
902
+ get y() {
903
+ return this._y;
904
+ }
905
+ set y(e) {
906
+ this._y !== e && (this._y = e, this._observer._onUpdate(this));
907
+ }
908
+ }, Se = { default: -1 };
909
+ function D(e = "default") {
910
+ return Se[e] === void 0 && (Se[e] = -1), ++Se[e];
911
+ }
912
+ //#endregion
913
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/utils/logging/deprecation.mjs
914
+ var Ce = /* @__PURE__ */ new Set(), O = "8.0.0", we = "8.3.4", k = {
915
+ quiet: !1,
916
+ noColor: !1
917
+ }, A = ((e, t, n = 3) => {
918
+ if (k.quiet || Ce.has(t)) return;
919
+ let r = (/* @__PURE__ */ Error()).stack, i = `${t}
920
+ Deprecated since v${e}`, a = typeof console.groupCollapsed == "function" && !k.noColor;
921
+ r === void 0 ? console.warn("PixiJS Deprecation Warning: ", i) : (r = r.split("\n").splice(n).join("\n"), a ? (console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s", "color:#614108;background:#fffbe6", "font-weight:normal;color:#614108;background:#fffbe6", i), console.warn(r), console.groupEnd()) : (console.warn("PixiJS Deprecation Warning: ", i), console.warn(r))), Ce.add(t);
922
+ });
923
+ Object.defineProperties(A, {
924
+ quiet: {
925
+ get: () => k.quiet,
926
+ set: (e) => {
927
+ k.quiet = e;
928
+ },
929
+ enumerable: !0,
930
+ configurable: !1
931
+ },
932
+ noColor: {
933
+ get: () => k.noColor,
934
+ set: (e) => {
935
+ k.noColor = e;
936
+ },
937
+ enumerable: !0,
938
+ configurable: !1
939
+ }
940
+ });
941
+ //#endregion
942
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/utils/logging/warn.mjs
943
+ var Te = 0, Ee = 500;
944
+ function De(...e) {
945
+ Te !== Ee && (Te++, Te === Ee ? console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.") : console.warn("PixiJS Warning: ", ...e));
946
+ }
947
+ //#endregion
948
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/utils/pool/GlobalResourceRegistry.mjs
949
+ var Oe = {
950
+ _registeredResources: /* @__PURE__ */ new Set(),
951
+ register(e) {
952
+ this._registeredResources.add(e);
953
+ },
954
+ unregister(e) {
955
+ this._registeredResources.delete(e);
956
+ },
957
+ release() {
958
+ this._registeredResources.forEach((e) => e.clear());
959
+ },
960
+ get registeredCount() {
961
+ return this._registeredResources.size;
962
+ },
963
+ isRegistered(e) {
964
+ return this._registeredResources.has(e);
965
+ },
966
+ reset() {
967
+ this._registeredResources.clear();
968
+ }
969
+ }, ke = class {
970
+ constructor(e, t) {
971
+ this._pool = [], this._count = 0, this._index = 0, this._classType = e, t && this.prepopulate(t);
972
+ }
973
+ prepopulate(e) {
974
+ for (let t = 0; t < e; t++) this._pool[this._index++] = new this._classType();
975
+ this._count += e;
976
+ }
977
+ get(e) {
978
+ let t;
979
+ return this._index > 0 ? t = this._pool[--this._index] : (t = new this._classType(), this._count++), t.init?.(e), t;
980
+ }
981
+ return(e) {
982
+ e.reset?.(), this._pool[this._index++] = e;
983
+ }
984
+ get totalSize() {
985
+ return this._count;
986
+ }
987
+ get totalFree() {
988
+ return this._index;
989
+ }
990
+ get totalUsed() {
991
+ return this._count - this._index;
992
+ }
993
+ clear() {
994
+ if (this._pool.length > 0 && this._pool[0].destroy) for (let e = 0; e < this._index; e++) this._pool[e].destroy();
995
+ this._pool.length = 0, this._count = 0, this._index = 0;
996
+ }
997
+ }, j = new class {
998
+ constructor() {
999
+ this._poolsByClass = /* @__PURE__ */ new Map();
1000
+ }
1001
+ prepopulate(e, t) {
1002
+ this.getPool(e).prepopulate(t);
1003
+ }
1004
+ get(e, t) {
1005
+ return this.getPool(e).get(t);
1006
+ }
1007
+ return(e) {
1008
+ this.getPool(e.constructor).return(e);
1009
+ }
1010
+ getPool(e) {
1011
+ return this._poolsByClass.has(e) || this._poolsByClass.set(e, new ke(e)), this._poolsByClass.get(e);
1012
+ }
1013
+ stats() {
1014
+ let e = {};
1015
+ return this._poolsByClass.forEach((t) => {
1016
+ let n = e[t._classType.name] ? t._classType.name + t._classType.ID : t._classType.name;
1017
+ e[n] = {
1018
+ free: t.totalFree,
1019
+ used: t.totalUsed,
1020
+ size: t.totalSize
1021
+ };
1022
+ }), e;
1023
+ }
1024
+ clear() {
1025
+ this._poolsByClass.forEach((e) => e.clear()), this._poolsByClass.clear();
1026
+ }
1027
+ }();
1028
+ Oe.register(j);
1029
+ //#endregion
1030
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.mjs
1031
+ var Ae = {
1032
+ get isCachedAsTexture() {
1033
+ return !!this.renderGroup?.isCachedAsTexture;
1034
+ },
1035
+ cacheAsTexture(e) {
1036
+ typeof e == "boolean" && e === !1 ? this.disableRenderGroup() : (this.enableRenderGroup(), this.renderGroup.enableCacheAsTexture(e === !0 ? {} : e));
1037
+ },
1038
+ updateCacheTexture() {
1039
+ this.renderGroup?.updateCacheTexture();
1040
+ },
1041
+ get cacheAsBitmap() {
1042
+ return this.isCachedAsTexture;
1043
+ },
1044
+ set cacheAsBitmap(e) {
1045
+ A("v8.6.0", "cacheAsBitmap is deprecated, use cacheAsTexture instead."), this.cacheAsTexture(e);
1046
+ }
1047
+ };
1048
+ //#endregion
1049
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/utils/data/removeItems.mjs
1050
+ function je(e, t, n) {
1051
+ let r = e.length, i;
1052
+ if (t >= r || n === 0) return;
1053
+ n = t + n > r ? r - t : n;
1054
+ let a = r - n;
1055
+ for (i = t; i < a; ++i) e[i] = e[i + n];
1056
+ e.length = a;
1057
+ }
1058
+ //#endregion
1059
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.mjs
1060
+ var Me = {
1061
+ allowChildren: !0,
1062
+ removeChildren(e = 0, t) {
1063
+ let n = t ?? this.children.length, r = n - e, i = [];
1064
+ if (r > 0 && r <= n) {
1065
+ for (let t = n - 1; t >= e; t--) {
1066
+ let e = this.children[t];
1067
+ e && (i.push(e), e.parent = null);
1068
+ }
1069
+ je(this.children, e, n);
1070
+ let t = this.renderGroup || this.parentRenderGroup;
1071
+ t && t.removeChildren(i);
1072
+ for (let e = 0; e < i.length; ++e) {
1073
+ let t = i[e];
1074
+ t.parentRenderLayer?.detach(t), this.emit("childRemoved", t, this, e), i[e].emit("removed", this);
1075
+ }
1076
+ return i.length > 0 && this._didViewChangeTick++, i;
1077
+ }
1078
+ if (r === 0 && this.children.length === 0) return i;
1079
+ throw RangeError("removeChildren: numeric values are outside the acceptable range.");
1080
+ },
1081
+ removeChildAt(e) {
1082
+ let t = this.getChildAt(e);
1083
+ return this.removeChild(t);
1084
+ },
1085
+ getChildAt(e) {
1086
+ if (e < 0 || e >= this.children.length) throw Error(`getChildAt: Index (${e}) does not exist.`);
1087
+ return this.children[e];
1088
+ },
1089
+ setChildIndex(e, t) {
1090
+ if (t < 0 || t >= this.children.length) throw Error(`The index ${t} supplied is out of bounds ${this.children.length}`);
1091
+ this.getChildIndex(e), this.addChildAt(e, t);
1092
+ },
1093
+ getChildIndex(e) {
1094
+ let t = this.children.indexOf(e);
1095
+ if (t === -1) throw Error("The supplied Container must be a child of the caller");
1096
+ return t;
1097
+ },
1098
+ addChildAt(e, t) {
1099
+ this.allowChildren || A(O, "addChildAt: Only Containers will be allowed to add children in v8.0.0");
1100
+ let { children: n } = this;
1101
+ if (t < 0 || t > n.length) throw Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${n.length}`);
1102
+ let r = e.parent === this;
1103
+ if (e.parent) {
1104
+ let n = e.parent.children.indexOf(e);
1105
+ if (r) {
1106
+ if (n === t) return e;
1107
+ e.parent.children.splice(n, 1);
1108
+ } else e.removeFromParent();
1109
+ }
1110
+ t === n.length ? n.push(e) : n.splice(t, 0, e), e.parent = this, e.didChange = !0, e._updateFlags = 15;
1111
+ let i = this.renderGroup || this.parentRenderGroup;
1112
+ return i && i.addChild(e), this.sortableChildren && (this.sortDirty = !0), r ? e : (this.emit("childAdded", e, this, t), e.emit("added", this), e);
1113
+ },
1114
+ swapChildren(e, t) {
1115
+ if (e === t) return;
1116
+ let n = this.getChildIndex(e), r = this.getChildIndex(t);
1117
+ this.children[n] = t, this.children[r] = e;
1118
+ let i = this.renderGroup || this.parentRenderGroup;
1119
+ i && (i.structureDidChange = !0), this._didContainerChangeTick++;
1120
+ },
1121
+ removeFromParent() {
1122
+ this.parent?.removeChild(this);
1123
+ },
1124
+ reparentChild(...e) {
1125
+ return e.length === 1 ? this.reparentChildAt(e[0], this.children.length) : (e.forEach((e) => this.reparentChildAt(e, this.children.length)), e[0]);
1126
+ },
1127
+ reparentChildAt(e, t) {
1128
+ if (e.parent === this) return this.setChildIndex(e, t), e;
1129
+ let n = e.worldTransform.clone();
1130
+ e.removeFromParent(), this.addChildAt(e, t);
1131
+ let r = this.worldTransform.clone();
1132
+ return r.invert(), n.prepend(r), e.setFromMatrix(n), e;
1133
+ },
1134
+ replaceChild(e, t) {
1135
+ e.updateLocalTransform(), this.addChildAt(t, this.getChildIndex(e)), t.setFromMatrix(e.localTransform), t.updateLocalTransform(), this.removeChild(e);
1136
+ }
1137
+ }, Ne = {
1138
+ collectRenderables(e, t, n) {
1139
+ this.parentRenderLayer && this.parentRenderLayer !== n || this.globalDisplayStatus < 7 || !this.includeInBuild || (this.sortableChildren && this.sortChildren(), this.isSimple ? this.collectRenderablesSimple(e, t, n) : this.renderGroup ? t.renderPipes.renderGroup.addRenderGroup(this.renderGroup, e) : this.collectRenderablesWithEffects(e, t, n));
1140
+ },
1141
+ collectRenderablesSimple(e, t, n) {
1142
+ let r = this.children, i = r.length;
1143
+ for (let a = 0; a < i; a++) r[a].collectRenderables(e, t, n);
1144
+ },
1145
+ collectRenderablesWithEffects(e, t, n) {
1146
+ let { renderPipes: r } = t;
1147
+ for (let t = 0; t < this.effects.length; t++) {
1148
+ let n = this.effects[t];
1149
+ r[n.pipe].push(n, this, e);
1150
+ }
1151
+ this.collectRenderablesSimple(e, t, n);
1152
+ for (let t = this.effects.length - 1; t >= 0; t--) {
1153
+ let n = this.effects[t];
1154
+ r[n.pipe].pop(n, this, e);
1155
+ }
1156
+ }
1157
+ }, Pe = class {
1158
+ constructor() {
1159
+ this.pipe = "filter", this.priority = 1;
1160
+ }
1161
+ destroy() {
1162
+ for (let e = 0; e < this.filters.length; e++) this.filters[e].destroy();
1163
+ this.filters = null, this.filterArea = null;
1164
+ }
1165
+ }, Fe = new class {
1166
+ constructor() {
1167
+ this._effectClasses = [], this._tests = [], this._initialized = !1;
1168
+ }
1169
+ init() {
1170
+ this._initialized || (this._initialized = !0, this._effectClasses.forEach((e) => {
1171
+ this.add({
1172
+ test: e.test,
1173
+ maskClass: e
1174
+ });
1175
+ }));
1176
+ }
1177
+ add(e) {
1178
+ this._tests.push(e);
1179
+ }
1180
+ getMaskEffect(e) {
1181
+ this._initialized || this.init();
1182
+ for (let t = 0; t < this._tests.length; t++) {
1183
+ let n = this._tests[t];
1184
+ if (n.test(e)) return j.get(n.maskClass, e);
1185
+ }
1186
+ return e;
1187
+ }
1188
+ returnMaskEffect(e) {
1189
+ j.return(e);
1190
+ }
1191
+ }();
1192
+ a.handleByList(n.MaskEffect, Fe._effectClasses);
1193
+ //#endregion
1194
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.mjs
1195
+ var Ie = {
1196
+ _maskEffect: null,
1197
+ _maskOptions: {
1198
+ inverse: !1,
1199
+ channel: "red"
1200
+ },
1201
+ _filterEffect: null,
1202
+ effects: [],
1203
+ _markStructureAsChanged() {
1204
+ let e = this.renderGroup || this.parentRenderGroup;
1205
+ e && (e.structureDidChange = !0);
1206
+ },
1207
+ addEffect(e) {
1208
+ this.effects.indexOf(e) === -1 && (this.effects.push(e), this.effects.sort((e, t) => e.priority - t.priority), this._markStructureAsChanged(), this._updateIsSimple());
1209
+ },
1210
+ removeEffect(e) {
1211
+ let t = this.effects.indexOf(e);
1212
+ t !== -1 && (this.effects.splice(t, 1), this._markStructureAsChanged(), this._updateIsSimple());
1213
+ },
1214
+ set mask(e) {
1215
+ let t = this._maskEffect;
1216
+ t?.mask !== e && (t && (this.removeEffect(t), Fe.returnMaskEffect(t), this._maskEffect = null), e != null && (this._maskEffect = Fe.getMaskEffect(e), this.addEffect(this._maskEffect)));
1217
+ },
1218
+ get mask() {
1219
+ return this._maskEffect?.mask;
1220
+ },
1221
+ setMask(e) {
1222
+ this._maskOptions = {
1223
+ ...this._maskOptions,
1224
+ ...e
1225
+ }, e.mask && (this.mask = e.mask), this._markStructureAsChanged();
1226
+ },
1227
+ set filters(e) {
1228
+ !Array.isArray(e) && e && (e = [e]);
1229
+ let t = this._filterEffect ||= new Pe();
1230
+ e = e;
1231
+ let n = e?.length > 0, r = n !== t.filters?.length > 0;
1232
+ e = Array.isArray(e) ? e.slice(0) : e, t.filters = Object.freeze(e), r && (n ? this.addEffect(t) : (this.removeEffect(t), t.filters = e ?? null));
1233
+ },
1234
+ get filters() {
1235
+ return this._filterEffect?.filters;
1236
+ },
1237
+ set filterArea(e) {
1238
+ this._filterEffect ||= new Pe(), this._filterEffect.filterArea = e;
1239
+ },
1240
+ get filterArea() {
1241
+ return this._filterEffect?.filterArea;
1242
+ }
1243
+ }, Le = {
1244
+ label: null,
1245
+ get name() {
1246
+ return A(O, "Container.name property has been removed, use Container.label instead"), this.label;
1247
+ },
1248
+ set name(e) {
1249
+ A(O, "Container.name property has been removed, use Container.label instead"), this.label = e;
1250
+ },
1251
+ getChildByName(e, t = !1) {
1252
+ return this.getChildByLabel(e, t);
1253
+ },
1254
+ getChildByLabel(e, t = !1) {
1255
+ let n = this.children;
1256
+ for (let t = 0; t < n.length; t++) {
1257
+ let r = n[t];
1258
+ if (r.label === e || e instanceof RegExp && e.test(r.label)) return r;
1259
+ }
1260
+ if (t) for (let t = 0; t < n.length; t++) {
1261
+ let r = n[t].getChildByLabel(e, !0);
1262
+ if (r) return r;
1263
+ }
1264
+ return null;
1265
+ },
1266
+ getChildrenByLabel(e, t = !1, n = []) {
1267
+ let r = this.children;
1268
+ for (let t = 0; t < r.length; t++) {
1269
+ let i = r[t];
1270
+ (i.label === e || e instanceof RegExp && e.test(i.label)) && n.push(i);
1271
+ }
1272
+ if (t) for (let t = 0; t < r.length; t++) r[t].getChildrenByLabel(e, !0, n);
1273
+ return n;
1274
+ }
1275
+ }, Re = [
1276
+ new w(),
1277
+ new w(),
1278
+ new w(),
1279
+ new w()
1280
+ ], ze = class e {
1281
+ constructor(e = 0, t = 0, n = 0, r = 0) {
1282
+ this.type = "rectangle", this.x = Number(e), this.y = Number(t), this.width = Number(n), this.height = Number(r);
1283
+ }
1284
+ get left() {
1285
+ return this.x;
1286
+ }
1287
+ get right() {
1288
+ return this.x + this.width;
1289
+ }
1290
+ get top() {
1291
+ return this.y;
1292
+ }
1293
+ get bottom() {
1294
+ return this.y + this.height;
1295
+ }
1296
+ isEmpty() {
1297
+ return this.left === this.right || this.top === this.bottom;
1298
+ }
1299
+ static get EMPTY() {
1300
+ return new e(0, 0, 0, 0);
1301
+ }
1302
+ clone() {
1303
+ return new e(this.x, this.y, this.width, this.height);
1304
+ }
1305
+ copyFromBounds(e) {
1306
+ return this.x = e.minX, this.y = e.minY, this.width = e.maxX - e.minX, this.height = e.maxY - e.minY, this;
1307
+ }
1308
+ copyFrom(e) {
1309
+ return this.x = e.x, this.y = e.y, this.width = e.width, this.height = e.height, this;
1310
+ }
1311
+ copyTo(e) {
1312
+ return e.copyFrom(this), e;
1313
+ }
1314
+ contains(e, t) {
1315
+ return this.width <= 0 || this.height <= 0 ? !1 : e >= this.x && e < this.x + this.width && t >= this.y && t < this.y + this.height;
1316
+ }
1317
+ strokeContains(e, t, n, r = .5) {
1318
+ let { width: i, height: a } = this;
1319
+ if (i <= 0 || a <= 0) return !1;
1320
+ let o = this.x, s = this.y, c = n * (1 - r), l = n - c, u = o - c, d = o + i + c, f = s - c, p = s + a + c, m = o + l, h = o + i - l, g = s + l, _ = s + a - l;
1321
+ return e >= u && e <= d && t >= f && t <= p && !(e > m && e < h && t > g && t < _);
1322
+ }
1323
+ intersects(e, t) {
1324
+ if (!t) {
1325
+ let t = this.x < e.x ? e.x : this.x;
1326
+ if ((this.right > e.right ? e.right : this.right) <= t) return !1;
1327
+ let n = this.y < e.y ? e.y : this.y;
1328
+ return (this.bottom > e.bottom ? e.bottom : this.bottom) > n;
1329
+ }
1330
+ let n = this.left, r = this.right, i = this.top, a = this.bottom;
1331
+ if (r <= n || a <= i) return !1;
1332
+ let o = Re[0].set(e.left, e.top), s = Re[1].set(e.left, e.bottom), c = Re[2].set(e.right, e.top), l = Re[3].set(e.right, e.bottom);
1333
+ if (c.x <= o.x || s.y <= o.y) return !1;
1334
+ let u = Math.sign(t.a * t.d - t.b * t.c);
1335
+ if (u === 0 || (t.apply(o, o), t.apply(s, s), t.apply(c, c), t.apply(l, l), Math.max(o.x, s.x, c.x, l.x) <= n || Math.min(o.x, s.x, c.x, l.x) >= r || Math.max(o.y, s.y, c.y, l.y) <= i || Math.min(o.y, s.y, c.y, l.y) >= a)) return !1;
1336
+ let d = u * (s.y - o.y), f = u * (o.x - s.x), p = d * n + f * i, m = d * r + f * i, h = d * n + f * a, g = d * r + f * a;
1337
+ if (Math.max(p, m, h, g) <= d * o.x + f * o.y || Math.min(p, m, h, g) >= d * l.x + f * l.y) return !1;
1338
+ let _ = u * (o.y - c.y), v = u * (c.x - o.x), y = _ * n + v * i, b = _ * r + v * i, x = _ * n + v * a, ee = _ * r + v * a;
1339
+ return !(Math.max(y, b, x, ee) <= _ * o.x + v * o.y || Math.min(y, b, x, ee) >= _ * l.x + v * l.y);
1340
+ }
1341
+ pad(e = 0, t = e) {
1342
+ return this.x -= e, this.y -= t, this.width += e * 2, this.height += t * 2, this;
1343
+ }
1344
+ fit(e) {
1345
+ let t = Math.max(this.x, e.x), n = Math.min(this.x + this.width, e.x + e.width), r = Math.max(this.y, e.y), i = Math.min(this.y + this.height, e.y + e.height);
1346
+ return this.x = t, this.width = Math.max(n - t, 0), this.y = r, this.height = Math.max(i - r, 0), this;
1347
+ }
1348
+ ceil(e = 1, t = .001) {
1349
+ let n = Math.ceil((this.x + this.width - t) * e) / e, r = Math.ceil((this.y + this.height - t) * e) / e;
1350
+ return this.x = Math.floor((this.x + t) * e) / e, this.y = Math.floor((this.y + t) * e) / e, this.width = n - this.x, this.height = r - this.y, this;
1351
+ }
1352
+ scale(e, t = e) {
1353
+ return this.x *= e, this.y *= t, this.width *= e, this.height *= t, this;
1354
+ }
1355
+ enlarge(e) {
1356
+ let t = Math.min(this.x, e.x), n = Math.max(this.x + this.width, e.x + e.width), r = Math.min(this.y, e.y), i = Math.max(this.y + this.height, e.y + e.height);
1357
+ return this.x = t, this.width = n - t, this.y = r, this.height = i - r, this;
1358
+ }
1359
+ getBounds(t) {
1360
+ return t ||= new e(), t.copyFrom(this), t;
1361
+ }
1362
+ containsRect(e) {
1363
+ if (this.width <= 0 || this.height <= 0) return !1;
1364
+ let t = e.x, n = e.y, r = e.x + e.width, i = e.y + e.height;
1365
+ return t >= this.x && t < this.x + this.width && n >= this.y && n < this.y + this.height && r >= this.x && r < this.x + this.width && i >= this.y && i < this.y + this.height;
1366
+ }
1367
+ set(e, t, n, r) {
1368
+ return this.x = e, this.y = t, this.width = n, this.height = r, this;
1369
+ }
1370
+ toString() {
1371
+ return `[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`;
1372
+ }
1373
+ }, Be = new T(), M = class e {
1374
+ constructor(e = Infinity, t = Infinity, n = -Infinity, r = -Infinity) {
1375
+ this.minX = Infinity, this.minY = Infinity, this.maxX = -Infinity, this.maxY = -Infinity, this.matrix = Be, this.minX = e, this.minY = t, this.maxX = n, this.maxY = r;
1376
+ }
1377
+ isEmpty() {
1378
+ return this.minX > this.maxX || this.minY > this.maxY;
1379
+ }
1380
+ get rectangle() {
1381
+ this._rectangle ||= new ze();
1382
+ let e = this._rectangle;
1383
+ return this.minX > this.maxX || this.minY > this.maxY ? (e.x = 0, e.y = 0, e.width = 0, e.height = 0) : e.copyFromBounds(this), e;
1384
+ }
1385
+ clear() {
1386
+ return this.minX = Infinity, this.minY = Infinity, this.maxX = -Infinity, this.maxY = -Infinity, this.matrix = Be, this;
1387
+ }
1388
+ set(e, t, n, r) {
1389
+ this.minX = e, this.minY = t, this.maxX = n, this.maxY = r;
1390
+ }
1391
+ addFrame(e, t, n, r, i) {
1392
+ i ||= this.matrix;
1393
+ let a = i.a, o = i.b, s = i.c, c = i.d, l = i.tx, u = i.ty, d = this.minX, f = this.minY, p = this.maxX, m = this.maxY, h = a * e + s * t + l, g = o * e + c * t + u;
1394
+ h < d && (d = h), g < f && (f = g), h > p && (p = h), g > m && (m = g), h = a * n + s * t + l, g = o * n + c * t + u, h < d && (d = h), g < f && (f = g), h > p && (p = h), g > m && (m = g), h = a * e + s * r + l, g = o * e + c * r + u, h < d && (d = h), g < f && (f = g), h > p && (p = h), g > m && (m = g), h = a * n + s * r + l, g = o * n + c * r + u, h < d && (d = h), g < f && (f = g), h > p && (p = h), g > m && (m = g), this.minX = d, this.minY = f, this.maxX = p, this.maxY = m;
1395
+ }
1396
+ addRect(e, t) {
1397
+ this.addFrame(e.x, e.y, e.x + e.width, e.y + e.height, t);
1398
+ }
1399
+ addBounds(e, t) {
1400
+ this.addFrame(e.minX, e.minY, e.maxX, e.maxY, t);
1401
+ }
1402
+ addBoundsMask(e) {
1403
+ this.minX = this.minX > e.minX ? this.minX : e.minX, this.minY = this.minY > e.minY ? this.minY : e.minY, this.maxX = this.maxX < e.maxX ? this.maxX : e.maxX, this.maxY = this.maxY < e.maxY ? this.maxY : e.maxY;
1404
+ }
1405
+ applyMatrix(e) {
1406
+ let t = this.minX, n = this.minY, r = this.maxX, i = this.maxY, { a, b: o, c: s, d: c, tx: l, ty: u } = e, d = a * t + s * n + l, f = o * t + c * n + u;
1407
+ this.minX = d, this.minY = f, this.maxX = d, this.maxY = f, d = a * r + s * n + l, f = o * r + c * n + u, this.minX = d < this.minX ? d : this.minX, this.minY = f < this.minY ? f : this.minY, this.maxX = d > this.maxX ? d : this.maxX, this.maxY = f > this.maxY ? f : this.maxY, d = a * t + s * i + l, f = o * t + c * i + u, this.minX = d < this.minX ? d : this.minX, this.minY = f < this.minY ? f : this.minY, this.maxX = d > this.maxX ? d : this.maxX, this.maxY = f > this.maxY ? f : this.maxY, d = a * r + s * i + l, f = o * r + c * i + u, this.minX = d < this.minX ? d : this.minX, this.minY = f < this.minY ? f : this.minY, this.maxX = d > this.maxX ? d : this.maxX, this.maxY = f > this.maxY ? f : this.maxY;
1408
+ }
1409
+ fit(e) {
1410
+ return this.minX < e.left && (this.minX = e.left), this.maxX > e.right && (this.maxX = e.right), this.minY < e.top && (this.minY = e.top), this.maxY > e.bottom && (this.maxY = e.bottom), this;
1411
+ }
1412
+ fitBounds(e, t, n, r) {
1413
+ return this.minX < e && (this.minX = e), this.maxX > t && (this.maxX = t), this.minY < n && (this.minY = n), this.maxY > r && (this.maxY = r), this;
1414
+ }
1415
+ pad(e, t = e) {
1416
+ return this.minX -= e, this.maxX += e, this.minY -= t, this.maxY += t, this;
1417
+ }
1418
+ ceil() {
1419
+ return this.minX = Math.floor(this.minX), this.minY = Math.floor(this.minY), this.maxX = Math.ceil(this.maxX), this.maxY = Math.ceil(this.maxY), this;
1420
+ }
1421
+ clone() {
1422
+ return new e(this.minX, this.minY, this.maxX, this.maxY);
1423
+ }
1424
+ scale(e, t = e) {
1425
+ return this.minX *= e, this.minY *= t, this.maxX *= e, this.maxY *= t, this;
1426
+ }
1427
+ get x() {
1428
+ return this.minX;
1429
+ }
1430
+ set x(e) {
1431
+ let t = this.maxX - this.minX;
1432
+ this.minX = e, this.maxX = e + t;
1433
+ }
1434
+ get y() {
1435
+ return this.minY;
1436
+ }
1437
+ set y(e) {
1438
+ let t = this.maxY - this.minY;
1439
+ this.minY = e, this.maxY = e + t;
1440
+ }
1441
+ get width() {
1442
+ return this.maxX - this.minX;
1443
+ }
1444
+ set width(e) {
1445
+ this.maxX = this.minX + e;
1446
+ }
1447
+ get height() {
1448
+ return this.maxY - this.minY;
1449
+ }
1450
+ set height(e) {
1451
+ this.maxY = this.minY + e;
1452
+ }
1453
+ get left() {
1454
+ return this.minX;
1455
+ }
1456
+ get right() {
1457
+ return this.maxX;
1458
+ }
1459
+ get top() {
1460
+ return this.minY;
1461
+ }
1462
+ get bottom() {
1463
+ return this.maxY;
1464
+ }
1465
+ get isPositive() {
1466
+ return this.maxX - this.minX > 0 && this.maxY - this.minY > 0;
1467
+ }
1468
+ get isValid() {
1469
+ return this.minX + this.minY !== Infinity;
1470
+ }
1471
+ addVertexData(e, t, n, r) {
1472
+ let i = this.minX, a = this.minY, o = this.maxX, s = this.maxY;
1473
+ r ||= this.matrix;
1474
+ let c = r.a, l = r.b, u = r.c, d = r.d, f = r.tx, p = r.ty;
1475
+ for (let r = t; r < n; r += 2) {
1476
+ let t = e[r], n = e[r + 1], m = c * t + u * n + f, h = l * t + d * n + p;
1477
+ i = m < i ? m : i, a = h < a ? h : a, o = m > o ? m : o, s = h > s ? h : s;
1478
+ }
1479
+ this.minX = i, this.minY = a, this.maxX = o, this.maxY = s;
1480
+ }
1481
+ containsPoint(e, t) {
1482
+ return this.minX <= e && this.minY <= t && this.maxX >= e && this.maxY >= t;
1483
+ }
1484
+ toString() {
1485
+ return `[pixi.js:Bounds minX=${this.minX} minY=${this.minY} maxX=${this.maxX} maxY=${this.maxY} width=${this.width} height=${this.height}]`;
1486
+ }
1487
+ copyFrom(e) {
1488
+ return this.minX = e.minX, this.minY = e.minY, this.maxX = e.maxX, this.maxY = e.maxY, this;
1489
+ }
1490
+ }, N = j.getPool(T), P = j.getPool(M), Ve = new T(), He = {
1491
+ getFastGlobalBounds(e, t) {
1492
+ t ||= new M(), t.clear(), this._getGlobalBoundsRecursive(!!e, t, this.parentRenderLayer), t.isValid || t.set(0, 0, 0, 0);
1493
+ let n = this.renderGroup || this.parentRenderGroup;
1494
+ return t.applyMatrix(n.worldTransform), t;
1495
+ },
1496
+ _getGlobalBoundsRecursive(e, t, n) {
1497
+ let r = t;
1498
+ if (e && this.parentRenderLayer && this.parentRenderLayer !== n || this.localDisplayStatus !== 7 || !this.measurable) return;
1499
+ let i = !!this.effects.length;
1500
+ if ((this.renderGroup || i) && (r = P.get().clear()), this.boundsArea) t.addRect(this.boundsArea, this.worldTransform);
1501
+ else {
1502
+ if (this.renderPipeId) {
1503
+ let e = this.bounds;
1504
+ r.addFrame(e.minX, e.minY, e.maxX, e.maxY, this.groupTransform);
1505
+ }
1506
+ let t = this.children;
1507
+ for (let i = 0; i < t.length; i++) t[i]._getGlobalBoundsRecursive(e, r, n);
1508
+ }
1509
+ if (i) {
1510
+ let e = !1, n = this.renderGroup || this.parentRenderGroup;
1511
+ for (let t = 0; t < this.effects.length; t++) this.effects[t].addBounds && (e || (e = !0, r.applyMatrix(n.worldTransform)), this.effects[t].addBounds(r, !0));
1512
+ e && r.applyMatrix(n.worldTransform.copyTo(Ve).invert()), t.addBounds(r), P.return(r);
1513
+ } else this.renderGroup && (t.addBounds(r, this.relativeGroupTransform), P.return(r));
1514
+ }
1515
+ };
1516
+ //#endregion
1517
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/bounds/getGlobalBounds.mjs
1518
+ function Ue(e, t, n) {
1519
+ n.clear();
1520
+ let r, i;
1521
+ return e.parent ? t ? r = e.parent.worldTransform : (i = N.get().identity(), r = Ge(e, i)) : r = T.IDENTITY, We(e, n, r, t), i && N.return(i), n.isValid || n.set(0, 0, 0, 0), n;
1522
+ }
1523
+ function We(e, t, n, r) {
1524
+ if (!e.visible || !e.measurable) return;
1525
+ let i;
1526
+ r ? i = e.worldTransform : (e.updateLocalTransform(), i = N.get(), i.appendFrom(e.localTransform, n));
1527
+ let a = t, o = !!e.effects.length;
1528
+ if (o && (t = P.get().clear()), e.boundsArea) t.addRect(e.boundsArea, i);
1529
+ else {
1530
+ let n = e.bounds;
1531
+ n && !n.isEmpty() && (t.matrix = i, t.addBounds(n));
1532
+ for (let n = 0; n < e.children.length; n++) We(e.children[n], t, i, r);
1533
+ }
1534
+ if (o) {
1535
+ for (let n = 0; n < e.effects.length; n++) e.effects[n].addBounds?.(t);
1536
+ a.addBounds(t, T.IDENTITY), P.return(t);
1537
+ }
1538
+ r || N.return(i);
1539
+ }
1540
+ function Ge(e, t) {
1541
+ let n = e.parent;
1542
+ return n && (Ge(n, t), n.updateLocalTransform(), t.append(n.localTransform)), t;
1543
+ }
1544
+ //#endregion
1545
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/utils/multiplyHexColors.mjs
1546
+ function Ke(e, t) {
1547
+ if (e === 16777215 || !t) return t;
1548
+ if (t === 16777215 || !e) return e;
1549
+ let n = e >> 16 & 255, r = e >> 8 & 255, i = e & 255, a = t >> 16 & 255, o = t >> 8 & 255, s = t & 255, c = n * a / 255 | 0, l = r * o / 255 | 0, u = i * s / 255 | 0;
1550
+ return (c << 16) + (l << 8) + u;
1551
+ }
1552
+ //#endregion
1553
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/utils/multiplyColors.mjs
1554
+ var qe = 16777215;
1555
+ function Je(e, t) {
1556
+ return e === qe ? t : t === qe ? e : Ke(e, t);
1557
+ }
1558
+ //#endregion
1559
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.mjs
1560
+ function F(e) {
1561
+ return ((e & 255) << 16) + (e & 65280) + (e >> 16 & 255);
1562
+ }
1563
+ var Ye = {
1564
+ getGlobalAlpha(e) {
1565
+ if (e) return this.renderGroup ? this.renderGroup.worldAlpha : this.parentRenderGroup ? this.parentRenderGroup.worldAlpha * this.alpha : this.alpha;
1566
+ let t = this.alpha, n = this.parent;
1567
+ for (; n;) t *= n.alpha, n = n.parent;
1568
+ return t;
1569
+ },
1570
+ getGlobalTransform(e = new T(), t) {
1571
+ if (t) return e.copyFrom(this.worldTransform);
1572
+ this.updateLocalTransform();
1573
+ let n = Ge(this, N.get().identity());
1574
+ return e.appendFrom(this.localTransform, n), N.return(n), e;
1575
+ },
1576
+ getGlobalTint(e) {
1577
+ if (e) return this.renderGroup ? F(this.renderGroup.worldColor) : this.parentRenderGroup ? F(Je(this.localColor, this.parentRenderGroup.worldColor)) : this.tint;
1578
+ let t = this.localColor, n = this.parent;
1579
+ for (; n;) t = Je(t, n.localColor), n = n.parent;
1580
+ return F(t);
1581
+ }
1582
+ };
1583
+ //#endregion
1584
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/bounds/getLocalBounds.mjs
1585
+ function Xe(e, t, n) {
1586
+ return t.clear(), n ||= T.IDENTITY, Ze(e, t, n, e, !0), t.isValid || t.set(0, 0, 0, 0), t;
1587
+ }
1588
+ function Ze(e, t, n, r, i) {
1589
+ let a;
1590
+ if (i) a = N.get(), a = n.copyTo(a);
1591
+ else {
1592
+ if (!e.visible || !e.measurable) return;
1593
+ e.updateLocalTransform();
1594
+ let t = e.localTransform;
1595
+ a = N.get(), a.appendFrom(t, n);
1596
+ }
1597
+ let o = t, s = !!e.effects.length;
1598
+ if (s && (t = P.get().clear()), e.boundsArea) t.addRect(e.boundsArea, a);
1599
+ else {
1600
+ e.renderPipeId && (t.matrix = a, t.addBounds(e.bounds));
1601
+ let n = e.children;
1602
+ for (let e = 0; e < n.length; e++) Ze(n[e], t, a, r, !1);
1603
+ }
1604
+ if (s) {
1605
+ for (let n = 0; n < e.effects.length; n++) e.effects[n].addLocalBounds?.(t, r);
1606
+ o.addBounds(t, T.IDENTITY), P.return(t);
1607
+ }
1608
+ N.return(a);
1609
+ }
1610
+ //#endregion
1611
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/utils/checkChildrenDidChange.mjs
1612
+ function Qe(e, t) {
1613
+ let n = e.children;
1614
+ for (let e = 0; e < n.length; e++) {
1615
+ let r = n[e], i = r.uid, a = (r._didViewChangeTick & 65535) << 16 | r._didContainerChangeTick & 65535, o = t.index;
1616
+ (t.data[o] !== i || t.data[o + 1] !== a) && (t.data[t.index] = i, t.data[t.index + 1] = a, t.didChange = !0), t.index = o + 2, r.children.length && Qe(r, t);
1617
+ }
1618
+ return t.didChange;
1619
+ }
1620
+ //#endregion
1621
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.mjs
1622
+ var $e = new T(), et = {
1623
+ _localBoundsCacheId: -1,
1624
+ _localBoundsCacheData: null,
1625
+ _setWidth(e, t) {
1626
+ let n = Math.sign(this.scale.x) || 1;
1627
+ t === 0 ? this.scale.x = n : this.scale.x = e / t * n;
1628
+ },
1629
+ _setHeight(e, t) {
1630
+ let n = Math.sign(this.scale.y) || 1;
1631
+ t === 0 ? this.scale.y = n : this.scale.y = e / t * n;
1632
+ },
1633
+ getLocalBounds() {
1634
+ this._localBoundsCacheData ||= {
1635
+ data: [],
1636
+ index: 1,
1637
+ didChange: !1,
1638
+ localBounds: new M()
1639
+ };
1640
+ let e = this._localBoundsCacheData;
1641
+ return e.index = 1, e.didChange = !1, e.data[0] !== this._didViewChangeTick && (e.didChange = !0, e.data[0] = this._didViewChangeTick), Qe(this, e), e.didChange && Xe(this, e.localBounds, $e), e.localBounds;
1642
+ },
1643
+ getBounds(e, t) {
1644
+ return Ue(this, e, t || new M());
1645
+ }
1646
+ }, tt = {
1647
+ _onRender: null,
1648
+ set onRender(e) {
1649
+ let t = this.renderGroup || this.parentRenderGroup;
1650
+ if (!e) {
1651
+ this._onRender && t?.removeOnRender(this), this._onRender = null;
1652
+ return;
1653
+ }
1654
+ this._onRender || t?.addOnRender(this), this._onRender = e;
1655
+ },
1656
+ get onRender() {
1657
+ return this._onRender;
1658
+ }
1659
+ }, nt = {
1660
+ _zIndex: 0,
1661
+ sortDirty: !1,
1662
+ sortableChildren: !1,
1663
+ get zIndex() {
1664
+ return this._zIndex;
1665
+ },
1666
+ set zIndex(e) {
1667
+ this._zIndex !== e && (this._zIndex = e, this.depthOfChildModified());
1668
+ },
1669
+ depthOfChildModified() {
1670
+ this.parent && (this.parent.sortableChildren = !0, this.parent.sortDirty = !0), this.parentRenderGroup && (this.parentRenderGroup.structureDidChange = !0);
1671
+ },
1672
+ sortChildren() {
1673
+ this.sortDirty && (this.sortDirty = !1, this.children.sort(rt));
1674
+ }
1675
+ };
1676
+ function rt(e, t) {
1677
+ return e._zIndex - t._zIndex;
1678
+ }
1679
+ //#endregion
1680
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.mjs
1681
+ var it = {
1682
+ getGlobalPosition(e = new w(), t = !1) {
1683
+ return this.parent ? this.parent.toGlobal(this._position, e, t) : (e.x = this._position.x, e.y = this._position.y), e;
1684
+ },
1685
+ toGlobal(e, t, n = !1) {
1686
+ let r = this.getGlobalTransform(N.get(), n);
1687
+ return t = r.apply(e, t), N.return(r), t;
1688
+ },
1689
+ toLocal(e, t, n, r) {
1690
+ t && (e = t.toGlobal(e, n, r));
1691
+ let i = this.getGlobalTransform(N.get(), r);
1692
+ return n = i.applyInverse(e, n), N.return(i), n;
1693
+ }
1694
+ }, at = class {
1695
+ constructor() {
1696
+ this.uid = D("instructionSet"), this.instructions = [], this.instructionSize = 0, this.renderables = [], this.gcTick = 0;
1697
+ }
1698
+ reset() {
1699
+ this.instructionSize = 0;
1700
+ }
1701
+ destroy() {
1702
+ this.instructions.length = 0, this.renderables.length = 0, this.renderPipes = null, this.gcTick = 0;
1703
+ }
1704
+ add(e) {
1705
+ this.instructions[this.instructionSize++] = e;
1706
+ }
1707
+ log() {
1708
+ this.instructions.length = this.instructionSize, console.table(this.instructions, ["type", "action"]);
1709
+ }
1710
+ };
1711
+ //#endregion
1712
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/maths/misc/pow2.mjs
1713
+ function ot(e) {
1714
+ return e += +(e === 0), --e, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e + 1;
1715
+ }
1716
+ function st(e) {
1717
+ return !(e & e - 1) && !!e;
1718
+ }
1719
+ //#endregion
1720
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/utils/definedProps.mjs
1721
+ function ct(e) {
1722
+ let t = {};
1723
+ for (let n in e) e[n] !== void 0 && (t[n] = e[n]);
1724
+ return t;
1725
+ }
1726
+ //#endregion
1727
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureStyle.mjs
1728
+ var lt = /* @__PURE__ */ Object.create(null);
1729
+ function ut(e) {
1730
+ let t = lt[e];
1731
+ return t === void 0 && (lt[e] = D("resource")), t;
1732
+ }
1733
+ var dt = class e extends o {
1734
+ constructor(t = {}) {
1735
+ super(), this._resourceType = "textureSampler", this._touched = 0, this._maxAnisotropy = 1, this.destroyed = !1, t = {
1736
+ ...e.defaultOptions,
1737
+ ...t
1738
+ }, this.addressMode = t.addressMode, this.addressModeU = t.addressModeU ?? this.addressModeU, this.addressModeV = t.addressModeV ?? this.addressModeV, this.addressModeW = t.addressModeW ?? this.addressModeW, this.scaleMode = t.scaleMode, this.magFilter = t.magFilter ?? this.magFilter, this.minFilter = t.minFilter ?? this.minFilter, this.mipmapFilter = t.mipmapFilter ?? this.mipmapFilter, this.lodMinClamp = t.lodMinClamp, this.lodMaxClamp = t.lodMaxClamp, this.compare = t.compare, this.maxAnisotropy = t.maxAnisotropy ?? 1;
1739
+ }
1740
+ set addressMode(e) {
1741
+ this.addressModeU = e, this.addressModeV = e, this.addressModeW = e;
1742
+ }
1743
+ get addressMode() {
1744
+ return this.addressModeU;
1745
+ }
1746
+ set wrapMode(e) {
1747
+ A(O, "TextureStyle.wrapMode is now TextureStyle.addressMode"), this.addressMode = e;
1748
+ }
1749
+ get wrapMode() {
1750
+ return this.addressMode;
1751
+ }
1752
+ set scaleMode(e) {
1753
+ this.magFilter = e, this.minFilter = e, this.mipmapFilter = e;
1754
+ }
1755
+ get scaleMode() {
1756
+ return this.magFilter;
1757
+ }
1758
+ set maxAnisotropy(e) {
1759
+ this._maxAnisotropy = Math.min(e, 16), this._maxAnisotropy > 1 && (this.scaleMode = "linear");
1760
+ }
1761
+ get maxAnisotropy() {
1762
+ return this._maxAnisotropy;
1763
+ }
1764
+ get _resourceId() {
1765
+ return this._sharedResourceId || this._generateResourceId();
1766
+ }
1767
+ update() {
1768
+ this._sharedResourceId = null, this.emit("change", this);
1769
+ }
1770
+ _generateResourceId() {
1771
+ let e = `${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;
1772
+ return this._sharedResourceId = ut(e), this._resourceId;
1773
+ }
1774
+ destroy() {
1775
+ this.destroyed = !0, this.emit("destroy", this), this.emit("change", this), this.removeAllListeners();
1776
+ }
1777
+ };
1778
+ dt.defaultOptions = {
1779
+ addressMode: "clamp-to-edge",
1780
+ scaleMode: "linear"
1781
+ };
1782
+ var ft = dt, pt = class e extends o {
1783
+ constructor(t = {}) {
1784
+ super(), this.options = t, this._gpuData = /* @__PURE__ */ Object.create(null), this._gcLastUsed = -1, this.uid = D("textureSource"), this._resourceType = "textureSource", this._resourceId = D("resource"), this.uploadMethodId = "unknown", this._resolution = 1, this.pixelWidth = 1, this.pixelHeight = 1, this.width = 1, this.height = 1, this.sampleCount = 1, this.mipLevelCount = 1, this.autoGenerateMipmaps = !1, this.format = "rgba8unorm", this.dimension = "2d", this.viewDimension = "2d", this.arrayLayerCount = 1, this.antialias = !1, this.transient = !1, this._touched = 0, this._batchTick = -1, this._textureBindLocation = -1, t = {
1785
+ ...e.defaultOptions,
1786
+ ...t
1787
+ }, this.label = t.label ?? "", this.resource = t.resource, this.autoGarbageCollect = t.autoGarbageCollect, this._resolution = t.resolution, this.pixelWidth = t.width ? t.width * this._resolution : this.resource ? this.resourceWidth ?? 1 : 1, this.pixelHeight = t.height ? t.height * this._resolution : this.resource ? this.resourceHeight ?? 1 : 1, this.width = this.pixelWidth / this._resolution, this.height = this.pixelHeight / this._resolution, this.format = t.format, this.dimension = t.dimensions, this.viewDimension = t.viewDimension ?? t.dimensions, this.arrayLayerCount = t.arrayLayerCount, this.mipLevelCount = t.mipLevelCount, this.autoGenerateMipmaps = t.autoGenerateMipmaps, this.sampleCount = t.sampleCount, this.antialias = t.antialias, this.transient = t.transient ?? !1, this.alphaMode = t.alphaMode, this.style = new ft(ct(t)), this.destroyed = !1, this._refreshPOT();
1788
+ }
1789
+ get source() {
1790
+ return this;
1791
+ }
1792
+ get style() {
1793
+ return this._style;
1794
+ }
1795
+ set style(e) {
1796
+ this.style !== e && (this._style?.off("change", this._onStyleChange, this), this._style = e, this._style?.on("change", this._onStyleChange, this), this._onStyleChange());
1797
+ }
1798
+ set maxAnisotropy(e) {
1799
+ this._style.maxAnisotropy = e;
1800
+ }
1801
+ get maxAnisotropy() {
1802
+ return this._style.maxAnisotropy;
1803
+ }
1804
+ get addressMode() {
1805
+ return this._style.addressMode;
1806
+ }
1807
+ set addressMode(e) {
1808
+ this._style.addressMode = e;
1809
+ }
1810
+ get repeatMode() {
1811
+ return this._style.addressMode;
1812
+ }
1813
+ set repeatMode(e) {
1814
+ this._style.addressMode = e;
1815
+ }
1816
+ get magFilter() {
1817
+ return this._style.magFilter;
1818
+ }
1819
+ set magFilter(e) {
1820
+ this._style.magFilter = e;
1821
+ }
1822
+ get minFilter() {
1823
+ return this._style.minFilter;
1824
+ }
1825
+ set minFilter(e) {
1826
+ this._style.minFilter = e;
1827
+ }
1828
+ get mipmapFilter() {
1829
+ return this._style.mipmapFilter;
1830
+ }
1831
+ set mipmapFilter(e) {
1832
+ this._style.mipmapFilter = e;
1833
+ }
1834
+ get lodMinClamp() {
1835
+ return this._style.lodMinClamp;
1836
+ }
1837
+ set lodMinClamp(e) {
1838
+ this._style.lodMinClamp = e;
1839
+ }
1840
+ get lodMaxClamp() {
1841
+ return this._style.lodMaxClamp;
1842
+ }
1843
+ set lodMaxClamp(e) {
1844
+ this._style.lodMaxClamp = e;
1845
+ }
1846
+ _onStyleChange() {
1847
+ this.emit("styleChange", this);
1848
+ }
1849
+ update() {
1850
+ if (this.resource) {
1851
+ let e = this._resolution;
1852
+ if (this.resize(this.resourceWidth / e, this.resourceHeight / e)) return;
1853
+ }
1854
+ this.emit("update", this);
1855
+ }
1856
+ destroy() {
1857
+ this.destroyed = !0, this.unload(), this.emit("destroy", this), this._style &&= (this._style.destroy(), null), this.uploadMethodId = null, this.resource = null, this.removeAllListeners();
1858
+ }
1859
+ unload() {
1860
+ this._resourceId = D("resource"), this.emit("change", this), this.emit("unload", this);
1861
+ for (let e in this._gpuData) this._gpuData[e]?.destroy?.();
1862
+ this._gpuData = /* @__PURE__ */ Object.create(null);
1863
+ }
1864
+ get resourceWidth() {
1865
+ let { resource: e } = this;
1866
+ return e.naturalWidth || e.videoWidth || e.displayWidth || e.width;
1867
+ }
1868
+ get resourceHeight() {
1869
+ let { resource: e } = this;
1870
+ return e.naturalHeight || e.videoHeight || e.displayHeight || e.height;
1871
+ }
1872
+ get resolution() {
1873
+ return this._resolution;
1874
+ }
1875
+ set resolution(e) {
1876
+ this._resolution !== e && (this._resolution = e, this.width = this.pixelWidth / e, this.height = this.pixelHeight / e);
1877
+ }
1878
+ resize(e, t, n) {
1879
+ n ||= this._resolution, e ||= this.width, t ||= this.height;
1880
+ let r = Math.round(e * n), i = Math.round(t * n);
1881
+ return this.width = r / n, this.height = i / n, this._resolution = n, this.pixelWidth === r && this.pixelHeight === i ? !1 : (this._refreshPOT(), this.pixelWidth = r, this.pixelHeight = i, this.emit("resize", this), this._resourceId = D("resource"), this.emit("change", this), !0);
1882
+ }
1883
+ updateMipmaps() {
1884
+ this.autoGenerateMipmaps && this.mipLevelCount > 1 && this.emit("updateMipmaps", this);
1885
+ }
1886
+ set wrapMode(e) {
1887
+ this._style.wrapMode = e;
1888
+ }
1889
+ get wrapMode() {
1890
+ return this._style.wrapMode;
1891
+ }
1892
+ set scaleMode(e) {
1893
+ this._style.scaleMode = e;
1894
+ }
1895
+ get scaleMode() {
1896
+ return this._style.scaleMode;
1897
+ }
1898
+ _refreshPOT() {
1899
+ this.isPowerOfTwo = st(this.pixelWidth) && st(this.pixelHeight);
1900
+ }
1901
+ static test(e) {
1902
+ throw Error("Unimplemented");
1903
+ }
1904
+ };
1905
+ pt.defaultOptions = {
1906
+ resolution: 1,
1907
+ format: "bgra8unorm",
1908
+ alphaMode: "premultiply-alpha-on-upload",
1909
+ dimensions: "2d",
1910
+ viewDimension: "2d",
1911
+ arrayLayerCount: 1,
1912
+ mipLevelCount: 1,
1913
+ autoGenerateMipmaps: !1,
1914
+ sampleCount: 1,
1915
+ antialias: !1,
1916
+ autoGarbageCollect: !1
1917
+ };
1918
+ var I = pt, L = [
1919
+ 1,
1920
+ 1,
1921
+ 0,
1922
+ -1,
1923
+ -1,
1924
+ -1,
1925
+ 0,
1926
+ 1,
1927
+ 1,
1928
+ 1,
1929
+ 0,
1930
+ -1,
1931
+ -1,
1932
+ -1,
1933
+ 0,
1934
+ 1
1935
+ ], R = [
1936
+ 0,
1937
+ 1,
1938
+ 1,
1939
+ 1,
1940
+ 0,
1941
+ -1,
1942
+ -1,
1943
+ -1,
1944
+ 0,
1945
+ 1,
1946
+ 1,
1947
+ 1,
1948
+ 0,
1949
+ -1,
1950
+ -1,
1951
+ -1
1952
+ ], z = [
1953
+ 0,
1954
+ -1,
1955
+ -1,
1956
+ -1,
1957
+ 0,
1958
+ 1,
1959
+ 1,
1960
+ 1,
1961
+ 0,
1962
+ 1,
1963
+ 1,
1964
+ 1,
1965
+ 0,
1966
+ -1,
1967
+ -1,
1968
+ -1
1969
+ ], B = [
1970
+ 1,
1971
+ 1,
1972
+ 0,
1973
+ -1,
1974
+ -1,
1975
+ -1,
1976
+ 0,
1977
+ 1,
1978
+ -1,
1979
+ -1,
1980
+ 0,
1981
+ 1,
1982
+ 1,
1983
+ 1,
1984
+ 0,
1985
+ -1
1986
+ ], mt = [], ht = [], V = Math.sign;
1987
+ function gt() {
1988
+ for (let e = 0; e < 16; e++) {
1989
+ let t = [];
1990
+ mt.push(t);
1991
+ for (let n = 0; n < 16; n++) {
1992
+ let r = V(L[e] * L[n] + z[e] * R[n]), i = V(R[e] * L[n] + B[e] * R[n]), a = V(L[e] * z[n] + z[e] * B[n]), o = V(R[e] * z[n] + B[e] * B[n]);
1993
+ for (let e = 0; e < 16; e++) if (L[e] === r && R[e] === i && z[e] === a && B[e] === o) {
1994
+ t.push(e);
1995
+ break;
1996
+ }
1997
+ }
1998
+ }
1999
+ for (let e = 0; e < 16; e++) {
2000
+ let t = new T();
2001
+ t.set(L[e], R[e], z[e], B[e], 0, 0), ht.push(t);
2002
+ }
2003
+ }
2004
+ gt();
2005
+ var H = {
2006
+ E: 0,
2007
+ SE: 1,
2008
+ S: 2,
2009
+ SW: 3,
2010
+ W: 4,
2011
+ NW: 5,
2012
+ N: 6,
2013
+ NE: 7,
2014
+ MIRROR_VERTICAL: 8,
2015
+ MAIN_DIAGONAL: 10,
2016
+ MIRROR_HORIZONTAL: 12,
2017
+ REVERSE_DIAGONAL: 14,
2018
+ uX: (e) => L[e],
2019
+ uY: (e) => R[e],
2020
+ vX: (e) => z[e],
2021
+ vY: (e) => B[e],
2022
+ inv: (e) => e & 8 ? e & 15 : -e & 7,
2023
+ add: (e, t) => mt[e][t],
2024
+ sub: (e, t) => mt[e][H.inv(t)],
2025
+ rotate180: (e) => e ^ 4,
2026
+ isVertical: (e) => (e & 3) == 2,
2027
+ byDirection: (e, t) => Math.abs(e) * 2 <= Math.abs(t) ? t >= 0 ? H.S : H.N : Math.abs(t) * 2 <= Math.abs(e) ? e > 0 ? H.E : H.W : t > 0 ? e > 0 ? H.SE : H.SW : e > 0 ? H.NE : H.NW,
2028
+ matrixAppendRotationInv: (e, t, n = 0, r = 0, i = 0, a = 0) => {
2029
+ let o = ht[H.inv(t)], s = o.a, c = o.b, l = o.c, u = o.d, d = n - Math.min(0, s * i, l * a, s * i + l * a), f = r - Math.min(0, c * i, u * a, c * i + u * a), p = e.a, m = e.b, h = e.c, g = e.d;
2030
+ e.a = s * p + c * h, e.b = s * m + c * g, e.c = l * p + u * h, e.d = l * m + u * g, e.tx = d * p + f * h + e.tx, e.ty = d * m + f * g + e.ty;
2031
+ },
2032
+ transformRectCoords: (e, t, n, r) => {
2033
+ let { x: i, y: a, width: o, height: s } = e, { x: c, y: l, width: u, height: d } = t;
2034
+ return n === H.E ? (r.set(i + c, a + l, o, s), r) : n === H.S ? r.set(u - a - s + c, i + l, s, o) : n === H.W ? r.set(u - i - o + c, d - a - s + l, o, s) : n === H.N ? r.set(a + c, d - i - o + l, s, o) : r.set(i + c, a + l, o, s);
2035
+ }
2036
+ }, _t = () => {}, vt = class extends I {
2037
+ constructor(e) {
2038
+ let t = e.resource || new Float32Array(e.width * e.height * 4), n = e.format;
2039
+ n ||= t instanceof Float32Array ? "rgba32float" : t instanceof Int32Array || t instanceof Uint32Array ? "rgba32uint" : t instanceof Int16Array || t instanceof Uint16Array ? "rgba16uint" : (t instanceof Int8Array, "bgra8unorm"), super({
2040
+ ...e,
2041
+ resource: t,
2042
+ format: n
2043
+ }), this.uploadMethodId = "buffer";
2044
+ }
2045
+ static test(e) {
2046
+ return e instanceof Int8Array || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int16Array || e instanceof Uint16Array || e instanceof Int32Array || e instanceof Uint32Array || e instanceof Float32Array;
2047
+ }
2048
+ };
2049
+ vt.extension = n.TextureSource;
2050
+ //#endregion
2051
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureMatrix.mjs
2052
+ var yt = new T(), bt = class {
2053
+ constructor(e, t) {
2054
+ this.mapCoord = new T(), this.uClampFrame = /* @__PURE__ */ new Float32Array(4), this.uClampOffset = /* @__PURE__ */ new Float32Array(2), this._updateID = 0, this.clampOffset = 0, this.clampMargin = t === void 0 ? e.width < 10 ? 0 : .5 : t, this.isSimple = !1, this.texture = e;
2055
+ }
2056
+ get texture() {
2057
+ return this._texture;
2058
+ }
2059
+ set texture(e) {
2060
+ this._texture !== e && (this._texture?.removeListener("update", this.update, this), this._texture = e, this._texture.addListener("update", this.update, this)), this.update();
2061
+ }
2062
+ multiplyUvs(e, t) {
2063
+ t === void 0 && (t = e);
2064
+ let n = this.mapCoord;
2065
+ for (let r = 0; r < e.length; r += 2) {
2066
+ let i = e[r], a = e[r + 1];
2067
+ t[r] = i * n.a + a * n.c + n.tx, t[r + 1] = i * n.b + a * n.d + n.ty;
2068
+ }
2069
+ return t;
2070
+ }
2071
+ update() {
2072
+ let e = this._texture;
2073
+ this._updateID++;
2074
+ let t = e.uvs;
2075
+ this.mapCoord.set(t.x1 - t.x0, t.y1 - t.y0, t.x3 - t.x0, t.y3 - t.y0, t.x0, t.y0);
2076
+ let n = e.orig, r = e.trim;
2077
+ r && (yt.set(n.width / r.width, 0, 0, n.height / r.height, -r.x / r.width, -r.y / r.height), this.mapCoord.append(yt));
2078
+ let i = e.source, a = this.uClampFrame, o = this.clampMargin / i._resolution, s = this.clampOffset / i._resolution;
2079
+ return a[0] = (e.frame.x + o + s) / i.width, a[1] = (e.frame.y + o + s) / i.height, a[2] = (e.frame.x + e.frame.width - o + s) / i.width, a[3] = (e.frame.y + e.frame.height - o + s) / i.height, this.uClampOffset[0] = this.clampOffset / i.pixelWidth, this.uClampOffset[1] = this.clampOffset / i.pixelHeight, this.isSimple = e.frame.width === i.width && e.frame.height === i.height && e.rotate === 0, !0;
2080
+ }
2081
+ }, U = class extends o {
2082
+ constructor({ source: e, label: t, frame: n, orig: r, trim: i, defaultAnchor: a, defaultBorders: o, rotate: s, dynamic: c } = {}) {
2083
+ if (super(), this.uid = D("texture"), this.uvs = {
2084
+ x0: 0,
2085
+ y0: 0,
2086
+ x1: 0,
2087
+ y1: 0,
2088
+ x2: 0,
2089
+ y2: 0,
2090
+ x3: 0,
2091
+ y3: 0
2092
+ }, this.frame = new ze(), this.noFrame = !1, this.dynamic = !1, this.isTexture = !0, this.label = t, this.source = e?.source ?? new I(), this.noFrame = !n, n) this.frame.copyFrom(n);
2093
+ else {
2094
+ let { width: e, height: t } = this._source;
2095
+ this.frame.width = e, this.frame.height = t;
2096
+ }
2097
+ this.orig = r || this.frame, this.trim = i, this.rotate = s ?? 0, this.defaultAnchor = a, this.defaultBorders = o, this.destroyed = !1, this.dynamic = c || !1, this.updateUvs();
2098
+ }
2099
+ set source(e) {
2100
+ this._source && this._source.off("resize", this.update, this), this._source = e, e.on("resize", this.update, this), this.emit("update", this);
2101
+ }
2102
+ get source() {
2103
+ return this._source;
2104
+ }
2105
+ get textureMatrix() {
2106
+ return this._textureMatrix ||= new bt(this), this._textureMatrix;
2107
+ }
2108
+ get width() {
2109
+ return this.orig.width;
2110
+ }
2111
+ get height() {
2112
+ return this.orig.height;
2113
+ }
2114
+ updateUvs() {
2115
+ let { uvs: e, frame: t } = this, { width: n, height: r } = this._source, i = t.x / n, a = t.y / r, o = t.width / n, s = t.height / r, c = this.rotate;
2116
+ if (c) {
2117
+ let t = o / 2, n = s / 2, r = i + t, l = a + n;
2118
+ c = H.add(c, H.NW), e.x0 = r + t * H.uX(c), e.y0 = l + n * H.uY(c), c = H.add(c, 2), e.x1 = r + t * H.uX(c), e.y1 = l + n * H.uY(c), c = H.add(c, 2), e.x2 = r + t * H.uX(c), e.y2 = l + n * H.uY(c), c = H.add(c, 2), e.x3 = r + t * H.uX(c), e.y3 = l + n * H.uY(c);
2119
+ } else e.x0 = i, e.y0 = a, e.x1 = i + o, e.y1 = a, e.x2 = i + o, e.y2 = a + s, e.x3 = i, e.y3 = a + s;
2120
+ }
2121
+ destroy(e = !1) {
2122
+ this._source && (this._source.off("resize", this.update, this), e && (this._source.destroy(), this._source = null)), this._textureMatrix = null, this.destroyed = !0, this.emit("destroy", this), this.removeAllListeners();
2123
+ }
2124
+ update() {
2125
+ this.noFrame && (this.frame.width = this._source.width, this.frame.height = this._source.height), this.updateUvs(), this.emit("update", this);
2126
+ }
2127
+ get baseTexture() {
2128
+ return A(O, "Texture.baseTexture is now Texture.source"), this._source;
2129
+ }
2130
+ };
2131
+ U.EMPTY = new U({
2132
+ label: "EMPTY",
2133
+ source: new I({ label: "EMPTY" })
2134
+ }), U.EMPTY.destroy = _t, U.WHITE = new U({
2135
+ source: new vt({
2136
+ resource: new Uint8Array([
2137
+ 255,
2138
+ 255,
2139
+ 255,
2140
+ 255
2141
+ ]),
2142
+ width: 1,
2143
+ height: 1,
2144
+ alphaMode: "premultiply-alpha-on-upload",
2145
+ label: "WHITE"
2146
+ }),
2147
+ label: "WHITE"
2148
+ }), U.WHITE.destroy = _t;
2149
+ //#endregion
2150
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TexturePool.mjs
2151
+ var xt = 0, St = new class {
2152
+ constructor(e) {
2153
+ this._poolKeyHash = /* @__PURE__ */ Object.create(null), this._texturePool = {}, this.textureOptions = e || {}, this.enableFullScreen = !1, this.textureStyle = new ft(this.textureOptions);
2154
+ }
2155
+ createTexture(e, t, n, r) {
2156
+ return new U({
2157
+ source: new I({
2158
+ ...this.textureOptions,
2159
+ width: e,
2160
+ height: t,
2161
+ resolution: 1,
2162
+ antialias: n,
2163
+ autoGarbageCollect: !1,
2164
+ autoGenerateMipmaps: r
2165
+ }),
2166
+ label: `texturePool_${xt++}`
2167
+ });
2168
+ }
2169
+ getOptimalTexture(e, t, n = 1, r, i = !1) {
2170
+ let a = Math.ceil(e * n - 1e-6), o = Math.ceil(t * n - 1e-6);
2171
+ a = ot(a), o = ot(o);
2172
+ let s = +!!r, c = +!!i, l = (a << 17) + (o << 2) + (c << 1) + s;
2173
+ this._texturePool[l] || (this._texturePool[l] = []);
2174
+ let u = this._texturePool[l].pop();
2175
+ return u ||= this.createTexture(a, o, r, i), u.source._resolution = n, u.source.width = a / n, u.source.height = o / n, u.source.pixelWidth = a, u.source.pixelHeight = o, u.frame.x = 0, u.frame.y = 0, u.frame.width = e, u.frame.height = t, u.updateUvs(), this._poolKeyHash[u.uid] = l, u;
2176
+ }
2177
+ getSameSizeTexture(e, t = !1) {
2178
+ let n = e.source;
2179
+ return this.getOptimalTexture(e.width, e.height, n._resolution, t);
2180
+ }
2181
+ returnTexture(e, t = !1) {
2182
+ let n = this._poolKeyHash[e.uid];
2183
+ t && (e.source.style = this.textureStyle), this._texturePool[n].push(e);
2184
+ }
2185
+ clear(e) {
2186
+ if (e = e !== !1, e) for (let e in this._texturePool) {
2187
+ let t = this._texturePool[e];
2188
+ if (t) for (let e = 0; e < t.length; e++) t[e].destroy(!0);
2189
+ }
2190
+ this._texturePool = {};
2191
+ }
2192
+ }();
2193
+ Oe.register(St);
2194
+ //#endregion
2195
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/RenderGroup.mjs
2196
+ var Ct = class {
2197
+ constructor() {
2198
+ this.renderPipeId = "renderGroup", this.root = null, this.canBundle = !1, this.renderGroupParent = null, this.renderGroupChildren = [], this.worldTransform = new T(), this.worldColorAlpha = 4294967295, this.worldColor = 16777215, this.worldAlpha = 1, this.childrenToUpdate = /* @__PURE__ */ Object.create(null), this.updateTick = 0, this.gcTick = 0, this.childrenRenderablesToUpdate = {
2199
+ list: [],
2200
+ index: 0
2201
+ }, this.structureDidChange = !0, this.instructionSet = new at(), this._onRenderContainers = [], this.textureNeedsUpdate = !0, this.isCachedAsTexture = !1, this._matrixDirty = 7;
2202
+ }
2203
+ init(e) {
2204
+ this.root = e, e._onRender && this.addOnRender(e), e.didChange = !0;
2205
+ let t = e.children;
2206
+ for (let e = 0; e < t.length; e++) {
2207
+ let n = t[e];
2208
+ n._updateFlags = 15, this.addChild(n);
2209
+ }
2210
+ }
2211
+ enableCacheAsTexture(e = {}) {
2212
+ this.textureOptions = e, this.isCachedAsTexture = !0, this.textureNeedsUpdate = !0;
2213
+ }
2214
+ disableCacheAsTexture() {
2215
+ this.isCachedAsTexture = !1, this.texture &&= (St.returnTexture(this.texture, !0), null);
2216
+ }
2217
+ updateCacheTexture() {
2218
+ this.textureNeedsUpdate = !0;
2219
+ let e = this._parentCacheAsTextureRenderGroup;
2220
+ e && !e.textureNeedsUpdate && e.updateCacheTexture();
2221
+ }
2222
+ reset() {
2223
+ this.renderGroupChildren.length = 0;
2224
+ for (let e in this.childrenToUpdate) {
2225
+ let t = this.childrenToUpdate[e];
2226
+ t.list.fill(null), t.index = 0;
2227
+ }
2228
+ this.childrenRenderablesToUpdate.index = 0, this.childrenRenderablesToUpdate.list.fill(null), this.root = null, this.updateTick = 0, this.structureDidChange = !0, this._onRenderContainers.length = 0, this.renderGroupParent = null, this.disableCacheAsTexture();
2229
+ }
2230
+ get localTransform() {
2231
+ return this.root.localTransform;
2232
+ }
2233
+ addRenderGroupChild(e) {
2234
+ e.renderGroupParent && e.renderGroupParent._removeRenderGroupChild(e), e.renderGroupParent = this, this.renderGroupChildren.push(e);
2235
+ }
2236
+ _removeRenderGroupChild(e) {
2237
+ let t = this.renderGroupChildren.indexOf(e);
2238
+ t > -1 && this.renderGroupChildren.splice(t, 1), e.renderGroupParent = null;
2239
+ }
2240
+ addChild(e) {
2241
+ if (this.structureDidChange = !0, e.parentRenderGroup = this, e.updateTick = -1, e.relativeRenderGroupDepth = e.parent === this.root ? 1 : e.parent.relativeRenderGroupDepth + 1, e.didChange = !0, this.onChildUpdate(e), e.renderGroup) {
2242
+ this.addRenderGroupChild(e.renderGroup);
2243
+ return;
2244
+ }
2245
+ e._onRender && this.addOnRender(e);
2246
+ let t = e.children;
2247
+ for (let e = 0; e < t.length; e++) this.addChild(t[e]);
2248
+ }
2249
+ removeChild(e) {
2250
+ if (this.structureDidChange = !0, e._onRender && (e.renderGroup || this.removeOnRender(e)), e.parentRenderGroup = null, e.renderGroup) {
2251
+ this._removeRenderGroupChild(e.renderGroup);
2252
+ return;
2253
+ }
2254
+ let t = e.children;
2255
+ for (let e = 0; e < t.length; e++) this.removeChild(t[e]);
2256
+ }
2257
+ removeChildren(e) {
2258
+ for (let t = 0; t < e.length; t++) this.removeChild(e[t]);
2259
+ }
2260
+ onChildUpdate(e) {
2261
+ let t = this.childrenToUpdate[e.relativeRenderGroupDepth];
2262
+ t ||= this.childrenToUpdate[e.relativeRenderGroupDepth] = {
2263
+ index: 0,
2264
+ list: []
2265
+ }, t.list[t.index++] = e;
2266
+ }
2267
+ updateRenderable(e) {
2268
+ e.globalDisplayStatus < 7 || (this.instructionSet.renderPipes[e.renderPipeId].updateRenderable(e), e.didViewUpdate = !1);
2269
+ }
2270
+ onChildViewUpdate(e) {
2271
+ this.childrenRenderablesToUpdate.list[this.childrenRenderablesToUpdate.index++] = e;
2272
+ }
2273
+ get isRenderable() {
2274
+ return this.root.localDisplayStatus === 7 && this.worldAlpha > 0;
2275
+ }
2276
+ addOnRender(e) {
2277
+ this._onRenderContainers.push(e);
2278
+ }
2279
+ removeOnRender(e) {
2280
+ this._onRenderContainers.splice(this._onRenderContainers.indexOf(e), 1);
2281
+ }
2282
+ runOnRender(e) {
2283
+ for (let t = 0; t < this._onRenderContainers.length; t++) this._onRenderContainers[t]._onRender(e);
2284
+ }
2285
+ destroy() {
2286
+ this.disableCacheAsTexture(), this.renderGroupParent = null, this.root = null, this.childrenRenderablesToUpdate = null, this.childrenToUpdate = null, this.renderGroupChildren = null, this._onRenderContainers = null, this.instructionSet = null;
2287
+ }
2288
+ getChildren(e = []) {
2289
+ let t = this.root.children;
2290
+ for (let n = 0; n < t.length; n++) this._getChildren(t[n], e);
2291
+ return e;
2292
+ }
2293
+ _getChildren(e, t = []) {
2294
+ if (t.push(e), e.renderGroup) return t;
2295
+ let n = e.children;
2296
+ for (let e = 0; e < n.length; e++) this._getChildren(n[e], t);
2297
+ return t;
2298
+ }
2299
+ invalidateMatrices() {
2300
+ this._matrixDirty = 7;
2301
+ }
2302
+ get inverseWorldTransform() {
2303
+ return this._matrixDirty & 1 ? (this._matrixDirty &= -2, this._inverseWorldTransform ||= new T(), this._inverseWorldTransform.copyFrom(this.worldTransform).invert()) : this._inverseWorldTransform;
2304
+ }
2305
+ get textureOffsetInverseTransform() {
2306
+ return this._matrixDirty & 2 ? (this._matrixDirty &= -3, this._textureOffsetInverseTransform ||= new T(), this._textureOffsetInverseTransform.copyFrom(this.inverseWorldTransform).translate(-this._textureBounds.x, -this._textureBounds.y)) : this._textureOffsetInverseTransform;
2307
+ }
2308
+ get inverseParentTextureTransform() {
2309
+ if (!(this._matrixDirty & 4)) return this._inverseParentTextureTransform;
2310
+ this._matrixDirty &= -5;
2311
+ let e = this._parentCacheAsTextureRenderGroup;
2312
+ return e ? (this._inverseParentTextureTransform ||= new T(), this._inverseParentTextureTransform.copyFrom(this.worldTransform).prepend(e.inverseWorldTransform).translate(-e._textureBounds.x, -e._textureBounds.y)) : this.worldTransform;
2313
+ }
2314
+ get cacheToLocalTransform() {
2315
+ return this.isCachedAsTexture ? this.textureOffsetInverseTransform : this._parentCacheAsTextureRenderGroup ? this._parentCacheAsTextureRenderGroup.textureOffsetInverseTransform : null;
2316
+ }
2317
+ };
2318
+ //#endregion
2319
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/utils/assignWithIgnore.mjs
2320
+ function wt(e, t, n = {}) {
2321
+ for (let r in t) !n[r] && t[r] !== void 0 && (e[r] = t[r]);
2322
+ }
2323
+ //#endregion
2324
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/container/Container.mjs
2325
+ var Tt = new E(null), W = new E(null), Et = new E(null, 1, 1), G = new E(null), Dt = class e extends o {
2326
+ constructor(e = {}) {
2327
+ super(), this.uid = D("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.parentRenderLayer = null, this.updateTick = -1, this.localTransform = new T(), this.relativeGroupTransform = new T(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new E(this, 0, 0), this._scale = Et, this._pivot = W, this._origin = G, this._skew = Tt, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didContainerChangeTick = 0, this._didViewChangeTick = 0, this._didLocalTransformChangeId = -1, this.effects = [], wt(this, e, {
2328
+ children: !0,
2329
+ parent: !0,
2330
+ effects: !0
2331
+ }), e.children?.forEach((e) => this.addChild(e)), e.parent?.addChild(this);
2332
+ }
2333
+ static mixin(t) {
2334
+ A("8.8.0", "Container.mixin is deprecated, please use extensions.mixin instead."), a.mixin(e, t);
2335
+ }
2336
+ set _didChangeId(e) {
2337
+ this._didViewChangeTick = e >> 12 & 4095, this._didContainerChangeTick = e & 4095;
2338
+ }
2339
+ get _didChangeId() {
2340
+ return this._didContainerChangeTick & 4095 | (this._didViewChangeTick & 4095) << 12;
2341
+ }
2342
+ addChild(...e) {
2343
+ if (this.allowChildren || A(O, "addChild: Only Containers will be allowed to add children in v8.0.0"), e.length > 1) {
2344
+ for (let t = 0; t < e.length; t++) this.addChild(e[t]);
2345
+ return e[0];
2346
+ }
2347
+ let t = e[0], n = this.renderGroup || this.parentRenderGroup;
2348
+ return t.parent === this ? (this.children.splice(this.children.indexOf(t), 1), this.children.push(t), n && (n.structureDidChange = !0), t) : (t.parent && t.parent.removeChild(t), this.children.push(t), this.sortableChildren && (this.sortDirty = !0), t.parent = this, t.didChange = !0, t._updateFlags = 15, n && n.addChild(t), this.emit("childAdded", t, this, this.children.length - 1), t.emit("added", this), this._didViewChangeTick++, t._zIndex !== 0 && t.depthOfChildModified(), t);
2349
+ }
2350
+ removeChild(...e) {
2351
+ if (e.length > 1) {
2352
+ for (let t = 0; t < e.length; t++) this.removeChild(e[t]);
2353
+ return e[0];
2354
+ }
2355
+ let t = e[0], n = this.children.indexOf(t);
2356
+ return n > -1 && (this._didViewChangeTick++, this.children.splice(n, 1), this.renderGroup ? this.renderGroup.removeChild(t) : this.parentRenderGroup && this.parentRenderGroup.removeChild(t), t.parentRenderLayer && t.parentRenderLayer.detach(t), t.parent = null, this.emit("childRemoved", t, this, n), t.emit("removed", this)), t;
2357
+ }
2358
+ _onUpdate(e) {
2359
+ e && e === this._skew && this._updateSkew(), this._didContainerChangeTick++, !this.didChange && (this.didChange = !0, this.parentRenderGroup && this.parentRenderGroup.onChildUpdate(this));
2360
+ }
2361
+ set isRenderGroup(e) {
2362
+ !!this.renderGroup !== e && (e ? this.enableRenderGroup() : this.disableRenderGroup());
2363
+ }
2364
+ get isRenderGroup() {
2365
+ return !!this.renderGroup;
2366
+ }
2367
+ enableRenderGroup() {
2368
+ if (this.renderGroup) return;
2369
+ let e = this.parentRenderGroup;
2370
+ e?.removeChild(this), this.renderGroup = j.get(Ct, this), this.groupTransform = T.IDENTITY, e?.addChild(this), this._updateIsSimple();
2371
+ }
2372
+ disableRenderGroup() {
2373
+ if (!this.renderGroup) return;
2374
+ let e = this.parentRenderGroup;
2375
+ e?.removeChild(this), j.return(this.renderGroup), this.renderGroup = null, this.groupTransform = this.relativeGroupTransform, e?.addChild(this), this._updateIsSimple();
2376
+ }
2377
+ _updateIsSimple() {
2378
+ this.isSimple = !this.renderGroup && this.effects.length === 0;
2379
+ }
2380
+ get worldTransform() {
2381
+ return this._worldTransform ||= new T(), this.renderGroup ? this._worldTransform.copyFrom(this.renderGroup.worldTransform) : this.parentRenderGroup && this._worldTransform.appendFrom(this.relativeGroupTransform, this.parentRenderGroup.worldTransform), this._worldTransform;
2382
+ }
2383
+ get x() {
2384
+ return this._position.x;
2385
+ }
2386
+ set x(e) {
2387
+ this._position.x = e;
2388
+ }
2389
+ get y() {
2390
+ return this._position.y;
2391
+ }
2392
+ set y(e) {
2393
+ this._position.y = e;
2394
+ }
2395
+ get position() {
2396
+ return this._position;
2397
+ }
2398
+ set position(e) {
2399
+ this._position.copyFrom(e);
2400
+ }
2401
+ get rotation() {
2402
+ return this._rotation;
2403
+ }
2404
+ set rotation(e) {
2405
+ this._rotation !== e && (this._rotation = e, this._onUpdate(this._skew));
2406
+ }
2407
+ get angle() {
2408
+ return this.rotation * _e;
2409
+ }
2410
+ set angle(e) {
2411
+ this.rotation = e * ve;
2412
+ }
2413
+ get pivot() {
2414
+ return this._pivot === W && (this._pivot = new E(this, 0, 0)), this._pivot;
2415
+ }
2416
+ set pivot(e) {
2417
+ this._pivot === W && (this._pivot = new E(this, 0, 0), this._origin !== G && De("Setting both a pivot and origin on a Container is not recommended. This can lead to unexpected behavior if not handled carefully.")), typeof e == "number" ? this._pivot.set(e) : this._pivot.copyFrom(e);
2418
+ }
2419
+ get skew() {
2420
+ return this._skew === Tt && (this._skew = new E(this, 0, 0)), this._skew;
2421
+ }
2422
+ set skew(e) {
2423
+ this._skew === Tt && (this._skew = new E(this, 0, 0)), this._skew.copyFrom(e);
2424
+ }
2425
+ get scale() {
2426
+ return this._scale === Et && (this._scale = new E(this, 1, 1)), this._scale;
2427
+ }
2428
+ set scale(e) {
2429
+ this._scale === Et && (this._scale = new E(this, 0, 0)), typeof e == "string" && (e = parseFloat(e)), typeof e == "number" ? this._scale.set(e) : this._scale.copyFrom(e);
2430
+ }
2431
+ get origin() {
2432
+ return this._origin === G && (this._origin = new E(this, 0, 0)), this._origin;
2433
+ }
2434
+ set origin(e) {
2435
+ this._origin === G && (this._origin = new E(this, 0, 0), this._pivot !== W && De("Setting both a pivot and origin on a Container is not recommended. This can lead to unexpected behavior if not handled carefully.")), typeof e == "number" ? this._origin.set(e) : this._origin.copyFrom(e);
2436
+ }
2437
+ get width() {
2438
+ return Math.abs(this.scale.x * this.getLocalBounds().width);
2439
+ }
2440
+ set width(e) {
2441
+ let t = this.getLocalBounds().width;
2442
+ this._setWidth(e, t);
2443
+ }
2444
+ get height() {
2445
+ return Math.abs(this.scale.y * this.getLocalBounds().height);
2446
+ }
2447
+ set height(e) {
2448
+ let t = this.getLocalBounds().height;
2449
+ this._setHeight(e, t);
2450
+ }
2451
+ getSize(e) {
2452
+ e ||= {};
2453
+ let t = this.getLocalBounds();
2454
+ return e.width = Math.abs(this.scale.x * t.width), e.height = Math.abs(this.scale.y * t.height), e;
2455
+ }
2456
+ setSize(e, t) {
2457
+ let n = this.getLocalBounds();
2458
+ typeof e == "object" ? (t = e.height ?? e.width, e = e.width) : t ??= e, e !== void 0 && this._setWidth(e, n.width), t !== void 0 && this._setHeight(t, n.height);
2459
+ }
2460
+ _updateSkew() {
2461
+ let e = this._rotation, t = this._skew;
2462
+ this._cx = Math.cos(e + t._y), this._sx = Math.sin(e + t._y), this._cy = -Math.sin(e - t._x), this._sy = Math.cos(e - t._x);
2463
+ }
2464
+ updateTransform(e) {
2465
+ return this.position.set(typeof e.x == "number" ? e.x : this.position.x, typeof e.y == "number" ? e.y : this.position.y), this.scale.set(typeof e.scaleX == "number" ? e.scaleX : this.scale.x, typeof e.scaleY == "number" ? e.scaleY : this.scale.y), this.rotation = typeof e.rotation == "number" ? e.rotation : this.rotation, this.skew.set(typeof e.skewX == "number" ? e.skewX : this.skew.x, typeof e.skewY == "number" ? e.skewY : this.skew.y), this.pivot.set(typeof e.pivotX == "number" ? e.pivotX : this.pivot.x, typeof e.pivotY == "number" ? e.pivotY : this.pivot.y), this.origin.set(typeof e.originX == "number" ? e.originX : this.origin.x, typeof e.originY == "number" ? e.originY : this.origin.y), this;
2466
+ }
2467
+ setFromMatrix(e) {
2468
+ e.decompose(this);
2469
+ }
2470
+ updateLocalTransform() {
2471
+ let e = this._didContainerChangeTick;
2472
+ if (this._didLocalTransformChangeId === e) return;
2473
+ this._didLocalTransformChangeId = e;
2474
+ let t = this.localTransform, n = this._scale, r = this._pivot, i = this._origin, a = this._position, o = n._x, s = n._y, c = r._x, l = r._y, u = -i._x, d = -i._y;
2475
+ t.a = this._cx * o, t.b = this._sx * o, t.c = this._cy * s, t.d = this._sy * s, t.tx = a._x - (c * t.a + l * t.c) + (u * t.a + d * t.c) - u, t.ty = a._y - (c * t.b + l * t.d) + (u * t.b + d * t.d) - d;
2476
+ }
2477
+ set alpha(e) {
2478
+ e !== this.localAlpha && (this.localAlpha = e, this._updateFlags |= 1, this._onUpdate());
2479
+ }
2480
+ get alpha() {
2481
+ return this.localAlpha;
2482
+ }
2483
+ set tint(e) {
2484
+ let t = me.shared.setValue(e ?? 16777215).toBgrNumber();
2485
+ t !== this.localColor && (this.localColor = t, this._updateFlags |= 1, this._onUpdate());
2486
+ }
2487
+ get tint() {
2488
+ return F(this.localColor);
2489
+ }
2490
+ set blendMode(e) {
2491
+ this.localBlendMode !== e && (this.parentRenderGroup && (this.parentRenderGroup.structureDidChange = !0), this._updateFlags |= 2, this.localBlendMode = e, this._onUpdate());
2492
+ }
2493
+ get blendMode() {
2494
+ return this.localBlendMode;
2495
+ }
2496
+ get visible() {
2497
+ return !!(this.localDisplayStatus & 2);
2498
+ }
2499
+ set visible(e) {
2500
+ let t = e ? 2 : 0;
2501
+ (this.localDisplayStatus & 2) !== t && (this.parentRenderGroup && (this.parentRenderGroup.structureDidChange = !0), this._updateFlags |= 4, this.localDisplayStatus ^= 2, this._onUpdate(), this.emit("visibleChanged", e));
2502
+ }
2503
+ get culled() {
2504
+ return !(this.localDisplayStatus & 4);
2505
+ }
2506
+ set culled(e) {
2507
+ let t = e ? 0 : 4;
2508
+ (this.localDisplayStatus & 4) !== t && (this.parentRenderGroup && (this.parentRenderGroup.structureDidChange = !0), this._updateFlags |= 4, this.localDisplayStatus ^= 4, this._onUpdate());
2509
+ }
2510
+ get renderable() {
2511
+ return !!(this.localDisplayStatus & 1);
2512
+ }
2513
+ set renderable(e) {
2514
+ let t = +!!e;
2515
+ (this.localDisplayStatus & 1) !== t && (this._updateFlags |= 4, this.localDisplayStatus ^= 1, this.parentRenderGroup && (this.parentRenderGroup.structureDidChange = !0), this._onUpdate());
2516
+ }
2517
+ get isRenderable() {
2518
+ return this.localDisplayStatus === 7 && this.groupAlpha > 0;
2519
+ }
2520
+ destroy(e = !1) {
2521
+ if (this.destroyed) return;
2522
+ this.destroyed = !0;
2523
+ let t;
2524
+ if (this.children.length && (t = this.removeChildren(0, this.children.length)), this.removeFromParent(), this.parent = null, this._maskEffect = null, this._filterEffect = null, this.effects = null, this._position = null, this._scale = null, this._pivot = null, this._origin = null, this._skew = null, this.emit("destroyed", this), this.removeAllListeners(), (typeof e == "boolean" ? e : e?.children) && t) for (let n = 0; n < t.length; ++n) t[n].destroy(e);
2525
+ this.renderGroup?.destroy(), this.renderGroup = null;
2526
+ }
2527
+ };
2528
+ a.mixin(Dt, Me, He, it, tt, et, Ie, Le, nt, he, Ae, Ye, Ne);
2529
+ //#endregion
2530
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/ticker/const.mjs
2531
+ var K = /* @__PURE__ */ ((e) => (e[e.INTERACTION = 50] = "INTERACTION", e[e.HIGH = 25] = "HIGH", e[e.NORMAL = 0] = "NORMAL", e[e.LOW = -25] = "LOW", e[e.UTILITY = -50] = "UTILITY", e))(K || {}), Ot = class {
2532
+ constructor(e, t = null, n = 0, r = !1) {
2533
+ this.next = null, this.previous = null, this._destroyed = !1, this._fn = e, this._context = t, this.priority = n, this._once = r;
2534
+ }
2535
+ match(e, t = null) {
2536
+ return this._fn === e && this._context === t;
2537
+ }
2538
+ emit(e) {
2539
+ this._fn && (this._context ? this._fn.call(this._context, e) : this._fn(e));
2540
+ let t = this.next;
2541
+ return this._once && this.destroy(!0), this._destroyed && (this.next = null), t;
2542
+ }
2543
+ connect(e) {
2544
+ this.previous = e, e.next && (e.next.previous = this), this.next = e.next, e.next = this;
2545
+ }
2546
+ destroy(e = !1) {
2547
+ this._destroyed = !0, this._fn = null, this._context = null, this.previous && (this.previous.next = this.next), this.next && (this.next.previous = this.previous);
2548
+ let t = this.next;
2549
+ return this.next = e ? null : t, this.previous = null, t;
2550
+ }
2551
+ }, kt = class e {
2552
+ constructor() {
2553
+ this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new Ot(null, null, Infinity), this.deltaMS = 1 / e.targetFPMS, this.elapsedMS = 1 / e.targetFPMS, this._tick = (e) => {
2554
+ this._requestId = null, this.started && (this.update(e), this.started && this._requestId === null && this._head.next && (this._requestId = requestAnimationFrame(this._tick)));
2555
+ };
2556
+ }
2557
+ _requestIfNeeded() {
2558
+ this._requestId === null && this._head.next && (this.lastTime = performance.now(), this._lastFrame = this.lastTime, this._requestId = requestAnimationFrame(this._tick));
2559
+ }
2560
+ _cancelIfNeeded() {
2561
+ this._requestId !== null && (cancelAnimationFrame(this._requestId), this._requestId = null);
2562
+ }
2563
+ _startIfPossible() {
2564
+ this.started ? this._requestIfNeeded() : this.autoStart && this.start();
2565
+ }
2566
+ add(e, t, n = K.NORMAL) {
2567
+ return this._addListener(new Ot(e, t, n));
2568
+ }
2569
+ addOnce(e, t, n = K.NORMAL) {
2570
+ return this._addListener(new Ot(e, t, n, !0));
2571
+ }
2572
+ _addListener(e) {
2573
+ let t = this._head.next, n = this._head;
2574
+ if (!t) e.connect(n);
2575
+ else {
2576
+ for (; t;) {
2577
+ if (e.priority > t.priority) {
2578
+ e.connect(n);
2579
+ break;
2580
+ }
2581
+ n = t, t = t.next;
2582
+ }
2583
+ e.previous || e.connect(n);
2584
+ }
2585
+ return this._startIfPossible(), this;
2586
+ }
2587
+ remove(e, t) {
2588
+ let n = this._head.next;
2589
+ for (; n;) n = n.match(e, t) ? n.destroy() : n.next;
2590
+ return this._head.next || this._cancelIfNeeded(), this;
2591
+ }
2592
+ get count() {
2593
+ if (!this._head) return 0;
2594
+ let e = 0, t = this._head;
2595
+ for (; t = t.next;) e++;
2596
+ return e;
2597
+ }
2598
+ start() {
2599
+ this.started || (this.started = !0, this._requestIfNeeded());
2600
+ }
2601
+ stop() {
2602
+ this.started && (this.started = !1, this._cancelIfNeeded());
2603
+ }
2604
+ destroy() {
2605
+ if (!this._protected) {
2606
+ this.stop();
2607
+ let e = this._head.next;
2608
+ for (; e;) e = e.destroy(!0);
2609
+ this._head.destroy(), this._head = null;
2610
+ }
2611
+ }
2612
+ update(t = performance.now()) {
2613
+ let n;
2614
+ if (t > this.lastTime) {
2615
+ if (n = this.elapsedMS = t - this.lastTime, n > this._maxElapsedMS && (n = this._maxElapsedMS), n *= this.speed, this._minElapsedMS) {
2616
+ let e = t - this._lastFrame | 0;
2617
+ if (e < this._minElapsedMS) return;
2618
+ this._lastFrame = t - e % this._minElapsedMS;
2619
+ }
2620
+ this.deltaMS = n, this.deltaTime = this.deltaMS * e.targetFPMS;
2621
+ let r = this._head, i = r.next;
2622
+ for (; i;) i = i.emit(this);
2623
+ r.next || this._cancelIfNeeded();
2624
+ } else this.deltaTime = this.deltaMS = this.elapsedMS = 0;
2625
+ this.lastTime = t;
2626
+ }
2627
+ get FPS() {
2628
+ return 1e3 / this.elapsedMS;
2629
+ }
2630
+ get minFPS() {
2631
+ return 1e3 / this._maxElapsedMS;
2632
+ }
2633
+ set minFPS(t) {
2634
+ let n = Math.min(Math.max(0, t) / 1e3, e.targetFPMS);
2635
+ this._maxElapsedMS = 1 / n, this._minElapsedMS && t > this.maxFPS && (this.maxFPS = t);
2636
+ }
2637
+ get maxFPS() {
2638
+ return this._minElapsedMS ? Math.round(1e3 / this._minElapsedMS) : 0;
2639
+ }
2640
+ set maxFPS(e) {
2641
+ e === 0 ? this._minElapsedMS = 0 : (e < this.minFPS && (this.minFPS = e), this._minElapsedMS = 1 / (e / 1e3));
2642
+ }
2643
+ static get shared() {
2644
+ if (!e._shared) {
2645
+ let t = e._shared = new e();
2646
+ t.autoStart = !0, t._protected = !0;
2647
+ }
2648
+ return e._shared;
2649
+ }
2650
+ static get system() {
2651
+ if (!e._system) {
2652
+ let t = e._system = new e();
2653
+ t.autoStart = !0, t._protected = !0;
2654
+ }
2655
+ return e._system;
2656
+ }
2657
+ };
2658
+ kt.targetFPMS = .06;
2659
+ var At = kt, jt = class extends Dt {
2660
+ constructor(e) {
2661
+ super(e), this.canBundle = !0, this.allowChildren = !1, this._roundPixels = 0, this._lastUsed = -1, this._gpuData = /* @__PURE__ */ Object.create(null), this.autoGarbageCollect = !0, this._gcLastUsed = -1, this._bounds = new M(0, 1, 0, 0), this._boundsDirty = !0, this.autoGarbageCollect = e.autoGarbageCollect ?? !0;
2662
+ }
2663
+ get bounds() {
2664
+ return this._boundsDirty ? (this.updateBounds(), this._boundsDirty = !1, this._bounds) : this._bounds;
2665
+ }
2666
+ get roundPixels() {
2667
+ return !!this._roundPixels;
2668
+ }
2669
+ set roundPixels(e) {
2670
+ this._roundPixels = +!!e;
2671
+ }
2672
+ containsPoint(e) {
2673
+ let t = this.bounds, { x: n, y: r } = e;
2674
+ return n >= t.minX && n <= t.maxX && r >= t.minY && r <= t.maxY;
2675
+ }
2676
+ onViewUpdate() {
2677
+ if (this._didViewChangeTick++, this._boundsDirty = !0, this.didViewUpdate) return;
2678
+ this.didViewUpdate = !0;
2679
+ let e = this.renderGroup || this.parentRenderGroup;
2680
+ e && e.onChildViewUpdate(this);
2681
+ }
2682
+ unload() {
2683
+ this.emit("unload", this);
2684
+ for (let e in this._gpuData) this._gpuData[e]?.destroy();
2685
+ this._gpuData = /* @__PURE__ */ Object.create(null), this.onViewUpdate();
2686
+ }
2687
+ destroy(e) {
2688
+ this.unload(), super.destroy(e), this._bounds = null;
2689
+ }
2690
+ collectRenderablesSimple(e, t, n) {
2691
+ let { renderPipes: r } = t;
2692
+ r.blendMode.pushBlendMode(this, this.groupBlendMode, e);
2693
+ let i = r[this.renderPipeId];
2694
+ i?.addRenderable && i.addRenderable(this, e), this.didViewUpdate = !1;
2695
+ let a = this.children, o = a.length;
2696
+ for (let r = 0; r < o; r++) a[r].collectRenderables(e, t, n);
2697
+ r.blendMode.popBlendMode(e);
2698
+ }
2699
+ }, Mt = {
2700
+ createCanvas: (e, t) => {
2701
+ let n = document.createElement("canvas");
2702
+ return n.width = e, n.height = t, n;
2703
+ },
2704
+ createImage: () => new Image(),
2705
+ getCanvasRenderingContext2D: () => CanvasRenderingContext2D,
2706
+ getWebGLRenderingContext: () => WebGLRenderingContext,
2707
+ getNavigator: () => navigator,
2708
+ getBaseUrl: () => document.baseURI ?? window.location.href,
2709
+ getFontFaceSet: () => document.fonts,
2710
+ fetch: (e, t) => fetch(e, t),
2711
+ parseXML: (e) => new DOMParser().parseFromString(e, "text/xml")
2712
+ }, Nt = {
2713
+ get() {
2714
+ return Mt;
2715
+ },
2716
+ set(e) {
2717
+ Mt = e;
2718
+ }
2719
+ };
2720
+ //#endregion
2721
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/utils/data/updateQuadBounds.mjs
2722
+ function Pt(e, t, n) {
2723
+ let { width: r, height: i } = n.orig, a = n.trim;
2724
+ if (a) {
2725
+ let n = a.width, o = a.height;
2726
+ e.minX = a.x - t._x * r, e.maxX = e.minX + n, e.minY = a.y - t._y * i, e.maxY = e.minY + o;
2727
+ } else e.minX = -t._x * r, e.maxX = e.minX + r, e.minY = -t._y * i, e.maxY = e.minY + i;
2728
+ }
2729
+ //#endregion
2730
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/scene/sprite/Sprite.mjs
2731
+ var Ft = class e extends jt {
2732
+ constructor(e = U.EMPTY) {
2733
+ e instanceof U && (e = { texture: e });
2734
+ let { texture: t = U.EMPTY, anchor: n, roundPixels: r, width: i, height: a, ...o } = e;
2735
+ super({
2736
+ label: "Sprite",
2737
+ ...o
2738
+ }), this.renderPipeId = "sprite", this.batched = !0, this._visualBounds = {
2739
+ minX: 0,
2740
+ maxX: 1,
2741
+ minY: 0,
2742
+ maxY: 0
2743
+ }, this._anchor = new E({ _onUpdate: () => {
2744
+ this.onViewUpdate();
2745
+ } }), n ? this.anchor = n : t.defaultAnchor && (this.anchor = t.defaultAnchor), this.texture = t, this.allowChildren = !1, this.roundPixels = r ?? !1, i !== void 0 && (this.width = i), a !== void 0 && (this.height = a);
2746
+ }
2747
+ static from(t, n = !1) {
2748
+ return t instanceof U ? new e(t) : new e(U.from(t, n));
2749
+ }
2750
+ set texture(e) {
2751
+ e ||= U.EMPTY;
2752
+ let t = this._texture;
2753
+ t !== e && (t && t.dynamic && t.off("update", this.onViewUpdate, this), e.dynamic && e.on("update", this.onViewUpdate, this), this._texture = e, this._width && this._setWidth(this._width, this._texture.orig.width), this._height && this._setHeight(this._height, this._texture.orig.height), this.onViewUpdate());
2754
+ }
2755
+ get texture() {
2756
+ return this._texture;
2757
+ }
2758
+ get visualBounds() {
2759
+ return Pt(this._visualBounds, this._anchor, this._texture), this._visualBounds;
2760
+ }
2761
+ get sourceBounds() {
2762
+ return A("8.6.1", "Sprite.sourceBounds is deprecated, use visualBounds instead."), this.visualBounds;
2763
+ }
2764
+ updateBounds() {
2765
+ let e = this._anchor, t = this._texture, n = this._bounds, { width: r, height: i } = t.orig;
2766
+ n.minX = -e._x * r, n.maxX = n.minX + r, n.minY = -e._y * i, n.maxY = n.minY + i;
2767
+ }
2768
+ destroy(e = !1) {
2769
+ if (super.destroy(e), typeof e == "boolean" ? e : e?.texture) {
2770
+ let t = typeof e == "boolean" ? e : e?.textureSource;
2771
+ this._texture.destroy(t);
2772
+ }
2773
+ this._texture = null, this._visualBounds = null, this._bounds = null, this._anchor = null;
2774
+ }
2775
+ get anchor() {
2776
+ return this._anchor;
2777
+ }
2778
+ set anchor(e) {
2779
+ typeof e == "number" ? this._anchor.set(e) : this._anchor.copyFrom(e);
2780
+ }
2781
+ get width() {
2782
+ return Math.abs(this.scale.x) * this._texture.orig.width;
2783
+ }
2784
+ set width(e) {
2785
+ this._setWidth(e, this._texture.orig.width), this._width = e;
2786
+ }
2787
+ get height() {
2788
+ return Math.abs(this.scale.y) * this._texture.orig.height;
2789
+ }
2790
+ set height(e) {
2791
+ this._setHeight(e, this._texture.orig.height), this._height = e;
2792
+ }
2793
+ getSize(e) {
2794
+ return e ||= {}, e.width = Math.abs(this.scale.x) * this._texture.orig.width, e.height = Math.abs(this.scale.y) * this._texture.orig.height, e;
2795
+ }
2796
+ setSize(e, t) {
2797
+ typeof e == "object" ? (t = e.height ?? e.width, e = e.width) : t ??= e, e !== void 0 && this._setWidth(e, this._texture.orig.width), t !== void 0 && this._setHeight(t, this._texture.orig.height);
2798
+ }
2799
+ }, It = class extends I {
2800
+ constructor(e) {
2801
+ e.resource ||= Nt.get().createCanvas(), e.width || (e.width = e.resource.width, e.autoDensity || (e.width /= e.resolution)), e.height || (e.height = e.resource.height, e.autoDensity || (e.height /= e.resolution)), super(e), this.uploadMethodId = "image", this.autoDensity = e.autoDensity, this.resizeCanvas(), this.transparent = !!e.transparent;
2802
+ }
2803
+ resizeCanvas() {
2804
+ this.autoDensity && "style" in this.resource && (this.resource.style.width = `${this.width}px`, this.resource.style.height = `${this.height}px`), (this.resource.width !== this.pixelWidth || this.resource.height !== this.pixelHeight) && (this.resource.width = this.pixelWidth, this.resource.height = this.pixelHeight);
2805
+ }
2806
+ resize(e = this.width, t = this.height, n = this._resolution) {
2807
+ let r = super.resize(e, t, n);
2808
+ return r && this.resizeCanvas(), r;
2809
+ }
2810
+ static test(e) {
2811
+ return globalThis.HTMLCanvasElement && e instanceof HTMLCanvasElement || globalThis.OffscreenCanvas && e instanceof OffscreenCanvas;
2812
+ }
2813
+ get context2D() {
2814
+ return this._context2D ||= this.resource.getContext("2d");
2815
+ }
2816
+ };
2817
+ It.extension = n.TextureSource;
2818
+ //#endregion
2819
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/utils/createIdFromString.mjs
2820
+ var Lt = /* @__PURE__ */ Object.create(null), Rt = /* @__PURE__ */ Object.create(null);
2821
+ function q(e, t) {
2822
+ let n = Rt[e];
2823
+ return n === void 0 && (Lt[t] === void 0 && (Lt[t] = 1), Rt[e] = n = Lt[t]++), n;
2824
+ }
2825
+ //#endregion
2826
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getTestContext.mjs
2827
+ var J;
2828
+ function zt() {
2829
+ return (!J || J?.isContextLost()) && (J = Nt.get().createCanvas().getContext("webgl", {})), J;
2830
+ }
2831
+ //#endregion
2832
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getMaxFragmentPrecision.mjs
2833
+ var Bt;
2834
+ function Vt() {
2835
+ if (!Bt) {
2836
+ Bt = "mediump";
2837
+ let e = zt();
2838
+ e && e.getShaderPrecisionFormat && (Bt = e.getShaderPrecisionFormat(e.FRAGMENT_SHADER, e.HIGH_FLOAT).precision ? "highp" : "mediump");
2839
+ }
2840
+ return Bt;
2841
+ }
2842
+ //#endregion
2843
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/addProgramDefines.mjs
2844
+ function Ht(e, t, n) {
2845
+ return t ? e : n ? (e = e.replace("out vec4 finalColor;", ""), `
2846
+
2847
+ #ifdef GL_ES // This checks if it is WebGL1
2848
+ #define in varying
2849
+ #define finalColor gl_FragColor
2850
+ #define texture texture2D
2851
+ #endif
2852
+ ${e}
2853
+ `) : `
2854
+
2855
+ #ifdef GL_ES // This checks if it is WebGL1
2856
+ #define in attribute
2857
+ #define out varying
2858
+ #endif
2859
+ ${e}
2860
+ `;
2861
+ }
2862
+ //#endregion
2863
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/ensurePrecision.mjs
2864
+ function Ut(e, t, n) {
2865
+ let r = n ? t.maxSupportedFragmentPrecision : t.maxSupportedVertexPrecision;
2866
+ if (e.substring(0, 9) !== "precision") {
2867
+ let i = n ? t.requestedFragmentPrecision : t.requestedVertexPrecision;
2868
+ return i === "highp" && r !== "highp" && (i = "mediump"), `precision ${i} float;
2869
+ ${e}`;
2870
+ }
2871
+ return r !== "highp" && e.substring(0, 15) === "precision highp" ? e.replace("precision highp", "precision mediump") : e;
2872
+ }
2873
+ //#endregion
2874
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/insertVersion.mjs
2875
+ function Wt(e, t) {
2876
+ return t ? `#version 300 es
2877
+ ${e}` : e;
2878
+ }
2879
+ //#endregion
2880
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/setProgramName.mjs
2881
+ var Gt = {}, Kt = {};
2882
+ function qt(e, { name: t = "pixi-program" }, n = !0) {
2883
+ t = t.replace(/\s+/g, "-"), t += n ? "-fragment" : "-vertex";
2884
+ let r = n ? Gt : Kt;
2885
+ return r[t] ? (r[t]++, t += `-${r[t]}`) : r[t] = 1, e.indexOf("#define SHADER_NAME") === -1 ? `${`#define SHADER_NAME ${t}`}
2886
+ ${e}` : e;
2887
+ }
2888
+ //#endregion
2889
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/stripVersion.mjs
2890
+ function Jt(e, t) {
2891
+ return t ? e.replace("#version 300 es", "") : e;
2892
+ }
2893
+ //#endregion
2894
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/GlProgram.mjs
2895
+ var Yt = {
2896
+ stripVersion: Jt,
2897
+ ensurePrecision: Ut,
2898
+ addProgramDefines: Ht,
2899
+ setProgramName: qt,
2900
+ insertVersion: Wt
2901
+ }, Y = /* @__PURE__ */ Object.create(null), Xt = class e {
2902
+ constructor(t) {
2903
+ t = {
2904
+ ...e.defaultOptions,
2905
+ ...t
2906
+ };
2907
+ let n = t.fragment.indexOf("#version 300 es") !== -1, r = {
2908
+ stripVersion: n,
2909
+ ensurePrecision: {
2910
+ requestedFragmentPrecision: t.preferredFragmentPrecision,
2911
+ requestedVertexPrecision: t.preferredVertexPrecision,
2912
+ maxSupportedVertexPrecision: "highp",
2913
+ maxSupportedFragmentPrecision: Vt()
2914
+ },
2915
+ setProgramName: { name: t.name },
2916
+ addProgramDefines: n,
2917
+ insertVersion: n
2918
+ }, i = t.fragment, a = t.vertex;
2919
+ Object.keys(Yt).forEach((e) => {
2920
+ let t = r[e];
2921
+ i = Yt[e](i, t, !0), a = Yt[e](a, t, !1);
2922
+ }), this.fragment = i, this.vertex = a, this.transformFeedbackVaryings = t.transformFeedbackVaryings, this._key = q(`${this.vertex}:${this.fragment}`, "gl-program");
2923
+ }
2924
+ destroy() {
2925
+ this.fragment = null, this.vertex = null, this._attributeData = null, this._uniformData = null, this._uniformBlockData = null, this.transformFeedbackVaryings = null, Y[this._cacheKey] = null;
2926
+ }
2927
+ static from(t) {
2928
+ let n = `${t.vertex}:${t.fragment}`;
2929
+ return Y[n] || (Y[n] = new e(t), Y[n]._cacheKey = n), Y[n];
2930
+ }
2931
+ };
2932
+ Xt.defaultOptions = {
2933
+ preferredVertexPrecision: "highp",
2934
+ preferredFragmentPrecision: "mediump"
2935
+ };
2936
+ var Zt = Xt, Qt = {
2937
+ uint8x2: {
2938
+ size: 2,
2939
+ stride: 2,
2940
+ normalised: !1
2941
+ },
2942
+ uint8x4: {
2943
+ size: 4,
2944
+ stride: 4,
2945
+ normalised: !1
2946
+ },
2947
+ sint8x2: {
2948
+ size: 2,
2949
+ stride: 2,
2950
+ normalised: !1
2951
+ },
2952
+ sint8x4: {
2953
+ size: 4,
2954
+ stride: 4,
2955
+ normalised: !1
2956
+ },
2957
+ unorm8x2: {
2958
+ size: 2,
2959
+ stride: 2,
2960
+ normalised: !0
2961
+ },
2962
+ unorm8x4: {
2963
+ size: 4,
2964
+ stride: 4,
2965
+ normalised: !0
2966
+ },
2967
+ snorm8x2: {
2968
+ size: 2,
2969
+ stride: 2,
2970
+ normalised: !0
2971
+ },
2972
+ snorm8x4: {
2973
+ size: 4,
2974
+ stride: 4,
2975
+ normalised: !0
2976
+ },
2977
+ uint16x2: {
2978
+ size: 2,
2979
+ stride: 4,
2980
+ normalised: !1
2981
+ },
2982
+ uint16x4: {
2983
+ size: 4,
2984
+ stride: 8,
2985
+ normalised: !1
2986
+ },
2987
+ sint16x2: {
2988
+ size: 2,
2989
+ stride: 4,
2990
+ normalised: !1
2991
+ },
2992
+ sint16x4: {
2993
+ size: 4,
2994
+ stride: 8,
2995
+ normalised: !1
2996
+ },
2997
+ unorm16x2: {
2998
+ size: 2,
2999
+ stride: 4,
3000
+ normalised: !0
3001
+ },
3002
+ unorm16x4: {
3003
+ size: 4,
3004
+ stride: 8,
3005
+ normalised: !0
3006
+ },
3007
+ snorm16x2: {
3008
+ size: 2,
3009
+ stride: 4,
3010
+ normalised: !0
3011
+ },
3012
+ snorm16x4: {
3013
+ size: 4,
3014
+ stride: 8,
3015
+ normalised: !0
3016
+ },
3017
+ float16x2: {
3018
+ size: 2,
3019
+ stride: 4,
3020
+ normalised: !1
3021
+ },
3022
+ float16x4: {
3023
+ size: 4,
3024
+ stride: 8,
3025
+ normalised: !1
3026
+ },
3027
+ float32: {
3028
+ size: 1,
3029
+ stride: 4,
3030
+ normalised: !1
3031
+ },
3032
+ float32x2: {
3033
+ size: 2,
3034
+ stride: 8,
3035
+ normalised: !1
3036
+ },
3037
+ float32x3: {
3038
+ size: 3,
3039
+ stride: 12,
3040
+ normalised: !1
3041
+ },
3042
+ float32x4: {
3043
+ size: 4,
3044
+ stride: 16,
3045
+ normalised: !1
3046
+ },
3047
+ uint32: {
3048
+ size: 1,
3049
+ stride: 4,
3050
+ normalised: !1
3051
+ },
3052
+ uint32x2: {
3053
+ size: 2,
3054
+ stride: 8,
3055
+ normalised: !1
3056
+ },
3057
+ uint32x3: {
3058
+ size: 3,
3059
+ stride: 12,
3060
+ normalised: !1
3061
+ },
3062
+ uint32x4: {
3063
+ size: 4,
3064
+ stride: 16,
3065
+ normalised: !1
3066
+ },
3067
+ sint32: {
3068
+ size: 1,
3069
+ stride: 4,
3070
+ normalised: !1
3071
+ },
3072
+ sint32x2: {
3073
+ size: 2,
3074
+ stride: 8,
3075
+ normalised: !1
3076
+ },
3077
+ sint32x3: {
3078
+ size: 3,
3079
+ stride: 12,
3080
+ normalised: !1
3081
+ },
3082
+ sint32x4: {
3083
+ size: 4,
3084
+ stride: 16,
3085
+ normalised: !1
3086
+ }
3087
+ };
3088
+ function $t(e) {
3089
+ return Qt[e] ?? Qt.float32;
3090
+ }
3091
+ //#endregion
3092
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractAttributesFromGpuProgram.mjs
3093
+ var en = {
3094
+ f32: "float32",
3095
+ "vec2<f32>": "float32x2",
3096
+ "vec3<f32>": "float32x3",
3097
+ "vec4<f32>": "float32x4",
3098
+ vec2f: "float32x2",
3099
+ vec3f: "float32x3",
3100
+ vec4f: "float32x4",
3101
+ i32: "sint32",
3102
+ "vec2<i32>": "sint32x2",
3103
+ "vec3<i32>": "sint32x3",
3104
+ "vec4<i32>": "sint32x4",
3105
+ vec2i: "sint32x2",
3106
+ vec3i: "sint32x3",
3107
+ vec4i: "sint32x4",
3108
+ u32: "uint32",
3109
+ "vec2<u32>": "uint32x2",
3110
+ "vec3<u32>": "uint32x3",
3111
+ "vec4<u32>": "uint32x4",
3112
+ vec2u: "uint32x2",
3113
+ vec3u: "uint32x3",
3114
+ vec4u: "uint32x4",
3115
+ bool: "uint32",
3116
+ "vec2<bool>": "uint32x2",
3117
+ "vec3<bool>": "uint32x3",
3118
+ "vec4<bool>": "uint32x4"
3119
+ }, tn = /@location\((\d+)\)\s+([a-zA-Z0-9_]+)\s*:\s*([a-zA-Z0-9_<>]+)(?:,|\s|\)|$)/g;
3120
+ function nn(e, t) {
3121
+ let n;
3122
+ for (; (n = tn.exec(e)) !== null;) {
3123
+ let e = en[n[3]] ?? "float32";
3124
+ t[n[2]] = {
3125
+ location: parseInt(n[1], 10),
3126
+ format: e,
3127
+ stride: $t(e).stride,
3128
+ offset: 0,
3129
+ instance: !1,
3130
+ start: 0
3131
+ };
3132
+ }
3133
+ tn.lastIndex = 0;
3134
+ }
3135
+ function rn(e) {
3136
+ return e.replace(/\/\/.*$/gm, "").replace(/\/\*[\s\S]*?\*\//g, "");
3137
+ }
3138
+ function an({ source: e, entryPoint: t }) {
3139
+ let n = {}, r = rn(e), i = r.indexOf(`fn ${t}(`);
3140
+ if (i === -1) return n;
3141
+ let a = r.indexOf("->", i);
3142
+ if (a === -1) return n;
3143
+ let o = r.substring(i, a);
3144
+ if (nn(o, n), Object.keys(n).length === 0) {
3145
+ let e = o.match(/\(\s*\w+\s*:\s*(\w+)/);
3146
+ if (e) {
3147
+ let t = e[1], i = RegExp(`struct\\s+${t}\\s*\\{([^}]+)\\}`, "s"), a = r.match(i);
3148
+ a && nn(a[1], n);
3149
+ }
3150
+ }
3151
+ return n;
3152
+ }
3153
+ //#endregion
3154
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractStructAndGroups.mjs
3155
+ function on(e) {
3156
+ let t = /(^|[^/])@(group|binding)\(\d+\)[^;]+;/g, n = /@group\((\d+)\)/, r = /@binding\((\d+)\)/, i = /var(<[^>]+>)? (\w+)/, a = /:\s*([\w<>]+)/, o = /struct\s+(\w+)\s*{([^}]+)}/g, s = /(\w+)\s*:\s*([\w\<\>]+)/g, c = /struct\s+(\w+)/, l = e.match(t)?.map((e) => ({
3157
+ group: parseInt(e.match(n)[1], 10),
3158
+ binding: parseInt(e.match(r)[1], 10),
3159
+ name: e.match(i)[2],
3160
+ isUniform: e.match(i)[1] === "<uniform>",
3161
+ type: e.match(a)[1]
3162
+ }));
3163
+ return l ? {
3164
+ groups: l,
3165
+ structs: e.match(o)?.map((e) => {
3166
+ let t = e.match(c)[1], n = e.match(s).reduce((e, t) => {
3167
+ let [n, r] = t.split(":");
3168
+ return e[n.trim()] = r.trim(), e;
3169
+ }, {});
3170
+ return n ? {
3171
+ name: t,
3172
+ members: n
3173
+ } : null;
3174
+ }).filter(({ name: e }) => l.some((t) => t.type === e || t.type.includes(`<${e}>`))) ?? []
3175
+ } : {
3176
+ groups: [],
3177
+ structs: []
3178
+ };
3179
+ }
3180
+ //#endregion
3181
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/const.mjs
3182
+ var X = /* @__PURE__ */ ((e) => (e[e.VERTEX = 1] = "VERTEX", e[e.FRAGMENT = 2] = "FRAGMENT", e[e.COMPUTE = 4] = "COMPUTE", e))(X || {});
3183
+ //#endregion
3184
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateGpuLayoutGroups.mjs
3185
+ function sn({ groups: e }) {
3186
+ let t = [];
3187
+ for (let n = 0; n < e.length; n++) {
3188
+ let r = e[n];
3189
+ t[r.group] || (t[r.group] = []), r.isUniform ? t[r.group].push({
3190
+ binding: r.binding,
3191
+ visibility: X.VERTEX | X.FRAGMENT,
3192
+ buffer: { type: "uniform" }
3193
+ }) : r.type === "sampler" ? t[r.group].push({
3194
+ binding: r.binding,
3195
+ visibility: X.FRAGMENT,
3196
+ sampler: { type: "filtering" }
3197
+ }) : r.type === "texture_2d" || r.type.startsWith("texture_2d<") ? t[r.group].push({
3198
+ binding: r.binding,
3199
+ visibility: X.FRAGMENT,
3200
+ texture: {
3201
+ sampleType: "float",
3202
+ viewDimension: "2d",
3203
+ multisampled: !1
3204
+ }
3205
+ }) : r.type === "texture_2d_array" || r.type.startsWith("texture_2d_array<") ? t[r.group].push({
3206
+ binding: r.binding,
3207
+ visibility: X.FRAGMENT,
3208
+ texture: {
3209
+ sampleType: "float",
3210
+ viewDimension: "2d-array",
3211
+ multisampled: !1
3212
+ }
3213
+ }) : (r.type === "texture_cube" || r.type.startsWith("texture_cube<")) && t[r.group].push({
3214
+ binding: r.binding,
3215
+ visibility: X.FRAGMENT,
3216
+ texture: {
3217
+ sampleType: "float",
3218
+ viewDimension: "cube",
3219
+ multisampled: !1
3220
+ }
3221
+ });
3222
+ }
3223
+ for (let e = 0; e < t.length; e++) t[e] || (t[e] = []);
3224
+ return t;
3225
+ }
3226
+ //#endregion
3227
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateLayoutHash.mjs
3228
+ function cn({ groups: e }) {
3229
+ let t = [];
3230
+ for (let n = 0; n < e.length; n++) {
3231
+ let r = e[n];
3232
+ t[r.group] || (t[r.group] = {}), t[r.group][r.name] = r.binding;
3233
+ }
3234
+ return t;
3235
+ }
3236
+ //#endregion
3237
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/removeStructAndGroupDuplicates.mjs
3238
+ function ln(e, t) {
3239
+ let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
3240
+ return {
3241
+ structs: [...e.structs, ...t.structs].filter((e) => !n.has(e.name) && (n.add(e.name), !0)),
3242
+ groups: [...e.groups, ...t.groups].filter((e) => {
3243
+ let t = `${e.name}-${e.binding}`;
3244
+ return !r.has(t) && (r.add(t), !0);
3245
+ })
3246
+ };
3247
+ }
3248
+ //#endregion
3249
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/GpuProgram.mjs
3250
+ var Z = /* @__PURE__ */ Object.create(null), un = class e {
3251
+ constructor(e) {
3252
+ this._layoutKey = 0, this._attributeLocationsKey = 0;
3253
+ let { fragment: t, vertex: n, layout: r, gpuLayout: i, name: a } = e;
3254
+ if (this.name = a, this.fragment = t, this.vertex = n, t.source === n.source) {
3255
+ let e = on(t.source);
3256
+ this.structsAndGroups = e;
3257
+ } else {
3258
+ let e = on(n.source), r = on(t.source);
3259
+ this.structsAndGroups = ln(e, r);
3260
+ }
3261
+ this.layout = r ?? cn(this.structsAndGroups), this.gpuLayout = i ?? sn(this.structsAndGroups), this.autoAssignGlobalUniforms = this.layout[0]?.globalUniforms !== void 0, this.autoAssignLocalUniforms = this.layout[1]?.localUniforms !== void 0, this._generateProgramKey();
3262
+ }
3263
+ _generateProgramKey() {
3264
+ let { vertex: e, fragment: t } = this, n = e.source + t.source + e.entryPoint + t.entryPoint;
3265
+ this._layoutKey = q(n, "program");
3266
+ }
3267
+ get attributeData() {
3268
+ return this._attributeData ??= an(this.vertex), this._attributeData;
3269
+ }
3270
+ destroy() {
3271
+ this.gpuLayout = null, this.layout = null, this.structsAndGroups = null, this.fragment = null, this.vertex = null, Z[this._cacheKey] = null;
3272
+ }
3273
+ static from(t) {
3274
+ let n = `${t.vertex.source}:${t.fragment.source}:${t.fragment.entryPoint}:${t.vertex.entryPoint}`;
3275
+ return Z[n] || (Z[n] = new e(t), Z[n]._cacheKey = n), Z[n];
3276
+ }
3277
+ }, dn = class {
3278
+ constructor(e) {
3279
+ this.resources = /* @__PURE__ */ Object.create(null), this._dirty = !0;
3280
+ let t = 0;
3281
+ for (let n in e) {
3282
+ let r = e[n];
3283
+ this.setResource(r, t++);
3284
+ }
3285
+ this._updateKey();
3286
+ }
3287
+ _updateKey() {
3288
+ if (!this._dirty) return;
3289
+ this._dirty = !1;
3290
+ let e = [], t = 0;
3291
+ for (let n in this.resources) e[t++] = this.resources[n]._resourceId;
3292
+ this._key = e.join("|");
3293
+ }
3294
+ setResource(e, t) {
3295
+ let n = this.resources[t];
3296
+ e !== n && (n?.off?.("change", this.onResourceChange, this), e.on?.("change", this.onResourceChange, this), this.resources[t] = e, this._dirty = !0);
3297
+ }
3298
+ getResource(e) {
3299
+ return this.resources[e];
3300
+ }
3301
+ _touch(e, t) {
3302
+ let n = this.resources;
3303
+ for (let r in n) n[r]._gcLastUsed = e, n[r]._touched = t;
3304
+ }
3305
+ destroy() {
3306
+ let e = this.resources;
3307
+ for (let t in e) e[t]?.off?.("change", this.onResourceChange, this);
3308
+ this.resources = null;
3309
+ }
3310
+ onResourceChange(e) {
3311
+ this._dirty = !0, e.destroyed ? this.destroy() : this._updateKey();
3312
+ }
3313
+ }, fn = /* @__PURE__ */ ((e) => (e[e.WEBGL = 1] = "WEBGL", e[e.WEBGPU = 2] = "WEBGPU", e[e.CANVAS = 4] = "CANVAS", e[e.BOTH = 3] = "BOTH", e))(fn || {}), pn = [
3314
+ "f32",
3315
+ "i32",
3316
+ "vec2<f32>",
3317
+ "vec3<f32>",
3318
+ "vec4<f32>",
3319
+ "mat2x2<f32>",
3320
+ "mat3x3<f32>",
3321
+ "mat4x4<f32>",
3322
+ "mat3x2<f32>",
3323
+ "mat4x2<f32>",
3324
+ "mat2x3<f32>",
3325
+ "mat4x3<f32>",
3326
+ "mat2x4<f32>",
3327
+ "mat3x4<f32>",
3328
+ "vec2<i32>",
3329
+ "vec3<i32>",
3330
+ "vec4<i32>"
3331
+ ], mn = pn.reduce((e, t) => (e[t] = !0, e), {});
3332
+ //#endregion
3333
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/utils/getDefaultUniformValue.mjs
3334
+ function hn(e, t) {
3335
+ switch (e) {
3336
+ case "f32": return 0;
3337
+ case "vec2<f32>": return new Float32Array(2 * t);
3338
+ case "vec3<f32>": return new Float32Array(3 * t);
3339
+ case "vec4<f32>": return new Float32Array(4 * t);
3340
+ case "mat2x2<f32>": return new Float32Array([
3341
+ 1,
3342
+ 0,
3343
+ 0,
3344
+ 1
3345
+ ]);
3346
+ case "mat3x3<f32>": return new Float32Array([
3347
+ 1,
3348
+ 0,
3349
+ 0,
3350
+ 0,
3351
+ 1,
3352
+ 0,
3353
+ 0,
3354
+ 0,
3355
+ 1
3356
+ ]);
3357
+ case "mat4x4<f32>": return new Float32Array([
3358
+ 1,
3359
+ 0,
3360
+ 0,
3361
+ 0,
3362
+ 0,
3363
+ 1,
3364
+ 0,
3365
+ 0,
3366
+ 0,
3367
+ 0,
3368
+ 1,
3369
+ 0,
3370
+ 0,
3371
+ 0,
3372
+ 0,
3373
+ 1
3374
+ ]);
3375
+ }
3376
+ return null;
3377
+ }
3378
+ //#endregion
3379
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/UniformGroup.mjs
3380
+ var gn = class e {
3381
+ constructor(t, n) {
3382
+ this._touched = 0, this.uid = D("uniform"), this._resourceType = "uniformGroup", this._resourceId = D("resource"), this.isUniformGroup = !0, this._dirtyId = 0, this.destroyed = !1, n = {
3383
+ ...e.defaultOptions,
3384
+ ...n
3385
+ }, this.uniformStructures = t;
3386
+ let r = {};
3387
+ for (let e in t) {
3388
+ let n = t[e];
3389
+ if (n.name = e, n.size = n.size ?? 1, !mn[n.type]) {
3390
+ let e = n.type.match(/^array<(\w+(?:<\w+>)?),\s*(\d+)>$/);
3391
+ if (e) {
3392
+ let [, t, r] = e;
3393
+ throw Error(`Uniform type ${n.type} is not supported. Use type: '${t}', size: ${r} instead.`);
3394
+ }
3395
+ throw Error(`Uniform type ${n.type} is not supported. Supported uniform types are: ${pn.join(", ")}`);
3396
+ }
3397
+ n.value ??= hn(n.type, n.size), r[e] = n.value;
3398
+ }
3399
+ this.uniforms = r, this._dirtyId = 1, this.ubo = n.ubo, this.isStatic = n.isStatic, this._signature = q(Object.keys(r).map((e) => `${e}-${t[e].type}`).join("-"), "uniform-group");
3400
+ }
3401
+ update() {
3402
+ this._dirtyId++;
3403
+ }
3404
+ };
3405
+ gn.defaultOptions = {
3406
+ ubo: !1,
3407
+ isStatic: !1
3408
+ };
3409
+ var _n = gn, vn = class e extends o {
3410
+ constructor(e) {
3411
+ super(), this.uid = D("shader"), this._uniformBindMap = /* @__PURE__ */ Object.create(null), this._ownedBindGroups = [], this._destroyed = !1;
3412
+ let { gpuProgram: t, glProgram: n, groups: r, resources: i, compatibleRenderers: a, groupMap: o } = e;
3413
+ this.gpuProgram = t, this.glProgram = n, a === void 0 && (a = 0, t && (a |= fn.WEBGPU), n && (a |= fn.WEBGL)), this.compatibleRenderers = a;
3414
+ let s = {};
3415
+ if (!i && !r && (i = {}), i && r) throw Error("[Shader] Cannot have both resources and groups");
3416
+ if (!t && r && !o) throw Error("[Shader] No group map or WebGPU shader provided - consider using resources instead.");
3417
+ if (!t && r && o) for (let e in o) for (let t in o[e]) {
3418
+ let n = o[e][t];
3419
+ s[n] = {
3420
+ group: e,
3421
+ binding: t,
3422
+ name: n
3423
+ };
3424
+ }
3425
+ else if (t && r && !o) {
3426
+ let e = t.structsAndGroups.groups;
3427
+ o = {}, e.forEach((e) => {
3428
+ o[e.group] = o[e.group] || {}, o[e.group][e.binding] = e.name, s[e.name] = e;
3429
+ });
3430
+ } else if (i) {
3431
+ r = {}, o = {}, t && t.structsAndGroups.groups.forEach((e) => {
3432
+ o[e.group] = o[e.group] || {}, o[e.group][e.binding] = e.name, s[e.name] = e;
3433
+ });
3434
+ let e = 0;
3435
+ for (let t in i) s[t] || (r[99] || (r[99] = new dn(), this._ownedBindGroups.push(r[99])), s[t] = {
3436
+ group: 99,
3437
+ binding: e,
3438
+ name: t
3439
+ }, o[99] = o[99] || {}, o[99][e] = t, e++);
3440
+ for (let e in i) {
3441
+ let t = e, n = i[e];
3442
+ !n.source && !n._resourceType && (n = new _n(n));
3443
+ let a = s[t];
3444
+ a && (r[a.group] || (r[a.group] = new dn(), this._ownedBindGroups.push(r[a.group])), r[a.group].setResource(n, a.binding));
3445
+ }
3446
+ }
3447
+ this.groups = r, this._uniformBindMap = o, this.resources = this._buildResourceAccessor(r, s);
3448
+ }
3449
+ addResource(e, t, n) {
3450
+ var r, i;
3451
+ (r = this._uniformBindMap)[t] || (r[t] = {}), (i = this._uniformBindMap[t])[n] || (i[n] = e), this.groups[t] || (this.groups[t] = new dn(), this._ownedBindGroups.push(this.groups[t]));
3452
+ }
3453
+ _buildResourceAccessor(e, t) {
3454
+ let n = {};
3455
+ for (let r in t) {
3456
+ let i = t[r];
3457
+ Object.defineProperty(n, i.name, {
3458
+ get() {
3459
+ return e[i.group].getResource(i.binding);
3460
+ },
3461
+ set(t) {
3462
+ e[i.group].setResource(t, i.binding);
3463
+ }
3464
+ });
3465
+ }
3466
+ return n;
3467
+ }
3468
+ destroy(e = !1) {
3469
+ this._destroyed || (this._destroyed = !0, this.emit("destroy", this), e && (this.gpuProgram?.destroy(), this.glProgram?.destroy()), this.gpuProgram = null, this.glProgram = null, this.removeAllListeners(), this._uniformBindMap = null, this._ownedBindGroups.forEach((e) => {
3470
+ e.destroy();
3471
+ }), this._ownedBindGroups = null, this.resources = null, this.groups = null);
3472
+ }
3473
+ static from(t) {
3474
+ let { gpu: n, gl: r, ...i } = t, a, o;
3475
+ return n && (a = un.from(n)), r && (o = Zt.from(r)), new e({
3476
+ gpuProgram: a,
3477
+ glProgram: o,
3478
+ ...i
3479
+ });
3480
+ }
3481
+ }, yn = {
3482
+ normal: 0,
3483
+ add: 1,
3484
+ multiply: 2,
3485
+ screen: 3,
3486
+ overlay: 4,
3487
+ erase: 5,
3488
+ "normal-npm": 6,
3489
+ "add-npm": 7,
3490
+ "screen-npm": 8,
3491
+ min: 9,
3492
+ max: 10
3493
+ }, bn = class e {
3494
+ constructor() {
3495
+ this.data = 0, this.blendMode = "normal", this.polygonOffset = 0, this.blend = !0, this.depthMask = !0;
3496
+ }
3497
+ get blend() {
3498
+ return !!(this.data & 1);
3499
+ }
3500
+ set blend(e) {
3501
+ !!(this.data & 1) !== e && (this.data ^= 1);
3502
+ }
3503
+ get offsets() {
3504
+ return !!(this.data & 2);
3505
+ }
3506
+ set offsets(e) {
3507
+ !!(this.data & 2) !== e && (this.data ^= 2);
3508
+ }
3509
+ set cullMode(e) {
3510
+ if (e === "none") {
3511
+ this.culling = !1;
3512
+ return;
3513
+ }
3514
+ this.culling = !0, this.clockwiseFrontFace = e === "front";
3515
+ }
3516
+ get cullMode() {
3517
+ return this.culling ? this.clockwiseFrontFace ? "front" : "back" : "none";
3518
+ }
3519
+ get culling() {
3520
+ return !!(this.data & 4);
3521
+ }
3522
+ set culling(e) {
3523
+ !!(this.data & 4) !== e && (this.data ^= 4);
3524
+ }
3525
+ get depthTest() {
3526
+ return !!(this.data & 8);
3527
+ }
3528
+ set depthTest(e) {
3529
+ !!(this.data & 8) !== e && (this.data ^= 8);
3530
+ }
3531
+ get depthMask() {
3532
+ return !!(this.data & 32);
3533
+ }
3534
+ set depthMask(e) {
3535
+ !!(this.data & 32) !== e && (this.data ^= 32);
3536
+ }
3537
+ get clockwiseFrontFace() {
3538
+ return !!(this.data & 16);
3539
+ }
3540
+ set clockwiseFrontFace(e) {
3541
+ !!(this.data & 16) !== e && (this.data ^= 16);
3542
+ }
3543
+ get blendMode() {
3544
+ return this._blendMode;
3545
+ }
3546
+ set blendMode(e) {
3547
+ this.blend = e !== "none", this._blendMode = e, this._blendModeId = yn[e] || 0;
3548
+ }
3549
+ get polygonOffset() {
3550
+ return this._polygonOffset;
3551
+ }
3552
+ set polygonOffset(e) {
3553
+ this.offsets = !!e, this._polygonOffset = e;
3554
+ }
3555
+ toString() {
3556
+ return `[pixi.js/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`;
3557
+ }
3558
+ static for2d() {
3559
+ let t = new e();
3560
+ return t.depthTest = !1, t.blend = !0, t;
3561
+ }
3562
+ };
3563
+ bn.default2d = bn.for2d();
3564
+ var xn = bn, Sn = class e extends vn {
3565
+ constructor(t) {
3566
+ t = {
3567
+ ...e.defaultOptions,
3568
+ ...t
3569
+ }, super(t), this.enabled = !0, this._state = xn.for2d(), this.blendMode = t.blendMode, this.padding = t.padding, this.antialias = typeof t.antialias == "boolean" ? t.antialias ? "on" : "off" : t.antialias, this.resolution = t.resolution, this.blendRequired = t.blendRequired, this.clipToViewport = t.clipToViewport, this.addResource("uTexture", 0, 1), t.blendRequired && this.addResource("uBackTexture", 0, 3);
3570
+ }
3571
+ apply(e, t, n, r) {
3572
+ e.applyFilter(this, t, n, r);
3573
+ }
3574
+ get blendMode() {
3575
+ return this._state.blendMode;
3576
+ }
3577
+ set blendMode(e) {
3578
+ this._state.blendMode = e;
3579
+ }
3580
+ static from(t) {
3581
+ let { gpu: n, gl: r, ...i } = t, a, o;
3582
+ return n && (a = un.from(n)), r && (o = Zt.from(r)), new e({
3583
+ gpuProgram: a,
3584
+ glProgram: o,
3585
+ ...i
3586
+ });
3587
+ }
3588
+ };
3589
+ Sn.defaultOptions = {
3590
+ blendMode: "normal",
3591
+ resolution: 1,
3592
+ padding: 0,
3593
+ antialias: "off",
3594
+ blendRequired: !1,
3595
+ clipToViewport: !0
3596
+ };
3597
+ var Cn = Sn, Q = /* @__PURE__ */ ((e) => (e[e.MAP_READ = 1] = "MAP_READ", e[e.MAP_WRITE = 2] = "MAP_WRITE", e[e.COPY_SRC = 4] = "COPY_SRC", e[e.COPY_DST = 8] = "COPY_DST", e[e.INDEX = 16] = "INDEX", e[e.VERTEX = 32] = "VERTEX", e[e.UNIFORM = 64] = "UNIFORM", e[e.STORAGE = 128] = "STORAGE", e[e.INDIRECT = 256] = "INDIRECT", e[e.QUERY_RESOLVE = 512] = "QUERY_RESOLVE", e[e.STATIC = 1024] = "STATIC", e))(Q || {}), $ = class extends o {
3598
+ constructor(e) {
3599
+ let { data: t, size: n } = e, { usage: r, label: i, shrinkToFit: a } = e;
3600
+ super(), this._gpuData = /* @__PURE__ */ Object.create(null), this._gcLastUsed = -1, this.autoGarbageCollect = !0, this.uid = D("buffer"), this._resourceType = "buffer", this._resourceId = D("resource"), this._touched = 0, this._updateID = 1, this._dataInt32 = null, this.shrinkToFit = !0, this.destroyed = !1, t instanceof Array && (t = new Float32Array(t)), this._data = t, n ??= t?.byteLength;
3601
+ let o = !!t;
3602
+ this.descriptor = {
3603
+ size: n,
3604
+ usage: r,
3605
+ mappedAtCreation: o,
3606
+ label: i
3607
+ }, this.shrinkToFit = a ?? !0;
3608
+ }
3609
+ get data() {
3610
+ return this._data;
3611
+ }
3612
+ set data(e) {
3613
+ this.setDataWithSize(e, e.length, !0);
3614
+ }
3615
+ get dataInt32() {
3616
+ return this._dataInt32 ||= new Int32Array(this.data.buffer), this._dataInt32;
3617
+ }
3618
+ get static() {
3619
+ return !!(this.descriptor.usage & Q.STATIC);
3620
+ }
3621
+ set static(e) {
3622
+ e ? this.descriptor.usage |= Q.STATIC : this.descriptor.usage &= ~Q.STATIC;
3623
+ }
3624
+ setDataWithSize(e, t, n) {
3625
+ if (this._updateID++, this._updateSize = t * e.BYTES_PER_ELEMENT, this._data === e) {
3626
+ n && this.emit("update", this);
3627
+ return;
3628
+ }
3629
+ let r = this._data;
3630
+ if (this._data = e, this._dataInt32 = null, !r || r.length !== e.length) {
3631
+ !this.shrinkToFit && r && e.byteLength < r.byteLength ? n && this.emit("update", this) : (this.descriptor.size = e.byteLength, this._resourceId = D("resource"), this.emit("change", this));
3632
+ return;
3633
+ }
3634
+ n && this.emit("update", this);
3635
+ }
3636
+ update(e) {
3637
+ this._updateSize = e ?? this._updateSize, this._updateID++, this.emit("update", this);
3638
+ }
3639
+ unload() {
3640
+ this.emit("unload", this);
3641
+ for (let e in this._gpuData) this._gpuData[e]?.destroy();
3642
+ this._gpuData = /* @__PURE__ */ Object.create(null);
3643
+ }
3644
+ destroy() {
3645
+ this.destroyed = !0, this.unload(), this.emit("destroy", this), this.emit("change", this), this._data = null, this.descriptor = null, this.removeAllListeners();
3646
+ }
3647
+ };
3648
+ //#endregion
3649
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/ensureIsBuffer.mjs
3650
+ function wn(e, t) {
3651
+ if (!(e instanceof $)) {
3652
+ let n = t ? Q.INDEX : Q.VERTEX;
3653
+ e instanceof Array && (t ? (e = new Uint32Array(e), n = Q.INDEX | Q.COPY_DST) : (e = new Float32Array(e), n = Q.VERTEX | Q.COPY_DST)), e = new $({
3654
+ data: e,
3655
+ label: t ? "index-mesh-buffer" : "vertex-mesh-buffer",
3656
+ usage: n
3657
+ });
3658
+ }
3659
+ return e;
3660
+ }
3661
+ //#endregion
3662
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/getGeometryBounds.mjs
3663
+ function Tn(e, t, n) {
3664
+ let r = e.getAttribute(t);
3665
+ if (!r) return n.minX = 0, n.minY = 0, n.maxX = 0, n.maxY = 0, n;
3666
+ let i = r.buffer.data, a = Infinity, o = Infinity, s = -Infinity, c = -Infinity, l = i.BYTES_PER_ELEMENT, u = (r.offset || 0) / l, d = (r.stride || 8) / l;
3667
+ for (let e = u; e < i.length; e += d) {
3668
+ let t = i[e], n = i[e + 1];
3669
+ t > s && (s = t), n > c && (c = n), t < a && (a = t), n < o && (o = n);
3670
+ }
3671
+ return n.minX = a, n.minY = o, n.maxX = s, n.maxY = c, n;
3672
+ }
3673
+ //#endregion
3674
+ //#region node_modules/.pnpm/pixi.js@8.19.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/Geometry.mjs
3675
+ function En(e) {
3676
+ return (e instanceof $ || Array.isArray(e) || e.BYTES_PER_ELEMENT) && (e = { buffer: e }), e.buffer = wn(e.buffer, !1), e;
3677
+ }
3678
+ var Dn = class extends o {
3679
+ constructor(e = {}) {
3680
+ super(), this._gpuData = /* @__PURE__ */ Object.create(null), this.autoGarbageCollect = !0, this._gcLastUsed = -1, this.uid = D("geometry"), this._layoutKey = 0, this.instanceCount = 1, this._bounds = new M(), this._boundsDirty = !0;
3681
+ let { attributes: t, indexBuffer: n, topology: r } = e;
3682
+ if (this.buffers = [], this.attributes = {}, t) for (let e in t) this.addAttribute(e, t[e]);
3683
+ this.instanceCount = e.instanceCount ?? 1, n && this.addIndex(n), this.topology = r || "triangle-list";
3684
+ }
3685
+ onBufferUpdate() {
3686
+ this._boundsDirty = !0, this.emit("update", this);
3687
+ }
3688
+ getAttribute(e) {
3689
+ return this.attributes[e];
3690
+ }
3691
+ getIndex() {
3692
+ return this.indexBuffer;
3693
+ }
3694
+ getBuffer(e) {
3695
+ return this.getAttribute(e).buffer;
3696
+ }
3697
+ getSize() {
3698
+ for (let e in this.attributes) {
3699
+ let t = this.attributes[e];
3700
+ return t.buffer.data.length / (t.stride / 4 || t.size);
3701
+ }
3702
+ return 0;
3703
+ }
3704
+ addAttribute(e, t) {
3705
+ let n = En(t);
3706
+ this.buffers.indexOf(n.buffer) === -1 && (this.buffers.push(n.buffer), n.buffer.on("update", this.onBufferUpdate, this), n.buffer.on("change", this.onBufferUpdate, this)), this.attributes[e] = n;
3707
+ }
3708
+ addIndex(e) {
3709
+ this.indexBuffer = wn(e, !0), this.buffers.push(this.indexBuffer);
3710
+ }
3711
+ get bounds() {
3712
+ return this._boundsDirty ? (this._boundsDirty = !1, Tn(this, "aPosition", this._bounds)) : this._bounds;
3713
+ }
3714
+ unload() {
3715
+ this.emit("unload", this);
3716
+ for (let e in this._gpuData) this._gpuData[e]?.destroy();
3717
+ this._gpuData = /* @__PURE__ */ Object.create(null);
3718
+ }
3719
+ destroy(e = !1) {
3720
+ this.emit("destroy", this), this.removeAllListeners(), e && this.buffers.forEach((e) => e.destroy()), this.unload(), this.indexBuffer?.destroy(), this.attributes = null, this.buffers = null, this.indexBuffer = null, this._bounds = null;
3721
+ }
3722
+ };
3723
+ //#endregion
3724
+ export { w as $, ct as A, M as B, St as C, H as D, vt as E, Je as F, Oe as G, Pe as H, Ke as I, O as J, De as K, Ue as L, at as M, Xe as N, I as O, F as P, T as Q, P as R, Ct as S, bt as T, je as U, ze as V, j as W, D as X, we as Y, E as Z, Nt as _, xn as a, K as b, fn as c, $t as d, ve as et, Zt as f, Ft as g, It as h, Cn as i, a as it, ot as j, ft as k, dn as l, q as m, $ as n, o as nt, vn as o, zt as p, A as q, Q as r, n as rt, _n as s, Dn as t, me as tt, un as u, jt as v, U as w, Dt as x, At as y, N as z };