clipoox-render 0.4.6 → 0.4.8

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 (142) hide show
  1. package/package.json +2 -2
  2. package/scripts/render-local.mjs +2656 -1672
  3. package/shared/photocraft/LICENSE.txt +206 -0
  4. package/shared/photocraft/clipoox_photo.js +396 -0
  5. package/shared/photocraft/clipoox_photo_bg.wasm +0 -0
  6. package/web/assets/{FxEmbed-ROS6C_HI.js → FxEmbed-adbxHEBi.js} +1 -1
  7. package/web/assets/ImageStudio-CMxiT1jp.js +3 -0
  8. package/web/assets/ImageStudio-De_DCTrz.css +1 -0
  9. package/web/assets/{MotionEmbed-E2hCysi-.js → MotionEmbed-CDUIyjk0.js} +1 -1
  10. package/web/assets/{PluginStore-CwUSpwPp.js → PluginStore-By_pdOOg.js} +2 -2
  11. package/web/assets/ShotComposer-DcwWZ-eP.css +1 -0
  12. package/web/assets/ShotComposer-XIbJ4nNm.js +287 -0
  13. package/web/assets/{TemplateEmbed-qG1AXdtf.js → TemplateEmbed-a01nKECT.js} +1 -1
  14. package/web/assets/{TimelinePlugins-CB1b6-Cb.js → TimelinePlugins-CqLMVjuh.js} +4 -4
  15. package/web/assets/TimelineShotFx-QmkyCg31.js +2 -0
  16. package/web/assets/{TransitionEmbed-Dym9P7--.js → TransitionEmbed-Cbwlxfl2.js} +1 -1
  17. package/web/assets/{Whiteboard-BdGjJZXW.js → Whiteboard-ChYqIr3v.js} +1 -1
  18. package/web/assets/{aerial-yLD_gDzw.js → aerial-CZeCeacv.js} +2 -2
  19. package/web/assets/{agentTools-B7g6tXTR.js → agentTools-DW2ETnxE.js} +2 -2
  20. package/web/assets/{aiInbetween-6eKDYbYS.js → aiInbetween-De98iM4m.js} +2 -2
  21. package/web/assets/analyzerRun-D5-g-Vxe.js +1 -0
  22. package/web/assets/{analyzerSandbox-N92T6amg.js → analyzerSandbox-E3CdovIk.js} +1 -1
  23. package/web/assets/{api-Dnl2uaKO.js → api-CZoVJ9Fy.js} +87 -87
  24. package/web/assets/auraTrack-ClhHuqlf.js +1 -0
  25. package/web/assets/{breakthrough-DSiuVwEX.js → breakthrough-DTpiUIZd.js} +2 -2
  26. package/web/assets/{cameraPresets-Cfn7qhXK.js → cameraPresets-DD0WmxiI.js} +1 -1
  27. package/web/assets/{cameraTracker-DHdF8Zqx.js → cameraTracker-Df9jWmz6.js} +2 -2
  28. package/web/assets/{captionLayout-cckQ7p-t.js → captionLayout-eiu9QPJu.js} +1 -1
  29. package/web/assets/{clientExport-pkLbOmEF.js → clientExport-BXegTdNc.js} +1 -1
  30. package/web/assets/{clientJobs-CcsLDqFM.js → clientJobs-eB-lNyin.js} +2 -2
  31. package/web/assets/clipoox_photo_bg-BQ0aVNY0.wasm +0 -0
  32. package/web/assets/depthEstimate-CfwX-tXP.js +1 -0
  33. package/web/assets/{directorTools-DMsatulF.js → directorTools-ABbI8m0e.js} +1 -1
  34. package/web/assets/distortFrames-DMnZ8OYh.js +2 -0
  35. package/web/assets/distortGL-DQu0Df2c.js +18 -0
  36. package/web/assets/{domino-DBrinEUu.js → domino-trmDBvfH.js} +1 -1
  37. package/web/assets/{editTools-BNnAvCw-.js → editTools-DEFo9Ahv.js} +1 -1
  38. package/web/assets/{engine-Co-ivzlQ.js → engine-Y-GotDIy.js} +1 -1
  39. package/web/assets/exportGlb-BeLpJKJT.js +2 -0
  40. package/web/assets/{faceTracker-ClR-lS6Y.js → faceTracker-BeSFnLM8.js} +1 -1
  41. package/web/assets/{fightDirector-BlpVAURl.js → fightDirector-Dfz3vu5-.js} +1 -1
  42. package/web/assets/{fightDrama-BK0QidpM.js → fightDrama-CNVn69s0.js} +2 -2
  43. package/web/assets/{focusTool-sVOb2GGS.js → focusTool-Dd2UDkiO.js} +1 -1
  44. package/web/assets/{frameSink-CSRqCnwI.js → frameSink-Rj02YES5.js} +3 -3
  45. package/web/assets/{glTransitionSources.generated-q0H-ZbnZ.js → glTransitionSources.generated-Cs8lVRqs.js} +438 -2
  46. package/web/assets/{gpuCompose-B5bgbHdQ.js → gpuCompose-DkkKH1Ab.js} +1 -1
  47. package/web/assets/gpuExport-DwrXpVGF.js +199 -0
  48. package/web/assets/{handMatte-Dj2taFoC.js → handMatte-B5sUeqKi.js} +1 -1
  49. package/web/assets/{handTracker-c6_rvuwA.js → handTracker-CQV-D7va.js} +2 -2
  50. package/web/assets/i18n-ClNt3LKg.js +3 -0
  51. package/web/assets/{index-Ds_8isyf.js → index-D2u6mD-8.js} +1 -1
  52. package/web/assets/layer-worker-DP0N05Ua.js +5 -0
  53. package/web/assets/library-cb43ZEmy.js +1 -0
  54. package/web/assets/{lottieLayer-Cv8ub9f6.js → lottieLayer-DEw0c3to.js} +4 -4
  55. package/web/assets/main-C_XcvNyC.js +311 -0
  56. package/web/assets/{main-B_MAOvi6.css → main-DlzdW5C4.css} +1 -1
  57. package/web/assets/{mapBake-DtQboFIX.js → mapBake-BUWz0cSx.js} +1 -1
  58. package/web/assets/maskTrack-GYpJyKFw.js +1 -0
  59. package/web/assets/matteFixRun-BCVsuSxf.js +1 -0
  60. package/web/assets/{objectLocate-XuAcemlO.js → objectLocate-CjIlo_u0.js} +1 -1
  61. package/web/assets/{objectSegmenter-D66spD7o.js → objectSegmenter-C4T9qgUL.js} +1 -1
  62. package/web/assets/{objectTrack.worker-BZS6WZ6l.js → objectTrack.worker-BVvsDmR0.js} +1450 -908
  63. package/web/assets/{pathTracer-DykgPkkh.js → pathTracer-DgL1_83l.js} +2 -2
  64. package/web/assets/{pendingMatte-BWBIWajI.js → pendingMatte-DPTe6xoZ.js} +2 -2
  65. package/web/assets/peopleMatte-C1hruEM6.js +1 -0
  66. package/web/assets/{personAi-EhBknW6X.js → personAi-Cjg9KKeH.js} +2 -2
  67. package/web/assets/{personHq-Ca351o06.js → personHq-CBP8v_cw.js} +2 -2
  68. package/web/assets/photo.worker-DK_ulTzR.js +1 -0
  69. package/web/assets/photoRun-lZ2BdSEk.js +2 -0
  70. package/web/assets/photoTools-DmUh69Qk.js +1 -0
  71. package/web/assets/plateCamera-DLqlXhMp.js +1 -0
  72. package/web/assets/{plateCameraMatch-GPZl1fQQ.js → plateCameraMatch-4VUlUMi-.js} +2 -2
  73. package/web/assets/{plateFollow-CJUilsNV.js → plateFollow-D2rjnmZA.js} +2 -2
  74. package/web/assets/plateMatte-0tTG7oeO.js +2 -0
  75. package/web/assets/{pluginAutomation-DAPHWZPN.js → pluginAutomation-ClFdpcCR.js} +1 -1
  76. package/web/assets/popTools-B38V4wub.js +1 -0
  77. package/web/assets/{poseTracker-CzEKvJph.js → poseTracker-qtuytI-L.js} +1 -1
  78. package/web/assets/{productTools-ce-zyZO0.js → productTools-DlC5vWjx.js} +2 -2
  79. package/web/assets/remote-CpkPQOQH.js +989 -0
  80. package/web/assets/{rigTrack-DMyqb0pb.js → rigTrack-BbKqZGs7.js} +1 -1
  81. package/web/assets/{rotoMaskStore-pE1AIt3I.js → rotoMaskStore-BZBJLcCp.js} +1 -1
  82. package/web/assets/{rotoMatte-7b7Ow64f.js → rotoMatte-BI-vjjrv.js} +1 -1
  83. package/web/assets/rotoscope-DuNcCxQy.js +1 -0
  84. package/web/assets/{sceneTrack-DlAH5s74.js → sceneTrack-CO4fTjft.js} +1 -1
  85. package/web/assets/{sceneTrack-CA21MCOP.js → sceneTrack-_n6WKKQv.js} +1 -1
  86. package/web/assets/{sceneTrack.worker-COlhlHRe.js → sceneTrack.worker-f2d-WOzw.js} +1496 -954
  87. package/web/assets/{shot-worker-DL1ZoIym.js → shot-worker-BSmfIXHO.js} +1 -1
  88. package/web/assets/{shotFxAgent-DqngnGFb.js → shotFxAgent-L2GG88W3.js} +1 -1
  89. package/web/assets/{skin-xFScwS3T.js → skin-CirUiqcr.js} +1 -1
  90. package/web/assets/{spark.module-DjaIF6J1.js → spark.module-3Q8DniuL.js} +1 -1
  91. package/web/assets/{spellDuel-BYNtnE8f.js → spellDuel-2CDLbiLQ.js} +2 -2
  92. package/web/assets/{store-CpqHUcA2.js → store-D3Y663py.js} +1 -1
  93. package/web/assets/{surfaceLight-C7YI9SV8.js → surfaceLight--HQj7xhO.js} +1 -1
  94. package/web/assets/{surfacePin-CzpUj1Cw.js → surfacePin-BCmgw-40.js} +2 -2
  95. package/web/assets/{textAnimators-B9vO_hbP.js → textAnimators-C4eMnVRD.js} +1 -1
  96. package/web/assets/{thumb-BTFsBS1u.js → thumb-M9B_goj-.js} +1 -1
  97. package/web/assets/{timeline3d-DrFaMPPB.js → timeline3d-BcW68fQr.js} +2 -2
  98. package/web/assets/{timeline3dExport-Uo0S0CR0.js → timeline3dExport-DgnorHLm.js} +1 -1
  99. package/web/assets/timelineComp-Ciu9JCWJ.js +1 -0
  100. package/web/assets/timelineOps-f1WsVbgS.js +526 -0
  101. package/web/assets/{timelineProps-0v-s69pw.js → timelineProps-CE1R11Hx.js} +1 -1
  102. package/web/assets/{timelineText-DurRhyuh.js → timelineText-Cppd4KB7.js} +1 -1
  103. package/web/assets/{titleArt-CnC0A7x7.js → titleArt-D0YI5xT2.js} +3 -3
  104. package/web/assets/{titleFrameBudget-DsM0V482.js → titleFrameBudget-h4nOQ5u9.js} +1717 -1175
  105. package/web/assets/titleFrames-DnCzi_AI.js +1 -0
  106. package/web/assets/{tool-D1FpErrX.js → tool-tp6gat1J.js} +1 -1
  107. package/web/assets/{tools-DIvrRu-5.js → tools-C07G9KUM.js} +1 -1
  108. package/web/assets/{toonTools-D9MNdRty.js → toonTools-Cazx2CL7.js} +2 -2
  109. package/web/assets/{trackAnchor-XvUuvkWP.js → trackAnchor-DoqFDcJB.js} +1 -1
  110. package/web/assets/{userFonts-Djka6RJX.js → userFonts-BlVEJfDk.js} +1 -1
  111. package/web/assets/{vfxAlpha-B-JzzRI1.js → vfxAlpha-Bp6VgIGN.js} +1 -1
  112. package/web/assets/vfxBackground-BFq44Srn.js +2 -0
  113. package/web/assets/{videoExport-NN-QijHd.js → videoExport-Cz02XKtX.js} +1 -1
  114. package/web/assets/{views-RQBs4zva.js → views-CNF3Afse.js} +1 -1
  115. package/web/assets/{weaponDuel-DKAEYJjO.js → weaponDuel-ChqBQo_b.js} +1 -1
  116. package/web/assets/{windowFrames-DhhJLIs-.js → windowFrames-dBMXwGek.js} +1 -1
  117. package/web/layer-worker.html +3 -3
  118. package/web/shot-worker.html +24 -24
  119. package/web/assets/ShotComposer-DLxWpdYH.js +0 -287
  120. package/web/assets/ShotComposer-deLi4grZ.css +0 -1
  121. package/web/assets/TimelineShotFx-CyHTgJHj.js +0 -2
  122. package/web/assets/analyzerRun-Cr-_79RH.js +0 -1
  123. package/web/assets/auraTrack-C8eAEIWQ.js +0 -1
  124. package/web/assets/depthEstimate-Cav4MmQ1.js +0 -1
  125. package/web/assets/distortFrames-D_v-aSVO.js +0 -2
  126. package/web/assets/distortGL-vhnBRB59.js +0 -12
  127. package/web/assets/exportGlb-D3PrWUvi.js +0 -2
  128. package/web/assets/gpuExport-oA2mUsdm.js +0 -198
  129. package/web/assets/i18n-C9zFX25m.js +0 -3
  130. package/web/assets/layer-worker-ClVZG6ZW.js +0 -5
  131. package/web/assets/library-BK0QVG4O.js +0 -1
  132. package/web/assets/main-CwrkBJ63.js +0 -309
  133. package/web/assets/maskTrack-D4QZfMWc.js +0 -1
  134. package/web/assets/matteFixRun-CytaeRzS.js +0 -1
  135. package/web/assets/plateCamera-BcdXD1uI.js +0 -1
  136. package/web/assets/plateMatte-CoEoVjxZ.js +0 -2
  137. package/web/assets/remote-8XzEAnAJ.js +0 -974
  138. package/web/assets/rotoscope-BUqNTKLd.js +0 -1
  139. package/web/assets/timelineComp-i-zdaoB2.js +0 -1
  140. package/web/assets/timelineOps-DSSaDsU2.js +0 -525
  141. package/web/assets/titleFrames-C8kvflgT.js +0 -1
  142. package/web/assets/vfxBackground-b053ziDK.js +0 -2
