hyperframes 0.9.47 → 0.9.48

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 (201) hide show
  1. package/dist/{add-QNGZD4DD.js → add-3H4DG4RA.js} +5 -5
  2. package/dist/{agentPromptGenerator-62YBRRWR.js → agentPromptGenerator-PIHKWDAW.js} +3 -2
  3. package/dist/{animatedGifPrep-MOMPPYA2.js → animatedGifPrep-SXYSHW6I.js} +3 -2
  4. package/dist/api.js +20 -19
  5. package/dist/{asset-UCSTQD4V.js → asset-43VALPNF.js} +2 -2
  6. package/dist/{assetCataloger-CB55JIVV.js → assetCataloger-MUOL6FRF.js} +5 -4
  7. package/dist/{audio-L6RHV5YR.js → audio-ZHGSDLJR.js} +8 -7
  8. package/dist/{auth-26I37JOQ.js → auth-UXRKOJQB.js} +2 -2
  9. package/dist/{autoUpdate-IKM2WKSQ.js → autoUpdate-PMEPQG65.js} +2 -2
  10. package/dist/{avatars-PZPL5EG2.js → avatars-QFBWZAIE.js} +7 -6
  11. package/dist/{backgroundChecks-GISZGTXC.js → backgroundChecks-OK6SI7BE.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{beats-EKU5XXBV.js → beats-O23QKE6J.js} +4 -4
  14. package/dist/{benchmark-TPGYG6JW.js → benchmark-DKBSDIX5.js} +6 -6
  15. package/dist/{billing-PECZH526.js → billing-ZZCU3K3Q.js} +4 -4
  16. package/dist/{browser-W26LDR2J.js → browser-4X6WZ6UD.js} +3 -3
  17. package/dist/{bundleWithLocalizedFonts-OI3E22MQ.js → bundleWithLocalizedFonts-M64DWYM5.js} +1 -1
  18. package/dist/{capture-QHWQ2PB2.js → capture-JJARZBDS.js} +81 -262
  19. package/dist/{capture-OPWIRIZC.js → capture-O3W6P6DB.js} +4 -4
  20. package/dist/{captureCompositionFrame-EYB6LTAG.js → captureCompositionFrame-JLTAV6VN.js} +6 -5
  21. package/dist/{catalog-D6PL6DN3.js → catalog-4A4CPKPT.js} +5 -5
  22. package/dist/{catch-up-SKLAQOCM.js → catch-up-EUQFPFMU.js} +4 -4
  23. package/dist/{check-QHDE55TC.js → check-IZ6SFIGR.js} +21 -20
  24. package/dist/{checkAudio-EENVIQJA.js → checkAudio-5IRYPK3A.js} +5 -4
  25. package/dist/{checkBrowser-SERJXBXN.js → checkBrowser-HUCHMJV4.js} +15 -14
  26. package/dist/{chunk-LX4KUCDF.js → chunk-2GS3N3TZ.js} +1 -1
  27. package/dist/{chunk-PO3OQ2FP.js → chunk-3JWNN5PN.js} +53 -239
  28. package/dist/{chunk-U7W6SW3X.js → chunk-3LH7DND6.js} +1 -1
  29. package/dist/{chunk-TQGFY4NR.js → chunk-44EG3TMN.js} +1 -1
  30. package/dist/{chunk-IPKKY42Q.js → chunk-4BJYQXFF.js} +1 -1
  31. package/dist/{chunk-HDHFXHUG.js → chunk-4HP2MTKM.js} +1 -1
  32. package/dist/{chunk-ZKVC5V7U.js → chunk-4WDBYCUK.js} +1 -1
  33. package/dist/{chunk-YLX7EX7Z.js → chunk-5AJNQMML.js} +1 -1
  34. package/dist/{chunk-HUMMHYLF.js → chunk-5DW2DEHX.js} +1 -1
  35. package/dist/{chunk-VXT4EGLU.js → chunk-5IE7DN6I.js} +1 -1
  36. package/dist/{chunk-RAWVDZVU.js → chunk-5MHENUR3.js} +2 -2
  37. package/dist/{chunk-WEP7PDVB.js → chunk-6DNSUUKB.js} +1 -1
  38. package/dist/{chunk-SHNSD75H.js → chunk-7SNB3KGY.js} +1 -1
  39. package/dist/{chunk-HKXQXP7W.js → chunk-7X2TCJJ7.js} +1 -1
  40. package/dist/{chunk-B7BYBS7G.js → chunk-BEPEMS56.js} +4 -4
  41. package/dist/{chunk-DTA5WWXO.js → chunk-BM6LSTMG.js} +2 -2
  42. package/dist/{chunk-YXYRPI4X.js → chunk-CDBPBLYJ.js} +1 -1
  43. package/dist/{chunk-P4CZXQU5.js → chunk-CTWD5ND3.js} +8 -8
  44. package/dist/{chunk-BQKVAQLE.js → chunk-CZBTUYLW.js} +2 -2
  45. package/dist/{chunk-BVAN2Q5W.js → chunk-DACTRVDQ.js} +3 -3
  46. package/dist/{chunk-6FMUE7ZO.js → chunk-DFJIVRYU.js} +1 -1
  47. package/dist/{chunk-B4LOHIIR.js → chunk-E5OW6L6E.js} +2 -2
  48. package/dist/{chunk-3YBNVXEU.js → chunk-ESXZZU25.js} +2 -2
  49. package/dist/{chunk-J25LQS5W.js → chunk-EVRVYDKJ.js} +4 -4
  50. package/dist/{chunk-OBCJMZCW.js → chunk-EWMPCW7J.js} +1 -1
  51. package/dist/{chunk-Y6FRUECL.js → chunk-FF3VETCD.js} +1 -1
  52. package/dist/{chunk-T3QQB5EX.js → chunk-FFZE3G5R.js} +1 -1
  53. package/dist/{chunk-XGHZO74X.js → chunk-FLHKID4G.js} +2 -2
  54. package/dist/{chunk-FHDIU5ZS.js → chunk-GXPAR6JC.js} +2 -2
  55. package/dist/{chunk-RYBLJK44.js → chunk-GZSJYNAJ.js} +8 -6
  56. package/dist/{chunk-JLJINOXS.js → chunk-HZXRORAG.js} +2 -2
  57. package/dist/{chunk-KWFYSZCH.js → chunk-I4OQGQ5M.js} +1 -1
  58. package/dist/{chunk-37AEW3GR.js → chunk-I542AQXY.js} +2 -2
  59. package/dist/{chunk-IJOIZLYK.js → chunk-IK7DQLH7.js} +4 -4
  60. package/dist/{chunk-4KC5DS6S.js → chunk-IPTZMILN.js} +1 -1
  61. package/dist/{chunk-ZOCKADVZ.js → chunk-IQA5CXNE.js} +1 -1
  62. package/dist/{chunk-7LO34MHD.js → chunk-JET2QWI5.js} +2 -2
  63. package/dist/{chunk-N4FY2HKI.js → chunk-JN4ING5S.js} +2 -2
  64. package/dist/{chunk-SUZQXGUS.js → chunk-JUI6DQFD.js} +2 -2
  65. package/dist/{chunk-TE3W2M5C.js → chunk-JX7623IE.js} +4 -274
  66. package/dist/{chunk-MGDDKISL.js → chunk-JYOOWDQK.js} +1 -1
  67. package/dist/{chunk-2NDIECXH.js → chunk-LIQZZ6AE.js} +1 -1
  68. package/dist/{chunk-IHRUU5WH.js → chunk-M5PWCI3M.js} +2 -2
  69. package/dist/{chunk-TQIH2UOD.js → chunk-MZ2LNNLT.js} +4 -4
  70. package/dist/{chunk-3GF2F27E.js → chunk-NAUOUIEW.js} +1 -1
  71. package/dist/{chunk-2KVC32Y3.js → chunk-NECZT66A.js} +2 -2
  72. package/dist/{chunk-LE3XMWQX.js → chunk-OFAEOC67.js} +4 -4
  73. package/dist/{chunk-XG64CLX7.js → chunk-OO4R2IFF.js} +1 -1
  74. package/dist/{chunk-WOJPS7PK.js → chunk-P4FZ67X5.js} +1 -1
  75. package/dist/{chunk-KWZSUULG.js → chunk-PBTXEWFY.js} +2 -2
  76. package/dist/{chunk-3JFTAIKA.js → chunk-POCPG2WI.js} +7 -7
  77. package/dist/{chunk-J7XEUHMI.js → chunk-PVR4LBWK.js} +9 -9
  78. package/dist/{upstreamProxy-W5FWAT5Z.js → chunk-QCAKISPA.js} +0 -11
  79. package/dist/{chunk-ZPRNVEOF.js → chunk-QQSVDBSH.js} +9 -9
  80. package/dist/{chunk-57LBTIIT.js → chunk-RGGQBF7T.js} +1 -1
  81. package/dist/{chunk-PE4MPXIE.js → chunk-RV6ZSL4E.js} +3 -3
  82. package/dist/{chunk-YVWL2VBO.js → chunk-SGLUNJTO.js} +1 -1
  83. package/dist/{chunk-WMHMIMFW.js → chunk-SXMAJMTP.js} +1 -1
  84. package/dist/{chunk-3FSMDR37.js → chunk-T4TF22AD.js} +5 -5
  85. package/dist/{chunk-PLXD7DE2.js → chunk-TM4PTEAL.js} +1 -1
  86. package/dist/{chunk-3GSERPDG.js → chunk-TPVRUKKI.js} +4 -4
  87. package/dist/chunk-UG3G4HEH.js +701 -0
  88. package/dist/{chunk-FWNIFHN5.js → chunk-ULNYVLR5.js} +1 -1
  89. package/dist/{chunk-P63B2XHE.js → chunk-VTLYJLGX.js} +2 -2
  90. package/dist/{chunk-GCL4GZVF.js → chunk-W56YNDIJ.js} +1 -1
  91. package/dist/{chunk-X3ZA4UCJ.js → chunk-WT2OKPEW.js} +1 -1
  92. package/dist/{chunk-KHK4M5ZI.js → chunk-XUCEC2EI.js} +1 -1
  93. package/dist/{chunk-HZE3LKBA.js → chunk-YZERHM3O.js} +2 -2
  94. package/dist/{chunk-E57FGXI2.js → chunk-Z2DDFW7J.js} +8 -8
  95. package/dist/{chunk-OGCP6FB2.js → chunk-ZJTSSZVG.js} +1 -1
  96. package/dist/{chunk-XEGFC2UX.js → chunk-ZQMK76GC.js} +1 -1
  97. package/dist/{chunk-5PE6556N.js → chunk-ZR7CJIH3.js} +18 -18
  98. package/dist/{clean-ZJIHNP2V.js → clean-YTQ7THRZ.js} +8 -7
  99. package/dist/cli.js +61 -61
  100. package/dist/{cloud-7I6NRBUH.js → cloud-NYF5MJVW.js} +4 -4
  101. package/dist/{compare-3LJ7SO5I.js → compare-Z32R2SCB.js} +11 -10
  102. package/dist/{component-MDRAU2EL.js → component-UAZQ4P7D.js} +3 -3
  103. package/dist/{compositions-7WWVFUKL.js → compositions-WRX752GP.js} +7 -6
  104. package/dist/{curve-CV2TEGZL.js → curve-GPONFTFR.js} +7 -6
  105. package/dist/{cuts-UUAWNDQJ.js → cuts-RC2WIAYL.js} +8 -7
  106. package/dist/{delete-FFGW2LXY.js → delete-MDRUJACW.js} +2 -2
  107. package/dist/{deploy-CWTKDXLS.js → deploy-EV4JCQW6.js} +2 -2
  108. package/dist/{describeProject-EDKWLCSL.js → describeProject-D2MMDRME.js} +3 -2
  109. package/dist/{destroy-NOYFGGDD.js → destroy-IBQ64X7C.js} +2 -2
  110. package/dist/{diff-YSHVMJC7.js → diff-BGZFEZ7V.js} +20 -19
  111. package/dist/{doctor-4FEE457C.js → doctor-TDF4VFEI.js} +7 -6
  112. package/dist/{energy-POEWTT6O.js → energy-DDE435SP.js} +8 -7
  113. package/dist/{events-FULDXHAM.js → events-CQLKSC62.js} +2 -2
  114. package/dist/{events-XQQBVMQT.js → events-IFAKMWNL.js} +9 -8
  115. package/dist/{events-I4LQF5YH.js → events-WA3SQMWZ.js} +3 -3
  116. package/dist/{execute-PM46UN5B.js → execute-H337HQ2I.js} +13 -12
  117. package/dist/{extract-RB6GUKDH.js → extract-LOH2HC74.js} +8 -7
  118. package/dist/{face-CTNMUSZJ.js → face-RMDNBINB.js} +8 -7
  119. package/dist/{feedback-JHSCPZAH.js → feedback-QX4CBEFU.js} +5 -5
  120. package/dist/{ffmpeg-ZDD7X4NY.js → ffmpeg-LXWLSIJN.js} +3 -2
  121. package/dist/{figma-DOTGYJR2.js → figma-QNCIZZKI.js} +3 -3
  122. package/dist/fontLocalizeCli.js +6 -5
  123. package/dist/{frames-BA2O2YJD.js → frames-M3ZAUTAZ.js} +9 -8
  124. package/dist/{generate-UVYECX6G.js → generate-JHWY26CH.js} +13 -12
  125. package/dist/{get-THXXCSQ6.js → get-UOPVKIUK.js} +2 -2
  126. package/dist/{gpuPolicy-SXWEHK7V.js → gpuPolicy-4UHHZMH7.js} +3 -2
  127. package/dist/{grade-compare-H3VNRJQD.js → grade-compare-TRTR3HGM.js} +12 -11
  128. package/dist/{heifImagePrep-OLZTCTGK.js → heifImagePrep-7DRKOFIJ.js} +4 -3
  129. package/dist/{help-LKHACFHV.js → help-XBJ3CPJG.js} +1 -1
  130. package/dist/{history-6ABMJPFQ.js → history-4NBOWTAK.js} +6 -6
  131. package/dist/hyperframes-player.global.js +1 -1
  132. package/dist/{info-6ID5AKTQ.js → info-6OUYHW5G.js} +9 -8
  133. package/dist/{init-DMFKWS6X.js → init-U4UGYE5D.js} +19 -18
  134. package/dist/{ink-TGKWBWHT.js → ink-3K5U33XB.js} +8 -7
  135. package/dist/{inspect-YV6LZCC5.js → inspect-U6QLWQW2.js} +13 -12
  136. package/dist/{keyframes-ZAEKCOXL.js → keyframes-HRT4ICFF.js} +6 -6
  137. package/dist/{lambda-44XW4CWE.js → lambda-QCYXB7S3.js} +5 -4
  138. package/dist/{layout-C5ZLVGVK.js → layout-S6E5YVK5.js} +13 -12
  139. package/dist/{lint-II2XYWFT.js → lint-JNQUZ5H6.js} +6 -6
  140. package/dist/{list-VR64W4L2.js → list-IEATKMVG.js} +2 -2
  141. package/dist/{localPage-7ANEOK7B.js → localPage-KKLCOLJR.js} +3 -2
  142. package/dist/{login-IXGTJPST.js → login-BWXQWFKL.js} +4 -4
  143. package/dist/{look-CJTTSIFD.js → look-5EMJASLS.js} +8 -7
  144. package/dist/{manager-W5HFI6EI.js → manager-7XKYKMB7.js} +4 -3
  145. package/dist/{measure-FSFVXCQ5.js → measure-UW3MUWR7.js} +11 -11
  146. package/dist/{media-treatment-2NRQQJKN.js → media-treatment-C26U3INH.js} +8 -7
  147. package/dist/{media-use-IKIIV7TQ.js → media-use-IGSJKXLU.js} +3 -3
  148. package/dist/{models-XDVZN6B2.js → models-XQMHEBHU.js} +7 -6
  149. package/dist/{motionShot-PJU7NV2G.js → motionShot-PH2I6VOO.js} +8 -7
  150. package/dist/{normalize-audio-6G5VU5XM.js → normalize-audio-ROHXFODM.js} +4 -4
  151. package/dist/{open-22OQII2X.js → open-UAGIY4HR.js} +4 -4
  152. package/dist/{parakeetRunner-YOQACWZQ.js → parakeetRunner-OOJI6E2B.js} +8 -7
  153. package/dist/{pipeline-DFPGGGHW.js → pipeline-GQUCPCXS.js} +6 -5
  154. package/dist/{plan-7IH2XDWA.js → plan-PNV4KSCO.js} +9 -8
  155. package/dist/{play-YDY6IZZH.js → play-UEEYAMEA.js} +4 -4
  156. package/dist/{preflight-EPJE4LO7.js → preflight-E6FYCMJX.js} +4 -3
  157. package/dist/{present-FFNDXDPP.js → present-ZKBO5RTJ.js} +4 -4
  158. package/dist/{preview-KBV5YTCC.js → preview-SQFT4TGS.js} +9 -8
  159. package/dist/{probe-ZN5VLXRP.js → probe-35RQ7WQ6.js} +8 -7
  160. package/dist/{producer-JIJV6EUA.js → producer-7PCYSXHR.js} +1 -1
  161. package/dist/publicNetwork-CWRD7PSE.js +34 -0
  162. package/dist/{publish-P5WEMSFM.js → publish-UEF3X6G7.js} +3 -3
  163. package/dist/{remove-background-TUJDKW2H.js → remove-background-KES26J53.js} +7 -6
  164. package/dist/{render-KICKIUBU.js → render-4C7Q32BC.js} +21 -20
  165. package/dist/{render-IS5W2MXU.js → render-GH2KWOVT.js} +13 -12
  166. package/dist/{reverse-AUPP7FPD.js → reverse-I6VOINAN.js} +1 -1
  167. package/dist/{screenshotCapture-WLPWWM4U.js → screenshotCapture-HXTGIPHY.js} +3 -2
  168. package/dist/{service-WJTJEB5D.js → service-KXRPG74T.js} +7 -6
  169. package/dist/{share-62SZB3ZC.js → share-G2UPZLLH.js} +10 -9
  170. package/dist/{sherpa-MCYJFFXG.js → sherpa-P3IEXV3S.js} +7 -6
  171. package/dist/{skills-WJWBMXTF.js → skills-4KNW2APN.js} +6 -6
  172. package/dist/{skillsUpdateCheck-UF27YQL3.js → skillsUpdateCheck-XRXMK2BR.js} +3 -3
  173. package/dist/{snapshot-EXHFVNL2.js → snapshot-MSTKQXSJ.js} +19 -18
  174. package/dist/{src-2IOZPMJR.js → src-5O3RW44E.js} +7 -5
  175. package/dist/{src-JYBAAFEQ.js → src-EJXQBNFT.js} +5 -4
  176. package/dist/{start-XSG7DSQ2.js → start-WERFNWUG.js} +11 -10
  177. package/dist/{staticProjectServer-FIGDMMOC.js → staticProjectServer-MTL5UOLQ.js} +3 -2
  178. package/dist/{status-PQ2WYRMY.js → status-MOLSRFMM.js} +4 -4
  179. package/dist/studio/assets/{hyperframes-player-DTdMXCCs.js → hyperframes-player-DYtpqF4w.js} +1 -1
  180. package/dist/studio/assets/{index-CdtV6F8j.js → index-D_6Nvt4M.js} +5 -5
  181. package/dist/studio/assets/{index-DA5GM2Mj.js → index-pSFnTYYo.js} +1 -1
  182. package/dist/studio/assets/{pausedVideoDecoder-B4OsoiOL.js → pausedVideoDecoder-D_jYmpmj.js} +1 -1
  183. package/dist/studio/index.html +1 -1
  184. package/dist/{studioServer-R5OHWANQ.js → studioServer-A73V7BGB.js} +27 -26
  185. package/dist/{sync-LD3KRR6A.js → sync-VV4THGGW.js} +8 -7
  186. package/dist/{telemetry-QZ6KSMD7.js → telemetry-VTF2M5AG.js} +3 -3
  187. package/dist/{templates-LMVSSS6P.js → templates-IDYVXLRA.js} +4 -4
  188. package/dist/{timeline-RFMWAREC.js → timeline-RHXNE24Z.js} +8 -7
  189. package/dist/{tokens-5G463QQT.js → tokens-TYYUI63J.js} +2 -2
  190. package/dist/{transcribe-7DCWYRRP.js → transcribe-5JGZPJCT.js} +15 -14
  191. package/dist/{transcribe-N3NT7EMS.js → transcribe-ZC22NJXV.js} +6 -5
  192. package/dist/{update-44NG62J2.js → update-QIVTZXMN.js} +7 -7
  193. package/dist/{updateCheck-PEVRHYT2.js → updateCheck-7RZEDERP.js} +2 -2
  194. package/dist/{upgrade-YGBOB2HE.js → upgrade-HYRR4ZLW.js} +3 -3
  195. package/dist/{urlDownloader-NBGMT536.js → urlDownloader-YPKIQ2PI.js} +2 -1
  196. package/dist/{validate-V65Y26SO.js → validate-ZWUJ2E2U.js} +12 -11
  197. package/dist/{video-RYUMW6QV.js → video-CNLMBOOB.js} +5 -4
  198. package/dist/{voices-OBIFVMMB.js → voices-4GOW5GZG.js} +11 -10
  199. package/dist/warmCheck.js +21 -20
  200. package/package.json +1 -1
  201. package/dist/chunk-TSYRN646.js +0 -84
@@ -5,7 +5,14 @@ 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
- removeTreeBestEffort
8
+ browserProxyArgs,
9
+ createPublicOnlyProfile,
10
+ isBlockedNetworkHost,
11
+ startCaptureProxy
12
+ } from "./chunk-UG3G4HEH.js";
13
+ import {
14
+ removeTreeBestEffort,
15
+ removeTreeBestEffortAsync
9
16
  } from "./chunk-Z5J67X44.js";
