hyperframes 0.8.200 → 0.8.201

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 (191) hide show
  1. package/dist/{add-MFJDOJHQ.js → add-33XNCMY4.js} +14 -17
  2. package/dist/{animatedGifPrep-WBZ2VVP6.js → animatedGifPrep-MI7Z4OYQ.js} +8 -11
  3. package/dist/api.js +16 -19
  4. package/dist/{asset-PTAQLOR6.js → asset-RMRQN24O.js} +2 -2
  5. package/dist/{assetCataloger-N3UGZ2RC.js → assetCataloger-KWTQNFUU.js} +8 -11
  6. package/dist/{audio-CPHWRLC4.js → audio-SQDZZS6X.js} +33 -31
  7. package/dist/{auth-ZWOJIYK7.js → auth-PNC6K5ZD.js} +2 -2
  8. package/dist/{autoUpdate-DO74673A.js → autoUpdate-MBZFLUF2.js} +2 -2
  9. package/dist/{backgroundChecks-HOAN7YB6.js → backgroundChecks-ZMSPA6TK.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-AZFHTPSV.js → batchRender-2MMOZRMW.js} +5 -7
  12. package/dist/{beats-JRMM6JQQ.js → beats-GDLNPR4A.js} +32 -23
  13. package/dist/{benchmark-2PEQUV7H.js → benchmark-AUKB3XDF.js} +11 -13
  14. package/dist/{browser-2D6IHFO6.js → browser-C3AU5TST.js} +5 -5
  15. package/dist/{bundleWithLocalizedFonts-ERB43NFP.js → bundleWithLocalizedFonts-G3UT65XI.js} +2 -2
  16. package/dist/{capture-WNC2DWF7.js → capture-EKNPCFPF.js} +15 -17
  17. package/dist/{capture-3ODEX55X.js → capture-XGBPNGC5.js} +2 -2
  18. package/dist/{captureCompositionFrame-JXXTHR7J.js → captureCompositionFrame-4HHLPTDH.js} +13 -16
  19. package/dist/{catalog-MHTRTKSY.js → catalog-HLDNEJX3.js} +14 -17
  20. package/dist/{catch-up-XNDRKMKL.js → catch-up-LRFV4LJO.js} +5 -5
  21. package/dist/{check-7IB355TM.js → check-XWHWGNYE.js} +39 -42
  22. package/dist/{checkBrowser-E3ZCTAGY.js → checkBrowser-KSOBXPJ3.js} +34 -37
  23. package/dist/{chunk-MMQ52NIZ.js → chunk-2BGOB2QK.js} +500 -17
  24. package/dist/{chunk-5ULL3P6S.js → chunk-2FA53V5S.js} +2 -2
  25. package/dist/{chunk-PFFR4NQV.js → chunk-3J5KO4EJ.js} +8 -10
  26. package/dist/{chunk-FTD5QXGF.js → chunk-47NZWTJL.js} +2 -2
  27. package/dist/{chunk-HXHSGDU6.js → chunk-53E45AKI.js} +60 -34
  28. package/dist/{chunk-TOC6E65N.js → chunk-6UFEOVR5.js} +2 -2
  29. package/dist/{chunk-I4VEFPZE.js → chunk-6XGO7ZKS.js} +1 -1
  30. package/dist/{chunk-G7RKSAKS.js → chunk-74UH2KGI.js} +28 -6
  31. package/dist/{chunk-7LRVGYKZ.js → chunk-7EJ7OZGC.js} +16 -3
  32. package/dist/{chunk-7D7V3UDI.js → chunk-7WEGIXI3.js} +2 -2
  33. package/dist/{chunk-NC3TVM27.js → chunk-A7YO6YSD.js} +6 -6
  34. package/dist/{chunk-OE7AUN6G.js → chunk-AK2MOAJY.js} +82 -34
  35. package/dist/{chunk-3XXSRN36.js → chunk-B67P2WP3.js} +2 -2
  36. package/dist/chunk-B7CYKBXQ.js +36 -0
  37. package/dist/{chunk-63JJFXAD.js → chunk-CD5ZU6PN.js} +6 -6
  38. package/dist/{chunk-IC6BO4GU.js → chunk-CV32PRH3.js} +65 -21
  39. package/dist/{chunk-Q5IJYX7X.js → chunk-DS3XITZ5.js} +2 -2
  40. package/dist/{chunk-XV7ZNBVY.js → chunk-DWULQYOQ.js} +3 -3
  41. package/dist/{chunk-VHBBV5DH.js → chunk-ERUINDRT.js} +62 -25
  42. package/dist/{chunk-FMTJ4I6I.js → chunk-FDWN4XAD.js} +1 -1
  43. package/dist/{chunk-57Y5X4VU.js → chunk-GC6N2LH5.js} +10 -12
  44. package/dist/{chunk-5CTORVUM.js → chunk-GHROWWUN.js} +32 -1
  45. package/dist/{chunk-ZFBET3PD.js → chunk-GKXH4C2B.js} +1 -1
  46. package/dist/{chunk-63S4VUOL.js → chunk-GNX3BCQP.js} +1 -1
  47. package/dist/{chunk-HBRPELT6.js → chunk-I4DHHX7E.js} +3 -3
  48. package/dist/{chunk-TDF2O2RM.js → chunk-IDRUJFT4.js} +2 -2
  49. package/dist/{chunk-H2X4TQVK.js → chunk-IFOZZYHK.js} +7 -7
  50. package/dist/{chunk-VFLBOKDI.js → chunk-IHQBTZHE.js} +3 -3
  51. package/dist/{chunk-KPUTRG54.js → chunk-IIH24PKY.js} +2 -2
  52. package/dist/{chunk-BIZPUWBG.js → chunk-ITJAHKYO.js} +1 -1
  53. package/dist/{chunk-6JR2XUEE.js → chunk-IXXVS2Z4.js} +1 -1
  54. package/dist/{chunk-QP4UWICL.js → chunk-JOI7TNCX.js} +2 -2
  55. package/dist/{chunk-RFQ6BIRL.js → chunk-JXLHLR26.js} +1 -1
  56. package/dist/{chunk-DY53XJ3P.js → chunk-K2AUGELJ.js} +1 -1
  57. package/dist/{chunk-733CEBPF.js → chunk-L33EDCSR.js} +5 -5
  58. package/dist/{chunk-7NWSVRFE.js → chunk-LVEXHBSH.js} +1 -1
  59. package/dist/{chunk-XOTUPVIF.js → chunk-MSGWR7WP.js} +9 -1
  60. package/dist/{chunk-ACH5ZR7X.js → chunk-ORMTNJBS.js} +3 -3
  61. package/dist/{chunk-DRTUJVLE.js → chunk-Q537KXWA.js} +153 -44
  62. package/dist/{chunk-7WV27W7R.js → chunk-Q6SHXSZX.js} +2 -2
  63. package/dist/{chunk-QDK7XCOB.js → chunk-QB4K2EWI.js} +1 -1
  64. package/dist/{chunk-BQA3X7TI.js → chunk-QSFWGZG6.js} +4 -6
  65. package/dist/{chunk-D35MPIGJ.js → chunk-QTWSMJ22.js} +15 -15
  66. package/dist/{chunk-4UPGPCMB.js → chunk-QXBZ6VBL.js} +1 -1
  67. package/dist/{chunk-FZ3R5XOH.js → chunk-QYTGUWNF.js} +1 -1
  68. package/dist/{chunk-JBQNDHRT.js → chunk-RVKJDAYE.js} +1 -1
  69. package/dist/{chunk-32V3VHMK.js → chunk-SEAHCCQ4.js} +6 -43
  70. package/dist/{chunk-GR2G5L2O.js → chunk-SGKG7DNX.js} +3 -3
  71. package/dist/{chunk-KVFSXCN6.js → chunk-SIZYTGG4.js} +1 -1
  72. package/dist/{chunk-3YGSZSEN.js → chunk-SZNCAINN.js} +1 -1
  73. package/dist/{chunk-I6A2B3IJ.js → chunk-T33GLS6C.js} +3 -3
  74. package/dist/{chunk-OYVVDYM6.js → chunk-TAXGZAXM.js} +10 -10
  75. package/dist/{chunk-FTUKOLLB.js → chunk-TOT3CLUK.js} +1 -1
  76. package/dist/{chunk-TTFHBTXQ.js → chunk-TYRDDIIH.js} +1 -1
  77. package/dist/{chunk-ML4IULLQ.js → chunk-U2EK5MFR.js} +10 -10
  78. package/dist/{chunk-QXPZGDTI.js → chunk-UIIGEPYY.js} +3 -3
  79. package/dist/{chunk-UUFY6A7I.js → chunk-UKB62QOT.js} +131 -92
  80. package/dist/{chunk-4VZAIVZQ.js → chunk-UOSTDTBF.js} +1 -1
  81. package/dist/{chunk-IW4LKYDY.js → chunk-VCVUEK65.js} +3 -3
  82. package/dist/{chunk-TUVNQA5B.js → chunk-VF2VMKNI.js} +3 -3
  83. package/dist/{chunk-QYQY5ACN.js → chunk-VKTUZP7U.js} +1 -1
  84. package/dist/{chunk-ISN6BAZX.js → chunk-WO3XZ6HC.js} +1 -1
  85. package/dist/{chunk-HN6TP4D2.js → chunk-X72DJZCM.js} +1 -1
  86. package/dist/{chunk-PGDWNIOK.js → chunk-XDMZY3H7.js} +57 -5
  87. package/dist/{chunk-BERGVZKN.js → chunk-XG365L6T.js} +1 -1
  88. package/dist/{chunk-GYSPF5ZT.js → chunk-XHVQIOOF.js} +19 -19
  89. package/dist/{chunk-OMXXJSCK.js → chunk-XONIZ5CH.js} +13 -13
  90. package/dist/{chunk-2LKHE32Z.js → chunk-YBJECXQJ.js} +5 -5
  91. package/dist/{chunk-WAG4AX5C.js → chunk-YTBE4JCX.js} +1 -1
  92. package/dist/{chunk-VLVQQJOX.js → chunk-ZDVJXWEG.js} +22 -3
  93. package/dist/chunk-ZKHXN2BV.js +3983 -0
  94. package/dist/{clean-BOYUTBAU.js → clean-EUKURSX2.js} +21 -24
  95. package/dist/cli.js +54 -54
  96. package/dist/{cloud-3O2MEZO4.js → cloud-LJDRNQ2N.js} +4 -4
  97. package/dist/{cloudrun-MCTN22O6.js → cloudrun-AXVFD6KV.js} +7 -9
  98. package/dist/{compare-A57RHCPB.js → compare-T3LMATAF.js} +31 -34
  99. package/dist/{compiler-LVNWLZCX.js → compiler-KH6DMHIJ.js} +6 -10
  100. package/dist/{component-MIJC3LWO.js → component-2FOHCMP2.js} +3 -3
  101. package/dist/{compositions-OUNZAEC3.js → compositions-REQ6ARAO.js} +13 -16
  102. package/dist/{delete-X6Q3S3SL.js → delete-KEPP2QAZ.js} +2 -2
  103. package/dist/{deploy-XXMIXGUF.js → deploy-N756FEME.js} +1 -1
  104. package/dist/{deterministicFonts-RMA7GDJC.js → deterministicFonts-4FULD3AS.js} +2 -2
  105. package/dist/{dist-2UO4RVFN.js → dist-5ULOGA6A.js} +28 -16
  106. package/dist/{dist-ONHJ6ZDA.js → dist-TFHABY7N.js} +2 -4
  107. package/dist/{doctor-ASSDEPCO.js → doctor-2SJPC4WZ.js} +14 -17
  108. package/dist/{dotEnv-64S3VKGH.js → dotEnv-RPHCAUBZ.js} +1 -1
  109. package/dist/{events-DVWSV3TQ.js → events-24ZE2PKB.js} +4 -4
  110. package/dist/{events-4ULC5VUK.js → events-U53QH4XZ.js} +3 -3
  111. package/dist/{feedback-OB3NJPNF.js → feedback-QFMLDLUN.js} +10 -12
  112. package/dist/{ffmpeg-JH3JXES2.js → ffmpeg-7XNWNO7M.js} +8 -11
  113. package/dist/{figma-GV4OGXC2.js → figma-B4JO44CV.js} +3 -3
  114. package/dist/fontLocalizeCli.js +11 -14
  115. package/dist/{get-FLMCUJGR.js → get-7CFVCINR.js} +2 -2
  116. package/dist/{gpuPolicy-RZ2OUY4M.js → gpuPolicy-MU7CFSAF.js} +8 -11
  117. package/dist/{grade-compare-O62JAOA7.js → grade-compare-Q23U2HGS.js} +32 -35
  118. package/dist/{help-6POZ4GNV.js → help-M67MEDV3.js} +1 -1
  119. package/dist/{history-72ZIF5WR.js → history-I2PZXOFL.js} +8 -8
  120. package/dist/hyperframe.manifest.json +1 -1
  121. package/dist/hyperframe.runtime.iife.js +65 -64
  122. package/dist/hyperframes-player.global.js +3 -3
  123. package/dist/{info-GGIFZ5CT.js → info-Z2MX54IE.js} +10 -12
  124. package/dist/{init-QYRN6HG2.js → init-SWH5KZO2.js} +29 -32
  125. package/dist/{inspect-KSL4YVIU.js → inspect-WBBDB3YS.js} +32 -35
  126. package/dist/{installer-ENQCLSJQ.js → installer-DQIHGUBJ.js} +6 -9
  127. package/dist/{keyframes-6PNLGKOO.js → keyframes-PSNEUS6P.js} +7 -7
  128. package/dist/{lambda-3RFOOJV6.js → lambda-KSZFMQ3L.js} +9 -11
  129. package/dist/{layout-3XFC6N3L.js → layout-AAOI7W2M.js} +32 -35
  130. package/dist/{lint-5XGLCTV5.js → lint-GGNVITIK.js} +9 -11
  131. package/dist/{lintProject-FKPKSU6M.js → lintProject-Q36Y3AHA.js} +2 -4
  132. package/dist/{list-B76BTLOM.js → list-OFPDL2AM.js} +2 -2
  133. package/dist/{login-MNXS7GEL.js → login-MZAHGGP4.js} +4 -4
  134. package/dist/{manager-BWU4U7DV.js → manager-F34TSFV6.js} +2 -2
  135. package/dist/{manager-QZZVJV7Z.js → manager-ZOFTZTRY.js} +9 -12
  136. package/dist/{media-treatment-J3OWRCBF.js → media-treatment-PF67GSUD.js} +66 -42
  137. package/dist/{models-MCDUTV54.js → models-WR7CL54R.js} +12 -15
  138. package/dist/{motionShot-RWEH3VWI.js → motionShot-ISLDWLIU.js} +17 -20
  139. package/dist/{normalize-audio-N7VRZODX.js → normalize-audio-D7AH5GFZ.js} +44 -26
  140. package/dist/{open-ROUFAVKD.js → open-HPVBB2CX.js} +14 -17
  141. package/dist/{parakeetRunner-PTVV5M44.js → parakeetRunner-P6PE4WXG.js} +13 -16
  142. package/dist/{pipeline-HN5KMORF.js → pipeline-XKBZG2CM.js} +9 -12
  143. package/dist/{play-AO7AF4Y4.js → play-QXHO47ZH.js} +23 -26
  144. package/dist/{preflight-ARNDDFGX.js → preflight-KZCU66ES.js} +11 -14
  145. package/dist/{present-FBPKUC5R.js → present-ERGC5PR4.js} +19 -22
  146. package/dist/{preview-35X5G426.js → preview-AGTOQIE7.js} +20 -23
  147. package/dist/{producer-FVGPLR5E.js → producer-4ONVM5A2.js} +1 -1
  148. package/dist/{projectConfig-SRUJLOHL.js → projectConfig-7T4VY6RJ.js} +8 -11
  149. package/dist/{publication-XH2BRL3V.js → publication-J5TS5VR3.js} +4 -6
  150. package/dist/{publish-RI4ZQZNT.js → publish-BSOVXRF4.js} +11 -14
  151. package/dist/{remove-background-J22P5JFW.js → remove-background-645NVCGL.js} +10 -13
  152. package/dist/{render-UXYZN6D2.js → render-55TYPJ5U.js} +7 -9
  153. package/dist/{render-2EZQT4IS.js → render-IAVH33YG.js} +37 -33
  154. package/dist/{render-IJUKJILU.js → render-R3L44QAP.js} +34 -37
  155. package/dist/{render-batch-X34UZ442.js → render-batch-JWWLQ7ZC.js} +7 -9
  156. package/dist/renderSetupWorker.js +4 -6
  157. package/dist/{resolver-UUEIRLMY.js → resolver-DBAFWC4F.js} +6 -8
  158. package/dist/{sherpa-FI4VNAFT.js → sherpa-UPWG6TKY.js} +12 -15
  159. package/dist/skills/hyperframes/references/runtimes.md +26 -0
  160. package/dist/skills/media-use/references/mixing.md +1 -1
  161. package/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +38 -26
  162. package/dist/{skills-LGKXQFW7.js → skills-ILH52UL4.js} +6 -6
  163. package/dist/{skillsUpdateCheck-NDPKSX3H.js → skillsUpdateCheck-ZHFDGMEL.js} +3 -3
  164. package/dist/{snapshot-JM6427YW.js → snapshot-WMVHIQVQ.js} +93 -60
  165. package/dist/{src-26NBARTO.js → src-46QTOHZE.js} +10 -13
  166. package/dist/{src-WEECPY6E.js → src-HPLELQRK.js} +11 -10
  167. package/dist/{staticProjectServer-I5WGMJOV.js → staticProjectServer-FHP2YQFV.js} +19 -22
  168. package/dist/{status-SCCC7A6N.js → status-LR7VXITS.js} +1 -1
  169. package/dist/studio/assets/{hyperframes-player-LmRUJE8q.js → hyperframes-player-BNeO6YSP.js} +1 -1
  170. package/dist/studio/assets/{index-BmTWk8xf.js → index-CZWE0FI8.js} +162 -162
  171. package/dist/studio/assets/{index-CKNiEwbW.js → index-DiNYtcMK.js} +1 -1
  172. package/dist/studio/index.html +1 -1
  173. package/dist/{studio-api-N774Q4NO.js → studio-api-5YHQ4Y2D.js} +12 -15
  174. package/dist/{studioServer-KZIM5UBJ.js → studioServer-P6IC76SV.js} +53 -56
  175. package/dist/{system-HV7PYIXE.js → system-YD4AW5ZX.js} +1 -1
  176. package/dist/{telemetry-JIETM7WP.js → telemetry-WZ7OGFWQ.js} +4 -4
  177. package/dist/{timeline-JJ6JG7GQ.js → timeline-U6S7BGMI.js} +23 -25
  178. package/dist/{tokens-VOIMSCGX.js → tokens-FPUYNZSV.js} +2 -2
  179. package/dist/{transcribe-2V23EQHD.js → transcribe-DJX4E2PE.js} +18 -21
  180. package/dist/{transcribe-7BDHDQVP.js → transcribe-DZHTKXI5.js} +11 -14
  181. package/dist/{updateCheck-7B7L3UWO.js → updateCheck-2LHWRDE7.js} +2 -2
  182. package/dist/{upgrade-TUA2QZTY.js → upgrade-WAQHCAUS.js} +2 -2
  183. package/dist/{urlDownloader-CGV6EYL7.js → urlDownloader-HZQPXQET.js} +7 -10
  184. package/dist/{validate-JLCXEI2U.js → validate-D6XJ7OSS.js} +26 -29
  185. package/dist/{video-TI3EOA2D.js → video-A4CQ4WDL.js} +8 -11
  186. package/dist/warmCheck.js +39 -42
  187. package/package.json +1 -1
  188. package/dist/chunk-BSQ7XANM.js +0 -210
  189. package/dist/chunk-PKZ7RK5N.js +0 -281
  190. package/dist/chunk-PW22CDII.js +0 -3901
  191. package/dist/chunk-X7HBSTCZ.js +0 -53
