hyperframes 0.9.48 → 0.9.49

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 (199) hide show
  1. package/dist/{add-3H4DG4RA.js → add-PALFYN7F.js} +5 -5
  2. package/dist/{agentPromptGenerator-PIHKWDAW.js → agentPromptGenerator-W7YECUWC.js} +3 -3
  3. package/dist/{animatedGifPrep-SXYSHW6I.js → animatedGifPrep-RGTZSKE4.js} +3 -3
  4. package/dist/api.js +20 -20
  5. package/dist/{asset-43VALPNF.js → asset-JI35ENTB.js} +2 -2
  6. package/dist/{assetCataloger-MUOL6FRF.js → assetCataloger-A3T63E76.js} +4 -4
  7. package/dist/{audio-ZHGSDLJR.js → audio-PWT3Y4ER.js} +8 -8
  8. package/dist/{auth-UXRKOJQB.js → auth-HVB4YRTT.js} +2 -2
  9. package/dist/{autoUpdate-PMEPQG65.js → autoUpdate-6DLBJZZW.js} +2 -2
  10. package/dist/{avatars-QFBWZAIE.js → avatars-VKB5R2JP.js} +7 -7
  11. package/dist/{backgroundChecks-OK6SI7BE.js → backgroundChecks-XCMKJT4Z.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{beats-O23QKE6J.js → beats-C2HOZUAS.js} +4 -4
  14. package/dist/{benchmark-DKBSDIX5.js → benchmark-TWKPWI27.js} +6 -6
  15. package/dist/{billing-ZZCU3K3Q.js → billing-74IFJYAX.js} +4 -4
  16. package/dist/{browser-4X6WZ6UD.js → browser-GG3NMOT2.js} +3 -3
  17. package/dist/{bundleWithLocalizedFonts-M64DWYM5.js → bundleWithLocalizedFonts-HBFTQBPU.js} +1 -1
  18. package/dist/{capture-JJARZBDS.js → capture-S76Z24SZ.js} +9 -9
  19. package/dist/{capture-O3W6P6DB.js → capture-ZGZPBEA3.js} +4 -4
  20. package/dist/{captureCompositionFrame-JLTAV6VN.js → captureCompositionFrame-GX7OQSDA.js} +6 -6
  21. package/dist/{catalog-4A4CPKPT.js → catalog-U5IHPRJZ.js} +5 -5
  22. package/dist/{catch-up-EUQFPFMU.js → catch-up-XCQZZDVD.js} +4 -4
  23. package/dist/{check-IZ6SFIGR.js → check-ZEG6CTIC.js} +21 -21
  24. package/dist/{checkAudio-5IRYPK3A.js → checkAudio-SAEK5LIU.js} +5 -5
  25. package/dist/{checkBrowser-HUCHMJV4.js → checkBrowser-UDT2ROZ3.js} +15 -15
  26. package/dist/{chunk-5DW2DEHX.js → chunk-23PJ2IA5.js} +1 -1
  27. package/dist/{chunk-IPTZMILN.js → chunk-26UWY6Y7.js} +1 -1
  28. package/dist/{chunk-Z2DDFW7J.js → chunk-2HNZSVMA.js} +8 -8
  29. package/dist/{chunk-SGLUNJTO.js → chunk-2IIKGFO3.js} +1 -1
  30. package/dist/{chunk-IQA5CXNE.js → chunk-2KPNFTOV.js} +1 -1
  31. package/dist/{chunk-CZBTUYLW.js → chunk-2PZSUSHI.js} +2 -2
  32. package/dist/{chunk-2GS3N3TZ.js → chunk-2RNRAB6U.js} +1 -1
  33. package/dist/{chunk-FF3VETCD.js → chunk-5TJRJXFQ.js} +1 -1
  34. package/dist/{chunk-7SNB3KGY.js → chunk-6D2TEACV.js} +1 -1
  35. package/dist/{chunk-W56YNDIJ.js → chunk-6LDIZ4GJ.js} +1 -1
  36. package/dist/{chunk-NAUOUIEW.js → chunk-6OPBJLMM.js} +1 -1
  37. package/dist/{chunk-5MHENUR3.js → chunk-6RHYYH7J.js} +2 -2
  38. package/dist/{chunk-JYOOWDQK.js → chunk-6TKGMCMZ.js} +1 -1
  39. package/dist/{chunk-ZR7CJIH3.js → chunk-7IQ4S5B3.js} +18 -18
  40. package/dist/{chunk-T4TF22AD.js → chunk-ADY66LYZ.js} +5 -5
  41. package/dist/{chunk-WT2OKPEW.js → chunk-ARKLBIF5.js} +1 -1
  42. package/dist/{chunk-JET2QWI5.js → chunk-AVND7IBZ.js} +2 -2
  43. package/dist/{chunk-JN4ING5S.js → chunk-B2DE7LZ6.js} +2 -2
  44. package/dist/{chunk-POCPG2WI.js → chunk-BIFCKMA2.js} +7 -7
  45. package/dist/{chunk-EWMPCW7J.js → chunk-BLZS4ZNW.js} +1 -1
  46. package/dist/{chunk-ZJTSSZVG.js → chunk-C4YBN5X6.js} +1 -1
  47. package/dist/{chunk-HZXRORAG.js → chunk-CPKLZATK.js} +2 -2
  48. package/dist/{chunk-7X2TCJJ7.js → chunk-CYWEBM2Q.js} +1 -1
  49. package/dist/{chunk-VTLYJLGX.js → chunk-D6YNLDSQ.js} +2 -2
  50. package/dist/{chunk-44EG3TMN.js → chunk-DLRGADJX.js} +1 -1
  51. package/dist/{chunk-M5PWCI3M.js → chunk-DOFY4D3Q.js} +2 -2
  52. package/dist/{chunk-FFZE3G5R.js → chunk-DS3IJC74.js} +1 -1
  53. package/dist/{chunk-GXPAR6JC.js → chunk-ESO4PNZJ.js} +2 -2
  54. package/dist/{chunk-ZQMK76GC.js → chunk-FOIT542N.js} +1 -1
  55. package/dist/{chunk-BEPEMS56.js → chunk-G5NF5RYM.js} +4 -4
  56. package/dist/{chunk-QQSVDBSH.js → chunk-GJUX6ELV.js} +9 -9
  57. package/dist/{chunk-E5OW6L6E.js → chunk-IDX4AAHE.js} +2 -2
  58. package/dist/{chunk-4BJYQXFF.js → chunk-IHD5UW2O.js} +1 -1
  59. package/dist/{chunk-GZSJYNAJ.js → chunk-IML2Z4HA.js} +29 -11
  60. package/dist/{chunk-PVR4LBWK.js → chunk-INKZ3QC6.js} +9 -9
  61. package/dist/{chunk-TM4PTEAL.js → chunk-IS6FYK3E.js} +1 -1
  62. package/dist/{chunk-LIQZZ6AE.js → chunk-ISMKLYU5.js} +1 -1
  63. package/dist/{chunk-DFJIVRYU.js → chunk-IWZDLLVZ.js} +1 -1
  64. package/dist/{chunk-ESXZZU25.js → chunk-IXJNKHSW.js} +2 -2
  65. package/dist/{chunk-JX7623IE.js → chunk-JQPR3J5V.js} +2 -2
  66. package/dist/{chunk-4HP2MTKM.js → chunk-JZ7MGLDY.js} +1 -1
  67. package/dist/{chunk-I4OQGQ5M.js → chunk-KZYOTTKM.js} +1 -1
  68. package/dist/{chunk-OO4R2IFF.js → chunk-L3IF3ICK.js} +1 -1
  69. package/dist/{chunk-YZERHM3O.js → chunk-L4XB67KR.js} +2 -2
  70. package/dist/{chunk-RGGQBF7T.js → chunk-LGXOIEXD.js} +1 -1
  71. package/dist/{chunk-UG3G4HEH.js → chunk-LS2FSESG.js} +58 -28
  72. package/dist/{chunk-BM6LSTMG.js → chunk-MYEVOW4Z.js} +2 -2
  73. package/dist/{chunk-I542AQXY.js → chunk-NQW4IK5U.js} +2 -2
  74. package/dist/{chunk-ULNYVLR5.js → chunk-OT4X3UJO.js} +1 -1
  75. package/dist/{chunk-CDBPBLYJ.js → chunk-PGY4WFKL.js} +1 -1
  76. package/dist/{chunk-XUCEC2EI.js → chunk-PKIQ4ZR3.js} +1 -1
  77. package/dist/{chunk-IK7DQLH7.js → chunk-PNHLR7UQ.js} +4 -4
  78. package/dist/{chunk-SXMAJMTP.js → chunk-PQFUF5XD.js} +1 -1
  79. package/dist/{chunk-PBTXEWFY.js → chunk-PWMGT73E.js} +2 -2
  80. package/dist/{chunk-MZ2LNNLT.js → chunk-PXYO7CSG.js} +4 -4
  81. package/dist/{chunk-3LH7DND6.js → chunk-RAIAWYV6.js} +1 -1
  82. package/dist/{chunk-NECZT66A.js → chunk-RWCYIF4C.js} +2 -2
  83. package/dist/{chunk-RV6ZSL4E.js → chunk-S6TSXBWT.js} +3 -3
  84. package/dist/{chunk-FLHKID4G.js → chunk-SC2UNTNA.js} +2 -2
  85. package/dist/{chunk-CTWD5ND3.js → chunk-SJLVYPVA.js} +8 -8
  86. package/dist/{chunk-4WDBYCUK.js → chunk-SWNYAKJZ.js} +1 -1
  87. package/dist/{chunk-EVRVYDKJ.js → chunk-TCNUA5RK.js} +4 -4
  88. package/dist/{chunk-P4FZ67X5.js → chunk-UDFMNCZR.js} +1 -1
  89. package/dist/{chunk-6DNSUUKB.js → chunk-UETMAXZF.js} +1 -1
  90. package/dist/{chunk-5IE7DN6I.js → chunk-UL2P4PMR.js} +1 -1
  91. package/dist/{chunk-3JWNN5PN.js → chunk-VC77JQWW.js} +10 -5
  92. package/dist/{chunk-DACTRVDQ.js → chunk-W5LEGKUI.js} +3 -3
  93. package/dist/{chunk-OFAEOC67.js → chunk-XHLWZTCQ.js} +4 -4
  94. package/dist/{chunk-JUI6DQFD.js → chunk-Y4CPI5F6.js} +2 -2
  95. package/dist/{chunk-5AJNQMML.js → chunk-YZFBMMY2.js} +1 -1
  96. package/dist/{chunk-TPVRUKKI.js → chunk-YZJSU2XH.js} +4 -4
  97. package/dist/{clean-YTQ7THRZ.js → clean-XXEL3ZBK.js} +8 -8
  98. package/dist/cli.js +61 -61
  99. package/dist/{cloud-NYF5MJVW.js → cloud-XXMDGEMK.js} +4 -4
  100. package/dist/{compare-Z32R2SCB.js → compare-JUVSFZRQ.js} +11 -11
  101. package/dist/{component-UAZQ4P7D.js → component-KEJ34SM2.js} +3 -3
  102. package/dist/{compositions-WRX752GP.js → compositions-BF3NDKKG.js} +7 -7
  103. package/dist/{curve-GPONFTFR.js → curve-QHLJ452Y.js} +7 -7
  104. package/dist/{cuts-RC2WIAYL.js → cuts-VKKXIQPW.js} +8 -8
  105. package/dist/{delete-MDRUJACW.js → delete-GEZVZPWY.js} +2 -2
  106. package/dist/{deploy-EV4JCQW6.js → deploy-ORQ7QDRG.js} +2 -2
  107. package/dist/{describeProject-D2MMDRME.js → describeProject-LEBOC6CL.js} +3 -3
  108. package/dist/{destroy-IBQ64X7C.js → destroy-ANCSST2S.js} +2 -2
  109. package/dist/{diff-BGZFEZ7V.js → diff-5X65JPB2.js} +20 -20
  110. package/dist/{doctor-TDF4VFEI.js → doctor-WUL4VESK.js} +7 -7
  111. package/dist/{energy-DDE435SP.js → energy-L2VWHVVA.js} +8 -8
  112. package/dist/{events-CQLKSC62.js → events-3SKWRLOR.js} +2 -2
  113. package/dist/{events-WA3SQMWZ.js → events-5EEASGJC.js} +3 -3
  114. package/dist/{events-IFAKMWNL.js → events-7FFAOKAE.js} +9 -9
  115. package/dist/{execute-H337HQ2I.js → execute-6VLBSJWW.js} +13 -13
  116. package/dist/{extract-LOH2HC74.js → extract-NW3KYNN4.js} +8 -8
  117. package/dist/{face-RMDNBINB.js → face-4S5NWVNA.js} +8 -8
  118. package/dist/{feedback-QX4CBEFU.js → feedback-3OW5JVE4.js} +5 -5
  119. package/dist/{ffmpeg-LXWLSIJN.js → ffmpeg-64HDYTRA.js} +3 -3
  120. package/dist/{figma-QNCIZZKI.js → figma-SN5Z2GUZ.js} +3 -3
  121. package/dist/fontLocalizeCli.js +6 -6
  122. package/dist/{frames-M3ZAUTAZ.js → frames-NZNNVA3R.js} +9 -9
  123. package/dist/{generate-JHWY26CH.js → generate-22O776FD.js} +13 -13
  124. package/dist/{get-UOPVKIUK.js → get-O6YCY5BU.js} +2 -2
  125. package/dist/{gpuPolicy-4UHHZMH7.js → gpuPolicy-26UL7BND.js} +3 -3
  126. package/dist/{grade-compare-TRTR3HGM.js → grade-compare-6JGG6AUM.js} +12 -12
  127. package/dist/{heifImagePrep-7DRKOFIJ.js → heifImagePrep-6ZP77OL4.js} +4 -4
  128. package/dist/{help-XBJ3CPJG.js → help-4IHXYFYU.js} +1 -1
  129. package/dist/{history-4NBOWTAK.js → history-ACOL6DPJ.js} +6 -6
  130. package/dist/hyperframes-player.global.js +1 -1
  131. package/dist/{info-6OUYHW5G.js → info-MVEC7EO5.js} +9 -9
  132. package/dist/{init-U4UGYE5D.js → init-YQRSQKD2.js} +19 -19
  133. package/dist/{ink-3K5U33XB.js → ink-A63OPAUS.js} +8 -8
  134. package/dist/{inspect-U6QLWQW2.js → inspect-5FWI42ZE.js} +13 -13
  135. package/dist/{keyframes-HRT4ICFF.js → keyframes-4ANCPAXZ.js} +6 -6
  136. package/dist/{lambda-QCYXB7S3.js → lambda-A7UY44ZG.js} +5 -5
  137. package/dist/{layout-S6E5YVK5.js → layout-7GGOEVCP.js} +13 -13
  138. package/dist/{lint-JNQUZ5H6.js → lint-AYAPUYJA.js} +6 -6
  139. package/dist/{list-IEATKMVG.js → list-TGPJOBFL.js} +2 -2
  140. package/dist/{localPage-KKLCOLJR.js → localPage-YJNVGFUR.js} +3 -3
  141. package/dist/{login-BWXQWFKL.js → login-UFEGKTWJ.js} +4 -4
  142. package/dist/{look-5EMJASLS.js → look-TS4DMBJZ.js} +8 -8
  143. package/dist/{manager-7XKYKMB7.js → manager-RN3IP5UM.js} +4 -4
  144. package/dist/{measure-UW3MUWR7.js → measure-L2FJMFZQ.js} +11 -11
  145. package/dist/{media-treatment-C26U3INH.js → media-treatment-JB5W5JI4.js} +8 -8
  146. package/dist/{media-use-IGSJKXLU.js → media-use-TMR5E5WJ.js} +3 -3
  147. package/dist/{models-XQMHEBHU.js → models-R5L2ZQFX.js} +7 -7
  148. package/dist/{motionShot-PH2I6VOO.js → motionShot-FXPW7WFS.js} +8 -8
  149. package/dist/{normalize-audio-ROHXFODM.js → normalize-audio-IWEUGFKJ.js} +4 -4
  150. package/dist/{open-UAGIY4HR.js → open-YKOIAP7J.js} +4 -4
  151. package/dist/{parakeetRunner-OOJI6E2B.js → parakeetRunner-BMBL6UGF.js} +8 -8
  152. package/dist/{pipeline-GQUCPCXS.js → pipeline-HRJ3VN5Z.js} +6 -6
  153. package/dist/{plan-PNV4KSCO.js → plan-IIQ7SXWV.js} +9 -9
  154. package/dist/{play-UEEYAMEA.js → play-FPIHIX3E.js} +4 -4
  155. package/dist/{preflight-E6FYCMJX.js → preflight-4AV5WOGU.js} +4 -4
  156. package/dist/{present-ZKBO5RTJ.js → present-4K3VJUM7.js} +4 -4
  157. package/dist/{preview-SQFT4TGS.js → preview-2NIQ2EBG.js} +9 -9
  158. package/dist/{probe-35RQ7WQ6.js → probe-O42OCKVH.js} +8 -8
  159. package/dist/{producer-7PCYSXHR.js → producer-MTQYIIGW.js} +1 -1
  160. package/dist/{publicNetwork-CWRD7PSE.js → publicNetwork-CWKAKZXP.js} +5 -1
  161. package/dist/{publish-UEF3X6G7.js → publish-QU6NA5UG.js} +3 -3
  162. package/dist/{remove-background-KES26J53.js → remove-background-55RUOFXG.js} +7 -7
  163. package/dist/{render-GH2KWOVT.js → render-UWWZFXK5.js} +13 -13
  164. package/dist/{render-4C7Q32BC.js → render-WRCZGKUW.js} +21 -21
  165. package/dist/{reverse-I6VOINAN.js → reverse-HIJSN6T6.js} +1 -1
  166. package/dist/{screenshotCapture-HXTGIPHY.js → screenshotCapture-F2G3ASF3.js} +3 -3
  167. package/dist/{service-KXRPG74T.js → service-DLHBDMEI.js} +7 -7
  168. package/dist/{share-G2UPZLLH.js → share-GS3Z4J2Z.js} +10 -10
  169. package/dist/{sherpa-P3IEXV3S.js → sherpa-VL2QSAMK.js} +7 -7
  170. package/dist/{skills-4KNW2APN.js → skills-LXKJRUCF.js} +6 -6
  171. package/dist/{skillsUpdateCheck-XRXMK2BR.js → skillsUpdateCheck-XMFKI3F2.js} +3 -3
  172. package/dist/{snapshot-MSTKQXSJ.js → snapshot-6BVWACEB.js} +19 -19
  173. package/dist/{src-EJXQBNFT.js → src-5DALALRV.js} +5 -5
  174. package/dist/{src-5O3RW44E.js → src-K6EIKBHK.js} +4 -2
  175. package/dist/{start-WERFNWUG.js → start-GSVOQ7VY.js} +11 -11
  176. package/dist/{staticProjectServer-MTL5UOLQ.js → staticProjectServer-PXZAGXPM.js} +3 -3
  177. package/dist/{status-MOLSRFMM.js → status-U532HK6C.js} +4 -4
  178. package/dist/studio/assets/{hyperframes-player-DYtpqF4w.js → hyperframes-player-DhaQoeHg.js} +1 -1
  179. package/dist/studio/assets/{index-D_6Nvt4M.js → index-DPeGppVA.js} +5 -5
  180. package/dist/studio/assets/{index-pSFnTYYo.js → index-qILK-NRY.js} +1 -1
  181. package/dist/studio/assets/{pausedVideoDecoder-D_jYmpmj.js → pausedVideoDecoder-DqCJ5lI8.js} +1 -1
  182. package/dist/studio/index.html +1 -1
  183. package/dist/{studioServer-A73V7BGB.js → studioServer-ZDIVHU5Q.js} +27 -27
  184. package/dist/{sync-VV4THGGW.js → sync-KXUIN2XW.js} +8 -8
  185. package/dist/{telemetry-VTF2M5AG.js → telemetry-BE6NYAAP.js} +3 -3
  186. package/dist/{templates-IDYVXLRA.js → templates-6DXDZKQT.js} +4 -4
  187. package/dist/{timeline-RHXNE24Z.js → timeline-DYU2RWSB.js} +8 -8
  188. package/dist/{tokens-TYYUI63J.js → tokens-SSWEYFOF.js} +2 -2
  189. package/dist/{transcribe-5JGZPJCT.js → transcribe-7E653TIR.js} +15 -15
  190. package/dist/{transcribe-ZC22NJXV.js → transcribe-EHMQS2JF.js} +6 -6
  191. package/dist/{update-QIVTZXMN.js → update-5PNT24HU.js} +7 -7
  192. package/dist/{updateCheck-7RZEDERP.js → updateCheck-DS6TTOUW.js} +2 -2
  193. package/dist/{upgrade-HYRR4ZLW.js → upgrade-EHJ32IGT.js} +3 -3
  194. package/dist/{urlDownloader-YPKIQ2PI.js → urlDownloader-6ZROXAQ7.js} +4 -2
  195. package/dist/{validate-ZWUJ2E2U.js → validate-OPKF4E6C.js} +12 -12
  196. package/dist/{video-CNLMBOOB.js → video-BRGYDCC2.js} +4 -4
  197. package/dist/{voices-4GOW5GZG.js → voices-CYPYVEAI.js} +11 -11
  198. package/dist/warmCheck.js +21 -21
  199. package/package.json +1 -1
@@ -8,24 +8,31 @@ var __dirname = __hf_dirname(__filename);
8
8
  // ../engine/src/utils/networkPolicy.ts
9
9
  import { BlockList, isIP } from "net";
10
10
  var NON_PUBLIC_IPV4_ADDRESSES = new BlockList();
11
- for (const [network, prefix] of [
12
- ["0.0.0.0", 8],
13
- ["10.0.0.0", 8],
14
- ["100.64.0.0", 10],
15
- ["127.0.0.0", 8],
16
- ["169.254.0.0", 16],
17
- ["172.16.0.0", 12],
18
- ["192.0.0.0", 24],
19
- ["192.0.2.0", 24],
20
- ["192.88.99.0", 24],
21
- ["192.168.0.0", 16],
22
- ["198.18.0.0", 15],
23
- ["198.51.100.0", 24],
24
- ["203.0.113.0", 24],
25
- ["224.0.0.0", 4],
26
- ["240.0.0.0", 4]
11
+ var IPV4_CLASSES = /* @__PURE__ */ new Map();
12
+ for (const [network, prefix, hostClass] of [
13
+ ["0.0.0.0", 8, "loopback"],
14
+ ["10.0.0.0", 8, "private"],
15
+ ["100.64.0.0", 10, "carrier-grade"],
16
+ ["127.0.0.0", 8, "loopback"],
17
+ ["169.254.0.0", 16, "link-local"],
18
+ ["172.16.0.0", 12, "private"],
19
+ ["192.0.0.0", 24, "reserved"],
20
+ ["192.0.2.0", 24, "reserved"],
21
+ ["192.88.99.0", 24, "reserved"],
22
+ ["192.168.0.0", 16, "private"],
23
+ ["198.18.0.0", 15, "reserved"],
24
+ ["198.51.100.0", 24, "reserved"],
25
+ ["203.0.113.0", 24, "reserved"],
26
+ ["224.0.0.0", 4, "reserved"],
27
+ ["240.0.0.0", 4, "reserved"]
27
28
  ]) {
28
29
  NON_PUBLIC_IPV4_ADDRESSES.addSubnet(network, prefix, "ipv4");
30
+ if (!IPV4_CLASSES.has(hostClass)) IPV4_CLASSES.set(hostClass, new BlockList());
31
+ IPV4_CLASSES.get(hostClass).addSubnet(network, prefix, "ipv4");
32
+ }
33
+ function ipv4HostClass(address) {
34
+ for (const [hostClass, list] of IPV4_CLASSES) if (list.check(address, "ipv4")) return hostClass;
35
+ return "public";
29
36
  }
30
37
  var NON_PUBLIC_IPV6_ADDRESSES = new BlockList();
31
38
  for (const [network, prefix] of [
@@ -134,14 +141,29 @@ var CARES_TIMEOUT_MS = 5e3;
134
141
  function isPublicIPv4(address) {
135
142
  return isIP2(address) === 4 && !isBlockedNetworkHost(address);
136
143
  }
144
+ var PUBLIC_IPV4 = "Capture requires a public IPv4 address";
145
+ var PUBLIC_HOSTNAME = "Capture requires a public hostname";
146
+ var PUBLIC_DNS = "Capture DNS returned a non-public address";
147
+ var NonPublicHostError = class extends Error {
148
+ constructor(message, hostClass) {
149
+ super(message);
150
+ this.hostClass = hostClass;
151
+ }
152
+ hostClass;
153
+ };
154
+ function refusedIPv4Class(address) {
155
+ const hostClass = ipv4HostClass(address);
156
+ return hostClass === "public" ? "reserved" : hostClass;
157
+ }
137
158
  function assertPublicHostname(hostname) {
138
159
  const host = hostname.toLowerCase().replace(/\.$/, "");
139
160
  if (isIP2(host) === 4) {
140
- if (!isPublicIPv4(host)) throw new Error("Capture requires a public IPv4 address");
161
+ if (!isPublicIPv4(host)) throw new NonPublicHostError(PUBLIC_IPV4, refusedIPv4Class(host));
141
162
  return host;
142
163
  }
164
+ if (host.startsWith("[")) throw new NonPublicHostError(PUBLIC_HOSTNAME, "ipv6");
143
165
  if (!host.includes(".") || !/^[a-z0-9.-]+$/.test(host) || /(?:^|\.)(?:localhost|local|internal|home|lan|test|invalid|example)$/.test(host) || host.split(".").some((label) => !label || label.startsWith("-") || label.endsWith("-"))) {
144
- throw new Error("Capture requires a public hostname");
166
+ throw new NonPublicHostError(PUBLIC_HOSTNAME, "internal-name");
145
167
  }
146
168
  return host;
147
169
  }
@@ -150,9 +172,9 @@ async function resolvePublicAddress(hostname) {
150
172
  if (isIP2(host) === 4) return host;
151
173
  const answers = await resolveIPv4(host);
152
174
  const first = answers[0];
153
- if (!first || !answers.every(isPublicIPv4)) {
154
- throw new Error("Capture DNS returned a non-public address");
155
- }
175
+ if (!first) throw new Error(PUBLIC_DNS);
176
+ const refused = answers.find((answer) => !isPublicIPv4(answer));
177
+ if (refused) throw new NonPublicHostError(PUBLIC_DNS, refusedIPv4Class(refused));
156
178
  return first;
157
179
  }
158
180
  async function resolveIPv4(host) {
@@ -528,6 +550,10 @@ function destination(raw, tunnel) {
528
550
  }
529
551
  return url;
530
552
  }
553
+ var logRefusal = (hostClass) => console.warn(`[CaptureProxy:REFUSED] class=${hostClass}`);
554
+ function reportRefusal(error, onRefused) {
555
+ if (error instanceof NonPublicHostError) onRefused?.(error.hostClass);
556
+ }
531
557
  function refuse(response) {
532
558
  if (!response.headersSent) response.writeHead(403, { Connection: "close" });
533
559
  response.end();
@@ -540,7 +566,7 @@ async function httpPeer(url, proxy) {
540
566
  assertPublicHostname(url.hostname);
541
567
  return { hostname: proxy.host, port: proxy.port, path: url.href };
542
568
  }
543
- async function forwardHttp(incoming, response, sockets, proxy) {
569
+ async function forwardHttp(incoming, response, sockets, proxy, onRefused) {
544
570
  try {
545
571
  const url = destination(incoming.url ?? "", false);
546
572
  const peer = await httpPeer(url, proxy);
@@ -574,7 +600,8 @@ async function forwardHttp(incoming, response, sockets, proxy) {
574
600
  response.on("close", () => upstream.destroy());
575
601
  incoming.on("error", () => upstream.destroy());
576
602
  incoming.pipe(upstream);
577
- } catch {
603
+ } catch (error) {
604
+ reportRefusal(error, onRefused);
578
605
  refuse(response);
579
606
  }
580
607
  }
@@ -604,7 +631,7 @@ async function forwardTunnelViaUpstream(url, proxy, client, head, sockets) {
604
631
  upstream.once("close", () => client.destroy());
605
632
  client.once("close", () => upstream.destroy());
606
633
  }
607
- async function forwardTunnel(incoming, client, head, sockets, proxy) {
634
+ async function forwardTunnel(incoming, client, head, sockets, proxy, onRefused) {
608
635
  try {
609
636
  const url = destination(incoming.url ?? "", true);
610
637
  if (proxy) {
@@ -629,20 +656,21 @@ async function forwardTunnel(incoming, client, head, sockets, proxy) {
629
656
  });
630
657
  upstream.once("close", () => client.destroy());
631
658
  client.once("close", () => upstream.destroy());
632
- } catch {
659
+ } catch (error) {
660
+ reportRefusal(error, onRefused);
633
661
  client.end("HTTP/1.1 403 Forbidden\r\nConnection: close\r\nContent-Length: 0\r\n\r\n");
634
662
  }
635
663
  }
636
- async function startCaptureProxy(upstream = captureUpstreamProxy() ?? null) {
664
+ async function startCaptureProxy(upstream = captureUpstreamProxy() ?? null, onRefused) {
637
665
  const proxy = upstream ?? void 0;
638
666
  const sockets = /* @__PURE__ */ new Set();
639
667
  const server = createServer(
640
- (incoming, response) => void forwardHttp(incoming, response, sockets, proxy)
668
+ (incoming, response) => void forwardHttp(incoming, response, sockets, proxy, onRefused)
641
669
  );
642
670
  server.on("connection", (socket) => trackSocket(socket, sockets));
643
671
  server.on(
644
672
  "connect",
645
- (incoming, socket, head) => void forwardTunnel(incoming, socket, head, sockets, proxy)
673
+ (incoming, socket, head) => void forwardTunnel(incoming, socket, head, sockets, proxy, onRefused)
646
674
  );
647
675
  server.on("upgrade", (_incoming, socket) => socket.destroy());
648
676
  server.maxConnections = 128;
@@ -688,6 +716,7 @@ export {
688
716
  connectAuthority,
689
717
  openUpstreamTunnel,
690
718
  isPublicIPv4,
719
+ NonPublicHostError,
691
720
  assertPublicHostname,
692
721
  resolvePublicAddress,
693
722
  systemLookupInKillableChild,
@@ -695,6 +724,7 @@ export {
695
724
  isBrowserSafePort,
696
725
  settleOnBrowserSafePort,
697
726
  listenOnBrowserSafePort,
727
+ logRefusal,
698
728
  startCaptureProxy,
699
729
  browserProxyArgs,
700
730
  createPublicOnlyProfile
@@ -8,14 +8,14 @@ import {
8
8
  jsonArg,
9
9
  runMeasure,
10
10
  videoArg
11
- } from "./chunk-FLHKID4G.js";
11
+ } from "./chunk-SC2UNTNA.js";
12
12
  import {
13
13
  Fix,
14
14
  ffmpegBin,
15
15
  probeVideo,
16
16
  round,
17
17
  runFfmpeg
18
- } from "./chunk-LIQZZ6AE.js";
18
+ } from "./chunk-ISMKLYU5.js";
19
19
  import {
20
20
  makeOutputFolder
21
21
  } from "./chunk-3S27CPV7.js";
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCuts
9
- } from "./chunk-EWMPCW7J.js";
9
+ } from "./chunk-BLZS4ZNW.js";
10
10
  import {
11
11
  grey,
12
12
  readClip,
13
13
  round,
14
14
  videoClip,
15
15
  writeImage
16
- } from "./chunk-LIQZZ6AE.js";
16
+ } from "./chunk-ISMKLYU5.js";
17
17
 
18
18
  // src/measure/events.ts
19
19
  var EVENT_W = 160;
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-CPHQTXP5.js";
26
26
  import {
27
27
  VERSION
28
- } from "./chunk-JN4ING5S.js";
28
+ } from "./chunk-B2DE7LZ6.js";
29
29
 
30
30
  // src/utils/updateCheck.ts
31
31
  import { existsSync as existsSync2, readFileSync as readFileSync3 } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-HD5RVDL6.js";
10
10
  import {
11
11
  listenOnBrowserSafePort
12
- } from "./chunk-UG3G4HEH.js";
12
+ } from "./chunk-LS2FSESG.js";
13
13
 
14
14
  // src/capture/localPage.ts
15
15
  import {
@@ -19,7 +19,7 @@ async function bundleWithLocalizedFonts(projectDir, localizeFonts = localizeWith
19
19
  }
20
20
  async function loadFontInjector() {
21
21
  try {
22
- const { loadProducer } = await import("./producer-7PCYSXHR.js");
22
+ const { loadProducer } = await import("./producer-MTQYIIGW.js");
23
23
  const mod = await loadProducer();
24
24
  return mod.injectDeterministicFontFaces ?? null;
25
25
  } catch {
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  applyRenderEnvironment,
17
17
  renderOutputDirectory
18
- } from "./chunk-MZ2LNNLT.js";
18
+ } from "./chunk-PXYO7CSG.js";
19
19
  import {
20
20
  makeOutputFolder
21
21
  } from "./chunk-3S27CPV7.js";
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  renderMotionBlurResult,
28
28
  trackRenderPreflightRejected
29
- } from "./chunk-5AJNQMML.js";
29
+ } from "./chunk-YZFBMMY2.js";
30
30
  import {
31
31
  c
32
32
  } from "./chunk-JCNPHRGX.js";
@@ -34,7 +34,7 @@ import {
34
34
  PRORES_PROFILES,
35
35
  REFERENCE_BACKGROUND_FIELD,
36
36
  referenceBackgroundResult
37
- } from "./chunk-3JWNN5PN.js";
37
+ } from "./chunk-VC77JQWW.js";
38
38
  import {
39
39
  runRenderSetupWorker
40
40
  } from "./chunk-X6JUUQCM.js";
@@ -206,7 +206,7 @@ function assertRenderActive(cancellation) {
206
206
  cancellation?.signal.throwIfAborted();
207
207
  }
208
208
  async function refuseLowDiskBeforeBrowserDownload(plan) {
209
- const { checkDisk } = await import("./preflight-E6FYCMJX.js");
209
+ const { checkDisk } = await import("./preflight-4AV5WOGU.js");
210
210
  await (await import("./manager-25RJ4IZN.js")).sweepKilledInstalls();
211
211
  const paths = /* @__PURE__ */ new Set([tmpdir(), renderOutputDirectory(plan)]);
212
212
  const low = [...paths].map((path) => checkDisk(path)).filter((outcome) => !outcome.ok);
@@ -19,7 +19,7 @@ import {
19
19
  HF_AUDIO_GROUP_ATTR,
20
20
  extractAudioMetadata,
21
21
  extractMediaMetadata
22
- } from "./chunk-3JWNN5PN.js";
22
+ } from "./chunk-VC77JQWW.js";
23
23
  import {
24
24
  byStart,
25
25
  fpsToNumber,
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-FF3VETCD.js";
10
+ } from "./chunk-5TJRJXFQ.js";
11
11
  import {
12
12
  readJsonFlag
13
13
  } from "./chunk-EHZESMRB.js";
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-MOTJT42J.js";
33
33
  import {
34
34
  trackRegistryItemAdded
35
- } from "./chunk-5AJNQMML.js";
35
+ } from "./chunk-YZFBMMY2.js";
36
36
  import {
37
37
  defineCommand
38
38
  } from "./chunk-DL4OD7IA.js";
@@ -13,16 +13,16 @@ import {
13
13
  } from "./chunk-I6V25IXG.js";
14
14
  import {
15
15
  parseDeliveryFlags
16
- } from "./chunk-2GS3N3TZ.js";
16
+ } from "./chunk-2RNRAB6U.js";
17
17
  import {
18
18
  resolveProject
19
- } from "./chunk-IQA5CXNE.js";
19
+ } from "./chunk-2KPNFTOV.js";
20
20
  import {
21
21
  parseGifLoopArg,
22
22
  parseHlsSegmentSecondsArg,
23
23
  resolveBrowserTimeoutMsArg,
24
24
  resolveDefaultFpsArg
25
- } from "./chunk-WT2OKPEW.js";
25
+ } from "./chunk-ARKLBIF5.js";
26
26
  import {
27
27
  errorBox
28
28
  } from "./chunk-ZLTB7ZCQ.js";