10
17
  import {
11
18
  alphaDecoderFor,
@@ -1091,7 +1098,8 @@ function fingerprintKey(fingerprint) {
1091
1098
  fingerprint.withoutWaylandDisplay === true,
1092
1099
  fingerprint.browserTimeoutMs,
1093
1100
  fingerprint.protocolTimeoutMs,
1094
- fingerprint.requestedCaptureMode
1101
+ fingerprint.requestedCaptureMode,
1102
+ fingerprint.publicOnly ?? null
1095
1103
  ]);
1096
1104
  }
1097
1105
  var BrowserLeasePool = class _BrowserLeasePool {
@@ -1801,7 +1809,10 @@ function createBrowserLaunchFingerprint(chromeArgs, config) {
1801
1809
  withoutWaylandDisplay: launchConfig.withoutWaylandDisplay === true,
1802
1810
  browserTimeoutMs: launchConfig.browserTimeout,
1803
1811
  protocolTimeoutMs: launchConfig.protocolTimeout,
1804
- requestedCaptureMode
1812
+ requestedCaptureMode,
1813
+ publicOnly: resolveRestrictPageNetwork() ? {
1814
+ pageServerHost: launchConfig.pageServerUrl && new URL(launchConfig.pageServerUrl).host
1815
+ } : void 0
1805
1816
  };
1806
1817
  }