@@ -12,12 +12,13 @@ import {
12
12
  firstFrameColourArgs,
13
13
  formatPreviewProxyBox,
14
14
  hdrToSdrToneMapFilter,
15
+ isHeavyForPreview,
15
16
  parseFirstFrameColour
16
- } from "./chunk-G7RKSAKS.js";
17
+ } from "./chunk-74UH2KGI.js";
17
18
  import {
18
19
  decodeAuthoredAttribute,
19
20
  scanHtmlOpeningTags
20
- } from "./chunk-XOTUPVIF.js";
21
+ } from "./chunk-MSGWR7WP.js";
21
22
  import {
22
23
  mkdirWithinProject,
23
24
  realProjectRoot,
@@ -34,9 +35,9 @@ import {
34
35
  } from "./chunk-6BNTGNGD.js";
35
36
  import {
36
37
  rewriteAssetPath
37
- } from "./chunk-BSQ7XANM.js";
38
+ } from "./chunk-2BGOB2QK.js";
38
39
 
39
- // ../studio-server/dist/chunk-XMNHDWQI.js
40
+ // ../studio-server/dist/chunk-C2RFW2FX.js
40
41
  import { statSync } from "fs";
41
42
  import { sep } from "path";
42
43
  import { execFile } from "child_process";
@@ -124,6 +125,22 @@ async function probeFirstFrameColour(filePath, runner = execFileRunner) {
124
125
  });
