@sketch-hq/sketch-web-renderer 11.5.1 → 12.0.1

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 (274) hide show
  1. package/out/web-renderer/index-eb861739.js +4742 -0
  2. package/out/web-renderer/index-edb4bfa7.js +1 -0
  3. package/out/web-renderer/index.d.ts +3 -0
  4. package/out/web-renderer/index.d.ts.map +1 -0
  5. package/out/web-renderer/index.js +1 -0
  6. package/{dist → out/web-renderer}/ts/canvas-renderer/CanvasRenderer.d.ts +9 -6
  7. package/out/web-renderer/ts/canvas-renderer/CanvasRenderer.d.ts.map +1 -0
  8. package/out/web-renderer/ts/canvas-renderer/CanvasSettings.d.ts.map +1 -0
  9. package/out/web-renderer/ts/canvas-renderer/constants.d.ts.map +1 -0
  10. package/out/web-renderer/ts/canvas-renderer/index.d.ts.map +1 -0
  11. package/out/web-renderer/ts/canvas-renderer/react/CanvasRendererProvider.d.ts.map +1 -0
  12. package/out/web-renderer/ts/canvas-renderer/react/CanvasRendererReact.d.ts.map +1 -0
  13. package/out/web-renderer/ts/canvas-renderer/react/contexts.d.ts.map +1 -0
  14. package/{dist → out/web-renderer}/ts/canvas-renderer/react/hooks/actions.d.ts +2 -7
  15. package/out/web-renderer/ts/canvas-renderer/react/hooks/actions.d.ts.map +1 -0
  16. package/{dist/ts/prototype-renderer → out/web-renderer/ts/canvas-renderer}/react/hooks/index.d.ts.map +1 -1
  17. package/{dist → out/web-renderer}/ts/canvas-renderer/react/hooks/state.d.ts +5 -5
  18. package/out/web-renderer/ts/canvas-renderer/react/hooks/state.d.ts.map +1 -0
  19. package/{dist/ts/prototype-renderer → out/web-renderer/ts/canvas-renderer}/react/hooks/useEvent.d.ts.map +1 -1
  20. package/out/web-renderer/ts/canvas-renderer/react/hooks/useLogEvent.d.ts.map +1 -0
  21. package/out/web-renderer/ts/canvas-renderer/react/index.d.ts.map +1 -0
  22. package/out/web-renderer/ts/canvas-renderer/react/internal.d.ts.map +1 -0
  23. package/{dist/ts/prototype-renderer → out/web-renderer/ts/canvas-renderer}/react/reducer.d.ts.map +1 -1
  24. package/out/web-renderer/ts/canvas-renderer/react/types.d.ts.map +1 -0
  25. package/out/web-renderer/ts/fetch-worker/FetchWorker.d.ts.map +1 -0
  26. package/out/web-renderer/ts/fetch-worker/FetchWorkerMessageData.d.ts.map +1 -0
  27. package/out/web-renderer/ts/index.d.ts.map +1 -0
  28. package/out/web-renderer/ts/prototype-renderer/PresentationManifest.d.ts.map +1 -0
  29. package/{dist → out/web-renderer}/ts/prototype-renderer/PrototypeRenderer.d.ts +4 -3
  30. package/out/web-renderer/ts/prototype-renderer/PrototypeRenderer.d.ts.map +1 -0
  31. package/{dist → out/web-renderer}/ts/prototype-renderer/PrototypeSettings.d.ts +2 -1
  32. package/out/web-renderer/ts/prototype-renderer/PrototypeSettings.d.ts.map +1 -0
  33. package/out/web-renderer/ts/prototype-renderer/index.d.ts.map +1 -0
  34. package/out/web-renderer/ts/prototype-renderer/react/PrototypeRendererProvider.d.ts.map +1 -0
  35. package/out/web-renderer/ts/prototype-renderer/react/PrototypeRendererReact.d.ts.map +1 -0
  36. package/out/web-renderer/ts/prototype-renderer/react/PrototypeTestOverlay.d.ts.map +1 -0
  37. package/out/web-renderer/ts/prototype-renderer/react/contexts.d.ts.map +1 -0
  38. package/{dist → out/web-renderer}/ts/prototype-renderer/react/hooks/actions.d.ts +2 -2
  39. package/out/web-renderer/ts/prototype-renderer/react/hooks/actions.d.ts.map +1 -0
  40. package/out/web-renderer/ts/prototype-renderer/react/hooks/index.d.ts.map +1 -0
  41. package/out/web-renderer/ts/prototype-renderer/react/hooks/state.d.ts.map +1 -0
  42. package/out/web-renderer/ts/prototype-renderer/react/hooks/useEvent.d.ts.map +1 -0
  43. package/out/web-renderer/ts/prototype-renderer/react/hooks/useGetScreen.d.ts +2 -0
  44. package/out/web-renderer/ts/prototype-renderer/react/hooks/useGetScreen.d.ts.map +1 -0
  45. package/out/web-renderer/ts/prototype-renderer/react/index.d.ts.map +1 -0
  46. package/out/web-renderer/ts/prototype-renderer/react/internal.d.ts.map +1 -0
  47. package/out/web-renderer/ts/prototype-renderer/react/reducer.d.ts.map +1 -0
  48. package/out/web-renderer/ts/prototype-renderer/react/types.d.ts.map +1 -0
  49. package/out/web-renderer/ts/types/CSSCursor.d.ts.map +1 -0
  50. package/out/web-renderer/ts/types/Color.d.ts.map +1 -0
  51. package/out/web-renderer/ts/types/DeviceInfo.d.ts.map +1 -0
  52. package/out/web-renderer/ts/types/Error.d.ts.map +1 -0
  53. package/{dist → out/web-renderer}/ts/types/Events.d.ts +1 -1
  54. package/out/web-renderer/ts/types/Events.d.ts.map +1 -0
  55. package/out/web-renderer/ts/types/Exporter.d.ts +6 -0
  56. package/out/web-renderer/ts/types/Exporter.d.ts.map +1 -0
  57. package/out/web-renderer/ts/types/Metric.d.ts.map +1 -0
  58. package/out/web-renderer/ts/types/Mode.d.ts.map +1 -0
  59. package/out/web-renderer/ts/types/PointerInfo.d.ts.map +1 -0
  60. package/out/web-renderer/ts/types/PresentationManifest.d.ts +55 -0
  61. package/out/web-renderer/ts/types/PresentationManifest.d.ts.map +1 -0
  62. package/out/web-renderer/ts/types/PrototypeResizeMode.d.ts.map +1 -0
  63. package/out/web-renderer/ts/types/PrototypeState.d.ts.map +1 -0
  64. package/out/web-renderer/ts/types/Rect.d.ts.map +1 -0
  65. package/out/web-renderer/ts/types/Status.d.ts.map +1 -0
  66. package/{dist → out/web-renderer}/ts/types/index.d.ts +1 -0
  67. package/out/web-renderer/ts/types/index.d.ts.map +1 -0
  68. package/{dist → out/web-renderer}/ts/types/wasm/Emscripten.d.ts +7 -6
  69. package/out/web-renderer/ts/types/wasm/Emscripten.d.ts.map +1 -0
  70. package/{dist → out/web-renderer}/ts/types/wasm/JSBridge.d.ts +2 -3
  71. package/out/web-renderer/ts/types/wasm/JSBridge.d.ts.map +1 -0
  72. package/out/web-renderer/ts/types/wasm/index.d.ts +3 -0
  73. package/out/web-renderer/ts/types/wasm/index.d.ts.map +1 -0
  74. package/out/web-renderer/ts/utils/CanvasManager.d.ts.map +1 -0
  75. package/out/web-renderer/ts/utils/EventEmitter/EventEmitter.d.ts.map +1 -0
  76. package/out/web-renderer/ts/utils/EventEmitter/index.d.ts.map +1 -0
  77. package/out/web-renderer/ts/utils/GestureManager/GestureManager.d.ts.map +1 -0
  78. package/out/web-renderer/ts/utils/GestureManager/index.d.ts.map +1 -0
  79. package/out/web-renderer/ts/utils/KeyboardManager/KeyboardManager.d.ts.map +1 -0
  80. package/out/web-renderer/ts/utils/KeyboardManager/index.d.ts.map +1 -0
  81. package/out/web-renderer/ts/utils/ListenersCollector/ListenersCollector.d.ts.map +1 -0
  82. package/out/web-renderer/ts/utils/ListenersCollector/index.d.ts.map +1 -0
  83. package/out/web-renderer/ts/utils/Logger.d.ts.map +1 -0
  84. package/out/web-renderer/ts/utils/Performance.d.ts.map +1 -0
  85. package/{dist → out/web-renderer}/ts/utils/WasmModule.d.ts +10 -25
  86. package/out/web-renderer/ts/utils/WasmModule.d.ts.map +1 -0
  87. package/out/web-renderer/ts/utils/featureFlags.d.ts.map +1 -0
  88. package/out/web-renderer/ts/utils/hooks.d.ts.map +1 -0
  89. package/out/web-renderer/ts/utils/index.d.ts.map +1 -0
  90. package/out/web-renderer/ts/utils/loadImage.d.ts.map +1 -0
  91. package/{dist → out/web-renderer}/ts/utils/misc.d.ts +2 -3
  92. package/out/web-renderer/ts/utils/misc.d.ts.map +1 -0
  93. package/out/web-renderer/ts/utils/testUtils.d.ts.map +1 -0
  94. package/out/web-renderer/ts/utils/userAgent.d.ts.map +1 -0
  95. package/out/web-renderer/wasm/Debug/web-renderer-debug.js +7014 -0
  96. package/{dist/web-renderer-debug-fe1a9e8e.js → out/web-renderer/wasm/Debug/web-renderer-debug.mjs} +221 -36
  97. package/{dist → out/web-renderer/wasm/Debug}/web-renderer-debug.wasm +0 -0
  98. package/{dist/ts/types/wasm/Marina/Enums.d.ts → out/web-renderer/wasm/Debug/web-renderer-enums.d.ts} +84 -74
  99. package/out/web-renderer/wasm/Debug/web-renderer-enums.d.ts.map +1 -0
  100. package/out/web-renderer/wasm/Debug/web-renderer-enums.ts +152 -0
  101. package/out/web-renderer/wasm/Debug/web-renderer.d.ts +748 -0
  102. package/out/web-renderer/wasm/Release/web-renderer-release.js +19 -0
  103. package/out/web-renderer/wasm/Release/web-renderer-release.mjs +16 -0
  104. package/{dist → out/web-renderer/wasm/Release}/web-renderer-release.wasm +0 -0
  105. package/out/web-renderer/wasm.exports.d.ts +15 -0
  106. package/out/web-renderer/wasm.exports.d.ts.map +1 -0
  107. package/out/web-renderer/web-renderer-debug-35622728.js +1 -0
  108. package/out/web-renderer/web-renderer-debug-bbc5d18c.js +5866 -0
  109. package/out/web-renderer/web-renderer-release-60255953.js +4320 -0
  110. package/out/web-renderer/web-renderer-release-dfe0d59b.js +1 -0
  111. package/package.json +13 -7
  112. package/dist/index.d.ts +0 -2
  113. package/dist/index.d.ts.map +0 -1
  114. package/dist/index.js +0 -1
  115. package/dist/ts/canvas-renderer/CanvasRenderer.d.ts.map +0 -1
  116. package/dist/ts/canvas-renderer/CanvasSettings.d.ts.map +0 -1
  117. package/dist/ts/canvas-renderer/constants.d.ts.map +0 -1
  118. package/dist/ts/canvas-renderer/index.d.ts.map +0 -1
  119. package/dist/ts/canvas-renderer/react/CanvasRendererProvider.d.ts.map +0 -1
  120. package/dist/ts/canvas-renderer/react/CanvasRendererReact.d.ts.map +0 -1
  121. package/dist/ts/canvas-renderer/react/contexts.d.ts.map +0 -1
  122. package/dist/ts/canvas-renderer/react/hooks/actions.d.ts.map +0 -1
  123. package/dist/ts/canvas-renderer/react/hooks/index.d.ts.map +0 -1
  124. package/dist/ts/canvas-renderer/react/hooks/state.d.ts.map +0 -1
  125. package/dist/ts/canvas-renderer/react/hooks/useEvent.d.ts.map +0 -1
  126. package/dist/ts/canvas-renderer/react/hooks/useLogEvent.d.ts.map +0 -1
  127. package/dist/ts/canvas-renderer/react/index.d.ts.map +0 -1
  128. package/dist/ts/canvas-renderer/react/internal.d.ts.map +0 -1
  129. package/dist/ts/canvas-renderer/react/reducer.d.ts.map +0 -1
  130. package/dist/ts/canvas-renderer/react/types.d.ts.map +0 -1
  131. package/dist/ts/fetch-worker/FetchWorker.d.ts.map +0 -1
  132. package/dist/ts/fetch-worker/FetchWorkerMessageData.d.ts.map +0 -1
  133. package/dist/ts/index.d.ts.map +0 -1
  134. package/dist/ts/prototype-renderer/PrototypeRenderer.d.ts.map +0 -1
  135. package/dist/ts/prototype-renderer/PrototypeSettings.d.ts.map +0 -1
  136. package/dist/ts/prototype-renderer/index.d.ts.map +0 -1
  137. package/dist/ts/prototype-renderer/react/PrototypeRendererProvider.d.ts.map +0 -1
  138. package/dist/ts/prototype-renderer/react/PrototypeRendererReact.d.ts.map +0 -1
  139. package/dist/ts/prototype-renderer/react/PrototypeTestOverlay.d.ts.map +0 -1
  140. package/dist/ts/prototype-renderer/react/contexts.d.ts.map +0 -1
  141. package/dist/ts/prototype-renderer/react/hooks/actions.d.ts.map +0 -1
  142. package/dist/ts/prototype-renderer/react/hooks/state.d.ts.map +0 -1
  143. package/dist/ts/prototype-renderer/react/hooks/useGetScreen.d.ts +0 -2
  144. package/dist/ts/prototype-renderer/react/hooks/useGetScreen.d.ts.map +0 -1
  145. package/dist/ts/prototype-renderer/react/index.d.ts.map +0 -1
  146. package/dist/ts/prototype-renderer/react/internal.d.ts.map +0 -1
  147. package/dist/ts/prototype-renderer/react/types.d.ts.map +0 -1
  148. package/dist/ts/types/CSSCursor.d.ts.map +0 -1
  149. package/dist/ts/types/Color.d.ts.map +0 -1
  150. package/dist/ts/types/DeviceInfo.d.ts.map +0 -1
  151. package/dist/ts/types/Error.d.ts.map +0 -1
  152. package/dist/ts/types/Events.d.ts.map +0 -1
  153. package/dist/ts/types/Exporter.d.ts +0 -13
  154. package/dist/ts/types/Exporter.d.ts.map +0 -1
  155. package/dist/ts/types/Metric.d.ts.map +0 -1
  156. package/dist/ts/types/Mode.d.ts.map +0 -1
  157. package/dist/ts/types/PointerInfo.d.ts.map +0 -1
  158. package/dist/ts/types/PresentationManifest.d.ts.map +0 -1
  159. package/dist/ts/types/PrototypeResizeMode.d.ts.map +0 -1
  160. package/dist/ts/types/PrototypeState.d.ts.map +0 -1
  161. package/dist/ts/types/Status.d.ts.map +0 -1
  162. package/dist/ts/types/index.d.ts.map +0 -1
  163. package/dist/ts/types/wasm/CanvasRendererWasm.d.ts +0 -41
  164. package/dist/ts/types/wasm/CanvasRendererWasm.d.ts.map +0 -1
  165. package/dist/ts/types/wasm/Emscripten.d.ts.map +0 -1
  166. package/dist/ts/types/wasm/JSBridge.d.ts.map +0 -1
  167. package/dist/ts/types/wasm/Marina/Artboard.d.ts +0 -30
  168. package/dist/ts/types/wasm/Marina/Artboard.d.ts.map +0 -1
  169. package/dist/ts/types/wasm/Marina/Enums.d.ts.map +0 -1
  170. package/dist/ts/types/wasm/Marina/LayerInfo.d.ts +0 -135
  171. package/dist/ts/types/wasm/Marina/LayerInfo.d.ts.map +0 -1
  172. package/dist/ts/types/wasm/Marina/Node.d.ts +0 -138
  173. package/dist/ts/types/wasm/Marina/Node.d.ts.map +0 -1
  174. package/dist/ts/types/wasm/Marina/PRFile.d.ts +0 -17
  175. package/dist/ts/types/wasm/Marina/PRFile.d.ts.map +0 -1
  176. package/dist/ts/types/wasm/Marina/index.d.ts +0 -7
  177. package/dist/ts/types/wasm/Marina/index.d.ts.map +0 -1
  178. package/dist/ts/types/wasm/Marina/primitives.d.ts +0 -16
  179. package/dist/ts/types/wasm/Marina/primitives.d.ts.map +0 -1
  180. package/dist/ts/types/wasm/PRUserEventsCollector.d.ts +0 -23
  181. package/dist/ts/types/wasm/PRUserEventsCollector.d.ts.map +0 -1
  182. package/dist/ts/types/wasm/PrototypeRendererWasm.d.ts +0 -59
  183. package/dist/ts/types/wasm/PrototypeRendererWasm.d.ts.map +0 -1
  184. package/dist/ts/types/wasm/PrototypeScreen.d.ts +0 -22
  185. package/dist/ts/types/wasm/PrototypeScreen.d.ts.map +0 -1
  186. package/dist/ts/types/wasm/Rect.d.ts.map +0 -1
  187. package/dist/ts/types/wasm/RenderTarget.d.ts +0 -8
  188. package/dist/ts/types/wasm/RenderTarget.d.ts.map +0 -1
  189. package/dist/ts/types/wasm/Vec2D.d.ts +0 -5
  190. package/dist/ts/types/wasm/Vec2D.d.ts.map +0 -1
  191. package/dist/ts/types/wasm/WasmModule.d.ts +0 -34
  192. package/dist/ts/types/wasm/WasmModule.d.ts.map +0 -1
  193. package/dist/ts/types/wasm/index.d.ts +0 -12
  194. package/dist/ts/types/wasm/index.d.ts.map +0 -1
  195. package/dist/ts/utils/CanvasManager.d.ts.map +0 -1
  196. package/dist/ts/utils/EventEmitter/EventEmitter.d.ts.map +0 -1
  197. package/dist/ts/utils/EventEmitter/index.d.ts.map +0 -1
  198. package/dist/ts/utils/GestureManager/GestureManager.d.ts.map +0 -1
  199. package/dist/ts/utils/GestureManager/index.d.ts.map +0 -1
  200. package/dist/ts/utils/KeyboardManager/KeyboardManager.d.ts.map +0 -1
  201. package/dist/ts/utils/KeyboardManager/index.d.ts.map +0 -1
  202. package/dist/ts/utils/ListenersCollector/ListenersCollector.d.ts.map +0 -1
  203. package/dist/ts/utils/ListenersCollector/index.d.ts.map +0 -1
  204. package/dist/ts/utils/Logger.d.ts.map +0 -1
  205. package/dist/ts/utils/Performance.d.ts.map +0 -1
  206. package/dist/ts/utils/WasmModule.d.ts.map +0 -1
  207. package/dist/ts/utils/featureFlags.d.ts.map +0 -1
  208. package/dist/ts/utils/hooks.d.ts.map +0 -1
  209. package/dist/ts/utils/index.d.ts.map +0 -1
  210. package/dist/ts/utils/loadImage.d.ts.map +0 -1
  211. package/dist/ts/utils/misc.d.ts.map +0 -1
  212. package/dist/ts/utils/testUtils.d.ts.map +0 -1
  213. package/dist/ts/utils/userAgent.d.ts.map +0 -1
  214. package/dist/web-renderer-debug-249bd4bc.js +0 -1
  215. package/dist/web-renderer-release-27f0fa14.js +0 -1
  216. package/dist/web-renderer-release-29e84732.js +0 -16
  217. /package/{dist → out/web-renderer}/fetch-worker.js +0 -0
  218. /package/{dist → out/web-renderer}/ts/canvas-renderer/CanvasSettings.d.ts +0 -0
  219. /package/{dist → out/web-renderer}/ts/canvas-renderer/constants.d.ts +0 -0
  220. /package/{dist → out/web-renderer}/ts/canvas-renderer/index.d.ts +0 -0
  221. /package/{dist → out/web-renderer}/ts/canvas-renderer/react/CanvasRendererProvider.d.ts +0 -0
  222. /package/{dist → out/web-renderer}/ts/canvas-renderer/react/CanvasRendererReact.d.ts +0 -0
  223. /package/{dist → out/web-renderer}/ts/canvas-renderer/react/contexts.d.ts +0 -0
  224. /package/{dist → out/web-renderer}/ts/canvas-renderer/react/hooks/index.d.ts +0 -0
  225. /package/{dist → out/web-renderer}/ts/canvas-renderer/react/hooks/useEvent.d.ts +0 -0
  226. /package/{dist → out/web-renderer}/ts/canvas-renderer/react/hooks/useLogEvent.d.ts +0 -0
  227. /package/{dist → out/web-renderer}/ts/canvas-renderer/react/index.d.ts +0 -0
  228. /package/{dist → out/web-renderer}/ts/canvas-renderer/react/internal.d.ts +0 -0
  229. /package/{dist → out/web-renderer}/ts/canvas-renderer/react/reducer.d.ts +0 -0
  230. /package/{dist → out/web-renderer}/ts/canvas-renderer/react/types.d.ts +0 -0
  231. /package/{dist → out/web-renderer}/ts/fetch-worker/FetchWorker.d.ts +0 -0
  232. /package/{dist → out/web-renderer}/ts/fetch-worker/FetchWorkerMessageData.d.ts +0 -0
  233. /package/{dist → out/web-renderer}/ts/index.d.ts +0 -0
  234. /package/{dist/ts/types → out/web-renderer/ts/prototype-renderer}/PresentationManifest.d.ts +0 -0
  235. /package/{dist → out/web-renderer}/ts/prototype-renderer/index.d.ts +0 -0
  236. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/PrototypeRendererProvider.d.ts +0 -0
  237. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/PrototypeRendererReact.d.ts +0 -0
  238. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/PrototypeTestOverlay.d.ts +0 -0
  239. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/contexts.d.ts +0 -0
  240. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/hooks/index.d.ts +0 -0
  241. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/hooks/state.d.ts +0 -0
  242. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/hooks/useEvent.d.ts +0 -0
  243. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/index.d.ts +0 -0
  244. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/internal.d.ts +0 -0
  245. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/reducer.d.ts +0 -0
  246. /package/{dist → out/web-renderer}/ts/prototype-renderer/react/types.d.ts +0 -0
  247. /package/{dist → out/web-renderer}/ts/types/CSSCursor.d.ts +0 -0
  248. /package/{dist → out/web-renderer}/ts/types/Color.d.ts +0 -0
  249. /package/{dist → out/web-renderer}/ts/types/DeviceInfo.d.ts +0 -0
  250. /package/{dist → out/web-renderer}/ts/types/Error.d.ts +0 -0
  251. /package/{dist → out/web-renderer}/ts/types/Metric.d.ts +0 -0
  252. /package/{dist → out/web-renderer}/ts/types/Mode.d.ts +0 -0
  253. /package/{dist → out/web-renderer}/ts/types/PointerInfo.d.ts +0 -0
  254. /package/{dist → out/web-renderer}/ts/types/PrototypeResizeMode.d.ts +0 -0
  255. /package/{dist → out/web-renderer}/ts/types/PrototypeState.d.ts +0 -0
  256. /package/{dist/ts/types/wasm → out/web-renderer/ts/types}/Rect.d.ts +0 -0
  257. /package/{dist → out/web-renderer}/ts/types/Status.d.ts +0 -0
  258. /package/{dist → out/web-renderer}/ts/utils/CanvasManager.d.ts +0 -0
  259. /package/{dist → out/web-renderer}/ts/utils/EventEmitter/EventEmitter.d.ts +0 -0
  260. /package/{dist → out/web-renderer}/ts/utils/EventEmitter/index.d.ts +0 -0
  261. /package/{dist → out/web-renderer}/ts/utils/GestureManager/GestureManager.d.ts +0 -0
  262. /package/{dist → out/web-renderer}/ts/utils/GestureManager/index.d.ts +0 -0
  263. /package/{dist → out/web-renderer}/ts/utils/KeyboardManager/KeyboardManager.d.ts +0 -0
  264. /package/{dist → out/web-renderer}/ts/utils/KeyboardManager/index.d.ts +0 -0
  265. /package/{dist → out/web-renderer}/ts/utils/ListenersCollector/ListenersCollector.d.ts +0 -0
  266. /package/{dist → out/web-renderer}/ts/utils/ListenersCollector/index.d.ts +0 -0
  267. /package/{dist → out/web-renderer}/ts/utils/Logger.d.ts +0 -0
  268. /package/{dist → out/web-renderer}/ts/utils/Performance.d.ts +0 -0
  269. /package/{dist → out/web-renderer}/ts/utils/featureFlags.d.ts +0 -0
  270. /package/{dist → out/web-renderer}/ts/utils/hooks.d.ts +0 -0
  271. /package/{dist → out/web-renderer}/ts/utils/index.d.ts +0 -0
  272. /package/{dist → out/web-renderer}/ts/utils/loadImage.d.ts +0 -0
  273. /package/{dist → out/web-renderer}/ts/utils/testUtils.d.ts +0 -0
  274. /package/{dist → out/web-renderer}/ts/utils/userAgent.d.ts +0 -0