1807
1818
  async function acquireBrowser(chromeArgs, config) {
@@ -1819,11 +1830,30 @@ async function launchInsideSandbox(ppt, options) {
1819
1830
  return ppt.launch(oneProcessOverPipe(options));
1820
1831
  }
1821
1832
  }
1833
+ async function publicOnlyNetwork(pageServerHost) {
1834
+ const proxy = await startCaptureProxy(null);
1835
+ try {
1836
+ const userDataDir = await createPublicOnlyProfile("hf-render-profile-");
1837
+ return {
1838
+ args: browserProxyArgs(proxy.url, pageServerHost),
1839
+ userDataDir,
1840
+ async close() {
1841
+ await proxy.close();
1842
+ await removeTreeBestEffortAsync(userDataDir);
1843
+ }
1844
+ };
1845
+ } catch (error) {
1846
+ await proxy.close();
1847
+ throw error;
1848
+ }
1849
+ }
1822
1850
  async function launchBrowser(fingerprint) {
1823
1851
  const ppt = await getPuppeteer();
1824
1852
  const env = launchEnv(fingerprint);
1825
1853
  let captureMode = fingerprint.requestedCaptureMode;
1826
1854
  let browser;
1855
+ const network = fingerprint.publicOnly ? await publicOnlyNetwork(fingerprint.publicOnly.pageServerHost) : void 0;
1856
+ const browserArgs = network ? [...fingerprint.args, ...network.args] : fingerprint.args;
1827
1857
  const launch = (args) => {
1828
1858
  let attempted = args;
1829
1859
  return launchWithChromeSandboxFallback(args, (launchArgs) => {
@@ -1833,6 +1863,7 @@ async function launchBrowser(fingerprint) {
1833
1863
  headless: true,
1834
1864
  args: withHyperframesBrowserMarker(launchArgs),
1835
1865
  defaultViewport: null,
1866
+ userDataDir: network?.userDataDir,
1836
1867
  executablePath: fingerprint.executablePath,
1837
1868
  env,
1838
1869
  timeout: fingerprint.browserTimeoutMs,
@@ -1855,7 +1886,7 @@ async function launchBrowser(fingerprint) {
1855
1886
  timedOut: false
1856
1887
  }));
1857
1888
  try {
1858
- browser = await launch(fingerprint.args);
1889
+ browser = await launch(browserArgs);
1859
1890
  const browserVersion = await browser.version().catch(() => "unknown");
1860
1891
  const gpuFlags = fingerprint.args.filter(
1861
1892
  (a) => a.startsWith("--use-gl=") || a.startsWith("--use-angle=")
@@ -1871,7 +1902,7 @@ async function launchBrowser(fingerprint) {
1871
1902
  `[BrowserManager] HeadlessExperimental.beginFrame probe timed out after ${result.durationMs}ms: ${result.detail}; retrying once with a longer budget.`
1872
1903
  );
1873
1904
  await closeBrowserAfterFailedProbe(browser);
1874
- browser = await launch(fingerprint.args);
1905
+ browser = await launch(browserArgs);
1875
1906
  result = await probe(browser, BEGINFRAME_PROBE_RETRY_TIMEOUT_MS);
1876
1907
  }
1877
1908
  if (!result.supported) {
@@ -1881,13 +1912,15 @@ async function launchBrowser(fingerprint) {
1881
1912
  `[BrowserManager] HeadlessExperimental.beginFrame probe failed after ${result.durationMs}ms: ${result.detail}; falling back to screenshot mode.`
1882
1913
  );
1883
1914
  captureMode = "screenshot";
1884
- browser = await launch([...stripBeginFrameFlags(fingerprint.args), WHOLE_TILE_RASTER_FLAG]);
1915
+ browser = await launch([...stripBeginFrameFlags(browserArgs), WHOLE_TILE_RASTER_FLAG]);
1885
1916
  }
1886
1917
  }
1918
+ if (network) browser.once("disconnected", () => void network.close());
1887
1919
  return { browser, captureMode };
1888
1920
  } catch (error) {
1889
1921
  await browser?.close().catch(() => {
1890
1922
  });
1923
+ await network?.close();
1891
1924
  throw error;
1892
1925
  }
1893
1926
  }
@@ -5420,108 +5453,6 @@ async function listFfmpeg(flag) {
5420
5453
  }
5421
5454
  }