125
126
  return result.status === 0 ? parseFirstFrameColour(String(result.stderr)) : {};
126
127
  }
128
+ function bitDepthOf(stream) {
129
+ const raw = Number(stream.bits_per_raw_sample);
130
+ if (Number.isFinite(raw) && raw > 0) return raw;
131
+ const suffixed = /(\d{1,3})(?:le|be)$/.exec(stream.pix_fmt ?? "");
132
+ return suffixed ? Number(suffixed[1]) : 8;
133
+ }
134
+ function sourceFactsOf(stream, formatBitrate) {
135
+ if (!stream?.width || !stream.height) return void 0;
136
+ const bitrate = Number(stream.bit_rate ?? formatBitrate);
137
+ return {
138
+ width: stream.width,
139
+ height: stream.height,
140
+ bitDepth: bitDepthOf(stream),
141
+ bitrate: Number.isFinite(bitrate) ? bitrate : 0
142
+ };
143
+ }
127
144
  async function probeMediaMetadata(filePath, runner = execFileRunner) {
128
145
  const kind = inferKindFromPath(filePath);
129
146
  if (kind === "audio" || kind === "unknown") {
@@ -139,7 +156,7 @@ async function probeMediaMetadata(filePath, runner = execFileRunner) {
139
156
  "-v",
140
157
  "error",
141
158
  "-show_entries",
142
- "stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample:stream_disposition=attached_pic:stream_tags=alpha_mode:format=duration",
159
+ "stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample,width,height,bit_rate:stream_disposition=attached_pic:stream_tags=alpha_mode:format=duration,bit_rate",
143
160
  "-of",
144
161
  "json",
145
162
  "--",
@@ -165,6 +182,7 @@ async function probeMediaMetadata(filePath, runner = execFileRunner) {
165
182
  metadata.hasAlpha = stream !== void 0 && videoStreamHasAlpha(stream);
166
183
  const duration = Number(parsed.format?.duration);
167
184
  if (Number.isFinite(duration) && duration > 0) metadata.durationSeconds = duration;
185
+ metadata.source = sourceFactsOf(stream, parsed.format?.bit_rate);
168
186
  }
169
187
  return metadata;
170
188
  } catch {
@@ -232,18 +250,22 @@ function resolveProxyVariantRequest(request, facts) {
232
250
  const expected = proxyVariantFor(facts);
233
251
  return request === "auto" || request === expected ? expected : null;
234
252
  }
235
- function decideMediaProxyEligibility(facts) {
253
+ function decideMediaProxyEligibility(facts, lightBox) {
236
254
  if (!facts) return { eligible: false, reason: "unknown_codec" };
237
- if (!facts.browserHostile) return { eligible: false, reason: "browser_safe_codec" };
238
- return { eligible: true };
255
+ if (facts.browserHostile) return { eligible: true };
256
+ if (lightBox && facts.source && isHeavyForPreview(facts.source, lightBox)) {
257
+ return { eligible: true };
258
+ }
259
+ return { eligible: false, reason: "browser_safe_codec" };
239
260
  }
240
- function codecFactsFor(codecName, hasAlpha) {
261
+ function codecFactsFor(codecName, hasAlpha, source) {
241
262
  const hostile = hostileCodecEntry(codecName);
242
263
  return {
243
264
  codecName,
244
265
  browserHostile: hostile !== void 0,
245
266
  representativeMime: hostile?.representativeMime ?? null,
246
- hasAlpha
267
+ hasAlpha,
268
+ ...source && { source }
247
269
  };
248
270
  }
249
271
  async function probeCodecFacts(filePath, runner) {
@@ -252,7 +274,7 @@ async function probeCodecFacts(filePath, runner) {
252
274
  if (metadata.kind !== "video") return null;
253
275
  const codecName = metadata.color.codecName;
254
276
  if (!codecName) return null;
255
- return codecFactsFor(codecName, metadata.hasAlpha === true);
277
+ return codecFactsFor(codecName, metadata.hasAlpha === true, metadata.source);
256
278
  }
257
279
  function createMediaCodecProbeCache() {
258
280
  return /* @__PURE__ */ new Map();
@@ -314,9 +336,8 @@ function collectLocalVideoAssets(projectDir, htmlSources) {
314
336
  return candidates;
315
337
  }
316
338
  var PROBE_CONCURRENCY = 8;
317
- async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
339
+ async function probeProjectAssets(projectDir, htmlSources, options) {
318
340
  const candidates = collectLocalVideoAssets(projectDir, htmlSources);
319
- if (candidates.size === 0) return {};
320
341
  const cache = options.cache ?? defaultProbeCache;
321
342
  const entries = [...candidates.entries()];
322
343
  const facts = new Array(entries.length).fill(null);
@@ -332,15 +353,21 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
332
353
  }
333
354
  })
334
355
  );
335
- const map = {};
336
- entries.forEach(([, pathname], index) => {
337
- const entryFacts = facts[index];
338
- if (entryFacts?.browserHostile) map[pathname] = entryFacts;
339
- });
340
- return map;
356
+ return entries.map(([, pathname], index) => [pathname, facts[index] ?? null]);
357
+ }
358
+ async function scanProjectMedia(projectDir, htmlSources, options = {}) {
359
+ const scan = { codecMap: {}, sourceFacts: {} };
360
+ for (const [pathname, facts] of await probeProjectAssets(projectDir, htmlSources, options)) {
361
+ if (facts?.browserHostile) scan.codecMap[pathname] = facts;
362
+ if (facts?.source) scan.sourceFacts[pathname] = facts.source;
363
+ }
364
+ return scan;
365
+ }
366
+ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
367
+ return (await scanProjectMedia(projectDir, htmlSources, options)).codecMap;
341
368
  }
342
369
 
343
- // ../studio-server/dist/chunk-URMIRXBS.js
370
+ // ../studio-server/dist/chunk-5UEDEOD2.js
344
371
  import { spawn } from "child_process";
345
372
  import { createHash, randomUUID } from "crypto";
346
373
  import {
@@ -353,7 +380,7 @@ import {
353
380
  utimesSync,
354
381
  writeFileSync
355
382
  } from "fs";
356
- import { availableParallelism, tmpdir } from "os";
383
+ import { availableParallelism, tmpdir, totalmem } from "os";
357
384
  import { basename, dirname, extname as extname2, isAbsolute, join as join2, relative, resolve, sep as sep2 } from "path";
358
385
  import { existsSync, readdirSync, statSync as statSync3, unlinkSync } from "fs";
359
386
  import { extname as extname3, join } from "path";
@@ -465,7 +492,7 @@ function cleanupProxyCache(cacheDir, options = {}) {
465
492
  skipped: false
466
493
  };
467
494
  }
468
- var PROXY_PARAMS_VERSION = "v6";
495
+ var PROXY_PARAMS_VERSION = "v7";
469
496
  var CACHE_DIR_NAME = ".transcode-cache";
470
497
  function boundedEnvInteger(name, fallback, min, max) {
471
498
  const raw = process.env[name]?.trim();
@@ -738,28 +765,91 @@ function chunkRanges(durationSeconds) {
738
765
  lengthSeconds: index === count - 1 ? durationSeconds - index * PROXY_CHUNK_SECONDS : PROXY_CHUNK_SECONDS
739
766
  }));
740
767
  }
