hyperframes 0.8.213 → 0.8.216

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 (219) hide show
  1. package/dist/{add-GRJ6BQMO.js → add-2RWN7JAI.js} +18 -15
  2. package/dist/{agentPromptGenerator-2HTUGEKK.js → agentPromptGenerator-RVE5RWTH.js} +9 -8
  3. package/dist/{animatedGifPrep-7KPZBZXD.js → animatedGifPrep-I32BS5HI.js} +9 -8
  4. package/dist/api.js +20 -19
  5. package/dist/{asset-YVIFFWCU.js → asset-YLZ5UGVE.js} +2 -2
  6. package/dist/{assetCataloger-IZW7LPCT.js → assetCataloger-B4KOZO3V.js} +10 -9
  7. package/dist/{audio-X7274SUF.js → audio-VUOJ7MOJ.js} +180 -64
  8. package/dist/{auth-II6SIDJD.js → auth-3UL65CN7.js} +4 -4
  9. package/dist/{autoUpdate-WJIT74BG.js → autoUpdate-FEK5AHLP.js} +4 -3
  10. package/dist/{backgroundChecks-NMKJAES7.js → backgroundChecks-VJSQ3REH.js} +5 -4
  11. package/dist/backgroundChecksWorker.js +6 -5
  12. package/dist/{batchRender-I7GRY73M.js → batchRender-NC6SUDYN.js} +4 -4
  13. package/dist/{beats-6VXALJZT.js → beats-KSUZ23LE.js} +25 -19
  14. package/dist/{benchmark-RLIRA74V.js → benchmark-TRVQ7EPQ.js} +15 -12
  15. package/dist/{browser-7T3JMNTR.js → browser-3LJ3SLQ4.js} +10 -7
  16. package/dist/{bundleWithLocalizedFonts-C2LP6QZZ.js → bundleWithLocalizedFonts-Y7VGIRFK.js} +2 -2
  17. package/dist/{capture-V4HWHG7C.js → capture-NC5OO4D2.js} +3 -3
  18. package/dist/{capture-OZFDTN4A.js → capture-NT2SOO5J.js} +17 -16
  19. package/dist/{captureCompositionFrame-WZAVXCRQ.js → captureCompositionFrame-PAJRNURH.js} +15 -14
  20. package/dist/{catalog-UFC7JS4T.js → catalog-BOGZ2BQD.js} +19 -16
  21. package/dist/{catch-up-YBNKJDWJ.js → catch-up-FGF5SAEW.js} +10 -7
  22. package/dist/{check-ESQJHRGA.js → check-IG6NIMSC.js} +46 -43
  23. package/dist/{checkAudio-OIIBWFBF.js → checkAudio-6B2FKTIU.js} +14 -13
  24. package/dist/{checkBrowser-WAWL6TKX.js → checkBrowser-D6MZRCTH.js} +39 -36
  25. package/dist/{chunk-7LOVQRUJ.js → chunk-2JV6FKNZ.js} +3 -3
  26. package/dist/{chunk-WSEPFRJV.js → chunk-3AOXAXTA.js} +1 -1
  27. package/dist/{chunk-6LDHXB4Z.js → chunk-3F2DTPBD.js} +3 -2
  28. package/dist/{chunk-V2H5UABS.js → chunk-3S2WWGJJ.js} +3 -3
  29. package/dist/{chunk-ENE4IKFX.js → chunk-43USF7JF.js} +11 -11
  30. package/dist/{chunk-VTX27LET.js → chunk-4EEVTNDU.js} +3 -3
  31. package/dist/{chunk-MFC2PE7D.js → chunk-4MWUMT3T.js} +2 -2
  32. package/dist/chunk-4WEWHZZO.js +24 -0
  33. package/dist/{chunk-7JWRVKN4.js → chunk-4YIKQM4K.js} +1 -1
  34. package/dist/{chunk-SZOCI3JJ.js → chunk-557ZJMFI.js} +2 -2
  35. package/dist/{chunk-DQ26IA5P.js → chunk-5XTOAZMR.js} +1 -1
  36. package/dist/{chunk-LGDRKQKL.js → chunk-6HJUC2VX.js} +3 -3
  37. package/dist/{chunk-MBSESQED.js → chunk-6LQL2BVD.js} +1 -1
  38. package/dist/{chunk-F4EX52FU.js → chunk-7P76YIVS.js} +1 -1
  39. package/dist/{chunk-3OYLHBQZ.js → chunk-7RPXLY6U.js} +1 -1
  40. package/dist/{chunk-KSMCX5EP.js → chunk-ACAU2AK2.js} +4 -4
  41. package/dist/{chunk-I3G45TWG.js → chunk-BHWXSO6T.js} +1 -1
  42. package/dist/{chunk-K4WIOZFP.js → chunk-BR2JQQC5.js} +3 -5
  43. package/dist/{chunk-5ODMV7X6.js → chunk-BTYR7Y3Z.js} +2 -2
  44. package/dist/{chunk-PAZ7WUYZ.js → chunk-BYHG2T5X.js} +2 -2
  45. package/dist/{chunk-G6HUXX3L.js → chunk-CBCZBHGK.js} +4 -2
  46. package/dist/{chunk-ISMOBMWF.js → chunk-CX4TSC7T.js} +98 -37
  47. package/dist/{chunk-DJFEYX23.js → chunk-DFA5GTRJ.js} +1 -1
  48. package/dist/{chunk-KY67MTBH.js → chunk-DYHAZFK3.js} +336 -3
  49. package/dist/{chunk-TCCCAEZD.js → chunk-EB44YMQO.js} +3 -3
  50. package/dist/{chunk-LYON3VGF.js → chunk-EJTVBW42.js} +2 -2
  51. package/dist/{chunk-32NEJ553.js → chunk-FBN2M2HK.js} +28 -0
  52. package/dist/{chunk-QHWVCKC5.js → chunk-FUSUFW2L.js} +1 -1
  53. package/dist/{chunk-L72RQ45A.js → chunk-G3AG7A42.js} +1 -1
  54. package/dist/{chunk-FKFGGAXN.js → chunk-GLC5XHN5.js} +13 -0
  55. package/dist/{chunk-NGJS5H5E.js → chunk-GTKUQUZ6.js} +1 -1
  56. package/dist/{chunk-ZGG53XZX.js → chunk-I3VXWMQW.js} +7 -7
  57. package/dist/chunk-IVRKWQTX.js +5061 -0
  58. package/dist/{chunk-4645UHJF.js → chunk-JF3RF6GS.js} +3 -2
  59. package/dist/{chunk-FGIMC5I4.js → chunk-JFFQWMNE.js} +5 -5
  60. package/dist/{chunk-EQ66MVWZ.js → chunk-JOZQFSOV.js} +1 -1
  61. package/dist/{chunk-STK62RL7.js → chunk-KBTXAUCZ.js} +1 -1
  62. package/dist/{chunk-X4SBDDLS.js → chunk-KSC4O2RY.js} +4 -0
  63. package/dist/{chunk-FHO3FXTW.js → chunk-KYXBPFI7.js} +8 -6
  64. package/dist/{chunk-5766TK7Q.js → chunk-LAGZGKKN.js} +1 -1
  65. package/dist/{chunk-CLA4XSBO.js → chunk-LGZP4IR2.js} +3 -3
  66. package/dist/{chunk-TLXK5A2N.js → chunk-MKL6JGDL.js} +35 -30
  67. package/dist/{chunk-IHYWP4V5.js → chunk-MO6DJMZP.js} +1 -1
  68. package/dist/{chunk-2GS2RUVI.js → chunk-MU66MHZB.js} +2 -2
  69. package/dist/{chunk-Z7QHOT65.js → chunk-MYHAS5U2.js} +13 -17
  70. package/dist/{chunk-6CGYINE7.js → chunk-NOH32H42.js} +25 -0
  71. package/dist/{chunk-S3ZWVEGQ.js → chunk-NWYJZAPP.js} +1 -1
  72. package/dist/{chunk-2WELGDXU.js → chunk-OFJTXNRS.js} +5 -5
  73. package/dist/{chunk-TWCICOCI.js → chunk-OPLEWQHF.js} +1 -1
  74. package/dist/{chunk-BVHNFPRF.js → chunk-OWU2BURB.js} +2 -2
  75. package/dist/{chunk-HWHPYCBZ.js → chunk-PNE2Y42T.js} +1 -1
  76. package/dist/{chunk-VVDHSRKD.js → chunk-PPMLF76Z.js} +1 -1
  77. package/dist/chunk-PXVQOMKL.js +39 -0
  78. package/dist/{chunk-AJ3QW6RX.js → chunk-Q3OKLJ34.js} +3 -3
  79. package/dist/chunk-QBXDU24O.js +20 -0
  80. package/dist/{chunk-L34IH4SH.js → chunk-QETCWXRM.js} +5 -5
  81. package/dist/{chunk-H3I2VLLL.js → chunk-QGMRSNG5.js} +8 -4
  82. package/dist/{chunk-ZE57TSS6.js → chunk-QRIC4WOO.js} +1 -1
  83. package/dist/{chunk-FJ646TIT.js → chunk-R4EWRIDL.js} +161 -21
  84. package/dist/{chunk-53VXGZ3L.js → chunk-RH5Y75UX.js} +2 -2
  85. package/dist/{chunk-ZTCILR3V.js → chunk-RIGQABEL.js} +1 -1
  86. package/dist/{chunk-ZSRNM6LP.js → chunk-RKS7GO4O.js} +1 -1
  87. package/dist/{chunk-7I5N36JA.js → chunk-RN7RQBW3.js} +2 -2
  88. package/dist/{chunk-N3MOQTRS.js → chunk-ROUK3OL2.js} +8 -8
  89. package/dist/{chunk-BE6XXZAR.js → chunk-RXQU3QM4.js} +11 -11
  90. package/dist/{chunk-XNY2KI2Z.js → chunk-SBBYMUWY.js} +1 -1
  91. package/dist/{chunk-7J6LQ3SQ.js → chunk-SGTEKMJW.js} +19 -4
  92. package/dist/{chunk-GNSNCIHF.js → chunk-SPFTXNKQ.js} +20 -15
  93. package/dist/{chunk-46HYDDZ5.js → chunk-TBEU55KU.js} +1 -1
  94. package/dist/{chunk-76T7KAYD.js → chunk-TQSKEMSL.js} +48 -9
  95. package/dist/{chunk-O63A26XQ.js → chunk-U54ZBLTF.js} +2 -2
  96. package/dist/{chunk-Q55JNFDV.js → chunk-UGQFQDSV.js} +1 -1
  97. package/dist/{chunk-D3Q2TABU.js → chunk-UIETUYFT.js} +1 -1
  98. package/dist/{chunk-4BXPCS5B.js → chunk-UJEEURID.js} +15 -15
  99. package/dist/{chunk-DKEZSH6M.js → chunk-URUUGFZD.js} +3 -3
  100. package/dist/{chunk-LTQXIYNL.js → chunk-USQTLRSD.js} +3 -3
  101. package/dist/{chunk-7TWX4Y7I.js → chunk-UVXIJYZY.js} +3 -15
  102. package/dist/{chunk-NP4G4WPP.js → chunk-VDFY4FE5.js} +12 -11
  103. package/dist/{chunk-KL2UJXCY.js → chunk-VPA5YKEY.js} +2 -2
  104. package/dist/{chunk-CTZJSMGU.js → chunk-VZBJ5BQF.js} +1 -1
  105. package/dist/{chunk-KVFOQ3EM.js → chunk-VZENYSX7.js} +103 -13
  106. package/dist/{chunk-DW35FX4I.js → chunk-X5EOH44V.js} +1 -1
  107. package/dist/{chunk-CCLBOLYU.js → chunk-YBNF5ZOC.js} +1 -1
  108. package/dist/{chunk-TDNPJHEQ.js → chunk-YT4DR2UT.js} +7 -7
  109. package/dist/{chunk-LALMFSLB.js → chunk-Z4W7ND2L.js} +7 -7
  110. package/dist/{chunk-Z65ZQYBW.js → chunk-ZRK7ZEWI.js} +3 -3
  111. package/dist/{clean-XBQ54UZX.js → clean-WPLBDRSW.js} +23 -22
  112. package/dist/cli.js +61 -59
  113. package/dist/{cloud-E2GUGXXL.js → cloud-VMSG2SJB.js} +4 -4
  114. package/dist/{cloudrun-IAPFT66T.js → cloudrun-AXB4G6X2.js} +5 -5
  115. package/dist/commands/layout-audit.browser.js +37 -0
  116. package/dist/{compare-2VPIOCLV.js → compare-NVW3E74E.js} +36 -33
  117. package/dist/{compiler-3ED6KJYN.js → compiler-GHX7QLHL.js} +4 -4
  118. package/dist/{component-IH2KSDNM.js → component-ZQAP7CBI.js} +3 -3
  119. package/dist/{compositions-MIMF2GM3.js → compositions-FKHNCB6H.js} +17 -14
  120. package/dist/{delete-5H5EYSYK.js → delete-XYC7FN6A.js} +8 -6
  121. package/dist/{deploy-DMQT34K2.js → deploy-DOJS666X.js} +2 -2
  122. package/dist/{dist-ANQ2CIIO.js → dist-3Q2DNDSR.js} +17 -3
  123. package/dist/{dist-OKQM7BQ3.js → dist-KXFW5H5Q.js} +2 -2
  124. package/dist/{doctor-MTRZJQZZ.js → doctor-7CUFMW3Y.js} +16 -15
  125. package/dist/{events-2GNMM2YS.js → events-K7HUJ4DO.js} +9 -6
  126. package/dist/{events-TBKM6B5H.js → events-KGXVDZV7.js} +9 -6
  127. package/dist/{feedback-6NNSKXQP.js → feedback-F7WLYJGJ.js} +17 -14
  128. package/dist/{ffmpeg-622QCJLB.js → ffmpeg-ZFHN4YZ2.js} +9 -8
  129. package/dist/{figma-TFHZ3N5A.js → figma-7QKRKT5Q.js} +3 -3
  130. package/dist/fontLocalizeCli.js +13 -12
  131. package/dist/{get-P6RA7MAU.js → get-XKPYG6IC.js} +8 -6
  132. package/dist/{gpuPolicy-CK2XDEAM.js → gpuPolicy-A74BROG6.js} +9 -8
  133. package/dist/{grade-compare-LK6U7OJD.js → grade-compare-7SR62TE5.js} +37 -34
  134. package/dist/hangReport.js +1 -1
  135. package/dist/{heifImagePrep-3OXKQUEZ.js → heifImagePrep-XTCBHE3B.js} +10 -9
  136. package/dist/{help-YENCFXYK.js → help-B7CXC4J5.js} +3 -3
  137. package/dist/{history-V3E4UCMY.js → history-3INEHHZ4.js} +12 -9
  138. package/dist/hyperframe.manifest.json +1 -1
  139. package/dist/hyperframe.runtime.iife.js +71 -71
  140. package/dist/hyperframes-player.global.js +3 -3
  141. package/dist/{info-ZGKQMX3Z.js → info-J3U63EFT.js} +14 -11
  142. package/dist/{init-D6PJI2TA.js → init-2IEXXRG2.js} +35 -32
  143. package/dist/{inspect-UCHLILOX.js → inspect-IRJABR66.js} +37 -34
  144. package/dist/{installer-CV2OKJFW.js → installer-6JLQM6OJ.js} +5 -5
  145. package/dist/{keyframes-2IJTDJ7K.js → keyframes-G2TSKZRL.js} +12 -9
  146. package/dist/{lambda-GKZBKWTK.js → lambda-QFFFCFK3.js} +13 -12
  147. package/dist/{layout-KKPRCTME.js → layout-INRUYIDJ.js} +37 -34
  148. package/dist/{lint-NAC6M4NT.js → lint-BHPBD7Z3.js} +15 -12
  149. package/dist/{lintProject-MSATZIK7.js → lintProject-SZIPPOJR.js} +2 -2
  150. package/dist/{list-QRMXOTNB.js → list-BGL5PH6J.js} +8 -6
  151. package/dist/{localPage-KMXALM7A.js → localPage-MLFDX4Y6.js} +9 -8
  152. package/dist/{login-GBN5ZMEA.js → login-ABDL65L6.js} +19 -18
  153. package/dist/{logout-C6P6ERZ3.js → logout-CXGSSQ4Q.js} +6 -4
  154. package/dist/{manager-GPDDRQIW.js → manager-DEKPCPWH.js} +11 -10
  155. package/dist/{manager-IZIK7BHN.js → manager-LXWVBDLM.js} +3 -3
  156. package/dist/{media-treatment-4Q7G27JJ.js → media-treatment-BQDTCBIT.js} +31 -19
  157. package/dist/{models-7KJF4LYJ.js → models-SJIA5QDV.js} +13 -12
  158. package/dist/{motionShot-DQAX2QTZ.js → motionShot-46J3W5UJ.js} +19 -18
  159. package/dist/{normalize-audio-K7VCJQYJ.js → normalize-audio-UXAJSQKI.js} +16 -13
  160. package/dist/{open-ZSBVR3KC.js → open-DHRYP3N3.js} +18 -15
  161. package/dist/{parakeetRunner-XXZHJYKO.js → parakeetRunner-WKMM4TYU.js} +15 -14
  162. package/dist/{pipeline-KNLOS5CL.js → pipeline-EIVKRUX2.js} +13 -12
  163. package/dist/{play-GQWF7MU5.js → play-J5A7KHNF.js} +27 -24
  164. package/dist/{preflight-UMKQ5C5W.js → preflight-GKIQIXFQ.js} +12 -11
  165. package/dist/{present-X7BPH35M.js → present-ZDXILGQJ.js} +23 -20
  166. package/dist/{preview-5Q7HPEOF.js → preview-A2MLHZFF.js} +25 -22
  167. package/dist/{producer-IXOPGETH.js → producer-NYWYRG4X.js} +1 -1
  168. package/dist/{projectConfig-YGI5AINR.js → projectConfig-DY6FHC7A.js} +7 -7
  169. package/dist/{publication-ZSDCS2ST.js → publication-N4WHPZOW.js} +3 -3
  170. package/dist/{publish-S2IIRPFZ.js → publish-26W6VDND.js} +17 -15
  171. package/dist/{refresh-IYRGLHG5.js → refresh-VJ4FQVH2.js} +3 -2
  172. package/dist/{remove-background-F2WFDCNM.js → remove-background-JYUB75RB.js} +14 -13
  173. package/dist/{render-CHRSSQNM.js → render-AQH2VMHO.js} +125 -72
  174. package/dist/{render-NVHUPEDG.js → render-JZWO3VX3.js} +25 -22
  175. package/dist/{render-WYBQO4SR.js → render-YPI6CDRS.js} +6 -6
  176. package/dist/{render-batch-SDGA2643.js → render-batch-GR2Y3F2S.js} +6 -6
  177. package/dist/renderSetupWorker.js +6 -6
  178. package/dist/{resolver-3W2OPVGC.js → resolver-LTLSX6DR.js} +5 -5
  179. package/dist/{screenshotCapture-HDRHY4NN.js → screenshotCapture-U3IYWTDB.js} +1 -1
  180. package/dist/{sherpa-HCPAOYGA.js → sherpa-2DJ33LQP.js} +14 -13
  181. package/dist/sherpaWorker.js +1 -1
  182. package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -1
  183. package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +9 -0
  184. package/dist/skills/hyperframes-cli/references/preview-render.md +2 -2
  185. package/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +2 -2
  186. package/dist/skills/media-use/references/meta.md +6 -5
  187. package/dist/skills/media-use/scripts/lib/telemetry.mjs +49 -15
  188. package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +19 -5
  189. package/dist/{skills-KOVM4OP5.js → skills-OF7XMPKX.js} +11 -8
  190. package/dist/{skillsUpdateCheck-ISMQFMPY.js → skillsUpdateCheck-E3HPT4PS.js} +5 -4
  191. package/dist/{snapshot-K7LVZDHG.js → snapshot-6F5XK22M.js} +60 -40
  192. package/dist/{src-QEFKMRH7.js → src-JUJFZ6GC.js} +12 -7
  193. package/dist/{src-FUMXFZYG.js → src-UNN3TXHH.js} +11 -10
  194. package/dist/{staticProjectServer-MF57NBIU.js → staticProjectServer-DLSH7DHS.js} +21 -20
  195. package/dist/{status-SLILCDBZ.js → status-TJFZFDGS.js} +5 -4
  196. package/dist/studio/assets/{hyperframes-player-Bb6n05RB.js → hyperframes-player-D38lr2hR.js} +3 -3
  197. package/dist/studio/assets/{index-pq574E5O.js → index-C-DCQ7nQ.js} +121 -121
  198. package/dist/studio/assets/{index-DOtf09XR.js → index-CJ28BLvq.js} +1 -1
  199. package/dist/studio/index.html +1 -1
  200. package/dist/{studio-api-Y4S3W7XE.js → studio-api-5YATSN7H.js} +11 -11
  201. package/dist/{studioServer-5LUZQOQV.js → studioServer-O3FSLOUF.js} +58 -55
  202. package/dist/{synthesize-FQML2LN2.js → synthesize-IKSZPKFJ.js} +2 -2
  203. package/dist/{system-MVRF5UM2.js → system-FDPS57FU.js} +2 -2
  204. package/dist/{telemetry-NTO4FJFN.js → telemetry-CY7V7FIN.js} +6 -5
  205. package/dist/{telemetry-TJMB5BTF.js → telemetry-MMCJ2ORL.js} +9 -6
  206. package/dist/{timeline-CU6CIWYL.js → timeline-ZBJTZK6E.js} +26 -23
  207. package/dist/{tokens-7P4N2FWN.js → tokens-JFYRYRDK.js} +2 -2
  208. package/dist/{transcribe-TFDEQFMG.js → transcribe-QUMMQM34.js} +13 -12
  209. package/dist/{transcribe-FZ7JK6QS.js → transcribe-UVQQ3OMR.js} +23 -20
  210. package/dist/{tts-K5HRN6NQ.js → tts-MQNOBHLH.js} +3 -3
  211. package/dist/{updateCheck-HUDVZHVM.js → updateCheck-VMMBGLTI.js} +4 -3
  212. package/dist/{upgrade-KP4RQZKY.js → upgrade-4VYNPIFQ.js} +4 -3
  213. package/dist/{urlDownloader-5SHSHWMB.js → urlDownloader-EAPV3CZL.js} +8 -7
  214. package/dist/{validate-VWX423M4.js → validate-JJG6Q6IH.js} +31 -28
  215. package/dist/{video-K4L2YFU2.js → video-7MJZ7IYL.js} +10 -9
  216. package/dist/warmCheck.js +47 -44
  217. package/dist/warmCheckClient.js +1 -1
  218. package/package.json +2 -1
  219. package/dist/chunk-N3ZAIZF3.js +0 -4870