@@ -38,7 +38,7 @@ import {
38
38
  MAX_VP9_CPU_USED,
39
39
  MIN_VP9_CPU_USED,
40
40
  isVideoFrameFormat
41
- } from "./chunk-3JWNN5PN.js";
41
+ } from "./chunk-VC77JQWW.js";
42
42
  import {
43
43
  DISTRIBUTED_FPS,
44
44
  formatRenderOutputTimestamp,
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-HVW7ABXD.js";
17
17
  import {
18
18
  trackBillingCheckoutReturnRefused
19
- } from "./chunk-5AJNQMML.js";
19
+ } from "./chunk-YZFBMMY2.js";
20
20
 
21
21
  // src/heygen/plan.ts
22
22
  import { randomUUID } from "crypto";
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  loadProducer
9
- } from "./chunk-FFZE3G5R.js";
9
+ } from "./chunk-DS3IJC74.js";
10
10
  import {
11
11
  extractAudioMetadata
12
- } from "./chunk-3JWNN5PN.js";
12
+ } from "./chunk-VC77JQWW.js";
13
13
  import {
14
14
  resolveProjectRelativeSrc
15
15
  } from "./chunk-MP4TEYUJ.js";
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-5AJNQMML.js";
10
+ } from "./chunk-YZFBMMY2.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-5DW2DEHX.js";
13
+ } from "./chunk-23PJ2IA5.js";
14
14
  import {
15
15
  c
16
16
  } from "./chunk-JCNPHRGX.js";
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
84
84
  try {
85
85
  const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
86
86
  import("./system-BONOLEJX.js"),
87
- import("./ffmpeg-LXWLSIJN.js")
87
+ import("./ffmpeg-64HDYTRA.js")
88
88
  ]);
