bard-legends-framework 0.12.1 → 1.0.0-rc0

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 (653) hide show
  1. package/dist/index.d.mts +976 -0
  2. package/dist/index.d.ts +976 -4
  3. package/dist/index.js +67 -21
  4. package/dist/index.mjs +67 -0
  5. package/package.json +26 -11
  6. package/dist/_interfaces/index.d.ts +0 -6
  7. package/dist/_interfaces/index.js +0 -2
  8. package/dist/actions-performance.test.d.ts +0 -1
  9. package/dist/actions-performance.test.js +0 -83
  10. package/dist/game-entities/_base/attachable.d.ts +0 -10
  11. package/dist/game-entities/_base/attachable.js +0 -47
  12. package/dist/game-entities/_base/attachable.store.d.ts +0 -8
  13. package/dist/game-entities/_base/attachable.store.js +0 -43
  14. package/dist/game-entities/_base/attachment-target.d.ts +0 -16
  15. package/dist/game-entities/_base/attachment-target.js +0 -53
  16. package/dist/game-entities/_base/destroyable.d.ts +0 -3
  17. package/dist/game-entities/_base/destroyable.js +0 -10
  18. package/dist/game-entities/_base/interfaces.d.ts +0 -3
  19. package/dist/game-entities/_base/interfaces.js +0 -3
  20. package/dist/game-entities/_base/mixins.d.ts +0 -22
  21. package/dist/game-entities/_base/mixins.js +0 -60
  22. package/dist/game-entities/attachable/attachable.d.ts +0 -10
  23. package/dist/game-entities/attachable/attachable.js +0 -34
  24. package/dist/game-entities/attachable/attachable.spec.d.ts +0 -1
  25. package/dist/game-entities/attachable/attachable.spec.js +0 -137
  26. package/dist/game-entities/attachable/attachable.store.d.ts +0 -8
  27. package/dist/game-entities/attachable/attachable.store.js +0 -41
  28. package/dist/game-entities/attachable/attachable.test.d.ts +0 -1
  29. package/dist/game-entities/attachable/attachable.test.js +0 -140
  30. package/dist/game-entities/attachable/destroyable.d.ts +0 -17
  31. package/dist/game-entities/attachable/destroyable.js +0 -71
  32. package/dist/game-entities/attachable/helpers/decorate-actions-lib.d.ts +0 -20
  33. package/dist/game-entities/attachable/helpers/decorate-actions-lib.js +0 -134
  34. package/dist/game-entities/attachable/helpers/referance-variable.d.ts +0 -19
  35. package/dist/game-entities/attachable/helpers/referance-variable.js +0 -51
  36. package/dist/game-entities/attachable/interfaces.d.ts +0 -14
  37. package/dist/game-entities/attachable/interfaces.js +0 -2
  38. package/dist/game-entities/base/attachable.d.ts +0 -18
  39. package/dist/game-entities/base/attachable.js +0 -94
  40. package/dist/game-entities/base/attachable.test.d.ts +0 -1
  41. package/dist/game-entities/base/attachable.test.js +0 -125
  42. package/dist/game-entities/base/attachment-target.d.ts +0 -9
  43. package/dist/game-entities/base/attachment-target.js +0 -53
  44. package/dist/game-entities/base/attachment-target.test.d.ts +0 -1
  45. package/dist/game-entities/base/attachment-target.test.js +0 -131
  46. package/dist/game-entities/base/destroyable.d.ts +0 -16
  47. package/dist/game-entities/base/destroyable.js +0 -61
  48. package/dist/game-entities/base/helpers/attachable.store.d.ts +0 -2
  49. package/dist/game-entities/base/helpers/attachable.store.js +0 -68
  50. package/dist/game-entities/base/helpers/attachable.store.test.d.ts +0 -1
  51. package/dist/game-entities/base/helpers/attachable.store.test.js +0 -234
  52. package/dist/game-entities/base/helpers/attachment-target.store.d.ts +0 -1
  53. package/dist/game-entities/base/helpers/attachment-target.store.js +0 -40
  54. package/dist/game-entities/base/helpers/decorate-actions-lib.d.ts +0 -20
  55. package/dist/game-entities/base/helpers/decorate-actions-lib.js +0 -124
  56. package/dist/game-entities/base/helpers/referance-variable.d.ts +0 -19
  57. package/dist/game-entities/base/helpers/referance-variable.js +0 -52
  58. package/dist/game-entities/base/interfaces.d.ts +0 -14
  59. package/dist/game-entities/base/interfaces.js +0 -3
  60. package/dist/game-entities/controller/controller.d.ts +0 -9
  61. package/dist/game-entities/controller/controller.js +0 -53
  62. package/dist/game-entities/controller/controller.spec.d.ts +0 -1
  63. package/dist/game-entities/controller/controller.spec.js +0 -131
  64. package/dist/game-entities/controller/controller.test.d.ts +0 -1
  65. package/dist/game-entities/controller/controller.test.js +0 -128
  66. package/dist/game-entities/entity/entity.d.ts +0 -15
  67. package/dist/game-entities/entity/entity.js +0 -73
  68. package/dist/game-entities/entity/entity.spec.d.ts +0 -1
  69. package/dist/game-entities/entity/entity.spec.js +0 -271
  70. package/dist/game-entities/entity/entity.test.d.ts +0 -1
  71. package/dist/game-entities/entity/entity.test.js +0 -253
  72. package/dist/game-entities/entity/helpers/entity-store.helper.d.ts +0 -11
  73. package/dist/game-entities/entity/helpers/entity-store.helper.js +0 -46
  74. package/dist/game-entities/entity/helpers/entity-store.helper.test.d.ts +0 -1
  75. package/dist/game-entities/entity/helpers/entity-store.helper.test.js +0 -136
  76. package/dist/game-entities/entity/helpers/entity-views.helper.d.ts +0 -14
  77. package/dist/game-entities/entity/helpers/entity-views.helper.js +0 -71
  78. package/dist/game-entities/entity/helpers/view-creation.helper.d.ts +0 -11
  79. package/dist/game-entities/entity/helpers/view-creation.helper.js +0 -57
  80. package/dist/game-entities/entity/singleton-entity.d.ts +0 -6
  81. package/dist/game-entities/entity/singleton-entity.js +0 -23
  82. package/dist/game-entities/entity/singleton-entity.test.d.ts +0 -1
  83. package/dist/game-entities/entity/singleton-entity.test.js +0 -66
  84. package/dist/game-entities/hard-reset.d.ts +0 -5
  85. package/dist/game-entities/hard-reset.js +0 -14
  86. package/dist/game-entities/index.d.ts +0 -8
  87. package/dist/game-entities/index.js +0 -25
  88. package/dist/game-entities/scene/scene.d.ts +0 -27
  89. package/dist/game-entities/scene/scene.js +0 -106
  90. package/dist/game-entities/scene/scene.spec.d.ts +0 -1
  91. package/dist/game-entities/scene/scene.spec.js +0 -227
  92. package/dist/game-entities/scene/scene.test.d.ts +0 -1
  93. package/dist/game-entities/scene/scene.test.js +0 -275
  94. package/dist/game-entities/service/service.d.ts +0 -6
  95. package/dist/game-entities/service/service.js +0 -59
  96. package/dist/game-entities/service/service.spec.d.ts +0 -1
  97. package/dist/game-entities/service/service.spec.js +0 -273
  98. package/dist/game-entities/service/service.test.d.ts +0 -1
  99. package/dist/game-entities/service/service.test.js +0 -273
  100. package/dist/game-entities/unit-test.helper.d.ts +0 -5
  101. package/dist/game-entities/unit-test.helper.js +0 -14
  102. package/dist/game-entities/update-cycle.d.ts +0 -25
  103. package/dist/game-entities/update-cycle.js +0 -67
  104. package/dist/game-entities/update-loop.d.ts +0 -21
  105. package/dist/game-entities/update-loop.js +0 -53
  106. package/dist/game-entities/view/view.d.ts +0 -16
  107. package/dist/game-entities/view/view.js +0 -56
  108. package/dist/game-entities/view/view.spec.d.ts +0 -1
  109. package/dist/game-entities/view/view.spec.js +0 -498
  110. package/dist/game-entities/view/view.test.d.ts +0 -1
  111. package/dist/game-entities/view/view.test.js +0 -348
  112. package/dist/lib/animator/animations.d.ts +0 -25
  113. package/dist/lib/animator/animations.js +0 -61
  114. package/dist/lib/animator/animator.d.ts +0 -52
  115. package/dist/lib/animator/animator.js +0 -219
  116. package/dist/lib/animator/animator.spec.d.ts +0 -1
  117. package/dist/lib/animator/animator.spec.js +0 -702
  118. package/dist/lib/animator/index.d.ts +0 -2
  119. package/dist/lib/animator/index.js +0 -24
  120. package/dist/lib/libraries/animator/animations.d.ts +0 -25
  121. package/dist/lib/libraries/animator/animations.js +0 -61
  122. package/dist/lib/libraries/animator/animator.d.ts +0 -52
  123. package/dist/lib/libraries/animator/animator.js +0 -219
  124. package/dist/lib/libraries/animator/animator.spec.d.ts +0 -1
  125. package/dist/lib/libraries/animator/animator.spec.js +0 -702
  126. package/dist/lib/libraries/animator/index.d.ts +0 -2
  127. package/dist/lib/libraries/animator/index.js +0 -24
  128. package/dist/lib/libraries/path-finder/path-finder.d.ts +0 -5
  129. package/dist/lib/libraries/path-finder/path-finder.js +0 -23
  130. package/dist/lib/path-finder/path-finder.d.ts +0 -5
  131. package/dist/lib/path-finder/path-finder.js +0 -23
  132. package/dist/lib/services/keyboard/keyboard.d.ts +0 -7
  133. package/dist/lib/services/keyboard/keyboard.js +0 -44
  134. package/dist/lib/services/mouse/mouse.service.d.ts +0 -12
  135. package/dist/lib/services/mouse/mouse.service.js +0 -70
  136. package/dist/lib/services/mouse/mouser-target-focus.service.d.ts +0 -16
  137. package/dist/lib/services/mouse/mouser-target-focus.service.js +0 -93
  138. package/dist/lib/update-loop.d.ts +0 -13
  139. package/dist/lib/update-loop.js +0 -44
  140. package/dist/physics/entitity-types/immovable-physics-entity.d.ts +0 -13
  141. package/dist/physics/entitity-types/immovable-physics-entity.js +0 -27
  142. package/dist/physics/entitity-types/movable-entity.d.ts +0 -11
  143. package/dist/physics/entitity-types/movable-entity.js +0 -25
  144. package/dist/physics/entitity-types/movable-physics-entity.d.ts +0 -21
  145. package/dist/physics/entitity-types/movable-physics-entity.js +0 -87
  146. package/dist/physics/entitity-types/physics-entity.d.ts +0 -31
  147. package/dist/physics/entitity-types/physics-entity.js +0 -106
  148. package/dist/physics/entity-types/immovable-physics-entity.d.ts +0 -9
  149. package/dist/physics/entity-types/immovable-physics-entity.js +0 -25
  150. package/dist/physics/entity-types/movable-entity.d.ts +0 -11
  151. package/dist/physics/entity-types/movable-entity.js +0 -26
  152. package/dist/physics/entity-types/movable-physics-entity.d.ts +0 -19
  153. package/dist/physics/entity-types/movable-physics-entity.js +0 -94
  154. package/dist/physics/entity-types/physics-entity.d.ts +0 -30
  155. package/dist/physics/entity-types/physics-entity.js +0 -90
  156. package/dist/physics/helpers/closest-available-space.helper.d.ts +0 -19
  157. package/dist/physics/helpers/closest-available-space.helper.js +0 -109
  158. package/dist/physics/helpers/closest-available-space.helper.spec.d.ts +0 -1
  159. package/dist/physics/helpers/closest-available-space.helper.spec.js +0 -118
  160. package/dist/physics/helpers/p2js.helper.d.ts +0 -7
  161. package/dist/physics/helpers/p2js.helper.js +0 -25
  162. package/dist/physics/helpers/shape-factory.d.ts +0 -13
  163. package/dist/physics/helpers/shape-factory.js +0 -109
  164. package/dist/physics/index.d.ts +0 -6
  165. package/dist/physics/index.js +0 -28
  166. package/dist/physics/interfaces.d.ts +0 -48
  167. package/dist/physics/interfaces.js +0 -13
  168. package/dist/physics/libs/p2js.helper.d.ts +0 -10
  169. package/dist/physics/libs/p2js.helper.js +0 -46
  170. package/dist/physics/libs/physics-body-groups.d.ts +0 -1
  171. package/dist/physics/libs/physics-body-groups.js +0 -3
  172. package/dist/physics/libs/position-to-grid-position-converter.d.ts +0 -6
  173. package/dist/physics/libs/position-to-grid-position-converter.js +0 -19
  174. package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics-internal.controller.d.ts +0 -29
  175. package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics-internal.controller.js +0 -62
  176. package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics.controller.d.ts +0 -34
  177. package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics.controller.js +0 -80
  178. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/requests.dto.d.ts +0 -24
  179. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/requests.dto.js +0 -3
  180. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/responses.dto.d.ts +0 -30
  181. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/responses.dto.js +0 -3
  182. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/shared-interfaces.dto.d.ts +0 -21
  183. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/shared-interfaces.dto.js +0 -5
  184. package/dist/physics/module//342/232/234/357/270/217gateways/index.d.ts +0 -4
  185. package/dist/physics/module//342/232/234/357/270/217gateways/index.js +0 -26
  186. package/dist/physics/module//342/232/234/357/270/217gateways/physics-internal.gateway.d.ts +0 -20
  187. package/dist/physics/module//342/232/234/357/270/217gateways/physics-internal.gateway.js +0 -42
  188. package/dist/physics/module//342/232/234/357/270/217gateways/physics.gateway.d.ts +0 -19
  189. package/dist/physics/module//342/232/234/357/270/217gateways/physics.gateway.js +0 -49
  190. package/dist/physics/module//360/237/223/220services/availability-grid.service.d.ts +0 -17
  191. package/dist/physics/module//360/237/223/220services/availability-grid.service.js +0 -83
  192. package/dist/physics/module//360/237/223/220services/border.service.d.ts +0 -5
  193. package/dist/physics/module//360/237/223/220services/border.service.js +0 -62
  194. package/dist/physics/module//360/237/223/220services/collision/collisions.service.d.ts +0 -10
  195. package/dist/physics/module//360/237/223/220services/collision/collisions.service.js +0 -113
  196. package/dist/physics/module//360/237/223/220services/collision/hit-test.service.d.ts +0 -10
  197. package/dist/physics/module//360/237/223/220services/collision/hit-test.service.js +0 -75
  198. package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.d.ts +0 -12
  199. package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.js +0 -61
  200. package/dist/physics/module//360/237/223/220services/collisions.service.d.ts +0 -10
  201. package/dist/physics/module//360/237/223/220services/collisions.service.js +0 -118
  202. package/dist/physics/module//360/237/223/220services/creation/border.service.d.ts +0 -6
  203. package/dist/physics/module//360/237/223/220services/creation/border.service.js +0 -42
  204. package/dist/physics/module//360/237/223/220services/creation/materials.service.d.ts +0 -15
  205. package/dist/physics/module//360/237/223/220services/creation/materials.service.js +0 -120
  206. package/dist/physics/module//360/237/223/220services/creation/physics-world.service.d.ts +0 -21
  207. package/dist/physics/module//360/237/223/220services/creation/physics-world.service.js +0 -116
  208. package/dist/physics/module//360/237/223/220services/creation/shape-creation.service.d.ts +0 -9
  209. package/dist/physics/module//360/237/223/220services/creation/shape-creation.service.js +0 -98
  210. package/dist/physics/module//360/237/223/220services/debug-visuals.service.d.ts +0 -36
  211. package/dist/physics/module//360/237/223/220services/debug-visuals.service.js +0 -127
  212. package/dist/physics/module//360/237/223/220services/eliptic-explosion.service.d.ts +0 -22
  213. package/dist/physics/module//360/237/223/220services/eliptic-explosion.service.js +0 -126
  214. package/dist/physics/module//360/237/223/220services/explosion.service.d.ts +0 -21
  215. package/dist/physics/module//360/237/223/220services/explosion.service.js +0 -112
  216. package/dist/physics/module//360/237/223/220services/explosions/eliptic-explosion.service.d.ts +0 -22
  217. package/dist/physics/module//360/237/223/220services/explosions/eliptic-explosion.service.js +0 -126
  218. package/dist/physics/module//360/237/223/220services/explosions/explosion.service.d.ts +0 -21
  219. package/dist/physics/module//360/237/223/220services/explosions/explosion.service.js +0 -112
  220. package/dist/physics/module//360/237/223/220services/explosions/helpers/ray-cast-hit-converter.d.ts +0 -9
  221. package/dist/physics/module//360/237/223/220services/explosions/helpers/ray-cast-hit-converter.js +0 -77
  222. package/dist/physics/module//360/237/223/220services/helpers/ray-cast-hit-converter.d.ts +0 -9
  223. package/dist/physics/module//360/237/223/220services/helpers/ray-cast-hit-converter.js +0 -77
  224. package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.d.ts +0 -18
  225. package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.js +0 -107
  226. package/dist/physics/module//360/237/223/220services/impact/explosion.service.d.ts +0 -18
  227. package/dist/physics/module//360/237/223/220services/impact/explosion.service.js +0 -93
  228. package/dist/physics/module//360/237/223/220services/impact/impact.service.d.ts +0 -5
  229. package/dist/physics/module//360/237/223/220services/impact/impact.service.js +0 -23
  230. package/dist/physics/module//360/237/223/220services/impact/ray-cast-hit-converter.d.ts +0 -9
  231. package/dist/physics/module//360/237/223/220services/impact/ray-cast-hit-converter.js +0 -83
  232. package/dist/physics/module//360/237/223/220services/materials.service.d.ts +0 -20
  233. package/dist/physics/module//360/237/223/220services/materials.service.js +0 -130
  234. package/dist/physics/module//360/237/223/220services/path-finder.service.d.ts +0 -26
  235. package/dist/physics/module//360/237/223/220services/path-finder.service.js +0 -131
  236. package/dist/physics/module//360/237/223/220services/path-finding/availability-grid-cache.service.d.ts +0 -15
  237. package/dist/physics/module//360/237/223/220services/path-finding/availability-grid-cache.service.js +0 -51
  238. package/dist/physics/module//360/237/223/220services/path-finding/availability-grid.service.d.ts +0 -16
  239. package/dist/physics/module//360/237/223/220services/path-finding/availability-grid.service.js +0 -76
  240. package/dist/physics/module//360/237/223/220services/path-finding/path-finder.service.d.ts +0 -14
  241. package/dist/physics/module//360/237/223/220services/path-finding/path-finder.service.js +0 -86
  242. package/dist/physics/module//360/237/223/220services/physics-world.service.d.ts +0 -41
  243. package/dist/physics/module//360/237/223/220services/physics-world.service.js +0 -134
  244. package/dist/physics/module//360/237/223/220services/query/physics-query.service.d.ts +0 -9
  245. package/dist/physics/module//360/237/223/220services/query/physics-query.service.js +0 -25
  246. package/dist/physics/module//360/237/223/220services/ray-casting/ray-casting.service.d.ts +0 -9
  247. package/dist/physics/module//360/237/223/220services/ray-casting/ray-casting.service.js +0 -91
  248. package/dist/physics/module//360/237/223/220services/ray-casting.service.d.ts +0 -9
  249. package/dist/physics/module//360/237/223/220services/ray-casting.service.js +0 -93
  250. package/dist/physics/module//360/237/223/220services/shape-creation.service.d.ts +0 -14
  251. package/dist/physics/module//360/237/223/220services/shape-creation.service.js +0 -124
  252. package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.d.ts +0 -22
  253. package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.js +0 -157
  254. package/dist/physics/module//360/237/247/212entities/border.entity.d.ts +0 -5
  255. package/dist/physics/module//360/237/247/212entities/border.entity.js +0 -25
  256. package/dist/physics/module//360/237/247/212entities/data-structures/availability-grid-cache.d.ts +0 -12
  257. package/dist/physics/module//360/237/247/212entities/data-structures/availability-grid-cache.js +0 -39
  258. package/dist/physics/module//360/237/247/212entities/physics-world.entity.d.ts +0 -33
  259. package/dist/physics/module//360/237/247/212entities/physics-world.entity.js +0 -51
  260. package/dist/physics/physics-world.d.ts +0 -62
  261. package/dist/physics/physics-world.js +0 -153
  262. package/dist/physics/sub-elements/available-spaces/helpers/availability-grid.helper.d.ts +0 -6
  263. package/dist/physics/sub-elements/available-spaces/helpers/availability-grid.helper.js +0 -19
  264. package/dist/physics/sub-elements/available-spaces/physics-availability-grid.d.ts +0 -15
  265. package/dist/physics/sub-elements/available-spaces/physics-availability-grid.js +0 -92
  266. package/dist/physics/sub-elements/available-spaces/physics-available-spaces.d.ts +0 -26
  267. package/dist/physics/sub-elements/available-spaces/physics-available-spaces.js +0 -102
  268. package/dist/physics/sub-elements/collisions/contact-equation-orginiser.d.ts +0 -18
  269. package/dist/physics/sub-elements/collisions/contact-equation-orginiser.js +0 -90
  270. package/dist/physics/sub-elements/collisions/physics-collision.d.ts +0 -12
  271. package/dist/physics/sub-elements/collisions/physics-collision.js +0 -50
  272. package/dist/physics/sub-elements/elements/physics-body-groups.d.ts +0 -15
  273. package/dist/physics/sub-elements/elements/physics-body-groups.js +0 -76
  274. package/dist/physics/sub-elements/elements/physics-materials.d.ts +0 -19
  275. package/dist/physics/sub-elements/elements/physics-materials.js +0 -108
  276. package/dist/physics/sub-elements/elements/physics-world-borders.d.ts +0 -11
  277. package/dist/physics/sub-elements/elements/physics-world-borders.js +0 -77
  278. package/dist/physics/sub-elements/physics-body-groups.d.ts +0 -12
  279. package/dist/physics/sub-elements/physics-body-groups.js +0 -54
  280. package/dist/physics/sub-elements/physics-collision.d.ts +0 -22
  281. package/dist/physics/sub-elements/physics-collision.js +0 -155
  282. package/dist/physics/sub-elements/physics-materials.d.ts +0 -19
  283. package/dist/physics/sub-elements/physics-materials.js +0 -108
  284. package/dist/physics/sub-elements/physics-world-borders.d.ts +0 -6
  285. package/dist/physics/sub-elements/physics-world-borders.js +0 -29
  286. package/dist/physics/sub-elements/raycasting/physics-body-explosion-hit.d.ts +0 -20
  287. package/dist/physics/sub-elements/raycasting/physics-body-explosion-hit.js +0 -65
  288. package/dist/physics/sub-elements/raycasting/physics-explosion.d.ts +0 -20
  289. package/dist/physics/sub-elements/raycasting/physics-explosion.js +0 -115
  290. package/dist/physics/sub-elements/raycasting/ray-cast.d.ts +0 -27
  291. package/dist/physics/sub-elements/raycasting/ray-cast.js +0 -101
  292. package/dist/pixi/components/display-object-array.d.ts +0 -28
  293. package/dist/pixi/components/display-object-array.js +0 -62
  294. package/dist/pixi/components/helpers/smooth-scroller.d.ts +0 -25
  295. package/dist/pixi/components/helpers/smooth-scroller.js +0 -63
  296. package/dist/pixi/components/helpers/smooth-scroller.test.d.ts +0 -1
  297. package/dist/pixi/components/helpers/smooth-scroller.test.js +0 -137
  298. package/dist/pixi/components/menu/menu-entity.d.ts +0 -14
  299. package/dist/pixi/components/menu/menu-entity.js +0 -48
  300. package/dist/pixi/components/menu/menu.ui.d.ts +0 -23
  301. package/dist/pixi/components/menu/menu.ui.js +0 -97
  302. package/dist/pixi/components/mouse-wheel-listener.ui.d.ts +0 -11
  303. package/dist/pixi/components/mouse-wheel-listener.ui.js +0 -63
  304. package/dist/pixi/components/scroll-area.ui.d.ts +0 -18
  305. package/dist/pixi/components/scroll-area.ui.js +0 -56
  306. package/dist/pixi/components/scroll-mask.ui.d.ts +0 -17
  307. package/dist/pixi/components/scroll-mask.ui.js +0 -132
  308. package/dist/pixi/display-object/components/filters.d.ts +0 -21
  309. package/dist/pixi/display-object/components/filters.js +0 -116
  310. package/dist/pixi/display-object/components/glow-effect.d.ts +0 -12
  311. package/dist/pixi/display-object/components/glow-effect.js +0 -40
  312. package/dist/pixi/display-object/components/glow-filter.d.ts +0 -12
  313. package/dist/pixi/display-object/components/glow-filter.js +0 -40
  314. package/dist/pixi/display-object/container-attributes.d.ts +0 -99
  315. package/dist/pixi/display-object/container-attributes.js +0 -313
  316. package/dist/pixi/display-object/container.d.ts +0 -22
  317. package/dist/pixi/display-object/container.js +0 -72
  318. package/dist/pixi/display-object/display-object-attributes.d.ts +0 -45
  319. package/dist/pixi/display-object/display-object-attributes.js +0 -152
  320. package/dist/pixi/display-object/display-object.d.ts +0 -25
  321. package/dist/pixi/display-object/display-object.js +0 -87
  322. package/dist/pixi/display-object/filters/base-filters/alpha-primer-color.filter.d.ts +0 -13
  323. package/dist/pixi/display-object/filters/base-filters/alpha-primer-color.filter.js +0 -103
  324. package/dist/pixi/display-object/filters/base-filters/blur.filter.d.ts +0 -11
  325. package/dist/pixi/display-object/filters/base-filters/blur.filter.js +0 -115
  326. package/dist/pixi/display-object/filters/base-filters/contrast-filter.d.ts +0 -12
  327. package/dist/pixi/display-object/filters/base-filters/contrast-filter.js +0 -72
  328. package/dist/pixi/display-object/filters/base-filters/expand-with-alpha-color.d.ts +0 -14
  329. package/dist/pixi/display-object/filters/base-filters/expand-with-alpha-color.js +0 -107
  330. package/dist/pixi/display-object/filters/base-filters/expand-with-color-gradient.d.ts +0 -16
  331. package/dist/pixi/display-object/filters/base-filters/expand-with-color-gradient.js +0 -133
  332. package/dist/pixi/display-object/filters/base-filters/expand-with-color.d.ts +0 -14
  333. package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.d.ts +0 -9
  334. package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.js +0 -103
  335. package/dist/pixi/display-object/filters/base-filters/expand-with-color.js +0 -107
  336. package/dist/pixi/display-object/filters/composite-filters/glow-filter.d.ts +0 -8
  337. package/dist/pixi/display-object/filters/composite-filters/glow-filter.js +0 -59
  338. package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.d.ts +0 -10
  339. package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.js +0 -64
  340. package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.test.d.ts +0 -1
  341. package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.test.js +0 -31
  342. package/dist/pixi/display-object/filters/templates/checking-neighbors.template.d.ts +0 -7
  343. package/dist/pixi/display-object/filters/templates/checking-neighbors.template.js +0 -74
  344. package/dist/pixi/display-object/filters/templates/plane.template.d.ts +0 -7
  345. package/dist/pixi/display-object/filters/templates/plane.template.js +0 -65
  346. package/dist/pixi/display-object/filters.d.ts +0 -29
  347. package/dist/pixi/display-object/filters.js +0 -151
  348. package/dist/pixi/display-object/index.d.ts +0 -9
  349. package/dist/pixi/display-object/index.js +0 -19
  350. package/dist/pixi/display-object/objects/components/filters.d.ts +0 -21
  351. package/dist/pixi/display-object/objects/components/filters.js +0 -116
  352. package/dist/pixi/display-object/objects/container.d.ts +0 -6
  353. package/dist/pixi/display-object/objects/container.js +0 -47
  354. package/dist/pixi/display-object/objects/graphics/graphics.d.ts +0 -34
  355. package/dist/pixi/display-object/objects/graphics/graphics.js +0 -201
  356. package/dist/pixi/display-object/objects/graphics/helpers/dashed-line.helper.d.ts +0 -16
  357. package/dist/pixi/display-object/objects/graphics/helpers/dashed-line.helper.js +0 -45
  358. package/dist/pixi/display-object/objects/graphics.d.ts +0 -40
  359. package/dist/pixi/display-object/objects/graphics.js +0 -229
  360. package/dist/pixi/display-object/objects/helpers/filters.d.ts +0 -29
  361. package/dist/pixi/display-object/objects/helpers/filters.js +0 -161
  362. package/dist/pixi/display-object/objects/helpers/glow-sprite-generator.d.ts +0 -11
  363. package/dist/pixi/display-object/objects/helpers/glow-sprite-generator.js +0 -129
  364. package/dist/pixi/display-object/objects/placeholder.d.ts +0 -7
  365. package/dist/pixi/display-object/objects/placeholder.js +0 -46
  366. package/dist/pixi/display-object/objects/premade-objects/sprite-with-glowing-shapes.d.ts +0 -9
  367. package/dist/pixi/display-object/objects/premade-objects/sprite-with-glowing-shapes.js +0 -89
  368. package/dist/pixi/display-object/objects/sprite/glow-sprite-generator.d.ts +0 -11
  369. package/dist/pixi/display-object/objects/sprite/glow-sprite-generator.js +0 -113
  370. package/dist/pixi/display-object/objects/sprite/sprite.d.ts +0 -52
  371. package/dist/pixi/display-object/objects/sprite/sprite.js +0 -269
  372. package/dist/pixi/display-object/objects/sprite.d.ts +0 -51
  373. package/dist/pixi/display-object/objects/sprite.js +0 -273
  374. package/dist/pixi/display-object/objects/text/helpers/index.d.ts +0 -8
  375. package/dist/pixi/display-object/objects/text/helpers/index.js +0 -6
  376. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/pixi-text-style-converter.d.ts +0 -30
  377. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/pixi-text-style-converter.js +0 -53
  378. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.d.ts +0 -19
  379. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.js +0 -162
  380. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.test.d.ts +0 -1
  381. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.test.js +0 -371
  382. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.d.ts +0 -6
  383. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.js +0 -70
  384. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.test.d.ts +0 -1
  385. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.test.js +0 -136
  386. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.d.ts +0 -37
  387. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.js +0 -169
  388. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.test.d.ts +0 -1
  389. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.test.js +0 -283
  390. package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.d.ts +0 -8
  391. package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.js +0 -88
  392. package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.test.d.ts +0 -1
  393. package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.test.js +0 -152
  394. package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.d.ts +0 -28
  395. package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.js +0 -37
  396. package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.test.d.ts +0 -5
  397. package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.test.js +0 -669
  398. package/dist/pixi/display-object/objects/text/rich-text.d.ts +0 -19
  399. package/dist/pixi/display-object/objects/text/rich-text.js +0 -15
  400. package/dist/pixi/display-object/objects/text/text.d.ts +0 -25
  401. package/dist/pixi/display-object/objects/text/text.js +0 -132
  402. package/dist/pixi/display-object/objects/text.d.ts +0 -35
  403. package/dist/pixi/display-object/objects/text.js +0 -124
  404. package/dist/pixi/display-object/premade-objects/sprite-with-glowing-shapes.d.ts +0 -22
  405. package/dist/pixi/display-object/premade-objects/sprite-with-glowing-shapes.js +0 -107
  406. package/dist/pixi/game.d.ts +0 -47
  407. package/dist/pixi/game.js +0 -137
  408. package/dist/pixi/helpers/game-assets.d.ts +0 -15
  409. package/dist/pixi/helpers/game-assets.js +0 -103
  410. package/dist/pixi/helpers/glow-sprite-generator.d.ts +0 -10
  411. package/dist/pixi/helpers/glow-sprite-generator.js +0 -113
  412. package/dist/pixi/helpers/pixi-container.helper.d.ts +0 -5
  413. package/dist/pixi/helpers/pixi-container.helper.js +0 -14
  414. package/dist/pixi/helpers/position-conversion.helper.d.ts +0 -12
  415. package/dist/pixi/helpers/position-conversion.helper.js +0 -54
  416. package/dist/pixi/helpers/position-conversion.helper.test.d.ts +0 -1
  417. package/dist/pixi/helpers/position-conversion.helper.test.js +0 -83
  418. package/dist/pixi/helpers/screen-position-to-stage.helper.d.ts +0 -4
  419. package/dist/pixi/helpers/screen-position-to-stage.helper.js +0 -17
  420. package/dist/pixi/helpers/screen-position-to-stage.helper.test.d.ts +0 -1
  421. package/dist/pixi/helpers/screen-position-to-stage.helper.test.js +0 -178
  422. package/dist/pixi/index.d.ts +0 -14
  423. package/dist/pixi/index.js +0 -44
  424. package/dist/pixi/modules/CAMERA/camera.d.ts +0 -13
  425. package/dist/pixi/modules/CAMERA/camera.js +0 -27
  426. package/dist/pixi/modules/CAMERA/index.d.ts +0 -2
  427. package/dist/pixi/modules/CAMERA/index.js +0 -9
  428. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera-view.gateway.d.ts +0 -8
  429. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera-view.gateway.js +0 -24
  430. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera.gateway.d.ts +0 -11
  431. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera.gateway.js +0 -33
  432. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera-view.controller.d.ts +0 -6
  433. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera-view.controller.js +0 -30
  434. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera.controller.d.ts +0 -12
  435. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera.controller.js +0 -41
  436. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/dtos/requests.dto.d.ts +0 -19
  437. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/dtos/requests.dto.js +0 -18
  438. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/index.d.ts +0 -3
  439. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/index.js +0 -27
  440. package/dist/pixi/modules/CAMERA//360/237/223/220services/camera.service.d.ts +0 -12
  441. package/dist/pixi/modules/CAMERA//360/237/223/220services/camera.service.js +0 -96
  442. package/dist/pixi/modules/CAMERA//360/237/247/212entities/camera.entity.d.ts +0 -18
  443. package/dist/pixi/modules/CAMERA//360/237/247/212entities/camera.entity.js +0 -26
  444. package/dist/pixi/modules/CAMERA//360/237/247/251views/camera.view.d.ts +0 -23
  445. package/dist/pixi/modules/CAMERA//360/237/247/251views/camera.view.js +0 -115
  446. package/dist/pixi/pixi-definitions.d.ts +0 -38
  447. package/dist/pixi/pixi-definitions.js +0 -37
  448. package/dist/pixi/services/keyboard/keyboard.d.ts +0 -12
  449. package/dist/pixi/services/keyboard/keyboard.js +0 -54
  450. package/dist/pixi/services/mouse/mouse-target-focus.service.d.ts +0 -21
  451. package/dist/pixi/services/mouse/mouse-target-focus.service.js +0 -86
  452. package/dist/pixi/services/mouse/mouse.service.d.ts +0 -21
  453. package/dist/pixi/services/mouse/mouse.service.js +0 -101
  454. package/dist/services/keyboard/keyboard.d.ts +0 -7
  455. package/dist/services/keyboard/keyboard.js +0 -44
  456. package/dist/services/mouse/mouse.service.d.ts +0 -12
  457. package/dist/services/mouse/mouse.service.js +0 -70
  458. package/dist/services/mouse/mouser-target-focus.service.d.ts +0 -16
  459. package/dist/services/mouse/mouser-target-focus.service.js +0 -93
  460. package/dist/utilities/animator/animating-content/fade-in-content.d.ts +0 -18
  461. package/dist/utilities/animator/animating-content/fade-in-content.js +0 -37
  462. package/dist/utilities/animator/animating-content/fade-in-content.test.d.ts +0 -1
  463. package/dist/utilities/animator/animating-content/fade-in-content.test.js +0 -10
  464. package/dist/utilities/animator/animating-content/slide-in-content.d.ts +0 -37
  465. package/dist/utilities/animator/animating-content/slide-in-content.js +0 -99
  466. package/dist/utilities/animator/animating-content/slide-in-content.test.d.ts +0 -1
  467. package/dist/utilities/animator/animating-content/slide-in-content.test.js +0 -10
  468. package/dist/utilities/animator/animations.d.ts +0 -45
  469. package/dist/utilities/animator/animations.js +0 -92
  470. package/dist/utilities/animator/animator/animator.d.ts +0 -44
  471. package/dist/utilities/animator/animator/animator.js +0 -234
  472. package/dist/utilities/animator/animator/animator.memory-leak.test.d.ts +0 -1
  473. package/dist/utilities/animator/animator/animator.memory-leak.test.js +0 -73
  474. package/dist/utilities/animator/animator/animator.performance.test.d.ts +0 -1
  475. package/dist/utilities/animator/animator/animator.performance.test.js +0 -116
  476. package/dist/utilities/animator/animator/animator.test.d.ts +0 -1
  477. package/dist/utilities/animator/animator/animator.test.js +0 -1046
  478. package/dist/utilities/animator/animator.d.ts +0 -60
  479. package/dist/utilities/animator/animator.js +0 -322
  480. package/dist/utilities/animator/animator.performance.test.d.ts +0 -1
  481. package/dist/utilities/animator/animator.performance.test.js +0 -46
  482. package/dist/utilities/animator/animator.test.d.ts +0 -1
  483. package/dist/utilities/animator/animator.test.js +0 -928
  484. package/dist/utilities/animator/animator2/animator.d.ts +0 -42
  485. package/dist/utilities/animator/animator2/animator.js +0 -222
  486. package/dist/utilities/animator/animator2/animator.memory-leak.test.d.ts +0 -1
  487. package/dist/utilities/animator/animator2/animator.memory-leak.test.js +0 -73
  488. package/dist/utilities/animator/animator2/animator.performance.test.d.ts +0 -1
  489. package/dist/utilities/animator/animator2/animator.performance.test.js +0 -65
  490. package/dist/utilities/animator/animator2/animator.test.d.ts +0 -1
  491. package/dist/utilities/animator/animator2/animator.test.js +0 -1007
  492. package/dist/utilities/animator/animator_old/animator.d.ts +0 -60
  493. package/dist/utilities/animator/animator_old/animator.js +0 -337
  494. package/dist/utilities/animator/animator_old/animator.performance.test.d.ts +0 -1
  495. package/dist/utilities/animator/animator_old/animator.performance.test.js +0 -121
  496. package/dist/utilities/animator/animator_old/animator.test.d.ts +0 -1
  497. package/dist/utilities/animator/animator_old/animator.test.js +0 -996
  498. package/dist/utilities/animator/content-animations/fade-in/fade-in-content.d.ts +0 -18
  499. package/dist/utilities/animator/content-animations/fade-in/fade-in-content.js +0 -37
  500. package/dist/utilities/animator/content-animations/fade-in/fade-in-content.test.d.ts +0 -1
  501. package/dist/utilities/animator/content-animations/fade-in/fade-in-content.test.js +0 -10
  502. package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.d.ts +0 -38
  503. package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.js +0 -208
  504. package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.test.d.ts +0 -1
  505. package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.test.js +0 -439
  506. package/dist/utilities/animator/content-animations/slide/slide-in-content.d.ts +0 -41
  507. package/dist/utilities/animator/content-animations/slide/slide-in-content.js +0 -107
  508. package/dist/utilities/animator/content-animations/slide/slide-in-content.test.d.ts +0 -1
  509. package/dist/utilities/animator/content-animations/slide/slide-in-content.test.js +0 -10
  510. package/dist/utilities/animator/content-animations/slide/slide-state-animation.d.ts +0 -24
  511. package/dist/utilities/animator/content-animations/slide/slide-state-animation.js +0 -138
  512. package/dist/utilities/animator/content-animations/slide/slide-state-animation.test.d.ts +0 -1
  513. package/dist/utilities/animator/content-animations/slide/slide-state-animation.test.js +0 -307
  514. package/dist/utilities/animator/content-animations/slide/state-animation.d.ts +0 -37
  515. package/dist/utilities/animator/content-animations/slide/state-animation.js +0 -170
  516. package/dist/utilities/animator/content-animations/slide/state-animation.test.d.ts +0 -1
  517. package/dist/utilities/animator/content-animations/slide/state-animation.test.js +0 -340
  518. package/dist/utilities/animator/index.d.ts +0 -7
  519. package/dist/utilities/animator/index.js +0 -24
  520. package/dist/utilities/animator/state-animation/fade-in/fade-in-content.d.ts +0 -18
  521. package/dist/utilities/animator/state-animation/fade-in/fade-in-content.js +0 -37
  522. package/dist/utilities/animator/state-animation/fade-in/fade-in-content.test.d.ts +0 -1
  523. package/dist/utilities/animator/state-animation/fade-in/fade-in-content.test.js +0 -10
  524. package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.d.ts +0 -32
  525. package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.js +0 -168
  526. package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.test.d.ts +0 -1
  527. package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.test.js +0 -431
  528. package/dist/utilities/animator/state-animation/slide/slide-in-content.d.ts +0 -37
  529. package/dist/utilities/animator/state-animation/slide/slide-in-content.js +0 -100
  530. package/dist/utilities/animator/state-animation/slide/slide-in-content.test.d.ts +0 -1
  531. package/dist/utilities/animator/state-animation/slide/slide-in-content.test.js +0 -10
  532. package/dist/utilities/animator/state-animation/slide/slide-state-animation.d.ts +0 -24
  533. package/dist/utilities/animator/state-animation/slide/slide-state-animation.js +0 -130
  534. package/dist/utilities/animator/state-animation/slide/slide-state-animation.test.d.ts +0 -1
  535. package/dist/utilities/animator/state-animation/slide/slide-state-animation.test.js +0 -301
  536. package/dist/utilities/animator/state-animation/slide-state-animation.d.ts +0 -24
  537. package/dist/utilities/animator/state-animation/slide-state-animation.js +0 -130
  538. package/dist/utilities/animator/state-animation/slide-state-animation.test.d.ts +0 -1
  539. package/dist/utilities/animator/state-animation/slide-state-animation.test.js +0 -301
  540. package/dist/utilities/animator/state-animation/state-animation.d.ts +0 -33
  541. package/dist/utilities/animator/state-animation/state-animation.js +0 -146
  542. package/dist/utilities/animator/state-animation/state-animation.test.d.ts +0 -1
  543. package/dist/utilities/animator/state-animation/state-animation.test.js +0 -335
  544. package/dist/utilities/animator/state-animation/visit-disappear-state-animation.d.ts +0 -32
  545. package/dist/utilities/animator/state-animation/visit-disappear-state-animation.js +0 -168
  546. package/dist/utilities/animator/state-animation/visit-disappear-state-animation.test.d.ts +0 -1
  547. package/dist/utilities/animator/state-animation/visit-disappear-state-animation.test.js +0 -431
  548. package/dist/utilities/data-structures/vector-set/vector-set.d.ts +0 -7
  549. package/dist/utilities/data-structures/vector-set/vector-set.js +0 -26
  550. package/dist/utilities/delta-time/delta-time.d.ts +0 -3
  551. package/dist/utilities/delta-time/delta-time.js +0 -10
  552. package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.d.ts +0 -6
  553. package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.js +0 -55
  554. package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.test.d.ts +0 -1
  555. package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.test.js +0 -100
  556. package/dist/utilities/grid-algorithms/path-finder/path-finder.d.ts +0 -8
  557. package/dist/utilities/grid-algorithms/path-finder/path-finder.js +0 -98
  558. package/dist/utilities/grid-algorithms/path-finder/path-finder.test.d.ts +0 -1
  559. package/dist/utilities/grid-algorithms/path-finder/path-finder.test.js +0 -155
  560. package/dist/utilities/grid-algorithms/position-to-grid-position-converter.d.ts +0 -6
  561. package/dist/utilities/grid-algorithms/position-to-grid-position-converter.js +0 -17
  562. package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.d.ts +0 -18
  563. package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.js +0 -129
  564. package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.d.ts +0 -1
  565. package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.js +0 -254
  566. package/dist/utilities/index.d.ts +0 -6
  567. package/dist/utilities/index.js +0 -29
  568. package/dist/utilities/libraries/animator/animating-content/fade-in-content.d.ts +0 -18
  569. package/dist/utilities/libraries/animator/animating-content/fade-in-content.js +0 -37
  570. package/dist/utilities/libraries/animator/animating-content/slide-in-content.d.ts +0 -37
  571. package/dist/utilities/libraries/animator/animating-content/slide-in-content.js +0 -99
  572. package/dist/utilities/libraries/animator/animating-content/state-animation.d.ts +0 -36
  573. package/dist/utilities/libraries/animator/animating-content/state-animation.js +0 -174
  574. package/dist/utilities/libraries/animator/animating-content/state-animation.test.d.ts +0 -1
  575. package/dist/utilities/libraries/animator/animating-content/state-animation.test.js +0 -399
  576. package/dist/utilities/libraries/animator/animations.d.ts +0 -37
  577. package/dist/utilities/libraries/animator/animations.js +0 -88
  578. package/dist/utilities/libraries/animator/animator.d.ts +0 -63
  579. package/dist/utilities/libraries/animator/animator.js +0 -325
  580. package/dist/utilities/libraries/animator/animator.spec.d.ts +0 -1
  581. package/dist/utilities/libraries/animator/animator.spec.js +0 -779
  582. package/dist/utilities/libraries/animator/animator.test.d.ts +0 -1
  583. package/dist/utilities/libraries/animator/animator.test.js +0 -893
  584. package/dist/utilities/libraries/animator/index.d.ts +0 -7
  585. package/dist/utilities/libraries/animator/index.js +0 -24
  586. package/dist/utilities/libraries/animator/state-animation/slide-state-animation.d.ts +0 -24
  587. package/dist/utilities/libraries/animator/state-animation/slide-state-animation.js +0 -131
  588. package/dist/utilities/libraries/animator/state-animation/slide-state-animation.test.d.ts +0 -1
  589. package/dist/utilities/libraries/animator/state-animation/slide-state-animation.test.js +0 -326
  590. package/dist/utilities/libraries/animator/state-animation/state-animation.d.ts +0 -33
  591. package/dist/utilities/libraries/animator/state-animation/state-animation.js +0 -147
  592. package/dist/utilities/libraries/animator/state-animation/state-animation.test.d.ts +0 -1
  593. package/dist/utilities/libraries/animator/state-animation/state-animation.test.js +0 -360
  594. package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.d.ts +0 -32
  595. package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.js +0 -169
  596. package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.test.d.ts +0 -1
  597. package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.test.js +0 -456
  598. package/dist/utilities/libraries/binary-heap/binary-heap.d.ts +0 -13
  599. package/dist/utilities/libraries/binary-heap/binary-heap.js +0 -110
  600. package/dist/utilities/libraries/data-structures/binary-heap/binary-heap.d.ts +0 -13
  601. package/dist/utilities/libraries/data-structures/binary-heap/binary-heap.js +0 -110
  602. package/dist/utilities/libraries/data-structures/grid/grid.d.ts +0 -38
  603. package/dist/utilities/libraries/data-structures/grid/grid.js +0 -133
  604. package/dist/utilities/libraries/data-structures/grid/grid.spec.d.ts +0 -1
  605. package/dist/utilities/libraries/data-structures/grid/grid.spec.js +0 -178
  606. package/dist/utilities/libraries/data-structures/grid/grid.test.d.ts +0 -1
  607. package/dist/utilities/libraries/data-structures/grid/grid.test.js +0 -220
  608. package/dist/utilities/libraries/data-structures/grid/position-to-grid-position-converter.d.ts +0 -6
  609. package/dist/utilities/libraries/data-structures/grid/position-to-grid-position-converter.js +0 -19
  610. package/dist/utilities/libraries/data-structures/queue/queue.d.ts +0 -23
  611. package/dist/utilities/libraries/data-structures/queue/queue.js +0 -72
  612. package/dist/utilities/libraries/data-structures/queue/queue.test.d.ts +0 -1
  613. package/dist/utilities/libraries/data-structures/queue/queue.test.js +0 -57
  614. package/dist/utilities/libraries/data-structures/vector-set/vector-set.d.ts +0 -7
  615. package/dist/utilities/libraries/data-structures/vector-set/vector-set.js +0 -26
  616. package/dist/utilities/libraries/delta-time/delta-time.d.ts +0 -3
  617. package/dist/utilities/libraries/delta-time/delta-time.js +0 -10
  618. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.d.ts +0 -6
  619. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.js +0 -55
  620. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.spec.d.ts +0 -1
  621. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.spec.js +0 -124
  622. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.test.d.ts +0 -1
  623. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.test.js +0 -100
  624. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.d.ts +0 -8
  625. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.js +0 -98
  626. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.spec.d.ts +0 -1
  627. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.spec.js +0 -169
  628. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.test.d.ts +0 -1
  629. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.test.js +0 -155
  630. package/dist/utilities/libraries/grid-algorithms/position-to-grid-position-converter.d.ts +0 -6
  631. package/dist/utilities/libraries/grid-algorithms/position-to-grid-position-converter.js +0 -17
  632. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.d.ts +0 -18
  633. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.js +0 -129
  634. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.spec.d.ts +0 -1
  635. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.spec.js +0 -296
  636. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.d.ts +0 -1
  637. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.js +0 -254
  638. package/dist/utilities/libraries/path-finder/path-finder.d.ts +0 -12
  639. package/dist/utilities/libraries/path-finder/path-finder.js +0 -127
  640. package/dist/utilities/libraries/path-finder/path-finder.spec.d.ts +0 -1
  641. package/dist/utilities/libraries/path-finder/path-finder.spec.js +0 -158
  642. package/dist/utilities/services/keyboard/keyboard.d.ts +0 -7
  643. package/dist/utilities/services/keyboard/keyboard.js +0 -47
  644. package/dist/utilities/services/mouse/helpers/mouse-position.helper.d.ts +0 -4
  645. package/dist/utilities/services/mouse/helpers/mouse-position.helper.js +0 -17
  646. package/dist/utilities/services/mouse/helpers/mouse-position.helper.test.d.ts +0 -1
  647. package/dist/utilities/services/mouse/helpers/mouse-position.helper.test.js +0 -172
  648. package/dist/utilities/services/mouse/mouse-target-focus.service.d.ts +0 -20
  649. package/dist/utilities/services/mouse/mouse-target-focus.service.js +0 -88
  650. package/dist/utilities/services/mouse/mouse.service.d.ts +0 -13
  651. package/dist/utilities/services/mouse/mouse.service.js +0 -91
  652. package/dist/utilities/services/mouse/mouser-target-focus.service.d.ts +0 -16
  653. package/dist/utilities/services/mouse/mouser-target-focus.service.js +0 -93