5422
5455
 
5423
- // ../engine/src/services/pageNetworkPolicy.ts
5424
- import { lookup } from "dns/promises";
5425
- import { isIP as isIP2 } from "net";
5426
-
5427
- // ../engine/src/utils/networkPolicy.ts
5428
- import { BlockList, isIP } from "net";
5429
- var NON_PUBLIC_IPV4_ADDRESSES = new BlockList();
5430
- for (const [network, prefix] of [
5431
- ["0.0.0.0", 8],
5432
- ["10.0.0.0", 8],
5433
- ["100.64.0.0", 10],
5434
- ["127.0.0.0", 8],
5435
- ["169.254.0.0", 16],
5436
- ["172.16.0.0", 12],
5437
- ["192.0.0.0", 24],
5438
- ["192.0.2.0", 24],
5439
- ["192.88.99.0", 24],
5440
- ["192.168.0.0", 16],
5441
- ["198.18.0.0", 15],
5442
- ["198.51.100.0", 24],
5443
- ["203.0.113.0", 24],
5444
- ["224.0.0.0", 4],
5445
- ["240.0.0.0", 4]
5446
- ]) {
5447
- NON_PUBLIC_IPV4_ADDRESSES.addSubnet(network, prefix, "ipv4");
5448
- }
5449
- var NON_PUBLIC_IPV6_ADDRESSES = new BlockList();
5450
- for (const [network, prefix] of [
5451
- ["::", 128],
5452
- ["::1", 128],
5453
- ["::ffff:0:0", 96],
5454
- ["fc00::", 7],
5455
- ["fe80::", 10],
5456
- ["fec0::", 10],
5457
- ["ff00::", 8],
5458
- ["2001:db8::", 32]
5459
- ]) {
5460
- NON_PUBLIC_IPV6_ADDRESSES.addSubnet(network, prefix, "ipv6");
5461
- }
5462
- function isBlockedNetworkHost(hostname) {
5463
- const h = hostname.toLowerCase().replace(/\.$/, "").replace(/^\[|\]$/g, "");
5464
- if (h === "localhost" || h.endsWith(".localhost") || h.endsWith(".local") || h.endsWith(".internal"))
5465
- return true;
5466
- const addressType = isIP(h);
5467
- if (addressType === 0) return false;
5468
- return addressType === 4 ? NON_PUBLIC_IPV4_ADDRESSES.check(h, "ipv4") : NON_PUBLIC_IPV6_ADDRESSES.check(h, "ipv6");
5469
- }
5470
-
5471
- // ../engine/src/services/pageNetworkPolicy.ts
5472
- var systemResolveHost = async (hostname) => (await lookup(hostname, { all: true, verbatim: true })).map(({ address }) => address);
5473
- async function hostVerdict(hostname, resolveHost) {
5474
- const host = hostname.replace(/^\[|\]$/g, "");
5475
- if (isBlockedNetworkHost(host)) return "non-public";
5476
- if (isIP2(host)) return "public";
5477
- let addresses;
5478
- try {
5479
- addresses = await resolveHost(host);
5480
- } catch {
5481
- return "unresolved";
5482
- }
5483
- if (addresses.length === 0) return "unresolved";
5484
- return addresses.some((a) => isBlockedNetworkHost(a.split("%")[0])) ? "non-public" : "public";
5485
- }
5486
- async function restrictPageNetwork(page, allowedOrigin, resolveHost = systemResolveHost) {
5487
- const own = new URL(allowedOrigin).origin;
5488
- const verdicts = /* @__PURE__ */ new Map();
5489
- const forgetFailedLookup = (host, asked, answer) => {
5490
- if (answer === "unresolved" && verdicts.get(host) === asked) verdicts.delete(host);
5491
- };
5492
- const allows = (url) => {
5493
- let target;
5494
- try {
5495
- target = new URL(url);
5496
- } catch {
5497
- return Promise.resolve(false);
5498
- }
5499
- if (target.origin === own || !/^(https?|wss?):$/.test(target.protocol)) {
5500
- return Promise.resolve(true);
5501
- }
5502
- const host = target.hostname;
5503
- let verdict = verdicts.get(host);
5504
- if (!verdict) {
5505
- const asked = hostVerdict(host, resolveHost);
5506
- verdicts.set(host, asked);
5507
- void asked.then((answer) => forgetFailedLookup(host, asked, answer));
5508
- verdict = asked;
5509
- }
5510
- return verdict.then((answer) => answer === "public");
5511
- };
5512
- const client = await page.createCDPSession();
5513
- client.on("Fetch.requestPaused", (event) => {
5514
- void allows(event.request.url).then((allowed) => {
5515
- const settled = allowed ? client.send("Fetch.continueRequest", { requestId: event.requestId }) : client.send("Fetch.failRequest", {
5516
- requestId: event.requestId,
5517
- errorReason: "BlockedByClient"
5518
- });
5519
- return settled.catch(() => void 0);
5520
- });
5521
- });
5522
- await client.send("Fetch.enable", { patterns: [{ urlPattern: "*", requestStage: "Request" }] });
5523
- }
5524
-
5525
5456
  // ../engine/src/utils/renderProvenance.ts