89
89
  const sys = getSystemMeta();
90
90
  const parts = [
@@ -10,13 +10,13 @@ import {
10
10
  parseNumbers,
11
11
  parseRoi,
12
12
  probeVideo
13
- } from "./chunk-LIQZZ6AE.js";
13
+ } from "./chunk-ISMKLYU5.js";
14
14
  import {
15
15
  c
16
16
  } from "./chunk-JCNPHRGX.js";
17
17
  import {
18
18
  withMeta
19
- } from "./chunk-ULNYVLR5.js";
19
+ } from "./chunk-OT4X3UJO.js";
20
20
  import {
21
21
  failCommand
22
22
  } from "./chunk-66W5IWLO.js";
@@ -18,16 +18,16 @@ import {
18
18
  } from "./chunk-262C25DQ.js";
19
19
  import {
20
20
  pageNavigationTimeoutMs
21
- } from "./chunk-WT2OKPEW.js";
21
+ } from "./chunk-ARKLBIF5.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode,
25
25
  rethrowAfterBrowserCleanup
26
- } from "./chunk-GXPAR6JC.js";
26
+ } from "./chunk-ESO4PNZJ.js";
27
27
  import {
28
28
  resolveLocalBrowserGpuMode,
29
29
  resolveLocalWebGpu
30
- } from "./chunk-E5OW6L6E.js";
30
+ } from "./chunk-IDX4AAHE.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-3JWNN5PN.js";
38
+ } from "./chunk-VC77JQWW.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-5O3RW44E.js");
146
+ const { resolveConfig, waitForImagesReady } = await import("./src-K6EIKBHK.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-MTL5UOLQ.js")).inProcessAnswer(url);
195
+ const answer = (await import("./staticProjectServer-PXZAGXPM.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-5O3RW44E.js");
206
+ const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-K6EIKBHK.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-5O3RW44E.js");
227
+ const { buildChromeArgs } = await import("./src-K6EIKBHK.js");
228
228
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
229
229
  const requiresWebGpu = compositionRequiresWebGpu(html);
230
230
  let softwareWebGpu = false;
@@ -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-5DW2DEHX.js";
9
+ } from "./chunk-23PJ2IA5.js";
10
10
 