package/dist/index.js CHANGED
@@ -1,21 +1,67 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./game-entities"), exports);
18
- __exportStar(require("./physics"), exports);
19
- __exportStar(require("./pixi"), exports);
20
- __exportStar(require("./utilities"), exports);
21
- //# sourceMappingURL=index.js.map
1
+ 'use strict';var actionsLib=require('actions-lib');require('reflect-metadata');var helpersLib=require('helpers-lib'),ki=require('p2'),R=require('pixi.js'),scriptEngineLib=require('script-engine-lib');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var ki__default=/*#__PURE__*/_interopDefault(ki);var R__namespace=/*#__PURE__*/_interopNamespace(R);var Ii=Object.defineProperty;var a=(n,t)=>Ii(n,"name",{value:t,configurable:true});var v=class{static{a(this,"BardLegendsHardReset");}static ƀer=new actionsLib.Action;static onHardReset=this.ƀer.notifier;static hardReset(){actionsLib.ActionLib.hardReset(),this.ƀer.trigger();}};function S(){return function(n){let t=m.ƀeb(n);n.$meta={paramtypes:t,type:"service"};}}a(S,"ServiceDecorator");var m=class{static{a(this,"Service");}static ƀip=new Map;static get(t){let e=this.ƀip.get(t);if(!e){if(!t.$meta)throw new Error(`Service: service class is not decorated by @ServiceDecorator(), class: "${t.name}"`);let i=this.ƀib([],t.$meta.paramtypes);e=new t(...i),this.ƀip.set(t,e);}return e}static ƀeb(t){let e=Reflect.getMetadata("design:paramtypes",t)||[];return e.some(i=>!i)&&console.error(`Circular dependency: ${t.name}`),e}static ƀib(t,e){let i=[...t];if(e.length>t.length){let s=e.slice(t.length).map(o=>{if(o){if(o.$meta?.type==="service")return this.get(o);console.log(o);}});i.push(...s);}return i}};v.onHardReset.subscribe(()=>{m.ƀip=new Map;}).attachToRoot();var D=class{static{a(this,"ControllerLink");}ƀbm=[];ƀia=[];trigger(t,...e){let i=this.ƀbm.find(r=>!!r[t]);if(i)return i[t](...e);throw new Error(`ServiceLink: no defined function with the name: "${t}", found in the linked controllers!`)}registerController(t){Reflect.ownKeys(t.constructor.prototype).filter(e=>e!=="constructor").map(e=>e.toString()).forEach(e=>{if(this.ƀia.includes(e))throw new Error(`ServiceLink: the function is already registered, function name: "${e}"`);this.ƀia.push(e);}),this.ƀbm.push(t);}};function k(n){return function(t){let e=m.ƀeb(t);if(e.some(i=>!i))console.error(`Circular dependency: ${t.name}`);else {let i=m.ƀib([],e);i.some(s=>s===void 0)&&console.error(i,e,t.name);let r=new t(...i);n.controllerLink.registerController(r);}t.$meta={type:"controller"};}}a(k,"ControllerDecorator");var d=class n{static{a(this,"UpdateCycle");}static ƀac=new actionsLib.Action;static beforeSceneUpdateAction=this.ƀac.notifier;static ƀih=new actionsLib.Action;static sceneUpdateAction=this.ƀih.notifier;static ƀf=new actionsLib.Action;static afterSceneUpdateAction=this.ƀf.notifier;static ƀjs=0;static ƀjz=void 0;static wait(t){let e=this.ƀjs+t;return actionsLib.SingleEvent.create(i=>{let r=n.beforeSceneUpdateAction.subscribe(s=>{s.time>=e&&i();}).attachToRoot();return ()=>r.destroy()})}static registerUpdateModifier(t){if(!this.ƀjz)this.ƀjz=t;else throw new Error("UpdateCycle: There can only one update modifier!")}static cleanUpdateModifier(){this.ƀjz=void 0;}static triggerUpdateTick(t){this.ƀjz&&(t=this.ƀjz(this.ƀjs,t)),this.ƀjs+=t,this.ƀfp=t,t>0&&(n.ƀac.trigger({time:this.ƀjs,delta:t}),n.ƀih.trigger({time:this.ƀjs,delta:t}),n.ƀf.trigger({time:this.ƀjs,delta:t}));}static get lastDelta(){return this.ƀfp}static ƀfp=0};v.onHardReset.subscribe(()=>{d.ƀac.clear(),d.ƀih.clear(),d.ƀf.clear(),d.ƀjz=void 0,d.ƀjs=0;}).attachToRoot();var C=class n{static{a(this,"EntityStoreHelper");}static ƀaw=new Map;static registerEntityClass(t){this.ƀaw.set(t.id,new Map);}static registerEntity(t){this.ƀaw.get(t.classID).set(t.id,t);}static unregisterEntity(t,e){let i=t.id;this.ƀaw.get(i)?.delete(e);}static getEntity(t,e){return this.ƀaw.get(t.id)?.get(e)}static getSingleton(t){let e=n.getEntities(t);if(e.length>1)throw new Error(`EntityStoreHelper: selectSingleton is called with an entity that has multiple instances! Name: "${this.name}"`);return e[0]}static getSingletonOrFail(t){let e=this.getSingleton(t);if(!e)throw new Error(`EntityStoreHelper: selectSingleton is called with an entity that has no instance! Name: "${this.name}"`);return e}static getEntities(t){let e=this.ƀaw.get(t.id);return Array.from(e.values())}};v.onHardReset.subscribe(()=>{C.ƀaw.clear();}).attachToRoot();var z=class n{static{a(this,"EntityViewsHelper");}ƀcv;static ƀki=new Map;static entityID;static registerView(t,e){n.ƀki.has(e)||n.ƀki.set(e,[]);let i=n.ƀki.get(e);i&&i.push(t),C.getEntities(e).forEach(s=>{this.ƀch(s,t);});}static ƀch(t,e){try{let i=m.ƀib([this],e.$meta.paramtypes);n.entityID=t.id;let r=new e(t,...i.slice(1));t.destroyed?r.destroy():t.ƀkh.ƀkj.push(r);}catch(i){console.error(i);}}ƀkj=[];constructor(t){this.ƀcv=t;}createViews(){if(!this.ƀcv.destroyed){let t=n.ƀki.get(this.ƀcv.constructor);t&&t.forEach(e=>{n.ƀch(this.ƀcv,e);});}}updateViews(t,e){for(let i=0;i<this.ƀkj.length;i++){let r=this.ƀkj[i];r.destroyed||r.update(t,e);}}destroyViews(){this.ƀkj.forEach(t=>{t.destroy();});}};v.onHardReset.subscribe(()=>{z.ƀki=new Map;}).attachToRoot();function ft(){return function(n){n.$meta={type:"entity"},C.registerEntityClass(n);}}a(ft,"EntityDecorator");var F=class extends actionsLib.IDAttachable{static{a(this,"Entity");}static getInstanceByID(t){if(t)return C.getEntity(this,t)}static getInstanceByIDOrFail(t){let e=C.getEntity(this,t);if(!e)throw new Error(`Entity: entity is not found! Name: "${this.name}", id: "${t}"`);return e}static getEntities(){return C.getEntities(this)}ƀkh=new z(this);constructor(){super(),C.registerEntity(this),d.sceneUpdateAction.subscribe(t=>{this.destroyed||(this.update(t.time,t.delta),this.ƀkh.updateViews(t.time,t.delta));}).attach(this);}destroy(){this.destroyed||(this.ƀkh.destroyViews(),C.unregisterEntity(this.constructor,this.id),super.destroy());}attach(t){return super.attach(t),this.ƀkh.createViews(),this}attachByID(t){return super.attachByID(t),this.ƀkh.createViews(),this}attachToRoot(){return super.attachToRoot(),this.ƀkh.createViews(),this}update(t,e){}};var Y=class extends F{static{a(this,"SingletonEntity");}static getInstance(){return C.getSingleton(this)}static getInstanceOrFail(){return C.getSingletonOrFail(this)}constructor(){if(super(),this.constructor.getEntities().length>1)throw this.attachToRoot(),new Error(`SingletonEntity: entity is decorated as singleton but multiple instances are created! "${this}"`)}};function Vi(){return function(n){return n.$meta={paramtypes:m.ƀeb(n),type:"scene"},n}}a(Vi,"SceneDecorator");var ot=class n extends actionsLib.IDAttachable{static{a(this,"Scene");}static ƀig=false;static ƀb=new actionsLib.Variable(void 0);static activeScene=this.ƀb.notifier;static getActiveScene(){return n.ƀb.value}static getActiveSceneOrFail(){if(!n.ƀb.value)throw new Error("Scene: getActiveSceneOrFail is called when there is no active scene!");return n.ƀb.value}static isActive(){return n.ƀb.value instanceof this}static getInstance(){return n.ƀb.value instanceof this?n.ƀb.value:void 0}static getInstanceOrFail(){if(!n.ƀb.value)throw new Error("Scene: getInstance is called when there is no active scene!");if(!(n.ƀb.value instanceof this))throw new Error(`Scene: getInstance is called while "${this.name}" was not the active scene. Current scene is: "${n.ƀb.value}"!`);return n.ƀb.value}static open(...t){if(n.ƀig)throw new Error("Scene: you cannot open a scene while a scene is transitioning!");if(n.ƀb.value)throw new Error("Scene: you cannot open a scene while there is already another active scene!");let e=t[0];n.ƀig=true;let i=m.ƀib([],this.$meta.paramtypes),r=new this(...i).attachToRoot();return n.ƀb.set(r),r.init(e).map(()=>(n.ƀig=false,r)).chainToRoot()}ƀgl=new actionsLib.Action;onClose=this.ƀgl.notifier;constructor(){super(),d.sceneUpdateAction.subscribe(t=>this.update(t.time,t.delta)).attach(this);}close(...t){if(n.ƀb.value!==this)throw n.ƀig?new Error("Scene: you cannot close a scene while a scene is transitioning!"):new Error("Internal Error: Scene instance is accessed while it is not the active scene!");let e=t[0];return n.ƀig=true,this.prepareToClose().map(()=>(super.destroy(),n.ƀb.set(void 0),n.ƀig=false,this.ƀgl.trigger(e),e)).chainToRoot()}destroy(){throw new Error('To close a scene use the "close()" function')}};v.onHardReset.subscribe(()=>{ot.ƀb.set(void 0);}).attachToRoot();function me(n){return function(t){t.$meta={paramtypes:m.ƀeb(t),viewInstances:new Map,entity:n.entity,type:"view"},z.registerView(t,n.entity);}}a(me,"ViewDecorator");var mt=class extends actionsLib.IDAttachable{static{a(this,"View");}static getInstance(t){return this.$meta.entity.validateID(t)?this.$meta.viewInstances.get(t):void 0}static getInstanceOrFail(t){if(!this.$meta.entity.validateID(t))throw new Error(`View: getInstance is called with entity id: "${t}", that is not belonging to the class: "${this.$meta.entity}"`);let i=this.$meta.viewInstances.get(t);if(!i)throw new Error(`View: getInstanceOrFail is called with entity id: "${t}", that is not found!`);return i}ƀcw;constructor(){super(),this.attachToRoot(),this.ƀcw=z.entityID,this.ƀeh().set(this.ƀcw,this);}destroy(){this.destroyed||(super.destroy(),this.ƀeh().delete(this.ƀcw));}update(t,e){}ƀeh(){return this.constructor.$meta.viewInstances}};var E=class n{static{a(this,"P2JSHelper");}static aabbToBoundingBox(t){return helpersLib.Rectangle.fromRect({topLeft:{x:t.lowerBound[0],y:t.lowerBound[1]},bottomRight:{x:t.upperBound[0],y:t.upperBound[1]}})}static arrayToVector(t){return new helpersLib.Vector(t[0],t[1])}static vectorToArray(t){return [t.x,t.y]}static arePhysicsGroupsCollidable(t,e,i,r){return (t&r)!==0&&(i&e)!==0}static canCollideWith(t,e){return t.shapes.some(i=>e.shapes.some(r=>n.arePhysicsGroupsCollidable(i.collisionGroup,i.collisionMask,r.collisionGroup,r.collisionMask)))}static cloneP2Body(t){let e=new ki__default.default.Body({position:t.position,angle:t.angle,type:t.type});return e.shapes=t.shapes,e}};function Hi(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(Hi,"_ts_decorate");var W=new D,_=class{static{a(this,"PhysicsInternalGateway");}createBody(t,e,i,r,s){return W.trigger("createBody",t,e,i,r,s)}getMaterial(t,e){return W.trigger("getMaterial",t,e)}getMaterialDefinition(t,e){return W.trigger("getMaterialDefinition",t,e)}getGroupConstant(t,e){return W.trigger("getGroupConstant",t,e)}getMaskConstant(t,e){return W.trigger("getMaskConstant",t,e)}addBody(t,e,i,r,s){return W.trigger("addBody",t,e,i,r,s)}removeBody(t,e){return W.trigger("removeBody",t,e)}subscribeToPhysicsStep(t,e){return W.trigger("subscribeToPhysicsStep",t,e)}};_=Hi([S()],_);var T=class n extends F{static{a(this,"PhysicsEntity");}static ƀgz=new Map;static ƀhg=new Map;static getFromP2BodyID(t){return n.ƀgz.get(t)}static getFromP2BodyIDOrFail(t){let e=n.ƀgz.get(t);if(!e)throw new Error(`PhysicsEntity with p2BodyID ${t} not found`);return e}static getPhysicsInstanceOrFail(t){let e=n.ƀhg.get(t);if(!e)throw new Error(`PhysicsEntity with id ${t} not found`);return e}static getPhysicsEntities(){return Array.from(n.ƀhg.values())}ƀgm=new actionsLib.Action;onCollision=this.ƀgm.notifier;get area(){return this.ƀt}get mass(){return this.ƀgb}get collisions(){return this.ƀay}physicsWorldID;physicsBodyGroup;includeInPathfinding;p2Body;type="dynamic";ƀhi;ƀhh;ƀhj;ƀt=0;ƀgb=0;ƀay=[];constructor(t,e,i){super(),this.physicsWorldID=t,this.ƀhi=m.get(_);let r=this.ƀhi.getMaterial(this.physicsWorldID,e.shapeDefinition.materialName),s=this.ƀhi.getMaterialDefinition(this.physicsWorldID,e.shapeDefinition.materialName);if(this.type=i,this.physicsBodyGroup=e.shapeDefinition.group,this.includeInPathfinding=e.includeOnPathfinding,this.ƀhh=this.ƀhi.getGroupConstant(this.physicsWorldID,this.physicsBodyGroup),this.ƀhj=this.ƀhi.getMaskConstant(this.physicsWorldID,this.physicsBodyGroup),this.p2Body=this.ƀhi.createBody(this.physicsWorldID,e,r,s,this.type),this.ƀt=this.p2Body.getArea(),this.ƀgb=this.p2Body.mass,this.p2Body.position=E.vectorToArray(e.position),this.p2Body.angle=e.rotation.value,!this.ƀhi.addBody(this.physicsWorldID,this.p2Body,e.addInEmptySpace,e.shapeDefinition.group,e.includeOnPathfinding))throw new Error("PhysicsEntity was not able to be added to the world!");n.ƀgz.set(this.p2Body.id,this),n.ƀhg.set(this.id,this);}destroy(){this.destroyed||(super.destroy(),this.ƀhi.removeBody(this.physicsWorldID,this.p2Body),n.ƀgz.delete(this.p2Body.id),n.ƀhg.delete(this.id));}canCollideWith(t){return E.arePhysicsGroupsCollidable(this.ƀhh,this.ƀhj,t.ƀhh,t.ƀhj)}ƀiq(t){this.ƀay=t,t.length>0&&this.ƀgm.trigger(t);}};var ge=class extends T{static{a(this,"ImmovablePhysicsEntity");}position;rotation;constructor(t,e){super(t,e,"static"),this.position=E.arrayToVector(this.p2Body.position),this.rotation=new helpersLib.Radian(this.p2Body.angle);}convertToDTO(){return {entityID:this.id,classID:this.classID,position:this.position,rotation:this.rotation,velocity:helpersLib.Vector.zero,rotationalSpeed:0}}};var ye=class extends F{static{a(this,"MovableEntity");}position=new actionsLib.Variable(helpersLib.Vector.zero);rotation=new actionsLib.Variable(helpersLib.Radian.get0);velocity=new actionsLib.Variable(helpersLib.Vector.zero);rotationalSpeed=new actionsLib.Variable(0);constructor(){super(),d.beforeSceneUpdateAction.subscribe(({time:t,delta:e})=>{this.ƀjh(t,e);}).attach(this);}ƀjh(t,e){this.position.value=this.position.value.add(this.velocity.value.multiplyNumber(e)),this.rotation.value=new helpersLib.Radian(this.rotation.value.value+this.rotationalSpeed.value*e);}};var xe=class extends T{static{a(this,"MovablePhysicsEntity");}position=new actionsLib.Variable(helpersLib.Vector.zero);rotation=new actionsLib.Variable(helpersLib.Radian.get0);velocity=new actionsLib.Variable(helpersLib.Vector.zero);rotationalSpeed=new actionsLib.Variable(0);ƀey=false;ƀez=false;ƀfb=false;ƀfa=false;constructor(t,e){super(t,e,"dynamic"),this.ƀhd(),this.ƀfv(),m.get(_).subscribeToPhysicsStep(t,({time:i,delta:r})=>this.ƀjh(i,r)).attach(this);}convertToDTO(){return {entityID:this.id,classID:this.classID,position:this.position.value,rotation:this.rotation.value,velocity:this.velocity.value,rotationalSpeed:this.rotationalSpeed.value}}ƀjh(t,e){this.ƀey=true,this.ƀez=true,this.ƀfb=true,this.ƀfa=true,this.ƀhd();}ƀhd(){this.position.value=E.arrayToVector(this.p2Body.position),this.rotation.value=new helpersLib.Radian(this.p2Body.angle),this.velocity.value=E.arrayToVector(this.p2Body.velocity),this.rotationalSpeed.value=this.p2Body.angularVelocity;}ƀfv(){this.position.subscribe(t=>{this.ƀey?this.ƀey=false:this.p2Body.position=[t.x,t.y];}).attach(this),this.rotation.subscribe(t=>{this.ƀez?this.ƀez=false:this.p2Body.angle=t.value;}).attach(this),this.velocity.subscribe(t=>{this.ƀfb?this.ƀfb=false:this.p2Body.velocity=[t.x,t.y];}).attach(this),this.rotationalSpeed.subscribe(t=>{this.ƀfa?this.ƀfa=false:this.p2Body.angularVelocity=t;}).attach(this);}};var no=10.8,oo=10.01,ao=(function(n){return n[n.Point=1]="Point",n[n.Circle=2]="Circle",n[n.Polygon=3]="Polygon",n[n.Rectangle=4]="Rectangle",n})({});var lo="border";var X=class{static{a(this,"AnimationInterpolationFunctions");}static boomerangTime(t){return 1-Math.abs(t-.5)*2}static lineer(t){return t}static easeIn(t){return Math.pow(t,2)}static easeOut(t){return 1-Math.pow(1-t,2)}static easeInOut(t){return t<.5?2*t*t:(t-=1,1-2*t*t)}static easeInOutCubic(t){let e=2*t-2;return t<.5?4*Math.pow(t,3):(t-1)*Math.pow(e,2)+1}},_i=class{static{a(this,"AnimationLineer");}start(){}multiplierFunction(t){return X.lineer(t)}},Ji=class{static{a(this,"AnimationEaseIn");}start(){}multiplierFunction(t){return X.easeIn(t)}},qi=class{static{a(this,"AnimationEaseOut");}start(){}multiplierFunction(t){return X.easeOut(t)}},Yi=class{static{a(this,"AnimationEaseInOut");}start(){}multiplierFunction(t){return X.easeInOut(t)}},Xi=class{static{a(this,"AnimationEaseInOutCubic");}start(){}multiplierFunction(t){return X.easeInOutCubic(t)}},$e=class{static{a(this,"AnimationFlicker");}ƀjt;start(){this.ƀjt=new Array(10).fill(0),helpersLib.Random.integerBetween(0,9),this.ƀjt[helpersLib.Random.integerBetween(0,9)]=Math.random(),Math.random()<.3&&(helpersLib.Random.integerBetween(0,9),this.ƀjt[helpersLib.Random.integerBetween(0,9)]=Math.random()),Math.random()<.2&&(helpersLib.Random.integerBetween(0,9),this.ƀjt[helpersLib.Random.integerBetween(0,9)]=Math.random());}multiplierFunction(t){let e=Math.floor(t*10);return this.ƀjt[e]}},x=class{static{a(this,"Animations");}static lineer=new _i;static easeIn=new Ji;static easeOut=new qi;static easeInOut=new Yi;static easeInOutCubic=new Xi};var H=(function(n){return n[n.ThrowError=1]="ThrowError",n[n.IgnoreNewAnimation=2]="IgnoreNewAnimation",n[n.CompletePrevious=3]="CompletePrevious",n})({}),$=(function(n){return n[n.ReturnToOriginal=1]="ReturnToOriginal",n[n.StayInCurrentState=2]="StayInCurrentState",n[n.JumpToEnd=3]="JumpToEnd",n[n.Loop=4]="Loop",n})({}),L=class n{static{a(this,"Animator");}static ƀj=new WeakMap;static ƀdi(t){let e=n.ƀj.get(t);return e||(e=new helpersLib.MapToWeakRefs,n.ƀj.set(t,e)),e}ƀjk;ƀgy;ƀk;ƀgv;get animating(){return this.ƀgv!==void 0}get target(){return this.ƀjk}ƀkb;get value(){return this.ƀkb||(this.ƀkb=new actionsLib.Variable(this.ƀjk)),this.ƀkb.notifier}constructor(t,e,i){this.ƀjk=t,this.ƀgy={duration:200,animation:x.lineer,reAnimateHandling:1,completionHandling:2,...i},this.ƀk=helpersLib.Comparator.isArray(e)?e:[e],this.ƀfw(t,this.ƀk);}animate(t,e){let i={...this.ƀgy,...e};if(this.ƀgv)switch(i.reAnimateHandling){case 1:throw new Error("Animator: new animation triggered while another is not complete yet.");case 2:return actionsLib.SingleEvent.instant();case 3:this.ƀir(i.completionHandling,this.ƀgv.ƀhs,true);break;default:{throw new Error(`Animator: unknown re-animate handling type: "${i.reAnimateHandling}"`)}}return actionsLib.SingleEvent.create(s=>{let o=this.ƀk.reduce((u,g)=>(u[g]={ƀje:this.ƀjk[g],ƀjm:t[g]},u),{}),h,l={ƀcs:i.duration,ƀct:0,ƀhs:o,ƀbf:i.completionHandling,ƀl:i.animation,ƀbe:s};if(l.ƀbf!==4&&this.ƀfi(l)){this.ƀgv=void 0,s();return}else l.ƀl.start();let p=this.ƀgv;return this.ƀgv=l,h=d.beforeSceneUpdateAction.subscribe(u=>{l.ƀct+=u.delta;let g=l.ƀct>=l.ƀcs;if(g&&(l.ƀbf===4?(l.ƀct%=l.ƀcs,l.ƀl.start(),g=false):(this.ƀir(l.ƀbf,l.ƀhs,false),this.ƀgv=void 0,l.ƀbe())),!g){let y=l.ƀl.multiplierFunction(l.ƀct/l.ƀcs),M=false;for(let U=0;U<this.ƀk.length;U++){let nt=this.ƀk[U],de=l.ƀhs[nt],Ne=(de.ƀjm-de.ƀje)*y+de.ƀje;Ne!==this.ƀjk[nt]&&(M=true,this.ƀjk[nt]=Ne);}M&&this.ƀkb?.set(this.ƀjk);}}).attachToRoot(),p?.ƀbe(),()=>{h.destroy(),this.ƀgv===l&&(this.ƀjk instanceof actionsLib.Attachable&&this.ƀjk.destroyed||this.ƀir(this.ƀgv.ƀbf,this.ƀgv.ƀhs,true),this.ƀgv=void 0);}})}set(t){let e=false;for(let i=0;i<this.ƀk.length;i++){let r=this.ƀk[i];this.ƀjk[r]!==t[r]&&(e=true,this.ƀjk[r]=t[r]);}e&&this.ƀkb?.set(this.ƀjk),this.ƀgv?.ƀbe();}completeAnimation(t){if(this.ƀgv){t=t??this.ƀgv.ƀbf,this.ƀir(t,this.ƀgv.ƀhs,true);let e=this.ƀgv.ƀbe;this.ƀgv=void 0,e();}}ƀfi(t){for(let e=0;e<this.ƀk.length;e++){let i=this.ƀk[e];if(this.ƀjk[i]!==t.ƀhs[i].ƀjm)return false}return true}ƀir(t,e,i){switch(t){case 1:this.ƀid(e);break;case 2:i||this.ƀfm(e);break;case 3:this.ƀfm(e);break;case 4:this.ƀid(e);break;default:{throw new Error(`Animator: unknown completion handling type: "${t}"`)}}}ƀid(t){let e=false;for(let i=0;i<this.ƀk.length;i++){let r=this.ƀk[i];this.ƀjk[r]!==t[r].ƀje&&(e=true,this.ƀjk[r]=t[r].ƀje);}e&&this.ƀkb?.set(this.ƀjk);}ƀfm(t){let e=false;for(let i=0;i<this.ƀk.length;i++){let r=this.ƀk[i];this.ƀjk[r]!==t[r].ƀjm&&(e=true,this.ƀjk[r]=t[r].ƀjm);}e&&this.ƀkb?.set(this.ƀjk);}ƀfw(t,e){let i=n.ƀdi(t);for(let r of e){if(i.has(r))throw new Error(`Animator: target property is already animated! Target: "${JSON.stringify(t,void 0,2)}", Property: "${r}"`);i.set(r,this);}}};var we=(function(n){return n.Click="click",n.MouseOver="mouseover",n.MouseOut="mouseout",n.PointerDown="pointerdown",n.PointerUp="pointerup",n.PointerUpOutside="pointerupoutside",n.PointerMove="pointermove",n.PointerCancel="pointercancel",n.PointerOver="pointerover",n.PointerOut="pointerout",n.PointerEnter="pointerenter",n.PointerLeave="pointerleave",n.Added="added",n.Removed="removed",n.Update="update",n.Change="change",n})({}),rr=(function(n){return n.Default="default",n.Pointer="pointer",n})({}),jt=class extends actionsLib.IDAttachable{static{a(this,"ContainerAttributes");}pixiContainer;constructor(){super(),this.pixiContainer=new R__namespace.Container;}get size(){return this.getSize()}set size(t){this.setSize(t);}getSize(){return new helpersLib.Vector(this.pixiContainer.width,this.pixiContainer.height)}setSize(t){return this.pixiContainer.width=t.x,this.pixiContainer.height=t.y,this}setPosition(t,e){if(e?.holdFrom){let i=this.pixiContainer.getLocalBounds(),r=new helpersLib.Vector(this.pixiContainer.scale.x,this.pixiContainer.scale.y),s=new helpersLib.Vector(i.x,i.y).multiply(r),o=new helpersLib.Vector(i.width,i.height).multiply(r),h=s.add(o.multiply(e.holdFrom));t=t.subtract(h);}return e?.round!==false&&(t=t.round({rollHalfsDown:true})),this.position=t,this}get position(){return new helpersLib.Vector(this.pixiContainer.x,this.pixiContainer.y)}set position(t){this.pixiContainer.position=t;}get x(){return this.pixiContainer.x}set x(t){this.pixiContainer.x=t;}get y(){return this.pixiContainer.y}set y(t){this.pixiContainer.y=t;}on(t,e){let i=a(r=>e(),"handle");return this.pixiContainer.on(t,i),new actionsLib.ActionSubscription(()=>{this.pixiContainer.off(t,i);})}setRotation(t){return this.rotation=t,this}get rotation(){return new helpersLib.Radian(this.pixiContainer.rotation)}set rotation(t){this.pixiContainer.rotation=t.value;}get rotationValue(){return this.rotation.value}set rotationValue(t){this.rotation=new helpersLib.Radian(t);}setZIndex(t){return this.zIndex=t,this}get zIndex(){return this.pixiContainer.zIndex}set zIndex(t){this.pixiContainer.zIndex=t;}setSkewX(t){return this.skewX=t,this}get skewX(){return new helpersLib.Radian(this.pixiContainer.skew.x)}set skewX(t){this.pixiContainer.skew.x=t.value;}setSkewY(t){return this.skewY=t,this}get skewY(){return new helpersLib.Radian(this.pixiContainer.skew.y)}set skewY(t){this.pixiContainer.skew.y=t.value;}setSortableChildren(t){return this.sortableChildren=t,this}get sortableChildren(){return this.pixiContainer.sortableChildren}set sortableChildren(t){this.pixiContainer.sortableChildren=t;}setAlpha(t){return this.pixiContainer.alpha=t,this}get alpha(){return this.pixiContainer.alpha}set alpha(t){this.pixiContainer.alpha=t;}setInteractive(t){return this.interactive=t,this}get interactive(){return this.pixiContainer.interactive}set interactive(t){t?this.pixiContainer.eventMode="dynamic":this.pixiContainer.eventMode="none";}setCursor(t){return this.cursor=t,this}get cursor(){return this.pixiContainer.cursor}set cursor(t){this.pixiContainer.cursor=t;}getMask(){throw new Error("ContainerAttributes: mask is not available!")}ƀfz;setMask(t){return t?(this.pixiContainer.addChild(t.pixiContainer),this.pixiContainer.mask=t.getMask(),this.ƀfz=t):(this.ƀfz&&this.pixiContainer.removeChild(this.ƀfz.pixiContainer),this.pixiContainer.mask=null),this}hitTest(t){if(this.pixiContainer.parent)if(this.pixiContainer.hitArea){let e=this.pixiContainer.toLocal(t);return this.pixiContainer.hitArea.contains(e.x,e.y)}else return this.pixiContainer.getBounds().contains(t.x,t.y);else return false}ƀgf=false;ƀdb=false;ƀie=1;ƀv=1;setMirror(t=false){return this.mirror=t,this}get mirror(){return this.ƀgf}set mirror(t){this.ƀgf=t,this.ƀka();}setFlip(t=false){return this.flip=t,this}get flip(){return this.ƀdb}set flip(t){this.ƀdb=t,this.ƀka();}setScale(t){return this.scale=t,this}get scale(){return this.ƀie}set scale(t){this.ƀie=t,this.ƀka();}setAspectRatio(t){return this.aspectRatio=t,this}get aspectRatio(){return this.ƀv}set aspectRatio(t){this.ƀv=t,this.ƀka();}ƀka(){this.pixiContainer.scale.set(this.ƀie,this.ƀie),this.ƀv<1?this.pixiContainer.scale.x*=this.ƀv:this.ƀv>1&&(this.pixiContainer.scale.y/=this.ƀv),this.ƀgf&&(this.pixiContainer.scale.x*=-1),this.ƀdb&&(this.pixiContainer.scale.y*=-1);}};var w=2,kt=(function(n){return n[n.Normal=R__namespace.BLEND_MODES.NORMAL]="Normal",n[n.Add=R__namespace.BLEND_MODES.ADD]="Add",n[n.Screen=R__namespace.BLEND_MODES.SCREEN]="Screen",n[n.Luminosity=R__namespace.BLEND_MODES.LUMINOSITY]="Luminosity",n[n.ColorDodge=R__namespace.BLEND_MODES.COLOR_DODGE]="ColorDodge",n})({});var Ht=class{static{a(this,"GaussianValuesHelper");}static ƀdg(t,e){let i=e*e,r=1/(helpersLib.PI_360*i),s=-(t*t)/(2*i);return r*Math.exp(s)}static getValuesForLinearSamplingPascal(t){let e=t*2,i=Math.pow(2,e),r=.005*i,s=helpersLib.NumberHelper.pascalTriangleRow(e).slice(t).filter(l=>{if(l<r)i-=l*2;else return true}),o=1/i,h=s.map(l=>l*o);return this.ƀbr(h)}static getValuesForLinearSamplingGauss(t){if(t===0)return [{offset:0,multiplier:1}];if(t===1)return [{offset:0,multiplier:.5},{offset:1,multiplier:.25}];{let e=helpersLib.ArrayHelper.createIntegerArray(Math.ceil(t*.75)).map(r=>this.ƀdg(r,t*.4)),i=e.reduce((r,s)=>r+s,0);return i=i*2-e[0],e=e.map(r=>r/i),this.ƀbr(e)}}static ƀbr(t){let e=[{offset:0,multiplier:t[0]}];for(let i=1;i<t.length-1;i+=2){let r=t[i]+t[i+1],s=i+t[i+1]/r;e.push({offset:s,multiplier:r});}if(t.length%2===0){let i=t[t.length-1],r=t.length-1;e.push({offset:r,multiplier:i});}return e}};var _e=class Se extends R__namespace.Filter{static{a(this,"BlurFilterPass");}ƀeu;static ƀeg(){return `
2
+ attribute vec2 aVertexPosition;
3
+ attribute vec2 aTextureCoord;
4
+
5
+ uniform mat3 projectionMatrix;
6
+
7
+ varying vec2 vTextureCoord;
8
+
9
+ void main(void) {
10
+ gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
11
+ vTextureCoord = aTextureCoord;
12
+ }
13
+ `}static ƀdp(t,e){let i=`
14
+ uniform sampler2D uSampler;
15
+
16
+ varying vec2 vTextureCoord;
17
+ uniform float pixelSize;
18
+
19
+ void iterate(vec2 offsetVector, float multiplier, out vec4 outputColor) {
20
+ vec4 textureColor = texture2D(uSampler, (vTextureCoord + offsetVector));
21
+ outputColor += textureColor * multiplier;
22
+ }
23
+
24
+ void main() {
25
+ gl_FragColor = texture2D(uSampler, vTextureCoord) * ${helpersLib.NumberHelper.toFloatString(t[0].multiplier)};
26
+ float offset;`;for(let r=1;r<t.length;r++){let s=`vec2(${e?"offset, 0.0":"0.0, offset"})`;i+=`
27
+
28
+ offset = ${helpersLib.NumberHelper.toFloatString(t[r].offset)} * pixelSize;
29
+ iterate(${s}, ${helpersLib.NumberHelper.toFloatString(t[r].multiplier)}, gl_FragColor);
30
+ iterate(${s} * -1.0, ${helpersLib.NumberHelper.toFloatString(t[r].multiplier)}, gl_FragColor);`;}return i+=`
31
+ }
32
+ `,i}constructor(t,e){super(Se.ƀeg(),Se.ƀdp(Ht.getValuesForLinearSamplingGauss(t),e)),this.ƀeu=e,this.resolution=w;}apply(t,e,i,r){this.uniforms.pixelSize=this.ƀeu?1/(e.width*w):1/(e.height*w),t.applyFilter(this,e,i,r);}},lt=class extends R__namespace.Filter{static{a(this,"BlurFilter");}ƀji;ƀew;ƀkf;constructor(t=new helpersLib.Vector(2,2)){if(super(),this.ƀji=t,this.resolution=w,this.ƀji=t.multiplyNumber(w).floor(),this.ƀji.x<0||this.ƀji.y<0)throw new Error("BlurFilterLinearSampling: Strength * Resolution must be greater than 0");if(this.ƀji.x>100||this.ƀji.y>100)throw new Error("BlurFilterLinearSampling: Strength * Resolution cannot be higher than 100");this.ƀew=new _e(this.ƀji.x,true),this.ƀkf=new _e(this.ƀji.y,false),this.padding=Math.max(this.ƀji.x,this.ƀji.y);}apply(t,e,i,r){let s=t.getFilterTexture();this.ƀkf.apply(t,e,s,R__namespace.CLEAR_MODES.CLEAR),this.ƀew.apply(t,s,i,r),t.returnFilterTexture(s);}get blendMode(){return this.ƀew.blendMode}set blendMode(t){this.ƀew.blendMode=t,this.ƀkf.blendMode=t;}};var Ut=class{static{a(this,"Filters");}ƀbh;ƀba;ƀhw=1;get red(){return this.ƀhw}set red(t){this.ƀhw=t,this.ƀhx();}ƀek=1;get green(){return this.ƀek}set green(t){this.ƀek=t,this.ƀhx();}ƀaf=1;get blue(){return this.ƀaf}set blue(t){this.ƀaf=t,this.ƀhx();}ƀal=1;get brightness(){return this.ƀal}set brightness(t){this.ƀal=t,this.ƀhx();}ƀbl=1;get contrast(){return this.ƀbl}set contrast(t){this.ƀbl=t,this.ƀhx();}ƀah;ƀag;get blur(){return this.ƀag}set blur(t){let e=helpersLib.Comparator.isNumber(t)?new helpersLib.Vector(t,t):t;(this.ƀag&&e&&!this.ƀag.isEqual(e)||this.ƀag&&!e||!this.ƀag&&e)&&(this.ƀag=e,this.ƀah&&(this.ƀah.destroy(),this.ƀah=void 0),e&&(this.ƀah=new lt(e),this.ƀgp()));}constructor(t){this.ƀbh=t,this.ƀgp();}removeColorFilter(){this.ƀba?.destroy(),this.ƀba=void 0,this.ƀgp();}ƀhx(){this.ƀhw===1&&this.ƀek===1&&this.ƀaf===1&&this.ƀal===1&&this.ƀbl===1?this.ƀba&&(this.ƀba.destroy(),this.ƀba=void 0,this.ƀgp()):(this.ƀba||(this.ƀba=new R__namespace.ColorMatrixFilter,this.ƀba.resolution=w,this.ƀgp()),this.ƀba.matrix=[this.ƀhw*this.ƀbl,0,0,0,this.ƀal-1,0,this.ƀek*this.ƀbl,0,0,this.ƀal-1,0,0,this.ƀaf*this.ƀbl,0,this.ƀal-1,0,0,0,1,0]);}ƀgp(){let t=[];this.ƀah&&t.push(this.ƀah),this.ƀba&&t.push(this.ƀba),this.ƀbh.filters=t;}};var c=class n extends jt{static{a(this,"Container");}static allContainers=new Map;filters;addChildTo=this;defaultChildOptions={addUnder:false,cropOverflowingParts:false};constructor(){super(),n.allContainers.set(this.id,this),this.filters=new Ut(this.pixiContainer);}destroy(){this.destroyed||(super.destroy(),n.allContainers.delete(this.id),!this.pixiContainer.destroyed&&this.pixiContainer.destroy());}getBoundingMask(){if(this.addChildTo!==this)return this.addChildTo.getBoundingMask();throw new Error(`Container: bounding mask cannot be used without bounding shapes. Display Object: "${this.id}"!`)}displayParent(t,e){let i;if(helpersLib.Comparator.isNumber(t)){if(i=n.allContainers.get(t),!i)throw new Error(`Container: parent not found! id: ${t}`)}else i=t;let r={addUnder:i.defaultChildOptions.addUnder,cropOverflowingParts:i.defaultChildOptions.cropOverflowingParts,...e};if(r.addUnder?i.addChildTo.pixiContainer.addChildAt(this.pixiContainer,0):i.addChildTo.pixiContainer.addChild(this.pixiContainer),r.cropOverflowingParts)if(i)this.pixiContainer.mask=i.getBoundingMask().pixiSprite;else throw new Error("Container: cropOverflowingParts can only be used with Container parent!");return this}get boundingBox(){let t=this.pixiContainer.getLocalBounds();return new helpersLib.Rectangle(new helpersLib.Vector(t.x,t.y),new helpersLib.Vector(t.x+t.width,t.y+t.height))}};var b=class{static{a(this,"GameAssets");}static ƀic=new Map;static ƀo=0;static getAsset(t){let e=this.ƀic.get(t);if(e)return e;throw new Error(`Game Assets: Resource not found! Key: "${t}"`)}static insertAsset(t,e){return e||(e=`a-${this.ƀo++}`),this.ƀic.set(e,t),e}static destroyAsset(t){let e=this.ƀic.get(t);e&&(e.destroy(true),this.ƀic.delete(t));}static async loadGameAssets(t){let e=new Map,i=[];t.forEach(s=>{if(!helpersLib.Comparator.isString(s.url))throw new Error(`GameAssets: source url should be a string: ${s.url}`);let o=e.get(s.url);o?o.push(s.id):(e.set(s.url,[s.id]),i.push({url:s.url,callback:a(h=>{if(h instanceof R__namespace.Texture&&(h.id=s.id),o=e.get(s.url),o)o.forEach(l=>{this.ƀic.set(l,h);});else throw new Error(`GameAssets: unexpected error, nameGroup is not found! "./"! ${s}`)},"callback")}));});let r=performance.now();return Promise.all(i.map(s=>R__namespace.Assets.load(s.url))).then(s=>{let o=performance.now();console.info("Asset load completed in: ",Math.round(o-r)/1e3," seconds"),s.forEach((h,l)=>{i[l].callback(h);});}).catch(s=>{throw new Error(`GameAssets: during asset loading, an error occured: ${s}`)})}};var xt=class{static{a(this,"PositionConversionHelper");}static includeScaleInScreenPosition(t,e,i){if(e!==1){let r=helpersLib.Vector.fromTo(i,t).multiplyNumber(1/e);return i.add(r)}else return t}static normalizePolygonByAnchor(t,e,i){let r=new helpersLib.Vector(e.x*i.x,e.y*i.y);return t.map(s=>s.map(o=>r.to(helpersLib.Vector.fromVec2(o))))}},_t=class{static{a(this,"CompositeHitArea");}ƀiw;constructor(t,e,i){this.ƀiw=t.map(r=>new R__namespace.Polygon(r.map(s=>new R__namespace.Point(s.x,s.y))));}contains(t,e){return this.ƀiw.some(i=>i.contains(t,e))}};var dr=(function(n){return n[n.Instant=1]="Instant",n[n.EaseInOut=2]="EaseInOut",n[n.EaseOut=3]="EaseOut",n})({});function fr(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(fr,"_ts_decorate");var G=class extends Y{static{a(this,"CameraEntity");}position=new actionsLib.Variable(helpersLib.Vector.zero);offset=new actionsLib.Variable(helpersLib.Vector.zero);targetPosition=new actionsLib.Variable(void 0);focusingNewTargetInfo=new actionsLib.Variable(void 0)};G=fr([ft()],G);function mr(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(mr,"_ts_decorate");function Xe(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}a(Xe,"_ts_metadata");var J=class extends mt{static{a(this,"CameraView");}ƀcv;ƀif=new c().setAlpha(0).displayParent(f.instance.stage).attach(this);ƀad=O.createRectangle(new helpersLib.Vector(1,1),helpersLib.ColorHelper.black).toSprite({cache:true}).setAlpha(0).displayParent(f.instance.stage).attach(this);ƀab=new c().displayParent(this.ƀif).attach(this);ƀaq=new c().displayParent(this.ƀif).attach(this);ƀdf=new c().setSortableChildren(true).displayParent(this.ƀif).attach(this);ƀap=new c().setSortableChildren(true).displayParent(this.ƀaq).attach(this);ƀde=new c().setSortableChildren(true).setZIndex(20).displayParent(this.ƀap).attach(this);ƀfy=new c().setSortableChildren(true).setZIndex(10).displayParent(this.ƀap).attach(this);ƀaa=new c().setZIndex(0).displayParent(this.ƀap).attach(this);ƀh=new L(this.ƀif,"alpha",{duration:500,animation:x.easeInOutCubic,reAnimateHandling:H.CompletePrevious,completionHandling:$.StayInCurrentState});ƀae=new L(this.ƀad,"alpha",{duration:500,animation:x.easeInOutCubic,reAnimateHandling:H.CompletePrevious,completionHandling:$.StayInCurrentState});constructor(t){super(),this.ƀcv=t,f.instance.screenSize.subscribe(e=>{this.ƀad.aspectRatio=e.x/e.y,this.ƀad.scale=Math.max(e.x,e.y),this.ƀad.setPosition(helpersLib.Vector.zero,{holdFrom:helpersLib.Vector.zero});}).attach(this),f.instance.setScreenPositionToStagePositionFunction(e=>new helpersLib.Vector(e.x-this.ƀap.position.x-this.ƀaq.position.x,e.y-this.ƀap.position.y-this.ƀaq.position.y)),this.ƀcv.position.subscribe(e=>{this.ƀap.position=this.ƀbq(e);}).attach(this),this.ƀcv.offset.subscribe(e=>{this.ƀaq.position=e;}).attach(this),this.appear(true,"alpha");}destroy(){this.destroyed||(super.destroy(),f.instance.resetScreenPositionToStagePositionFunction());}getLayers(){return {backgroundScreen:this.ƀab.id,background:this.ƀaa.id,main:this.ƀfy.id,foreground:this.ƀde.id,foregroundScreen:this.ƀdf.id}}appear(t,e){switch(e){case "alpha":return this.ƀae.set({alpha:0}),this.ƀh.set({alpha:t?0:1}),this.ƀh.animate({alpha:t?1:0}).chain(this);case "pureBlack":return this.ƀh.set({alpha:1}),this.ƀae.set({alpha:t?1:0}),this.ƀae.animate({alpha:t?0:1}).chain(this);case "instant":return this.ƀh.set({alpha:t?1:0}),this.ƀae.set({alpha:t?0:1}),actionsLib.SingleEvent.instant();default:{throw new Error('Switch ended with value "never".')}}}ƀbq(t){return helpersLib.Vector.fromTo(t,f.instance.getScreenSizeCenter())}};J=mr([me({entity:G}),Xe("design:type",Function),Xe("design:paramtypes",[typeof G>"u"?Object:G])],J);function xr(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(xr,"_ts_decorate");var Z=new D;exports.CameraGateway=class q{static{a(this,"CameraGateway");}createCamera(){return Z.trigger("createCamera")}update(t,e){return Z.trigger("update",t,e)}setPosition(t){return Z.trigger("setPosition",t)}setTransition(t){return Z.trigger("setTransition",t)}getCameraPosition(){return Z.trigger("getCameraPosition")}};exports.CameraGateway=xr([S()],exports.CameraGateway);function wr(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(wr,"_ts_decorate");function Ze(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}a(Ze,"_ts_metadata");var St=class{static{a(this,"CameraController");}ƀar;constructor(t){this.ƀar=t;}createCamera(){return this.ƀar.createCamera().id}update(t,e){this.ƀar.update(t,e);}setPosition(t){this.ƀar.setPosition(t);}setTransition(t){this.ƀar.setTransition(t);}getCameraPosition(){return this.ƀar.getCameraPosition()}};St=wr([k({controllerLink:Z}),Ze("design:type",Function),Ze("design:paramtypes",[typeof CameraService>"u"?Object:CameraService])],St);function Sr(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(Sr,"_ts_decorate");var Yt=new D,K=class{static{a(this,"CameraViewGateway");}getLayers(){return Yt.trigger("getLayers")}appear(t,e){return Yt.trigger("appear",t,e)}};K=Sr([S()],K);function br(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(br,"_ts_decorate");var bt=class{static{a(this,"CameraViewController");}getLayers(){let t=G.getInstanceOrFail().id;return J.getInstanceOrFail(t).getLayers()}appear(t,e){let i=G.getInstanceOrFail().id;return J.getInstanceOrFail(i).appear(t,e)}};bt=br([k({controllerLink:Yt})],bt);var Pt=class{static{a(this,"Camera");}layers;ƀao;ƀas;get position(){return this.ƀao.getCameraPosition()}constructor(){this.ƀao=m.get(exports.CameraGateway),this.ƀas=m.get(K),this.ƀao.createCamera(),this.layers=this.ƀas.getLayers();}setPosition(t){this.ƀao.setPosition(t);}setTransition(t){this.ƀao.setTransition(t);}appear(t,e="alpha"){return this.ƀas.appear(t,e)}};var f=class n{static{a(this,"Game");}static ƀfh;static get instance(){return this.ƀfh}static pause=actionsLib.Reducer.createOr();static ƀan;static get camera(){return this.ƀan}static get time(){return d.ƀjs}static ƀiu;static get setupOptions(){return this.ƀiu}stage;renderer;ƀik=new actionsLib.Variable(helpersLib.Vector.zero);screenSize=this.ƀik.notifier;getScreenSize(){return this.ƀik.value}ƀil=new actionsLib.Variable(helpersLib.Vector.zero);screenSizeCenter=this.ƀil.notifier;getScreenSizeCenter(){return this.ƀil.value}devMode=false;ƀhn;ƀbg;ƀij;constructor(t){if(this.resetScreenPositionToStagePositionFunction(),n.ƀfh)throw new Error("There can be only one Game instance!");this.ƀbg={screenResolution:void 0,devMode:false,backgroundColor:helpersLib.ColorHelper.black,...t},this.devMode=this.ƀbg.devMode||false,this.ƀhn=new R__namespace.Application({backgroundColor:this.ƀbg.backgroundColor,autoStart:false,antialias:w<1.5,resolution:w,width:this.ƀbg.screenResolution?.width,height:this.ƀbg.screenResolution?.height,resizeTo:this.ƀbg.screenResolution===void 0?window:void 0});}async setup(t){n.ƀiu=t,document.body.appendChild(this.ƀhn.view),await Promise.all([b.loadGameAssets(t.assetDefinitions)]),n.ƀfh=this,this.stage=new c().attachToRoot(),this.stage.pixiContainer=this.ƀhn.stage,this.renderer=this.ƀhn.renderer,this.ƀit(),this.stage.sortableChildren=true,globalThis.ƀa=this.ƀhn,window.addEventListener("resize",e=>{setTimeout(()=>this.ƀit());}),n.ƀan=new Pt,this.ƀhn.start(),this.ƀhn.ticker.add(()=>{d.triggerUpdateTick(this.ƀhn.ticker.deltaMS);});}setResolution(t){this.ƀhn.renderer.resolution=t,this.ƀhn.renderer.resize(this.ƀhn.screen.width,this.ƀhn.screen.height);}screenPositonToStagePosition(t){let e=xt.includeScaleInScreenPosition(t,n.instance.stage.scale,n.instance.getScreenSizeCenter());return this.ƀij(e)}setScreenPositionToStagePositionFunction(t){this.ƀij=t;}resetScreenPositionToStagePositionFunction(){this.ƀij=t=>t;}destroyAsset(t){b.destroyAsset(t);}ƀit(){let t=new helpersLib.Vector(this.ƀhn.screen.width,this.ƀhn.screen.height);this.ƀik.value=t,this.ƀil.value=t.multiplyNumber(.5).round();}};var Zt=class n extends R__namespace.Filter{static{a(this,"ExpandWithColorFilter");}ƀcx;static ƀeg(){return `
33
+ attribute vec2 aVertexPosition;
34
+ attribute vec2 aTextureCoord;
35
+
36
+ uniform mat3 projectionMatrix;
37
+
38
+ varying vec2 vTextureCoord;
39
+
40
+ void main(void) {
41
+ gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
42
+ vTextureCoord = aTextureCoord;
43
+ }
44
+ `}static ƀdp(t){let e=`
45
+ uniform sampler2D uSampler;
46
+ uniform vec2 pixelSize;
47
+ uniform float expandSquared;
48
+ uniform vec3 color;
49
+
50
+ varying vec2 vTextureCoord;
51
+
52
+ void main(void) {
53
+ float highestAlpha = 0.0;`;return t>0?e+=`
54
+
55
+ for (float x = -${helpersLib.NumberHelper.toFloatString(t)}; x <= ${helpersLib.NumberHelper.toFloatString(t)}; x++) {
56
+ for (float y = -${helpersLib.NumberHelper.toFloatString(t)}; y <= ${helpersLib.NumberHelper.toFloatString(t)}; y++) {
57
+ vec4 neighborColor = texture2D(uSampler, vTextureCoord + vec2(x * pixelSize.x, y * pixelSize.y));
58
+ float distance = x * x + y * y;
59
+ highestAlpha = max(highestAlpha, neighborColor.a * step(distance, expandSquared));
60
+ }
61
+ }`:e+=`
62
+
63
+ vec4 centerColor = texture2D(uSampler, vTextureCoord);
64
+ highestAlpha = centerColor.a;`,e+=`
65
+
66
+ gl_FragColor = vec4(color, 1.0) * highestAlpha;
67
+ }`,e}constructor(t,e){if(super(n.ƀeg(),n.ƀdp(t*w)),this.ƀcx=t,this.resolution=w,this.ƀcx=t*w,this.ƀcx<0)throw new Error("ExpandWithColorFilter: Expand * resolution cannot be smaller than 0");if(this.ƀcx>10)throw new Error("ExpandWithColorFilter: Expand * resolution cannot be higher than 10");helpersLib.Comparator.isInteger(this.ƀcx)||(this.ƀcx=Math.floor(this.ƀcx));let i=helpersLib.ColorHelper.normalize(e);this.uniforms.color=new Float32Array([i.red,i.green,i.blue]),this.uniforms.expandSquared=this.ƀcx*this.ƀcx,this.padding=this.ƀcx;}apply(t,e,i,r){this.uniforms.pixelSize=new Float32Array([1/(e.width*w),1/(e.height*w)]),t.applyFilter(this,e,i,r);}};var Kt=class extends R__namespace.Filter{static{a(this,"GlowFilter");}ƀcy;ƀah;constructor(t){super(),this.resolution=w;let e={blurRadius:1,expand:0,color:helpersLib.ColorHelper.white,blendMode:kt.Screen,...t};this.ƀcy=new Zt(e.expand,e.color);let i=helpersLib.Comparator.isNumber(e.blurRadius)?new helpersLib.Vector(e.blurRadius,e.blurRadius):e.blurRadius;this.ƀah=new lt(i),this.padding=Math.max(i.x,i.y)+e.expand,this.ƀah.blendMode=R__namespace.BLEND_MODES.SCREEN;}apply(t,e,i,r){let s=t.getFilterTexture();this.ƀcy.apply(t,e,s,R__namespace.CLEAR_MODES.CLEAR),this.ƀah.apply(t,s,i,r),t.returnFilterTexture(s);}};var Ct=class n{static{a(this,"GlowSpriteGenerator");}static ƀej=new Map;static createGlowSpriteFromSprite(t,e,i){let r=this.ƀbd(e),s=helpersLib.Comparator.isNumber(r.blurRadius)?new helpersLib.Vector(r.blurRadius,r.blurRadius):r.blurRadius,o=this.ƀdr(t.texture,s,r.expand,r.color,i),h=new R__namespace.Sprite(o);return this.ƀis(h,helpersLib.Vector.fromVec2(t.anchor),Math.max(s.x,s.y)+r.expand),h.alpha=r.glowAlpha,h.blendMode=r.blendMode,h}static ƀdr(t,e,i,r,s){if(!t.id)throw new Error("GlowSpriteGenerator: baseTexture should have an id");if(s){let o=`${t.id}-${i}-${e.x}-${e.y}-${r.r}-${r.g}-${r.b}`;if(n.ƀej.has(o))return n.ƀej.get(o);{let h=this.ƀds(t,e,i,r);return n.ƀej.set(o,h),h}}else return this.ƀds(t,e,i,r)}static ƀds(t,e,i,r){let s=new R__namespace.Sprite(t);this.ƀda(s,Math.max(e.x,e.y)+i),s.filters=[new Kt({blurRadius:e,expand:i,color:r})];let o=f.instance.renderer.generateTexture(s);return o.id=b.insertAsset(o),s.destroy(),o}static ƀis(t,e,i){let r=(i+(t.width-i*2)*e.x)/t.width,s=(i+(t.height-i*2)*e.y)/t.height;t.anchor.set(r,s);}static ƀda(t,e){if(t.isSprite){let s=new R__namespace.Graphics;t.addChild(s);}let i=t.width,r=t.height;t.calculateBounds=function(){this.ƀak.clear(),this.ƀak.addFrame(this.transform,-e,-e,i+e,r+e);};}static ƀbd(t){let e={glowAlpha:1,blurRadius:5,expand:0,color:helpersLib.ColorHelper.white,blendMode:kt.Add};return t&&(e={...e,...t}),e}};v.onHardReset.subscribe(()=>{Ct.ƀej.clear();}).attachToRoot();var j=class n extends c{static{a(this,"Sprite");}static createByName(t){let e=f.setupOptions.spriteDefinitions[t];if(!e)throw new Error(`Sprite: Could not find sprite definition with name ${t}.`);return new n(e)}static createSnapshotSprite(t){let e=t.pixiContainer,i=e.parent;i&&i.removeChild(e);let r=f.instance.renderer.generateTexture(e,{resolution:2,scaleMode:R__namespace.SCALE_MODES.LINEAR,multisample:R__namespace.MSAA_QUALITY.HIGH});i&&i.addChild(e);let o={id:b.insertAsset(r),scale:t.scale,size:t.size,anchor:helpersLib.Vector.zero,boundingShapes:void 0,destroyAssetOnDestroy:true};return new n(o,{ignoreAnchor:true})}pixiSprite;ƀja;ƀga;ƀaj;ƀho;constructor(t,e={}){if(super(),!t)throw new Error("Sprite: spriteDefinition cannot be nullish!");this.ƀja=t,this.pixiSprite=new R__namespace.Sprite(b.getAsset(t.id)),this.pixiContainer.addChild(this.pixiSprite),this.setTextureScale(t.scale),e.textureSize&&(this.pixiSprite.width=e.textureSize.x,this.pixiSprite.height=e.textureSize.y),e.texturePosition&&this.pixiSprite.position.set(e.texturePosition.x,e.texturePosition.y),e.ignoreAnchor||this.pixiSprite.anchor.set(t.anchor.x,t.anchor.y);}destroy(){this.destroyed||(super.destroy(),this.ƀga?.destroy(),this.ƀaj?.destroy(),this.ƀja.destroyAssetOnDestroy&&(b.destroyAsset(this.ƀja.id),this.ƀho&&b.destroyAsset(this.ƀho.texture.id)),this.ƀho&&!this.ƀho.destroyed&&this.ƀho.destroy());}ƀjr=1;setTextureScale(t){return this.textureScale=t,this}get textureScale(){return this.ƀjr}set textureScale(t){this.ƀjr=t,this.pixiSprite.scale.set(t);}get size(){return new helpersLib.Vector(this.pixiSprite.width,this.pixiSprite.height)}getMask(){return this.pixiSprite}set interactive(t){super.interactive=t,t&&this.ƀja.boundingShapes&&!this.pixiContainer.hitArea&&(this.pixiContainer.hitArea=new _t(this.ƀja.boundingShapes,this.size,helpersLib.Vector.fromVec2(this.ƀja.anchor)));}setMipmap(t){return this.mipmap=t,this}get mipmap(){return this.pixiSprite.texture.baseTexture.mipmap===R__namespace.MIPMAP_MODES.ON}set mipmap(t){t?this.pixiSprite.texture.baseTexture.mipmap=R__namespace.MIPMAP_MODES.ON:this.pixiSprite.texture.baseTexture.mipmap=R__namespace.MIPMAP_MODES.OFF;}setBlendMode(t){return this.blendMode=t,this}get blendMode(){return this.pixiSprite.blendMode}set blendMode(t){this.pixiSprite.blendMode=t;}setTint(t){return this.tint=t,this}get tint(){return new R__namespace.Color(this.pixiSprite.tint).toRgb()}set tint(t){this.pixiSprite.tint=t;}setShapeAlpha(t){return this.pixiSprite.alpha=t,this}get shapeAlpha(){return this.pixiSprite.alpha}set shapeAlpha(t){this.pixiSprite.alpha=t;}setGlowAlpha(t){return this.glowAlpha=t,this}get glowAlpha(){if(this.ƀho)return this.ƀho.alpha;throw new Error("Sprite: getGlowFilterAlpha cannot be called before glow filter is added.")}set glowAlpha(t){if(this.ƀho)this.ƀho.alpha=t;else throw new Error("Sprite: setGlowFilterAlpha cannot be called before glow filter is added.")}getAlignmentVector(t){let e=helpersLib.Vector.fromVec2(this.ƀja.anchor).to(t);return new helpersLib.Vector(this.size.x*e.x,this.size.y*e.y)}setGlowEffect(t){return this.ƀho&&(this.ƀho.destroy(),this.ƀho=void 0),t&&(this.ƀho=Ct.createGlowSpriteFromSprite(this.pixiSprite,t,!this.ƀja.destroyAssetOnDestroy),this.ƀho.position.set(this.pixiSprite.x,this.pixiSprite.y),this.ƀho.scale.set(this.pixiSprite.scale.x,this.pixiSprite.scale.y),this.pixiContainer.addChild(this.ƀho)),this}showBoundingShape(t){return t?this.ƀaj||(this.ƀaj=this.ƀbt().setAlpha(.3).setTint({r:0,g:0,b:200}).displayParent(this)):this.ƀaj&&(this.ƀaj.destroy(),this.ƀaj=void 0),this}getBoundingMask(){if(!this.ƀga){if(!this.ƀja.boundingShapes)throw new Error("Sprite: cropOverflowingParts cannot be used without polygonDefinition!");this.ƀga=this.ƀbt(),this.ƀga.pixiSprite.t=Number.POSITIVE_INFINITY,this.ƀga.pixiSprite.renderable=false,this.ƀga.displayParent(this);}return this.ƀga}ƀbt(){if(!this.ƀja.boundingShapes)throw new Error("Sprite: bounding shape cannot be created without polygonDefinition!");return O.createPolygon(this.ƀja.boundingShapes,helpersLib.ColorHelper.white).toSprite().attach(this)}download(){let t=f.instance.renderer.extract.canvas(this.pixiContainer);if(!t.toBlob)throw new Error("Sprite: canvas.toBlob is undefined!");return t.toBlob(e=>{if(!e)throw new Error("Sprite: blob is undefined!");let i=document.createElement("a");document.body.append(i),i.download="sprite.png",i.href=URL.createObjectURL(e),i.click(),i.remove();},"image/png"),this}};var Qt=class{static{a(this,"DashedLineHelper");}static getLines(t,e,i){let r=helpersLib.Vector.fromTo(t,e),s=r.normalize(),o=r.length-i.lineStartGap-i.lineEndGap,h=[];if(o<=0)return h;let l=t.add(s.normalize(i.lineStartGap));if(o<=i.dashGap+i.dashLength*.5)return h.push({from:l,to:l.add(s.normalize(o))}),h;let p=o-i.dashGap,u=i.dashLength+i.dashGap,g=Math.floor(p/u),y=p-u*g;g>=1&&y<i.dashLength&&(y+=u,g--);let M=s.normalize(y/2),U=s.normalize(i.dashGap);if(h.push({from:l,to:l.add(M)}),l=l.add(M),g>0){let nt=s.normalize(i.dashLength);helpersLib.ArrayHelper.createEmptyArray(g).forEach(()=>{l=l.add(U),h.push({from:l,to:l.add(nt)}),l=l.add(nt);});}return l=l.add(U),h.push({from:l,to:l.add(M)}),h}};var O=class n extends c{static{a(this,"Graphics");}static ƀcr=new Map;static createArrow(t,e){let i=new R__namespace.Graphics,r=[[{x:0,y:-t/2},{x:t*3/8,y:-t/8},{x:t/4,y:0},{x:0,y:-t/4},{x:-t/4,y:0},{x:-t*3/8,y:-t/8}],[{x:0,y:-t/4},{x:t/8-t/30,y:-t/8-t/30},{x:t/8-t/30,y:t*7/16},{x:-t/8+t/30,y:t*7/16},{x:-t/8+t/30,y:-t/8-t/30}]];return i.beginFill(e),r.forEach(s=>{i.drawPolygon(s.map(o=>new R__namespace.Point(o.x,o.y)));}),i.endFill(),new n(i,JSON.stringify({type:"arrow",size:t,color:e}))}static createDashedLine(t,e,i){let r={width:2,dashLength:10,dashGap:4,lineStartGap:0,lineEndGap:0,color:helpersLib.ColorHelper.white,...i},s=new R__namespace.Graphics;return s.lineStyle(r.width,r.color),Qt.getLines(t,e,r).forEach(h=>{s.moveTo(h.from.x,h.from.y).lineTo(h.to.x,h.to.y);}),new n(s,JSON.stringify({type:"dashedLine",from:t,to:e,options:r}))}static createVector(t,e,i){let r=new R__namespace.Graphics;return r.lineStyle(2,i),r.moveTo(t.x,t.y),r.lineTo(e.x,e.y),r.lineStyle(1,i),r.beginFill(helpersLib.ColorHelper.white),r.drawCircle(t.x,t.y,3),r.endFill(),new n(r,JSON.stringify({type:"line",start:t,end:e,color:i}))}static createRectangleBorders(t,e,i){let r=new R__namespace.Graphics;return r.beginFill(i),r.drawRect(0,0,t.x,e),r.drawRect(0,e,e,t.y-e*2),r.drawRect(t.x-e,e,e,t.y-e*2),r.drawRect(0,t.y-e,t.x,e),r.endFill(),new n(r,JSON.stringify({type:"rectangle-borders",size:t,borderSize:e,color:i}))}static createRectangle(t,e=helpersLib.ColorHelper.white){let i=new R__namespace.Graphics;return i.beginFill(e),i.drawRect(0,0,t.x,t.y),i.endFill(),new n(i,JSON.stringify({type:"rectangle",size:t,color:e}))}static createCircle(t,e){let i=new R__namespace.Graphics;return i.beginFill(e),i.drawCircle(0,0,t),i.endFill(),new n(i,JSON.stringify({type:"circle",radius:t,color:e}))}static createElipse(t,e){let i=new R__namespace.Graphics;return i.beginFill(e),i.drawEllipse(0,0,t.x,t.y),i.endFill(),new n(i,JSON.stringify({type:"elipse",size:t,color:e}))}static createPolygon(t,e){let i=new R__namespace.Graphics,r=JSON.stringify({type:"polygon",polygon:t,color:e});return i.beginFill(e),t.forEach(s=>{i.drawPolygon(s.map(o=>new R__namespace.Point(o.x,o.y)));}),i.endFill(),new n(i,r)}static createRegularPolygon(t,e,i){let r=new R__namespace.Graphics,s=new helpersLib.Radian(helpersLib.PI_360/t);r.beginFill(i),r.moveTo(e,0);for(let o=1;o<=t;o++){let l=s.multiply(o).vector.normalize(e),p=e+l.x,u=e+l.y;r.lineTo(p,u);}return r.endFill(),new n(r,JSON.stringify({type:"regular-polygon",sides:t,radius:e,color:i}))}pixiGraphics;ƀam;constructor(t,e){super(),this.pixiContainer.addChild(t),this.pixiGraphics=t,this.ƀam=e;}destroy(){this.destroyed||(super.destroy(),!this.pixiGraphics.destroyed&&this.pixiGraphics.destroy());}toSprite(t){let e={cacheName:this.ƀam,cache:false,...t},i=this.ƀed(e.cacheName,e.cache),r={id:i.assetID,scale:1,size:i.bounds,anchor:{x:0,y:0},boundingShapes:void 0,destroyAssetOnDestroy:!e.cache},s=new j(r,{texturePosition:i.bounds,ignoreAnchor:true});return this.attachToRoot(),this.destroy(),s}ƀed(t,e){if(e){let i=n.ƀcr.get(t);return i||(i=this.ƀcf(),n.ƀcr.set(t,i)),i}else return this.ƀcf()}ƀcf(){let t=f.instance.renderer.generateTexture(this.pixiGraphics);t.id=b.insertAsset(t);let e=this.pixiGraphics.getBounds();return {assetID:t.id,bounds:new helpersLib.Vector(e.x,e.y)}}};var Ce=class extends c{static{a(this,"Placeholder");}ƀhp;constructor(t){super(),this.ƀhp=new R__namespace.Graphics,this.ƀhp.beginFill(0,1e-9),this.ƀhp.drawRect(0,0,t.x,t.y),this.ƀhp.endFill(),this.pixiContainer.addChild(this.ƀhp);}destroy(){this.destroyed||(super.destroy(),this.ƀhp.destroy());}};var pt=class{static{a(this,"TextStyleConverter");}static getPixiTextStyle(t){let e={color:helpersLib.ColorHelper.white,align:"center",fontFamily:"Arial",fontStyle:"normal",fontSize:18,lineHeight:void 0,wordWrapWidth:void 0,lineThrough:false,...t},i=t?.dropShadow===true?{}:t?.dropShadow,r={};if(i){let s={blur:4,angle:helpersLib.Radian.get60,distance:10,color:helpersLib.ColorHelper.black,alpha:.5,...i};r={dropShadow:true,dropShadowBlur:s.blur,dropShadowAngle:s.angle.value,dropShadowDistance:s.distance,dropShadowColor:helpersLib.ColorHelper.rgbToHex(s.color),dropShadowAlpha:s.alpha};}return {fontFamily:e.fontFamily,fill:helpersLib.ColorHelper.rgbToHex(e.color),align:e.align,fontSize:e.fontSize,fontStyle:e.fontStyle,lineHeight:e.lineHeight,wordWrapWidth:e.wordWrapWidth,wordWrap:e.wordWrapWidth!==void 0,lineThrough:e.lineThrough,...r}}};var ee=class{static{a(this,"RichTextDataInConverter");}static process(t,e){let i=new Set(e.styles?Object.keys(e.styles):[]),r=scriptEngineLib.RichTextSeparator.process(t,i),s=this.ƀfd(r,e),o=this.ƀr(s);return this.ƀiy(o)}static ƀfd(t,e){let i=new Map,r=new Map,s=a((h,l)=>{if(r.has(l))return r.get(l);let p=pt.getPixiTextStyle(h);return r.set(l,p),p},"GetPixiStyle");return t.map(h=>{let{style:l,cacheKey:p}=this.ƀdn(h.tags,e,i),u=s(l,p),g=R__namespace.TextMetrics.measureText(" ",new R__namespace.TextStyle(u),false);return {text:h.text,cacheKey:p,style:l,pixiStyle:u,spaceWidth:g.width}})}static ƀdn(t,e,i){let r=t.join("+");if(i.has(r))return {style:i.get(r),cacheKey:r};let s=this.ƀbb(t,e);return i.set(r,s),{style:s,cacheKey:r}}static ƀbb(t,e){let i={...e.default};for(let l of t)e.styles&&e.styles[l]&&(i={...i,...e.styles[l]});let{wordWrapWidth:r,align:s,dropShadow:o,...h}=i;return h}static ƀr(t){let e=[],i=[];return t.forEach((r,s)=>{r.text.split(/\r?\n/).forEach((h,l)=>{l>0&&(e.push(i),i=[]),i.push({text:h,cacheKey:r.cacheKey,style:r.style,pixiStyle:r.pixiStyle,spaceWidth:r.spaceWidth});});}),e.push(i),e}static ƀiy(t){let e=[];return t.forEach(i=>{if(i.length===0)throw new Error("Internal Error: Line is unexpectedly empty");let r=i.flatMap(s=>this.ƀiz(s.text).map(h=>{let l=new R__namespace.TextStyle(s.pixiStyle),p=R__namespace.TextMetrics.measureText(h,l,false);return {text:h,whitespace:h.trim()==="",style:{cacheKey:s.cacheKey,style:s.style,pixiStyle:l,height:p.height,ascent:p.fontProperties.ascent,descent:p.fontProperties.descent,width:p.width,spaceWidth:s.spaceWidth}}}));e.push(r);}),e}static ƀiz(t){if(t==="")return [""];let e=[],i="",r=t[0]===" ";for(let s=0;s<t.length;s++){let o=t[s],h=o===" ";h===r?i+=o:(e.push(i),i=o,r=h);}return i&&e.push(i),e}};var ie=class{static{a(this,"ConsistentSpaceTextWrapper");}static wrapText(t,e){return t.forEach(i=>{i.forEach((r,s)=>{if(e.isSpaceAvailable(new helpersLib.Vector(r.style.width,r.style.height)))if(r.whitespace&&s===i.length-2){let o=i[i.length-1];e.isSpaceAvailable(new helpersLib.Vector(o.style.width+r.style.width,o.style.height))?e.insertWord(r):this.ƀkn(r,e);}else e.insertWord(r);else e.lineIsEmpty?e.insertWord(r):r.whitespace?this.ƀkn(r,e):(e.newLine(),e.insertWord(r));}),e.newLine();}),e.print()}static ƀkn(t,e){let i=Math.max(0,Math.floor(e.remainingWidth/t.style.spaceWidth)),r=Math.max(0,Math.min(i,t.text.length-1));if(r>0){let o={text:" ".repeat(r),whitespace:true,style:{...t.style,width:r*t.style.spaceWidth}};e.insertWord(o);}e.newLine();let s=t.text.length-r-1;if(s>0){let o={text:" ".repeat(s),whitespace:true,style:{...t.style,width:s*t.style.spaceWidth}};e.insertWord(o);}}};var re=class{static{a(this,"RichTextTypewriter");}ƀkm;ƀfs=[];ƀci=[];ƀck=0;ƀfr=new helpersLib.Vector(0,0);ƀcj=0;ƀcl;ƀev;ƀke;get lineIsEmpty(){return this.ƀci.length===0}get remainingWidth(){return this.ƀkm-this.ƀck}constructor(t,e){if(this.ƀkm=t,this.ƀev=e?.horizontalAlignment??"left",this.ƀke=e?.verticalAlignment??"bottom",e?.rectangleCutOption){if(e.rectangleCutOption.position.x<0||e.rectangleCutOption.position.x>=this.ƀkm||e.rectangleCutOption.position.y<0)throw new Error("Rectangle cut position is out of bounds");this.ƀcl={direction:e.rectangleCutOption.direction,rectangle:this.ƀbp(e.rectangleCutOption)};}}isSpaceAvailable(t){let e=Math.max(this.ƀcj,t.y),i=this.ƀdv(this.ƀfr.y,this.ƀfr.y+e);return this.ƀck+t.x<=i}insertWord(t){let e=Math.max(this.ƀcj,t.style.height);if(this.ƀci.length===0){let i=this.ƀdw(this.ƀfr.y,this.ƀfr.y+e);this.ƀfr=new helpersLib.Vector(i,this.ƀfr.y),this.ƀck=this.ƀfr.x;}this.ƀci.push({chunk:t,position:new helpersLib.Vector(this.ƀck,this.ƀfr.y)}),this.ƀcj=e,this.ƀck+=t.style.width;}newLine(){let t=this.ƀfr.y+this.ƀcj,e=this.ƀdw(t,t);this.ƀdc(),this.ƀfr=new helpersLib.Vector(e,t),this.ƀck=this.ƀfr.x,this.ƀcj=0;}print(){return this.ƀdc(),this.ƀfs}ƀdc(){this.ƀci.length>0&&(this.ƀfs.push(this.ƀg(this.ƀci)),this.ƀci=[]);}ƀg(t){return t=this.ƀkg(t),t=this.ƀex(t),t}ƀex(t){if(this.ƀev==="left")return t;let e=this.ƀfr.y+this.ƀcj,i=this.ƀdw(this.ƀfr.y,e),s=this.ƀdv(this.ƀfr.y,e)-i,o=Math.min(s,t.reduce((l,p)=>l+p.chunk.style.width,0)),h;return this.ƀev==="center"?h=(s-o)/2:h=s-o,t.map(l=>(l={chunk:l.chunk,position:new helpersLib.Vector(l.position.x+h,l.position.y)},l))}ƀkg(t){let e=Math.max(...t.map(r=>r.chunk.style.ascent)),i=Math.max(...t.map(r=>r.chunk.style.descent));return t.map(r=>{let s;switch(this.ƀke){case "top":s=i-r.chunk.style.descent;break;case "center":s=(i-r.chunk.style.descent+e-r.chunk.style.ascent)*.5;break;case "bottom":s=e-r.chunk.style.ascent;break}return r={chunk:r.chunk,position:new helpersLib.Vector(r.position.x,r.position.y+s)},r})}ƀdw(t,e){return this.ƀcl&&(this.ƀcl.direction==="topLeft"||this.ƀcl.direction==="bottomLeft")&&(this.ƀcl.rectangle.isPointInside(new helpersLib.Vector(0,t),{includeEdges:false})||this.ƀcl.rectangle.isPointInside(new helpersLib.Vector(0,e),{includeEdges:false}))?this.ƀcl.rectangle.bottomRight.x:0}ƀdv(t,e){return this.ƀcl&&(this.ƀcl.direction==="topRight"||this.ƀcl.direction==="bottomRight")&&(this.ƀcl.rectangle.isPointInside(new helpersLib.Vector(this.ƀkm,t),{includeEdges:false})||this.ƀcl.rectangle.isPointInside(new helpersLib.Vector(this.ƀkm,e),{includeEdges:false}))?this.ƀcl.rectangle.topLeft.x:this.ƀkm}ƀbp(t){let e,i;switch(t.direction){case "topRight":e=new helpersLib.Vector(t.position.x,-1/0),i=new helpersLib.Vector(1/0,t.position.y);break;case "topLeft":e=new helpersLib.Vector(-1/0,-1/0),i=t.position;break;case "bottomRight":e=t.position,i=new helpersLib.Vector(1/0,1/0);break;case "bottomLeft":e=new helpersLib.Vector(-1/0,t.position.y),i=new helpersLib.Vector(t.position.x,1/0);break}return new helpersLib.Rectangle(e,i)}};var se=class{static{a(this,"RichTextDataOutConverter");}static process(t){return t=this.ƀge(t),t=this.ƀjx(t),this.ƀav(t)}static ƀge(t){return t.map(e=>{let i=[],r,s=true;return e.forEach(o=>{if(!r||r.chunk.style.cacheKey!==o.chunk.style.cacheKey)r&&i.push(r),r=o,s=o.chunk.whitespace;else {let h=r.chunk.text+o.chunk.text;s=o.chunk.whitespace&&s,r={chunk:{text:h,whitespace:s,style:{...r.chunk.style,width:r.chunk.style.width+o.chunk.style.width}},position:r.position};}}),r&&i.push(r),i})}static ƀjx(t){return t.map(e=>{if(e.length===0)return [];let i=e.pop();if(!i.chunk.whitespace||i.chunk.text===""){let r=i.chunk.text.length,s=i.chunk.text.trimEnd();r!==s.length?e.push({chunk:{text:s,whitespace:false,style:{...i.chunk.style,width:i.chunk.style.width-(r-s.length)*i.chunk.style.spaceWidth}},position:i.position}):e.push(i);}return e})}static ƀav(t){return t.flatMap(e=>e.map(i=>({text:i.chunk.text,style:i.chunk.style.style,position:i.position}))).filter(e=>e.text.trim()!=="")}};var Tt=class{static{a(this,"RichTextToPlaneText");}static process(t,e){if(e.default.wordWrapWidth===void 0){if(e.default.align==="right"||e.default.align==="center")throw new Error("wordWrapWidth is required for right or center alignment");if(e.rectangleCut&&(e.rectangleCut.direction==="topRight"||e.rectangleCut.direction==="bottomRight"))throw new Error("wordWrapWidth is required for topRight or bottomRight rectangle cut")}let i=ee.process(t,e),r=new re(e.default.wordWrapWidth??1/0,{rectangleCutOption:e.rectangleCut,verticalAlignment:e.verticalAlignment,horizontalAlignment:e.default.align}),s=ie.wrapText(i,r);return se.process(s)}};var kr=1,ni=1/kr,Rt=class extends c{static{a(this,"Text");}ƀhq;ƀjj;ƀhr;ƀjo;ƀjq;get ƀjp(){if(!this.ƀjq){let t=new R__namespace.TextStyle(this.ƀhr);this.ƀjq=R__namespace.TextMetrics.measureText(this.ƀjo,t);}return this.ƀjq}get ascent(){return this.ƀjp.fontProperties.ascent}constructor(t,e){super(),this.ƀhr=pt.getPixiTextStyle(e),this.setText(t);}destroy(){this.destroyed||(super.destroy(),!this.ƀhq.destroyed&&this.ƀhq.destroy());}setAnchor(t){return this.anchor=t,this}get anchor(){return new helpersLib.Vector(this.ƀhq.anchor.x,this.ƀhq.anchor.y)}set anchor(t){this.ƀhq.anchor.set(t.x,t.y);}setPosition(t,e){if(e?.holdFrom){let i=this.ƀhr.dropShadowDistance??0,r=new helpersLib.Vector(e.holdFrom.x*i,e.holdFrom.y*i);t=t.add(r);}return super.setPosition(t,e),this}setText(t){return this.ƀjo!==t&&(this.ƀjo=t,this.ƀhy()),this}setColor(t){let e=helpersLib.ColorHelper.rgbToHex(t);return this.ƀhr.fill!==e&&(this.ƀhr.fill=e,this.ƀhy()),this}ƀhy(){this.ƀhq?.destroy(),this.ƀjj?.destroy(),this.ƀjj=void 0,this.ƀjq=void 0;let t=new R__namespace.TextStyle(this.ƀhr);this.ƀhq=new R__namespace.Text(this.ƀjo,t),this.ƀhq.scale.set(ni,ni),this.pixiContainer.addChild(this.ƀhq),this.ƀhr.lineThrough&&(this.ƀjj=this.ƀe(this.ƀhq,this.ƀhr.fill),this.pixiContainer.addChild(this.ƀjj));}ƀe(t,e){let i=R__namespace.TextMetrics.measureText(t.text,t.style),r=Math.max(1,Math.round(i.lineHeight*.07)),s=r%2*.5,o=new R__namespace.Graphics;o.lineStyle(r,e);let h=0;return i.lines.forEach((l,p)=>{let u=R__namespace.TextMetrics.measureText(l,t.style),g=Math.round(h+(u.fontProperties.ascent-u.fontProperties.descent)*.6+u.fontProperties.descent)+s,y=0;t.style.align==="center"?y=0+(t.width-u.width)*.5:t.style.align==="right"&&(y=0+t.width-u.width),y=Math.floor(y),o.moveTo(Math.floor(y),g),o.lineTo(Math.floor(y+u.width),g),h+=u.lineHeight;}),o.endFill(),o}};var Ee=class extends c{static{a(this,"RichText");}constructor(t,e){super(),Tt.process(t,e).forEach(r=>new Rt(r.text,r.style).setPosition(r.position).displayParent(this).attach(this));}};var Te=class extends c{static{a(this,"UpdatableContainer");}},Re=class extends c{static{a(this,"DisplayObjectArray");}ƀbv;ƀco=new Map;ƀgy;constructor(t,e){super(),this.ƀbv=t,this.ƀgy={trackBy:a((i,r)=>r,"trackBy"),positioning:{direction:"vertical",spacing:0},...e};}set(t){let e=new Set(this.ƀco.values()),i=0;t.forEach((r,s)=>{let o=this.ƀgy.trackBy(r,s),h;this.ƀco.has(o)?(h=this.ƀco.get(o),e.delete(h),h.update(r)):(h=this.ƀbv(r).displayParent(this).attach(this),this.ƀco.set(o,h)),this.ƀgy.positioning.direction==="horizontal"?(h.x=i,i+=h.size.x+this.ƀgy.positioning.spacing):(h.y=i,i+=h.size.y+this.ƀgy.positioning.spacing);}),e.forEach(r=>{r.destroy();});}};var dt=class n extends c{static{a(this,"Menu");}static ƀgx;static ƀjv=false;static closeAll(){return n.ƀgx?n.ƀgx.close():actionsLib.SingleEvent.instant()}ƀz;ƀgd;ƀn;ƀgq=new actionsLib.SingleAction;onOpen=this.ƀgq.notifier;ƀgl=new actionsLib.SingleAction;onClose=this.ƀgl.notifier;constructor(t,e){super();let i={closeOnBackgroundClick:true,appearAnimationDuration:150,darkeningAlpha:.3,...e};this.setZIndex(100).setAlpha(0),this.ƀn=new L(this,"alpha",{animation:x.easeInOutCubic,duration:i.appearAnimationDuration,reAnimateHandling:H.CompletePrevious,completionHandling:$.StayInCurrentState}),this.ƀz=O.createRectangle(new helpersLib.Vector(1,1),helpersLib.ColorHelper.black).toSprite({cache:true}).setAlpha(i.darkeningAlpha).setInteractive(true).displayParent(this).attach(this),this.ƀgd=j.createByName(t).setPosition(new helpersLib.Vector(0,0)).setInteractive(true).displayParent(this).attach(this),f.instance.screenSize.subscribe(r=>{this.ƀz.aspectRatio=r.x/r.y,this.ƀz.scale=Math.max(r.x,r.y),this.ƀz.setPosition(helpersLib.Vector.zero,{holdFrom:helpersLib.Vector.half}),this.setPosition(r.multiplyNumber(.5));}).attach(this),n.ƀgx=this,this.onDestroy().tap(()=>{n.ƀgx=void 0;}).attachToRoot(),i.closeOnBackgroundClick&&this.ƀz.on(we.Click,()=>{n.ƀjv||this.ƀp(false);}).attach(this),this.ƀp(true);}getBoundingMask(){return this.ƀgd.getBoundingMask()}close(){return this.ƀp(false)}ƀp(t){if(n.ƀjv)throw new Error("WindowUI: cannot iterate while in transition");return n.ƀjv=true,this.ƀn.animate({alpha:t?1:0}).chain(this).tap(()=>{n.ƀjv=false,t?this.ƀgq.resolve():(this.ƀgl.resolve(),this.destroy());}).chainToRoot()}};var Ie=class extends Y{static{a(this,"MenuEntity");}ƀgo=new actionsLib.SingleAction;onCreate=this.ƀgo.notifier;ƀgq=new actionsLib.SingleAction;onOpen=this.ƀgq.notifier;ƀgl=new actionsLib.SingleAction;onClose=this.ƀgl.notifier;ƀgd;constructor(t,e){super(),dt.closeAll().tap(()=>{if(!ot.getActiveScene())throw new Error("WindowEntity: constructor is called when there is no active scene!");f.pause.effect(true).attach(this),this.ƀgd=new dt(t,e).displayParent(f.camera.layers.foregroundScreen).attach(this),this.ƀgo.resolve(this.ƀgd),this.ƀgd.onOpen.subscribe(()=>this.ƀgq.resolve()).attach(this),this.ƀgd.onClose.subscribe(()=>{this.ƀgl.resolve(),this.destroy();}).attach(this);}).attach(this);}close(){if(this.ƀgd){let t=this.onClose.toSingleEvent().destroyIfNotAttached();return this.ƀgd.close(),t}else return this.onCreate.asyncMapQueue(()=>this.close()).singleChain(this)}};function Ur(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(Ur,"_ts_decorate");function ai(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}a(ai,"_ts_metadata");exports.MouseService=class Q{static{a(this,"MouseService");}ƀff=new actionsLib.Variable(false);onInitialMouseMove=this.ƀff.notifier;get initialMouseMoveHappened(){return this.ƀff.value}ƀjb=new actionsLib.Variable(helpersLib.Vector.zero,{notifyOnChange:true});stagePosition=this.ƀjb.notifier;getStagePosition(){return this.ƀjb.value}ƀii=new actionsLib.Variable(helpersLib.Vector.zero,{notifyOnChange:true});screenPosition=this.ƀii.notifier;getScreenPosition(){return this.ƀii.value}ƀfx=new actionsLib.Variable(false);mainButtonState=this.ƀfx.notifier;getMainButtonState(){return this.ƀfx.value}ƀio=new actionsLib.Variable(false);secondaryButtonState=this.ƀio.notifier;getSecondaryButtonState(){return this.ƀio.value}constructor(){this.ƀjc(),window.addEventListener("mousedown",t=>{t.button===0?this.ƀfx.value=true:t.button===2&&(this.ƀio.value=true);}),window.addEventListener("mouseup",t=>{t.button===0?this.ƀfx.value=false:t.button===2&&(this.ƀio.value=false);}),window.addEventListener("blur",()=>{this.ƀfx.value=false,this.ƀio.value=false;});}ƀjc(){let t=helpersLib.Vector.zero;window.addEventListener("mousemove",e=>{t=new helpersLib.Vector(e.clientX,e.clientY),this.ƀff.value=true;}),d.beforeSceneUpdateAction.subscribe(()=>{this.ƀii.value=t;}).attachToRoot(),d.afterSceneUpdateAction.subscribe(()=>{let e=f.instance.screenPositonToStagePosition(this.ƀii.value);e.isEqual(this.ƀjb.value)?f.instance.renderer.events.onPointerMove(new PointerEvent("pointermove",{clientX:this.ƀii.value.x,clientY:this.ƀii.value.y,pointerType:"mouse"})):this.ƀjb.value=e;}).attachToRoot();}};exports.MouseService=Ur([S(),ai("design:type",Function),ai("design:paramtypes",[])],exports.MouseService);var It=class extends c{static{a(this,"MouseWheelListenerUI");}ƀgu=new actionsLib.Action;onWheel=this.ƀgu.notifier;ƀkl;ƀeq=(t=>{let e=m.get(exports.MouseService).getScreenPosition(),i=this.ƀkl.getBounds();e.x>=i.x&&e.x<=i.x+i.width&&e.y>=i.y&&e.y<=i.y+i.height&&this.ƀgu.trigger(t.deltaY);}).bind(this);constructor(t){super(),this.ƀkl=new R__namespace.Graphics,this.ƀkl.beginFill(0,1e-9),this.ƀkl.drawRect(0,0,t.x,t.y),this.ƀkl.endFill(),this.pixiContainer.addChild(this.ƀkl),window.addEventListener("wheel",this.ƀeq);}destroy(){this.destroyed||(super.destroy(),this.ƀkl.destroy(),window.removeEventListener("wheel",this.ƀeq));}};var Jr=.65,qr=.01,ae=class{static{a(this,"SmoothScroller");}ƀbi;ƀu;ƀha;ƀix;ƀjk;ƀim;ƀfg=false;get scrollHeight(){return this.ƀim}get contentSize(){return this.ƀbi.size.ceil()}constructor(t,e,i,r){this.ƀbi=t,this.ƀu=e,this.ƀha=i,this.ƀix=r,this.ƀim=e-i*2,this.ƀbi.y=i,this.ƀjk=i;}onWheel(t){this.setTarget(this.ƀjk-t*Jr);}scrollToTop(){this.setTarget(1/0);}scrollToBottom(){this.setTarget(-1/0);}setTarget(t){this.ƀjk=helpersLib.NumberHelper.clamp(t,this.ƀu-this.ƀha-this.contentSize.y,this.ƀha);}jumpToTarget(){this.ƀbi.y=this.ƀjk;}update(t){let e=this.contentSize;if(e.y<=this.ƀim){switch(this.ƀix){case "start":this.ƀjk=this.ƀha;break;case "center":this.ƀjk=(this.ƀu-e.y)*.5;break;case "end":this.ƀjk=this.ƀu-e.y-this.ƀha;break}this.ƀfg||(this.ƀbi.y=this.ƀjk);}this.ƀfg=true;let i=this.ƀjk-this.ƀbi.y;this.ƀbi.y=this.ƀbi.y+i*qr*t;}};var Me=class{static{a(this,"AnimationEaseInOutFlatter");}start(){}multiplierFunction(t){return 3*(1-t)*Math.pow(t,2)+Math.pow(t,3)}},tt=class n extends c{static{a(this,"ScrollMaskUI");}static ƀcr=new Map;ƀga;constructor(t,e,i,r=De.Vertical){if(super(),i<0)throw new Error("The padding of the scroll mask cannot be lower than '0'");if(e.y<i*2)throw new Error(`The height of the scroll mask cannot be lower than '${i*2}'`);let s=new c;r===De.Horizontal?this.ƀbz(e,i,s):this.ƀcg(e,i,s),this.ƀga=j.createSnapshotSprite(s).attach(this),s.destroy(),t.setMask(this.ƀga);}ƀcg(t,e,i){e>0&&this.ƀbw(new helpersLib.Vector(t.x,e)).displayParent(i).attach(i),O.createRectangle(new helpersLib.Vector(t.x,t.y-e*2),helpersLib.ColorHelper.white).toSprite().setPosition(new helpersLib.Vector(0,e),{round:false}).displayParent(i).attach(i),e>0&&this.ƀbw(new helpersLib.Vector(t.x,e)).setPosition(new helpersLib.Vector(t.x,t.y),{round:false}).setRotation(helpersLib.Radian.get180).displayParent(i).attach(i);}ƀbz(t,e,i){e>0&&this.ƀbw(new helpersLib.Vector(t.y,e)).setPosition(new helpersLib.Vector(0,t.y),{round:false}).setRotation(helpersLib.Radian.get270).displayParent(i).attach(i),O.createRectangle(new helpersLib.Vector(t.x-e*2,t.y),helpersLib.ColorHelper.white).toSprite().setPosition(new helpersLib.Vector(e,0),{round:false}).displayParent(i).attach(i),e>0&&this.ƀbw(new helpersLib.Vector(t.y,e)).setPosition(new helpersLib.Vector(t.x,0),{round:false}).setRotation(helpersLib.Radian.get90).displayParent(i).attach(i);}ƀbw(t){let i={id:this.ƀbx(t.y),scale:1,size:t,anchor:{x:0,y:0},boundingShapes:void 0};return new j(i,{textureSize:t,ignoreAnchor:true})}ƀbx(t){let e=JSON.stringify({type:"gradient",length:t}),i=n.ƀcr.get(e);if(!i){let r=document.createElement("canvas");r.width=1,r.height=t;let s=r.getContext("2d");if(s){let o=new Me;helpersLib.ArrayHelper.createIntegerArray(t).forEach(l=>{let p=`rgba(255, 255, 255, ${o.multiplierFunction(l/t)})`;s.fillStyle=p,s.fillRect(0,l,1,1);});let h=R__namespace.Texture.from(r);i=b.insertAsset(h),n.ƀcr.set(e,i);}else throw new Error("Canvas context is null")}return i}};var Zr=15,Fe=class extends c{static{a(this,"ScrollAreaUI");}ƀin;ƀbj;get contentAreaSize(){return this.ƀbj}get contentSize(){return this.ƀin.contentSize}constructor(t,e={}){super();let i={padding:Zr,smallContentAlign:"start",...e};if(i.padding<0)throw new Error("The padding of the scroll mask cannot be lower than '0'");if(i.padding>t.y*.5)throw new Error("The padding of the scroll mask cannot be higher than half of the size of the area");let r=new c().displayParent(this).attach(this);new tt(r,t,i.padding).attach(this);let s=new c().displayParent(r).attach(this);this.ƀin=new ae(s,t.y,i.padding,i.smallContentAlign),this.ƀbj=new helpersLib.Vector(t.x,this.ƀin.scrollHeight),new It(t).displayParent(r).attach(this).onWheel.subscribe(h=>this.ƀin.onWheel(h)).attach(this),d.afterSceneUpdateAction.subscribe(h=>this.ƀin.update(h.delta)).attach(this),this.addChildTo=s;}scrollToTop(t){this.ƀin.scrollToTop(),t?.instant&&this.ƀin.jumpToTarget();}scrollToBottom(t){this.ƀin.scrollToBottom(),t?.instant&&this.ƀin.jumpToTarget();}};function Kr(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(Kr,"_ts_decorate");function pi(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}a(pi,"_ts_metadata");exports.KeyboardService=class At{static{a(this,"KeyboardService");}ƀfn=new actionsLib.Action;keyPressed=this.ƀfn.notifier;ƀfo=new actionsLib.Action;keyReleased=this.ƀfo.notifier;ƀfu=new Set;ƀft=new Set;constructor(){window.addEventListener("keydown",t=>{this.ƀfu.add(t.key),this.ƀft.add(t.key),!t.repeat&&this.ƀfn.trigger(t.key);}),window.addEventListener("keyup",t=>{this.ƀfu.delete(t.key),this.ƀfo.trigger(t.key);}),window.addEventListener("blur",()=>{this.ƀfu.clear();}),d.afterSceneUpdateAction.subscribe(()=>{this.ƀft.clear();}).attachToRoot();}isKeyDown(t){return this.ƀfu.has(t)}isKeyJustPressed(t){return this.ƀft.has(t)}};exports.KeyboardService=Kr([S(),pi("design:type",Function),pi("design:paramtypes",[])],exports.KeyboardService);function Qr(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(Qr,"_ts_decorate");function di(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}a(di,"_ts_metadata");exports.MouseTargetFocusService=class Mt{static{a(this,"MouseTargetFocusService");}ƀgg;ƀgs=new actionsLib.Action;onTargetFocus=this.ƀgs.notifier;get focusedInLastFrame(){return this.ƀdd}get lastFocusedPosition(){return this.ƀfq}ƀgh;ƀhc;ƀju=0;ƀjw=false;ƀdd=false;ƀfq=void 0;constructor(t){this.ƀgg=t,d.beforeSceneUpdateAction.subscribe(e=>this.ƀjy(e.delta)).attachToRoot();}ƀjy(t){if(this.ƀgh){let e=this.ƀec(this.ƀgg.getStagePosition(),this.ƀgh);this.ƀhc===void 0?this.ƀhc=e:this.ƀau(e,t);}this.ƀgh=this.ƀgg.getStagePosition();}ƀau(t,e){this.ƀhc-t>10?(this.ƀju=Math.max(250,this.ƀju),this.ƀjw=true):this.ƀju>1e3&&(this.ƀjw=true);let i=this.ƀju>=300&&this.ƀjw;this.ƀfl(i,t,e);}ƀfl(t,e,i){(t||e>this.ƀhc)&&(this.ƀhc=e),t?(this.ƀjw=false,this.ƀju=0,this.ƀdd=true,this.ƀfq=this.ƀgg.getStagePosition(),this.ƀgs.trigger(this.ƀfq)):(this.ƀju+=i,this.ƀdd=false);}ƀec(t,e){let i=helpersLib.Vector.fromTo(t,e);return Math.abs(i.x)+Math.abs(i.y)}};exports.MouseTargetFocusService=Qr([S(),di("design:type",Function),di("design:paramtypes",[typeof MouseService>"u"?Object:MouseService])],exports.MouseTargetFocusService);var he=class extends actionsLib.Attachable{static{a(this,"FadeInStateAnimation");}ƀn;ƀgy;ƀi={value:0};ƀjf;ƀht;ƀm=1;get currentState(){return {value:this.ƀi.value,state:this.ƀjf,queuedState:this.ƀht,animationState:this.ƀm}}constructor(t){super(),this.ƀgy={duration:500,animation:x.lineer,...t},this.ƀi.value=0,this.ƀn=new L(this.ƀi,"value",{duration:this.ƀgy.duration,animation:this.ƀgy.animation,reAnimateHandling:H.CompletePrevious,completionHandling:$.StayInCurrentState}),this.ƀn.value.subscribe(()=>{this.ƀi.value!==1&&this.ƀi.value!==0&&this.ƀgt.trigger(this.ƀi.value);}).attach(this);}setState(t,e){if(e?.instant){this.ƀn.completeAnimation(),this.ƀm=t!==void 0?2:1,this.ƀht=void 0;let i=t!==void 0?1:0,r=this.ƀjf!==t;r&&(this.ƀjf=t,this.ƀgr.trigger(this.ƀjf)),(r||this.ƀi.value!==i)&&(this.ƀi.value=i,this.ƀgt.trigger(this.ƀi.value));}else switch(this.ƀm){case 1:t!==void 0&&(this.ƀm=3,this.ƀht=void 0,this.ƀjf=t,this.ƀgr.trigger(this.ƀjf),this.ƀn.animate({value:1}).tap(()=>this.ƀgn()).attach(this));break;case 2:t===void 0?(this.ƀm=4,this.ƀht=void 0,this.ƀn.animate({value:0}).tap(()=>this.ƀgn()).attach(this)):t!==this.ƀjf&&(this.ƀm=5,this.ƀht=t,this.ƀn.animate({value:0}).tap(()=>this.ƀgn()).attach(this));break;case 3:t===void 0?(this.ƀm=4,this.ƀht=void 0,this.ƀn.animate({value:0},{duration:this.ƀi.value*this.ƀgy.duration}).tap(()=>this.ƀgn()).attach(this)):t!==this.ƀjf&&(this.ƀi.value>0?(this.ƀm=5,this.ƀht=t,this.ƀn.animate({value:0},{duration:this.ƀi.value*this.ƀgy.duration}).tap(()=>this.ƀgn()).attach(this)):(this.ƀht=void 0,this.ƀjf=t,this.ƀgr.trigger(this.ƀjf)));break;case 4:t===this.ƀjf?(this.ƀm=3,this.ƀn.animate({value:1},{duration:(1-this.ƀi.value)*this.ƀgy.duration}).tap(()=>this.ƀgn()).attach(this)):t!==void 0&&(this.ƀm=5,this.ƀht=t);break;case 5:t===void 0?(this.ƀm=4,this.ƀht=void 0):t===this.ƀjf?(this.ƀm=3,this.ƀht=void 0,this.ƀn.animate({value:1},{duration:(1-this.ƀi.value)*this.ƀgy.duration}).tap(()=>this.ƀgn()).attach(this)):t!==this.ƀht&&(this.ƀht=t);break}}ƀgn(){switch(this.ƀm){case 3:this.ƀi.value===1&&(this.ƀm=2,this.ƀgt.trigger(this.ƀi.value));break;case 4:if(this.ƀht!==void 0)throw new Error("FadeInStateAnimation: Unexpected state, disappearing should not have a queued value");this.ƀi.value===0&&(this.ƀm=1,this.ƀjf=void 0,this.ƀgr.trigger(this.ƀjf),this.ƀgt.trigger(this.ƀi.value));break;case 5:if(this.ƀht===void 0)throw new Error("FadeInStateAnimation: Unexpected state, disappearToChange should always have a queued value");this.ƀi.value===0&&(this.ƀm=3,this.ƀjf=this.ƀht,this.ƀht=void 0,this.ƀgr.trigger(this.ƀjf),this.ƀgt.trigger(this.ƀi.value),this.ƀn.animate({value:1}).tap(()=>this.ƀgn()).attach(this));break;case 1:case 2:return}}ƀgr=new actionsLib.Action;ƀgt=new actionsLib.Action;onStateChange(t){return this.ƀgr.subscribe(e=>t(e)).attach(this),this}onValueChange(t){return this.ƀgt.subscribe(e=>t(e)).attach(this),this}};var mi=class extends c{static{a(this,"FadeInContent");}ƀbv;ƀjg;ƀbi;constructor(t,e){super(),this.ƀbv=t;let i={duration:200,animation:x.easeInOut,...e};this.alpha=0,this.ƀjg=new he(i).onStateChange(r=>{this.ƀbi?.destroy(),this.ƀbi=void 0,r!==void 0&&(this.ƀbi=new c().displayParent(this).attach(this),this.ƀbv({state:r,container:this.ƀbi}));}).onValueChange(r=>{this.alpha=r;}).attach(this);}setState(t,e){return this.ƀjg.setState(t,e),this}};var le=class extends actionsLib.Attachable{static{a(this,"StateAnimation");}ƀn;ƀgy;ƀi={value:0};ƀjf;ƀgj;ƀht;ƀm=1;get currentState(){return {value:this.ƀi.value,state:this.ƀjf,nextState:this.ƀgj,queuedState:this.ƀht,animationState:this.ƀm}}constructor(t){super(),this.ƀgy={duration:500,animation:x.lineer,...t},this.ƀn=new L(this.ƀi,"value",{duration:this.ƀgy.duration,animation:this.ƀgy.animation,reAnimateHandling:H.CompletePrevious,completionHandling:$.StayInCurrentState}),this.ƀn.value.subscribe(()=>{this.ƀi.value!==1&&this.ƀi.value!==0&&this.ƀgt.trigger(this.ƀi.value);}).attach(this);}setState(t,e){if(this.ƀjf===void 0)this.ƀjf=t,this.ƀgr.trigger({state:this.ƀjf,nextState:this.ƀgj}),this.ƀgt.trigger(this.ƀi.value);else if(e?.instant)this.ƀn.completeAnimation(),this.ƀm=1,this.ƀjf=t,this.ƀgj=void 0,this.ƀi.value=0,this.ƀgr.trigger({state:this.ƀjf,nextState:this.ƀgj}),this.ƀgt.trigger(this.ƀi.value);else switch(this.ƀm){case 1:t!==this.ƀjf&&(this.ƀm=2,this.ƀgj=t,this.ƀi.value=0,this.ƀgr.trigger({state:this.ƀjf,nextState:this.ƀgj}),this.ƀgt.trigger(this.ƀi.value),this.ƀn.animate({value:1}).tap(()=>this.ƀgn()).attach(this));break;case 2:t!==this.ƀgj&&(t===this.ƀjf?(this.ƀm=3,this.ƀn.animate({value:0},{duration:this.ƀi.value*this.ƀgy.duration}).tap(()=>this.ƀgn()).attach(this)):this.ƀht=t);break;case 3:t!==this.ƀjf&&(t===this.ƀgj?(this.ƀm=2,this.ƀn.animate({value:1},{duration:(1-this.ƀi.value)*this.ƀgy.duration}).tap(()=>this.ƀgn()).attach(this)):this.ƀht=t);break}}ƀgn(){switch(this.ƀm){case 2:this.ƀi.value===1&&(this.ƀi.value=0,this.ƀht!==void 0?(this.ƀm=2,this.ƀjf=this.ƀgj,this.ƀgj=this.ƀht,this.ƀht=void 0,this.ƀgr.trigger({state:this.ƀjf,nextState:this.ƀgj}),this.ƀn.animate({value:1}).tap(()=>this.ƀgn()).attach(this)):(this.ƀm=1,this.ƀjf=this.ƀgj,this.ƀgj=void 0,this.ƀgr.trigger({state:this.ƀjf,nextState:this.ƀgj})),this.ƀgt.trigger(this.ƀi.value));break;case 3:if(this.ƀjf===void 0)throw new Error("StateAnimation: state must be defined when reverting!");this.ƀi.value===0&&(this.ƀht!==void 0?(this.ƀm=2,this.ƀgj=this.ƀht,this.ƀht=void 0,this.ƀi.value=0,this.ƀgr.trigger({state:this.ƀjf,nextState:this.ƀgj}),this.ƀn.animate({value:1}).tap(()=>this.ƀgn()).attach(this)):(this.ƀm=1,this.ƀgj=void 0,this.ƀi.value=0,this.ƀgr.trigger({state:this.ƀjf,nextState:this.ƀgj})),this.ƀgt.trigger(this.ƀi.value));break;}}ƀgr=new actionsLib.Action;ƀgt=new actionsLib.Action;onStateChange(t){return this.ƀgr.subscribe(e=>t(e.state,e.nextState)).attach(this),this}onValueChange(t){return this.ƀgt.subscribe(e=>t(e)).attach(this),this}};var wi=(function(n){return n[n.Appear=1]="Appear",n[n.Disappear=2]="Disappear",n})({});var ce=class extends actionsLib.Attachable{static{a(this,"SlideStateAnimation");}ƀjg;ƀgy;ƀfe;ƀgi;ƀm=1;constructor(t){super(),this.ƀgy={duration:500,animation:x.easeInOutCubic,...t},this.ƀjg=new le({duration:this.ƀgy.duration,animation:this.ƀgy.animation}).onStateChange((e,i)=>this.ƀeo(e,i)).onValueChange(e=>this.ƀep(e)).attach(this);}setIndex(t,e){if(!helpersLib.Comparator.isInteger(t))throw new Error("SlideStateAnimation: index must be an integer!");this.ƀfe===void 0?(this.ƀfe=t,this.ƀgr.trigger({state:1,index:t}),this.ƀjg.setState(t,e)):this.ƀfe!==t?this.ƀgi!==t?this.ƀm===1?(this.ƀm=t>this.ƀfe?2:3,this.ƀgi=t,this.ƀgr.trigger({state:1,index:this.ƀgi}),this.ƀjg.setState(t,e)):this.ƀjg.setState(t,e):this.ƀm===4&&this.ƀgi===t&&(this.ƀm=t>this.ƀfe?2:3,this.ƀjg.setState(t,e)):(this.ƀm===2||this.ƀm===3)&&(this.ƀm=4,this.ƀjg.setState(t,e));}ƀeo(t,e){switch(this.ƀfe!==void 0&&this.ƀfe!==t&&this.ƀfe!==e&&this.ƀgr.trigger({state:2,index:this.ƀfe}),this.ƀgi!==void 0&&this.ƀgi!==t&&this.ƀgi!==e&&this.ƀgr.trigger({state:2,index:this.ƀgi}),e!==void 0&&e!==this.ƀfe&&e!==this.ƀgi&&this.ƀgr.trigger({state:1,index:e}),this.ƀm){case 2:case 3:e===void 0?(this.ƀm=1,this.ƀfe=this.ƀgi,this.ƀgi=void 0):this.ƀfe!==t&&this.ƀem(t,e);break;case 4:e===void 0?(this.ƀm=1,this.ƀgi=void 0):this.ƀfe!==e&&this.ƀem(t,e);break}}ƀep(t){let e=1;(this.ƀm===3||this.ƀm===4&&this.ƀfe!==void 0&&this.ƀgi!==void 0&&this.ƀfe>this.ƀgi)&&(e=-1),(this.ƀm===1||t!==0)&&this.ƀgt.trigger({value:helpersLib.NumberHelper.ensurePositiveZero(-e*t),index:this.ƀfe}),this.ƀgi!==void 0&&this.ƀgt.trigger({value:helpersLib.NumberHelper.ensurePositiveZero(e*(1-t)),index:this.ƀgi});}ƀem(t,e){this.ƀfe=t,this.ƀgi=e,this.ƀgt.trigger({value:0,index:this.ƀfe}),this.ƀm=this.ƀfe<this.ƀgi?2:3;}ƀgr=new actionsLib.Action;ƀgt=new actionsLib.Action;onStateChange(t){return this.ƀgr.subscribe(e=>t(e.state,e.index)).attach(this),this}onValueChange(t){return this.ƀgt.subscribe(e=>t(e.value,e.index)).attach(this),this}};var De=(function(n){return n[n.Horizontal=1]="Horizontal",n[n.Vertical=2]="Vertical",n})({}),Le=class extends c{static{a(this,"SlideInContentByIndex");}ƀbv;ƀgy;ƀcm="x";ƀjg;ƀbk=new Map;constructor(t,e){super(),this.ƀbv=t,this.ƀgy={duration:300,animation:x.easeInOutCubic,size:new helpersLib.Vector(500,500),margin:20,direction:1,...e};let i=this.ƀgy.direction===1?new helpersLib.Vector(this.ƀgy.size.x+this.ƀgy.margin*2,this.ƀgy.size.y):new helpersLib.Vector(this.ƀgy.size.x,this.ƀgy.size.y+this.ƀgy.margin*2),r=new c().setPosition(this.ƀgy.direction===1?new helpersLib.Vector(-this.ƀgy.margin,0):new helpersLib.Vector(0,-this.ƀgy.margin),{round:false}).displayParent(this).attach(this);this.ƀca(i,this.ƀgy.margin,this.ƀgy.direction,r),this.ƀcm=this.ƀgy.direction===1?"x":"y",this.ƀjg=new ce({duration:this.ƀgy.duration,animation:this.ƀgy.animation}).onStateChange((s,o)=>{if(s===wi.Appear){let h=new c().displayParent(this).attach(this);this.ƀbk.set(o,h),this.ƀbv({index:o,container:h});}else {let h=this.ƀbk.get(o);h&&(h.destroy(),this.ƀbk.delete(o));}}).onValueChange((s,o)=>{let h=this.ƀbk.get(o);if(h){let l={x:0,y:0};l[this.ƀcm]=i[this.ƀcm]*s+this.ƀgy.margin,h.setPosition(helpersLib.Vector.fromVec2(l),{round:false});}}).attach(this),this.addChildTo=r;}setIndex(t,e){return this.ƀjg.setIndex(t,e),this}ƀca(t,e,i,r){new tt(r,new helpersLib.Vector(t.x,t.y),e,i).attach(this);}},Si=class extends Le{static{a(this,"SlideInContent");}itemToIndex=new Map;indexToItem=new Map;constructor(t,e,i){super(r=>{let s=this.indexToItem.get(r.index);if(s)e({index:r.index,item:s,container:r.container});else throw new Error(`SlideInContent: The item with index '${r.index}' is not part of the items list`)},i),t.forEach((r,s)=>{this.itemToIndex.set(r,s),this.indexToItem.set(s,r);});}setItem(t,e){let i=this.itemToIndex.get(t);if(i!==void 0)this.setIndex(i,e);else throw new Error(`SlideInContent: The item '${t}' is not part of the items list`);return this}};var it=class{static{a(this,"VectorSet");}ƀkc=new Map;add(t){let e=this.ƀkc.get(t.x);e||(e=new Set,this.ƀkc.set(t.x,e)),e.add(t.y);}has(t){let e=this.ƀkc.get(t.x);return e?e.has(t.y):false}delete(t){let e=this.ƀkc.get(t.x);return e?e.delete(t.y):false}};var Ge=class{static{a(this,"DeltaTime");}static adjustMultiplier(t,e){return Math.pow(t,e)}};var N=class{static{a(this,"PositionToGridPositionConverter");}static areaToGridArea(t,e){return new helpersLib.Rectangle(this.positionToGridPosition(t.topLeft,e),this.positionToGridPosition(t.bottomRight,e))}static positionToGridPosition(t,e){return t.divideNumber(e).floor()}static gridPositionToPosition(t,e){return t.add(new helpersLib.Vector(.5,.5)).multiplyNumber(e)}};var Be=class{static{a(this,"ClosestAvailableSpaceHelper");}static findByConvertingGridSpace(t,e,i){let r=new helpersLib.Vector(Math.ceil(e.size.x/i)-1,Math.ceil(e.size.y/i)-1),s=N.areaToGridArea(e,i);if(this.ƀat(t,s))return helpersLib.Vector.zero;let o=t.movePositionInsideGrid(s.topLeft),h=helpersLib.Vector.fromTo(s.topLeft,o),l=this.find(t,o,r);if(l){let p=l.add(h),u=helpersLib.Vector.fromTo(s.topLeft.multiplyNumber(i),e.topLeft);return new helpersLib.Vector(p.x*i+((r.x+1)*i-e.size.x)/2-u.x,p.y*i+((r.y+1)*i-e.size.y)/2-u.y)}}static find(t,e,i){let r=new it,s=new helpersLib.Queue(e);for(;s.notEmpty;){let o=s.pop();r.add(o);let h=new helpersLib.Rectangle(o,o.add(i));if(this.ƀat(t,h))return helpersLib.Vector.fromTo(e,o);t.getNeighborPositions(o,helpersLib.GridNeighborType.Ortogonal).forEach(l=>{r.has(l)||s.add(l);});}}static ƀat(t,e){if(!t.isAreaWithinBounds(e))return false;for(let i=e.topLeft.y;i<=e.bottomRight.y;i++)for(let r=e.topLeft.x;r<=e.bottomRight.x;r++)if(!t.get(new helpersLib.Vector(r,i)))return false;return true}};var bi=class{static{a(this,"PathfinderNode");}position;distanceFromStart;distanceToEnd;parent;closed=false;constructor(t,e,i,r=void 0){this.position=t,this.distanceFromStart=e,this.distanceToEnd=i,this.parent=r;}get pathLength(){return this.distanceFromStart+this.distanceToEnd}isEqual(t){return helpersLib.Vector.isEqual(this.position,t)}createSolutionPath(t){let e=[this.position],i=this.parent;for(;i!==void 0;)e.push(i.position),i=i.parent;return e.reverse(),{directPathAvailable:t,path:e}}getDistance(t){return this.position.getDistance(t)}},fs=class{static{a(this,"PathfinderGrid");}ƀel;ƀjd;ƀgk;ƀgw=new helpersLib.BinaryHeap("min");ƀax=[];constructor(t,e){this.ƀel=t,this.ƀjd=e,this.ƀgk=new helpersLib.Grid({size:t.size,defaultValue:void 0});let i=new bi(this.ƀjd,0,Number.MAX_SAFE_INTEGER);this.ƀgw.add(i.pathLength,i);}get hasOpenNodes(){return this.ƀgw.size>0}getNeighbors(t,e){return this.ƀel.getNeighborPositions(t.position,e).filter(i=>this.ƀel.get(i)).map(i=>this.ƀgk.get(i)||this.ƀcb(i))}popLowestPathCostNode(){let t=this.ƀgw.pop();return this.ƀgw.delete(t),t.closed=true,this.ƀax.push(t),t}changeNodeCost(t,e,i,r){this.ƀgw.delete(t),t.distanceFromStart=e,t.distanceToEnd=t.getDistance(i),t.parent=r,this.ƀgw.add(t.pathLength,t);}getBestClosedNode(){return this.ƀax.reduce((t,e)=>t.distanceToEnd<e.distanceToEnd?t:e)}ƀcb(t){let e=new bi(t,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);return this.ƀgk.set(t,e),this.ƀgw.add(e.pathLength,e),e}},Dt=class{static{a(this,"PathFinder");}static findPath(t,e,i,r){let s=new fs(t,e);for(;s.hasOpenNodes;){let o=s.popLowestPathCostNode();if(o.isEqual(i))return o.createSolutionPath(true);let h=s.getNeighbors(o,r);for(let l of h)if(!l.closed){let p=o.distanceFromStart+o.getDistance(l.position);p<l.distanceFromStart&&s.changeNodeCost(l,p,i,o);}}return s.getBestClosedNode().createSolutionPath(false)}};var Ft=class{static{a(this,"VectorFieldPathFinder");}ƀjl;ƀw;ƀkk;ƀcn;ƀes;constructor(t,e){this.ƀjl=t,this.ƀw=e,this.ƀes=this.ƀdu(this.ƀw.size),this.ƀkk=new helpersLib.Grid({size:this.ƀw.size,defaultValue:this.ƀes}),this.ƀcn=new helpersLib.Grid({size:this.ƀw.size,defaultValue:void 0});let i=new it,r=new helpersLib.Queue;for(this.ƀdj(this.ƀw.cropAreaOutsideOfTheGrid(t)).forEach(o=>{this.ƀkk.set(o,0),r.add(o);});r.notEmpty;){let o=r.pop();if(!i.has(o)){i.add(o);let h=this.ƀkk.getOrFail(o);this.ƀdz(o,this.ƀw).forEach(l=>{if(!i.has(l.position)){let p=this.ƀkk.getOrFail(l.position),u=h+l.distance;this.ƀw.getOrFail(l.position)&&u<p&&(this.ƀkk.set(l.position,u),r.add(l.position));}});}}}getDirectionToTarget(t){if(!t.isInsideRectangle(this.ƀjl)){if(t=this.ƀkk.movePositionInsideGrid(t),this.ƀcn.has(t))return this.ƀcn.get(t);{let e=this.ƀdz(t,this.ƀw),i;return this.ƀkk.getOrFail(t)>=this.ƀes?e.some(s=>this.ƀw.get(s.position))&&(e.some(o=>!this.ƀw.get(o.position))?i=this.ƀdo(e):i=this.ƀdk(t,e)):i=this.ƀdk(t,e),this.ƀcn.set(t,i),i}}}ƀdo(t){let e=t.filter(i=>this.ƀw.get(i.position)).map(i=>i.direction.radian);return helpersLib.Radian.getAverage(...e)}ƀdk(t,e){let i=e.filter(r=>this.ƀkk.getOrFail(r.position)<this.ƀes).reduce((r,s)=>{let o=this.ƀkk.getOrFail(s.position)+s.distance;return o<r.bestWeight?(r.bestDirections=[s.direction],r.bestWeight=o):o===r.bestWeight&&r.bestDirections.push(s.direction),r},{bestDirections:[],bestWeight:this.ƀes}).bestDirections;return this.ƀee(i,t)}ƀee(t,e){if(t.length>0){let i=t.reduce((r,s)=>r.add(s),helpersLib.Vector.zero);if(i.isZero()||!this.ƀfj(e,i))return helpersLib.Random.pickRandomElement(t).radian;if(t.length>=1)return i.radian}}ƀfj(t,e){let i=t.add(this.ƀkd(e));return this.ƀw.isPointWithinBounds(i)&&this.ƀw.getOrFail(i)}ƀdz(t,e){return this.ƀkk.getNeighborDirections(t,helpersLib.GridNeighborType.All).map(i=>({position:t.add(i),direction:i,distance:i.x!==0&&i.y!==0?14:10}))}ƀdj(t){let e=[];for(let i=t.topLeft.y;i<=t.bottomRight.y;i++)for(let r=t.topLeft.x;r<=t.bottomRight.x;r++)e.push(new helpersLib.Vector(r,i));return e}ƀkd(t){let e=t.normalize().round();return new helpersLib.Vector(e.x,e.y)}ƀdu(t){return (t.x+t.y)*20}};function ws(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(ws,"_ts_decorate");function vi(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}a(vi,"_ts_metadata");var st=class extends F{static{a(this,"PhysicsWorldEntity");}mapSize;mapSizeCenter;modifyUpdateCycle;p2World;materials;materialDefinitions=new Map;physicsBodyGroupToP2Group=new Map;physicsBodyGroupToP2Mask=new Map;availabilityGridCache=new Map;vectorFieldCache=new Map;bodiesInContactWith=new Map;collisionReports=new Map;paused=new actionsLib.Variable(false);lastP2Time=new actionsLib.Variable(0);onPhysicsStep=new actionsLib.Action;constructor(t,e,i,r,s,o,h){super(),this.mapSize=t,this.mapSizeCenter=this.mapSize.multiplyNumber(.5),this.modifyUpdateCycle=e,this.p2World=i,this.materials=r,this.materialDefinitions=s,this.physicsBodyGroupToP2Group=o,this.physicsBodyGroupToP2Mask=h;}};st=ws([ft(),vi("design:type",Function),vi("design:paramtypes",[typeof Vector>"u"?Object:Vector,Boolean,typeof p2>"u"||typeof p2.World>"u"?Object:p2.World,typeof Map>"u"?Object:Map,typeof Map>"u"?Object:Map,typeof Map>"u"?Object:Map,typeof Map>"u"?Object:Map])],st);function bs(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(bs,"_ts_decorate");function Ei(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}a(Ei,"_ts_metadata");var pe=50,ue=class{static{a(this,"PathFinderService");}ƀhe;constructor(t){this.ƀhe=t;}findPathAStar(t,e,i,r,s){s||(s={}),s.neighborType===void 0&&(s.neighborType=helpersLib.GridNeighborType.Ortogonal),s.gridCellSize===void 0&&(s.gridCellSize=pe);let o=st.getInstanceByIDOrFail(t),h,l;helpersLib.Comparator.isNumber(i)?(l=T.getPhysicsInstanceOrFail(i).p2Body,h=E.arrayToVector(l.position)):h=i;let p=N.positionToGridPosition(e,s.gridCellSize),u=N.positionToGridPosition(h,s.gridCellSize),g=this.ƀhe.getAvilabilityGrid(o,s.gridCellSize,r);if(l){let M=E.aabbToBoundingBox(l.aabb),U=N.areaToGridArea(M,s.gridCellSize);g.setArea(U,true);}let y=Dt.findPath(g,p,u,s.neighborType);return y.path=y.path.map(M=>N.gridPositionToPosition(M,s.gridCellSize)),y}findPathDirection(t,e,i,r,s=pe){let o=st.getInstanceByIDOrFail(t),h;if(helpersLib.Comparator.isNumber(i)){let y=T.getPhysicsInstanceOrFail(i);h=E.aabbToBoundingBox(y.p2Body.aabb);}else h=new helpersLib.Rectangle(i,i);let l=N.areaToGridArea(h,s),p=JSON.stringify({targetGridArea:l,collidableWithGroup:r}),u=o.vectorFieldCache.get(p);if(!u){let y=this.ƀhe.getAvilabilityGrid(o,s,r);u=new Ft(l,y),o.vectorFieldCache.set(p,u);}let g=N.positionToGridPosition(e,s);return u.getDirectionToTarget(g)}};ue=bs([S(),Ei("design:type",Function),Ei("design:paramtypes",[typeof AvailabilityGridService>"u"?Object:AvailabilityGridService])],ue);function Cs(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(Cs,"_ts_decorate");var A=new D;exports.PhysicsGateway=class Lt{static{a(this,"PhysicsGateway");}createPhysicsWorld(t){return A.trigger("createPhysicsWorld",t)}getMapSize(t){return A.trigger("getMapSize",t)}setPaused(t,e){return A.trigger("setPaused",t,e)}hitTest(t,e){return A.trigger("hitTest",t,e)}findPath(t,e,i,r,s){return A.trigger("findPath",t,e,i,r,s)}findPathDirection(t,e,i,r){return A.trigger("findPathDirection",t,e,i,r)}applyImpulse(t,e,i,r){return A.trigger("applyImpulse",t,e,i,r)}createExplosion(t,e,i,r,s,o){return A.trigger("createExplosion",t,e,i,r,s,o)}createElipticExplosion(t,e,i,r,s,o,h){return A.trigger("createElipticExplosion",t,e,i,r,s,o,h)}printPathfindingTestGrid(t,e,i,r,s,o=pe){return A.trigger("printPathfindingTestGrid",t,e,i,r,s,o)}};exports.PhysicsGateway=Cs([S()],exports.PhysicsGateway);function Es(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(Es,"_ts_decorate");function Ri(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}a(Ri,"_ts_metadata");var Gt=class{static{a(this,"PhysicsController");}ƀhm;ƀhb;ƀjn;ƀcz;ƀcu;ƀet;ƀhl;ƀfc;constructor(t,e,i,r,s,o,h,l){this.ƀhm=t,this.ƀhb=e,this.ƀjn=i,this.ƀcz=r,this.ƀcu=s,this.ƀet=o,this.ƀhl=h,this.ƀfc=l;}createPhysicsWorld(t){return this.ƀhm.createPhysicsWorld(t)}getMapSize(t){return this.ƀhl.getMapSize(t)}setPaused(t,e){this.ƀhm.setPaused(t,e);}hitTest(t,e){let i=T.getPhysicsInstanceOrFail(t);return this.ƀet.hitTest(i.p2Body,e)}findPath(t,e,i,r,s){return this.ƀhb.findPathAStar(t,e,i,r,{neighborType:s})}findPathDirection(t,e,i,r){return this.ƀhb.findPathDirection(t,e,i,r)}applyImpulse(t,e,i,r){let s=T.getPhysicsInstanceOrFail(t);this.ƀfc.applyImpulse(s.p2Body,e,i,r);}createExplosion(t,e,i,r,s,o){return this.ƀcz.createExplosion(t,e,i,r,s,o)}createElipticExplosion(t,e,i,r,s,o,h){return this.ƀcu.createElipticExplosion(t,e,i,r,s,o,h)}printPathfindingTestGrid(t,e,i,r,s,o){this.ƀjn.printPathfindingTestGrid(t,e,i,r,s,o);}};Gt=Es([k({controllerLink:A}),Ri("design:type",Function),Ri("design:paramtypes",[typeof PhysicsWorldService>"u"?Object:PhysicsWorldService,typeof PathFinderService>"u"?Object:PathFinderService,typeof TestVisualsService>"u"?Object:TestVisualsService,typeof ExplosionService>"u"?Object:ExplosionService,typeof ElipticExplosionService>"u"?Object:ElipticExplosionService,typeof HitTestService>"u"?Object:HitTestService,typeof PhysicsQueryService>"u"?Object:PhysicsQueryService,typeof ImpactService>"u"?Object:ImpactService])],Gt);function Ts(n,t,e,i){var r=arguments.length,s=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,e,i);else for(var h=n.length-1;h>=0;h--)(o=n[h])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}a(Ts,"_ts_decorate");function Oi(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}a(Oi,"_ts_metadata");var Bt=class{static{a(this,"PhysicsInternalController");}ƀhm;ƀhk;ƀiv;ƀhl;ƀhf;constructor(t,e,i,r,s){this.ƀhm=t,this.ƀhk=e,this.ƀiv=i,this.ƀhl=r,this.ƀhf=s;}createBody(t,e,i,r,s){return this.ƀiv.createBody(t,e,i,r,s)}getMaterial(t,e){return this.ƀhk.getMaterial(t,e)}getMaterialDefinition(t,e){return this.ƀhk.getMaterialDefinition(t,e)}getGroupConstant(t,e){return this.ƀhf.getGroupConstant(t,e)}getMaskConstant(t,e){return this.ƀhf.getMaskConstant(t,e)}addBody(t,e,i,r,s){return this.ƀhm.addBody(t,e,i,r,s)}removeBody(t,e){this.ƀhm.removeBody(t,e);}subscribeToPhysicsStep(t,e){return this.ƀhl.subscribeToPhysicsStep(t,e)}};Bt=Ts([k({controllerLink:W}),Oi("design:type",Function),Oi("design:paramtypes",[typeof PhysicsWorldService>"u"?Object:PhysicsWorldService,typeof MaterialsService>"u"?Object:MaterialsService,typeof ShapeCreationService>"u"?Object:ShapeCreationService,typeof PhysicsQueryService>"u"?Object:PhysicsQueryService,typeof PhysicsBodyGroupService>"u"?Object:PhysicsBodyGroupService])],Bt);exports.AnimationFlicker=$e;exports.AnimationInterpolationFunctions=X;exports.Animations=x;exports.AnimationsCompletionHandlingType=$;exports.Animator=L;exports.BORDER_MATERIAL_NAME=lo;exports.BardLegendsHardReset=v;exports.BlendMode=kt;exports.Camera=Pt;exports.ClosestAvailableSpaceHelper=Be;exports.Container=c;exports.ContainerEventType=we;exports.ControllerDecorator=k;exports.ControllerLink=D;exports.Cursor=rr;exports.DEFAULT_RESOLUTION=w;exports.DeltaTime=Ge;exports.DisplayObjectArray=Re;exports.Entity=F;exports.EntityDecorator=ft;exports.FadeInContent=mi;exports.FadeInStateAnimation=he;exports.FocusingAnimation=dr;exports.Game=f;exports.Graphics=O;exports.ImmovablePhysicsEntity=ge;exports.Menu=dt;exports.MenuEntity=Ie;exports.MouseWheelListenerUI=It;exports.MovableEntity=ye;exports.MovablePhysicsEntity=xe;exports.PathFinder=Dt;exports.PhysicsEntity=T;exports.PhysicsShapeType=ao;exports.Placeholder=Ce;exports.PositionConversionHelper=xt;exports.ROTATIONAL_SPEED_LIMIT=oo;exports.ReAnimateHandlingType=H;exports.RichText=Ee;exports.SPEED_LIMIT=no;exports.Scene=ot;exports.SceneDecorator=Vi;exports.ScrollAreaUI=Fe;exports.ScrollDirection=De;exports.ScrollMaskUI=tt;exports.Service=m;exports.ServiceDecorator=S;exports.SingletonEntity=Y;exports.SlideInContent=Si;exports.SlideInContentByIndex=Le;exports.SlideStateAnimation=ce;exports.SlideStateAnimationState=wi;exports.Sprite=j;exports.StateAnimation=le;exports.Text=Rt;exports.UpdatableContainer=Te;exports.UpdateCycle=d;exports.VectorFieldPathFinder=Ft;exports.VectorSet=it;exports.View=mt;exports.ViewDecorator=me;