5526
5457
  import { readFileSync as readFileSync3 } from "fs";
5527
5458
  import { createRequire } from "module";
@@ -7935,7 +7866,11 @@ async function createCaptureSession(serverUrl, outputDir, options, onBeforeCaptu
7935
7866
  gpuConfig
7936
7867
  );
7937
7868
  const withoutWaylandDisplay = await captureWithoutWaylandDisplay(resolvedGpuMode);
7938
- const browserLease = await acquireBrowser(chromeArgs, { ...config, withoutWaylandDisplay });
7869
+ const browserLease = await acquireBrowser(chromeArgs, {
7870
+ ...config,
7871
+ withoutWaylandDisplay,
7872
+ pageServerUrl: serverUrl
7873
+ });
7939
7874
  return constructCaptureSessionWithRollback({
7940
7875
  browserLease,
7941
7876
  serverUrl,
@@ -7985,9 +7920,6 @@ async function constructCaptureSessionWithRollback(input) {
7985
7920
  throw error;
7986
7921
  }
7987
7922
  }
7988
- async function guardPageNetwork(page, serverUrl) {
7989
- if (resolveRestrictPageNetwork()) await restrictPageNetwork(page, serverUrl);
7990
- }
7991
7923
  async function constructCaptureSession(input) {
7992
7924
  const {
7993
7925
  browserLease,
@@ -8004,7 +7936,6 @@ async function constructCaptureSession(input) {
8004
7936
  const { browser, captureMode } = browserLease;
8005
7937
  const page = await browser.newPage();
8006
7938
  onPageCreated(page);
8007
- await guardPageNetwork(page, serverUrl);
8008
7939
  const frame = page.mainFrame();
8009
7940
  const { CDPSession } = await import("puppeteer-core");
8010
7941
  if ("client" in frame && frame.client instanceof CDPSession) {
@@ -9536,7 +9467,6 @@ async function createStaticVerificationPage(session) {
9536
9467
  const pageNavigationTimeout = session.config?.pageNavigationTimeout ?? DEFAULT_CONFIG.pageNavigationTimeout;
9537
9468
  const pageReadyTimeout = session.config?.playerReadyTimeout ?? DEFAULT_CONFIG.playerReadyTimeout;
9538
9469
  try {
9539
- await guardPageNetwork(page, session.serverUrl);
9540
9470
  await page.evaluateOnNewDocument(() => {
9541
9471
  const w = window;
9542
9472
  if (typeof w.__name !== "function") {
@@ -15396,7 +15326,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
15396
15326
  shownBoxKey(options.shownBoxes?.get(work.video.id) ?? options.shownBox)
15397
15327
  ].filter((part) => part !== void 0);
15398
15328
  const transform = transformParts.length > 0 ? transformParts.join("+") : void 0;
15399
- const lookup2 = lookupCacheEntry(cacheRootDir, {
15329
+ const lookup = lookupCacheEntry(cacheRootDir, {
15400
15330
  videoPath: keyInput.videoPath,
15401
15331
  mtimeMs: keyInput.mtimeMs,
15402
15332
  size: keyInput.size,
@@ -15407,14 +15337,14 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
15407
15337
  format: work.format,
15408
15338
  transform
15409
15339
  });
15410
- if (!lookup2.hit) {
15340
+ if (!lookup.hit) {
15411
15341
  breakdown.cacheMisses += 1;
15412
- return { work, cacheTarget: { entry: lookup2.entry, srcPath: keyInput.videoPath } };
15342
+ return { work, cacheTarget: { entry: lookup.entry, srcPath: keyInput.videoPath } };
15413
15343
  }
15414
15344
  breakdown.cacheHits += 1;
15415
- touchCacheEntry(lookup2.entry);
15345
+ touchCacheEntry(lookup.entry);
15416
15346
  return {
15417
- result: rehydratePublishedCache(work, { entry: lookup2.entry, srcPath: keyInput.videoPath })
15347
+ result: rehydratePublishedCache(work, { entry: lookup.entry, srcPath: keyInput.videoPath })
15418
15348
  };
15419
15349
  }
15420
15350
  async function extractDirectMiss(miss, maxTransientRetries = options.maxTransientRetries ?? 0) {
@@ -15687,11 +15617,11 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
15687
15617
  );
15688
15618
  await hashContentKeyedSources(worksToLookUp);
15689
15619
  for (const work of worksToLookUp) {
15690
- const lookup2 = lookupCacheFor(work);
15691
- if ("work" in lookup2) {
15692
- cacheMisses.push(lookup2);
15620
+ const lookup = lookupCacheFor(work);
15621
+ if ("work" in lookup) {
15622
+ cacheMisses.push(lookup);
15693
15623
  } else {
15694
- uniqueOutcomes.set(work.dedupeKey, lookup2);
15624
+ uniqueOutcomes.set(work.dedupeKey, lookup);
15695
15625
  }
15696
15626
  }
15697
15627
  const supersetPlan = planSupersetGroups(cacheMisses, fps);
@@ -19856,118 +19786,6 @@ function createFileServer(options) {
19856
19786
  });
19857
19787
  }
19858
19788
 
19859
- // ../engine/src/utils/browserSafePort.ts
19860
- var RESTRICTED_PORTS = /* @__PURE__ */ new Set([
19861
- 1,
19862
- 7,
19863
- 9,
19864
- 11,
19865
- 13,
19866
- 15,
19867
- 17,
19868
- 19,
19869
- 20,
19870
- 21,
19871
- 22,
19872
- 23,
19873
- 25,
19874
- 37,
19875
- 42,
19876
- 43,
19877
- 53,
19878
- 69,
19879
- 77,
19880
- 79,
19881
- 87,
19882
- 95,
19883
- 101,
19884
- 102,
19885
- 103,
19886
- 104,
19887
- 109,
19888
- 110,
19889
- 111,
19890
- 113,
19891
- 115,
19892
- 117,
19893
- 119,
19894
- 123,
19895
- 135,
19896
- 137,
19897
- 139,
19898
- 143,
19899
- 161,
19900
- 179,
19901
- 389,
19902
- 427,
19903
- 465,
19904
- 512,
19905
- 513,
19906
- 514,
19907
- 515,
19908
- 526,
19909
- 530,
19910
- 531,
19911
- 532,
19912
- 540,
19913
- 548,
19914
- 554,
19915
- 556,
19916
- 563,
19917
- 587,
19918
- 601,
19919
- 636,
19920
- 989,
19921
- 990,
19922
- 993,
19923
- 995,
19924
- 1719,
19925
- 1720,
19926
- 1723,
19927
- 2049,
19928
- 3659,
19929
- 4045,
19930
- 5060,
19931
- 5061,
19932
- 6e3,
19933
- 6566,
19934
- 6665,
19935
- 6666,
19936
- 6667,
19937
- 6668,
19938
- 6669,
19939
- 6697,
19940
- 10080
19941
- ]);
19942
- var MAX_ATTEMPTS = 32;
19943
- var isBrowserSafePort = (port) => !RESTRICTED_PORTS.has(port);
19944
- function listenOnce(server, host) {
19945
- return new Promise((resolve2, reject) => {
19946
- server.once("error", reject);
19947
- server.listen(0, host, () => {
19948
- server.off("error", reject);
19949
- resolve2(server.address().port);
19950
- });
19951
- });
19952
- }
19953
- function closeServer(server) {
19954
- return new Promise((resolve2) => server.close(() => resolve2()));
19955
- }
19956
- async function settleOnBrowserSafePort(server, host) {
19957
- let port = server.address().port;
19958
- for (let attempt = 1; !isBrowserSafePort(port); attempt++) {
19959
- if (attempt >= MAX_ATTEMPTS)
19960
- throw new Error(`The OS kept offering browser-restricted ports (last: ${port}).`);
19961
- await closeServer(server);
19962
- port = await listenOnce(server, host);
19963
- }
19964
- return port;
19965
- }
19966
- async function listenOnBrowserSafePort(server, host) {
19967
- await listenOnce(server, host);
19968
- return settleOnBrowserSafePort(server, host);
19969
- }
19970
-
19971
19789
  // ../engine/src/utils/layerCompositor.ts
19972
19790
  function groupIntoLayers(elements) {
19973
19791
  const sorted = [...elements].sort((a, b) => a.zIndex - b.zIndex);
@@ -20368,7 +20186,6 @@ export {
20368
20186
  getFfmpegBinary,
20369
20187
  getFfprobeBinary,
20370
20188
  assertConfiguredFfmpegBinariesExist,
20371
- isBlockedNetworkHost,
20372
20189
  trackChildProcess,
20373
20190
  killTrackedProcesses,
20374
20191
  ManagedChildProcess,
@@ -20554,9 +20371,6 @@ export {
20554
20371
  mergeWorkerFrames,
20555
20372
  getSystemResources,
20556
20373
  createFileServer,
20557
- isBrowserSafePort,
20558
- settleOnBrowserSafePort,
20559
- listenOnBrowserSafePort,
20560
20374
  groupIntoLayers,
20561
20375
  diffGpuParityFrames,
20562
20376
  diffGpuParityPngs,
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-HVW7ABXD.js";
17
17
  import {
18
18
  trackBillingCheckoutReturnRefused
19
- } from "./chunk-YLX7EX7Z.js";
19
+ } from "./chunk-5AJNQMML.js";
20
20
 
21
21
  // src/heygen/plan.ts
22
22
  import { randomUUID } from "crypto";
@@ -8,7 +8,7 @@ import {
8
8
  ratioOf,
9
9
  readClip,
10
10
  round
11
- } from "./chunk-2NDIECXH.js";
11
+ } from "./chunk-LIQZZ6AE.js";
12
12
 
13
13
  // src/measure/look.ts
14
14
  var LOOK_FLOOR = { luma: 1, contrast: 1, saturation: 0.01 };
@@ -17,7 +17,7 @@ import {
17
17
  DEFAULT_VP9_CPU_USED,
18
18
  isHttpUrl,
19
19
  runFfmpeg
20
- } from "./chunk-PO3OQ2FP.js";
20
+ } from "./chunk-3JWNN5PN.js";
21
21
  import {
22
22
  renameWithRetry
23
23
  } from "./chunk-DE3JRSGT.js";
@@ -10,7 +10,7 @@ import {
10
10
  ratioOf,
11
11
  readClip,
12
12
  round
13
- } from "./chunk-2NDIECXH.js";
13
+ } from "./chunk-LIQZZ6AE.js";
14
14
 
15
15
  // src/measure/energy.ts
16
16
  var ENERGY_RATE = 12;
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  trackEvent
9
- } from "./chunk-HUMMHYLF.js";
9
+ } from "./chunk-5DW2DEHX.js";
10
10
 
11
11
  // src/telemetry/uploadLeftOut.ts
12
12
  function leftOutCounts(references) {
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-HUMMHYLF.js";
11
+ } from "./chunk-5DW2DEHX.js";
12
12
  import {
13
13
  MOTION_BLUR_FINGERPRINT_FIELDS,
14
14
  redactTelemetryString
@@ -43,7 +43,7 @@ import {
43
43
  } from "./chunk-AWD2MWWL.js";
44
44
  import {
45
45
  VERSION
46
- } from "./chunk-N4FY2HKI.js";
46
+ } from "./chunk-JN4ING5S.js";
47
47
 
48
48
  // src/telemetry/transport.ts
49
49
  import { spawn } from "child_process";
@@ -13,7 +13,7 @@ import {
13
13
  round,
14
14
  runFfmpeg,
15
15
  sumOf
16
- } from "./chunk-2NDIECXH.js";
16
+ } from "./chunk-LIQZZ6AE.js";
17
17
  import {
18
18
  verifies
19
19
  } from "./chunk-RZ6CXJ56.js";
@@ -31,7 +31,7 @@ import {
31
31
  rewriteProjectPinnedScripts,
32
32
  updateChannel,
33
33
  withMeta
34
- } from "./chunk-FWNIFHN5.js";
34
+ } from "./chunk-ULNYVLR5.js";
35
35
  import {
36
36
  setCommandExitCode
37
37
  } from "./chunk-66W5IWLO.js";
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-CPHQTXP5.js";
41
41
  import {
42
42
  VERSION
43
- } from "./chunk-N4FY2HKI.js";
43
+ } from "./chunk-JN4ING5S.js";
44
44
 
45
45
  // src/commands/upgrade.ts
46
46
  import { execFileSync } from "child_process";
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-4QFWV5GQ.js";
33
33
  import {
34
34
  listenOnBrowserSafePort
35
- } from "./chunk-PO3OQ2FP.js";
35
+ } from "./chunk-UG3G4HEH.js";
36
36
  import {
37
37
  stripSdrPngColourTags
38
38
  } from "./chunk-7SY3DERR.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  withOwner
9
- } from "./chunk-YVWL2VBO.js";
9
+ } from "./chunk-SGLUNJTO.js";
10
10
  import {
11
11
  HistoryBusyError,
12
12
  beginArtifactCapture
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-JJ47LVJ7.js";
16
16
  import {
17
17
  findFFmpeg
18
- } from "./chunk-OGCP6FB2.js";
18
+ } from "./chunk-ZJTSSZVG.js";
19
19
  import {
20
20
  stoppableExecFile
21
21
  } from "./chunk-HU2SPFNG.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-JJ47LVJ7.js";
19
19
  import {
20
20
  trackSkillsInstallSkipped
21
- } from "./chunk-YLX7EX7Z.js";
21
+ } from "./chunk-5AJNQMML.js";
22
22
  import {
23
23
  diag
24
24
  } from "./chunk-MCDNAIFF.js";