11
11
  // src/telemetry/uploadLeftOut.ts
12
12
  function leftOutCounts(references) {
@@ -15,16 +15,16 @@ import {
15
15
  findFFmpeg,
16
16
  findFFprobe,
17
17
  getFFmpegInstallHint
18
- } from "./chunk-ZJTSSZVG.js";
18
+ } from "./chunk-C4YBN5X6.js";
19
19
  import {
20
20
  registerBrowserSessionCleanup
21
- } from "./chunk-GXPAR6JC.js";
21
+ } from "./chunk-ESO4PNZJ.js";
22
22
  import {
23
23
  DEFAULT_VP9_CPU_USED,
24
24
  SDR_RGB_TO_BT709_FILTER,
25
25
  SDR_RGB_TO_TAGGED_BT709_FILTER,
26
26
  renderProvenanceArgs
27
- } from "./chunk-3JWNN5PN.js";
27
+ } from "./chunk-VC77JQWW.js";
28
28
  import {
29
29
  runCancellableProcess
30
30
  } from "./chunk-X6JUUQCM.js";
@@ -432,7 +432,7 @@ async function decoderTransposesDimensions(inputPath) {
432
432
  }
433
433
  async function probeMedia(inputPath) {
434
434
  const isImage = inferInputKind(inputPath) === "image";
435
- const engine = await import("./src-5O3RW44E.js");
435
+ const engine = await import("./src-K6EIKBHK.js");
436
436
  const meta = await engine.extractMediaMetadata(inputPath);
437
437
  if (isImage) {
438
438
  return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-PCH55NAO.js";
12
12
  import {
13
13
  shouldTrack
14
- } from "./chunk-5DW2DEHX.js";
14
+ } from "./chunk-23PJ2IA5.js";
15
15
  import {
16
16
  createFileAtomically
17
17
  } from "./chunk-DE3JRSGT.js";
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-4QFWV5GQ.js";
33
33
  import {
34
34
  listenOnBrowserSafePort
35
- } from "./chunk-UG3G4HEH.js";
35
+ } from "./chunk-LS2FSESG.js";
36
36
  import {
37
37
  stripSdrPngColourTags
38
38
  } from "./chunk-7SY3DERR.js";
