hyperframes 0.8.205 → 0.8.206
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.
- package/dist/{add-BA4AU262.js → add-FFMNAJXJ.js} +12 -12
- package/dist/{animatedGifPrep-UNUCFGLQ.js → animatedGifPrep-BIIIIVWL.js} +16 -10
- package/dist/api.js +18 -18
- package/dist/{asset-KCDVTNC3.js → asset-IPUHGZSL.js} +2 -2
- package/dist/{assetCataloger-5FCVQ3N6.js → assetCataloger-M5FWXLAJ.js} +8 -8
- package/dist/{audio-KDBPEHRS.js → audio-VYWWM4DB.js} +15 -15
- package/dist/{auth-IMPBZZXJ.js → auth-GZQZCUPL.js} +1 -1
- package/dist/{autoUpdate-YE2RKCAG.js → autoUpdate-GJUDDLLO.js} +2 -2
- package/dist/{backgroundChecks-OWY2UFSR.js → backgroundChecks-BTMSW34Z.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-AN4HWKET.js → batchRender-LI2BJRGO.js} +4 -4
- package/dist/{beats-VTQJ4JH6.js → beats-H73CSYT4.js} +11 -11
- package/dist/{benchmark-PBEWHJ5K.js → benchmark-XT3A5REC.js} +9 -9
- package/dist/{browser-E7ANEHNU.js → browser-VIOK66YK.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-I3BWMRSP.js → bundleWithLocalizedFonts-PFRVWYOO.js} +2 -2
- package/dist/{capture-MP7R72WU.js → capture-252WNPCD.js} +2 -2
- package/dist/{capture-XODFC4S4.js → capture-KKD5GMAF.js} +20 -20
- package/dist/{captureCompositionFrame-2OYGVDI3.js → captureCompositionFrame-YLYVGNN2.js} +13 -13
- package/dist/{catalog-ORVCCEQR.js → catalog-6IJGNN3T.js} +12 -12
- package/dist/{catch-up-SYAQOXTT.js → catch-up-BFW7Z35W.js} +4 -4
- package/dist/{check-6SQR6SSA.js → check-XUWBZASR.js} +39 -37
- package/dist/checkAudio-2NRR3VHQ.js +201 -0
- package/dist/{checkBrowser-HOTD3CDE.js → checkBrowser-JW74KWTF.js} +32 -31
- package/dist/{chunk-6NC4KBS2.js → chunk-2RT7MXFL.js} +1 -1
- package/dist/{chunk-JFNB4CMI.js → chunk-2S263R6D.js} +19 -7
- package/dist/{chunk-3N4T6I3O.js → chunk-36QE3P6B.js} +1 -1
- package/dist/{chunk-LSQM3NBR.js → chunk-3B2DBUQX.js} +1 -1
- package/dist/{chunk-H4MSJ2NZ.js → chunk-3CS6QYL7.js} +5 -5
- package/dist/{chunk-IKYXXIMP.js → chunk-3R6SXPHD.js} +2 -2
- package/dist/{chunk-RWOWD3PW.js → chunk-42KN6I6A.js} +2 -2
- package/dist/{chunk-75WNFDRU.js → chunk-4CY5RXXC.js} +1 -1
- package/dist/{chunk-LQUMMPGK.js → chunk-4DGLKB2H.js} +1 -1
- package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
- package/dist/{chunk-4UIEQIF4.js → chunk-5QKJPCQ4.js} +2 -2
- package/dist/{chunk-AECL3B23.js → chunk-63DGZRZP.js} +1 -1
- package/dist/{chunk-RQDVTUVD.js → chunk-6ZFDNEMY.js} +14 -14
- package/dist/{chunk-NF6KI46X.js → chunk-7SXL476O.js} +14 -12
- package/dist/{chunk-N7VQD4WB.js → chunk-AAX2A7LQ.js} +1 -1
- package/dist/{chunk-2FEOM3ZT.js → chunk-AEC4T4IF.js} +4 -4
- package/dist/{chunk-TZ7MTRVJ.js → chunk-AJSU6KGS.js} +13 -13
- package/dist/{chunk-MVXOY5RC.js → chunk-AXEEZKIL.js} +2 -2
- package/dist/{chunk-TOEIJ4WF.js → chunk-BBUK6A7Q.js} +5 -5
- package/dist/{chunk-CU76YDPX.js → chunk-CIHW6VM2.js} +1 -1
- package/dist/{chunk-MASFRPCB.js → chunk-CMDVJP4T.js} +10 -10
- package/dist/{chunk-BZ727KLT.js → chunk-CNVHMLPI.js} +1 -1
- package/dist/{chunk-BA7MQJXG.js → chunk-CPSGXAYD.js} +3 -3
- package/dist/{chunk-L6N2TLXR.js → chunk-CZYS6UKP.js} +83 -78
- package/dist/{chunk-EXRHI43B.js → chunk-DEVZJ4AL.js} +10 -9
- package/dist/{chunk-A42PDANH.js → chunk-DZG565OO.js} +1 -1
- package/dist/{chunk-KAIQPYCM.js → chunk-E2ZZSDDQ.js} +2 -2
- package/dist/{chunk-7V7OUKTU.js → chunk-FJW757TF.js} +1 -1
- package/dist/{chunk-I7IXUCKL.js → chunk-FMWACL3L.js} +1 -1
- package/dist/{chunk-GLBEBBS2.js → chunk-FNNGQ3DB.js} +2 -2
- package/dist/{chunk-GBQCTZON.js → chunk-FULMZCDW.js} +13 -43
- package/dist/chunk-G6QDFWDN.js +355 -0
- package/dist/{chunk-WB55EQNJ.js → chunk-G6W55MTX.js} +1 -1
- package/dist/{chunk-HADQPG7O.js → chunk-GAV56VJL.js} +2 -2
- package/dist/{chunk-FNBEYIZH.js → chunk-H4JO7VSI.js} +7 -6
- package/dist/{chunk-ZB6SCA4J.js → chunk-HEP5XMXV.js} +1 -1
- package/dist/{chunk-ZSUWGNIT.js → chunk-HJAJ6W4V.js} +2 -2
- package/dist/chunk-KLIPVNCO.js +4824 -0
- package/dist/{chunk-AECSY5LT.js → chunk-L5MFWGGU.js} +55 -65
- package/dist/{chunk-BHOGXIBO.js → chunk-MFHYBSJC.js} +57 -825
- package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
- package/dist/{chunk-EUFBE5BW.js → chunk-N7ZMDVAK.js} +1 -1
- package/dist/{chunk-HQ3CFNHL.js → chunk-NNLQTG3M.js} +1 -1
- package/dist/{chunk-6YYFNGCS.js → chunk-NVLPW3DG.js} +7 -4
- package/dist/{chunk-SVVAUJPL.js → chunk-OFRRUYBA.js} +1 -1
- package/dist/{chunk-5F6B6KMK.js → chunk-OZUAVHFE.js} +18 -3
- package/dist/{chunk-BTYT3RT3.js → chunk-PNKLOMHQ.js} +2 -2
- package/dist/{chunk-XNAIYEKD.js → chunk-PQYWYBEQ.js} +1 -1
- package/dist/{chunk-TGS33LDU.js → chunk-QL4ZYSIB.js} +3 -3
- package/dist/{chunk-KBZSMKKD.js → chunk-QVTCXN42.js} +3 -3
- package/dist/{chunk-T2UR3T4L.js → chunk-RDDVQSNQ.js} +99 -22
- package/dist/{chunk-J2E3VVOS.js → chunk-RW4DMP2Y.js} +4 -4
- package/dist/{chunk-CUGADCIV.js → chunk-SFYLZX5C.js} +1 -1
- package/dist/{chunk-4RPCYGZG.js → chunk-T6SD37JZ.js} +1 -1
- package/dist/chunk-TQBQYO4L.js +55 -0
- package/dist/{chunk-26OI2B2X.js → chunk-TSJVPPXT.js} +1 -1
- package/dist/{chunk-C4LV6L4Q.js → chunk-UMUVGNOH.js} +3 -3
- package/dist/{chunk-GSTFETKE.js → chunk-VDVVQNTK.js} +2 -2
- package/dist/{chunk-G445Y3YG.js → chunk-VEA7Z4PZ.js} +2 -2
- package/dist/{chunk-32R2AFZ3.js → chunk-VHVSBOZH.js} +3 -3
- package/dist/{chunk-6GAYBX5C.js → chunk-VW2LVMKB.js} +19 -9
- package/dist/{chunk-UR6BAPOD.js → chunk-WHD5IAHI.js} +1 -1
- package/dist/{chunk-V2XXV2EH.js → chunk-WYB3VKLK.js} +2 -2
- package/dist/{chunk-57I5KNTL.js → chunk-X5HHHFTX.js} +3 -3
- package/dist/{chunk-V4K4BSCM.js → chunk-X7A7C4JS.js} +54 -2
- package/dist/chunk-X7RXXBYM.js +29 -0
- package/dist/{chunk-OB7QARSN.js → chunk-XOM3XTJ4.js} +1 -1
- package/dist/{chunk-UEOGIZ3Q.js → chunk-Z3XXLTVB.js} +2 -2
- package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
- package/dist/{chunk-5PVPGWMH.js → chunk-ZNAOBFU5.js} +1 -1
- package/dist/{chunk-AII6P2TC.js → chunk-ZTEKVSZ6.js} +1 -1
- package/dist/{clean-BW7NHQS5.js → clean-N5VSKUVS.js} +19 -19
- package/dist/cli.js +54 -54
- package/dist/{cloud-TZVXTWZO.js → cloud-74NF5FXC.js} +4 -4
- package/dist/{cloudrun-KRIETALO.js → cloudrun-7UOH335V.js} +6 -6
- package/dist/{compare-WYWHJ4CR.js → compare-AY2LS2TZ.js} +32 -32
- package/dist/{compiler-ANIPXLJ7.js → compiler-4MHMC777.js} +11 -11
- package/dist/{component-CY7DCX56.js → component-CFWQOAZI.js} +3 -3
- package/dist/{compositions-5YEB24E3.js → compositions-DXLJTDSP.js} +14 -14
- package/dist/{delete-6642PDON.js → delete-GB4MS7LM.js} +2 -2
- package/dist/{deploy-NZP6TZLS.js → deploy-NXD3Q3KD.js} +4 -4
- package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-775YXAQ2.js} +2 -2
- package/dist/{dist-DGFC75NC.js → dist-3ZJMZU75.js} +11 -3
- package/dist/{dist-V2BGP46S.js → dist-ZY6IFESG.js} +2 -2
- package/dist/{doctor-ZW4A2FS3.js → doctor-CVY2XXKS.js} +14 -14
- package/dist/{events-XRCHY2F6.js → events-RYQYEWBV.js} +2 -2
- package/dist/{events-NJU4VFDA.js → events-T3CLIYRG.js} +3 -3
- package/dist/{feedback-NQLSZMES.js → feedback-K5ZMMLTA.js} +8 -8
- package/dist/{ffmpeg-RYDQLG3G.js → ffmpeg-UNDAJ2IC.js} +9 -9
- package/dist/{figma-TJAMP2CI.js → figma-MYYCX635.js} +3 -3
- package/dist/fontLocalizeCli.js +12 -11
- package/dist/{get-RRZ3O26X.js → get-JVIDYMVP.js} +2 -2
- package/dist/{gpuPolicy-4WLHUUS3.js → gpuPolicy-KEX7GDRJ.js} +8 -8
- package/dist/{grade-compare-P7PE3NAA.js → grade-compare-QEF6VASJ.js} +30 -30
- package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
- package/dist/heifImagePrep-A3ZPVQGU.js +53 -0
- package/dist/{help-6RELRVIW.js → help-XPPSLIRY.js} +1 -1
- package/dist/{history-GIIDYND3.js → history-OFOPRD27.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +66 -64
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +16 -16
- package/dist/{info-LBUA2DXE.js → info-7RF6FQX5.js} +8 -8
- package/dist/{init-QUPXBONY.js → init-NTIXWA3D.js} +30 -30
- package/dist/{inspect-CL42DJZ4.js → inspect-MYMCV5E7.js} +30 -29
- package/dist/inspection.js +4 -4
- package/dist/{installer-VR7XDLR3.js → installer-PYJIJ3PJ.js} +5 -5
- package/dist/{keyframes-LELLROMA.js → keyframes-UJ52PYE4.js} +6 -6
- package/dist/{lambda-I6KFXWOO.js → lambda-SBNUYEQE.js} +8 -8
- package/dist/{layout-NR6SNRZE.js → layout-IOMCOABO.js} +30 -29
- package/dist/{lint-DYEMSEQR.js → lint-AQWHHMPS.js} +8 -8
- package/dist/{lintProject-EA4NPL2X.js → lintProject-5A4SCW3S.js} +2 -2
- package/dist/{list-RDURYO5U.js → list-WKAJ5SP3.js} +2 -2
- package/dist/{login-VKLET5OL.js → login-3ZDK5JOA.js} +4 -4
- package/dist/{manager-7TSUZKXU.js → manager-F2YREC5X.js} +2 -2
- package/dist/{manager-IYT3THJN.js → manager-QYFYWZOK.js} +10 -10
- package/dist/{media-treatment-I4AFEQZ3.js → media-treatment-4OLWVHUY.js} +15 -15
- package/dist/{models-LLPVGC2E.js → models-MR55FAUX.js} +14 -14
- package/dist/{motionShot-6A6HH6IK.js → motionShot-DC47S7BT.js} +17 -17
- package/dist/{normalize-audio-KVQJBYLT.js → normalize-audio-M2TK4NG5.js} +8 -8
- package/dist/{open-J4ZT4X3C.js → open-YXWBWTKL.js} +12 -12
- package/dist/{parakeetRunner-FLUCIDIZ.js → parakeetRunner-J6QR3GTG.js} +15 -15
- package/dist/{pipeline-RRVLGALQ.js → pipeline-7MJ5H4SW.js} +10 -10
- package/dist/{play-QGJSXUVM.js → play-S562STR4.js} +33 -23
- package/dist/{preflight-SP2ZERBE.js → preflight-QWGXMISC.js} +11 -11
- package/dist/{present-UR4YBHMX.js → present-PGOHZT3L.js} +29 -19
- package/dist/{preview-6ENCRU4C.js → preview-JU75H4QN.js} +32 -29
- package/dist/{producer-OMHZRY6A.js → producer-H66OMZLW.js} +1 -1
- package/dist/{projectConfig-NGS7GJ47.js → projectConfig-COSP24YT.js} +7 -7
- package/dist/{publication-6NYQA22Y.js → publication-J3XYHPGB.js} +3 -3
- package/dist/{publish-E6RE5VHB.js → publish-7GCCEPJZ.js} +11 -11
- package/dist/{remove-background-66PQRA7R.js → remove-background-WRCGIU32.js} +11 -11
- package/dist/{render-ZLRJUFMX.js → render-5J5PP3UK.js} +21 -21
- package/dist/{render-SBAZWXPO.js → render-QS3YJCBR.js} +6 -6
- package/dist/{render-IMSGS6BD.js → render-VUVTK2JM.js} +36 -36
- package/dist/{render-batch-MO7LYZSP.js → render-batch-Q2LQ3D4P.js} +6 -6
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-QMBVTAKT.js → resolver-QCBWPRSC.js} +5 -5
- package/dist/{sherpa-JZRDL3OE.js → sherpa-IZ22SC5W.js} +14 -14
- package/dist/{skills-YBTEWFYS.js → skills-3RFMPMJA.js} +5 -5
- package/dist/{skillsUpdateCheck-Z4HTDZJN.js → skillsUpdateCheck-DWBFVUBT.js} +3 -3
- package/dist/{snapshot-5F5UV6H5.js → snapshot-5PHA43DK.js} +53 -40
- package/dist/{src-WWXYV2TS.js → src-36BQVJL3.js} +16 -10
- package/dist/{src-UTW3F2PM.js → src-4YJKYMNF.js} +11 -7
- package/dist/{staticProjectServer-UHZ63C5O.js → staticProjectServer-3XFB76XS.js} +17 -17
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +478 -0
- package/dist/studio/assets/{index-C8hp9Y7c.js → index-BNuxGFZK.js} +1 -1
- package/dist/studio/assets/{index-dy6GQJn4.js → index-CwreIGoq.js} +93 -93
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-BHZ3PHL2.js → studio-api-WL6EZ4KE.js} +10 -10
- package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
- package/dist/{studioServer-AFUXWRB5.js → studioServer-ZS5RA6U3.js} +61 -52
- package/dist/{telemetry-UYKOT4OJ.js → telemetry-W3LRO3TB.js} +3 -3
- package/dist/{timeline-K5NLEMH4.js → timeline-BDO5DYWP.js} +18 -18
- package/dist/{tokens-FCOSWE2O.js → tokens-47CEMYFV.js} +2 -2
- package/dist/{transcribe-K2QTXDQR.js → transcribe-GEPVJO3A.js} +19 -19
- package/dist/{transcribe-SIFMTW5W.js → transcribe-XF3NL6JI.js} +13 -13
- package/dist/{tts-5I2AJNLM.js → tts-QM4RFE7U.js} +1 -1
- package/dist/{updateCheck-JZ6TBZVE.js → updateCheck-BON6ZFYP.js} +2 -2
- package/dist/{upgrade-TUPAJXQQ.js → upgrade-KIF5Z4J3.js} +2 -2
- package/dist/{urlDownloader-L4775QID.js → urlDownloader-UDRHVUWR.js} +7 -7
- package/dist/{validate-4HVVMEBV.js → validate-2OPSQT3W.js} +23 -23
- package/dist/{video-4OGPF3IE.js → video-ECWXMY4F.js} +8 -8
- package/dist/warmCheck.js +39 -37
- package/package.json +1 -1
- package/dist/chunk-ZUQZP6QD.js +0 -3986
- package/dist/studio/assets/hyperframes-player-DzdSmJdB.js +0 -478
- package/dist/{chunk-KVNXEAVT.js → chunk-2MLMO25E.js} +4 -4
- package/dist/{synthesize-PKTB5ATG.js → synthesize-QCRP3NI7.js} +4 -4
|
@@ -4,6 +4,11 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
Semaphore,
|
|
9
|
+
prepareHeifImageInputs,
|
|
10
|
+
withMediaProbeSlot
|
|
11
|
+
} from "./chunk-G6QDFWDN.js";
|
|
7
12
|
import {
|
|
8
13
|
GENERIC_FAMILIES,
|
|
9
14
|
collectFontFamilyCustomProperties,
|
|
@@ -11,12 +16,12 @@ import {
|
|
|
11
16
|
iterateFontFamilyDeclarations,
|
|
12
17
|
normalizeSystemFontPrimaryFamilies,
|
|
13
18
|
resolveFontFamilyDeclarationFamilies
|
|
14
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N7ZMDVAK.js";
|
|
15
20
|
import {
|
|
16
21
|
EncoderInterruptedError,
|
|
17
22
|
encoderFailureError,
|
|
18
23
|
prepareAnimatedGifInputs
|
|
19
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NVLPW3DG.js";
|
|
20
25
|
import {
|
|
21
26
|
parseEncoderOptions
|
|
22
27
|
} from "./chunk-AYH5ANVS.js";
|
|
@@ -162,7 +167,7 @@ import {
|
|
|
162
167
|
verifyDiskDrawElementSamples,
|
|
163
168
|
videoAudioId,
|
|
164
169
|
writeCapturedFrame
|
|
165
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
166
171
|
import {
|
|
167
172
|
DISTRIBUTED_FPS,
|
|
168
173
|
HF_VFX_ATTR,
|
|
@@ -178,11 +183,9 @@ import {
|
|
|
178
183
|
parseVfxChain,
|
|
179
184
|
resolveAuthoredTimingWindow,
|
|
180
185
|
toFps
|
|
181
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-VW2LVMKB.js";
|
|
182
187
|
import {
|
|
183
188
|
assignBundledRuntimeCompositionIds,
|
|
184
|
-
buildVariablesByCompScript,
|
|
185
|
-
dedupeFontFaceRules,
|
|
186
189
|
emitMountedModuleScripts,
|
|
187
190
|
emitRootCompositionVariableStyles,
|
|
188
191
|
ensureExternalLinkTag,
|
|
@@ -190,16 +193,19 @@ import {
|
|
|
190
193
|
extractStandaloneEntryFromIndex,
|
|
191
194
|
inlineSubCompositions,
|
|
192
195
|
parsesAsScript,
|
|
193
|
-
prepareFlattenedInnerRoot
|
|
194
|
-
|
|
196
|
+
prepareFlattenedInnerRoot,
|
|
197
|
+
stripSdrPngColourTags
|
|
198
|
+
} from "./chunk-MFHYBSJC.js";
|
|
195
199
|
import {
|
|
196
200
|
COMPOSITION_SOURCE_URL,
|
|
197
201
|
HF_COLOR_GRADING_ATTR,
|
|
198
202
|
MAX_AUDIO_GAIN,
|
|
199
203
|
MEDIA_RENDER_ID_ATTR,
|
|
200
204
|
assignMediaRenderIds,
|
|
205
|
+
buildVariablesByCompScript,
|
|
201
206
|
clampDurations,
|
|
202
207
|
compileTimingAttrs,
|
|
208
|
+
dedupeFontFaceRules,
|
|
203
209
|
deferScriptsUntilFonts,
|
|
204
210
|
extractResolvedMedia,
|
|
205
211
|
headStyleRuns,
|
|
@@ -224,7 +230,7 @@ import {
|
|
|
224
230
|
sourceTimeAt,
|
|
225
231
|
styleElementsFor,
|
|
226
232
|
timeAtSourceTime
|
|
227
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-KLIPVNCO.js";
|
|
228
234
|
import {
|
|
229
235
|
CANVAS_DIMENSIONS,
|
|
230
236
|
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
@@ -235,7 +241,7 @@ import {
|
|
|
235
241
|
isAspectAgnosticResolutionAlias,
|
|
236
242
|
normalizeResolutionFlag,
|
|
237
243
|
suggestMatchingPreset
|
|
238
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-OFRRUYBA.js";
|
|
239
245
|
import {
|
|
240
246
|
TRANSITIONS,
|
|
241
247
|
convertTransfer,
|
|
@@ -251,7 +257,7 @@ import {
|
|
|
251
257
|
import {
|
|
252
258
|
lintHyperframeHtml,
|
|
253
259
|
resolveReferencedStart
|
|
254
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-2MLMO25E.js";
|
|
255
261
|
import {
|
|
256
262
|
isUnresolvedAssetPlaceholder,
|
|
257
263
|
readProjectFile,
|
|
@@ -958,6 +964,18 @@ function createFileServer(options) {
|
|
|
958
964
|
html = isIndex ? injectScriptsIntoHtml(html, headScripts, bodyScripts, stripEmbeddedRuntime) : html;
|
|
959
965
|
return c.text(html, 200, { "Content-Type": contentType });
|
|
960
966
|
}
|
|
967
|
+
if (ext === ".png") {
|
|
968
|
+
const untagged = stripSdrPngColourTags(await readFileAsync(fd));
|
|
969
|
+
if (untagged) {
|
|
970
|
+
const headers = {
|
|
971
|
+
"Content-Type": contentType,
|
|
972
|
+
"Content-Length": String(untagged.length)
|
|
973
|
+
};
|
|
974
|
+
return new Response(c.req.method === "HEAD" ? null : new Uint8Array(untagged), {
|
|
975
|
+
headers
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
}
|
|
961
979
|
const totalSize = stat.size;
|
|
962
980
|
const rangeHeader = c.req.header("range");
|
|
963
981
|
const rangeRequest = parseRangeHeader(rangeHeader, totalSize);
|
|
@@ -985,7 +1003,8 @@ function createFileServer(options) {
|
|
|
985
1003
|
const stream = createReadStream(filePath, {
|
|
986
1004
|
fd,
|
|
987
1005
|
autoClose: true,
|
|
988
|
-
|
|
1006
|
+
start: range?.start ?? 0,
|
|
1007
|
+
...range ? { end: range.end } : {}
|
|
989
1008
|
});
|
|
990
1009
|
streamOwnsFd = true;
|
|
991
1010
|
try {
|
|
@@ -5818,55 +5837,6 @@ function getPositionEditsRenderScript() {
|
|
|
5818
5837
|
|
|
5819
5838
|
// ../producer/src/services/assetMediaType.ts
|
|
5820
5839
|
import { existsSync as existsSync8 } from "fs";
|
|
5821
|
-
|
|
5822
|
-
// ../producer/src/utils/semaphore.ts
|
|
5823
|
-
var Semaphore = class {
|
|
5824
|
-
constructor(maxConcurrent) {
|
|
5825
|
-
this.maxConcurrent = maxConcurrent;
|
|
5826
|
-
}
|
|
5827
|
-
maxConcurrent;
|
|
5828
|
-
queue = [];
|
|
5829
|
-
active = 0;
|
|
5830
|
-
async acquire() {
|
|
5831
|
-
if (this.active < this.maxConcurrent) {
|
|
5832
|
-
this.active++;
|
|
5833
|
-
return () => this.release();
|
|
5834
|
-
}
|
|
5835
|
-
return new Promise((resolve11) => {
|
|
5836
|
-
this.queue.push(() => {
|
|
5837
|
-
this.active++;
|
|
5838
|
-
resolve11(() => this.release());
|
|
5839
|
-
});
|
|
5840
|
-
});
|
|
5841
|
-
}
|
|
5842
|
-
release() {
|
|
5843
|
-
this.active--;
|
|
5844
|
-
const next = this.queue.shift();
|
|
5845
|
-
if (next) next();
|
|
5846
|
-
}
|
|
5847
|
-
/** Current number of active slots. */
|
|
5848
|
-
get activeCount() {
|
|
5849
|
-
return this.active;
|
|
5850
|
-
}
|
|
5851
|
-
/** Number of waiters in the queue. */
|
|
5852
|
-
get waitingCount() {
|
|
5853
|
-
return this.queue.length;
|
|
5854
|
-
}
|
|
5855
|
-
};
|
|
5856
|
-
|
|
5857
|
-
// ../producer/src/utils/mediaProbeConcurrency.ts
|
|
5858
|
-
var MEDIA_PROBE_CONCURRENCY = 4;
|
|
5859
|
-
var sharedMediaProbeSemaphore = new Semaphore(MEDIA_PROBE_CONCURRENCY);
|
|
5860
|
-
async function withMediaProbeSlot(operation) {
|
|
5861
|
-
const release = await sharedMediaProbeSemaphore.acquire();
|
|
5862
|
-
try {
|
|
5863
|
-
return await operation();
|
|
5864
|
-
} finally {
|
|
5865
|
-
release();
|
|
5866
|
-
}
|
|
5867
|
-
}
|
|
5868
|
-
|
|
5869
|
-
// ../producer/src/services/assetMediaType.ts
|
|
5870
5840
|
var ASSET_MEDIA_TYPE_MISMATCH = "ASSET_MEDIA_TYPE_MISMATCH";
|
|
5871
5841
|
var AssetMediaTypeMismatchError = class extends Error {
|
|
5872
5842
|
code = ASSET_MEDIA_TYPE_MISMATCH;
|
|
@@ -7001,7 +6971,7 @@ async function readLocalFont(absPath) {
|
|
|
7001
6971
|
return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
|
|
7002
6972
|
}
|
|
7003
6973
|
async function embedLocalFontFaces(html, projectDir) {
|
|
7004
|
-
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-
|
|
6974
|
+
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-775YXAQ2.js");
|
|
7005
6975
|
const styleBlockRe = /<style\b[^>]*>([\s\S]*?)<\/style>/gi;
|
|
7006
6976
|
const fontFaceRe = /@font-face\s*\{([^}]*)\}/gi;
|
|
7007
6977
|
let result = html;
|
|
@@ -7178,12 +7148,26 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
7178
7148
|
const { html: htmlWithLocalImages, remoteMediaAssets: remoteImageAssets } = await localizeRemoteImageSources(htmlWithLocalMedia, downloadDir);
|
|
7179
7149
|
const { html: htmlWithLocalBg, remoteMediaAssets: remoteBgAssets } = await localizeRemoteBackgroundImages(htmlWithLocalImages, downloadDir);
|
|
7180
7150
|
const { html: htmlWithLocalizedFonts, remoteMediaAssets: remoteFontAssets } = await localizeRemoteFontFaces(htmlWithLocalBg, downloadDir);
|
|
7151
|
+
const {
|
|
7152
|
+
html: htmlWithJpegs,
|
|
7153
|
+
preparedAssets: preparedHeifAssets,
|
|
7154
|
+
preparedImages: preparedHeifImages
|
|
7155
|
+
} = await prepareHeifImageInputs(htmlWithLocalizedFonts, {
|
|
7156
|
+
projectDir,
|
|
7157
|
+
downloadDir,
|
|
7158
|
+
cacheDir: options.animatedGifCacheDir,
|
|
7159
|
+
sourceAssets: remoteImageAssets,
|
|
7160
|
+
timeoutMs: options.ffmpegProcessTimeout
|
|
7161
|
+
});
|
|
7162
|
+
if (preparedHeifImages.length > 0) {
|
|
7163
|
+
defaultLogger.info(`[Compiler] Converted ${preparedHeifImages.length} HEIC image(s) to JPEG`);
|
|
7164
|
+
}
|
|
7181
7165
|
const gifSourceAssets = new Map(remoteImageAssets);
|
|
7182
7166
|
const {
|
|
7183
7167
|
html: htmlWithPreparedGifs,
|
|
7184
7168
|
preparedAssets: preparedGifAssets,
|
|
7185
7169
|
preparedGifs
|
|
7186
|
-
} = await prepareAnimatedGifInputs(
|
|
7170
|
+
} = await prepareAnimatedGifInputs(htmlWithJpegs, {
|
|
7187
7171
|
projectDir,
|
|
7188
7172
|
downloadDir,
|
|
7189
7173
|
cacheDir: options.animatedGifCacheDir,
|
|
@@ -7210,6 +7194,9 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
7210
7194
|
for (const [relPath, absPath] of preparedGifAssets) {
|
|
7211
7195
|
externalAssets.set(relPath, absPath);
|
|
7212
7196
|
}
|
|
7197
|
+
for (const [relPath, absPath] of preparedHeifAssets) {
|
|
7198
|
+
externalAssets.set(relPath, absPath);
|
|
7199
|
+
}
|
|
7213
7200
|
const { videos, audios, images, droppedMediaIds } = collectRenderMedia(html);
|
|
7214
7201
|
const masterFxChain = parseMasterFxChain(html);
|
|
7215
7202
|
for (const video of videos) {
|
|
@@ -16169,7 +16156,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
16169
16156
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
16170
16157
|
if (probeResult.probeSession) {
|
|
16171
16158
|
try {
|
|
16172
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
16159
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-4YJKYMNF.js");
|
|
16173
16160
|
await closeCaptureSession2(probeResult.probeSession);
|
|
16174
16161
|
} catch (err) {
|
|
16175
16162
|
log.warn("[plan] probe session close failed", {
|
|
@@ -17229,6 +17216,8 @@ var DEFAULT_SERVER_FPS = { num: 30, den: 1 };
|
|
|
17229
17216
|
var SSE_KEEPALIVE_MS = 3e4;
|
|
17230
17217
|
var SAFE_RENDER_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
17231
17218
|
"ASSET_MEDIA_TYPE_MISMATCH",
|
|
17219
|
+
"HEIF_IMAGE_CONVERSION_FAILED",
|
|
17220
|
+
"HEIF_TOOL_UNAVAILABLE",
|
|
17232
17221
|
"NOT_MEDIA_PAYLOAD",
|
|
17233
17222
|
"INVALID_VIDEO_METADATA",
|
|
17234
17223
|
"VIDEO_SOURCE_UNRENDERABLE",
|
|
@@ -17851,7 +17840,7 @@ function startServer(options = {}) {
|
|
|
17851
17840
|
});
|
|
17852
17841
|
async function shutdown(signal) {
|
|
17853
17842
|
log.info(`Received ${signal}, shutting down`);
|
|
17854
|
-
const { drainBrowserPool } = await import("./src-
|
|
17843
|
+
const { drainBrowserPool } = await import("./src-4YJKYMNF.js");
|
|
17855
17844
|
await drainBrowserPool().catch(() => {
|
|
17856
17845
|
});
|
|
17857
17846
|
const handle = await Promise.race([
|
|
@@ -19780,6 +19769,7 @@ export {
|
|
|
19780
19769
|
createOwnedRenderDir,
|
|
19781
19770
|
listAbandonedRenderDirs,
|
|
19782
19771
|
collectRenderMedia,
|
|
19772
|
+
mediaProfileMatchesElementType,
|
|
19783
19773
|
localizeRemoteMediaSources,
|
|
19784
19774
|
localizeRemoteImageSources,
|
|
19785
19775
|
localizeRemoteFontFaces,
|