@@ -0,0 +1 @@
1
+ import t,{useRef as e,useLayoutEffect as n,useCallback as r,createContext as o,useContext as i,useReducer as a,useMemo as s,useEffect as u,useState as c}from"react";function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e,n){return e=m(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(t,b()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,E(r.key),r)}}function v(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=L(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}function w(){w=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),s=new F(r||[]);return o(a,"_invoke",{value:R(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",g={};function m(){}function y(){}function b(){}var C={};c(C,a,(function(){return this}));var P=Object.getPrototypeOf,E=P&&P(P(I([])));E&&E!==n&&r.call(E,a)&&(C=E);var x=b.prototype=m.prototype=Object.create(C);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){function n(o,i,a,s){var u=d(t[o],t,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function R(e,n,r){var o=h;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=S(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?v:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=v,r.method="throw",r.arg=c.arg)}}}function S(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function W(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(W,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(M.prototype),c(M.prototype,s,(function(){return this})),e.AsyncIterator=M,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new M(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(x),c(x,u,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}function P(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||L(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function L(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function M(t){var e="function"==typeof Map?new Map:void 0;return M=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(b())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&C(o,n.prototype),o}(t,arguments,m(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),C(n,t)},M(t)}var R=function(t,e){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},R(t,e)};function S(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}R(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var W=function(){return W=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},W.apply(this,arguments)};function T(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function F(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function I(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function A(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}var k=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function G(t){return t.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}var D="undefined"==typeof window,U=function(){if(!D){var t=window.navigator,e=t.userAgent,n=t.platform,r=t.maxTouchPoints,o=/(iphone|ipod|ipad)/i.test(e),i="iPad"===n||"MacIntel"===n&&r>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||o||i,isSafari12:/Version\/12.+Safari/.test(e)}}}();function B(t,e,n){if(!n)return[e];var r,o=function(t){var e=t.createShader(35633),n=t.createShader(35632),r=t.createProgram();if(n&&e&&r){t.shaderSource(e,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),t.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),t.compileShader(e),t.compileShader(n),t.attachShader(r,e),t.attachShader(r,n),t.linkProgram(r),t.detachShader(r,e),t.detachShader(r,n),t.deleteShader(e),t.deleteShader(n),t.useProgram(r);var o=t.createBuffer();t.bindBuffer(34962,o),t.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);var i=t.getAttribLocation(r,"aPosition");t.vertexAttribPointer(i,3,5126,!1,0,0),t.enableVertexAttribArray(i),t.clearColor(1,1,1,1),t.clear(16384),t.viewport(0,0,1,1),t.drawArrays(4,0,3);var a=new Uint8Array(4);return t.readPixels(0,0,1,1,6408,5121,a),t.deleteProgram(r),t.deleteBuffer(o),a.join("")}}(t),i="801621810",a="8016218135",s="80162181161",u=(null==U?void 0:U.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",i,15],["a12x",i,15],["a12z",i,15],["a14",i,15],["m1",i,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",i,15],["a12",i,15],["a13",i,15],["a14",i,15]];return"80162181255"===o?r=u.filter((function(t){return P(t,3)[2]>=14})):(r=u.filter((function(t){return P(t,2)[1]===o}))).length||(r=u),r.map((function(t){var e=P(t,1)[0];return"apple ".concat(e," gpu")}))}var O=function(t){function e(t){var n;return f(this,e),n=h(this,e,[t]),Object.setPrototypeOf(d(n),(this instanceof e?this.constructor:void 0).prototype),n}return y(e,M(Error)),v(e)}(),z=[],Z=[];function _(t,e){if(t===e)return 0;var n=t;t.length>e.length&&(t=e,e=n);for(var r=t.length,o=e.length;r>0&&t.charCodeAt(~-r)===e.charCodeAt(~-o);)r--,o--;for(var i,a=0;a<r&&t.charCodeAt(a)===e.charCodeAt(a);)a++;if(o-=a,0===(r-=a))return o;for(var s,u,c=0,l=0,d=0;l<r;)Z[l]=t.charCodeAt(a+l),z[l]=++l;for(;d<o;)for(i=e.charCodeAt(a+d),s=d++,c=d,l=0;l<r;l++)u=i===Z[l]?s:s+1,s=z[l],c=z[l]=s>c?u>c?c+1:u:u>s?s+1:u;return c}function j(t){return null!=t}var N,H,V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.mobileTiers,n=void 0===e?[0,15,30,60]:e,r=t.desktopTiers,o=void 0===r?[0,15,30,60]:r,i=t.override,a=void 0===i?{}:i,s=t.glContext,u=t.failIfMajorPerformanceCaveat,c=void 0!==u&&u,l=t.benchmarksURL,d=void 0===l?"https://unpkg.com/detect-gpu@5.0.25/dist/benchmarks":l;return A(void 0,void 0,void 0,w().mark((function t(){var e,r,i,u,l,h,f,p,v,m,y,b,C,E,x,L,M,R,S,W,T,F,I,z;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e={},!D){t.next=3;break}return t.abrupt("return",{tier:0,type:"SSR"});case 3:if(r=a.isIpad,i=void 0===r?!!(null==U?void 0:U.isIpad):r,u=a.isMobile,l=void 0===u?!!(null==U?void 0:U.isMobile):u,h=a.screenSize,f=void 0===h?window.screen:h,p=a.loadBenchmarks,v=void 0===p?function(t){return A(void 0,void 0,void 0,w().mark((function e(){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(d,"/").concat(t)).then((function(t){return t.json()}));case 2:if(n=e.sent,!(parseInt(n.shift().split(".")[0],10)<4)){e.next=5;break}throw new O("Detect GPU benchmark data is out of date. Please update to version 4x");case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))}:p,m=a.renderer,y=function(t,e,n,r,o){return{device:o,fps:r,gpu:n,isMobile:l,tier:t,type:e}},C="",!m){t.next=11;break}m=G(m),b=[m],t.next=18;break;case 11:if(E=s||function(t){var e={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:arguments.length>1&&void 0!==arguments[1]&&arguments[1],powerPreference:"high-performance",stencil:!1};t&&delete e.powerPreference;var n=window.document.createElement("canvas"),r=n.getContext("webgl",e)||n.getContext("experimental-webgl",e);return null!=r?r:void 0}(null==U?void 0:U.isSafari12,c),E){t.next=14;break}return t.abrupt("return",y(0,"WEBGL_UNSUPPORTED"));case 14:if((x=E.getExtension("WEBGL_debug_renderer_info"))&&(m=E.getParameter(x.UNMASKED_RENDERER_WEBGL)),m){t.next=17;break}return t.abrupt("return",y(1,"FALLBACK"));case 17:C=m,m=G(m),b=function(t,e,n){return"apple gpu"===e?B(t,e,n):[e]}(E,m,l);case 18:return t.next=20,Promise.all(b.map((function(t){var n;return A(this,void 0,void 0,w().mark((function r(){var o,a,s,u,c,d,h,p,m,y,b,C,E,x,L,M,R,S,W,T,F,I,A,k,G,D,U,B;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=function(t){for(var e=0,n=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];e<n.length;e++){var r=n[e];if(t.includes(r))return r}}(t)){r.next=3;break}return r.abrupt("return");case 3:return a="".concat(l?"m":"d","-").concat(o).concat(i?"-ipad":"",".json"),s=e[a]=null!==(n=e[a])&&void 0!==n?n:v(a),r.prev=4,r.next=7,s;case 7:u=r.sent,r.next=15;break;case 10:if(r.prev=10,r.t0=r.catch(4),!(r.t0 instanceof O)){r.next=14;break}throw r.t0;case 14:return r.abrupt("return");case 15:if(c=function(t){var e,n=(t=t.replace(/\([^)]+\)/,"")).match(/\d+/)||t.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(e=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==e?e:""}(t),(d=u.filter((function(t){return P(t,2)[1]===c}))).length||(d=u.filter((function(e){return P(e,1)[0].includes(t)}))),0!==(h=d.length)){r.next=21;break}return r.abrupt("return");case 21:p=t.split(/[.,()\[\]/\s]/g).sort().filter((function(t,e,n){return 0===e||t!==n[e-1]})).join(" "),y=h>1?d.map((function(t){return[t,_(p,t[2])]})).sort((function(t,e){return P(t,2)[1]-P(e,2)[1]}))[0][0]:d[0],b=P(y,5),C=b[0],E=b[4],x=Number.MAX_VALUE,L=window,M=L.devicePixelRatio,R=f.width*M*f.height*M,S=g(E);try{for(S.s();!(W=S.n()).done;)T=W.value,F=P(T,2),I=F[0],A=F[1],k=I*A,(G=Math.abs(R-k))<x&&(x=G,m=T)}catch(t){S.e(t)}finally{S.f()}if(m){r.next=28;break}return r.abrupt("return");case 28:return D=P(m,4),U=D[2],B=D[3],r.abrupt("return",[x,U,C,B]);case 30:case"end":return r.stop()}}),r,null,[[4,10]])})))})));case 20:if(L=t.sent.filter(j).sort((function(t,e){var n=P(t,2),r=n[0],o=void 0===r?Number.MAX_VALUE:r,i=n[1],a=P(e,2),s=a[0],u=void 0===s?Number.MAX_VALUE:s,c=a[1];return o===u?i-c:o-u})),L.length){t.next=24;break}return M=k.find((function(t){return m.includes(t)})),t.abrupt("return",M?y(0,"BLOCKLISTED",M):y(1,"FALLBACK","".concat(m," (").concat(C,")")));case 24:if(R=P(L[0],4),S=R[1],W=R[2],T=R[3],-1!==S){t.next=27;break}return t.abrupt("return",y(0,"BLOCKLISTED",W,S,T));case 27:for(F=l?n:o,I=0,z=0;z<F.length;z++)S>=F[z]&&(I=z);return t.abrupt("return",y(I,"BENCHMARK",W,S,T));case 31:case"end":return t.stop()}}),t)})))},J=function(t){function e(n,r,o){var i=this.constructor,a=t.call(this,"(".concat(n,") ").concat(r))||this;return a.code=n,a.cause=o,a.name=e.name,Object.setPrototypeOf(a,i.prototype),a}return S(e,t),e}(Error);function K(t){return void 0!==t}!function(t){t.debug="debug",t.release="release"}(N||(N={})),function(t){t.Fit="Fit",t.FillWidth="FillWidth",t.ActualSize="ActualSize"}(H||(H={}));var Y=function(){function t(){this.listeners={}}return t.prototype.on=function(t,e){var n,r;this.listeners[t]=null!==(n=this.listeners[t])&&void 0!==n?n:new Set,null===(r=this.listeners[t])||void 0===r||r.add(e)},t.prototype.off=function(t,e){var n;null===(n=this.listeners[t])||void 0===n||n.delete(e)},t.prototype.forwardEvent=function(t,e){this.on(e,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.emit.apply(t,I([e],n,!1))}))},t.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.listeners[t];(null==r?void 0:r.size)&&r.forEach((function(t){Promise.resolve().then((function(){t.apply(void 0,e)}))}))},t.prototype.detachAllListeners=function(){this.listeners={}},t}(),X=function(){function t(t){void 0===t&&(t=!1),this.removeListenerCallbacks=[],this.disabled=t}return t.prototype.add=function(t,e,n,r){var o=this,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.disabled||n.apply(void 0,t)};t.addEventListener(e,i,r);var a=function(){t.removeEventListener(e,i,r)};return this.removeListenerCallbacks.push(a),a},t.prototype.dispose=function(){this.removeListenerCallbacks.forEach((function(t){return t()}))},t.prototype.setDisabled=function(t){this.disabled=t},t}(),q={delayedDraw:!0,offscreenCanvas:!1,useDirtyRectsRendering:!0,safariWebGL2:!1,pageBoundariesLimit:!1,canvasLayersEvents:!1},$=function(t){return parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(t)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||!1},Q=/(iPhone|Macintosh|iPad)(.*)(Version)\/(0|[1-9]\d*)\.(0|[1-9]\d*)\.?(0|[1-9]\d*)?/,tt=function(t){if(void 0===t&&(t=window.navigator.userAgent),t.includes("Chrome/")||t.includes("Chromium/")||t.includes("Opera/")||t.includes("Firefox/"))return null;var e=t.match(Q);if(!e)return null;var n=e[1];return"Macintosh"!==n&&"iPad"!==n&&"iPhone"!==n?null:{hardware:n,version:{major:parseInt(e[4])||0,minor:parseInt(e[5])||0,patch:parseInt(e[6])||0}}};function et(t,e){var n;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];clearTimeout(n),n=setTimeout((function(){t.apply(void 0,r)}),e)}return r.cancel=function(){n&&clearTimeout(n)},r}function nt(t){var e,n,r,o,i,a=null!==(n=null===(e=t.touches)||void 0===e?void 0:e[0])&&void 0!==n?n:null===(r=t.changedTouches)||void 0===r?void 0:r[0];return{x:null!==(o=null==a?void 0:a.clientX)&&void 0!==o?o:t.clientX,y:null!==(i=null==a?void 0:a.clientY)&&void 0!==i?i:t.clientY}}function rt(t,e,n){return Math.max(e,Math.min(n,t))}function ot(t){return Boolean(window.chrome)&&t.gpu&&/amd\sradeon\s(pro|rx)\s5\d\d\d/gi.test(t.gpu)||tt()&&!q.safariWebGL2?1:"undefined"!=typeof WebGL2RenderingContext?2:1}function it(t){if(!t)return[];for(var e=[],n=0;n<t.size();n++)e.push(t.get(n));return e}function at(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function st(t){var e=W({},t);return Object.keys(e).forEach((function(t){void 0===e[t]&&delete e[t]})),e}function ut(t){return at()?{onTouchEnd:t}:{onClick:t}}var ct=function(t){return 0===(null==t?void 0:t.$$.count.value)?null:t},lt=function(t){function e(e,n){void 0===n&&(n=!1);var r=t.call(this)||this;return r.state={pinchToZoomLastDistance:0,lastGestureScale:1,isCtrlPressed:!1},r.handleGestureStart=function(t){t.preventDefault(),r.state.lastGestureScale=t.scale},r.handleGestureChange=function(t){t.preventDefault();var e=t.scale/r.state.lastGestureScale;r.state.lastGestureScale=t.scale;var n=r.getCorrectPointerPosition(t);r.emitZoomEvent(e,n)},r.handleGestureEnd=function(t){t.preventDefault()},r.updateMousePosition=function(t){r.emit("pointermove",{type:"mouse",position:r.getCorrectPointerPosition(t),button:t.button,touchesCount:0})},r.updateGlobalMousePosition=function(t){r.emit("globalpointermove",{type:"mouse",position:r.getCorrectPointerPosition(t),button:t.button,touchesCount:0})},r.handleTouchStart=function(t){t.preventDefault(),r.handleTouchPinchToZoomStart(t),r.emit("pointerdown",{type:"touch",position:r.getCorrectPointerPosition(t),button:0,touchesCount:t.touches.length})},r.handleMouseDown=function(t){t.ctrlKey||(t.preventDefault(),r.emit("pointerdown",{type:"mouse",position:r.getCorrectPointerPosition(t),button:t.button,touchesCount:0}))},r.handleTouchMove=function(t){r.handleTouchPinchToZoomChange(t),r.emit("pointermove",{type:"touch",position:r.getCorrectPointerPosition(t),button:0,touchesCount:t.touches.length})},r.handleMouseMove=function(t){r.updateMousePosition(t)},r.handleGlobalTouchMove=function(t){r.emit("globalpointermove",{type:"touch",position:r.getCorrectPointerPosition(t),button:0,touchesCount:t.touches.length})},r.handleGlobalMouseMove=function(t){r.updateGlobalMousePosition(t)},r.handleTouchPinchToZoomStart=function(t){var e;!t.touches||(null===(e=t.touches)||void 0===e?void 0:e.length)<2||(r.state.pinchToZoomLastDistance=r.calculateDistanceBetweenTouches(t.touches[0],t.touches[1]))},r.handleTouchPinchToZoomChange=function(t){var e;if(t.touches&&!((null===(e=t.touches)||void 0===e?void 0:e.length)<2)){var n=r.calculateDistanceBetweenTouches(t.touches[0],t.touches[1]),o=r.getCorrectPointerPosition(t),i=1+.004*(n-r.state.pinchToZoomLastDistance);r.state.pinchToZoomLastDistance=n,r.emitZoomEvent(i,o)}},r.handleTouchEnd=function(t){var e=r.getCorrectPointerPosition(t);r.emit("pointerup",{position:e,type:"touch",button:0,touchesCount:t.touches.length})},r.handleMouseUp=function(t){r.emit("pointerup",{type:"mouse",position:r.getCorrectPointerPosition(t),button:t.button,touchesCount:0})},r.debouncedUpdateMousePosition=et(r.updateMousePosition,40),r.debouncedUpdateGlobalMousePosition=et(r.updateGlobalMousePosition,40),r.handleMouseWheel=function(t){t.preventDefault();var e=t.ctrlKey&&!r.state.isCtrlPressed,n=t.metaKey||e||r.state.isCtrlPressed;if(r.debouncedUpdateMousePosition(t),r.debouncedUpdateGlobalMousePosition(t),n){var o=e?-1:1,i=r.getCorrectPointerPosition(t),a=1+.005*t.deltaY*o;r.emitZoomEvent(a,i)}else r.emit("wheel",{x:-t.deltaX,y:-t.deltaY},{type:"mouse",position:r.getCorrectPointerPosition(t),button:t.button,touchesCount:0})},r.target=e,r.targetBounds=e.getBoundingClientRect(),r.listenersCollector=new X(n),r.addListeners(),r.targetResizeObserver=new ResizeObserver(r.updateTargetBounds.bind(r)),r.targetResizeObserver.observe(r.target),r}return S(e,t),e.prototype.updateTargetBounds=function(){this.targetBounds=this.target.getBoundingClientRect()},e.prototype.addListeners=function(){this.addTouchEventListeners(),this.addMouseEventListeners(),this.addKeyboardEventListeners(),this.addSafariGesturesEventListeners()},e.prototype.addKeyboardEventListeners=function(){var t=this;this.listenersCollector.add(document,"keydown",(function(e){"Control"===e.key&&(t.state.isCtrlPressed=!0)})),this.listenersCollector.add(document,"keyup",(function(e){"Control"===e.key&&(t.state.isCtrlPressed=!1)})),this.listenersCollector.add(document,"contextmenu",(function(e){e.ctrlKey&&(t.state.isCtrlPressed=!1)}))},e.prototype.addMouseEventListeners=function(){this.listenersCollector.add(this.target,"mousedown",this.handleMouseDown),this.listenersCollector.add(this.target,"mousemove",this.handleMouseMove),this.listenersCollector.add(document,"mousemove",this.handleGlobalMouseMove),this.listenersCollector.add(document,"mouseup",this.handleMouseUp),this.listenersCollector.add(this.target,"wheel",this.handleMouseWheel)},e.prototype.addTouchEventListeners=function(){this.listenersCollector.add(this.target,"touchstart",this.handleTouchStart),this.listenersCollector.add(document,"touchmove",this.handleGlobalTouchMove,{passive:!0,capture:!0}),this.listenersCollector.add(this.target,"touchmove",this.handleTouchMove,{passive:!0,capture:!0}),this.listenersCollector.add(document,"touchcancel",this.handleTouchEnd),this.listenersCollector.add(document,"touchend",this.handleTouchEnd)},e.prototype.addSafariGesturesEventListeners=function(){at()||(this.listenersCollector.add(this.target,"gesturestart",this.handleGestureStart,{capture:!0}),this.listenersCollector.add(this.target,"gesturechange",this.handleGestureChange,{capture:!0}),this.listenersCollector.add(this.target,"gestureend",this.handleGestureEnd,{capture:!0}))},e.prototype.clampPointerToTargetBounds=function(t){return{x:t.x-this.targetBounds.x,y:t.y-this.targetBounds.y}},e.prototype.getCorrectPointerPosition=function(t){var e,n={x:0,y:0};if((null===(e=t.touches)||void 0===e?void 0:e.length)>1){var r=t,o=r.touches[0],i=r.touches[1];n={x:(o.clientX+i.clientX)/2,y:(o.clientY+i.clientY)/2}}else n=nt(t);return this.clampPointerToTargetBounds(n)},e.prototype.calculateDistanceBetweenTouches=function(t,e){return Math.hypot(t.clientX-e.clientX,t.clientY-e.clientY)},e.prototype.emitZoomEvent=function(t,e){this.emit("pinchToZoom",t,e)},e.prototype.dispose=function(){this.listenersCollector.dispose(),this.targetResizeObserver.disconnect()},e.prototype.setDisable=function(t){this.listenersCollector.setDisabled(t)},e}(Y),dt=function(t){function e(e){var n=t.call(this)||this;return n.listenersCollector=new X,n.handleKeyUp=function(t){n.emit("keyUp",t.code)},n.target=e,n.addListeners(),n}return S(e,t),e.prototype.addListeners=function(){this.listenersCollector.add(this.target,"keyup",this.handleKeyUp)},e.prototype.dispose=function(){this.listenersCollector.dispose()},e}(Y),ht=function(){function t(t){this.label=t,this.startTime=performance.now(),this.startTimestamp=Date.now()}return t.prototype.measure=function(){return{duration:performance.now()-this.startTime,end:Date.now(),start:this.startTimestamp,id:this.label}},t.prototype.printMeasurement=function(){var t=this.measure().duration;if(t<1e3){var e=t.toFixed(2);return"[Performance] ".concat(this.label," -> ").concat(e," ms")}var n=(t/1e3).toFixed(2);return"[Performance] ".concat(this.label," -> ").concat(n," s")},t}();function ft(t){setTimeout((function(){t()}),0)}var pt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.logDebug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.emit.apply(this,I(["log","debug"],t,!1))},e.prototype.logWarning=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.emit.apply(this,I(["log","warn"],t,!1))},e.prototype.logError=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.emit.apply(this,I(["log","error"],t,!1))},e}(Y)),vt=function(t,o){var i=e(t);i.current=t;var a=e((function(){}));return n((function(){var t=et((function(){i.current()}),o);return a.current=t,function(){t.cancel()}}),[o]),r((function(){return a.current()}),[])},gt=function(t){function e(e){var n,r=this;return(r=t.call(this)||this).listenersCollector=new X,r.size={width:0,height:0},r.pixelRatio=1,r.maxPixelRatio=2,r.handleCanvasResizeObserver=function(t){r.resizeCanvas(t[0].contentRect)},r.resizeCanvas=function(t){var e=t.width,n=t.height;window.requestAnimationFrame((function(){r.setSize(e,n),r.emit("resize",e,n,r.getDevicePixelRatio())}))},r.getCanvasCenterPoint=function(){var t=r.getBoundingClientRect();return{x:t.width/2+t.x,y:t.height/2+t.y}},r.container=e.container,r.canvas=e.canvas,r.maxPixelRatio=null!==(n=e.maxPixelRatio)&&void 0!==n?n:r.maxPixelRatio,r.canvasResizeObserver=new ResizeObserver(r.handleCanvasResizeObserver),r.canvasResizeObserver.observe(r.container),r.listenersCollector.add(window,"orientationchange",r.handleDeviceOrientationChange),r.setSize(r.container.clientWidth,r.container.clientHeight),r}return S(e,t),e.prototype.setSize=function(t,e){this.pixelRatio=this.getDevicePixelRatio(),this.canvas.style.width="".concat(t,"px"),this.canvas.style.height="".concat(e,"px"),this.size.width=t*this.pixelRatio,this.size.height=e*this.pixelRatio,this.canvas.width=this.size.width,this.canvas.height=this.size.height},e.prototype.handleDeviceOrientationChange=function(){this.resizeCanvas({width:this.container.clientWidth,height:this.container.clientHeight})},e.prototype.getDevicePixelRatio=function(){return rt(window.devicePixelRatio,1,this.maxPixelRatio)},e.prototype.getBoundingClientRect=function(){return this.canvas.getBoundingClientRect()},e.prototype.dispose=function(){this.detachAllListeners(),this.canvasResizeObserver.disconnect(),this.listenersCollector.dispose()},e}(Y),mt=function(){function t(t){this.settings=t}return t.prototype.isReleaseMode=function(){return this.settings.mode===N.release},t.prototype.init=function(){return T(this,void 0,void 0,(function(){var t,e,n,r,o,i=this;return F(this,(function(a){switch(a.label){case 0:return[4,this.importModule()];case 1:t=a.sent(),e=t.default,a.label=2;case 2:return a.trys.push([2,4,,5]),n=this,[4,e({FeatureFlags:this.settings.featureFlags,currentWebGLVersion:this.settings.webglVersion,bridge:this.settings.jsBridge,locateFile:function(t){return i.settings.locateFile.replace("{file}",t)}})];case 3:return n.instance=a.sent(),[3,5];case 4:throw r=a.sent(),new J("WASM_ERROR","An error occurred while trying to create the wasm module.",r);case 5:return this.pointerTypeToWASMMap={unset:this.instance.PRUserPointerTypeEnum.Unset,mouse:this.instance.PRUserPointerTypeEnum.Mouse,touch:this.instance.PRUserPointerTypeEnum.Touch},this.prCursorTypeToCSSCursorMap=((o={})[this.instance.PRCursorTypeEnum.Auto.value]="auto",o[this.instance.PRCursorTypeEnum.Default.value]="default",o[this.instance.PRCursorTypeEnum.Pointer.value]="pointer",o[this.instance.PRCursorTypeEnum.Grab.value]="grab",o[this.instance.PRCursorTypeEnum.Grabbing.value]="grabbing",o),this.prototypeResizeModeToWASMMap={Fit:this.instance.PrototypeResizeModeWasmEnum.Fit,FillWidth:this.instance.PrototypeResizeModeWasmEnum.FillWidth,ActualSize:this.instance.PrototypeResizeModeWasmEnum.ActualSize},[2]}}))}))},t.prototype.makeWebGLContext=function(t,e){var n;void 0===e&&(e={});var r=W({antialias:!1,alpha:!1,stencil:!1,depth:!1,powerPreference:"high-performance",preserveDrawingBuffer:!1,desynchronized:!0},e),o=this.instance.GL.createContext(t,r);if(!o)throw new J("WEBGL_ERROR","Unable to create WebGL context. WebGL might be unsupported, disabled, or this device is not able to run WebGL correctly.");var i=null===(n=this.instance.GL.getContext(o))||void 0===n?void 0:n.GLctx;return i&&i.getExtension("WEBGL_debug_renderer_info"),o},t.prototype.createWebGLTextureFromImage=function(t,e){var n=this.instance.GL,r=n.getContext(e);if(!r)throw new Error("Unable to retrieve emscripten WebGL context from handle");var o=r.GLctx;if(!o)throw new Error("WebGL context is null");var i=o.createTexture();o.bindTexture(o.TEXTURE_2D,i),o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var a=n.getNewId(n.textures);return n.textures[a]=i,o.texImage2D(o.TEXTURE_2D,0,o.RGBA,o.RGBA,o.UNSIGNED_BYTE,t),o.bindTexture(o.TEXTURE_2D,null),a},t.prototype.destroyWebGLContext=function(t){var e;pt.logDebug("Destroying WebGL context");var n=null===(e=this.instance)||void 0===e?void 0:e.GL.getContext(t);if(n){this.instance.GL.deleteContext(t);var r=n.GLctx.getExtension("WEBGL_lose_context");if(r)return r.loseContext(),pt.logDebug("WebGL destroyed"),!0;pt.logError("WEBGL_lose_context not available. Not possible to destroy WebGL context manually.")}else pt.logError("WebGL context not found while trying to destroy it")},t.prototype.importModule=function(){return this.isReleaseMode()?import("./web-renderer-release-dfe0d59b.js"):import("./web-renderer-debug-35622728.js")},t.prototype.mapToCSSCursor=function(t){return this.prCursorTypeToCSSCursorMap[t.value]},t.prototype.mapToPRPointerType=function(t){var e;return null!==(e=this.pointerTypeToWASMMap[t])&&void 0!==e?e:this.instance.PRUserPointerTypeEnum.Unset},t.prototype.mapPointerInfo=function(t){return W(W({},t),{type:this.mapToPRPointerType(t.type)})},t.prototype.mapResizeMode=function(t){return this.prototypeResizeModeToWASMMap[t]},t}();function yt(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=function(t){n(t)},r.src=t}))}var bt,wt,Ct,Pt,Et,xt,Lt,Mt,Rt,St,Wt,Tt,Ft,It,At,kt,Gt,Dt,Ut,Bt,Ot,zt=function(){function t(t,e,n){this.canvas=t,this.container=e,this.filePath=n,this.locateFile="/{file}",this.imagesURLFormat="",this.imagesURLMap={},this.fragmentsURLFormat="",this.fragmentsURLMap={},this.backgroundColor={r:1,g:1,b:1,a:1},this.mode=N.release,this.showTilesBorders=!1,this.minimumZoomLevel=5,this.maximumZoomLevel=.01,this.preserveDrawingBuffer=!1,this.featureFlags=q,this.manualInitialization=!1,this.panBoundariesPadding=0,this.selectedArtboard=null,this.initialZoom=null,this.initialPan=null}return t.FromSettings=function(e){return Object.assign(new t(e.canvas,e.container,e.filePath),Object.fromEntries(Object.entries(e).filter((function(t){return void 0!==t[1]}))))},t}(),Zt={png:"image/png",jpg:"image/jpeg",webp:"image/webp",svg:"image/svg+xml",pdf:"application/pdf"};!function(t){t[t.None=0]="None",t[t.Scale=1]="Scale",t[t.Width=2]="Width",t[t.Height=3]="Height"}(bt||(bt={})),function(t){t[t.None=0]="None",t[t.PNG=1]="PNG",t[t.JPG=2]="JPG",t[t.TIFF=3]="TIFF",t[t.WEBP=4]="WEBP",t[t.PDF=5]="PDF",t[t.EPS=6]="EPS",t[t.SVG=7]="SVG",t[t.HEIC=8]="HEIC"}(wt||(wt={})),function(t){t[t.Color=0]="Color",t[t.Gradient=1]="Gradient",t[t.Pattern=2]="Pattern"}(Ct||(Ct={})),function(t){t[t.Fit=0]="Fit",t[t.Fill=1]="Fill",t[t.Stretch=2]="Stretch",t[t.Tile=3]="Tile"}(Pt||(Pt={})),function(t){t[t.Linear=0]="Linear",t[t.Radial=1]="Radial",t[t.Angular=2]="Angular"}(Et||(Et={})),function(t){t[t.Center=0]="Center",t[t.Inside=1]="Inside",t[t.Outside=2]="Outside"}(xt||(xt={})),function(t){t[t.Butt=0]="Butt",t[t.Round=1]="Round",t[t.Square=2]="Square"}(Lt||(Lt={})),function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(Mt||(Mt={})),function(t){t[t.Motion=0]="Motion",t[t.Zoom=1]="Zoom",t[t.Background=2]="Background",t[t.Gaussian=3]="Gaussian"}(Rt||(Rt={})),function(t){t[t.Normal=0]="Normal",t[t.DestAtop=1]="DestAtop",t[t.Clear=2]="Clear",t[t.Source=3]="Source",t[t.Darken=4]="Darken",t[t.Multiply=5]="Multiply",t[t.ColorBurn=6]="ColorBurn",t[t.Lighten=7]="Lighten",t[t.Screen=8]="Screen",t[t.ColorDodge=9]="ColorDodge",t[t.Overlay=10]="Overlay",t[t.SoftLight=11]="SoftLight",t[t.HardLight=12]="HardLight",t[t.Difference=13]="Difference",t[t.Exclusion=14]="Exclusion",t[t.Hue=15]="Hue",t[t.Saturation=16]="Saturation",t[t.Color=17]="Color",t[t.Luminosity=18]="Luminosity",t[t.PlusLighter=19]="PlusLighter",t[t.PlusDarker=20]="PlusDarker"}(St||(St={})),function(t){t[t.Artboard=0]="Artboard",t[t.SymbolMaster=1]="SymbolMaster",t[t.SymbolInstance=2]="SymbolInstance",t[t.Hotspot=3]="Hotspot",t[t.Bitmap=4]="Bitmap",t[t.Group=5]="Group",t[t.Oval=6]="Oval",t[t.Polygon=7]="Polygon",t[t.Rectangle=8]="Rectangle",t[t.ShapeGroup=9]="ShapeGroup",t[t.ShapePath=10]="ShapePath",t[t.Star=11]="Star",t[t.Text=12]="Text",t[t.Triangle=13]="Triangle",t[t.Slice=14]="Slice"}(Wt||(Wt={})),function(t){t[t.Angled=2]="Angled",t[t.InsideArc=4]="InsideArc",t[t.InsideSquare=3]="InsideSquare",t[t.Rounded=0]="Rounded",t[t.Smooth=1]="Smooth"}(Tt||(Tt={})),function(t){t[t.Lowercase=2]="Lowercase",t[t.None=0]="None",t[t.Uppercase=1]="Uppercase"}(Ft||(Ft={})),function(t){t[t.Center=1]="Center",t[t.Justified=3]="Justified",t[t.Left=0]="Left",t[t.Right=2]="Right"}(It||(It={})),function(t){t[t.Top=0]="Top",t[t.Middle=1]="Middle",t[t.Bottom=2]="Bottom"}(At||(At={})),function(t){t[t.LineThrough=2]="LineThrough",t[t.Underline=1]="Underline",t[t.None=0]="None"}(kt||(kt={})),function(t){t[t.Unset=0]="Unset",t[t.Mouse=1]="Mouse",t[t.Touch=2]="Touch"}(Gt||(Gt={})),function(t){t[t.Auto=0]="Auto",t[t.Default=1]="Default",t[t.Pointer=2]="Pointer",t[t.Grab=3]="Grab",t[t.Grabbing=4]="Grabbing"}(Dt||(Dt={})),function(t){t[t.PNG=0]="PNG",t[t.JPG=1]="JPG",t[t.WEBP=2]="WEBP",t[t.PDF=4]="PDF",t[t.SVG=3]="SVG"}(Ut||(Ut={})),function(t){t[t.Screen=0]="Screen",t[t.Overlay=1]="Overlay"}(Bt||(Bt={})),function(t){t[t.Fit=0]="Fit",t[t.FillWidth=1]="FillWidth",t[t.ActualSize=2]="ActualSize"}(Ot||(Ot={}));var _t=function(t){function e(e){var n=t.call(this)||this;return n.status={type:"IDLE"},n.disposed=!1,n.handleCanvasResize=function(t,e,r){var o;null===(o=n.pageCanvasWasm)||void 0===o||o.resize(t,e,r)},n.handleWebGLContextLost=function(){n.setStatus({type:"WEBGL_CONTEXT_LOST"})},n.handlePinchToZoomEvent=function(t,e){var r;null===(r=n.userEventsCollectorWasm)||void 0===r||r.dispatchPinchToZoomEvent(t,e.x,e.y)},n.handleWheelEvent=function(t,e){var r;n.wasmModule&&(null===(r=n.userEventsCollectorWasm)||void 0===r||r.dispatchWheelEvent(t.x,t.y,n.wasmModule.mapPointerInfo(e)))},n.handlePointerDownEvent=function(t){var e;n.wasmModule&&(null===(e=n.userEventsCollectorWasm)||void 0===e||e.dispatchPointerDownEvent(n.wasmModule.mapPointerInfo(t)))},n.handlePointerMoveEvent=function(t){var e;n.wasmModule&&(null===(e=n.userEventsCollectorWasm)||void 0===e||e.dispatchPointerMoveEvent(n.wasmModule.mapPointerInfo(t)))},n.handleGlobalPointerMoveEvent=function(t){var e;n.wasmModule&&(null===(e=n.userEventsCollectorWasm)||void 0===e||e.dispatchGlobalPointerMoveEvent(n.wasmModule.mapPointerInfo(t)))},n.handlePointerUpEvent=function(t){var e;n.wasmModule&&(null===(e=n.userEventsCollectorWasm)||void 0===e||e.dispatchPointerUpEvent(n.wasmModule.mapPointerInfo(t)))},n.settings=zt.FromSettings(e),pt.logDebug("CanvasRenderer JS constructed with settings:",n.settings),n.gestureManager=new lt(n.settings.container),n.canvasManager=new gt({container:n.settings.container,canvas:n.settings.canvas}),n.fetchWorker=new Worker(n.settings.locateFile.replace("{file}","fetch-worker.js")),n.exporterFetchWorker=new Worker(n.settings.locateFile.replace("{file}","fetch-worker.js")),n.settings.manualInitialization||n.init(),n}return S(e,t),e.prototype.addListeners=function(){this.canvasManager.on("resize",this.handleCanvasResize),this.gestureManager.on("wheel",this.handleWheelEvent),this.gestureManager.on("pointerup",this.handlePointerUpEvent),this.gestureManager.on("pointermove",this.handlePointerMoveEvent),this.gestureManager.on("globalpointermove",this.handleGlobalPointerMoveEvent),this.gestureManager.on("pointerdown",this.handlePointerDownEvent),this.gestureManager.on("pinchToZoom",this.handlePinchToZoomEvent),this.settings.canvas.addEventListener("webglcontextlost",this.handleWebGLContextLost)},e.prototype.collectAndEmitDeviceInfo=function(){return T(this,void 0,void 0,(function(){var t;return F(this,(function(e){switch(e.label){case 0:return[4,V()];case 1:return t=e.sent(),this.deviceInfo=W(W({},t),{hardwareConcurrency:navigator.hardwareConcurrency}),this.emit("deviceInfo",this.deviceInfo),[2]}}))}))},e.prototype.detectWebGLVersion=function(){this.webglVersion=ot(this.deviceInfo),pt.logDebug("Using WebGL ".concat(this.webglVersion))},e.prototype.init=function(){return T(this,void 0,void 0,(function(){var t;return F(this,(function(e){switch(e.label){case 0:return this.traceFirstPaint=new ht("FirstPaint"),this.setStatus({type:"INITIALIZING"}),[4,this.collectAndEmitDeviceInfo()];case 1:e.sent(),this.detectWebGLVersion(),e.label=2;case 2:return e.trys.push([2,6,,7]),[4,this.initWasmModule()];case 3:return e.sent(),[4,this.initCanvasRendererWasm()];case 4:return e.sent(),[4,this.setFile(this.settings.filePath)];case 5:return e.sent(),this.settings.selectedArtboard&&this.selectArtboard(this.settings.selectedArtboard),[3,7];case 6:return t=e.sent(),[2,this.fail(t instanceof J?t:new J("ERROR","Unexpected exception initializing the web renderer",t))];case 7:return this.setInitialCameraState(),this.startRendering(),this.addListeners(),[2]}}))}))},e.prototype.setInitialCameraState=function(){var t,e,n,r=null!==this.settings.initialZoom,o=null!==this.settings.initialPan;r||o?(r&&this.setZoom(this.settings.initialZoom||1),o&&this.setPan((null===(t=this.settings.initialPan)||void 0===t?void 0:t.x)||0,(null===(e=this.settings.initialPan)||void 0===e?void 0:e.y)||0,null===(n=this.settings.initialPan)||void 0===n?void 0:n.centerPointInViewport)):this.zoomToFit()},e.prototype.startRendering=function(){var t;this.traceInitialRender=new ht("InitialRender"),this.setStatus({type:"DRAWING_FILE"}),null===(t=this.pageCanvasWasm)||void 0===t||t.startRenderLoop()},e.prototype.createJSBridge=function(){var t=this;return{logDebug:function(t){pt.logDebug("[C++] ".concat(t))},logWarning:function(t){pt.logWarning("[C++] ".concat(t))},logError:function(t){pt.logError("[C++] ".concat(t))},emitMetric:function(e,n,r,o){t.emit("metric",{id:e,start:n,end:r,duration:o})},resolveImageUrl:function(e,n){return t.settings.imagesURLMap&&t.settings.imagesURLMap[e]?t.settings.imagesURLMap[e].replace(":format",n):t.settings.imagesURLFormat?t.settings.imagesURLFormat.replace(":imageId",e).replace(":format",n):(pt.logWarning("Not able to resolve the url for the image with UUID: ".concat(e)),"")},resolveFragmentUrl:function(e){return t.settings.fragmentsURLMap&&t.settings.fragmentsURLMap[e]?t.settings.fragmentsURLMap[e]:t.settings.fragmentsURLFormat?t.settings.fragmentsURLFormat.replace(":fragmentId",e):(pt.logWarning("Not able to resolve the url for the fragment with UUID: ".concat(e)),"")},onDrawComplete:this.handleDrawComplete.bind(this),onAllImagesReady:function(){t.emit("allImagesReady")},onCameraMoveStart:function(){t.emit("cameraMoveStart")},onCameraMoveEnd:function(){t.emit("cameraMoveEnd")},onCameraZoomStart:function(){t.emit("cameraZoomStart")},onCameraZoomEnd:function(){t.emit("cameraZoomEnd")},onCameraZoomChange:function(e){t.emit("cameraZoomChange",e)},onCameraPanChange:function(){var e=t.getPan();t.emit("cameraPanChange",(null==e?void 0:e.x)||0,(null==e?void 0:e.y)||0)},onCursorChange:function(e){var n,r=null===(n=t.wasmModule)||void 0===n?void 0:n.mapToCSSCursor(e);r&&t.emit("cursorChange",r)},fetch:this.handleJSBridgeFetch.bind(this),exporterFetch:this.handleJSBridgeExporterFetch.bind(this),abortFetch:this.handleJSBridgeAbortFetch.bind(this),onLayerClick:function(e){t.emit("layerClick",e)},onLayerMouseHoverChange:function(e){t.emit("layerMouseHoverChange",e)},onSceneChange:function(){t.emit("sceneChange")},onFragmentLoad:function(e){t.emit("fragmentLoad",e)}}},e.prototype.handleJSBridgeExporterFetch=function(t,e){var n=this,r=e.clone(),o=function(e){return T(n,void 0,void 0,(function(){var n,i,a,s,u,c;return F(this,(function(l){if(!this.wasmModule)return[2];if(this.disposed)return[2];if(e.data.url!==t)return[2];switch(e.data.type){case"success":n={statusCode:200,statusText:"OK",contentType:e.data.contentType,isWebGLTexture:!1,emscriptenWebGLTextureHandle:-1,width:0,height:0,buffer:new Uint8Array(e.data.buffer)},r.exec(n);break;case"error":pt.logError("Error while fetching ".concat(t),e.data.error),r.exec({buffer:new Uint8Array(0),statusCode:null!==(a=null===(i=e.data.error)||void 0===i?void 0:i.statusCode)&&void 0!==a?a:500,statusText:null!==(u=null===(s=e.data.error)||void 0===s?void 0:s.statusText)&&void 0!==u?u:"Unknown error",contentType:null!==(c=e.data.contentType)&&void 0!==c?c:"",isWebGLTexture:!1,emscriptenWebGLTextureHandle:0,width:0,height:0})}return this.exporterFetchWorker.removeEventListener("message",o),[2]}))}))};this.exporterFetchWorker.addEventListener("message",o),this.exporterFetchWorker.postMessage({type:"fetch",url:t})},e.prototype.handleJSBridgeFetch=function(t,e){var n=this,r=e.clone(),o=function(e){return T(n,void 0,void 0,(function(){var n,i,a,s,u,c,l,d,h;return F(this,(function(f){switch(f.label){case 0:if(!this.wasmModule)return[2];if(this.disposed)return[2];if(e.data.url!==t)return[2];switch(e.data.type){case"success":return[3,1];case"error":return[3,5]}return[3,6];case 1:return n={statusCode:200,statusText:"OK",contentType:e.data.contentType,isWebGLTexture:!1,emscriptenWebGLTextureHandle:-1,width:0,height:0},/image/.test(e.data.contentType)?(i=new Blob([e.data.buffer]),[4,yt(URL.createObjectURL(i))]):[3,3];case 2:return a=f.sent(),this.wasmModule?(s=this.wasmModule.createWebGLTextureFromImage(a,this.webglCtxHandle),n.buffer=new Uint8Array(0),n.isWebGLTexture=!0,n.emscriptenWebGLTextureHandle=s,n.width=a.width,n.height=a.height,[3,4]):[2];case 3:n.buffer=new Uint8Array(e.data.buffer),f.label=4;case 4:return r.exec(n),[3,7];case 5:return pt.logError("Error while fetching ".concat(t),e.data.error),r.exec({buffer:new Uint8Array(0),statusCode:null!==(c=null===(u=e.data.error)||void 0===u?void 0:u.statusCode)&&void 0!==c?c:500,statusText:null!==(d=null===(l=e.data.error)||void 0===l?void 0:l.statusText)&&void 0!==d?d:"Unknown error",contentType:null!==(h=e.data.contentType)&&void 0!==h?h:"",isWebGLTexture:!1,emscriptenWebGLTextureHandle:0,width:0,height:0}),[3,7];case 6:return[3,7];case 7:return this.fetchWorker.removeEventListener("message",o),[2]}}))}))};this.fetchWorker.addEventListener("message",o),this.fetchWorker.postMessage({type:"fetch",url:t})},e.prototype.handleJSBridgeAbortFetch=function(t){this.fetchWorker.postMessage({type:"abort",url:t})},e.prototype.initWasmModule=function(){var t;return T(this,void 0,void 0,(function(){var e;return F(this,(function(n){switch(n.label){case 0:return this.disposed?[2]:(e=new ht("WasmModuleDownload"),this.wasmModule=new mt({mode:this.settings.mode,locateFile:this.settings.locateFile,jsBridge:this.createJSBridge(),featureFlags:this.settings.featureFlags,webglVersion:this.webglVersion}),[4,null===(t=this.wasmModule)||void 0===t?void 0:t.init()]);case 1:return n.sent(),pt.logDebug(e.printMeasurement()),this.emit("metric",e.measure()),[2]}}))}))},e.prototype.initCanvasRendererWasm=function(){return T(this,void 0,void 0,(function(){var t;return F(this,(function(e){if(this.disposed)return[2];try{if(!this.wasmModule)throw Error("WASM module not initialized");this.webglCtxHandle=this.wasmModule.makeWebGLContext(this.settings.canvas,{preserveDrawingBuffer:this.settings.preserveDrawingBuffer,majorVersion:this.webglVersion}),this.renderTarget=this.wasmModule.instance.RenderTarget.MakeWebGL(this.webglCtxHandle,this.canvasManager.size.width,this.canvasManager.size.height,this.canvasManager.pixelRatio),this.pageCanvasWasm=new this.wasmModule.instance.CanvasRendererWasm(this.renderTarget,{showTilesBorders:this.settings.showTilesBorders})}catch(t){throw new J("WASM_ERROR","An error occurred while trying to create the wasm object.",t)}if(!this.pageCanvasWasm)return[2];if(!(t=this.pageCanvasWasm.getUserEventsCollector()))throw new J("WASM_ERROR","An error occurred while trying to create the user events collector");return this.userEventsCollectorWasm=t,this.pageCanvasWasm.setBackgroundColor(this.settings.backgroundColor.r,this.settings.backgroundColor.g,this.settings.backgroundColor.b,this.settings.backgroundColor.a),this.pageCanvasWasm.setZoomLevels(this.settings.minimumZoomLevel,this.settings.maximumZoomLevel),this.pageCanvasWasm.setPanBoundariesPadding(this.settings.panBoundariesPadding),[2]}))}))},e.prototype.setIsCameraLocked=function(t){var e;null===(e=this.pageCanvasWasm)||void 0===e||e.setIsCameraLocked(t)},e.prototype.setBackgroundColor=function(t){var e;t.r===this.settings.backgroundColor.r&&t.g===this.settings.backgroundColor.g&&t.b===this.settings.backgroundColor.b&&t.a===this.settings.backgroundColor.a||(null===(e=this.pageCanvasWasm)||void 0===e||e.setBackgroundColor(t.r,t.g,t.b,t.a),this.settings.backgroundColor=t)},e.prototype.handleDrawComplete=function(){"DRAWING_FILE"===this.status.type&&(pt.logDebug(this.traceInitialRender.printMeasurement()),this.emit("metric",this.traceInitialRender.measure()),pt.logDebug(this.traceFirstPaint.printMeasurement()),this.emit("metric",this.traceFirstPaint.measure()),this.setStatus({type:"READY"}))},e.prototype.looseWebGLContext=function(){var t;(null===(t=this.wasmModule)||void 0===t?void 0:t.destroyWebGLContext(this.webglCtxHandle))||pt.logWarning("Failed to loose WebGL context"),this.webglCtxHandle=-1},e.prototype.zoomToFit=function(){var t;null===(t=this.pageCanvasWasm)||void 0===t||t.scaleDocumentToFit()},e.prototype.setFile=function(t){return T(this,void 0,void 0,(function(){var e=this;return F(this,(function(n){return this.disposed?[2]:(this.setStatus({type:"LOADING_FILE"}),[2,new Promise((function(n,r){var o;null===(o=e.pageCanvasWasm)||void 0===o||o.setFile(t,(function(t,r,o){e.setStatus({type:"FILE_READY"});var i="".concat(t,"-v").concat("12.0.1");e.emit("fileReady",i,r,o),n()}),(function(){return r(new J("FILE_ERROR","Error encountered while fetching and parsing the file"))}))}))])}))}))},e.prototype.fail=function(t){this.setStatus({type:"FAILURE",code:t.code,message:"".concat(t.toString()).concat(t.cause?"\nWrapped Error: ".concat(t.cause.toString()):"")}),pt.logError(t),t.cause&&pt.logError(t.cause)},e.prototype.setStatus=function(t){"FAILURE"!==this.status.type&&(pt.logDebug("Status transition ".concat(this.status.type," => ").concat(t.type)),this.status=t,this.emit("status",t))},e.prototype.getPRFileCachedData=function(){var t;if(!this.pageCanvasWasm)return null;if((null===(t=this.prFileHandle)||void 0===t?void 0:t.filePath)!==this.settings.filePath){var e=this.pageCanvasWasm.getPRFile();this.prFileHandle={handle:e,filePath:this.settings.filePath,artboards:it(e.getArtboards())}}return this.prFileHandle},e.prototype.getPRFile=function(){var t;return null===(t=this.getPRFileCachedData())||void 0===t?void 0:t.handle},e.prototype.releasePRFileHandle=function(){var t,e;null===(e=null===(t=this.prFileHandle)||void 0===t?void 0:t.handle)||void 0===e||e.delete(),this.prFileHandle=void 0},e.prototype.getRootNodeExtent=function(){var t,e,n;return null!==(n=null===(e=null===(t=this.getPRFile())||void 0===t?void 0:t.getRootNode())||void 0===e?void 0:e.getAbsoluteExtent())&&void 0!==n?n:null},e.prototype.getPRFileArtboards=function(){var t,e;return null!==(e=null===(t=this.getPRFileCachedData())||void 0===t?void 0:t.artboards)&&void 0!==e?e:[]},e.prototype.getArtboardAtPosition=function(t,e){if(!this.pageCanvasWasm)return null;for(var n=this.getPRFileArtboards(),r=this.pageCanvasWasm.getPan(),o=this.pageCanvasWasm.getZoom(),i=(t-r.x)/o,a=(e-r.y)/o,s=0,u=n;s<u.length;s++){var c=u[s],l=c.bounds.x+c.bounds.width,d=c.bounds.y+c.bounds.height;if(i>=c.bounds.x&&a>=c.bounds.y&&i<=l&&a<=d)return c.getNode()}return null},e.prototype.mapRelativePositionToCameraPosition=function(t,e){var n;return null===(n=this.pageCanvasWasm)||void 0===n?void 0:n.mapRelativePositionToCameraPosition(t,e)},e.prototype.getPanAtPosition=function(t,e){var n=this.getPan(),r=Math.max(this.getZoom(),Number.EPSILON),o=t/r,i=e/r;return{x:n.x-o,y:n.y-i}},e.prototype.getStatus=function(){return this.status},e.prototype.setZoom=function(t,e){var n,r=null!=e?e:this.canvasManager.getCanvasCenterPoint();null===(n=this.pageCanvasWasm)||void 0===n||n.setZoom(t,r.x,r.y)},e.prototype.getPan=function(){var t,e,n=this.getRootNodeExtent();if(!n)return{x:0,y:0};var r=null===(t=this.pageCanvasWasm)||void 0===t?void 0:t.getPan(),o=null===(e=this.pageCanvasWasm)||void 0===e?void 0:e.getZoom();return r&&o?{x:r.x/o+n.x,y:r.y/o+n.y}:{x:0,y:0}},e.prototype.getZoom=function(){var t;return(null===(t=this.pageCanvasWasm)||void 0===t?void 0:t.getZoom())||0},e.prototype.setPan=function(t,e,n){var r;void 0===n&&(n=!1);var o=this.getRootNodeExtent();if(o){var i=t,a=e,s=this.getZoom();if(n){var u=Math.max(2*s*this.canvasManager.pixelRatio,Number.EPSILON);i+=this.canvasManager.size.width/u,a+=this.canvasManager.size.height/u}var c=(i-o.x)*s,l=(a-o.y)*s;null===(r=this.pageCanvasWasm)||void 0===r||r.setPan(c,l)}},e.prototype.selectArtboard=function(t){var e;this.pageCanvasWasm&&(this.settings.selectedArtboard=t,null===(e=this.pageCanvasWasm)||void 0===e||e.selectArtboard(null!=t?t:""))},e.prototype.disposeFetchWorker=function(){this.fetchWorker.postMessage({type:"abort-all"}),this.fetchWorker.terminate()},e.prototype.exportNode=function(t,e){return T(this,void 0,void 0,(function(){var n=this;return F(this,(function(r){return[2,new Promise((function(r,o){if(n.wasmModule&&n.pageCanvasWasm){var i=e.format.toUpperCase(),a=Ut[i];if(a){var s={format:{value:a},backingScale:e.backingScale};n.pageCanvasWasm.exportNode(t,s,(function(t){if(null!==t){var n=Zt[e.format],i=new Blob([t.buffer],{type:n});r(i)}else o("Export failed")}))}else o("Unsupported export format: ".concat(e.format))}else o("Wasm module is not ready or was disposed.")}))]}))}))},e.prototype.dispose=function(){var t,e,n,r;try{this.disposeFetchWorker(),this.disposed=!0,this.detachAllListeners(),this.releasePRFileHandle(),null===(t=this.wasmModule)||void 0===t||t.destroyWebGLContext(this.webglCtxHandle),this.canvasManager.dispose(),this.gestureManager.dispose(),null===(e=this.pageCanvasWasm)||void 0===e||e.stopRenderLoop(),null===(n=this.pageCanvasWasm)||void 0===n||n.delete(),null===(r=this.renderTarget)||void 0===r||r.delete(),this.pageCanvasWasm=void 0,this.wasmModule=void 0}catch(t){this.fail(new J("ERROR","Unexpected exception while disposing the wasm object",t))}},e}(Y),jt=o(void 0),Nt=o(void 0),Ht=o(void 0),Vt=o(void 0),Jt=o(void 0),Kt=o("auto"),Yt=o(void 0),Xt=function(){var t=i(Yt);if(void 0===t)throw Error("useInternalContext must be used within a provider");return t},qt=function(t,e){switch(e.type){case"on-status":return W(W({},t),{status:e.status});case"on-zoom":return W(W({},t),{zoom:e.zoom});case"on-pan":return W(W({},t),{pan:e.pan});case"dispose":return W(W({},t),{status:{type:"DISPOSED"},zoom:null,pan:null,cursor:"auto"});case"on-camera-zoom-start":return W(W({},t),{isCameraZooming:!0});case"on-camera-zoom-end":return W(W({},t),{isCameraZooming:!1});case"on-camera-move-start":return W(W({},t),{isCameraMoving:!0});case"on-camera-move-end":return W(W({},t),{isCameraMoving:!1});case"on-cursor-change":return W(W({},t),{cursor:e.cursor});default:return t}},$t=function(n){var o=e(null),i=e(null),u=a(qt,{pan:null,zoom:null,status:{type:"IDLE"},isCameraZooming:!1,isCameraMoving:!1,cursor:"auto"}),c=u[0],l=c.status,d=c.zoom,h=c.pan,f=c.isCameraZooming,p=c.isCameraMoving,v=c.cursor,g=u[1],m=r((function(t){return g({type:"on-zoom",zoom:t})}),[]),y=r((function(t,e){return g({type:"on-pan",pan:{x:t,y:e}})}),[]),b=r((function(t){g({type:"on-status",status:t})}),[]),w=r((function(){return g({type:"on-camera-zoom-start"})}),[]),C=r((function(){return g({type:"on-camera-zoom-end"})}),[]),P=r((function(){return g({type:"on-camera-move-start"})}),[]),E=r((function(){return g({type:"on-camera-move-end"})}),[]),x=r((function(t){return g({type:"on-cursor-change",cursor:t})}),[]),L=r((function(){if(o.current){var t=o.current.getPan();g({type:"on-pan",pan:t})}}),[]),M=r((function(){var t=o.current;t&&(pt.logDebug("Provider dispose"),t.off("status",b),t.off("cameraZoomChange",m),t.off("cameraPanChange",y),t.off("cameraZoomStart",w),t.off("cameraZoomEnd",C),t.off("cameraMoveStart",P),t.off("cameraMoveEnd",E),t.off("cursorChange",x),t.off("sceneChange",L),t.dispose(),o.current=null,g({type:"dispose"}))}),[b,y,m,w,C,P,E,x,L]),R=r((function(t,e,n){if(""!==t&&e&&n&&i.current){pt.logDebug("Provider init");var r=new _t(W(W({},i.current),{filePath:t,container:n,canvas:e,manualInitialization:!0}));r.on("status",b),r.on("cameraZoomChange",m),r.on("cameraPanChange",y),r.on("cameraZoomStart",w),r.on("cameraZoomEnd",C),r.on("cameraMoveStart",P),r.on("cameraMoveEnd",E),r.on("cursorChange",x),r.on("sceneChange",L),o.current=r,r.init()}}),[b,m,y,w,C,P,E,x,L]),S=r((function(t){var e,n;pt.logDebug("Provider setSettings"),t.backgroundColor&&(null===(e=o.current)||void 0===e||e.setBackgroundColor(t.backgroundColor)),null===(n=o.current)||void 0===n||n.selectArtboard(t.selectedArtboard||null),i.current=t}),[]),T=r((function(){return o.current}),[]),F=s((function(){return{dispose:M,init:R,setSettings:S,getInstance:T,dispatch:g}}),[M,R,S,T]);return t.createElement(Yt.Provider,{value:F},t.createElement(jt.Provider,{value:l},t.createElement(Nt.Provider,{value:d},t.createElement(Jt.Provider,{value:h},t.createElement(Ht.Provider,{value:f},t.createElement(Vt.Provider,{value:p},t.createElement(Kt.Provider,{value:v},n.children)))))))},Qt=function(t,e){var n=(0,Xt().getInstance)();u((function(){return null==n||n.on(t,e),function(){null==n||n.off(t,e)}}),[t,n,e])},te=function(){var t=i(jt);if(void 0===t)throw Error("useStatus must be used within a provider");return t},ee=function(){var t=i(Nt);if(void 0===t)throw Error("useZoom must be used within a provider");return t},ne=function(){var t=i(Jt);if(void 0===t)throw Error("usePan must be used within a provider");return t},re=function(){var t=i(Kt);if(void 0===t)throw Error("useCursor must be used within a provider");return t},oe=function(){var t=i(Ht);if(void 0===status)throw Error("useIsCameraZooming must be used within a provider");return t},ie=function(){var t=i(Vt);if(void 0===status)throw Error("useIsCameraMoving must be used within a provider");return t},ae=function(){var t=(0,Xt().getInstance)(),e=te();return s((function(){return t&&"READY"===e.type?t.getPRFile():null}),[t,e])},se=function(){var t=(0,Xt().getInstance)(),e=te();return s((function(){return t&&"READY"===e.type?t.getPRFileArtboards():null}),[t,e])},ue=function(){var t,e,n,r,o=ae(),i=c(null),a=i[0],l=i[1],d=vt((function(){l((function(t){var e,n,r,i=null!==(r=null===(n=null===(e=ct(o))||void 0===e?void 0:e.getRootNode())||void 0===n?void 0:n.getAbsoluteExtent())&&void 0!==r?r:null;return(null==t?void 0:t.width)===(null==i?void 0:i.width)&&(null==t?void 0:t.height)===(null==i?void 0:i.height)&&(null==t?void 0:t.x)===(null==i?void 0:i.x)&&(null==t?void 0:t.y)===(null==i?void 0:i.y)?t:i}))}),16);Qt("sceneChange",d),u((function(){d()}),[d]);var h=null!==(t=null==a?void 0:a.x)&&void 0!==t?t:0,f=null!==(e=null==a?void 0:a.y)&&void 0!==e?e:0,p=null!==(n=null==a?void 0:a.width)&&void 0!==n?n:0,v=null!==(r=null==a?void 0:a.height)&&void 0!==r?r:0;return s((function(){return{x:h,y:f,width:p,height:v}}),[h,f,p,v])},ce=function(){var t=(0,Xt().getInstance)();return r((function(e){null==t||t.setZoom(e)}),[t])},le=function(){var t=ce(),e=ee();return r((function(){var n;"number"==typeof e&&(n=e>=1?Math.round(2*e):e>.5?1:2*e,t(n))}),[t,e])},de=function(){var t=ce(),e=ee();return r((function(){"number"==typeof e&&t(e/2)}),[t,e])},he=function(){var t=(0,Xt().getInstance)();return r((function(e){var n=e.x,r=e.y,o=e.centerPointInViewport;null==t||t.setPan(n,r,o)}),[t])},fe=function(){var t=(0,Xt().getInstance)();return r((function(){null==t||t.zoomToFit()}),[t])},pe=function(){var t=(0,Xt().getInstance)();return r((function(){null==t||t.looseWebGLContext()}),[t])},ve=function(){var t=(0,Xt().getInstance)();return r((function(e,n){return T(void 0,void 0,void 0,(function(){return F(this,(function(r){switch(r.label){case 0:return[4,null==t?void 0:t.getArtboardAtPosition(e,n)];case 1:return[2,r.sent()||null]}}))}))}),[t])},ge=function(){var t=(0,Xt().getInstance)();return r((function(e,n){return T(void 0,void 0,void 0,(function(){return F(this,(function(r){switch(r.label){case 0:return[4,null==t?void 0:t.getPanAtPosition(e,n)];case 1:return[2,r.sent()||null]}}))}))}),[t])},me=function(){var t=(0,Xt().getInstance)();return r((function(e){null==t||t.setIsCameraLocked(e)}),[t])},ye=function(){var t=(0,Xt().getInstance)();return r((function(e,n){if(!t)return null;var r=t.mapRelativePositionToCameraPosition(e,n);return null!=r?r:null}),[t])},be=function(){var t=(0,Xt().getInstance)(),e=ae();return r((function(n,r){return t&&e?t.exportNode(n,r):Promise.reject("WebRenderer instance not ready")}),[t,e])};function we(t){var n=e(t);n.current=t;var o=r((function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];n.current.apply(n,I([t],e,!1))}),[]);u((function(){return pt.on("log",o),function(){pt.off("log",o)}}),[o])}var Ce={position:"relative",width:"100%",height:"100%",touchAction:"manipulation"},Pe={position:"absolute",top:0,left:0},Ee=function(n){var o=n.filePath,i=n.locateFile,a=n.imagesURLFormat,l=n.imagesURLMap,d=n.fragmentsURLFormat,h=n.fragmentsURLMap,f=n.backgroundColor,p=n.mode,v=n.showTilesBorders,g=n.minimumZoomLevel,m=n.maximumZoomLevel,y=n.preserveDrawingBuffer,b=n.panBoundariesPadding,w=n.initialPan,C=n.initialZoom,P=n.children,E=n.containerProps,x=n.canvasProps,L=n.featureFlags,M=n.selectedArtboard,R=e(null),S=e(null),T=c(!1),F=T[0],I=T[1],A=r((function(){return I(!0)}),[]),k=Xt(),G=k.dispose,D=k.init,U=k.setSettings,B=re(),O=te();Qt("allImagesReady",A),u((function(){return pt.logDebug("CanvasRenderer mounted"),function(){return pt.logDebug("CanvasRenderer unmounted")}}),[]),u((function(){U({locateFile:i,imagesURLFormat:a,imagesURLMap:l,fragmentsURLFormat:d,fragmentsURLMap:h,backgroundColor:f,mode:p,showTilesBorders:v,minimumZoomLevel:g,maximumZoomLevel:m,preserveDrawingBuffer:y,panBoundariesPadding:b,initialPan:w,initialZoom:C,featureFlags:L,selectedArtboard:M})}),[U,i,a,l,d,h,f,p,v,g,m,y,b,w,C,L,M]),u((function(){if(o)return D(o,R.current,S.current),function(){G()}}),[G,D,o]);var z=s((function(){var t;return null!==(t=n.cursor)&&void 0!==t?t:B}),[n.cursor,B]),Z=s((function(){return W(W({},Ce),{cursor:z})}),[z]);return t.createElement("div",W({},E,{ref:S,style:Z}),o&&t.createElement("canvas",W({},x,{key:o,ref:R,"data-sketchweb-all-images-ready":F,"data-testid":"sketchweb-canvas","data-sketchweb-status":"sketchweb-status-".concat((null==O?void 0:O.type.toLowerCase())||"null"),style:Pe})),"READY"===(null==O?void 0:O.type)&&P)},xe=function(){function t(t,e,n,r){this.prototypeStructure=t,this.startArtboardUUID=e,this.canvas=n,this.container=r,this.locateFile="/{file}",this.imagesURLFormat="",this.imagesURLMap={},this.fragmentsURLFormat="",this.fragmentsURLMap={},this.backgroundColor={r:0,g:0,b:0,a:1},this.mode=N.release,this.showTilesBorders=!1,this.minimumZoomLevel=5,this.maximumZoomLevel=.01,this.preserveDrawingBuffer=!1,this.featureFlags=q,this.manualInitialization=!1,this.highlightHotspots=!0,this.resizeMode=H.Fit,this.assetsManagerLimits={maxDepthForBackgroundRequests:1,maxArtboardsForBackgroundRequests:5,maxInitialLoadingDepth:2,maxInitialArtboardToLoad:10},this.disableInteraction=!1}return t.FromSettings=function(e){return Object.assign(new t(e.prototypeStructure,e.startArtboardUUID,e.canvas,e.container),Object.fromEntries(Object.entries(e).filter((function(t){return void 0!==t[1]}))))},t}(),Le=function(t){function e(e){var n=t.call(this)||this;return n.status={type:"IDLE"},n.disposed=!1,n.handleCanvasResize=function(t,e,r){var o;null===(o=n.playerWasm)||void 0===o||o.resize(t,e,r)},n.handleWebGLContextLost=function(){n.setStatus({type:"WEBGL_CONTEXT_LOST"})},n.handlePinchToZoomEvent=function(t,e){var r;null===(r=n.userEventsCollectorWasm)||void 0===r||r.dispatchPinchToZoomEvent(t,e.x,e.y)},n.handleWheelEvent=function(t,e){var r;n.wasmModule&&n.userEventsCollectorWasm.dispatchWheelEvent(t.x,t.y,null===(r=n.wasmModule)||void 0===r?void 0:r.mapPointerInfo(e))},n.handlePointerDownEvent=function(t){var e;n.wasmModule&&n.userEventsCollectorWasm.dispatchPointerDownEvent(null===(e=n.wasmModule)||void 0===e?void 0:e.mapPointerInfo(t))},n.handlePointerMoveEvent=function(t){var e;n.wasmModule&&n.userEventsCollectorWasm.dispatchPointerMoveEvent(null===(e=n.wasmModule)||void 0===e?void 0:e.mapPointerInfo(t))},n.handleGlobalPointerMoveEvent=function(t){var e;n.wasmModule&&n.userEventsCollectorWasm.dispatchGlobalPointerMoveEvent(null===(e=n.wasmModule)||void 0===e?void 0:e.mapPointerInfo(t))},n.handlePointerUpEvent=function(t){var e;n.wasmModule&&n.userEventsCollectorWasm.dispatchPointerUpEvent(null===(e=n.wasmModule)||void 0===e?void 0:e.mapPointerInfo(t))},n.restartPrototype=function(t){var e;null===(e=n.playerWasm)||void 0===e||e.restartPrototype(t)},n.navigateToFirstFlow=function(){var t;null===(t=n.playerWasm)||void 0===t||t.navigateToFirstFlow()},n.goBack=function(){var t;null===(t=n.playerWasm)||void 0===t||t.goBack()},n.goForwards=function(){var t;null===(t=n.playerWasm)||void 0===t||t.goForwards()},n.setResizeMode=function(t){var e;if(n.wasmModule){var r=n.wasmModule.mapResizeMode(t);null===(e=n.playerWasm)||void 0===e||e.setResizeMode(r)}},n.getScreen=function(t){var e;void 0===t&&(t=!0);var r=null===(e=n.playerWasm)||void 0===e?void 0:e.getJSScreen(t);return r?{layers:it(r.layers)}:{layers:[]}},n.settings=xe.FromSettings(e),pt.logDebug("PrototypeRenderer JS constructed with settings:",n.settings),n.gestureManager=new lt(n.settings.container,n.settings.disableInteraction),n.canvasManager=new gt({container:n.settings.container,canvas:n.settings.canvas,maxPixelRatio:3}),n.fetchWorker=new Worker(n.settings.locateFile.replace("{file}","fetch-worker.js")),n.settings.manualInitialization||n.init(),n}return S(e,t),e.prototype.addListeners=function(){this.canvasManager.on("resize",this.handleCanvasResize),this.gestureManager.on("wheel",this.handleWheelEvent),this.gestureManager.on("pointerup",this.handlePointerUpEvent),this.gestureManager.on("pointermove",this.handlePointerMoveEvent),this.gestureManager.on("globalpointermove",this.handleGlobalPointerMoveEvent),this.gestureManager.on("pointerdown",this.handlePointerDownEvent),this.gestureManager.on("pinchToZoom",this.handlePinchToZoomEvent),this.settings.canvas.addEventListener("webglcontextlost",this.handleWebGLContextLost)},e.prototype.collectAndEmitDeviceInfo=function(){return T(this,void 0,void 0,(function(){var t;return F(this,(function(e){switch(e.label){case 0:return[4,V()];case 1:return t=e.sent(),this.deviceInfo=W(W({},t),{hardwareConcurrency:navigator.hardwareConcurrency}),this.emit("deviceInfo",this.deviceInfo),[2]}}))}))},e.prototype.detectWebGLVersion=function(){this.webglVersion=ot(this.deviceInfo),pt.logDebug("Using WebGL ".concat(this.webglVersion))},e.prototype.init=function(){return T(this,void 0,void 0,(function(){var t;return F(this,(function(e){switch(e.label){case 0:return this.traceFirstPaint=new ht("FirstPaint"),this.setStatus({type:"INITIALIZING"}),[4,this.collectAndEmitDeviceInfo()];case 1:e.sent(),this.detectWebGLVersion(),e.label=2;case 2:return e.trys.push([2,6,,7]),[4,this.initWasmModule()];case 3:return e.sent(),[4,this.initPlayerWasm()];case 4:return e.sent(),[4,this.startDownload()];case 5:return e.sent(),[3,7];case 6:return t=e.sent(),[2,this.fail(t instanceof J?t:new J("ERROR","Unexpected exception initializing the web renderer",t))];case 7:return this.startRendering(),this.addListeners(),[2]}}))}))},e.prototype.initWasmModule=function(){var t;return T(this,void 0,void 0,(function(){var e;return F(this,(function(n){switch(n.label){case 0:return this.disposed?[2]:(e=new ht("WasmModuleDownload"),this.wasmModule=new mt({mode:this.settings.mode,locateFile:this.settings.locateFile,jsBridge:this.createJSBridge(),featureFlags:this.settings.featureFlags,webglVersion:this.webglVersion}),[4,null===(t=this.wasmModule)||void 0===t?void 0:t.init()]);case 1:return n.sent(),e.printMeasurement(),this.emit("metric",e.measure()),[2]}}))}))},e.prototype.startDownload=function(){var t=this;return this.setStatus({type:"LOADING_FILE"}),new Promise((function(e){var n;null===(n=t.playerWasm)||void 0===n||n.startDownload((function(){e()}))}))},e.prototype.startRendering=function(){var t;this.traceInitialRender=new ht("InitialRender"),this.setStatus({type:"DRAWING_FILE"}),null===(t=this.playerWasm)||void 0===t||t.startRenderLoop()},e.prototype.createJSBridge=function(){var t=this;return{logDebug:function(t){pt.logDebug("[C++] ".concat(t))},logWarning:function(t){pt.logWarning("[C++] ".concat(t))},logError:function(t){pt.logError("[C++] ".concat(t))},emitMetric:function(e,n,r,o){t.emit("metric",{id:e,start:n,end:r,duration:o})},resolveImageUrl:function(e,n){return t.settings.imagesURLMap&&t.settings.imagesURLMap[e]?t.settings.imagesURLMap[e].replace(":format",n):t.settings.imagesURLFormat?t.settings.imagesURLFormat.replace(":imageId",e).replace(":format",n):(pt.logWarning("Not able to resolve the url for the image with UUID: ".concat(e)),"")},resolveFragmentUrl:function(e){return t.settings.fragmentsURLMap&&t.settings.fragmentsURLMap[e]?t.settings.fragmentsURLMap[e]:t.settings.fragmentsURLFormat?t.settings.fragmentsURLFormat.replace(":fragmentId",e):(pt.logWarning("Not able to resolve the url for the fragment with UUID: ".concat(e)),"")},onDrawComplete:this.handleDrawComplete.bind(this),onAllImagesReady:function(){t.emit("allImagesReady")},onCameraMoveStart:function(){t.emit("cameraMoveStart")},onCameraMoveEnd:function(){t.emit("cameraMoveEnd")},onCameraZoomStart:function(){t.emit("cameraZoomStart")},onCameraZoomEnd:function(){t.emit("cameraZoomEnd")},onCameraZoomChange:function(e){t.emit("cameraZoomChange",e)},onCameraPanChange:function(e,n){t.emit("cameraPanChange",e,n)},onCursorChange:function(e){var n,r=null===(n=t.wasmModule)||void 0===n?void 0:n.mapToCSSCursor(e);r&&t.emit("cursorChange",r)},onPrototypeStateWillChange:function(e,n,r){t.emit("prototypeStateWillChange",{currentArtboardId:e,canGoBack:n,canGoForwards:r})},onPrototypeStateChange:function(e,n,r){t.emit("prototypeStateChange",{currentArtboardId:e,canGoBack:n,canGoForwards:r})},fetch:this.handleJSBridgeFetch.bind(this),abortFetch:this.handleJSBridgeAbortFetch.bind(this),onPrototypeUnhandledPointerUp:function(){t.emit("prototypeUnhandledPointerUp")},onSceneChange:function(){t.emit("sceneChange")}}},e.prototype.handleJSBridgeFetch=function(t,e){var n=this,r=e.clone(),o=function(e){return T(n,void 0,void 0,(function(){var n,i,a,s,u,c,l,d,h;return F(this,(function(f){switch(f.label){case 0:if(this.disposed||!this.wasmModule)return[2];if(e.data.url!==t)return[2];switch(e.data.type){case"success":return[3,1];case"error":return[3,5]}return[3,6];case 1:return n={statusCode:200,statusText:"OK",contentType:e.data.contentType,isWebGLTexture:!1,emscriptenWebGLTextureHandle:-1,width:0,height:0},/image/.test(e.data.contentType)?(i=new Blob([e.data.buffer]),[4,yt(URL.createObjectURL(i))]):[3,3];case 2:return a=f.sent(),this.wasmModule?(s=this.wasmModule.createWebGLTextureFromImage(a,this.webglCtxHandle),n.buffer=new Uint8Array(0),n.isWebGLTexture=!0,n.emscriptenWebGLTextureHandle=s,n.width=a.width,n.height=a.height,[3,4]):[2];case 3:n.buffer=new Uint8Array(e.data.buffer),f.label=4;case 4:return r.exec(n),[3,7];case 5:return pt.logError("Error while fetching ".concat(t),e.data.error),r.exec({buffer:new Uint8Array(0),statusCode:null!==(c=null===(u=e.data.error)||void 0===u?void 0:u.statusCode)&&void 0!==c?c:500,statusText:null!==(d=null===(l=e.data.error)||void 0===l?void 0:l.statusText)&&void 0!==d?d:"Unknown error",contentType:null!==(h=e.data.contentType)&&void 0!==h?h:"",isWebGLTexture:!1,emscriptenWebGLTextureHandle:-1,width:0,height:0}),[3,7];case 6:return[3,7];case 7:return this.fetchWorker.removeEventListener("message",o),[2]}}))}))};this.fetchWorker.addEventListener("message",o),this.fetchWorker.postMessage({type:"fetch",url:t})},e.prototype.handleJSBridgeAbortFetch=function(t){this.fetchWorker.postMessage({type:"abort",url:t})},e.prototype.initPlayerWasm=function(){var t,e;return T(this,void 0,void 0,(function(){var n,r,o,i,a,s,u,c,l,d,h,f,p,v,g,m,y,b,w,C,P;return F(this,(function(E){try{if(!this.wasmModule)throw Error("WASM module not initialized");for(this.webglCtxHandle=this.wasmModule.makeWebGLContext(this.settings.canvas,{preserveDrawingBuffer:this.settings.preserveDrawingBuffer,majorVersion:this.webglVersion}),n=this.wasmModule.instance,r=n.RenderTarget,o=n.PrototypeRendererWasm,i=n.PrototypeStructureArtboardVector,a=n.PrototypeStructureFlowVector,s=n.PrototypeStructureAssetVector,u=n.PrototypeStructureFlowTypeEnum,this.renderTarget=r.MakeWebGL(this.webglCtxHandle,this.canvasManager.size.width,this.canvasManager.size.height,this.canvasManager.pixelRatio),c={artboards:new i},l={Overlay:u.Overlay,Screen:u.Screen},d=0,h=this.settings.prototypeStructure.artboards;d<h.length;d++){for(f=h[d],p=new a,v=0,g=null!==(t=f.flows)&&void 0!==t?t:[];v<g.length;v++)m=g[v],p.push_back(W(W({},m),{type:l[m.type]}));for(y=new s,b=0,w=null!==(e=f.assets)&&void 0!==e?e:[];b<w.length;b++)C=w[b],y.push_back(C);c.artboards.push_back(W(W({},f),{flows:p,assets:y}))}this.playerWasm=new o(this.renderTarget,{showTilesBorders:this.settings.showTilesBorders},this.settings.startArtboardUUID,c,this.settings.highlightHotspots,this.settings.assetsManagerLimits)}catch(t){throw new J("WASM_ERROR","An error occurred while trying to create the PrototypeRenderer WASM object.",t)}if(!(P=this.playerWasm.getUserEventsCollector()))throw new J("WASM_ERROR","An error occurred while trying to create the user events collector");return this.userEventsCollectorWasm=P,this.playerWasm.setBackgroundColor(this.settings.backgroundColor.r,this.settings.backgroundColor.g,this.settings.backgroundColor.b,this.settings.backgroundColor.a),this.playerWasm.setZoomLevels(this.settings.minimumZoomLevel,this.settings.maximumZoomLevel),this.setResizeMode(this.settings.resizeMode),[2]}))}))},e.prototype.setIsCameraLocked=function(t){var e;null===(e=this.playerWasm)||void 0===e||e.setIsCameraLocked(t)},e.prototype.setBackgroundColor=function(t){var e;t.r===this.settings.backgroundColor.r&&t.g===this.settings.backgroundColor.g&&t.b===this.settings.backgroundColor.b&&t.a===this.settings.backgroundColor.a||(null===(e=this.playerWasm)||void 0===e||e.setBackgroundColor(t.r,t.g,t.b,t.a),this.settings.backgroundColor=t)},e.prototype.handleDrawComplete=function(){"DRAWING_FILE"===this.status.type&&(this.traceInitialRender.printMeasurement(),this.emit("metric",this.traceInitialRender.measure()),this.traceFirstPaint.printMeasurement(),this.emit("metric",this.traceFirstPaint.measure()),this.setStatus({type:"READY"}))},e.prototype.looseWebGLContext=function(){var t;null===(t=this.wasmModule)||void 0===t||t.destroyWebGLContext(this.webglCtxHandle),this.webglCtxHandle=-1},e.prototype.fail=function(t){this.setStatus({type:"FAILURE",code:t.code,message:"".concat(t.toString()).concat(t.cause?"\nWrapped Error: ".concat(t.cause.toString()):"")}),pt.logError(t),t.cause&&pt.logError(t.cause)},e.prototype.setStatus=function(t){"FAILURE"!==this.status.type&&(pt.logDebug("Status transition ".concat(this.status.type," => ").concat(t.type)),this.status=t,this.emit("status",t))},e.prototype.getStatus=function(){return this.status},e.prototype.getArtboardAtPosition=function(t,e){var n=this.playerWasm;if(!n)return null;for(var r=n.getJSScreen(!1),o=n.getPan(),i=n.getZoom(),a=(t-o.x)/i,s=(e-o.y)/i,u=r.layers.size()-1;u>=0;u-=1){var c=r.layers.get(u);if(c&&"artboard"===c.type){var l=c.bounds.x+c.bounds.width,d=c.bounds.y+c.bounds.height;if(a>=c.bounds.x&&s>=c.bounds.y&&a<=l&&s<=d)return c.getNode()}}return null},e.prototype.disposeFetchWorker=function(){this.fetchWorker.postMessage({type:"abort-all"}),this.fetchWorker.terminate()},e.prototype.dispose=function(){var t,e,n;try{this.disposeFetchWorker(),this.detachAllListeners(),null===(t=this.wasmModule)||void 0===t||t.destroyWebGLContext(this.webglCtxHandle),this.canvasManager.dispose(),this.gestureManager.dispose(),null===(e=this.playerWasm)||void 0===e||e.stopRenderLoop(),null===(n=this.playerWasm)||void 0===n||n.delete(),this.renderTarget.delete(),this.playerWasm=void 0,this.wasmModule=void 0,this.disposed=!0}catch(t){this.fail(new J("ERROR","Unexpected exception while disposing the WebRendererWasm object",t))}},e.prototype.mapRelativePositionToCameraPosition=function(t,e){var n=this.playerWasm;return n?n.mapRelativePositionToCameraPosition(t,e):null},e.prototype.updateHighlightHotspotsSetting=function(t){var e=this.playerWasm;if(!e)return null;e.updateHighlightHotspotsSetting(t)},e}(Y),Me=o(void 0),Re=o("auto"),Se=o(void 0),We=o(void 0),Te=o(void 0),Fe=o(void 0),Ie=function(){var t=i(Fe);if(void 0===t)throw Error("useInternalContext must be used within a provider");return t},Ae=function(t,e){switch(e.type){case"on-status":return W(W({},t),{status:e.status});case"dispose":return W(W({},t),{status:{type:"DISPOSED"},cursor:"auto"});case"on-cursor-change":return W(W({},t),{cursor:e.cursor});case"on-prototype-state-will-change":return W(W({},t),{prototypeState:W(W({},t.prototypeState),{isChanging:!0})});case"on-prototype-state-change":return W(W({},t),{prototypeState:W(W(W({},t.prototypeState),e.prototypeState),{isChanging:!1})});case"on-zoom":return W(W({},t),{zoom:e.zoom});case"on-pan":return W(W({},t),{pan:{x:e.pan.x,y:e.pan.y}});default:return t}},ke=function(n){var o=e(null),i=e(null),u=a(Ae,{status:{type:"IDLE"},cursor:"auto",prototypeState:{currentArtboardId:"",canGoBack:!1,canGoForwards:!1,isChanging:!1},zoom:1,pan:{x:0,y:0}}),c=u[0],l=c.status,d=c.cursor,h=c.prototypeState,f=c.zoom,p=c.pan,v=u[1],g=r((function(t){v({type:"on-status",status:t})}),[]),m=r((function(t){return v({type:"on-zoom",zoom:t})}),[]),y=r((function(t,e){return v({type:"on-pan",pan:{x:t,y:e}})}),[]),b=r((function(t){return v({type:"on-cursor-change",cursor:t})}),[]),w=r((function(){return v({type:"on-prototype-state-will-change"})}),[]),C=r((function(t){return v({type:"on-prototype-state-change",prototypeState:t})}),[]),P=r((function(){var t=o.current;t&&(pt.logDebug("Provider dispose"),t.off("status",g),t.off("cursorChange",b),t.off("prototypeStateWillChange",w),t.off("prototypeStateChange",C),t.off("cameraZoomChange",m),t.off("cameraPanChange",y),t.dispose(),o.current=null,v({type:"dispose"}))}),[g,b,w,C,y,m]),E=r((function(t,e){if(t&&e&&i.current){pt.logDebug("Provider init");var n=new Le(W(W({},i.current),{container:e,canvas:t,manualInitialization:!0}));n.on("status",g),n.on("cursorChange",b),n.on("prototypeStateWillChange",w),n.on("prototypeStateChange",C),n.on("cameraZoomChange",m),n.on("cameraPanChange",y),o.current=n,n.init()}}),[g,b,w,C,y,m]),x=r((function(t){var e,n,r,a,s,u,c,l;pt.logDebug("Provider setSettings"),t.backgroundColor&&t.backgroundColor!=(null===(e=i.current)||void 0===e?void 0:e.backgroundColor)&&(null===(n=o.current)||void 0===n||n.setBackgroundColor(t.backgroundColor)),(null===(r=i.current)||void 0===r?void 0:r.resizeMode)!=t.resizeMode&&(null===(a=o.current)||void 0===a||a.setResizeMode(t.resizeMode||H.Fit)),void 0!==t.highlightHotspots&&(null===(s=i.current)||void 0===s?void 0:s.highlightHotspots)!==t.highlightHotspots&&(null===(u=o.current)||void 0===u||u.updateHighlightHotspotsSetting(t.highlightHotspots)),t.disableInteraction!==(null===(c=i.current)||void 0===c?void 0:c.disableInteraction)&&(null===(l=o.current)||void 0===l||l.gestureManager.setDisable(t.disableInteraction||!1)),i.current=t}),[]),L=r((function(){return o.current}),[]),M=s((function(){return{dispose:P,init:E,setSettings:x,getInstance:L,dispatch:v}}),[P,E,x,L]);return t.createElement(Fe.Provider,{value:M},t.createElement(Me.Provider,{value:l},t.createElement(Re.Provider,{value:d},t.createElement(Se.Provider,{value:h},t.createElement(We.Provider,{value:f},t.createElement(Te.Provider,{value:p},n.children))))))},Ge=function(){var t=(0,Ie().getInstance)();return r((function(e){null==t||t.restartPrototype(e)}),[t])},De=function(){var t=(0,Ie().getInstance)();return r((function(){null==t||t.navigateToFirstFlow()}),[t])},Ue=function(){var t=(0,Ie().getInstance)();return r((function(){null==t||t.goBack()}),[t])},Be=function(){var t=(0,Ie().getInstance)();return r((function(){null==t||t.goForwards()}),[t])},Oe=function(){var t=(0,Ie().getInstance)();return r((function(e,n){return T(void 0,void 0,void 0,(function(){return F(this,(function(r){return[2,null==t?void 0:t.getArtboardAtPosition(e,n)]}))}))}),[t])},ze=function(){var t=(0,Ie().getInstance)();return r((function(e,n){if(!t)return null;var r=t.mapRelativePositionToCameraPosition(e,n);return null!=r?r:null}),[t])},Ze=function(){var t=i(Me);if(void 0===t)throw Error("usePrototypeStatus must be used within a provider");return t},_e=function(){var t=i(Re);if(void 0===t)throw Error("usePrototypeCursor must be used within a provider");return t},je=function(){var t=i(Se);if(void 0===t)throw Error("usePrototypeState must be used within a provider");return t},Ne=function(){var t=i(We);if(void 0===t)throw Error("usePrototypeZoom must be used within a provider");return t},He=function(){var t=i(Te);if(void 0===t)throw Error("usePrototypePan must be used within a provider");return t},Ve=function(t,e){var n=(0,Ie().getInstance)();u((function(){return null==n||n.on(t,e),function(){null==n||n.off(t,e)}}),[t,n,e])};function Je(){var t=(0,Ie().getInstance)();return r((function(e){return void 0===e&&(e=!0),null==t?void 0:t.getScreen(e)}),[t])}var Ke={position:"relative",width:"100%",height:"100%",touchAction:"manipulation"},Ye={position:"absolute",top:0,left:0},Xe=function(n){var r=n.locateFile,o=n.imagesURLFormat,i=n.imagesURLMap,a=n.backgroundColor,c=n.mode,l=n.showTilesBorders,d=n.minimumZoomLevel,h=n.maximumZoomLevel,f=n.preserveDrawingBuffer,p=n.children,v=n.containerProps,g=n.canvasProps,m=n.featureFlags,y=n.startArtboardUUID,b=n.prototypeStructure,w=n.fragmentsURLFormat,C=n.fragmentsURLMap,P=n.highlightHotspots,E=n.resizeMode,x=n.assetsManagerLimits,L=n.cursor,M=n.disableInteraction,R=e(null),S=e(null),T=Ie(),F=T.dispose,I=T.init,A=T.setSettings,k=Ze(),G=_e(),D=("function"==typeof L?L(G):L)||G;u((function(){return pt.logDebug("PrototypeRenderer mounted"),function(){return pt.logDebug("PrototypeRenderer unmounted")}}),[]),u((function(){A({locateFile:r,imagesURLFormat:o,imagesURLMap:i,backgroundColor:a,mode:c,showTilesBorders:l,minimumZoomLevel:d,maximumZoomLevel:h,preserveDrawingBuffer:f,featureFlags:m,startArtboardUUID:y,prototypeStructure:b,fragmentsURLFormat:w,fragmentsURLMap:C,highlightHotspots:P,resizeMode:E,assetsManagerLimits:x,disableInteraction:M})}),[A,r,o,i,a,c,l,d,h,f,m,y,P,E,w,C,b,x,M]),u((function(){return I(R.current,S.current),function(){F()}}),[F,I]);var U=s((function(){return W(W({},Ke),{cursor:D})}),[D]);return t.createElement("div",W({},v,{ref:S,style:U}),t.createElement("canvas",W({},g,{ref:R,"data-testid":"prototype-canvas","data-prototype-status":"prototype-status-".concat((null==k?void 0:k.type.toLowerCase())||"null"),style:Ye})),"READY"===(null==k?void 0:k.type)&&p)},qe={position:"absolute",inset:0,pointerEvents:"none"};function $e(e){var n=e.visualize,o=void 0!==n&&n,i=Je(),a=c((function(){return i()||null})),u=a[0],l=a[1],d=r((function(){l(i()||null)}),[i]);Ve("sceneChange",d);var h=s((function(){return W(W({},qe),{opacity:o?1:0})}),[o]);return u?t.createElement("div",{style:h},u.layers.map((function(e,n){return t.createElement(Qe,{key:"".concat(n,"/").concat(e.id),bounds:e.bounds,id:e.id,name:e.name,type:e.type})}))):null}function Qe(e){var n=e.bounds,r=e.name,o=e.id,i=e.type,a=Ne(),u=He()||{x:0,y:0},c=u.x,l=u.y,d=s((function(){return W({position:"absolute",left:c/window.devicePixelRatio+n.x*a,top:l/window.devicePixelRatio+n.y*a,width:n.width*a,height:n.height*a,backgroundColor:"rgba(0, 255, 255, 0.2)",border:"2px dotted white"},"hotspot"===i?{cursor:"pointer",pointerEvents:"auto"}:{})}),[n.x,n.y,n.width,n.height,c,l,a,i]);return t.createElement("div",{style:d,"data-testid":"".concat(i,"-").concat(tn(r),"-").concat(o),"data-entity-name":r,"data-entity-id":o,"data-entity-bounds-x":n.x,"data-entity-bounds-y":n.x,"data-entity-bounds-width":n.width,"data-entity-bounds-height":n.height})}function tn(t){var e,n;return null!==(n=null===(e=t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))||void 0===e?void 0:e.join("-").toLowerCase())&&void 0!==n?n:""}export{He as $,re as A,oe as B,_t as C,ie as D,ae as E,se as F,ue as G,Qt as H,we as I,qt as J,Le as K,ke as L,Xe as M,Ge as N,De as O,Jt as P,Ue as Q,Be as R,jt as S,Oe as T,ze as U,Ze as V,_e as W,je as X,Ne as Y,Nt as Z,y as _,v as a,Ve as a0,Je as a1,$e as a2,J as a3,N as a4,K as a5,H as a6,Y as a7,lt as a8,dt as a9,St as aA,Wt as aB,Tt as aC,Ft as aD,It as aE,At as aF,kt as aG,Gt as aH,Dt as aI,Ut as aJ,Bt as aK,Ot as aL,X as aa,ht as ab,q as ac,et as ad,nt as ae,rt as af,ot as ag,it as ah,at as ai,st as aj,ut as ak,ct as al,ft as am,$ as an,tt as ao,pt as ap,vt as aq,bt as ar,wt as as,Ct as at,Pt as au,Et as av,xt as aw,Lt as ax,Mt as ay,Rt as az,x as b,M as c,f as d,h as e,g as f,P as g,$t as h,Ee as i,Ht as j,Vt as k,Kt as l,le as m,de as n,he as o,fe as p,pe as q,ve as r,ge as s,me as t,ce as u,ye as v,be as w,te as x,ee as y,ne as z};
@@ -0,0 +1,3 @@
1
+ export * from './ts';
2
+ export * from './wasm.exports';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAA;AACpB,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1 @@
1
+ export{k as CameraMoveContext,j as CameraZoomingContext,C as CanvasRenderer,h as CanvasRendererProvider,i as CanvasRendererReact,l as CursorContext,ac as DefaultFeatureFlags,a7 as EventEmitter,a8 as GestureManager,a9 as KeyboardManager,aa as ListenersCollector,aI as PRCursorType,aA as PRMarinaBlendMode,as as PRMarinaExportFormatType,az as PRMarinaLayerBlurType,aw as PRMarinaLayerBorderPosition,aC as PRMarinaLayerCornerStyle,at as PRMarinaLayerFillType,av as PRMarinaLayerGradientType,aE as PRMarinaLayerHorizontalTextAlignment,au as PRMarinaLayerImageFillType,ax as PRMarinaLayerLineCap,ay as PRMarinaLayerLineJoin,aG as PRMarinaLayerTextDecoration,aD as PRMarinaLayerTextTransform,aB as PRMarinaLayerType,aF as PRMarinaLayerVerticalTextAlignment,ar as PRMarinaVisibleScaleType,aJ as PRNodeExportFormat,aH as PRUserPointerType,P as PanContext,ab as Performance,K as PrototypeRenderer,L as PrototypeRendererProvider,M as PrototypeRendererReact,a6 as PrototypeResizeMode,aL as PrototypeResizeModeWasm,aK as PrototypeStructureFlowType,a2 as PrototypeTestOverlay,S as StatusContext,a3 as WebRendererError,a4 as WebRendererMode,Z as ZoomContext,af as clamp,ah as convertEmbindVectorToArray,ad as debounce,ae as extractPointer,ag as getSupportedWebGLVersion,an as getiOSVersion,a5 as isDefinedPresentationManifestArtboard,ai as isTouchDevice,ap as logger,am as nextTick,ao as parseSafariUserAgent,J as reducer,aj as removeUndefinedKeys,al as safePtrAccess,ak as touchableClick,A as useCursor,aq as useDebounceFunction,n as useDecrementZoom,H as useEvent,w as useExportNode,r as useGetArtboardAtPosition,s as useGetPanAtPosition,a1 as useGetScreen,Q as useGoBack,R as useGoForwards,m as useIncrementZoom,D as useIsCameraMoving,B as useIsCameraZooming,t as useLockCamera,I as useLogEvent,q as useLooseWebGLContext,v as useMapRelativePositionToCameraPosition,O as useNavigateToFirstFlow,E as usePRFile,F as usePRFileArtboards,z as usePan,W as usePrototypeCursor,a0 as usePrototypeEvent,T as usePrototypeGetArtboardAtPosition,U as usePrototypeMapRelativePositionToCameraPosition,$ as usePrototypePan,X as usePrototypeState,V as usePrototypeStatus,Y as usePrototypeZoom,N as useRestartPrototype,G as useRootNodeAbsoluteExtent,o as useSetPan,u as useSetZoom,x as useStatus,y as useZoom,p as useZoomToFit}from"./index-edb4bfa7.js";import"react";
@@ -1,7 +1,8 @@
1
- import { ColorRGBA, WebRendererEvents, WebRendererStatus, PointerInfo, Vec2D, PRFileMarina, PRMarinaFileArtboard } from '../types';
1
+ import { ColorRGBA, WebRendererEvents, WebRendererStatus, PointerInfo } from '../types';
2
2
  import { EventEmitter, GestureManager } from '../utils';
3
3
  import { CanvasSettings } from './CanvasSettings';
4
4
  import { ExportSettings } from '../types/Exporter';
5
+ import { PRFileMarina, PRMarinaFileArtboard } from '../../wasm.exports';
5
6
  export declare class CanvasRenderer extends EventEmitter<WebRendererEvents> {
6
7
  private settings;
7
8
  private status;
@@ -47,7 +48,6 @@ export declare class CanvasRenderer extends EventEmitter<WebRendererEvents> {
47
48
  private initCanvasRendererWasm;
48
49
  setIsCameraLocked(isLocked: boolean): void;
49
50
  setBackgroundColor(color: ColorRGBA): void;
50
- generateDocumentPNG(): Promise<Uint8Array | undefined>;
51
51
  private handleWebGLContextLost;
52
52
  private handleDrawComplete;
53
53
  /**
@@ -66,15 +66,15 @@ export declare class CanvasRenderer extends EventEmitter<WebRendererEvents> {
66
66
  private getPRFileCachedData;
67
67
  getPRFile(): PRFileMarina | null | undefined;
68
68
  releasePRFileHandle(): void;
69
- getRootNodeExtent(): import("../types").PRMarinaRect | null;
69
+ getRootNodeExtent(): import("../../wasm.exports").PRMarinaRect | null;
70
70
  getPRFileArtboards(): PRMarinaFileArtboard[];
71
71
  /**
72
72
  * Returns the PRMarinaNode of the Artboard at position x,y relative to the canvas
73
73
  * element origin in the browser, or null if there is no Artboard at that
74
74
  * position.
75
75
  */
76
- getArtboardAtPosition(x: number, y: number): import("../types").PRMarinaNode | null;
77
- mapRelativePositionToCameraPosition(x: number, y: number): import("../types").PRMarinaPoint | undefined;
76
+ getArtboardAtPosition(x: number, y: number): import("../../wasm.exports").PRMarinaNode | null;
77
+ mapRelativePositionToCameraPosition(x: number, y: number): import("../../wasm.exports").PRMarinaPoint | undefined;
78
78
  /**
79
79
  * Get the current pan value for a given point relative to the viewport
80
80
  * Use case: when the user clicks on the canvas, we want to know what's
@@ -89,7 +89,10 @@ export declare class CanvasRenderer extends EventEmitter<WebRendererEvents> {
89
89
  x: number;
90
90
  y: number;
91
91
  }): void;
92
- getPan(): Vec2D;
92
+ getPan(): {
93
+ x: number;
94
+ y: number;
95
+ };
93
96
  getZoom(): number;
94
97
  handlePinchToZoomEvent: (scaleDelta: number, center: {
95
98
  x: number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CanvasRenderer.d.ts","sourceRoot":"","sources":["../../../../src/ts/canvas-renderer/CanvasRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,iBAAiB,EAIjB,WAAW,EAIZ,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,YAAY,EACZ,cAAc,EAKf,MAAM,UAAU,CAAA;AAIjB,OAAO,EAAE,cAAc,EAA2B,MAAM,kBAAkB,CAAA;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,OAAO,EAGL,YAAY,EACZ,oBAAoB,EAIrB,MAAM,oBAAoB,CAAA;AAQ3B,qBAAa,cAAe,SAAQ,YAAY,CAAC,iBAAiB,CAAC;IACjE,OAAO,CAAC,QAAQ,CAAyB;IACzC,OAAO,CAAC,MAAM,CAAsC;IACpD,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,OAAO,CAAC,cAAc,CAAC,CAAoB;IAC3C,OAAO,CAAC,uBAAuB,CAAwB;IACvD,OAAO,CAAC,aAAa,CAAe;IACpC,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,eAAe,CAAc;IACrC,OAAO,CAAC,kBAAkB,CAAc;IACxC,OAAO,CAAC,WAAW,CAAS;IAC5B;;;;OAIG;IACH,OAAO,CAAC,mBAAmB,CAAS;IAE7B,QAAQ,UAAQ;IAChB,cAAc,EAAE,cAAc,CAAA;IACrC,OAAO,CAAC,YAAY,CAAS;IAO7B,OAAO,CAAC,YAAY,CAAC,CAMpB;gBAEW,QAAQ,EAAE,cAAc;IAiCpC,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,kBAAkB,CAMzB;IAEK,wBAAwB;IAW9B,kBAAkB;IAQL,IAAI;IAiCjB,qBAAqB;IAyBd,cAAc;IAMrB,OAAO,CAAC,cAAc;IAmHtB;;;;;OAKG;IACH,OAAO,CAAC,2BAA2B;IAoEnC,OAAO,CAAC,mBAAmB;IAgF3B,wBAAwB,CAAC,GAAG,EAAE,MAAM;YAOtB,cAAc;YAmBd,sBAAsB;IAqE7B,iBAAiB,CAAC,QAAQ,EAAE,OAAO;IAInC,kBAAkB,CAAC,KAAK,EAAE,SAAS;IAa1C,OAAO,CAAC,sBAAsB,CAE7B;IAED,OAAO,CAAC,kBAAkB;IAe1B;;OAEG;IACI,iBAAiB;IAUxB;;;OAGG;IACI,SAAS;IAIhB,oEAAoE;YACtD,OAAO;IAqCrB,OAAO,CAAC,IAAI;IAYZ,OAAO,CAAC,SAAS;IAUjB,OAAO,CAAC,mBAAmB;IAiBpB,SAAS;IAIT,mBAAmB;IAKnB,iBAAiB;IAIjB,kBAAkB;IAIzB;;;;OAIG;IACI,qBAAqB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IA8B1C,mCAAmC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAO/D;;;;OAIG;IACI,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;;;;IAarC,SAAS,IAAI,iBAAiB;IAI9B,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;IAKxD,MAAM;;;;IAiBN,OAAO,IAAI,MAAM;IAKjB,sBAAsB,eACf,MAAM,UACV;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,UAOjC;IAEM,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,qBAAqB,UAAQ;IA8B1D,gBAAgB,UACd;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,eAClB,WAAW,UAQzB;IAEM,sBAAsB,gBAAiB,WAAW,UAKxD;IAEM,sBAAsB,gBAAiB,WAAW,UAKxD;IAEM,4BAA4B,gBAAiB,WAAW,UAK9D;IAEM,oBAAoB,gBAAiB,WAAW,UAKtD;IAEM,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IASxC,kBAAkB;IAKZ,UAAU,CACrB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc,GAC7B,OAAO,CAAC,IAAI,CAAC;IAuCT,OAAO;CAwBf"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CanvasSettings.d.ts","sourceRoot":"","sources":["../../../../src/ts/canvas-renderer/CanvasSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAE9C,KAAK,UAAU,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAE3E,MAAM,MAAM,cAAc,GAAG;IAE3B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAErC;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxC,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,YAAY,CAAC,EAAE,OAAO,mBAAmB,CAAA;IACzC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IAG9B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,cAAc,CAAA;IACzB,MAAM,EAAE,iBAAiB,CAAA;CAC1B,CAAA;AAED;;;GAGG;AACH,qBAAa,uBAAwB,YAAW,QAAQ,CAAC,cAAc,CAAC;IAoB7D,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE,cAAc;IACzB,QAAQ,EAAE,MAAM;IArBzB,UAAU,SAAY;IACtB,eAAe,SAAK;IACpB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAK;IACzC,kBAAkB,SAAK;IACvB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAK;IAC5C,eAAe,EAAE,SAAS,CAA6B;IACvD,IAAI,EAAE,eAAe,CAA0B;IAC/C,gBAAgB,UAAQ;IACxB,gBAAgB,SAAI;IACpB,gBAAgB,SAAO;IACvB,qBAAqB,UAAQ;IAC7B,YAAY;;;;;;;MAAsB;IAClC,oBAAoB,UAAQ;IAC5B,oBAAoB,SAAI;IACxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAO;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IACjC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAO;gBAG3B,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,cAAc,EACzB,QAAQ,EAAE,MAAM;IAGzB,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,uBAAuB;CAYvE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/ts/canvas-renderer/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;CAMkB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/canvas-renderer/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CanvasRendererProvider.d.ts","sourceRoot":"","sources":["../../../../../src/ts/canvas-renderer/react/CanvasRendererProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EAKV,MAAM,OAAO,CAAA;AAiBd,KAAK,2BAA2B,GAAG;IACjC,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,UAAW,2BAA2B,sBAiMxE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CanvasRendererReact.d.ts","sourceRoot":"","sources":["../../../../../src/ts/canvas-renderer/react/CanvasRendererReact.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAMZ,SAAS,EACV,MAAM,OAAO,CAAA;AAId,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,cAAc,EACd,UAAU,GAAG,WAAW,GAAG,QAAQ,CACpC,GAAG;IACF,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;IACrD,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAA;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAkBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,UAAW,mBAAmB,sBA4H7D,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../../../src/ts/canvas-renderer/react/contexts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C;;GAEG;AACH,eAAO,MAAM,aAAa,wDAEzB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,oDAAsD,CAAA;AAE9E;;GAEG;AACH,eAAO,MAAM,oBAAoB,qDAEhC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,qDAE7B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU;OAChB,MAAM;OAAK,MAAM;qBACZ,CAAA;AAEZ;;GAEG;AACH,eAAO,MAAM,aAAa,oCAA2C,CAAA"}
@@ -31,16 +31,11 @@ export declare const useZoomToFit: () => () => void;
31
31
  * WebGL context. Useful for debugging this behaviour.
32
32
  */
33
33
  export declare const useLooseWebGLContext: () => () => void;
34
- /**
35
- * Returns a function that causes the render to export its current contents
36
- * as a PNG.
37
- */
38
- export declare const useGenerateDocumentPNG: () => () => Promise<Uint8Array | undefined>;
39
34
  /**
40
35
  * Returns a function that can be used to find out if an Artboard exists below
41
36
  * specific mouse coordinates relative to the canvas origin.
42
37
  */
43
- export declare const useGetArtboardAtPosition: () => (x: number, y: number) => Promise<import("../../..").PRMarinaNode | null>;
38
+ export declare const useGetArtboardAtPosition: () => (x: number, y: number) => Promise<import("../../../..").PRMarinaNode | null>;
44
39
  /**
45
40
  * Returns a function that can be used to find out the equivalent pan position
46
41
  * at specific mouse coordinates relative to the canvas origin.
@@ -55,6 +50,6 @@ export declare const useGetPanAtPosition: () => (x: number, y: number) => Promis
55
50
  * related to the canvas.
56
51
  */
57
52
  export declare const useLockCamera: () => (locked: boolean) => void;
58
- export declare const useMapRelativePositionToCameraPosition: () => (x: number, y: number) => import("../../..").PRMarinaPoint | null;
53
+ export declare const useMapRelativePositionToCameraPosition: () => (x: number, y: number) => import("../../../..").PRMarinaPoint | null;
59
54
  export declare const useExportNode: () => (nodeId: bigint, settings: ExportSettings) => Promise<Blob>;
60
55
  //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../../src/ts/canvas-renderer/react/hooks/actions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,UAAU,eAIZ,MAAM,SAKhB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,kBAiB5B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,kBAQ5B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,SAAS;OAIf,MAAM;OACN,MAAM;;UAUZ,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,kBAMxB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,kBAMhC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB,YAIvB,MAAM,KAAK,MAAM,uDAM9B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,YAIlB,MAAM,KAAK,MAAM;;;SAM9B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,iBAIb,OAAO,SAKnB,CAAA;AAED,eAAO,MAAM,sCAAsC,YAK3C,MAAM,KAAK,MAAM,+CASxB,CAAA;AAED,eAAO,MAAM,aAAa,iBAMb,MAAM,YAAY,cAAc,kBAQ5C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ts/prototype-renderer/react/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ts/canvas-renderer/react/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA"}
@@ -1,8 +1,8 @@
1
- import { Rect } from '../../../types';
1
+ import { Rect } from '../../../types/Rect';
2
2
  /**
3
3
  * Access the renderer `status` value.
4
4
  */
5
- export declare const useStatus: () => import("../../../types").WebRendererStatus;
5
+ export declare const useStatus: () => import("../../..").WebRendererStatus;
6
6
  /**
7
7
  * Access the renderer `zoom` value.
8
8
  */
@@ -17,7 +17,7 @@ export declare const usePan: () => {
17
17
  /**
18
18
  * Access the renderer `cursor` value.
19
19
  */
20
- export declare const useCursor: () => import("../../../types").CSSCursor;
20
+ export declare const useCursor: () => import("../../..").CSSCursor;
21
21
  /**
22
22
  * Access the renderer `isCameraMoving` value.
23
23
  */
@@ -29,11 +29,11 @@ export declare const useIsCameraMoving: () => boolean | null | undefined;
29
29
  /**
30
30
  * Returns the PRFile data structure
31
31
  */
32
- export declare const usePRFile: () => import("../../../types").PRFileMarina | null | undefined;
32
+ export declare const usePRFile: () => import("../../../..").PRFileMarina | null | undefined;
33
33
  /**
34
34
  * Returns the PRFile data structure
35
35
  */
36
- export declare const usePRFileArtboards: () => import("../../../types").PRMarinaFileArtboard[] | null;
36
+ export declare const usePRFileArtboards: () => import("../../../..").PRMarinaFileArtboard[] | null;
37
37
  /**
38
38
  * Returns the root node absolute extent. Importantly the root node extent
39
39
  * is updated if the canvas renderer scene changes. This can be useful for code
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../../src/ts/canvas-renderer/react/hooks/state.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAE1C;;GAEG;AACH,eAAO,MAAM,SAAS,4CAQrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,qBAQnB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,MAAM;;;QAQlB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,oCAQrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,kCAQ9B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,kCAQ7B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,6DAUrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,2DAU9B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,QAAO,IAkC5C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useEvent.d.ts","sourceRoot":"","sources":["../../../../../src/ts/prototype-renderer/react/hooks/useEvent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,uFAa7B,CAAA"}
1
+ {"version":3,"file":"useEvent.d.ts","sourceRoot":"","sources":["../../../../../../src/ts/canvas-renderer/react/hooks/useEvent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,QAAQ,uFAapB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLogEvent.d.ts","sourceRoot":"","sources":["../../../../../../src/ts/canvas-renderer/react/hooks/useLogEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAE5D,KAAK,gBAAgB,GAAG,YAAY,CAAC,KAAK,CAAC,CAAA;AAE3C,wBAAgB,WAAW,CAAC,EAAE,EAAE,gBAAgB,QAc/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ts/canvas-renderer/react/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../../src/ts/canvas-renderer/react/internal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,eAAe;aAEb,MAAM,IAAI;qBAEP,MAAM,UACR,iBAAiB,GAAG,IAAI,aACrB,cAAc,GAAG,IAAI,KAC7B,IAAI;iBACI,MAAM,cAAc,GAAG,IAAI;4BAChB,2BAA2B,KAAK,IAAI;cAClD,SAAS,aAAa,CAAC;cAG3B,CAAA;AAEZ;;GAEG;AACH,eAAO,MAAM,kBAAkB;aAhBhB,MAAM,IAAI;qBAEP,MAAM,UACR,iBAAiB,GAAG,IAAI,aACrB,cAAc,GAAG,IAAI,KAC7B,IAAI;iBACI,MAAM,cAAc,GAAG,IAAI;4BAChB,2BAA2B,KAAK,IAAI;cAClD,SAAS,aAAa,CAAC;CAgBtC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../src/ts/prototype-renderer/react/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAGrD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,UACX,YAAY,UACX,aAAa,KACpB,YAwDF,CAAA"}
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/ts/canvas-renderer/react/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAGrD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,UACX,YAAY,UACX,aAAa,KACpB,YAsDF,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/ts/canvas-renderer/react/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,iBAAiB,CAAA;IACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IACpC,cAAc,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,OAAO,CAAA;IACxB,MAAM,EAAE,SAAS,CAAA;CAClB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,iBAAiB,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CAAA;AAEnD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,cAAc,EACd,UAAU,GAAG,QAAQ,GAAG,WAAW,CACpC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FetchWorker.d.ts","sourceRoot":"","sources":["../../../../src/ts/fetch-worker/FetchWorker.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC1B,eAAe,EAAE,eAAe,CAAA;IAChC,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FetchWorkerMessageData.d.ts","sourceRoot":"","sources":["../../../../src/ts/fetch-worker/FetchWorkerMessageData.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B;IACE,IAAI,EAAE,OAAO,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ,GACD;IACE,IAAI,EAAE,OAAO,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ,GACD;IACE,IAAI,EAAE,WAAW,CAAA;CAClB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PresentationManifest.d.ts","sourceRoot":"","sources":["../../../../src/ts/prototype-renderer/PresentationManifest.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAA;IACvC,MAAM,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAA;IACzC,QAAQ,EAAE,4BAA4B,CAAA;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,4BAA4B,GAAG,SAAS,GAC9C,KAAK,IAAI,4BAA4B,CAEvC;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE;QACR,KAAK,EAAE,KAAK,CAAC;YACX;;eAEG;YACH,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAA;YACxC;;;eAGG;YACH,SAAS,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAA;YAC9C,SAAS,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAA;YAC/C,EAAE,EAAE,MAAM,CAAA;YACV,IAAI,EAAE,MAAM,CAAA;YACZ,gBAAgB,EAAE,MAAM,CAAA;SACzB,CAAC,CAAA;KACH,CAAA;IACD,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE;QACR,oBAAoB,EAAE,MAAM,CAAA;QAC5B,eAAe,EAAE,MAAM,CAAA;QACvB,WAAW,EAAE,MAAM,CAAA;QACnB,aAAa,EAAE,MAAM,CAAA;QACrB,aAAa,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,wBAAwB,GAClC,oBAAoB,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;AAE9C,MAAM,MAAM,sCAAsC,GAAG;IACnD,SAAS,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAA;CAC/C,CAAA"}
@@ -1,6 +1,7 @@
1
- import { ColorRGBA, PointerInfo, PrototypeResizeMode, PrototypeScreen, WebRendererEvents, WebRendererStatus } from '../types';
1
+ import { ColorRGBA, PointerInfo, PrototypeResizeMode, WebRendererEvents, WebRendererStatus } from '../types';
2
2
  import { EventEmitter, GestureManager } from '../utils';
3
3
  import { PrototypeSettings } from './PrototypeSettings';
4
+ import { PrototypeScreen } from '../../wasm.exports';
4
5
  export declare class PrototypeRenderer extends EventEmitter<WebRendererEvents> {
5
6
  private settings;
6
7
  private status;
@@ -59,10 +60,10 @@ export declare class PrototypeRenderer extends EventEmitter<WebRendererEvents> {
59
60
  goForwards: () => void;
60
61
  setResizeMode: (resizeMode: PrototypeResizeMode) => void;
61
62
  getScreen: (includeHotspots?: boolean) => PrototypeScreen;
62
- getArtboardAtPosition(x: number, y: number): import("../types").PRMarinaNode | null;
63
+ getArtboardAtPosition(x: number, y: number): import("../../wasm.exports").PRMarinaNode | null;
63
64
  disposeFetchWorker(): void;
64
65
  dispose(): void;
65
- mapRelativePositionToCameraPosition(x: number, y: number): import("../types").PRMarinaPoint | null;
66
+ mapRelativePositionToCameraPosition(x: number, y: number): import("../../wasm.exports").PRMarinaPoint | null;
66
67
  updateHighlightHotspotsSetting(highlightHotspots: boolean): null | undefined;
67
68
  }
68
69
  //# sourceMappingURL=PrototypeRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrototypeRenderer.d.ts","sourceRoot":"","sources":["../../../../src/ts/prototype-renderer/PrototypeRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAKT,WAAW,EACX,mBAAmB,EAEnB,iBAAiB,EACjB,iBAAiB,EAGlB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,YAAY,EACZ,cAAc,EAKf,MAAM,UAAU,CAAA;AAIjB,OAAO,EACL,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAGL,eAAe,EAGhB,MAAM,oBAAoB,CAAA;AAQ3B,qBAAa,iBAAkB,SAAQ,YAAY,CAAC,iBAAiB,CAAC;IACpE,OAAO,CAAC,QAAQ,CAA4B;IAC5C,OAAO,CAAC,MAAM,CAAsC;IACpD,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,UAAU,CAAC,CAAuB;IAC1C,OAAO,CAAC,uBAAuB,CAAwB;IACvD,OAAO,CAAC,aAAa,CAAe;IACpC,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,eAAe,CAAc;IACrC,OAAO,CAAC,kBAAkB,CAAc;IACxC,OAAO,CAAC,WAAW,CAAS;IACrB,QAAQ,UAAQ;IAChB,cAAc,EAAE,cAAc,CAAA;IACrC,OAAO,CAAC,YAAY,CAAS;gBAEjB,QAAQ,EAAE,iBAAiB;IA6BvC,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,kBAAkB,CAMzB;IAEK,wBAAwB;IAW9B,kBAAkB;IAQL,IAAI;YA4BH,cAAc;IAmB5B,OAAO,CAAC,aAAa;IAYd,cAAc;IAMrB,OAAO,CAAC,cAAc;IA4HtB,OAAO,CAAC,mBAAmB;IA+E3B,wBAAwB,CAAC,GAAG,EAAE,MAAM;YAOtB,cAAc;IAyGrB,iBAAiB,CAAC,QAAQ,EAAE,OAAO;IAInC,kBAAkB,CAAC,KAAK,EAAE,SAAS;IAa1C,OAAO,CAAC,sBAAsB,CAE7B;IAED,OAAO,CAAC,kBAAkB;IAe1B;;OAEG;IACI,iBAAiB;IAKxB,OAAO,CAAC,IAAI;IAYZ,OAAO,CAAC,SAAS;IAUV,SAAS,IAAI,iBAAiB;IAI9B,sBAAsB,eACf,MAAM,UACV;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,UAOjC;IAEM,gBAAgB,UACd;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,eAClB,WAAW,UAQzB;IAEM,sBAAsB,gBAAiB,WAAW,UAKxD;IAEM,sBAAsB,gBAAiB,WAAW,UAKxD;IAEM,4BAA4B,gBAAiB,WAAW,UAK9D;IAEM,oBAAoB,gBAAiB,WAAW,UAKtD;IAEM,gBAAgB,iBAAkB,MAAM,UAE9C;IAEM,mBAAmB,aAEzB;IAEM,MAAM,aAEZ;IAEM,UAAU,aAEhB;IAEM,aAAa,eAAgB,mBAAmB,UAItD;IAEM,SAAS,iCAA6B,eAAe,CAU3D;IAEM,qBAAqB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAsC1C,kBAAkB;IAKlB,OAAO;IAwBP,mCAAmC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAUxD,8BAA8B,CAAC,iBAAiB,EAAE,OAAO;CAOjE"}
@@ -1,4 +1,5 @@
1
- import { ColorRGBA, WebRendererMode, PresentationManifestPrototypeStructure, PrototypeResizeMode, PrototypeAssetsManagerLimits } from '../types';
1
+ import { ColorRGBA, WebRendererMode, PresentationManifestPrototypeStructure, PrototypeResizeMode } from '../types';
2
+ import { PrototypeAssetsManagerLimits } from '../../wasm.exports';
2
3
  import { DefaultFeatureFlags } from '../utils';
3
4
  export type PrototypeSettings = {
4
5
  locateFile?: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrototypeSettings.d.ts","sourceRoot":"","sources":["../../../../src/ts/prototype-renderer/PrototypeSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,eAAe,EACf,sCAAsC,EACtC,mBAAmB,EACpB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAE9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAErC;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxC,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,YAAY,CAAC,EAAE,OAAO,mBAAmB,CAAA;IACzC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChC,mBAAmB,CAAC,EAAE,4BAA4B,CAAA;IAClD,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAG5B,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,sCAAsC,CAAA;IAC1D,SAAS,EAAE,cAAc,CAAA;IACzB,MAAM,EAAE,iBAAiB,CAAA;CAC1B,CAAA;AAED;;;GAGG;AACH,qBAAa,0BAA2B,YAAW,QAAQ,CAAC,iBAAiB,CAAC;IAyBnE,kBAAkB,EAAE,sCAAsC;IAC1D,iBAAiB,EAAE,MAAM;IACzB,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE,cAAc;IA3BlC,UAAU,SAAY;IACtB,eAAe,SAAK;IACpB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAK;IACzC,kBAAkB,SAAK;IACvB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAK;IAC5C,eAAe,EAAE,SAAS,CAA6B;IACvD,IAAI,EAAE,eAAe,CAA0B;IAC/C,gBAAgB,UAAQ;IACxB,gBAAgB,SAAI;IACpB,gBAAgB,SAAO;IACvB,qBAAqB,UAAQ;IAC7B,YAAY;;;;;;;MAAsB;IAClC,oBAAoB,UAAQ;IAC5B,iBAAiB,UAAO;IACxB,UAAU,EAAE,mBAAmB,CAA0B;IACzD,mBAAmB,EAAE,4BAA4B,CAKhD;IACD,kBAAkB,UAAQ;gBAGjB,kBAAkB,EAAE,sCAAsC,EAC1D,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,cAAc;IAGlC,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,iBAAiB,GAAG,0BAA0B;CAa7E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/prototype-renderer/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,SAAS,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrototypeRendererProvider.d.ts","sourceRoot":"","sources":["../../../../../src/ts/prototype-renderer/react/PrototypeRendererProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EAKV,MAAM,OAAO,CAAA;AAqBd,KAAK,8BAA8B,GAAG;IACpC,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,UAC7B,8BAA8B,sBAwLtC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrototypeRendererReact.d.ts","sourceRoot":"","sources":["../../../../../src/ts/prototype-renderer/react/PrototypeRendererReact.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA8B,SAAS,EAAE,MAAM,OAAO,CAAA;AAGpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAGxD,KAAK,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAA;AAE3C,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACvC,iBAAiB,EACjB,WAAW,GAAG,QAAQ,CACvB,GAAG;IACF,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;IACrD,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAA;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,MAAM,CAAC,EAAE,CAAC,CAAC,eAAe,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,MAAM,CAAA;CACxD,CAAA;AAkBD,eAAO,MAAM,sBAAsB,UAAW,sBAAsB,sBAwHnE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrototypeTestOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/ts/prototype-renderer/react/PrototypeTestOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAA;AAgB5E,KAAK,yBAAyB,GAAG;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,4BAmCpE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../../../src/ts/prototype-renderer/react/contexts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE/D;;GAEG;AACH,eAAO,MAAM,aAAa,wDAEzB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,oCAA2C,CAAA;AAErE;;GAEG;AACH,eAAO,MAAM,qBAAqB,qDAEjC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,6CAA+C,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,UAAU;OAChB,MAAM;OAAK,MAAM;qBACZ,CAAA"}
@@ -20,6 +20,6 @@ export declare const useGoForwards: () => () => void;
20
20
  * Returns a function that can be used to find out if an Artboard exists below
21
21
  * specific mouse coordinates relative to the canvas origin.
22
22
  */
23
- export declare const usePrototypeGetArtboardAtPosition: () => (x: number, y: number) => Promise<import("../../..").PRMarinaNode | null | undefined>;
24
- export declare const usePrototypeMapRelativePositionToCameraPosition: () => (x: number, y: number) => import("../../..").PRMarinaPoint | null;
23
+ export declare const usePrototypeGetArtboardAtPosition: () => (x: number, y: number) => Promise<import("../../../..").PRMarinaNode | null | undefined>;
24
+ export declare const usePrototypeMapRelativePositionToCameraPosition: () => (x: number, y: number) => import("../../../..").PRMarinaPoint | null;
25
25
  //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../../src/ts/prototype-renderer/react/hooks/actions.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,mBAAmB,uBAIb,MAAM,SAKxB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,kBAMlC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,kBAMrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,kBAMzB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iCAAiC,YAIhC,MAAM,KAAK,MAAM,mEAK9B,CAAA;AAED,eAAO,MAAM,+CAA+C,YAKpD,MAAM,KAAK,MAAM,+CASxB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ts/prototype-renderer/react/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../../src/ts/prototype-renderer/react/hooks/state.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,kBAAkB,4CAQ9B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,oCAQ9B,CAAA;AAED,eAAO,MAAM,iBAAiB,yCAQ7B,CAAA;AAED,eAAO,MAAM,gBAAgB,cAQ5B,CAAA;AAED,eAAO,MAAM,eAAe;;;QAQ3B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEvent.d.ts","sourceRoot":"","sources":["../../../../../../src/ts/prototype-renderer/react/hooks/useEvent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,uFAa7B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function useGetScreen(): (includeHotspots?: boolean) => import("../../../..").PrototypeScreen | undefined;
2
+ //# sourceMappingURL=useGetScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGetScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/ts/prototype-renderer/react/hooks/useGetScreen.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,qFAW3B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ts/prototype-renderer/react/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,0BAA0B,CAAA;AACxC,cAAc,SAAS,CAAA;AACvB,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../../src/ts/prototype-renderer/react/internal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,8BAA8B,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvE;;;;GAIG;AACH,eAAO,MAAM,eAAe;aAEb,MAAM,IAAI;mBAET,iBAAiB,GAAG,IAAI,aACrB,cAAc,GAAG,IAAI,KAC7B,IAAI;iBACI,MAAM,iBAAiB,GAAG,IAAI;4BACnB,8BAA8B,KAAK,IAAI;cACrD,SAAS,aAAa,CAAC;cAG3B,CAAA;AAEZ;;GAEG;AACH,eAAO,MAAM,kBAAkB;aAfhB,MAAM,IAAI;mBAET,iBAAiB,GAAG,IAAI,aACrB,cAAc,GAAG,IAAI,KAC7B,IAAI;iBACI,MAAM,iBAAiB,GAAG,IAAI;4BACnB,8BAA8B,KAAK,IAAI;cACrD,SAAS,aAAa,CAAC;CAgBtC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/ts/prototype-renderer/react/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAGrD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,UACX,YAAY,UACX,aAAa,KACpB,YAwDF,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/ts/prototype-renderer/react/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,iBAAiB,CAAA;IACzB,MAAM,EAAE,SAAS,CAAA;IACjB,cAAc,EAAE,cAAc,CAAA;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAC9B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,iBAAiB,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,GAC/C;IACE,IAAI,EAAE,gCAAgC,CAAA;CACvC,GACD;IACE,IAAI,EAAE,2BAA2B,CAAA;IACjC,cAAc,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;CACxC,GACD;IACE,IAAI,EAAE,SAAS,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb,GACD;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,iBAAiB,EACjB,QAAQ,GAAG,WAAW,CACvB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSSCursor.d.ts","sourceRoot":"","sources":["../../../../src/ts/types/CSSCursor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,0BAAkB,SAAS;IACzB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB"}