741
- async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat, onDone = () => {
768
+ var UNGATED = { size: 1, acquire: async () => {
769
+ }, release: () => {
770
+ } };
771
+ function createPieceGate(size) {
772
+ let free = size;
773
+ const waiters = [];
774
+ return {
775
+ size,
776
+ acquire: (signal) => {
777
+ signal.throwIfAborted();
778
+ if (free > 0) {
779
+ free--;
780
+ return Promise.resolve();
781
+ }
782
+ return new Promise((resolve2, reject) => {
783
+ const grant = () => {
784
+ signal.removeEventListener("abort", onAbort);
785
+ resolve2();
786
+ };
787
+ const onAbort = () => {
788
+ waiters.splice(waiters.indexOf(grant), 1);
789
+ reject(signal.reason);
790
+ };
791
+ signal.addEventListener("abort", onAbort, { once: true });
792
+ waiters.push(grant);
793
+ });
794
+ },
795
+ release: () => {
796
+ const next = waiters.shift();
797
+ if (next) next();
798
+ else free++;
799
+ }
800
+ };
801
+ }
802
+ async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat, signal, gate, onDone = () => {
742
803
  }) {
743
804
  const extension = extname2(tempPath);
744
805
  const pieces = ranges.map((_, index) => `${chunkPrefix}${index}${extension}`);
806
+ const pending = ranges.flatMap((_, index) => existsSync2(pieces[index]) ? [] : [index]);
745
807
  let doneSeconds = 0;
746
808
  for (const [index, range] of ranges.entries()) {
747
- if (existsSync2(pieces[index])) doneSeconds += range.lengthSeconds;
809
+ if (!pending.includes(index)) doneSeconds += range.lengthSeconds;
748
810
  }
749
811
  if (doneSeconds) onDone(doneSeconds);
750
- for (const [index, range] of ranges.entries()) {
751
- const piece = pieces[index];
752
- if (existsSync2(piece)) continue;
753
- const pieceTemp = join2(dirname(piece), `.tmp-${randomUUID()}-${basename(piece)}`);
754
- try {
755
- await encode(pieceTemp, range);
756
- renameSync(pieceTemp, piece);
757
- doneSeconds += range.lengthSeconds;
758
- onDone(doneSeconds);
759
- } finally {
760
- if (existsSync2(pieceTemp)) unlinkSync2(pieceTemp);
812
+ const inFlight2 = /* @__PURE__ */ new Map();
813
+ const stop = new AbortController();
814
+ const pieceSignal = AbortSignal.any([signal, stop.signal]);
815
+ let failure;
816
+ let cursor = 0;
817
+ const work = async () => {
818
+ for (; ; ) {
819
+ await gate.acquire(pieceSignal);
820
+ try {
821
+ if (cursor >= pending.length) return;
822
+ const index = pending[cursor++];
823
+ const range = ranges[index];
824
+ const piece = pieces[index];
825
+ const pieceTemp = join2(dirname(piece), `.tmp-${randomUUID()}-${basename(piece)}`);
826
+ try {
827
+ await encode(pieceTemp, range, pieceSignal, (encodedSeconds) => {
828
+ inFlight2.set(index, encodedSeconds);
829
+ onDone(doneSeconds + [...inFlight2.values()].reduce((sum, seconds) => sum + seconds, 0));
830
+ });
831
+ renameSync(pieceTemp, piece);
832
+ inFlight2.delete(index);
833
+ doneSeconds += range.lengthSeconds;
834
+ onDone(doneSeconds);
835
+ } finally {
836
+ if (existsSync2(pieceTemp)) unlinkSync2(pieceTemp);
837
+ }
838
+ } finally {
839
+ gate.release();
840
+ }
761
841
  }
762
- }
842
+ };
843
+ await Promise.all(
844
+ Array.from(
845
+ { length: Math.min(gate.size, pending.length) },
846
+ () => work().catch((error) => {
847
+ failure ??= error;
848
+ stop.abort();
849
+ })
850
+ )
851
+ );
852
+ if (failure !== void 0) throw failure;
763
853
  const listDir = mkdtempSync(join2(tmpdir(), "hf-proxy-join-"));
764
854
  try {
765
855
  const listPath = join2(listDir, "pieces.txt");
@@ -774,6 +864,7 @@ async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat, onD
774
864
  }
775
865
  for (const piece of pieces) if (existsSync2(piece)) unlinkSync2(piece);
776
866
  }
867
+ var KEYFRAME_EVERY_SECOND_ARGS = ["-force_key_frames", "expr:gte(t,n_forced*1)"];
777
868
  var H264_ARGS = [
778
869
  "-c:v",
779
870
  "libx264",
@@ -796,7 +887,11 @@ var H264_ARGS = [
796
887
  "-movflags",
797
888
  "+faststart"
798
889
  ];
799
- var VP8_THREADS = String(Math.min(4, availableParallelism()));
890
+ var CORES = availableParallelism();
891
+ var PIECE_MEMORY_BYTES = 3 * 1024 ** 3;
892
+ var ALPHA_PIECE_GATE = createPieceGate(
893
+ Math.max(1, Math.min(4, CORES - 1, Math.floor(totalmem() / PIECE_MEMORY_BYTES)))
894
+ );
800
895
  var VP8_ARGS = [
801
896
  "-c:v",
802
897
  "libvpx",
@@ -816,8 +911,6 @@ var VP8_ARGS = [
816
911
  "bt709",
817
912
  "-cpu-used",
818
913
  "4",
819
- "-threads",
820
- VP8_THREADS,
821
914
  "-auto-alt-ref",
822
915
  "0",
823
916
  "-metadata:s:v:0",
@@ -851,7 +944,12 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, sign
851
944
  const alphaDecoder = keepsAlpha ? alphaDecoderFor(metadata.color.codecName) : null;
852
945
  const decoderArgs = alphaDecoder ? ["-c:v", alphaDecoder] : [];
853
946
  const totalSeconds = metadata.durationSeconds;
854
- const encode = (target, range) => spawnFfmpeg(
947
+ const gate = keepsAlpha ? ALPHA_PIECE_GATE : UNGATED;
948
+ const vp8Threads = (pieces) => [
949
+ "-threads",
950
+ String(Math.min(4, Math.floor(CORES / pieces)))
951
+ ];
952
+ const encode = (target, range, pieceSignal, onEncoded) => spawnFfmpeg(
855
953
  ffmpegPath,
856
954
  [
857
955
  "-y",
@@ -865,21 +963,31 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, sign
865
963
  ...range ? ["-t", String(range.lengthSeconds)] : [],
866
964
  "-vf",
867
965
  videoFilter,
868
- ...variant === "vp8" ? VP8_ARGS : H264_ARGS,
966
+ ...KEYFRAME_EVERY_SECOND_ARGS,
967
+ ...keepsAlpha ? [...VP8_ARGS, ...vp8Threads(range ? gate.size : 1)] : H264_ARGS,
869
968
  target
870
969
  ],
871
970
  TRANSCODE_STALL_MS,
872
- signal,
873
- (encodedSeconds) => onProgress({ doneSeconds: (range?.startSeconds ?? 0) + encodedSeconds, totalSeconds })
971
+ pieceSignal,
972
+ onEncoded
874
973
  );
875
974
  const ranges = chunkRanges(totalSeconds);
876
- if (!ranges) return encode(outputPath);
975
+ if (!ranges) {
976
+ return encode(
977
+ outputPath,
978
+ void 0,
979
+ signal,
980
+ (encodedSeconds) => onProgress({ doneSeconds: encodedSeconds, totalSeconds })
981
+ );
982
+ }
877
983
  await encodeInChunks(
878
984
  ranges,
879
985
  chunkPrefix,
880
986
  outputPath,
881
987
  encode,
882
988
  (listPath, target) => spawnFfmpeg(ffmpegPath, concatArgs(listPath, target, variant), CONCAT_TIMEOUT_MS, signal),
989
+ signal,
990
+ gate,
883
991
  (doneSeconds) => onProgress({ doneSeconds, totalSeconds })
884
992
  );
885
993
  }
@@ -1123,6 +1231,7 @@ export {
1123
1231
  decideMediaProxyEligibility,
1124
1232
  createMediaCodecProbeCache,
1125
1233
  probeAssetCodec,
1234
+ scanProjectMedia,
1126
1235
  scanProjectMediaCodecMap,
1127
1236
  cleanupProxyCache,
1128
1237
  PROXY_PARAMS_VERSION,
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-QP4UWICL.js";
11
+ } from "./chunk-JOI7TNCX.js";
12
12
  import {
13
13
  CliRuntimeError
14
14
  } from "./chunk-JVBRJMOP.js";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-634HSJ3J.js";
18
18
  import {
19
19
  getPowerState
20
- } from "./chunk-BQA3X7TI.js";
20
+ } from "./chunk-QSFWGZG6.js";
21
21
  import {
22
22
  readConfig
23
23
  } from "./chunk-PSX5SF2N.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-BL4U6U52.js";
11
11
  import {
12
12
  getFreeDiskMb
13
- } from "./chunk-BQA3X7TI.js";
13
+ } from "./chunk-QSFWGZG6.js";
14
14
  import {
15
15
  browserPathFromEnv,
16
16
  managedChromeVersion,
@@ -98,15 +98,13 @@ var VENDOR_RULES = [
98
98
  name: "hermes",
99
99
  check: (env) => typeof env["HERMES_QUIET"] === "string"
100
100
  },
101
- // openclaw — multi-channel AI gateway. When openclaw spawns a CLI
102
- // subprocess it builds the child env with OPENCLAW_STATE_DIR /
103
- // OPENCLAW_CONFIG_PATH / OPENCLAW_DISABLE_AUTO_UPDATE set explicitly
104
- // (extensions/qa-matrix/src/runners/contract/scenario-runtime-cli.ts:344-351).
105
- // We key on OPENCLAW_STATE_DIR since it's a path scope-bound to openclaw.
101
+ // openclaw — multi-channel AI gateway. It sets OPENCLAW_CONFIG_PATH on the
102
+ // CLI subprocesses it spawns. Never name its state-dir var here: endpoint
103
+ // scanners flag that string as an IoC and quarantine the bundle (#5245).
106
104
  // Source: https://github.com/openclaw/openclaw
107
105
  {
108
106
  name: "openclaw",
109
- check: (env) => typeof env["OPENCLAW_STATE_DIR"] === "string" || typeof env["OPENCLAW_CONFIG_PATH"] === "string"
107
+ check: (env) => typeof env["OPENCLAW_CONFIG_PATH"] === "string"
110
108
  },
111
109
  // Pi coding agent (https://pi.dev, https://github.com/earendil-works/pi).
112
110
  // packages/coding-agent/src/cli.ts:13 unconditionally executes
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-BIZPUWBG.js";
9
+ } from "./chunk-ITJAHKYO.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
13
13
  seekCompositionTimeline,
14
14
  waitForRuntimeReady
15
- } from "./chunk-ML4IULLQ.js";
15
+ } from "./chunk-U2EK5MFR.js";
16
16
  import {
17
17
  launchManagedBrowser,
18
18
  resolveManagedGpuMode
19
- } from "./chunk-TTFHBTXQ.js";
19
+ } from "./chunk-TYRDDIIH.js";
20
20
  import {
21
21
  pageNavigationTimeoutMs
22
- } from "./chunk-I6A2B3IJ.js";
22
+ } from "./chunk-T33GLS6C.js";
23
23
  import {
24
24
  resolveCompositionViewportFromHtml
25
- } from "./chunk-ZFBET3PD.js";
25
+ } from "./chunk-GKXH4C2B.js";
26
26
  import {
27
27
  defineCommand
28
28
  } from "./chunk-S3S4TGEH.js";