@@ -39,11 +39,11 @@ import {
39
39
  isCoreSkill,
40
40
  presentSkills,
41
41
  retiredSkillNotice
42
- } from "./chunk-JLJINOXS.js";
42
+ } from "./chunk-HZXRORAG.js";
43
43
  import {
44
44
  NO_UPDATE_NOTICE,
45
45
  withMeta
46
- } from "./chunk-FWNIFHN5.js";
46
+ } from "./chunk-ULNYVLR5.js";
47
47
  import {
48
48
  failureMessage,
49
49
  jsonFailure
@@ -54,7 +54,7 @@ import {
54
54
  } from "./chunk-66W5IWLO.js";
55
55
  import {
56
56
  VERSION
57
- } from "./chunk-N4FY2HKI.js";
57
+ } from "./chunk-JN4ING5S.js";
58
58
 
59
59
  // src/commands/skills.ts
60
60
  import { execFileSync, spawn } from "child_process";
@@ -8,14 +8,14 @@ import {
8
8
  jsonArg,
9
9
  runMeasure,
10
10
  videoArg
11
- } from "./chunk-XGHZO74X.js";
11
+ } from "./chunk-FLHKID4G.js";
12
12
  import {
13
13
  Fix,
14
14
  ffmpegBin,
15
15
  probeVideo,
16
16
  round,
17
17
  runFfmpeg
18
- } from "./chunk-2NDIECXH.js";
18
+ } from "./chunk-LIQZZ6AE.js";
19
19
  import {
20
20
  makeOutputFolder
21
21
  } from "./chunk-3S27CPV7.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-HD5RVDL6.js";