@@ -0,0 +1,206 @@
1
+ clipoox_photo_bg.wasm — third-party software it contains
2
+ ======================================================
3
+
4
+ Built from native/clipoox-photo (scripts/build-photo-wasm.sh). It contains PhotoCraft's image algorithms
5
+ (https://github.com/storytold/photocraft, commit f0205ae336c962bc248c2feafa728b9c77ef7ee8), used under the MIT License
6
+ (PhotoCraft is MIT OR Apache-2.0), and the Rust crates listed at the end, each under its own permissive licence.
7
+
8
+ PhotoCraft — MIT License
9
+ ------------------------
10
+ MIT License
11
+
12
+ Copyright (c) 2026 ArtCraft Team and the PhotoCraft contributors
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+
32
+ Crates compiled into the file (name version | licence)
33
+ ------------------------------------------------------
34
+ accesskit v0.25.2 | MIT OR Apache-2.0
35
+ adler2 v2.0.1 | 0BSD OR MIT OR Apache-2.0
36
+ alloc-no-stdlib v2.0.4 | BSD-3-Clause
37
+ alloc-no-stdlib v3.0.0 | BSD-3-Clause
38
+ alloc-stdlib v0.2.4 | BSD-3-Clause
39
+ alloc-stdlib v0.3.0 | BSD-3-Clause
40
+ arrayvec v0.7.8 | MIT OR Apache-2.0
41
+ bitflags v2.13.2 | MIT OR Apache-2.0
42
+ block-buffer v0.10.4 | MIT OR Apache-2.0
43
+ brotli-decompressor v5.0.3 | BSD-3-Clause/MIT
44
+ brotli-decompressor v6.4.0 | BSD-3-Clause/MIT
45
+ bumpalo v3.20.4 | MIT OR Apache-2.0
46
+ bytemuck v1.25.2 | Zlib OR Apache-2.0 OR MIT
47
+ calendrical_calculations v0.2.4 | Apache-2.0
48
+ cfg-if v1.0.5 | MIT OR Apache-2.0
49
+ chrono v0.4.45 | MIT OR Apache-2.0
50
+ clipoox-photo v0.1.0 (/Users/cauhaidigital/Documents/GitHub/clipoox-canvas/.claude/worktrees/fast-render/native/clipoox-photo) | MIT OR Apache-2.0
51
+ cobs v0.3.0 | MIT OR Apache-2.0
52
+ core_maths v0.1.1 | MIT
53
+ craft v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
54
+ craft-atomic v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
55
+ craft-behavior v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
56
+ craft-cms v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
57
+ craft-color v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
58
+ craft-color-transform v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
59
+ craft-color-ui v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
60
+ craft-crw v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
61
+ craft-develop v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
62
+ craft-develop-model v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
63
+ craft-docpath v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
64
+ craft-geom v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
65
+ craft-host v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
66
+ craft-i18n v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
67
+ craft-imaging v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
68
+ craft-keymap v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
69
+ craft-metadata v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
70
+ craft-platform v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
71
+ craft-raw v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
72
+ craft-settings v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
73
+ craft-theme v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
74
+ craft-tiff v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
75
+ craft-tracked v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
76
+ craft-ui-macros v0.1.0 (proc-macro) (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
77
+ craft-window v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
78
+ craft-xml v0.1.0 (https://github.com/storytold/craft-libs?rev=5c30761a86c2bb1814098139439be7c5b0a9e31c#5c30761a) | MIT OR Apache-2.0
79
+ crc32fast v1.5.6 | MIT OR Apache-2.0
80
+ crossbeam-deque v0.8.8 | MIT OR Apache-2.0
81
+ crossbeam-epoch v0.9.21 | MIT OR Apache-2.0
82
+ crossbeam-utils v0.8.23 | MIT OR Apache-2.0
83
+ crypto-common v0.1.7 | MIT OR Apache-2.0
84
+ digest v0.10.7 | MIT OR Apache-2.0
85
+ displaydoc v0.2.7 (proc-macro) | MIT OR Apache-2.0
86
+ ecolor v0.37.0 | MIT OR Apache-2.0
87
+ either v1.19.0 | MIT OR Apache-2.0
88
+ emath v0.37.0 | MIT OR Apache-2.0
89
+ equivalent v1.0.3 | Apache-2.0 OR MIT
90
+ fixed_decimal v0.7.3 | Unicode-3.0
91
+ futures-core v0.3.34 | MIT OR Apache-2.0
92
+ futures-task v0.3.34 | MIT OR Apache-2.0
93
+ futures-util v0.3.34 | MIT OR Apache-2.0
94
+ generic-array v0.14.7 | MIT
95
+ hashbrown v0.17.2 | MIT OR Apache-2.0
96
+ icu_calendar v2.3.0 | Unicode-3.0
97
+ icu_collections v2.3.0 | Unicode-3.0
98
+ icu_datetime v2.3.0 | Unicode-3.0
99
+ icu_decimal v2.3.0 | Unicode-3.0
100
+ icu_locale_core v2.3.0 | Unicode-3.0
101
+ icu_locale_fallback v2.3.0 | Unicode-3.0
102
+ icu_locale_fallback_data v2.3.0 | Unicode-3.0
103
+ icu_normalizer v2.3.0 | Unicode-3.0
104
+ icu_normalizer_data v2.3.0 | Unicode-3.0
105
+ icu_pattern v0.5.1 | Unicode-3.0
106
+ icu_plurals v2.3.0 | Unicode-3.0
107
+ icu_properties v2.3.0 | Unicode-3.0
108
+ icu_properties_data v2.3.0 | Unicode-3.0
109
+ icu_provider v2.3.1 | Unicode-3.0
110
+ icu_provider_adapters v2.3.0 | Unicode-3.0
111
+ icu_provider_blob v2.3.0 | Unicode-3.0
112
+ icu_time v2.3.0 | Unicode-3.0
113
+ indexmap v2.14.2 | Apache-2.0 OR MIT
114
+ itoa v1.0.19 | MIT OR Apache-2.0
115
+ js-sys v0.3.107 | MIT OR Apache-2.0
116
+ jxl-bitstream v1.1.0 | MIT OR Apache-2.0
117
+ jxl-coding v1.0.1 | MIT OR Apache-2.0
118
+ jxl-color v0.11.0 | MIT OR Apache-2.0
119
+ jxl-frame v0.13.3 | MIT OR Apache-2.0
120
+ jxl-grid v0.6.2 | MIT OR Apache-2.0
121
+ jxl-image v0.13.0 | MIT OR Apache-2.0
122
+ jxl-jbr v0.2.1 | MIT OR Apache-2.0
123
+ jxl-modular v0.11.3 | MIT OR Apache-2.0
124
+ jxl-oxide v0.12.6 | MIT OR Apache-2.0
125
+ jxl-oxide-common v1.0.0 | MIT OR Apache-2.0
126
+ jxl-render v0.12.4 | MIT OR Apache-2.0
127
+ jxl-threadpool v1.0.0 | MIT OR Apache-2.0
128
+ jxl-vardct v0.11.1 | MIT OR Apache-2.0
129
+ kurbo v0.13.1 | Apache-2.0 OR MIT
130
+ libm v0.2.16 | MIT
131
+ litemap v0.8.3 | Unicode-3.0
132
+ log v0.4.35 | MIT OR Apache-2.0
133
+ lz4_flex v0.11.7 | MIT
134
+ md-5 v0.10.6 | MIT OR Apache-2.0
135
+ memchr v2.8.3 | Unlicense OR MIT
136
+ miniz_oxide v0.9.1 | MIT OR Zlib OR Apache-2.0
137
+ num-complex v0.4.6 | MIT OR Apache-2.0
138
+ num-integer v0.1.47 | MIT OR Apache-2.0
139
+ num-traits v0.2.19 | MIT OR Apache-2.0
140
+ once_cell v1.21.4 | MIT OR Apache-2.0
141
+ photocraft-algo v0.23.1 (https://github.com/storytold/photocraft?rev=f0205ae336c962bc248c2feafa728b9c77ef7ee8#f0205ae3) | MIT OR Apache-2.0
142
+ photocraft-color v0.23.1 (https://github.com/storytold/photocraft?rev=f0205ae336c962bc248c2feafa728b9c77ef7ee8#f0205ae3) | MIT OR Apache-2.0
143
+ photocraft-geom v0.23.1 (https://github.com/storytold/photocraft?rev=f0205ae336c962bc248c2feafa728b9c77ef7ee8#f0205ae3) | MIT OR Apache-2.0
144
+ photocraft-raster v0.23.1 (https://github.com/storytold/photocraft?rev=f0205ae336c962bc248c2feafa728b9c77ef7ee8#f0205ae3) | MIT OR Apache-2.0
145
+ pin-project-lite v0.2.18 | Apache-2.0 OR MIT
146
+ polycool v0.4.0 | MIT OR Apache-2.0
147
+ postcard v1.2.0 | MIT OR Apache-2.0
148
+ potential_utf v0.1.6 | Unicode-3.0
149
+ primal-check v0.3.4 | MIT OR Apache-2.0
150
+ proc-macro-crate v3.5.0 | MIT OR Apache-2.0
151
+ proc-macro2 v1.0.107 | MIT OR Apache-2.0
152
+ quick-xml v0.41.0 | MIT
153
+ quote v1.0.47 | MIT OR Apache-2.0
154
+ rayon v1.12.0 | MIT OR Apache-2.0
155
+ rayon-core v1.13.0 | MIT OR Apache-2.0
156
+ rustfft v6.4.1 | MIT OR Apache-2.0
157
+ serde v1.0.229 | MIT OR Apache-2.0
158
+ serde_core v1.0.229 | MIT OR Apache-2.0
159
+ serde_derive v1.0.229 (proc-macro) | MIT OR Apache-2.0
160
+ serde_json v1.0.154 | MIT OR Apache-2.0
161
+ serde_spanned v1.1.3 | MIT OR Apache-2.0
162
+ slab v0.4.12 | MIT
163
+ smallvec v1.16.6 | MIT OR Apache-2.0
164
+ stable_deref_trait v1.2.1 | MIT OR Apache-2.0
165
+ strength_reduce v0.2.4 | MIT OR Apache-2.0
166
+ syn v2.0.119 | MIT OR Apache-2.0
167
+ syn v3.0.10 | MIT OR Apache-2.0
168
+ synstructure v0.14.0 | MIT
169
+ sys-locale v0.3.2 | MIT OR Apache-2.0
170
+ thiserror v2.0.21 | MIT OR Apache-2.0
171
+ thiserror-impl v2.0.21 (proc-macro) | MIT OR Apache-2.0
172
+ tinystr v0.8.5 | Unicode-3.0
173
+ toml v1.2.3+spec-1.1.0 | MIT OR Apache-2.0
174
+ toml_datetime v1.1.3+spec-1.1.0 | MIT OR Apache-2.0
175
+ toml_edit v0.25.21+spec-1.1.0 | MIT OR Apache-2.0
176
+ toml_parser v1.1.7+spec-1.1.0 | MIT OR Apache-2.0
177
+ toml_writer v1.2.0+spec-1.1.0 | MIT OR Apache-2.0
178
+ tracing v0.1.44 | MIT
179
+ tracing-core v0.1.36 | MIT
180
+ transpose v0.2.3 | MIT OR Apache-2.0
181
+ typenum v1.20.1 | MIT OR Apache-2.0
182
+ unicode-bidi v0.3.18 | MIT OR Apache-2.0
183
+ unicode-ident v1.0.27 | (MIT OR Apache-2.0) AND Unicode-3.0
184
+ utf16_iter v1.1.0 | Apache-2.0 OR MIT
185
+ utf8_iter v1.1.0 | Apache-2.0 OR MIT
186
+ utf_types v1.0.0 | Apache-2.0 OR MIT
187
+ uuid v1.29.3 | Apache-2.0 OR MIT
188
+ wasm-bindgen v0.2.130 | MIT OR Apache-2.0
189
+ wasm-bindgen-macro v0.2.130 (proc-macro) | MIT OR Apache-2.0
190
+ wasm-bindgen-macro-support v0.2.130 | MIT OR Apache-2.0
191
+ wasm-bindgen-shared v0.2.130 | MIT OR Apache-2.0
192
+ web-sys v0.3.107 | MIT OR Apache-2.0
193
+ web-time v1.1.0 | MIT OR Apache-2.0
194
+ winnow v1.0.5 | MIT
195
+ write16 v1.0.0 | Apache-2.0 OR MIT
196
+ writeable v0.6.4 | Unicode-3.0
197
+ yoke v0.8.4 | Unicode-3.0
198
+ yoke-derive v0.8.4 (proc-macro) | Unicode-3.0
199
+ zerofrom v0.1.8 | Unicode-3.0
200
+ zerofrom-derive v0.1.8 (proc-macro) | Unicode-3.0
201
+ zerotrie v0.2.5 | Unicode-3.0
202
+ zerovec v0.11.9 | Unicode-3.0
203
+ zerovec-derive v0.11.7 (proc-macro) | Unicode-3.0
204
+ zmij v1.0.23 | MIT
205
+ zune-core v0.5.3 | MIT OR Apache-2.0 OR Zlib
206
+ zune-jpeg v0.5.15 | MIT OR Apache-2.0 OR Zlib
@@ -0,0 +1,396 @@
1
+ /**
2
+ * Content-Aware Fill: `hole` rebuilt from the picture (Photoshop's automatic sampling area) — also fills an expanded border.
3
+ * @param {Uint8Array | number[]} rgba
4
+ * @param {number} w
5
+ * @param {number} h
6
+ * @param {Uint8Array | number[]} hole
7
+ * @param {number} seed
8
+ * @returns {Uint8Array}
9
+ */
10
+ export function content_fill(rgba, w, h, hole, seed) {
11
+ const val3 = +w;
12
+ const val4 = +h;
13
+ const val5 = +seed;
14
+ let ptr0, len0, ptr1, len1;
15
+ try {
16
+ ptr0 = passArray8ToWasm0(rgba, wasm.__wbindgen_malloc);
17
+ len0 = WASM_VECTOR_LEN;
18
+ ptr1 = passArray8ToWasm0(hole, wasm.__wbindgen_malloc);
19
+ len1 = WASM_VECTOR_LEN;
20
+ } catch (e) {
21
+ if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
22
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
23
+ throw e;
24
+ }
25
+ const ret = wasm.content_fill(ptr0, len0, val3, val4, ptr1, len1, val5);
26
+ if (ret[3]) {
27
+ throw takeFromExternrefTable0(ret[2]);
28
+ }
29
+ var v6 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
30
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
31
+ return v6;
32
+ }
33
+
34
+ /**
35
+ * One of PhotoCraft's filters (`{"filter": "gaussianBlur", "radius": 8}` …, Photoshop's dialog units) on an RGBA8 picture.
36
+ * `mask` (w*h, 0..255, optional): where it applies (the filtered picture mixed with the original by it).
37
+ * @param {string} params
38
+ * @param {Uint8Array | number[]} rgba
39
+ * @param {number} w
40
+ * @param {number} h
41
+ * @param {Uint8Array | number[] | null} [mask]
42
+ * @returns {Uint8Array}
43
+ */
44
+ export function filter(params, rgba, w, h, mask) {
45
+ const val4 = +w;
46
+ const val5 = +h;
47
+ let ptr0, len0, ptr1, len1, ptr2, len2;
48
+ try {
49
+ ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
50
+ len0 = WASM_VECTOR_LEN;
51
+ ptr1 = passArray8ToWasm0(rgba, wasm.__wbindgen_malloc);
52
+ len1 = WASM_VECTOR_LEN;
53
+ ptr2 = isLikeNone(mask) ? 0 : passArray8ToWasm0(mask, wasm.__wbindgen_malloc);
54
+ len2 = WASM_VECTOR_LEN;
55
+ } catch (e) {
56
+ if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
57
+ if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
58
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
59
+ throw e;
60
+ }
61
+ const ret = wasm.filter(ptr0, len0, ptr1, len1, val4, val5, ptr2, len2);
62
+ if (ret[3]) {
63
+ throw takeFromExternrefTable0(ret[2]);
64
+ }
65
+ var v6 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
66
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
67
+ return v6;
68
+ }
69
+
70
+ /**
71
+ * Refine Edge on a coverage mask (w*h 0..255) with the picture as guide: radius px, smart radius, feather px, contrast 0–100, shift −100–100.
72
+ * @param {Uint8Array | number[]} rgba
73
+ * @param {number} w
74
+ * @param {number} h
75
+ * @param {Uint8Array | number[]} mask
76
+ * @param {number} radius
77
+ * @param {boolean} smart
78
+ * @param {number} feather
79
+ * @param {number} contrast
80
+ * @param {number} shift
81
+ * @returns {Uint8Array}
82
+ */
83
+ export function refine_mask(rgba, w, h, mask, radius, smart, feather, contrast, shift) {
84
+ const val3 = +w;
85
+ const val4 = +h;
86
+ const val5 = +radius;
87
+ const val6 = +smart;
88
+ const val7 = +feather;
89
+ const val8 = +contrast;
90
+ const val9 = +shift;
91
+ let ptr0, len0, ptr1, len1;
92
+ try {
93
+ ptr0 = passArray8ToWasm0(rgba, wasm.__wbindgen_malloc);
94
+ len0 = WASM_VECTOR_LEN;
95
+ ptr1 = passArray8ToWasm0(mask, wasm.__wbindgen_malloc);
96
+ len1 = WASM_VECTOR_LEN;
97
+ } catch (e) {
98
+ if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
99
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
100
+ throw e;
101
+ }
102
+ const ret = wasm.refine_mask(ptr0, len0, val3, val4, ptr1, len1, val5, val6, val7, val8, val9);
103
+ if (ret[3]) {
104
+ throw takeFromExternrefTable0(ret[2]);
105
+ }
106
+ var v10 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
107
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
108
+ return v10;
109
+ }
110
+
111
+ /**
112
+ * Remove Tool: what `hole` (w*h, >127 = remove) covers is rebuilt from its surroundings (patch-based completion).
113
+ * @param {Uint8Array | number[]} rgba
114
+ * @param {number} w
115
+ * @param {number} h
116
+ * @param {Uint8Array | number[]} hole
117
+ * @param {number} grow
118
+ * @param {number} seed
119
+ * @returns {Uint8Array}
120
+ */
121
+ export function remove_area(rgba, w, h, hole, grow, seed) {
122
+ const val3 = +w;
123
+ const val4 = +h;
124
+ const val5 = +grow;
125
+ const val6 = +seed;
126
+ let ptr0, len0, ptr1, len1;
127
+ try {
128
+ ptr0 = passArray8ToWasm0(rgba, wasm.__wbindgen_malloc);
129
+ len0 = WASM_VECTOR_LEN;
130
+ ptr1 = passArray8ToWasm0(hole, wasm.__wbindgen_malloc);
131
+ len1 = WASM_VECTOR_LEN;
132
+ } catch (e) {
133
+ if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
134
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
135
+ throw e;
136
+ }
137
+ const ret = wasm.remove_area(ptr0, len0, val3, val4, ptr1, len1, val5, val6);
138
+ if (ret[3]) {
139
+ throw takeFromExternrefTable0(ret[2]);
140
+ }
141
+ var v7 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
142
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
143
+ return v7;
144
+ }
145
+
146
+ /**
147
+ * Select Subject (classical saliency + GrabCut): the main subject's coverage, w*h bytes (empty when none).
148
+ * @param {Uint8Array | number[]} rgba
149
+ * @param {number} w
150
+ * @param {number} h
151
+ * @returns {Uint8Array}
152
+ */
153
+ export function select_subject(rgba, w, h) {
154
+ const val2 = +w;
155
+ const val3 = +h;
156
+ const ptr0 = passArray8ToWasm0(rgba, wasm.__wbindgen_malloc);
157
+ const len0 = WASM_VECTOR_LEN;
158
+ const ret = wasm.select_subject(ptr0, len0, val2, val3);
159
+ if (ret[3]) {
160
+ throw takeFromExternrefTable0(ret[2]);
161
+ }
162
+ var v4 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
163
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
164
+ return v4;
165
+ }
166
+ function __wbg_get_imports() {
167
+ const import0 = {
168
+ __proto__: null,
169
+ __wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
170
+ throw new Error(getStringFromWasm0(arg0, arg1));
171
+ },
172
+ __wbindgen_generic_0000000000000001: function(arg0, arg1) {
173
+ // Cast intrinsic for `Ref(String) -> Externref`.
174
+ const ret = getStringFromWasm0(arg0, arg1);
175
+ return ret;
176
+ },
177
+ __wbindgen_init_externref_table: function() {
178
+ const table = wasm.__wbindgen_externrefs;
179
+ table.set(0, undefined);
180
+ table.set(1024, undefined);
181
+ table.set(1025, null);
182
+ table.set(1026, true);
183
+ table.set(1027, false);
184
+ },
185
+ };
186
+ return {
187
+ __proto__: null,
188
+ "./clipoox_photo_bg.js": import0,
189
+ };
190
+ }
191
+
192
+ function getArrayU8FromWasm0(ptr, len) {
193
+ ptr = ptr >>> 0;
194
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
195
+ }
196
+
197
+ function getStringFromWasm0(ptr, len) {
198
+ ptr = ptr >>> 0;
199
+ return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
200
+ }
201
+
202
+ let cachedUint8ArrayMemory0 = null;
203
+ function getUint8ArrayMemory0() {
204
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
205
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
206
+ }
207
+ return cachedUint8ArrayMemory0;
208
+ }
209
+
210
+ function isLikeNone(x) {
211
+ return x === undefined || x === null;
212
+ }
213
+
214
+ function passArray8ToWasm0(arg, malloc) {
215
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
216
+ getUint8ArrayMemory0().set(arg, ptr / 1);
217
+ WASM_VECTOR_LEN = arg.length;
218
+ return ptr;
219
+ }
220
+
221
+ function passStringToWasm0(arg, malloc, realloc) {
222
+ if (realloc === undefined) {
223
+ const buf = cachedTextEncoder.encode(arg);
224
+ const ptr = malloc(buf.length, 1) >>> 0;
225
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
226
+ WASM_VECTOR_LEN = buf.length;
227
+ return ptr;
228
+ }
229
+
230
+ let len = arg.length;
231
+ let ptr = malloc(len, 1) >>> 0;
232
+
233
+ const mem = getUint8ArrayMemory0();
234
+
235
+ let offset = 0;
236
+
237
+ for (; offset < len; offset++) {
238
+ const code = arg.charCodeAt(offset);
239
+ if (code > 0x7F) break;
240
+ mem[ptr + offset] = code;
241
+ }
242
+ if (offset !== len) {
243
+ if (offset !== 0) {
244
+ arg = arg.slice(offset);
245
+ }
246
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
247
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
248
+ const ret = cachedTextEncoder.encodeInto(arg, view);
249
+
250
+ offset += ret.written;
251
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
252
+ }
253
+
254
+ WASM_VECTOR_LEN = offset;
255
+ return ptr;
256
+ }
257
+
258
+ function takeFromExternrefTable0(idx) {
259
+ const value = wasm.__wbindgen_externrefs.get(idx);
260
+ wasm.__externref_table_dealloc(idx);
261
+ return value;
262
+ }
263
+
264
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
265
+ cachedTextDecoder.decode();
266
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
267
+ let numBytesDecoded = 0;
268
+ function decodeText(bytes) {
269
+ numBytesDecoded += bytes.length;
270
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
271
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
272
+ cachedTextDecoder.decode();
273
+ numBytesDecoded = bytes.length;
274
+ }
275
+ return cachedTextDecoder.decode(bytes);
276
+ }
277
+
278
+ const cachedTextEncoder = new TextEncoder();
279
+
280
+ if (!('encodeInto' in cachedTextEncoder)) {
281
+ cachedTextEncoder.encodeInto = function (arg, view) {
282
+ const buf = cachedTextEncoder.encode(arg);
283
+ view.set(buf);
284
+ return {
285
+ read: arg.length,
286
+ written: buf.length
287
+ };
288
+ };
289
+ }
290
+
291
+ let WASM_VECTOR_LEN = 0;
292
+
293
+ let wasmModule, wasmInstance, wasm;
294
+ function __wbg_finalize_init(instance, module) {
295
+ wasmInstance = instance;
296
+ wasm = instance.exports;
297
+ wasmModule = module;
298
+ cachedUint8ArrayMemory0 = null;
299
+ wasm.__wbindgen_start();
300
+ return wasm;
301
+ }
302
+
303
+ async function __wbg_load(module, imports) {
304
+ if (typeof Response === 'function' && module instanceof Response) {
305
+ if (!module.ok) {
306
+ throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
307
+ }
308
+
309
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
310
+ try {
311
+ return await WebAssembly.instantiateStreaming(module, imports);
312
+ } catch (e) {
313
+ const validResponse = expectedResponseType(module.type);
314
+
315
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
316
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
317
+
318
+ } else { throw e; }
319
+ }
320
+ }
321
+
322
+ const bytes = await module.arrayBuffer();
323
+ return await WebAssembly.instantiate(bytes, imports);
324
+ } else {
325
+ const instance = await WebAssembly.instantiate(module, imports);
326
+
327
+ if (instance instanceof WebAssembly.Instance) {
328
+ return { instance, module };
329
+ } else {
330
+ return instance;
331
+ }
332
+ }
333
+
334
+ function expectedResponseType(type) {
335
+ switch (type) {
336
+ case 'basic': case 'cors': case 'default': return true;
337
+ }
338
+ return false;
339
+ }
340
+ }
341
+
342
+ function initSync(module) {
343
+ if (wasm !== undefined) return wasm;
344
+
345
+
346
+ if (module !== undefined) {
347
+ if (Object.getPrototypeOf(module) === Object.prototype) {
348
+ ({module} = module)
349
+ } else {
350
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
351
+ }
352
+ }
353
+
354
+ const imports = __wbg_get_imports();
355
+ if (!(module instanceof WebAssembly.Module)) {
356
+ module = new WebAssembly.Module(module);
357
+ }
358
+ const instance = new WebAssembly.Instance(module, imports);
359
+ return __wbg_finalize_init(instance, module);
360
+ }
361
+
362
+ let __wbg_init_promise;
363
+ async function __wbg_init(module_or_path) {
364
+ if (wasm !== undefined) return wasm;
365
+ if (__wbg_init_promise === undefined) {
366
+ __wbg_init_promise = __wbg_init_once(module_or_path);
367
+ __wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
368
+ }
369
+ return __wbg_init_promise;
370
+ }
371
+
372
+ async function __wbg_init_once(module_or_path) {
373
+
374
+ if (module_or_path !== undefined) {
375
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
376
+ ({module_or_path} = module_or_path)
377
+ } else {
378
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
379
+ }
380
+ }
381
+
382
+ if (module_or_path === undefined) {
383
+ module_or_path = new URL('clipoox_photo_bg.wasm', import.meta.url);
384
+ }
385
+ const imports = __wbg_get_imports();
386
+
387
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
388
+ module_or_path = fetch(module_or_path);
389
+ }
390
+
391
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
392
+
393
+ return __wbg_finalize_init(instance, module);
394
+ }
395
+
396
+ export { initSync, __wbg_init as default };
@@ -1 +1 @@
1
- import{j as d,$ as y,a0 as w}from"./remote-8XzEAnAJ.js";import{r as p}from"./index-CKtv7gGE.js";import{t as b,a as E,d as u}from"./thumb-BTFsBS1u.js";import"./i18n-C9zFX25m.js";import"./api-Dnl2uaKO.js";import"./titleFrameBudget-DsM0V482.js";import"./three.module-Bx43vjkH.js";import"./gltfLoader-U0Eebg7v.js";import"./store-CpqHUcA2.js";import"./rotoMaskStore-pE1AIt3I.js";import"./sceneTrack-DlAH5s74.js";import"./timelineOps-DSSaDsU2.js";import"./cameraTracker-DHdF8Zqx.js";import"./textAnimators-B9vO_hbP.js";import"./timelineComp-i-zdaoB2.js";import"./rigTrack-DMyqb0pb.js";import"./clientJobs-CuuUyhEy.js";const j=["https://admin.clipoox.com","http://localhost:3000","http://localhost:5173"],x=960,h=540;function F(i){const e=i&&typeof i=="object"?i:{},m=y({...e,name:String(e.name||"preview").slice(0,60),category:e.category||"tu-tien"});let o=5381;for(const l of JSON.stringify(m))o=(o<<5)+o+l.charCodeAt(0)|0;return w({id:(o>>>0).toString(16).padStart(32,"0"),...m})}function U(){const i=p.useRef(null),[e,m]=p.useState(null),[o,l]=p.useState("");return p.useEffect(()=>{const s=(t,a)=>t.source?.postMessage(a,{targetOrigin:t.origin}),c=t=>{if(!j.includes(t.origin)||t.source!==window.parent||!t.data||typeof t.data!="object")return;const a="id"in t.data?t.data.id:null;let n;try{n=F(t.data.fx)}catch(r){t.data.type==="clipoox-fx-play"&&l(r.message),s(t,{type:"clipoox-fx-error",id:a,error:r.message});return}if(t.data.type==="clipoox-fx-play"){l(""),m(n);return}if(t.data.type==="clipoox-fx-thumb")try{const r=Object.assign(document.createElement("canvas"),{width:480,height:270}),f=r.getContext("2d");if(!f)throw Error("canvas");const g=Number.isFinite(t.data.t)?Math.max(0,Number(t.data.t)):E(n);u(f,n,g,480,270),s(t,{type:"clipoox-fx-thumb",id:a,webp:r.toDataURL("image/webp",.85)})}catch(r){s(t,{type:"clipoox-fx-error",id:a,error:r.message})}};return window.addEventListener("message",c),window.parent?.postMessage({type:"clipoox-fx-ready"},"*"),()=>window.removeEventListener("message",c)},[]),p.useEffect(()=>{const s=i.current,c=s?.getContext("2d");if(!e||!s||!c)return;let t=0;const a=performance.now(),n=b(e),r=()=>{u(c,e,(performance.now()-a)/1e3%n,x,h),t=requestAnimationFrame(r)};return t=requestAnimationFrame(r),()=>cancelAnimationFrame(t)},[e]),d.jsxs("div",{style:{margin:0,background:"#0a0e14",width:"100vw",height:"100vh",display:"grid",placeItems:"center"},children:[d.jsx("canvas",{ref:i,width:x,height:h,style:{maxWidth:"100%",maxHeight:"100vh",objectFit:"contain"},"aria-label":"FX preview"}),o&&d.jsx("p",{role:"alert",style:{position:"fixed",bottom:8,left:8,right:8,color:"#ff8080",font:"12px sans-serif"},children:o})]})}export{U as default,F as previewEntry};
1
+ import{j as d,$ as y,a0 as w}from"./remote-CpkPQOQH.js";import{r as p}from"./index-CKtv7gGE.js";import{t as b,a as E,d as u}from"./thumb-M9B_goj-.js";import"./i18n-ClNt3LKg.js";import"./api-CZoVJ9Fy.js";import"./titleFrameBudget-h4nOQ5u9.js";import"./three.module-Bx43vjkH.js";import"./gltfLoader-U0Eebg7v.js";import"./store-D3Y663py.js";import"./rotoMaskStore-BZBJLcCp.js";import"./sceneTrack-CO4fTjft.js";import"./timelineOps-f1WsVbgS.js";import"./cameraTracker-Df9jWmz6.js";import"./textAnimators-C4eMnVRD.js";import"./timelineComp-Ciu9JCWJ.js";import"./rigTrack-BbKqZGs7.js";import"./clientJobs-CuuUyhEy.js";const j=["https://admin.clipoox.com","http://localhost:3000","http://localhost:5173"],x=960,h=540;function F(i){const e=i&&typeof i=="object"?i:{},m=y({...e,name:String(e.name||"preview").slice(0,60),category:e.category||"tu-tien"});let o=5381;for(const l of JSON.stringify(m))o=(o<<5)+o+l.charCodeAt(0)|0;return w({id:(o>>>0).toString(16).padStart(32,"0"),...m})}function U(){const i=p.useRef(null),[e,m]=p.useState(null),[o,l]=p.useState("");return p.useEffect(()=>{const s=(t,a)=>t.source?.postMessage(a,{targetOrigin:t.origin}),c=t=>{if(!j.includes(t.origin)||t.source!==window.parent||!t.data||typeof t.data!="object")return;const a="id"in t.data?t.data.id:null;let n;try{n=F(t.data.fx)}catch(r){t.data.type==="clipoox-fx-play"&&l(r.message),s(t,{type:"clipoox-fx-error",id:a,error:r.message});return}if(t.data.type==="clipoox-fx-play"){l(""),m(n);return}if(t.data.type==="clipoox-fx-thumb")try{const r=Object.assign(document.createElement("canvas"),{width:480,height:270}),f=r.getContext("2d");if(!f)throw Error("canvas");const g=Number.isFinite(t.data.t)?Math.max(0,Number(t.data.t)):E(n);u(f,n,g,480,270),s(t,{type:"clipoox-fx-thumb",id:a,webp:r.toDataURL("image/webp",.85)})}catch(r){s(t,{type:"clipoox-fx-error",id:a,error:r.message})}};return window.addEventListener("message",c),window.parent?.postMessage({type:"clipoox-fx-ready"},"*"),()=>window.removeEventListener("message",c)},[]),p.useEffect(()=>{const s=i.current,c=s?.getContext("2d");if(!e||!s||!c)return;let t=0;const a=performance.now(),n=b(e),r=()=>{u(c,e,(performance.now()-a)/1e3%n,x,h),t=requestAnimationFrame(r)};return t=requestAnimationFrame(r),()=>cancelAnimationFrame(t)},[e]),d.jsxs("div",{style:{margin:0,background:"#0a0e14",width:"100vw",height:"100vh",display:"grid",placeItems:"center"},children:[d.jsx("canvas",{ref:i,width:x,height:h,style:{maxWidth:"100%",maxHeight:"100vh",objectFit:"contain"},"aria-label":"FX preview"}),o&&d.jsx("p",{role:"alert",style:{position:"fixed",bottom:8,left:8,right:8,color:"#ff8080",font:"12px sans-serif"},children:o})]})}export{U as default,F as previewEntry};