@@ -13,7 +13,7 @@ import {
13
13
  round,
14
14
  runFfmpeg,
15
15
  sumOf
16
- } from "./chunk-LIQZZ6AE.js";
16
+ } from "./chunk-ISMKLYU5.js";
17
17
  import {
18
18
  verifies
19
19
  } from "./chunk-RZ6CXJ56.js";
@@ -8,8 +8,9 @@ import {
8
8
  browserProxyArgs,
9
9
  createPublicOnlyProfile,
10
10
  isBlockedNetworkHost,
11
+ logRefusal,
11
12
  startCaptureProxy
12
- } from "./chunk-UG3G4HEH.js";
13
+ } from "./chunk-LS2FSESG.js";
13
14
  import {
14
15
  removeTreeBestEffort,
15
16
  removeTreeBestEffortAsync
@@ -1831,7 +1832,7 @@ async function launchInsideSandbox(ppt, options) {
1831
1832
  }
1832
1833
  }
1833
1834
  async function publicOnlyNetwork(pageServerHost) {
1834
- const proxy = await startCaptureProxy(null);
1835
+ const proxy = await startCaptureProxy(null, logRefusal);
1835
1836
  try {
1836
1837
  const userDataDir = await createPublicOnlyProfile("hf-render-profile-");
1837
1838
  return {
@@ -12836,7 +12837,7 @@ async function fetchWithValidatedRedirects(initialUrl, controller) {
12836
12837
  currentUrl = resolveRedirectUrl(response, currentUrl, redirects);
12837
12838
  }
12838
12839
  }
12839
- async function fetchPublicHttpsText(url, options) {
12840
+ async function fetchPublicHttpsBytes(url, options) {
12840
12841
  const timeoutMs = options.timeoutMs ?? 15e3;
12841
12842
  if (!Number.isSafeInteger(options.maxBytes) || options.maxBytes <= 0) {
12842
12843
  throw new RangeError("maxBytes must be a positive safe integer");
@@ -12863,7 +12864,7 @@ async function fetchPublicHttpsText(url, options) {
12863
12864
  await cancelResponseBody(response);
12864
12865
  throw classifyHttpFailure(response.status);
12865
12866
  }
12866
- if (!response.body) return "";
12867
+ if (!response.body) return new Uint8Array();
12867
12868
  let declaredLength;
12868
12869
  try {
12869
12870
  declaredLength = parseDeclaredLength(response);
@@ -12910,7 +12911,7 @@ async function fetchPublicHttpsText(url, options) {
12910
12911
  { expectedBytes, receivedBytes }
12911
12912
  );
12912
12913
  }
12913
- return new TextDecoder().decode(Buffer.concat(chunks.map((chunk) => Buffer.from(chunk))));
12914
+ return Buffer.concat(chunks.map((chunk) => Buffer.from(chunk)));
12914
12915
  } catch (error) {
12915
12916
  if (callerAborted) {
12916
12917
  throw new UrlDownloadError("cancelled", false, "Text fetch cancelled");
@@ -12925,6 +12926,9 @@ async function fetchPublicHttpsText(url, options) {
12925
12926
  controller.abort();
12926
12927
  }
12927
12928
  }
12929
+ async function fetchPublicHttpsText(url, options) {
12930
+ return new TextDecoder().decode(await fetchPublicHttpsBytes(url, options));
12931
+ }
12928
12932
  function parseDeclaredLength(response) {
12929
12933
  const raw = response.headers.get("content-length");
12930
12934
  if (raw === null) return void 0;
@@ -20297,6 +20301,7 @@ export {
20297
20301
  writeUrlDownloadTelemetry,
20298
20302
  assertPublicHttpsUrl,
20299
20303
  _setDownloadFetchForTests,
20304
+ fetchPublicHttpsBytes,
20300
20305
  fetchPublicHttpsText,
20301
20306
  downloadToTemp,
20302
20307
  isHttpUrl,
@@ -9,14 +9,14 @@ import {
9
9
  } from "./chunk-7CLDXOEJ.js";
10
10
  import {
11
11
  stoppedByCancelSignal
12
- } from "./chunk-JYOOWDQK.js";
12
+ } from "./chunk-6TKGMCMZ.js";
13
13
  import {
14
14
  DEFAULT_MODEL,
15
15
  ensureModel,
16
16
  ensureWhisper,
17
17
  hasFFmpeg,
18
18
  pinnedWhisperModel
19
- } from "./chunk-7X2TCJJ7.js";
19
+ } from "./chunk-CYWEBM2Q.js";
20
20
  import {
21
21
  sha256File
22
22
  } from "./chunk-RZ6CXJ56.js";
@@ -24,7 +24,7 @@ import {
24
24
  findFFmpeg,
25
25
  findFFprobe,
26
26
  getFFmpegInstallHint
27
- } from "./chunk-ZJTSSZVG.js";
27
+ } from "./chunk-C4YBN5X6.js";
28
28
  import {
29
29
  parseWhisperJson
30
30
  } from "./chunk-CDNVZEGQ.js";
@@ -7,12 +7,12 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCuts,
9
9
  signatures
10
- } from "./chunk-EWMPCW7J.js";
10
+ } from "./chunk-BLZS4ZNW.js";
11
11
  import {
12
12
  jsonArg,
13
13
  num,
14
14
  runMeasure
15
- } from "./chunk-FLHKID4G.js";
15
+ } from "./chunk-SC2UNTNA.js";
16
16
  import {
17
17
  chargedCredits,
18
18
  idempotencyKey,
@@ -22,7 +22,7 @@ import {
22
22
  publicVoices,
23
23
  runJob,
24
24
  senderScope
25
- } from "./chunk-YZERHM3O.js";
25
+ } from "./chunk-L4XB67KR.js";
26
26
  import {
27
27
  Fix,
28
28
  probeSeconds,
@@ -31,7 +31,7 @@ import {
31
31
  round,
32
32
  runFfmpeg,
33
33
  videoClip
34
- } from "./chunk-LIQZZ6AE.js";
34
+ } from "./chunk-ISMKLYU5.js";
35
35
  import {
36
36
  loadSharp
37
37
  } from "./chunk-YTHXSYYB.js";