@@ -5,12 +5,27 @@ var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
+ HF_COLOR_CURVE_LUT_SIZE,
9
+ HF_COLOR_GRADING_ACTIVE_EFFECT_KEYS,
10
+ HF_COLOR_GRADING_ATTR,
11
+ HF_COLOR_GRADING_SOURCE_TAGS,
12
+ calculateHfColorGradingSecondaryMask,
13
+ compileHfColorCurve,
14
+ compileHfHueCurve,
15
+ hasHfColorGradingHueCurveValues,
16
+ hasHfColorGradingRgbCurveValues,
17
+ hasHfColorGradingSecondaryValues,
8
18
  isMediaElement as isMediaElement2,
19
+ normalizeHfColorGrading,
20
+ packCubeLutToRgba8,
9
21
  parseStrictFiniteTimingNumber,
10
22
  resolveNaturalMediaTimelineDuration,
11
- resolveTimedImageDurationSeconds
12
- } from "./chunk-N3ZAIZF3.js";
23
+ resolveTimedImageDurationSeconds,
24
+ unitFloatToByte
25
+ } from "./chunk-IVRKWQTX.js";
13
26
  import {
27
+ COLOR_GROUP_ATTR,
28
+ COLOR_GROUP_TAG,
14
29
  COMPOSITION_ATTRIBUTES,
15
30
  MEDIA_START_BASIS_ATTR,
16
31
  compositionOriginSeconds,
@@ -21,7 +36,7 @@ import {
21
36
  parseStartExpression,
22
37
  resolveMediaStartSeconds,
23
38
  sameInstant
24
- } from "./chunk-X4SBDDLS.js";
39
+ } from "./chunk-KSC4O2RY.js";
25
40
  import {
26
41
  CANVAS_DIMENSIONS,
27
42
  isCompositionElement,
@@ -1200,6 +1215,317 @@ function clearGifFramesBeforeNext(bytes) {
1200
1215
  return true;
1201
1216
  }
1202
1217
 
1218
+ // ../core/dist/colorGroups.js
1219
+ var HF_COLOR_GROUP_TAG = COLOR_GROUP_TAG;
1220
+ var HF_COLOR_GROUP_ATTR = COLOR_GROUP_ATTR;
1221
+ function colorGroupOf(el) {
1222
+ if (typeof el.tagName !== "string" || typeof el.getAttribute !== "function")
1223
+ return null;
1224
+ if (!HF_COLOR_GRADING_SOURCE_TAGS.includes(el.tagName.toLowerCase())) {
1225
+ return null;
1226
+ }
1227
+ return el.getAttribute(HF_COLOR_GROUP_ATTR) || null;
1228
+ }
1229
+ function resolveColorGroupElement(root, groupId, member) {
1230
+ const scope = typeof member?.closest === "function" ? member.closest("[data-composition-id]") : null;
1231
+ const scoped = scope ? Array.from(scope.getElementsByTagName(HF_COLOR_GROUP_TAG)).find((g) => g.id === groupId) : void 0;
1232
+ if (scoped)
1233
+ return scoped;
1234
+ const el = root?.getElementById(groupId) ?? null;
1235
+ return el?.tagName.toLowerCase() === HF_COLOR_GROUP_TAG ? el : null;
1236
+ }
1237
+ function effectiveColorGrading(el, root) {
1238
+ const own = el.getAttribute(HF_COLOR_GRADING_ATTR);
1239
+ if (own !== null)
1240
+ return own;
1241
+ const groupId = colorGroupOf(el);
1242
+ if (!groupId)
1243
+ return null;
1244
+ return resolveColorGroupElement(root, groupId, el)?.getAttribute(HF_COLOR_GRADING_ATTR) ?? null;
1245
+ }
1246
+ function ensureColorGroupInertStyle(doc) {
1247
+ const styleId = "__hf-color-group-inert";
1248
+ if (!doc?.head || doc.getElementById(styleId))
1249
+ return;
1250
+ const style = doc.createElement("style");
1251
+ style.id = styleId;
1252
+ style.textContent = `${HF_COLOR_GROUP_TAG}{display:contents!important}`;
1253
+ doc.head.appendChild(style);
1254
+ }
1255
+
1256
+ // ../core/dist/colorGradingBake.js
1257
+ var LUMA_WEIGHTS = [0.2126, 0.7152, 0.0722];
1258
+ var CURVE_MAX_INDEX = HF_COLOR_CURVE_LUT_SIZE - 1;
1259
+ var luma = (c) => c[0] * LUMA_WEIGHTS[0] + c[1] * LUMA_WEIGHTS[1] + c[2] * LUMA_WEIGHTS[2];
1260
+ var clamp = (value, min, max) => Math.min(max, Math.max(min, value));
1261
+ var clampRgb = (c) => [clamp(c[0], 0, 1), clamp(c[1], 0, 1), clamp(c[2], 0, 1)];
1262
+ var fract = (value) => value - Math.floor(value);
1263
+ var mod = (value, divisor2) => value - divisor2 * Math.floor(value / divisor2);
1264
+ var mix = (a, b, t) => a + (b - a) * t;
1265
+ var mixRgb = (a, b, t) => [
1266
+ mix(a[0], b[0], t),
1267
+ mix(a[1], b[1], t),
1268
+ mix(a[2], b[2], t)
1269
+ ];
1270
+ var smoothstep = (edge0, edge1, value) => {
1271
+ const t = clamp((value - edge0) / (edge1 - edge0), 0, 1);
1272
+ return t * t * (3 - 2 * t);
1273
+ };
1274
+ var towardLuma = (c, base, amount) => [
1275
+ mix(base, c[0], amount),
1276
+ mix(base, c[1], amount),
1277
+ mix(base, c[2], amount)
1278
+ ];
1279
+ var texel = (value) => unitFloatToByte(Math.fround(value)) / 255;
1280
+ var signedUnit = (value, range) => Math.min(1, Math.max(1 / 255, (value * (127 / range) + 128) / 255));
1281
+ var decodeSigned = (value) => (value * 255 - 128) / 127;
1282
+ var signedTexel = (value, range) => decodeSigned(texel(signedUnit(value, range)));
1283
+ function rgbToHsv(c) {
1284
+ const maximum = Math.max(c[0], c[1], c[2]);
1285
+ const minimum = Math.min(c[0], c[1], c[2]);
1286
+ const delta = maximum - minimum;
1287
+ let hue = 0;
1288
+ if (delta > 1e-5) {
1289
+ if (maximum === c[0])
1290
+ hue = mod((c[1] - c[2]) / delta, 6);
1291
+ else if (maximum === c[1])
1292
+ hue = (c[2] - c[0]) / delta + 2;
1293
+ else
1294
+ hue = (c[0] - c[1]) / delta + 4;
1295
+ hue = fract(hue / 6);
1296
+ }
1297
+ return [hue, maximum > 1e-5 ? delta / maximum : 0, maximum];
1298
+ }
1299
+ function hsvToRgb([hue, saturation, value]) {
1300
+ const channel = (offset2) => {
1301
+ const band = Math.abs(fract(hue + offset2) * 6 - 3);
1302
+ return value * mix(1, clamp(band - 1, 0, 1), saturation);
1303
+ };
1304
+ return [channel(0), channel(0.6666667), channel(0.3333333)];
1305
+ }
1306
+ function applyPrimaryGrade(input, adjust) {
1307
+ const gain = 2 ** adjust.exposure;
1308
+ let c = [input[0] * gain, input[1] * gain, input[2] * gain];
1309
+ const y = luma(c);
1310
+ const lift = adjust.shadows * 0.35 * (1 - smoothstep(0, 0.65, y)) + adjust.highlights * 0.35 * smoothstep(0.35, 1, y);
1311
+ const blackPoint = clamp(adjust.blacks * 0.18, -0.18, 0.18);
1312
+ const whitePoint = clamp(1 - adjust.whites * 0.18, 0.82, 1.18);
1313
+ const range = Math.max(whitePoint - blackPoint, 0.2);
1314
+ c = c.map((value) => (value + lift - blackPoint) / range);
1315
+ c[0] += adjust.temperature * 0.08 + adjust.tint * 0.04;
1316
+ c[2] -= adjust.temperature * 0.08 - adjust.tint * 0.04;
1317
+ c[1] -= adjust.tint * 0.08;
1318
+ const contrast = Math.max(0, 1 + adjust.contrast);
1319
+ c = c.map((value) => (value - 0.5) * contrast + 0.5);
1320
+ const satLuma = luma(c);
1321
+ const currentSat = clamp(Math.max(...c) - Math.min(...c), 0, 1);
1322
+ const skinLike = smoothstep(0.02, 0.18, c[0] - c[1]) * smoothstep(0, 0.16, c[1] - c[2]) * smoothstep(0.18, 0.82, satLuma);
1323
+ const vibranceWeight = (1 - currentSat * 0.72) * mix(1, 0.55, skinLike);
1324
+ c = towardLuma(c, satLuma, Math.max(0, 1 + adjust.vibrance * vibranceWeight));
1325
+ return towardLuma(c, satLuma, Math.max(0, 1 + adjust.saturation));
1326
+ }
1327
+ function wheelDirection(hue) {
1328
+ const direction = hsvToRgb([fract(hue), 1, 1]);
1329
+ const y = luma(direction);
1330
+ const centred = direction.map((value) => value - y);
1331
+ const scale = Math.max(Math.abs(centred[0]), Math.abs(centred[1]), Math.abs(centred[2]), 1e-4);
1332
+ return centred.map((value) => value / scale);
1333
+ }
1334
+ function applyTonalWheels(color, wheels) {
1335
+ const y = luma(color);
1336
+ const shadows = 1 - smoothstep(0, 0.6, y);
1337
+ const highlights = smoothstep(0.4, 1, y);
1338
+ const midtones = Math.max(0, 1 - shadows - highlights);
1339
+ const total = Math.max(shadows + midtones + highlights, 1e-4);
1340
+ const c = [...color];
1341
+ for (const [wheel, weight] of [
1342
+ [wheels.shadows, shadows / total],
1343
+ [wheels.midtones, midtones / total],
1344
+ [wheels.highlights, highlights / total]
1345
+ ]) {
1346
+ const direction = wheelDirection(wheel.hue / 360);
1347
+ for (let channel = 0; channel < 3; channel += 1) {
1348
+ c[channel] = (c[channel] ?? 0) + (direction[channel] ?? 0) * wheel.amount * weight * 0.18 + wheel.level * weight * 0.25;
1349
+ }
1350
+ }
1351
+ return c;
1352
+ }
1353
+ function quantisedCurve(samples) {
1354
+ return Float64Array.from(samples, texel);
1355
+ }
1356
+ function sampleCurve(samples, coordinate) {
1357
+ const position = clamp(coordinate, 0, 1) * CURVE_MAX_INDEX;
1358
+ const lower = Math.floor(position);
1359
+ const upper = Math.min(lower + 1, CURVE_MAX_INDEX);
1360
+ return mix(samples[lower] ?? 0, samples[upper] ?? 0, position - lower);
1361
+ }
1362
+ function applyRgbCurves(c, curves) {
1363
+ return [
1364
+ sampleCurve(curves.red, sampleCurve(curves.master, c[0])),
1365
+ sampleCurve(curves.green, sampleCurve(curves.master, c[1])),
1366
+ sampleCurve(curves.blue, sampleCurve(curves.master, c[2]))
1367
+ ];
1368
+ }
1369
+ function signedHueCurve(points, outputMin, outputMax) {
1370
+ const samples = points.length >= 3 ? compileHfHueCurve(points, outputMin, outputMax) : new Float32Array(HF_COLOR_CURVE_LUT_SIZE);
1371
+ return Float64Array.from(samples, (value) => signedTexel(value, outputMax));
1372
+ }
1373
+ function sampleHueCurve(samples, hue) {
1374
+ const position = fract(hue) * HF_COLOR_CURVE_LUT_SIZE;
1375
+ const lower = Math.floor(position);
1376
+ const upper = (lower + 1) % HF_COLOR_CURVE_LUT_SIZE;
1377
+ return mix(samples[lower] ?? 0, samples[upper] ?? 0, position - lower);
1378
+ }
1379
+ function applyHueCurves(c, curves) {
1380
+ const hsv = rgbToHsv(clampRgb(c));
1381
+ const originalLuma = luma(c);
1382
+ const hueShift = sampleHueCurve(curves.hue, hsv[0]);
1383
+ const saturation = sampleHueCurve(curves.saturation, hsv[0]);
1384
+ const lumaShift = sampleHueCurve(curves.luma, hsv[0]);
1385
+ const shifted = hsvToRgb([
1386
+ fract(hsv[0] + hueShift * 0.5),
1387
+ clamp(hsv[1] * Math.max(0, 1 + saturation), 0, 1),
1388
+ hsv[2]
1389
+ ]);
1390
+ const offset2 = originalLuma - luma(shifted) + lumaShift;
1391
+ return shifted.map((value) => value + offset2);
1392
+ }
1393
+ function quantisedSecondary({ key, correction }) {
1394
+ const range = (soft) => ({
1395
+ min: texel(soft.min),
1396
+ max: texel(soft.max),
1397
+ softness: texel(soft.softness / 0.5) * 0.5
1398
+ });
1399
+ return {
1400
+ key: {
1401
+ hue: {
1402
+ center: texel(key.hue.center / 360) * 360,
1403
+ range: texel(key.hue.range / 180) * 180,
1404
+ softness: texel(key.hue.softness / 180) * 180
1405
+ },
1406
+ saturation: range(key.saturation),
1407
+ luma: range(key.luma)
1408
+ },
1409
+ hueShift: signedTexel(correction.hueShift, 180),
1410
+ saturation: signedTexel(correction.saturation, 1),
1411
+ luma: signedTexel(correction.luma, 1),
1412
+ temperature: signedTexel(correction.temperature, 1),
1413
+ tint: signedTexel(correction.tint, 1)
1414
+ };
1415
+ }
1416
+ function applySecondary(c, secondary) {
1417
+ const hsv = rgbToHsv(clampRgb(c));
1418
+ const mask = calculateHfColorGradingSecondaryMask(hsv[0] * 360, hsv[1], luma(c), secondary.key);
1419
+ if (mask <= 0)
1420
+ return c;
1421
+ const rotated = hsvToRgb([fract(hsv[0] + secondary.hueShift * 0.5), hsv[1], hsv[2]]);
1422
+ const corrected = towardLuma(rotated, luma(rotated), Math.max(0, 1 + secondary.saturation)).map((value) => value + secondary.luma);
1423
+ corrected[0] += secondary.temperature * 0.08 + secondary.tint * 0.04;
1424
+ corrected[2] -= secondary.temperature * 0.08 - secondary.tint * 0.04;
1425
+ corrected[1] -= secondary.tint * 0.08;
1426
+ return mixRgb(c, corrected, mask);
1427
+ }
1428
+ function sampleLut(lut, r, g, b) {
1429
+ const index = (g * lut.width + b * lut.size + r) * 4;
1430
+ return [
1431
+ (lut.data[index] ?? 0) / 255,
1432
+ (lut.data[index + 1] ?? 0) / 255,
1433
+ (lut.data[index + 2] ?? 0) / 255
1434
+ ];
1435
+ }
1436
+ function applyLut(color, lut) {
1437
+ const top = lut.size - 1;
1438
+ const scaled = color.map((value, channel) => clamp((value - (lut.domainMin[channel] ?? 0)) / (lut.span[channel] ?? 1), 0, 1) * top);
1439
+ const lo = scaled.map(Math.floor);
1440
+ const hi = lo.map((value) => Math.min(value + 1, top));
1441
+ const f = scaled.map((value, channel) => value - (lo[channel] ?? 0));
1442
+ const c00 = mixRgb(sampleLut(lut, lo[0], lo[1], lo[2]), sampleLut(lut, hi[0], lo[1], lo[2]), f[0]);
1443
+ const c10 = mixRgb(sampleLut(lut, lo[0], hi[1], lo[2]), sampleLut(lut, hi[0], hi[1], lo[2]), f[0]);
1444
+ const c01 = mixRgb(sampleLut(lut, lo[0], lo[1], hi[2]), sampleLut(lut, hi[0], lo[1], hi[2]), f[0]);
1445
+ const c11 = mixRgb(sampleLut(lut, lo[0], hi[1], hi[2]), sampleLut(lut, hi[0], hi[1], hi[2]), f[0]);
1446
+ const lutColor = mixRgb(mixRgb(c00, c10, f[1]), mixRgb(c01, c11, f[1]), f[2]);
1447
+ return mixRgb(color, lutColor, clamp(lut.intensity, 0, 1));
1448
+ }
1449
+ function spatialStages(grading) {
1450
+ const details = ["vignette", "grain"].filter((key) => Math.abs(grading.details[key]) > 1e-4).map((key) => `details.${key}`);
1451
+ const effects = HF_COLOR_GRADING_ACTIVE_EFFECT_KEYS.filter((key) => Math.abs(grading.effects[key]) > 1e-4).map((key) => `effects.${key}`);
1452
+ return [...details, ...effects];
1453
+ }
1454
+ function compileLut(grading, lut) {
1455
+ if (!grading.lut || grading.lut.intensity === 0)
1456
+ return null;
1457
+ if (!lut) {
1458
+ throw new Error(`The grading applies the LUT ${grading.lut.src}; pass its parsed .cube as options.lut to bake it.`);
1459
+ }
1460
+ const packed = packCubeLutToRgba8(lut);
1461
+ return {
1462
+ size: Math.max(lut.size, 2),
1463
+ width: packed.width,
1464
+ data: packed.data,
1465
+ domainMin: [...lut.domainMin],
1466
+ span: lut.domainMax.map((max, channel) => Math.max(max - (lut.domainMin[channel] ?? 0), 1e-5)),
1467
+ intensity: grading.lut.intensity ?? 0
1468
+ };
1469
+ }
1470
+ function compileGrade(grading, lut) {
1471
+ const spatial = spatialStages(grading);
1472
+ if (spatial.length > 0) {
1473
+ throw new Error(`A 3D LUT holds only colour; this grading also has spatial stages: ${spatial.join(", ")}.`);
1474
+ }
1475
+ const { curves, hueCurves, secondaries } = grading;
1476
+ return {
1477
+ grading,
1478
+ curves: hasHfColorGradingRgbCurveValues(curves) ? {
1479
+ red: quantisedCurve(compileHfColorCurve(curves.red)),
1480
+ green: quantisedCurve(compileHfColorCurve(curves.green)),
1481
+ blue: quantisedCurve(compileHfColorCurve(curves.blue)),
1482
+ master: quantisedCurve(compileHfColorCurve(curves.master))
1483
+ } : null,
1484
+ hueCurves: hasHfColorGradingHueCurveValues(hueCurves) ? {
1485
+ hue: signedHueCurve(hueCurves.hueVsHue, -180, 180),
1486
+ saturation: signedHueCurve(hueCurves.hueVsSaturation, -1, 1),
1487
+ luma: signedHueCurve(hueCurves.hueVsLuma, -1, 1)
1488
+ } : null,
1489
+ secondaries: hasHfColorGradingSecondaryValues(secondaries) ? secondaries.filter((secondary) => secondary.enabled).map(quantisedSecondary) : [],
1490
+ lut: compileLut(grading, lut)
1491
+ };
1492
+ }
1493
+ function gradeColor(input, grade) {
1494
+ let c = applyPrimaryGrade(input, grade.grading.adjust);
1495
+ c = applyTonalWheels(c, grade.grading.wheels);
1496
+ if (grade.curves)
1497
+ c = applyRgbCurves(c, grade.curves);
1498
+ if (grade.hueCurves)
1499
+ c = applyHueCurves(c, grade.hueCurves);
1500
+ for (const secondary of grade.secondaries)
1501
+ c = applySecondary(c, secondary);
1502
+ c = clampRgb(c);
1503
+ if (grade.lut)
1504
+ c = clampRgb(applyLut(c, grade.lut));
1505
+ return clampRgb(mixRgb(input, c, grade.grading.intensity));
1506
+ }
1507
+ function bakeHfColorGradingCube(grading, options = {}) {
1508
+ const size = options.size ?? 33;
1509
+ if (!Number.isInteger(size) || size < 2 || size > 256) {
1510
+ throw new RangeError(`A .cube size must be a whole number from 2 to 256, not ${size}.`);
1511
+ }
1512
+ const resolved = normalizeHfColorGrading(grading);
1513
+ const grade = resolved ? compileGrade(resolved, options.lut) : null;
1514
+ const step = size - 1;
1515
+ const lines = [`LUT_3D_SIZE ${size}`, "DOMAIN_MIN 0 0 0", "DOMAIN_MAX 1 1 1"];
1516
+ for (let b = 0; b < size; b += 1) {
1517
+ for (let g = 0; g < size; g += 1) {
1518
+ for (let r = 0; r < size; r += 1) {
1519
+ const input = [r / step, g / step, b / step];
1520
+ const output = grade ? gradeColor(input, grade) : input;
1521
+ lines.push(output.map((value) => value.toFixed(6)).join(" "));
1522
+ }
1523
+ }
1524
+ }
1525
+ return `${lines.join("\n")}
1526
+ `;
1527
+ }
1528
+
1203
1529
  // ../core/dist/hdrToneMap.js
1204
1530
  function known(value) {
1205
1531
  return value && value !== "unknown" && value !== "reserved" ? value : void 0;
@@ -5645,6 +5971,13 @@ export {
5645
5971
  parseAnimatedGifMetadata,
5646
5972
  gifClearsAfterLeavingFrameInPlace,
5647
5973
  clearGifFramesBeforeNext,
5974
+ HF_COLOR_GROUP_TAG,
5975
+ HF_COLOR_GROUP_ATTR,
5976
+ colorGroupOf,
5977
+ resolveColorGroupElement,
5978
+ effectiveColorGrading,
5979
+ ensureColorGroupInertStyle,
5980
+ bakeHfColorGradingCube,
5648
5981
  hdrToSdrToneMapFilter,
5649
5982
  firstFrameColourArgs,
5650
5983
  parseFirstFrameColour,
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeFirstFrameColour,
9
9
  probeMediaMetadata
10
- } from "./chunk-IHYWP4V5.js";
10
+ } from "./chunk-MO6DJMZP.js";
11
11
  import {
12
12
  alphaDecoderFor
13
13
  } from "./chunk-5S7W3TUO.js";
@@ -15,7 +15,7 @@ import {
15
15
  formatPreviewProxyBox,
16
16
  hdrToSdrToneMapFilter,
17
17
  isHeavyForPreview
18
- } from "./chunk-KY67MTBH.js";
18
+ } from "./chunk-DYHAZFK3.js";
19
19
  import {
20
20
  mkdirWithinProject,
21
21
  realProjectRoot,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-PBNWRWKA.js";
33
33
  import {
34
34
  rewriteAssetPath
35
- } from "./chunk-X4SBDDLS.js";
35
+ } from "./chunk-KSC4O2RY.js";
36
36
  import {
37
37
  decodeAuthoredAttribute,
38
38
  scanHtmlOpeningTags
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveConfig,
9
9
  usesSoftwareWebGpu
10
- } from "./chunk-KVFOQ3EM.js";
10
+ } from "./chunk-VZENYSX7.js";
11
11
 