@@ -35,14 +35,14 @@ import {
35
35
  } from "./chunk-ZTZA4UWZ.js";
36
36
  import {
37
37
  resolveNaturalMediaTimelineDuration
38
- } from "./chunk-PW22CDII.js";
38
+ } from "./chunk-ZKHXN2BV.js";
39
39
  import {
40
40
  decodeWellFormedEscapes
41
- } from "./chunk-BSQ7XANM.js";
41
+ } from "./chunk-2BGOB2QK.js";
42
42
  import {
43
43
  printDeprecationNotice,
44
44
  withMeta
45
- } from "./chunk-3YGSZSEN.js";
45
+ } from "./chunk-SZNCAINN.js";
46
46
  import {
47
47
  normalizeErrorMessage
48
48
  } from "./chunk-T2EUWCJE.js";
@@ -248,7 +248,7 @@ function extractCompositionErrorsFromLint(lintResult) {
248
248
  async function localizeRemoteAssets(html) {
249
249
  let dir;
250
250
  try {
251
- const { loadProducer } = await import("./producer-FVGPLR5E.js");
251
+ const { loadProducer } = await import("./producer-4ONVM5A2.js");
252
252
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
253
253
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
254
254
  const assetDir = dir;
@@ -269,10 +269,10 @@ async function localizeRemoteAssets(html) {
269
269
  }
270
270
  async function validateInBrowser(project, opts) {
271
271
  const projectDir = project.dir;
272
- const { bundleToSingleHtml } = await import("./compiler-LVNWLZCX.js");
273
- const { ensureBrowser } = await import("./manager-BWU4U7DV.js");
274
- const { serveStaticProjectHtml } = await import("./staticProjectServer-I5WGMJOV.js");
275
- const { lintProject } = await import("./lintProject-FKPKSU6M.js");
272
+ const { bundleToSingleHtml } = await import("./compiler-KH6DMHIJ.js");
273
+ const { ensureBrowser } = await import("./manager-F34TSFV6.js");
274
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-FHP2YQFV.js");
275
+ const { lintProject } = await import("./lintProject-Q36Y3AHA.js");
276
276
  const lintResult = await lintProject(projectDir);
277
277
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
278
278
  const html = await bundleToSingleHtml(projectDir);
@@ -293,9 +293,9 @@ async function validateInBrowser(project, opts) {
293
293
  try {
294
294
  const browser = await ensureBrowser();
295
295
  const puppeteer = await import("puppeteer-core");
296
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-WEECPY6E.js");
296
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-HPLELQRK.js");
297
297
  const requestedGpuMode = resolveCliChromeGpuMode();
298
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-RZ2OUY4M.js");
298
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-MU7CFSAF.js");
299
299
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
300
300
  const requiresWebGpu = compositionRequiresWebGpu(html);
301
301
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-AWDFDFI3.js";
18
18
  import {
19
19
  isBlockedNetworkHost
20
- } from "./chunk-UUFY6A7I.js";
20
+ } from "./chunk-UKB62QOT.js";
21
21
  import {
22
22
  DOMParser,
23
23
  parseHTML
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  setHostHandlesSigint
9
- } from "./chunk-UUFY6A7I.js";
9
+ } from "./chunk-UKB62QOT.js";
10
10
  import {
11
11
  processAncestorSnapshot,
12
12
  processIdentity,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-KPUTRG54.js";
9
+ } from "./chunk-IIH24PKY.js";
10
10
 
11
11
  // src/registry/compatibility.ts
12
12
  import { compareVersions } from "compare-versions";
@@ -35,11 +35,12 @@ import {
35
35
  parseHostVariableValues,
36
36
  planCompositionAssembly,
37
37
  readDeclaredDefaults,
38
+ rewriteSrcsetUrls,
38
39
  shouldClampResolvedMediaDuration,
39
40
  stripEmbeddedRuntimeScripts,
40
41
  styleElementsFor,
41
42
  warnUnknownEnumValues
42
- } from "./chunk-PW22CDII.js";
43
+ } from "./chunk-ZKHXN2BV.js";
43
44
  import {
44
45
  cssVariableName
45
46
  } from "./chunk-VC76R6W2.js";
@@ -49,24 +50,22 @@ import {
49
50
  } from "./chunk-OFQWTKPW.js";
50
51
  import {
51
52
  lintHyperframeHtml
52
- } from "./chunk-IC6BO4GU.js";
53
- import {
54
- checkSubCompositionUsability,
55
- resolveSubCompositionContent
56
- } from "./chunk-MMQ52NIZ.js";
53
+ } from "./chunk-CV32PRH3.js";
57
54
  import {
58
55
  CSS_URL_RE,
56
+ checkSubCompositionUsability,
59
57
  decodeCssEscapes,
60
58
  decodeWellFormedEscapes,
61
59
  decodedUrlPath,
62
60
  encodeUrlPath,
63
61
  isNonRelativeUrl,
62
+ resolveSubCompositionContent,
64
63
  rewriteAssetPath,
65
64
  rewriteAssetPaths,
66
65
  rewriteCssAssetUrls,
67
66
  rewriteInlineStyleAssetUrls,
68
67
  splitUrlSuffix
69
- } from "./chunk-BSQ7XANM.js";
68
+ } from "./chunk-2BGOB2QK.js";
70
69
  import {
71
70
  parseHTML
72
71
  } from "./chunk-SDYDNHEE.js";
@@ -2320,42 +2319,6 @@ function rebaseRelativePath(urlValue, fromDir, toDir) {
2320
2319
  const rebased = encodeUrlPath(relative(resolve2(toDir), absolutePath).split(sep).join("/"));
2321
2320
  return appendSuffixToUrl(rebased, suffix);
2322
2321
  }
2323
- function rewriteSrcsetUrls(srcset, rewriteUrl) {
2324
- const parts = [];
2325
- let position = 0;
2326
- let written = 0;
2327
- while (position < srcset.length) {
2328
- while (position < srcset.length && /[ \t\n\r\f,]/.test(srcset.charAt(position)))
2329
- position++;
2330
- const start = position;
2331
- while (position < srcset.length && !/[ \t\n\r\f]/.test(srcset.charAt(position)))
2332
- position++;
2333
- let end = position;
2334
- while (end > start && srcset.charAt(end - 1) === ",")
2335
- end--;
2336
- if (end > start) {
2337
- const url = srcset.slice(start, end);
2338
- const rewritten = rewriteUrl(url);
2339
- if (rewritten !== url) {
2340
- parts.push(srcset.slice(written, start), rewritten);
2341
- written = end;
2342
- }
2343
- }
2344
- if (end < position)
2345
- continue;
2346
- let inParens = false;
2347
- while (position < srcset.length) {
2348
- const char = srcset.charAt(position++);
2349
- if (char === "(")
2350
- inParens = true;
2351
- else if (char === ")")
2352
- inParens = false;
2353
- else if (char === "," && !inParens)
2354
- break;
2355
- }
2356
- }
2357
- return parts.length > 0 ? parts.join("") + srcset.slice(written) : srcset;
2358
- }
2359
2322
  function rebaseColorGradingLutPath(value, fromDir, toDir) {
2360
2323
  if (!value.trim().startsWith("{"))
2361
2324
  return value;
@@ -9,10 +9,10 @@ import {
9
9
  isHttpUrl,
10
10
  renameWithRetry,
11
11
  runFfmpeg
12
- } from "./chunk-UUFY6A7I.js";
12
+ } from "./chunk-UKB62QOT.js";
13
13
  import {
14
14
  parseAnimatedGifMetadata
15
- } from "./chunk-G7RKSAKS.js";
15
+ } from "./chunk-74UH2KGI.js";
16
16
  import {
17
17
  parseHTML
18
18
  } from "./chunk-SDYDNHEE.js";