10
10
  import {
11
11
  listenOnBrowserSafePort
12
- } from "./chunk-PO3OQ2FP.js";
12
+ } from "./chunk-UG3G4HEH.js";
13
13
 
14
14
  // src/capture/localPage.ts
15
15
  import {
@@ -18,16 +18,16 @@ import {
18
18
  } from "./chunk-262C25DQ.js";
19
19
  import {
20
20
  pageNavigationTimeoutMs
21
- } from "./chunk-X3ZA4UCJ.js";
21
+ } from "./chunk-WT2OKPEW.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode,
25
25
  rethrowAfterBrowserCleanup
26
- } from "./chunk-FHDIU5ZS.js";
26
+ } from "./chunk-GXPAR6JC.js";
27
27
  import {
28
28
  resolveLocalBrowserGpuMode,
29
29
  resolveLocalWebGpu
30
- } from "./chunk-B4LOHIIR.js";
30
+ } from "./chunk-E5OW6L6E.js";
31
31
  import {
32
32
  c
33
33
  } from "./chunk-JCNPHRGX.js";
@@ -35,7 +35,7 @@ import {
35
35
  assertWebGpuAdapterAvailable,
36
36
  compositionRequiresWebGpu,
37
37
  oneProcessOverPipe
38
- } from "./chunk-PO3OQ2FP.js";
38
+ } from "./chunk-3JWNN5PN.js";
39
39
  import {
40
40
  normalizeErrorMessage
41
41
  } from "./chunk-E63BDV4Z.js";
