hyperframes 0.8.142 → 0.8.144
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-YS2RCWEK.js → add-CWRTVGDB.js} +18 -17
- package/dist/{animatedGifPrep-SAMCDT7T.js → animatedGifPrep-JTOHIWI4.js} +15 -14
- package/dist/{asset-BLWC2NWB.js → asset-KU2Z4UFM.js} +4 -4
- package/dist/{assetCataloger-FVNBBRP3.js → assetCataloger-3CS2P7PA.js} +8 -7
- package/dist/{auth-DRZB7OAC.js → auth-IDSOIQWG.js} +1 -1
- package/dist/{autoUpdate-I5I3BOJK.js → autoUpdate-373B4BA2.js} +2 -2
- package/dist/{backgroundChecks-VR2QHGNY.js → backgroundChecks-53Q3NAMG.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-4YUHQI6X.js → batchRender-UKZA6BME.js} +11 -10
- package/dist/{beats-7OT7ALV3.js → beats-N5JGEOFR.js} +33 -28
- package/dist/{benchmark-Q2XQCRTR.js → benchmark-CUN3LN4V.js} +15 -14
- package/dist/{browser-7VAWQQZC.js → browser-NCZT5AP6.js} +40 -56
- package/dist/{bundleWithLocalizedFonts-DDMLLL2R.js → bundleWithLocalizedFonts-FWC7PE2D.js} +2 -2
- package/dist/{capture-HEJS6M5A.js → capture-QBLG3VJR.js} +26 -25
- package/dist/{capture-U7ABPKS5.js → capture-YLS32UHT.js} +2 -2
- package/dist/{catalog-DVJ3XPDN.js → catalog-HIWNAFHW.js} +19 -18
- package/dist/{catch-up-DF6AVSN2.js → catch-up-HGS7KIAC.js} +5 -5
- package/dist/{check-KXORRWAE.js → check-FH6UYYLO.js} +78 -66
- package/dist/{checkBrowser-J7HZJTRH.js → checkBrowser-RNWNOMCZ.js} +93 -41
- package/dist/{chunk-R2JEKLDZ.js → chunk-2DA2BBNY.js} +3 -3
- package/dist/{chunk-TQFG7HTI.js → chunk-3RM2ETQT.js} +0 -168
- package/dist/{chunk-YFT3BL7N.js → chunk-3VYNNWVA.js} +30 -12
- package/dist/{chunk-7FCDA4RH.js → chunk-3XTEXWNN.js} +8 -5
- package/dist/{chunk-PFCFR3KZ.js → chunk-442JNXRM.js} +1 -1
- package/dist/{chunk-BPZVDBHY.js → chunk-4LAR447G.js} +1 -1
- package/dist/{chunk-AM5L5YIA.js → chunk-4OA4LDTU.js} +1 -1
- package/dist/{chunk-DZEVA7DI.js → chunk-4OC7MQNB.js} +2 -2
- package/dist/{chunk-75JJVANE.js → chunk-54QISXOC.js} +3 -3
- package/dist/{chunk-FZK35GT4.js → chunk-5HJ343GH.js} +1 -1
- package/dist/{chunk-IDX52YJN.js → chunk-5VMR4WBS.js} +458 -159
- package/dist/{chunk-OSUKETIH.js → chunk-5WADG7PR.js} +1 -1
- package/dist/{chunk-JYYOAKHS.js → chunk-6IIGT7BX.js} +1 -1
- package/dist/{chunk-6UYZB4TY.js → chunk-7RAYSCYT.js} +4 -4
- package/dist/{chunk-WTMUCJ6Z.js → chunk-7SDCIWHQ.js} +11 -2
- package/dist/{chunk-LAOCA3MQ.js → chunk-A4Q7W4LV.js} +13 -8
- package/dist/{chunk-B6SMSALD.js → chunk-A53CBD24.js} +18 -12
- package/dist/{chunk-4PFZPP2N.js → chunk-A6S35NYA.js} +54 -16
- package/dist/{chunk-JOTLPC6S.js → chunk-AUBOF2PN.js} +1 -1
- package/dist/{chunk-WCJGTLPF.js → chunk-BHVFTYSI.js} +6 -3
- package/dist/chunk-BSQ7XANM.js +210 -0
- package/dist/{chunk-LCSMOLGX.js → chunk-BYSBRF24.js} +69 -8
- package/dist/{chunk-U7E736AJ.js → chunk-DDIVWXN7.js} +32 -14
- package/dist/{chunk-KOEWEFHK.js → chunk-DIRJ322I.js} +10 -5
- package/dist/{chunk-HMUF7FEO.js → chunk-EX6C672Y.js} +2 -2
- package/dist/{chunk-QGRFOOLE.js → chunk-F2SMS24Q.js} +288 -85
- package/dist/{chunk-5Z63TBTX.js → chunk-FH7WODJH.js} +1 -1
- package/dist/{chunk-XTLBLWOV.js → chunk-GEWKFRFI.js} +1 -1
- package/dist/{chunk-RVCWIIZ7.js → chunk-GV5R5B7Q.js} +1 -1
- package/dist/{chunk-TY6XOHEM.js → chunk-GZM2EFOE.js} +3 -3
- package/dist/chunk-GZVP4TWN.js +76 -0
- package/dist/{chunk-QXPCARFE.js → chunk-I5KY7EZP.js} +1 -1
- package/dist/{chunk-IW2CKH6A.js → chunk-IEIJRMLZ.js} +94 -59
- package/dist/chunk-IR35BCLK.js +13 -0
- package/dist/{chunk-JFKL3WAE.js → chunk-IWFLMU2N.js} +104 -19
- package/dist/{chunk-EFDXGAAD.js → chunk-JEHFZQYT.js} +1 -1
- package/dist/{chunk-IHFUKJOR.js → chunk-K2FLNJVB.js} +8 -2
- package/dist/{chunk-KDPYVTEU.js → chunk-KBB4RG6F.js} +6 -1
- package/dist/{chunk-LJAU4TPS.js → chunk-KFKZ3ISO.js} +2 -2
- package/dist/{sherpa-ZYTNFHD5.js → chunk-L5TUCXWR.js} +11 -44
- package/dist/{chunk-KYN364DU.js → chunk-LC3RQURJ.js} +7 -9
- package/dist/{chunk-IMY4QQTQ.js → chunk-LFX2HEYP.js} +8 -8
- package/dist/{chunk-PXSM4HPB.js → chunk-MAYCCGMQ.js} +12 -3
- package/dist/{chunk-OZUQF4NB.js → chunk-MQZVBHEY.js} +123 -8
- package/dist/{chunk-FWRNQOLT.js → chunk-MXNDKDFT.js} +3 -3
- package/dist/{chunk-A4KQZXZI.js → chunk-NE55C6S5.js} +4 -2
- package/dist/{chunk-GYE63V4P.js → chunk-NOPBBSLA.js} +24 -19
- package/dist/{chunk-H2X52H2N.js → chunk-NV4RXIQ7.js} +3 -3
- package/dist/{chunk-WGVOWWVK.js → chunk-OIDN7G42.js} +3 -3
- package/dist/{chunk-DPHJKWP5.js → chunk-OUSLVRO4.js} +107 -108
- package/dist/{chunk-JLKMWY2T.js → chunk-P6WH6QTV.js} +8 -5
- package/dist/{chunk-7M4KAPAA.js → chunk-PUGIRFPX.js} +2 -2
- package/dist/{chunk-6RAD4BCC.js → chunk-QATWIE4K.js} +2 -2
- package/dist/{chunk-D2KNWIQ6.js → chunk-QFSCCQIR.js} +1 -1
- package/dist/{chunk-XGMNQQTJ.js → chunk-RG3QWWIE.js} +1 -1
- package/dist/{chunk-MVTUV4TP.js → chunk-RI53TS2Y.js} +14 -6
- package/dist/{chunk-LQASVU3I.js → chunk-RVFEDAUV.js} +12 -4
- package/dist/{chunk-GK4AIFIH.js → chunk-SDYDNHEE.js} +34 -3
- package/dist/{chunk-WSGY5CDQ.js → chunk-SLCFKB3Y.js} +14 -10
- package/dist/{chunk-2NCHQUPX.js → chunk-SQLK7SJL.js} +1 -1
- package/dist/{chunk-PMRBLBUP.js → chunk-T42U2W2R.js} +14 -2
- package/dist/chunk-UPFUC4DB.js +136 -0
- package/dist/{chunk-IXCTG2WY.js → chunk-VYSUZEJG.js} +5 -5
- package/dist/chunk-WJB7WI4J.js +3753 -0
- package/dist/{chunk-YEIFI443.js → chunk-WPNE5NEP.js} +1 -1
- package/dist/{chunk-YHRZQJXH.js → chunk-XGFHYAYN.js} +265 -68
- package/dist/{chunk-LBKDQKWV.js → chunk-XU5GGV6R.js} +1 -1
- package/dist/{chunk-LTGGTEMA.js → chunk-Y6UPYWJS.js} +2 -2
- package/dist/{chunk-OKCR3JTO.js → chunk-YJXHMIZA.js} +13 -10
- package/dist/{chunk-JU6Y5TTZ.js → chunk-YUAXFWSQ.js} +3 -3
- package/dist/{chunk-TVCRUG2S.js → chunk-ZEUONDQG.js} +1 -1
- package/dist/{chunk-THXFSPLV.js → chunk-ZIRIDSDB.js} +1 -1
- package/dist/{chunk-6UM3R7PP.js → chunk-ZOA2SC4P.js} +129 -60
- package/dist/{clean-KTHTV5G5.js → clean-KPX27IKJ.js} +27 -26
- package/dist/cli.js +70 -160
- package/dist/{cloud-ARSZWALC.js → cloud-P7DAOISN.js} +4 -4
- package/dist/{cloudrun-NM7RXOCL.js → cloudrun-XM56TBOH.js} +13 -12
- package/dist/commands/contrast-audit.browser.js +60 -4
- package/dist/commands/layout-audit.browser.js +68 -0
- package/dist/{compare-CY4UO3RW.js → compare-F6YAFZZM.js} +37 -36
- package/dist/{compiler-VTH2D3ID.js → compiler-JZ4GNFMG.js} +16 -10
- package/dist/{component-FRUIAXIR.js → component-3CFOGIQA.js} +5 -5
- package/dist/{compositions-CUSY6ZYY.js → compositions-CPCMWF24.js} +38 -33
- package/dist/{delete-KT3VHP4L.js → delete-GYVKOKB6.js} +4 -4
- package/dist/{deterministicFonts-F6WIVL2W.js → deterministicFonts-U2BIMGPG.js} +3 -3
- package/dist/{dist-7SZU7MA7.js → dist-KDJTFJHA.js} +7 -6
- package/dist/{dist-2GC6XKRQ.js → dist-YPWQDWJ4.js} +42 -40
- package/dist/{doctor-4ROTBL5U.js → doctor-GWI3B6JT.js} +21 -20
- package/dist/{dom-IROKGVJI.js → dom-37K6YOH4.js} +2 -2
- package/dist/{events-QJDVMKSR.js → events-BRRUDPPT.js} +3 -3
- package/dist/{events-Q5PXT5UC.js → events-V2QFN4YM.js} +2 -2
- package/dist/{feedback-PQ7TWESA.js → feedback-CXMD7FWL.js} +14 -13
- package/dist/{ffmpeg-QIUFEFTY.js → ffmpeg-T5SH2EFJ.js} +3 -2
- package/dist/{figma-JN5DDBDS.js → figma-YABDWD66.js} +3 -3
- package/dist/fontLocalizeCli.js +18 -17
- package/dist/{get-KT6OTERO.js → get-L2SOQKHX.js} +4 -4
- package/dist/{gpuPolicy-LCBWVGEH.js → gpuPolicy-NBJNWHYS.js} +19 -16
- package/dist/{grade-compare-VS3RP73G.js → grade-compare-STXQPKYQ.js} +39 -38
- package/dist/{help-AD6FIZIO.js → help-4H6BSFLB.js} +2 -2
- package/dist/{history-ZRWYRY7R.js → history-4IQOLTHJ.js} +6 -6
- package/dist/hyperframe-runtime.js +56 -56
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +56 -56
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +23 -23
- package/dist/{info-WBBQA2AX.js → info-2CZOTNBC.js} +17 -16
- package/dist/{init-A2XBDFGF.js → init-6BXK42VS.js} +46 -46
- package/dist/{inspect-CLTZHA5O.js → inspect-VKU47TBH.js} +38 -37
- package/dist/{installer-WQDRVXH4.js → installer-T2BSSUDY.js} +11 -10
- package/dist/{keyframes-3FYOK6H6.js → keyframes-IEYVHRPI.js} +10 -10
- package/dist/{lambda-Y2PA2BGS.js → lambda-TIKG25CK.js} +12 -11
- package/dist/{layout-4KP5O7IJ.js → layout-XOI4PT7A.js} +38 -37
- package/dist/{lint-V4GRFHOJ.js → lint-DWCMVIX5.js} +14 -13
- package/dist/{lintProject-RG2KGAXB.js → lintProject-UBZ3TDHU.js} +7 -6
- package/dist/{list-OQ4VED6E.js → list-7GXKG5QM.js} +5 -5
- package/dist/{login-W47NKN5S.js → login-BQ5L2UHX.js} +4 -4
- package/dist/{manager-CT3D67CG.js → manager-BPSR6D3V.js} +2 -2
- package/dist/{manager-524RPYO7.js → manager-RFZNG5YT.js} +2 -2
- package/dist/{manager-DXB7JDHU.js → manager-YKMHR6LN.js} +9 -6
- package/dist/{media-treatment-HJYL3EME.js → media-treatment-IFB7OSZ3.js} +24 -22
- package/dist/{models-DYBAD2GQ.js → models-TY4PJ545.js} +68 -27
- package/dist/{motionShot-7NE2YBB3.js → motionShot-WXMFHICW.js} +33 -33
- package/dist/{normalize-IGLHCWTF.js → normalize-U3SL5VG3.js} +19 -8
- package/dist/{normalize-audio-INKCLMS2.js → normalize-audio-RFD776HQ.js} +10 -6
- package/dist/{open-TYC5THVY.js → open-7IXXGO2E.js} +5 -5
- package/dist/parakeetRunner-IHLYYMTZ.js +67 -0
- package/dist/{pipeline-EVKEPQEW.js → pipeline-TXKPLL2U.js} +20 -18
- package/dist/{play-QMZEM6X3.js → play-J2KP64UK.js} +31 -29
- package/dist/{preflight-Y5DN5D37.js → preflight-B4AFK3RG.js} +4 -4
- package/dist/{present-Y7IK3C4W.js → present-MHHNRVRA.js} +26 -25
- package/dist/{preview-5OQRYE6A.js → preview-CONUOFFQ.js} +28 -27
- package/dist/{producer-Q6G6JU7B.js → producer-ZI46K7HH.js} +1 -1
- package/dist/{projectConfig-RJN3DKDB.js → projectConfig-FGGVG5MV.js} +13 -12
- package/dist/{publication-QCPGGN3U.js → publication-TXFBMW6B.js} +8 -7
- package/dist/{publish-VZLFIGYY.js → publish-YZSPBFRD.js} +18 -17
- package/dist/{remove-background-TKOEHBA5.js → remove-background-4ATVLHLG.js} +22 -20
- package/dist/{render-KIIIF6PS.js → render-6FBYLYGJ.js} +20 -19
- package/dist/{render-XTXE5CRU.js → render-GFW5BPES.js} +13 -12
- package/dist/{render-X3NFNVEQ.js → render-MH4IUPWB.js} +41 -40
- package/dist/{render-batch-M55YZLZ5.js → render-batch-XUCZ2PUJ.js} +13 -12
- package/dist/{renderCancellation-X5BEHAZU.js → renderCancellation-XF7M7IUP.js} +18 -16
- package/dist/renderSetupWorker.js +37 -48
- package/dist/{resolver-GAMXRA42.js → resolver-W7AYCQGS.js} +10 -9
- package/dist/sherpa-LDUB5NLY.js +75 -0
- package/dist/sherpaWorker.js +2 -1
- package/dist/skills/hyperframes-cli/references/doctor-browser.md +24 -1
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/skills/media-use/scripts/lib/cache.mjs +28 -14
- package/dist/skills/media-use/scripts/lib/cache.test.mjs +110 -0
- package/dist/skills/media-use/scripts/lib/duck.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/duck.test.mjs +87 -0
- package/dist/skills/media-use/scripts/lib/probe.mjs +6 -1
- package/dist/skills/media-use/scripts/lib/probe.test.mjs +73 -0
- package/dist/skills/media-use/scripts/lib/words.mjs +1 -1
- package/dist/{skills-CZHVAD3J.js → skills-VENERS5X.js} +7 -7
- package/dist/{skillsUpdateCheck-6WLLX53A.js → skillsUpdateCheck-UXFYTACG.js} +3 -3
- package/dist/{slideshow-EJ4IMY6P.js → slideshow-4OJEPWNZ.js} +1 -1
- package/dist/{snapshot-K7BTJPYQ.js → snapshot-C6T74HTI.js} +44 -40
- package/dist/{src-YUW26JU5.js → src-FS5RSVEI.js} +17 -16
- package/dist/{src-3I3RH3V5.js → src-VUJ2FUFK.js} +18 -13
- package/dist/{staticProjectServer-IKCSGN2B.js → staticProjectServer-V2RZ4DWD.js} +23 -22
- package/dist/studio/assets/hyperframes-player-Bw_jIaSX.js +473 -0
- package/dist/studio/assets/{index-B-wffzRH.js → index-BVM9NuWl.js} +153 -153
- package/dist/studio/assets/{index-D3Vij9t1.js → index-Cj7W_c7p.js} +1 -1
- package/dist/studio/assets/{index-D5q2_7Gw.js → index-DyH9dT7b.js} +1 -1
- package/dist/studio/{chunk-TFLU2MGI.js → chunk-3GHTHPZD.js} +8 -1
- package/dist/studio/chunk-3GHTHPZD.js.map +1 -0
- package/dist/studio/{chunk-H2DUOXTF.js → chunk-G3EDKRZH.js} +3 -3
- package/dist/studio/{chunk-UYWON5AX.js → chunk-PEAKCOUW.js} +7 -3
- package/dist/studio/chunk-PEAKCOUW.js.map +1 -0
- package/dist/studio/{chunk-LOVBLSMR.js → chunk-Y2OHHNM2.js} +35 -19
- package/dist/studio/chunk-Y2OHHNM2.js.map +1 -0
- package/dist/studio/{domEditingLayers-KBTPQKGA.js → domEditingLayers-PYST4G45.js} +3 -3
- package/dist/studio/index.html +1 -1
- package/dist/studio/index.js +261 -230
- package/dist/studio/index.js.map +1 -1
- package/dist/studio/player.js +3 -3
- package/dist/studio/ui.d.ts +4 -5
- package/dist/studio/ui.js +1 -1
- package/dist/{studio-api-SQ3NXFSM.js → studio-api-TQE7KWKO.js} +22 -17
- package/dist/{studioServer-VVEO7XCH.js → studioServer-CYKSQK7L.js} +81 -64
- package/dist/{synthesize-77PTU6C5.js → synthesize-UCI4X5O7.js} +6 -6
- package/dist/{telemetry-FQDKR5XA.js → telemetry-A23PPRD6.js} +3 -3
- package/dist/{timeline-N6ZASFNE.js → timeline-T3QSGT3A.js} +143 -99
- package/dist/{tokens-2OIIBBCW.js → tokens-RT5HWA6C.js} +4 -4
- package/dist/{transcribe-7YTUCXDX.js → transcribe-FOLNOC5G.js} +116 -52
- package/dist/{transcribe-4F6MK73N.js → transcribe-HCF64LQK.js} +23 -20
- package/dist/{tts-TOHSPWEG.js → tts-B6AHFQEO.js} +6 -6
- package/dist/{updateCheck-AZ2COZFR.js → updateCheck-27PIP3AA.js} +2 -2
- package/dist/{upgrade-QAJEYB4X.js → upgrade-TVGXBUPJ.js} +2 -2
- package/dist/{urlDownloader-LSMFEO3R.js → urlDownloader-KBLBJKRL.js} +14 -13
- package/dist/{validate-GW5MDL36.js → validate-ZMYGK4QI.js} +40 -27
- package/dist/{video-PRNOKUK3.js → video-AVE5GIGM.js} +15 -14
- package/package.json +1 -1
- package/dist/chunk-J4UX3RS3.js +0 -3717
- package/dist/studio/assets/hyperframes-player-sAsRuV73.js +0 -473
- package/dist/studio/chunk-LOVBLSMR.js.map +0 -1
- package/dist/studio/chunk-TFLU2MGI.js.map +0 -1
- package/dist/studio/chunk-UYWON5AX.js.map +0 -1
- package/dist/{chunk-HBBJFK6I.js → chunk-APDLWWFG.js} +0 -0
- package/dist/{screenshotCapture-TEUIWXWN.js → screenshotCapture-3JXXUZND.js} +3 -3
- /package/dist/studio/{chunk-H2DUOXTF.js.map → chunk-G3EDKRZH.js.map} +0 -0
- /package/dist/studio/{domEditingLayers-KBTPQKGA.js.map → domEditingLayers-PYST4G45.js.map} +0 -0
|
@@ -2012,6 +2012,32 @@ var EntityDecoder = class {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
2014
|
};
|
|
2015
|
+
function getDecoder(decodeTree) {
|
|
2016
|
+
let returnValue = "";
|
|
2017
|
+
const decoder = new EntityDecoder(decodeTree, (data) => returnValue += fromCodePoint(data));
|
|
2018
|
+
return function decodeWithTrie(input, decodeMode) {
|
|
2019
|
+
let lastIndex = 0;
|
|
2020
|
+
let offset = 0;
|
|
2021
|
+
while ((offset = input.indexOf("&", offset)) >= 0) {
|
|
2022
|
+
returnValue += input.slice(lastIndex, offset);
|
|
2023
|
+
decoder.startEntity(decodeMode);
|
|
2024
|
+
const length = decoder.write(
|
|
2025
|
+
input,
|
|
2026
|
+
// Skip the "&"
|
|
2027
|
+
offset + 1
|
|
2028
|
+
);
|
|
2029
|
+
if (length < 0) {
|
|
2030
|
+
lastIndex = offset + decoder.end();
|
|
2031
|
+
break;
|
|
2032
|
+
}
|
|
2033
|
+
lastIndex = offset + length;
|
|
2034
|
+
offset = length === 0 ? lastIndex + 1 : lastIndex;
|
|
2035
|
+
}
|
|
2036
|
+
const result = returnValue + input.slice(lastIndex);
|
|
2037
|
+
returnValue = "";
|
|
2038
|
+
return result;
|
|
2039
|
+
};
|
|
2040
|
+
}
|
|
2015
2041
|
function determineBranch(decodeTree, current, nodeIndex, char) {
|
|
2016
2042
|
const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
|
|
2017
2043
|
const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
|
|
@@ -2040,6 +2066,10 @@ function determineBranch(decodeTree, current, nodeIndex, char) {
|
|
|
2040
2066
|
}
|
|
2041
2067
|
return -1;
|
|
2042
2068
|
}
|
|
2069
|
+
var htmlDecoder = /* @__PURE__ */ getDecoder(htmlDecodeTree);
|
|
2070
|
+
function decodeHTMLAttribute(htmlAttribute) {
|
|
2071
|
+
return htmlDecoder(htmlAttribute, DecodingMode.Attribute);
|
|
2072
|
+
}
|
|
2043
2073
|
|
|
2044
2074
|
// ../../node_modules/.bun/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.js
|
|
2045
2075
|
var CharCodes2;
|
|
@@ -4072,7 +4102,7 @@ var EntityDecoder2 = class {
|
|
|
4072
4102
|
}
|
|
4073
4103
|
}
|
|
4074
4104
|
};
|
|
4075
|
-
function
|
|
4105
|
+
function getDecoder2(decodeTree) {
|
|
4076
4106
|
let ret = "";
|
|
4077
4107
|
const decoder = new EntityDecoder2(decodeTree, (str) => ret += fromCodePoint2(str));
|
|
4078
4108
|
return function decodeWithTrie(str, decodeMode) {
|
|
@@ -4123,8 +4153,8 @@ function determineBranch2(decodeTree, current, nodeIdx, char) {
|
|
|
4123
4153
|
}
|
|
4124
4154
|
return -1;
|
|
4125
4155
|
}
|
|
4126
|
-
var
|
|
4127
|
-
var xmlDecoder =
|
|
4156
|
+
var htmlDecoder2 = getDecoder2(decode_data_html_default);
|
|
4157
|
+
var xmlDecoder = getDecoder2(decode_data_xml_default);
|
|
4128
4158
|
|
|
4129
4159
|
// ../../node_modules/.bun/entities@4.5.0/node_modules/entities/lib/esm/generated/encode-html.js
|
|
4130
4160
|
function restoreDiff(arr) {
|
|
@@ -11165,6 +11195,7 @@ function Document4() {
|
|
|
11165
11195
|
setPrototypeOf(Document4, Document2).prototype = Document2.prototype;
|
|
11166
11196
|
|
|
11167
11197
|
export {
|
|
11198
|
+
decodeHTMLAttribute,
|
|
11168
11199
|
Parser,
|
|
11169
11200
|
DOMParser,
|
|
11170
11201
|
parseHTML
|
|
@@ -6,22 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCompositionViewportFromHtml
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FH7WODJH.js";
|
|
10
10
|
import {
|
|
11
11
|
launchManagedBrowser,
|
|
12
12
|
resolveManagedGpuMode
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5WADG7PR.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveDiagnosticNavigationTimeoutMs,
|
|
16
16
|
windowsChromeCrashRemediation
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GZM2EFOE.js";
|
|
18
18
|
import {
|
|
19
|
-
resolveLocalBrowserGpuMode
|
|
20
|
-
|
|
19
|
+
resolveLocalBrowserGpuMode,
|
|
20
|
+
resolveLocalWebGpu
|
|
21
|
+
} from "./chunk-7SDCIWHQ.js";
|
|
21
22
|
import {
|
|
22
23
|
assertWebGpuAdapterAvailable,
|
|
23
24
|
compositionRequiresWebGpu
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5VMR4WBS.js";
|
|
25
26
|
import {
|
|
26
27
|
normalizeErrorMessage
|
|
27
28
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -100,20 +101,23 @@ async function installPageFunctionGuard(page) {
|
|
|
100
101
|
}
|
|
101
102
|
async function openSettledCompositionPage(html, url, options) {
|
|
102
103
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
103
|
-
const { ensureBrowser, findSystemBrowser } = await import("./manager-
|
|
104
|
+
const { ensureBrowser, findSystemBrowser } = await import("./manager-BPSR6D3V.js");
|
|
104
105
|
const browser = await ensureBrowser();
|
|
105
106
|
const puppeteer = await import("puppeteer-core");
|
|
106
|
-
const { buildChromeArgs } = await import("./src-
|
|
107
|
+
const { buildChromeArgs } = await import("./src-VUJ2FUFK.js");
|
|
107
108
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
108
109
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
110
|
+
let softwareWebGpu = false;
|
|
109
111
|
const launch = async (executablePath) => {
|
|
110
112
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, executablePath);
|
|
113
|
+
const webGpu = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
114
|
+
softwareWebGpu = webGpu.softwareWebGpu;
|
|
111
115
|
return launchManagedBrowser(puppeteer.default, {
|
|
112
116
|
headless: true,
|
|
113
117
|
executablePath,
|
|
114
118
|
args: buildChromeArgs(
|
|
115
119
|
{ ...viewport, captureMode: "screenshot", requiresWebGpu },
|
|
116
|
-
|
|
120
|
+
webGpu.gpuConfig
|
|
117
121
|
)
|
|
118
122
|
});
|
|
119
123
|
};
|
|
@@ -153,7 +157,7 @@ ${remediation}`,
|
|
|
153
157
|
waitUntil: "domcontentloaded",
|
|
154
158
|
timeout: resolveDiagnosticNavigationTimeoutMs(process.env, options.navigationTimeoutMs)
|
|
155
159
|
});
|
|
156
|
-
await assertWebGpuAdapterAvailable(page, requiresWebGpu);
|
|
160
|
+
await assertWebGpuAdapterAvailable(page, requiresWebGpu, softwareWebGpu);
|
|
157
161
|
const renderReadyTimedOut = !await waitForCompositionSettle(page, options);
|
|
158
162
|
return { browser: chromeBrowser, page, renderReadyTimedOut };
|
|
159
163
|
} catch (err) {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
downloadFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BHVFTYSI.js";
|
|
10
10
|
|
|
11
11
|
// src/background-removal/manager.ts
|
|
12
12
|
import { existsSync, mkdirSync } from "fs";
|
|
@@ -30,12 +30,24 @@ function isOptionalNumberArray(v) {
|
|
|
30
30
|
function isOptionalBoolean(v) {
|
|
31
31
|
return v === void 0 || typeof v === "boolean";
|
|
32
32
|
}
|
|
33
|
+
function isRecord(v) {
|
|
34
|
+
return typeof v === "object" && v !== null && !Array.isArray(v);
|
|
35
|
+
}
|
|
36
|
+
function isHotspotRegion(v) {
|
|
37
|
+
return isRecord(v) && [v["x"], v["y"], v["w"], v["h"]].every(
|
|
38
|
+
(coordinate) => typeof coordinate === "number" && Number.isFinite(coordinate)
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function isSlideHotspot(v) {
|
|
42
|
+
return isRecord(v) && typeof v["id"] === "string" && typeof v["label"] === "string" && typeof v["target"] === "string" && (v["region"] === void 0 || isHotspotRegion(v["region"]));
|
|
43
|
+
}
|
|
33
44
|
function isSlideRef(v) {
|
|
34
|
-
if (
|
|
45
|
+
if (!isRecord(v)) return false;
|
|
35
46
|
const r = v;
|
|
36
47
|
if (typeof r["sceneId"] !== "string") return false;
|
|
37
48
|
if (!isOptionalNumberArray(r["fragments"])) return false;
|
|
38
|
-
if (r["hotspots"] !== void 0 && !Array.isArray(r["hotspots"])
|
|
49
|
+
if (r["hotspots"] !== void 0 && (!Array.isArray(r["hotspots"]) || !r["hotspots"].every(isSlideHotspot)))
|
|
50
|
+
return false;
|
|
39
51
|
if (!isOptionalBoolean(r["autoplay"])) return false;
|
|
40
52
|
return true;
|
|
41
53
|
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
CliUsageError
|
|
9
|
+
} from "./chunk-PBN6GBJE.js";
|
|
10
|
+
import {
|
|
11
|
+
c
|
|
12
|
+
} from "./chunk-ZTZA4UWZ.js";
|
|
13
|
+
|
|
14
|
+
// src/utils/reject-unknown-flags.ts
|
|
15
|
+
var ALWAYS_KNOWN = /* @__PURE__ */ new Set(["help", "h", "version", "v", "json"]);
|
|
16
|
+
function nameVariants(name) {
|
|
17
|
+
const kebab = name.replace(/[A-Z]/g, (c2) => "-" + c2.toLowerCase());
|
|
18
|
+
const camel = name.replace(/-([a-z])/g, (_, c2) => c2.toUpperCase());
|
|
19
|
+
return [name, kebab, camel];
|
|
20
|
+
}
|
|
21
|
+
function* spellingsOf(name, def) {
|
|
22
|
+
yield* nameVariants(name);
|
|
23
|
+
const alias = def && "alias" in def ? def.alias : void 0;
|
|
24
|
+
if (typeof alias === "string") yield alias;
|
|
25
|
+
else if (Array.isArray(alias)) yield* alias;
|
|
26
|
+
}
|
|
27
|
+
function knownFlags(args) {
|
|
28
|
+
const known = new Set(ALWAYS_KNOWN);
|
|
29
|
+
for (const [name, def] of Object.entries(args ?? {})) {
|
|
30
|
+
for (const s of spellingsOf(name, def)) known.add(s);
|
|
31
|
+
}
|
|
32
|
+
return known;
|
|
33
|
+
}
|
|
34
|
+
function longFlagName(tok) {
|
|
35
|
+
const name = tok.slice(2).split("=")[0] ?? "";
|
|
36
|
+
return name.startsWith("no-") ? name.slice(3) : name;
|
|
37
|
+
}
|
|
38
|
+
function unknownFlagIn(tok, known) {
|
|
39
|
+
if (tok === "-" || !tok.startsWith("-")) return null;
|
|
40
|
+
if (tok.startsWith("--")) {
|
|
41
|
+
const name = longFlagName(tok);
|
|
42
|
+
return name && !known.has(name) ? `--${name}` : null;
|
|
43
|
+
}
|
|
44
|
+
for (const ch of tok.slice(1).split("=")[0] ?? "") {
|
|
45
|
+
if (!known.has(ch)) return `-${ch}`;
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
function assertKnownFlags(cmd, rawArgs) {
|
|
50
|
+
if (!Array.isArray(rawArgs)) return;
|
|
51
|
+
const rawDef = cmd.args;
|
|
52
|
+
const args = rawDef && typeof rawDef === "object" ? rawDef : void 0;
|
|
53
|
+
const known = knownFlags(args);
|
|
54
|
+
for (const tok of rawArgs) {
|
|
55
|
+
if (tok === "--") break;
|
|
56
|
+
const bad = unknownFlagIn(tok, known);
|
|
57
|
+
if (bad) throw new Error(`Unknown flag: ${bad}`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function stringValueFlagOwners(args, ignore) {
|
|
61
|
+
const owners = /* @__PURE__ */ new Map();
|
|
62
|
+
for (const [name, def] of Object.entries(args ?? {})) {
|
|
63
|
+
if (def?.type !== "string" && def?.type !== "enum") continue;
|
|
64
|
+
if (ignore?.has(name)) continue;
|
|
65
|
+
for (const s of spellingsOf(name, def)) owners.set(s, name);
|
|
66
|
+
}
|
|
67
|
+
return owners;
|
|
68
|
+
}
|
|
69
|
+
function ownableFlagSpelling(tok) {
|
|
70
|
+
if (tok.includes("=")) return null;
|
|
71
|
+
if (tok.startsWith("--")) return tok.slice(2);
|
|
72
|
+
if (tok.length === 2 && tok.startsWith("-")) return tok.slice(1);
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
var SWALLOW_REWRITE_FLAGS = {
|
|
76
|
+
check: /* @__PURE__ */ new Set(["frame-check"])
|
|
77
|
+
};
|
|
78
|
+
var SWALLOW_IGNORE_FLAGS = {
|
|
79
|
+
upgrade: /* @__PURE__ */ new Set(["project"])
|
|
80
|
+
};
|
|
81
|
+
function swallowedValueMessage(flagName, next, hint) {
|
|
82
|
+
if (next === "--")
|
|
83
|
+
return `Missing value for --${flagName}: "--" ends option parsing here; ${hint}`;
|
|
84
|
+
return `Missing value for --${flagName}: value "${next}" appears to have swallowed the next option; ${hint}`;
|
|
85
|
+
}
|
|
86
|
+
function swallowedFlagUsageError(flagName, next) {
|
|
87
|
+
const hint = `use --${flagName}= or move --${flagName} to the end`;
|
|
88
|
+
return new CliUsageError(swallowedValueMessage(flagName, next, hint));
|
|
89
|
+
}
|
|
90
|
+
function throwSwallowedFlagError(flagName, next) {
|
|
91
|
+
const hint = `pass one: --${flagName} <value> or --${flagName}=<value>`;
|
|
92
|
+
const message = swallowedValueMessage(flagName, next, hint);
|
|
93
|
+
console.error(c.error(message));
|
|
94
|
+
throw new CliUsageError(message, { presented: true });
|
|
95
|
+
}
|
|
96
|
+
function looksLikeSwallowedFlag(next, known) {
|
|
97
|
+
if (next === void 0 || next === "-") return false;
|
|
98
|
+
return next === "--" || next.startsWith("-") && unknownFlagIn(next, known) === null;
|
|
99
|
+
}
|
|
100
|
+
function swallowingArgName(tok, next, owners, known) {
|
|
101
|
+
const spelling = ownableFlagSpelling(tok);
|
|
102
|
+
const ownerArgName = spelling ? owners.get(spelling) : void 0;
|
|
103
|
+
return ownerArgName && looksLikeSwallowedFlag(next, known) ? ownerArgName : void 0;
|
|
104
|
+
}
|
|
105
|
+
function rewriteArgName(tok, after, owners, rewriteFlags) {
|
|
106
|
+
if (!after?.startsWith("--no-")) return void 0;
|
|
107
|
+
const spelling = ownableFlagSpelling(tok);
|
|
108
|
+
const name = spelling ? owners.get(spelling) : void 0;
|
|
109
|
+
return name && rewriteFlags?.has(name) ? name : void 0;
|
|
110
|
+
}
|
|
111
|
+
function guardSwallowedFlagValues(cmd, path, rawArgs) {
|
|
112
|
+
if (!Array.isArray(rawArgs)) return { rawArgs, rewritten: false };
|
|
113
|
+
const rawDef = cmd?.args;
|
|
114
|
+
const argsDef = rawDef && typeof rawDef === "object" ? rawDef : void 0;
|
|
115
|
+
const known = knownFlags(argsDef);
|
|
116
|
+
const owners = stringValueFlagOwners(argsDef, SWALLOW_IGNORE_FLAGS[path]);
|
|
117
|
+
const rewriteFlags = SWALLOW_REWRITE_FLAGS[path];
|
|
118
|
+
let out;
|
|
119
|
+
for (const [i, tok] of rawArgs.entries()) {
|
|
120
|
+
if (tok === "--") break;
|
|
121
|
+
const next = rawArgs.slice(i + 1).find((t) => !t.startsWith("--no-"));
|
|
122
|
+
const ownerArgName = swallowingArgName(tok, next, owners, known);
|
|
123
|
+
const rewrite = rewriteArgName(tok, rawArgs[i + 1], owners, rewriteFlags) ?? ownerArgName;
|
|
124
|
+
if (!rewrite) continue;
|
|
125
|
+
if (!rewriteFlags?.has(rewrite)) throwSwallowedFlagError(rewrite, next);
|
|
126
|
+
out ??= rawArgs.slice();
|
|
127
|
+
out[i] = `${tok}=`;
|
|
128
|
+
}
|
|
129
|
+
return { rawArgs: out ?? rawArgs, rewritten: out !== void 0 };
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export {
|
|
133
|
+
assertKnownFlags,
|
|
134
|
+
swallowedFlagUsageError,
|
|
135
|
+
guardSwallowedFlagValues
|
|
136
|
+
};
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-3DKN5WKL.js";
|
|
21
21
|
import {
|
|
22
22
|
runEnvironmentChecks
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DIRJ322I.js";
|
|
24
24
|
import {
|
|
25
25
|
getAvailableMemoryMb,
|
|
26
26
|
getFreeDiskMb,
|
|
@@ -32,18 +32,18 @@ import {
|
|
|
32
32
|
} from "./chunk-S3S4TGEH.js";
|
|
33
33
|
import {
|
|
34
34
|
resolveExtractCacheDir
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5VMR4WBS.js";
|
|
36
36
|
import {
|
|
37
37
|
getUpdateMeta,
|
|
38
38
|
withMeta
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-P6WH6QTV.js";
|
|
40
40
|
import {
|
|
41
41
|
CONFIG_PATH,
|
|
42
42
|
withFileLock
|
|
43
43
|
} from "./chunk-XUXGIA7H.js";
|
|
44
44
|
import {
|
|
45
45
|
VERSION
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-4OC7MQNB.js";
|
|
47
47
|
import {
|
|
48
48
|
normalizeErrorMessage
|
|
49
49
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -232,7 +232,7 @@ function checkEnvironment() {
|
|
|
232
232
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
233
233
|
}
|
|
234
234
|
async function checkWhisper() {
|
|
235
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
235
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-YKMHR6LN.js");
|
|
236
236
|
const result = findWhisper();
|
|
237
237
|
if (result) {
|
|
238
238
|
return { ok: true, detail: result.executablePath };
|