@@ -190,7 +190,7 @@ async function runAnimatedGifTranscode(request) {
190
190
  failureReason: result.failureReason
191
191
  });
192
192
  }
193
- if (result.terminationReason === "deadline") {
193
+ if (result.terminationReason === "inactivity") {
194
194
  throw new Error(`Animated GIF transcode timed out after ${timeout}ms`);
195
195
  }
196
196
  throw result.error ?? new Error(`Animated GIF transcode failed (${result.exitCode}): ${result.stderr.slice(-500)}`);
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/utils/producer.ts
9
9
  async function loadProducer() {
10
- return await import("./src-26NBARTO.js");
10
+ return await import("./src-46QTOHZE.js");
11
11
  }
12
12
 
13
13
  export {
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-ISN5GRYI.js";
18
18
  import {
19
19
  VERSION
20
- } from "./chunk-KPUTRG54.js";
20
+ } from "./chunk-IIH24PKY.js";
21
21
 
22
22
  // src/utils/updateCheck.ts
23
23
  import { existsSync, readFileSync } 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
  readCompositionFps
9
- } from "./chunk-WAG4AX5C.js";
9
+ } from "./chunk-YTBE4JCX.js";
10
10
  import {
11
11
  errorBox
12
12
  } from "./chunk-K2FLNJVB.js";
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  DEFAULT_CONFIG,
18
18
  resolvePageNavigationTimeout
19
- } from "./chunk-UUFY6A7I.js";
19
+ } from "./chunk-UKB62QOT.js";
20
20
  import {
21
21
  parseFps
22
- } from "./chunk-G7RKSAKS.js";
22
+ } from "./chunk-74UH2KGI.js";
23
23
 
24
24
  // src/browser/windowsCrash.ts
25
25
  var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";