@@ -143,7 +143,7 @@ async function waitForCompositionSettle(page, options) {
143
143
  console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
144
144
  });
145
145
  await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
146
- const { resolveConfig, waitForImagesReady } = await import("./src-2IOZPMJR.js");
146
+ const { resolveConfig, waitForImagesReady } = await import("./src-5O3RW44E.js");
147
147
  const imageTimeoutMs = resolveConfig().playerReadyTimeout;
148
148
  await waitForImagesReady(
149
149
  page,
@@ -192,7 +192,7 @@ async function installPageFunctionGuard(page) {
192
192
  async function openSettledCompositionPage(html, url, options) {
193
193
  const viewport = resolveCompositionViewportFromHtml(html);
194
194
  const requiresWebGpu = compositionRequiresWebGpu(html);
195
- const answer = (await import("./staticProjectServer-FIGDMMOC.js")).inProcessAnswer(url);
195
+ const answer = (await import("./staticProjectServer-MTL5UOLQ.js")).inProcessAnswer(url);
196
196
  const noListen = answer !== void 0;
197
197
  let chromeBrowser;
198
198
  try {
@@ -203,7 +203,7 @@ async function openSettledCompositionPage(html, url, options) {
203
203
  options.onBrowserReady?.();
204
204
  const page = await chromeBrowser.newPage();
205
205
  await installPageFunctionGuard(page);
206
- const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-2IOZPMJR.js");
206
+ const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-5O3RW44E.js");
207
207
  await installMediaRenderIdBridge(page);
208
208
  await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
209
209
  await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
@@ -224,7 +224,7 @@ async function launchCompositionBrowser(html, noListen, options) {
224
224
  const { ensureBrowser, findSystemBrowser } = await import("./manager-25RJ4IZN.js");
225
225
  const browser = await ensureBrowser({ signal: options.signal });
226
226
  const puppeteer = await import("puppeteer-core");
227
- const { buildChromeArgs } = await import("./src-2IOZPMJR.js");
227
+ const { buildChromeArgs } = await import("./src-5O3RW44E.js");
228
228
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
229
229
  const requiresWebGpu = compositionRequiresWebGpu(html);
230
230
  let softwareWebGpu = false;