12
12
  // src/browser/gpuPolicy.ts
13
13
  function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
17
17
  return "auto";
18
18
  }
19
19
  async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
20
- const { resolveBrowserGpuMode } = await import("./src-QEFKMRH7.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-JUJFZ6GC.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -14,7 +14,11 @@ var BYTES_PER_MIB_BIGINT = BigInt(BYTES_PER_MIB);
14
14
  var CGROUP_V2_MEMORY_MAX_PATH = "/sys/fs/cgroup/memory.max";
15
15
  var CGROUP_V1_MEMORY_LIMIT_PATH = "/sys/fs/cgroup/memory/memory.limit_in_bytes";
16
16
  var CGROUP_V1_NO_LIMIT_CUTOFF_BYTES = 2n ** 60n;
17
+ var CGROUP_V2_CPU_MAX_PATH = "/sys/fs/cgroup/cpu.max";
18
+ var CGROUP_V1_CPU_QUOTA_PATH = "/sys/fs/cgroup/cpu/cpu.cfs_quota_us";
19
+ var CGROUP_V1_CPU_PERIOD_PATH = "/sys/fs/cgroup/cpu/cpu.cfs_period_us";
17
20
  var _cachedCgroupLimitMb;
21
+ var _cachedCgroupCpus;
18
22
  var _warnedCgroupReadFailure = false;
19
23
  function parseCgroupLimitMb(v2Content, v1Content) {
20
24
  if (v2Content !== null) {
@@ -48,6 +52,29 @@ function parsePositiveByteLimitMb(content, noLimitCutoffBytes) {
48
52
  }
49
53
  return Number(bytes / BYTES_PER_MIB_BIGINT);
50
54
  }
55
+ function parseCgroupCpus(v2Content, v1Quota, v1Period) {
56
+ if (v2Content !== null) {
57
+ const [quota, period] = v2Content.trim().split(/\s+/);
58
+ return quotaCpus(quota, period);
59
+ }
60
+ return quotaCpus(v1Quota?.trim(), v1Period?.trim());
61
+ }
62
+ function quotaCpus(quota, period) {
63
+ if (!quota || !period || !/^\d+$/.test(quota) || !/^\d+$/.test(period)) return null;
64
+ const [q, p] = [Number(quota), Number(period)];
65
+ return q > 0 && p > 0 ? q / p : null;
66
+ }
67
+ function getCgroupCpuLimit() {
68
+ if (_cachedCgroupCpus !== void 0) return _cachedCgroupCpus;
69
+ if (process.platform !== "linux") return _cachedCgroupCpus = null;
70
+ const v2 = readCgroupFile(CGROUP_V2_CPU_MAX_PATH);
71
+ _cachedCgroupCpus = v2 !== null ? parseCgroupCpus(v2, null, null) : parseCgroupCpus(
72
+ null,
73
+ readCgroupFile(CGROUP_V1_CPU_QUOTA_PATH),
74
+ readCgroupFile(CGROUP_V1_CPU_PERIOD_PATH)
75
+ );
76
+ return _cachedCgroupCpus;
77
+ }
51
78
  function getCgroupMemoryLimitMb() {
52
79
  if (_cachedCgroupLimitMb !== void 0) return _cachedCgroupLimitMb;
53
80
  if (process.platform !== "linux") {
@@ -132,6 +159,7 @@ function getAvailableMemoryMb() {
132
159
  }
133
160
 
134
161
  export {
162
+ getCgroupCpuLimit,
135
163
  getCgroupMemoryLimitMb,
136
164
  getSystemTotalMb,
137
165
  LOW_MEMORY_TOTAL_MB_THRESHOLD,
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-HVW7ABXD.js";
13
13
  import {
14
14
  DEFAULT_REGISTRY_URL
15
- } from "./chunk-HWHPYCBZ.js";
15
+ } from "./chunk-PNE2Y42T.js";
16
16
 
17
17
  // src/utils/projectConfig.ts
18
18
  import { readFileSync, writeFileSync } from "fs";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  downloadFile
9
- } from "./chunk-FJ646TIT.js";
9
+ } from "./chunk-R4EWRIDL.js";
10
10
 
11
11
  // src/tts/manager.ts
12
12
  import { existsSync, mkdirSync } from "fs";
@@ -40,6 +40,18 @@ function closestMatch(input, candidates) {
40
40
  }
41
41
  return best;
42
42
  }
43
+ var COMMAND_SYNONYMS = {
44
+ search: "catalog",
45
+ find: "catalog",
46
+ browse: "catalog",
47
+ registry: "catalog",
48
+ list: "catalog",
49
+ install: "add"
50
+ };
51
+ function synonymMatch(input, candidates) {
52
+ const target = COMMAND_SYNONYMS[input];
53
+ return target !== void 0 && [...candidates].includes(target) ? target : void 0;
54
+ }
43
55
 
44
56
  // src/utils/reject-unknown-flags.ts
45
57
  var ALWAYS_KNOWN = /* @__PURE__ */ new Set(["help", "h", "version", "v"]);
@@ -181,6 +193,7 @@ function guardSwallowedFlagValues(cmd, path, rawArgs) {
181
193
 
182
194
  export {
183
195
  closestMatch,
196
+ synonymMatch,
184
197
  assertKnownFlags,
185
198
  swallowedFlagUsageError,
186
199
  guardSwallowedFlagValues
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  quantizePreviewProxyBox
9
- } from "./chunk-KY67MTBH.js";
9
+ } from "./chunk-DYHAZFK3.js";
10
10
  import {
11
11
  parseHTML
12
12
  } from "./chunk-GWTIFRF5.js";
@@ -11,31 +11,31 @@ import {
11
11
  findSyncPartner,
12
12
  readLinkTiming,
13
13
  syncOffsetFrames
14
- } from "./chunk-CTZJSMGU.js";
14
+ } from "./chunk-VZBJ5BQF.js";
15
15
  import {
16
16
  readCompositionFps
17
- } from "./chunk-MBSESQED.js";
17
+ } from "./chunk-6LQL2BVD.js";
18
18
  import {
19
19
  HF_AUDIO_GROUP_ATTR,
20
20
  extractAudioMetadata,
21
21
  extractMediaMetadata
22
- } from "./chunk-KVFOQ3EM.js";
22
+ } from "./chunk-VZENYSX7.js";
23
23
  import {
24
24
  byStart,
25
25
  fpsToNumber,
26
26
  parseFpsWithDefault
27
- } from "./chunk-KY67MTBH.js";
27
+ } from "./chunk-DYHAZFK3.js";
28
28
  import {
29
29
  HF_AUDIO_AUTOMATION_ATTR,
30
30
  HF_AUDIO_FX_ATTR,
31
31
  parseAudioFxChain,
32
32
  parseAutomation,
33
33
  resolveAutomation
34
- } from "./chunk-N3ZAIZF3.js";
34
+ } from "./chunk-IVRKWQTX.js";
35
35
  import {
36
36
  resolveReferencedDuration,
37
37
  resolveReferencedStart
38
- } from "./chunk-4645UHJF.js";
38
+ } from "./chunk-JF3RF6GS.js";
39
39
  import {
40
40
  resolveAuthoredAssetFile
41
41
  } from "./chunk-PBNWRWKA.js";
@@ -48,7 +48,7 @@ import {
48
48
  readPlaybackRate,
49
49
  resolveMediaDuration,
50
50
  resolveMediaStartSeconds
51
- } from "./chunk-X4SBDDLS.js";
51
+ } from "./chunk-KSC4O2RY.js";
52
52
  import {
53
53
  isSubCompositionHost,
54
54
  topLevelElements,