@higgsfield/video-editor-mcp 1.0.7 → 1.1.1-dev.0
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/THIRD_PARTY_NOTICES.md +24 -24
- package/dist/cli.mjs +134 -125
- package/dist/index.html +136 -133
- package/dist/launcher.mjs +90 -90
- package/dist/server.mjs +1553 -1389
- package/node_modules/@higgsfield/higgsedit/README.md +181 -1
- package/node_modules/@higgsfield/higgsedit/dist/capture-page.js +902 -314
- package/node_modules/@higgsfield/higgsedit/dist/chunk-2JYLVSVV.mjs +1594 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-2WKNH7OL.mjs +16 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-OMKZ5BXM.mjs → chunk-5LTTL3Q3.mjs} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/chunk-7PYXSJS7.mjs +717 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-MLJAIZGP.mjs → chunk-BH2QF635.mjs} +33 -326
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-WZR5PZM7.mjs → chunk-BV5COOQZ.mjs} +250 -161
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-HTCYVKFX.mjs → chunk-C3GSB3XZ.mjs} +8 -7
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-CYH2EUQV.mjs → chunk-DVN4LUXV.mjs} +13 -4
- package/node_modules/@higgsfield/higgsedit/dist/chunk-F4CMIG5G.mjs +36 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-IEPPEDEU.mjs +33 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-UVAZ6I6U.mjs → chunk-KIWGVAPJ.mjs} +16 -12
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-L6QDNSL3.mjs → chunk-L5LWBA6A.mjs} +5 -5
- package/node_modules/@higgsfield/higgsedit/dist/chunk-LMQR3DHT.mjs +37 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-LTKMGZ6T.mjs +58 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-VI6IV6JP.mjs → chunk-MV2JTTBQ.mjs} +65 -47
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-4D6AXU4B.mjs → chunk-NARTAWRN.mjs} +50 -30
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-27NBQ5FA.mjs → chunk-NUXTKQNM.mjs} +33 -21
- package/node_modules/@higgsfield/higgsedit/dist/chunk-OCIZ36XD.mjs +40 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-MK6PL7N4.mjs → chunk-OF6RMSM2.mjs} +19 -17
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-6BETMESC.mjs → chunk-P2BGHTRR.mjs} +2 -2
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-EKFC4S4M.mjs → chunk-PAHMD6SU.mjs} +5 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-QVLAEV3U.mjs → chunk-PFQYUJQL.mjs} +3 -4
- package/node_modules/@higgsfield/higgsedit/dist/chunk-QJTILFBS.mjs +335 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-QQ3GGKDN.mjs +21 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-TH7TK67K.mjs +23 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-SIMO6I3D.mjs → chunk-UDL5AHKO.mjs} +163 -158
- package/node_modules/@higgsfield/higgsedit/dist/chunk-UMWOUQN3.mjs +60 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-3AIM3THH.mjs → chunk-VLM5EOWJ.mjs} +4 -4
- package/node_modules/@higgsfield/higgsedit/dist/chunk-WENFTPXQ.mjs +403 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-YLVXQIPX.mjs +464 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/.vite/manifest.json +559 -506
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/agent-corner-bottom-q4hZltI-.svg +431 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/agent-corner-top-BJYI-I24.svg +431 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/confirmation-BTnwl3LS.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/drag-Bt_t4HZO.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/local-B3OTAV_A.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/menubar-2Y1Y2XJt.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/model-DdE4hCgf.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/{IconText1-CzbCrP7v.css → notifications-B08L1jSe.css} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/{panel-g852pZf_.css → panel-BRN_AbBM.css} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-CYELNqrv.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-DYLpT6oA.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-v84HaGTZ.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconChainLink1-Bxb1Or0F.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconCheckmark2Medium-daaES9uF.js → IconCheckmark2Medium-hegaz9mQ.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconChevronDownSmall-BhTBJk26.js → IconChevronDownSmall-DaruzJwU.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconClosedCaptioning-BPqcqKsD.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconCrossMedium-acfnCXOM.js → IconCrossMedium-BsPFJzc6.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconOpenaiFilled-D1fzthmi.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconPause-pTeVSvUe.js → IconPause-ClNg8pao.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconPlayFilled-CwdgIuDG.js → IconPlayFilled-CHb-7GSx.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconSparklesSoftFilled-o7o33KRn.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ai-composer-B9h-eaki.js +567 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/auto-layout-BO20Tg4B.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{button-CjG6GcgF.js → button-Cg0U0zpV.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/canvas-Bw4CVzfw.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/capabilities-BCd4-zPF.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/commands-QeSqAbCt.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/components-tXMtIZNL.js +51 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/confirmation-CO2PHR_z.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/dom-6aoQn29n.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/drag-Dw8b_vO2.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{editing-CjWbiCxv.js → editing-Cy-SaOyB.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edits-CqLBqir0.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/export-dialog-BjBskOe3.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/factories-Bw_iQrUL.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/id3-CSR0NCRI.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-DP49i4ke.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-error-CMz9sLPe.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ingest-DsmIc415.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/jsx-runtime-B5yqYJvp.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{media-Bwjxu-0U.js → media-DQw6vU_T.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/menubar-D31srALX.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/meters-D0nZVEJs.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/mode-DEG6doKF.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/model-Duf9fszJ.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/model-DyAkLA69.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/notifications-DqWZNIrK.js +9 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/palette-HT83gWgL.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-B5Mvm6dg.js +7 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-BC90wyvd.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Bw_ZJ2JI.js +3 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DNS060Nt.js +3 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DSgxIrEq.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DgBttE5O.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-assets-_T2bHsHW.js +771 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-inspector-DfHvAt5X.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-nBZvHlkA.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-timeline-DsCpJVSt.js +327 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-viewport-CEhZwZ67.js +280 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/projects-2_tW9Do7.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/react-dom-1uB7Vbbb.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/schemas-CddYAOcj.js +64 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/session-BpFeKAI2.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/src-BLG3tYBa.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/styles-e2n2A_JN.js +284 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/supercomputer-CuV0zYKd.js +24 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/tabs-XeAgs9cs.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/toggle-DbNEaSIl.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-C8Ll3qFl.js +69 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-bar-Dv1LPFbu.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useOpenInteractionType-HWSfSsp2.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useRenderElement-D4SOg3N_.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/value-EB7YmAdS.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/writeback-support-fj5rA9k3.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/editor-B-WAkLt7.js +372 -0
- package/node_modules/@higgsfield/higgsedit/dist/higgsedit.mjs +39 -24
- package/node_modules/@higgsfield/higgsedit/dist/jsx/hooks.d.ts +26 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/index.d.ts +17 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/inspect.d.ts +42 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/jsx-runtime.d.ts +28 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/svg.d.ts +9 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/time.d.ts +6 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/types.d.ts +420 -0
- package/node_modules/@higgsfield/higgsedit/package.json +28 -20
- package/package.json +4 -3
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/plugin/skills/video-editing/references/caption-titling.md +1 -1
- package/plugin/skills/video-editing/references/local-setup.md +3 -3
- package/node_modules/@higgsfield/higgsedit/dist/chunk-C6SASQHE.mjs +0 -424
- package/node_modules/@higgsfield/higgsedit/dist/chunk-FZ5U36SQ.mjs +0 -83
- package/node_modules/@higgsfield/higgsedit/dist/chunk-QLPCYN6K.mjs +0 -292
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/edit-drag-D2EV5ddd.css +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/editor-CuRHT75g.css +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-DnuQD7ja.css +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/FieldControl-B0fenhBJ.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconChainLink1-Cwv1X7hi.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconEyeOpen-BqTT9_VV.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconEyeSlash-Whv58c1m.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPencil-Dr17k_7e.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPlay-BroH3ziH.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPlusSmall-43T9aE3d.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconText1-BaP_p9DW.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconTrashCan-DX2w2AIC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ai-composer-C-l0eIdP.js +0 -560
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/captions-Cd-bDG3G.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/clip-highlight-DpAvcA4x.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/components-e3ZbUVns.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/disposables-CwUPjcuA.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/drag-HLBkto5o.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/dropdown-BJ04G_X3.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edit-drag-Bg6LggKC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edits-a2IixhrN.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/export-dialog-4I4gqI5V.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/face-tracker-DzVfjVOO.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/fit-imported-media-CaCB0x0b.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/generation-queue-DuL2F4-_.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-error-CMARA0Hy.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/jsx-runtime-B-hcVAMW.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/menubar-Bs26OdwP.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/meters-YEr9OQjq.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/paints-DS2Msf91.js +0 -67
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/palette-CcS9IcAC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-7M3uQokX.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-BBK1NyG-.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-CHZTs7By.js +0 -4
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DaSOa3MP.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DlK3RYVo.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Dst5OKWu.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-H_ZoDiKK.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Rn9Z7Eek.js +0 -3
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-assets-FAghGFG3.js +0 -678
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-inspector-DEqULBNF.js +0 -260
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-timeline-0GYNz1uc.js +0 -333
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-viewport-DOWjJi5-.js +0 -317
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/projects-BBJc7h5_.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/session-B9sZaFKC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/supercomputer-CX-LCL6Y.js +0 -24
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/tabs-CvKQ-eas.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/toggle-CrzrwiDZ.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-BgRfk-Qq.js +0 -69
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-bar-C9nqAfE2.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/typography-C5-w9LOu-kD3uLKkf.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useOpenInteractionType-DbrQ6Ehu.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useRenderElement-bbxXdYq0.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/writeback-support-BZfNpkmB.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/editor-Csn2_T_e.js +0 -293
- package/node_modules/@higgsfield/higgsedit/dist/export-settings.mjs +0 -75
- package/node_modules/@higgsfield/higgsedit/dist/history.mjs +0 -295
- package/node_modules/@higgsfield/higgsedit/dist/media-upload.mjs +0 -381
- package/node_modules/@higgsfield/higgsedit/dist/proxy.mjs +0 -170
|
@@ -4,6 +4,13 @@ import { fileURLToPath as __higgseditPath } from "node:url";
|
|
|
4
4
|
const require = __higgseditRequire(import.meta.url);
|
|
5
5
|
const __filename = __higgseditPath(import.meta.url);
|
|
6
6
|
const __dirname = __filename.slice(0, __filename.lastIndexOf("/"));
|
|
7
|
+
import {
|
|
8
|
+
inside,
|
|
9
|
+
readSources
|
|
10
|
+
} from "./chunk-LTKMGZ6T.mjs";
|
|
11
|
+
import {
|
|
12
|
+
requireTool
|
|
13
|
+
} from "./chunk-PAHMD6SU.mjs";
|
|
7
14
|
import {
|
|
8
15
|
Extra,
|
|
9
16
|
Hierarchy,
|
|
@@ -23,7 +30,7 @@ import {
|
|
|
23
30
|
syncLinks,
|
|
24
31
|
syncPair,
|
|
25
32
|
syncPlacement
|
|
26
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BV5COOQZ.mjs";
|
|
27
34
|
import {
|
|
28
35
|
$PROXY,
|
|
29
36
|
$TRACK,
|
|
@@ -58,9 +65,6 @@ import {
|
|
|
58
65
|
untrack,
|
|
59
66
|
useContext
|
|
60
67
|
} from "./chunk-F7YUKEI5.mjs";
|
|
61
|
-
import {
|
|
62
|
-
requireTool
|
|
63
|
-
} from "./chunk-EKFC4S4M.mjs";
|
|
64
68
|
import {
|
|
65
69
|
__commonJS,
|
|
66
70
|
__export,
|
|
@@ -29167,7 +29171,7 @@ var require_babel = __commonJS({
|
|
|
29167
29171
|
placeholders2.push({
|
|
29168
29172
|
name: name2,
|
|
29169
29173
|
type: type2,
|
|
29170
|
-
resolve: function
|
|
29174
|
+
resolve: function resolve2(ast) {
|
|
29171
29175
|
return resolveAncestors(ast, ancestors);
|
|
29172
29176
|
},
|
|
29173
29177
|
isDuplicate: placeholderNames.has(name2)
|
|
@@ -32471,8 +32475,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
32471
32475
|
}
|
|
32472
32476
|
};
|
|
32473
32477
|
_proto.dump = function dump() {
|
|
32474
|
-
var
|
|
32475
|
-
console.log(
|
|
32478
|
+
var sep2 = "-".repeat(60);
|
|
32479
|
+
console.log(sep2);
|
|
32476
32480
|
var scope2 = this;
|
|
32477
32481
|
do {
|
|
32478
32482
|
console.log("#", scope2.block.type);
|
|
@@ -32487,7 +32491,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
32487
32491
|
});
|
|
32488
32492
|
}
|
|
32489
32493
|
} while (scope2 = scope2.parent);
|
|
32490
|
-
console.log(
|
|
32494
|
+
console.log(sep2);
|
|
32491
32495
|
};
|
|
32492
32496
|
_proto.hasLabel = function hasLabel(name2) {
|
|
32493
32497
|
return !!this.getLabel(name2);
|
|
@@ -34605,7 +34609,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
34605
34609
|
intToChar[i$1] = c;
|
|
34606
34610
|
charToInt[c] = i$1;
|
|
34607
34611
|
}
|
|
34608
|
-
function decodeInteger(reader,
|
|
34612
|
+
function decodeInteger(reader, relative2) {
|
|
34609
34613
|
var value2 = 0;
|
|
34610
34614
|
var shift = 0;
|
|
34611
34615
|
var integer = 0;
|
|
@@ -34620,10 +34624,10 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
34620
34624
|
if (shouldNegate) {
|
|
34621
34625
|
value2 = -2147483648 | -value2;
|
|
34622
34626
|
}
|
|
34623
|
-
return
|
|
34627
|
+
return relative2 + value2;
|
|
34624
34628
|
}
|
|
34625
|
-
function encodeInteger(builder, num,
|
|
34626
|
-
var delta = num -
|
|
34629
|
+
function encodeInteger(builder, num, relative2) {
|
|
34630
|
+
var delta = num - relative2;
|
|
34627
34631
|
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
34628
34632
|
do {
|
|
34629
34633
|
var clamped = delta & 31;
|
|
@@ -35041,8 +35045,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
35041
35045
|
this.sources = sources;
|
|
35042
35046
|
this.sourcesContent = sourcesContent;
|
|
35043
35047
|
this.ignoreList = parsed2.ignoreList || parsed2.x_google_ignoreList || void 0;
|
|
35044
|
-
var
|
|
35045
|
-
this.resolvedSources = sources.map(
|
|
35048
|
+
var resolve2 = resolver(mapUrl, sourceRoot);
|
|
35049
|
+
this.resolvedSources = sources.map(resolve2);
|
|
35046
35050
|
var mappings2 = parsed2.mappings;
|
|
35047
35051
|
if (typeof mappings2 === "string") {
|
|
35048
35052
|
this._encoded = mappings2;
|
|
@@ -36880,16 +36884,16 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
36880
36884
|
function TSIntersectionType(node2) {
|
|
36881
36885
|
tsPrintUnionOrIntersectionType(this, node2, "&");
|
|
36882
36886
|
}
|
|
36883
|
-
function tsPrintUnionOrIntersectionType(printer, node2,
|
|
36887
|
+
function tsPrintUnionOrIntersectionType(printer, node2, sep2) {
|
|
36884
36888
|
var _printer$tokenMap;
|
|
36885
36889
|
var hasLeadingToken = 0;
|
|
36886
|
-
if ((_printer$tokenMap = printer.tokenMap) != null && _printer$tokenMap.startMatches(node2,
|
|
36890
|
+
if ((_printer$tokenMap = printer.tokenMap) != null && _printer$tokenMap.startMatches(node2, sep2)) {
|
|
36887
36891
|
hasLeadingToken = 1;
|
|
36888
|
-
printer.token(
|
|
36892
|
+
printer.token(sep2);
|
|
36889
36893
|
}
|
|
36890
36894
|
printer.printJoin(node2.types, void 0, void 0, function(i2) {
|
|
36891
36895
|
this.space();
|
|
36892
|
-
this.token(
|
|
36896
|
+
this.token(sep2, void 0, i2 + hasLeadingToken);
|
|
36893
36897
|
this.space();
|
|
36894
36898
|
});
|
|
36895
36899
|
}
|
|
@@ -46597,7 +46601,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
46597
46601
|
function isAbsolute2(path2) {
|
|
46598
46602
|
return path2.charAt(0) === "/";
|
|
46599
46603
|
}
|
|
46600
|
-
function
|
|
46604
|
+
function join3() {
|
|
46601
46605
|
var paths = Array.prototype.slice.call(arguments, 0);
|
|
46602
46606
|
return normalize$2(filter(paths, function(p, index2) {
|
|
46603
46607
|
if (typeof p !== "string") {
|
|
@@ -46606,7 +46610,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
46606
46610
|
return p;
|
|
46607
46611
|
}).join("/"));
|
|
46608
46612
|
}
|
|
46609
|
-
function
|
|
46613
|
+
function relative(from2, to) {
|
|
46610
46614
|
from2 = resolve$3(from2).substr(1);
|
|
46611
46615
|
to = resolve$3(to).substr(1);
|
|
46612
46616
|
function trim(arr) {
|
|
@@ -46666,8 +46670,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
46666
46670
|
dirname: dirname2,
|
|
46667
46671
|
sep: sep$1,
|
|
46668
46672
|
delimiter,
|
|
46669
|
-
relative
|
|
46670
|
-
join:
|
|
46673
|
+
relative,
|
|
46674
|
+
join: join3,
|
|
46671
46675
|
isAbsolute: isAbsolute2,
|
|
46672
46676
|
normalize: normalize$2,
|
|
46673
46677
|
resolve: resolve$3
|
|
@@ -46694,9 +46698,9 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
46694
46698
|
dirname: dirname2,
|
|
46695
46699
|
extname,
|
|
46696
46700
|
isAbsolute: isAbsolute2,
|
|
46697
|
-
join:
|
|
46701
|
+
join: join3,
|
|
46698
46702
|
normalize: normalize$2,
|
|
46699
|
-
relative
|
|
46703
|
+
relative,
|
|
46700
46704
|
resolve: resolve$3,
|
|
46701
46705
|
sep: sep$1
|
|
46702
46706
|
});
|
|
@@ -47762,11 +47766,11 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
47762
47766
|
return evaluateSync(item);
|
|
47763
47767
|
});
|
|
47764
47768
|
},
|
|
47765
|
-
async: function async(args,
|
|
47769
|
+
async: function async(args, resolve2, reject) {
|
|
47766
47770
|
var items = Array.from(args[0]);
|
|
47767
47771
|
if (items.length === 0) {
|
|
47768
47772
|
Promise.resolve().then(function() {
|
|
47769
|
-
return
|
|
47773
|
+
return resolve2([]);
|
|
47770
47774
|
});
|
|
47771
47775
|
return;
|
|
47772
47776
|
}
|
|
@@ -47778,7 +47782,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
47778
47782
|
evaluateAsync(item, function(val) {
|
|
47779
47783
|
results[i2] = val;
|
|
47780
47784
|
count += 1;
|
|
47781
|
-
if (count === results.length)
|
|
47785
|
+
if (count === results.length) resolve2(results);
|
|
47782
47786
|
}, reject);
|
|
47783
47787
|
});
|
|
47784
47788
|
}
|
|
@@ -47793,14 +47797,14 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
47793
47797
|
}
|
|
47794
47798
|
return evaluateSync(items[0]);
|
|
47795
47799
|
},
|
|
47796
|
-
async: function async(args,
|
|
47800
|
+
async: function async(args, resolve2, reject) {
|
|
47797
47801
|
var items = Array.from(args[0]);
|
|
47798
47802
|
if (items.length === 0) {
|
|
47799
47803
|
throw makeError("Must race at least 1 item", GENSYNC_RACE_NONEMPTY);
|
|
47800
47804
|
}
|
|
47801
47805
|
for (var _i3 = 0, _items = items; _i3 < _items.length; _i3++) {
|
|
47802
47806
|
var item = _items[_i3];
|
|
47803
|
-
evaluateAsync(item,
|
|
47807
|
+
evaluateAsync(item, resolve2, reject);
|
|
47804
47808
|
}
|
|
47805
47809
|
}
|
|
47806
47810
|
})
|
|
@@ -47818,8 +47822,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
47818
47822
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
47819
47823
|
args[_key2] = arguments[_key2];
|
|
47820
47824
|
}
|
|
47821
|
-
return new Promise(function(
|
|
47822
|
-
evaluateAsync(genFn.apply(_this, args),
|
|
47825
|
+
return new Promise(function(resolve2, reject) {
|
|
47826
|
+
evaluateAsync(genFn.apply(_this, args), resolve2, reject);
|
|
47823
47827
|
});
|
|
47824
47828
|
},
|
|
47825
47829
|
errback: function errback() {
|
|
@@ -47897,16 +47901,16 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
47897
47901
|
sync: function sync(args) {
|
|
47898
47902
|
return _sync.apply(this, args);
|
|
47899
47903
|
},
|
|
47900
|
-
async: function async(args,
|
|
47904
|
+
async: function async(args, resolve2, reject) {
|
|
47901
47905
|
if (_async) {
|
|
47902
|
-
_async.apply(this, args).then(
|
|
47906
|
+
_async.apply(this, args).then(resolve2, reject);
|
|
47903
47907
|
} else if (errback) {
|
|
47904
47908
|
errback.call.apply(errback, [this].concat(_toConsumableArray(args), [function(err, value2) {
|
|
47905
|
-
if (err == null)
|
|
47909
|
+
if (err == null) resolve2(value2);
|
|
47906
47910
|
else reject(err);
|
|
47907
47911
|
}]));
|
|
47908
47912
|
} else {
|
|
47909
|
-
|
|
47913
|
+
resolve2(_sync.apply(this, args));
|
|
47910
47914
|
}
|
|
47911
47915
|
}
|
|
47912
47916
|
});
|
|
@@ -47982,7 +47986,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
47982
47986
|
}
|
|
47983
47987
|
return value2;
|
|
47984
47988
|
}
|
|
47985
|
-
function evaluateAsync(gen,
|
|
47989
|
+
function evaluateAsync(gen, resolve2, reject) {
|
|
47986
47990
|
(function step() {
|
|
47987
47991
|
try {
|
|
47988
47992
|
var value2;
|
|
@@ -48010,7 +48014,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
48010
48014
|
_ret = _loop2();
|
|
48011
48015
|
if (_ret) return _ret.v;
|
|
48012
48016
|
}
|
|
48013
|
-
return
|
|
48017
|
+
return resolve2(value2);
|
|
48014
48018
|
} catch (err) {
|
|
48015
48019
|
return reject(err);
|
|
48016
48020
|
}
|
|
@@ -48217,7 +48221,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
48217
48221
|
var resultP;
|
|
48218
48222
|
var promiseReferenced = false;
|
|
48219
48223
|
return _regenerator().m(function _callee() {
|
|
48220
|
-
var
|
|
48224
|
+
var resolve2, reject, _t, _t2, _t3, _t4;
|
|
48221
48225
|
return _regenerator().w(function(_context) {
|
|
48222
48226
|
while (1) switch (_context.p = _context.n) {
|
|
48223
48227
|
case 0:
|
|
@@ -48262,7 +48266,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
48262
48266
|
break;
|
|
48263
48267
|
case 8:
|
|
48264
48268
|
resultP = new Promise(function(res, rej) {
|
|
48265
|
-
|
|
48269
|
+
resolve2 = res;
|
|
48266
48270
|
reject = rej;
|
|
48267
48271
|
});
|
|
48268
48272
|
_context.p = 9;
|
|
@@ -48274,7 +48278,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
48274
48278
|
value: _t3
|
|
48275
48279
|
};
|
|
48276
48280
|
resultP = null;
|
|
48277
|
-
if (promiseReferenced)
|
|
48281
|
+
if (promiseReferenced) resolve2(result.value);
|
|
48278
48282
|
_context.n = 12;
|
|
48279
48283
|
break;
|
|
48280
48284
|
case 11:
|
|
@@ -48638,8 +48642,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
48638
48642
|
this.released = false;
|
|
48639
48643
|
this.promise = void 0;
|
|
48640
48644
|
this._resolve = void 0;
|
|
48641
|
-
this.promise = new Promise(function(
|
|
48642
|
-
_this2._resolve =
|
|
48645
|
+
this.promise = new Promise(function(resolve2) {
|
|
48646
|
+
_this2._resolve = resolve2;
|
|
48643
48647
|
});
|
|
48644
48648
|
}
|
|
48645
48649
|
var _proto2 = Lock2.prototype;
|
|
@@ -53409,8 +53413,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
53409
53413
|
loadFeature: function loadFeature() {
|
|
53410
53414
|
throw new BrowserslistError$1("Supports queries are not available in client-side build of Browserslist");
|
|
53411
53415
|
},
|
|
53412
|
-
currentNode: function currentNode(
|
|
53413
|
-
return
|
|
53416
|
+
currentNode: function currentNode(resolve2, context) {
|
|
53417
|
+
return resolve2(["maintained node versions"], context)[0];
|
|
53414
53418
|
},
|
|
53415
53419
|
parseConfig: noop,
|
|
53416
53420
|
readConfig: noop,
|
|
@@ -57519,10 +57523,10 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
57519
57523
|
e.message += "\n- Maybe you meant to use\n" + ('"' + type2 + 's": [\n ["' + lastItem.file.request + '", ' + JSON.stringify(thisItem.value, void 0, 2) + "]\n]\n") + ("To be a valid " + type2 + ", its name and options should be wrapped in a pair of brackets");
|
|
57520
57524
|
}
|
|
57521
57525
|
}
|
|
57522
|
-
var
|
|
57523
|
-
var endSep = "(?:" +
|
|
57524
|
-
var substitution = "[^" +
|
|
57525
|
-
var starPat = "(?:" + substitution +
|
|
57526
|
+
var sep = "\\" + path$1.sep;
|
|
57527
|
+
var endSep = "(?:" + sep + "|$)";
|
|
57528
|
+
var substitution = "[^" + sep + "]+";
|
|
57529
|
+
var starPat = "(?:" + substitution + sep + ")";
|
|
57526
57530
|
var starPatLast = "(?:" + substitution + endSep + ")";
|
|
57527
57531
|
var starStarPat = starPat + "*?";
|
|
57528
57532
|
var starStarPatLast = starPat + "*?" + starPatLast + "?";
|
|
@@ -57536,9 +57540,9 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
57536
57540
|
if (part === "**") return last2 ? starStarPatLast : starStarPat;
|
|
57537
57541
|
if (part === "*") return last2 ? starPatLast : starPat;
|
|
57538
57542
|
if (part.startsWith("*.")) {
|
|
57539
|
-
return substitution + escapeRegExp(part.slice(1)) + (last2 ? endSep :
|
|
57543
|
+
return substitution + escapeRegExp(part.slice(1)) + (last2 ? endSep : sep);
|
|
57540
57544
|
}
|
|
57541
|
-
return escapeRegExp(part) + (last2 ? endSep :
|
|
57545
|
+
return escapeRegExp(part) + (last2 ? endSep : sep);
|
|
57542
57546
|
}))).join(""));
|
|
57543
57547
|
}
|
|
57544
57548
|
var ChainFormatter = {
|
|
@@ -87197,7 +87201,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
87197
87201
|
function has2(object2, key2) {
|
|
87198
87202
|
return Object.prototype.hasOwnProperty.call(object2, key2);
|
|
87199
87203
|
}
|
|
87200
|
-
function
|
|
87204
|
+
function resolve2(path2, resolved) {
|
|
87201
87205
|
if (resolved === void 0) {
|
|
87202
87206
|
resolved = /* @__PURE__ */ new Set();
|
|
87203
87207
|
}
|
|
@@ -87205,13 +87209,13 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
87205
87209
|
resolved.add(path2);
|
|
87206
87210
|
if (path2.isVariableDeclarator()) {
|
|
87207
87211
|
if (path2.get("id").isIdentifier()) {
|
|
87208
|
-
return
|
|
87212
|
+
return resolve2(path2.get("init"), resolved);
|
|
87209
87213
|
}
|
|
87210
87214
|
} else if (path2.isReferencedIdentifier()) {
|
|
87211
87215
|
var binding2 = path2.scope.getBinding(path2.node.name);
|
|
87212
87216
|
if (!binding2) return path2;
|
|
87213
87217
|
if (!binding2.constant) return;
|
|
87214
|
-
return
|
|
87218
|
+
return resolve2(binding2.path, resolved);
|
|
87215
87219
|
}
|
|
87216
87220
|
return path2;
|
|
87217
87221
|
}
|
|
@@ -87219,7 +87223,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
87219
87223
|
if (path2.isIdentifier() && !path2.scope.hasBinding(path2.node.name, true)) {
|
|
87220
87224
|
return path2.node.name;
|
|
87221
87225
|
}
|
|
87222
|
-
var resolved =
|
|
87226
|
+
var resolved = resolve2(path2);
|
|
87223
87227
|
if (resolved != null && resolved.isIdentifier()) {
|
|
87224
87228
|
return resolved.node.name;
|
|
87225
87229
|
}
|
|
@@ -87268,7 +87272,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
87268
87272
|
placement: "static"
|
|
87269
87273
|
};
|
|
87270
87274
|
}
|
|
87271
|
-
var path2 =
|
|
87275
|
+
var path2 = resolve2(obj);
|
|
87272
87276
|
switch (path2 == null ? void 0 : path2.type) {
|
|
87273
87277
|
case "RegExpLiteral":
|
|
87274
87278
|
return {
|
|
@@ -87754,8 +87758,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
87754
87758
|
dependencies$1.has = has2;
|
|
87755
87759
|
dependencies$1.laterLogMissing = laterLogMissing2;
|
|
87756
87760
|
dependencies$1.logMissing = logMissing2;
|
|
87757
|
-
dependencies$1.resolve =
|
|
87758
|
-
function
|
|
87761
|
+
dependencies$1.resolve = resolve2;
|
|
87762
|
+
function resolve2(dirname3, moduleName, absoluteImports) {
|
|
87759
87763
|
if (absoluteImports === false) return moduleName;
|
|
87760
87764
|
throw new Error('"absoluteImports" is not supported in bundles prepared for the browser.');
|
|
87761
87765
|
}
|
|
@@ -88150,7 +88154,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
88150
88154
|
var has2 = Function.call.bind(Object.hasOwnProperty);
|
|
88151
88155
|
lib$8["default"] = (0, _helperDefinePolyfillProvider["default"])(function(api, _ref22) {
|
|
88152
88156
|
var _ref2$presetEnvCompat = _ref22[presetEnvCompat2], _ref2$presetEnvCompat2 = _ref2$presetEnvCompat === void 0 ? {} : _ref2$presetEnvCompat, _ref2$presetEnvCompat3 = _ref2$presetEnvCompat2.entryInjectRegenerator, entryInjectRegenerator = _ref2$presetEnvCompat3 === void 0 ? false : _ref2$presetEnvCompat3, _ref2$presetEnvCompat4 = _ref2$presetEnvCompat2.noRuntimeName, noRuntimeName = _ref2$presetEnvCompat4 === void 0 ? false : _ref2$presetEnvCompat4, _ref2$runtimeCompat = _ref22[runtimeCompat2], _ref2$runtimeCompat2 = _ref2$runtimeCompat === void 0 ? {} : _ref2$runtimeCompat, _ref2$runtimeCompat2$ = _ref2$runtimeCompat2.useBabelRuntime, useBabelRuntime = _ref2$runtimeCompat2$ === void 0 ? false : _ref2$runtimeCompat2$, _ref2$runtimeCompat2$2 = _ref2$runtimeCompat2.runtimeVersion, runtimeVersion = _ref2$runtimeCompat2$2 === void 0 ? "" : _ref2$runtimeCompat2$2, _ref2$runtimeCompat2$3 = _ref2$runtimeCompat2.ext, ext = _ref2$runtimeCompat2$3 === void 0 ? ".js" : _ref2$runtimeCompat2$3;
|
|
88153
|
-
var
|
|
88157
|
+
var resolve2 = api.createMetaResolver({
|
|
88154
88158
|
global: _builtInDefinitions.BuiltIns,
|
|
88155
88159
|
"static": _builtInDefinitions.StaticProperties,
|
|
88156
88160
|
instance: _builtInDefinitions.InstanceProperties
|
|
@@ -88194,7 +88198,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
88194
88198
|
}
|
|
88195
88199
|
},
|
|
88196
88200
|
usageGlobal: function usageGlobal(meta, utils2) {
|
|
88197
|
-
var resolved =
|
|
88201
|
+
var resolved = resolve2(meta);
|
|
88198
88202
|
if (!resolved) return;
|
|
88199
88203
|
var deps = resolved.desc.global;
|
|
88200
88204
|
if (resolved.kind !== "global" && "object" in meta && meta.object && meta.placement === "prototype") {
|
|
@@ -88226,7 +88230,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
88226
88230
|
return;
|
|
88227
88231
|
}
|
|
88228
88232
|
}
|
|
88229
|
-
var resolved =
|
|
88233
|
+
var resolved = resolve2(meta);
|
|
88230
88234
|
if (!resolved) return;
|
|
88231
88235
|
var id = maybeInjectPure(resolved.desc, resolved.name, utils2);
|
|
88232
88236
|
if (id) path2.replaceWith(id);
|
|
@@ -120857,7 +120861,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
120857
120861
|
var isWebpack = babel.caller(function(caller) {
|
|
120858
120862
|
return (caller == null ? void 0 : caller.name) === "babel-loader";
|
|
120859
120863
|
});
|
|
120860
|
-
var
|
|
120864
|
+
var resolve2 = createMetaResolver2({
|
|
120861
120865
|
global: _builtInDefinitions.BuiltIns,
|
|
120862
120866
|
"static": _builtInDefinitions.StaticProperties,
|
|
120863
120867
|
instance: _builtInDefinitions.InstanceProperties
|
|
@@ -120945,7 +120949,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
120945
120949
|
path2.remove();
|
|
120946
120950
|
},
|
|
120947
120951
|
usageGlobal: function usageGlobal(meta, utils2, path2) {
|
|
120948
|
-
var resolved =
|
|
120952
|
+
var resolved = resolve2(meta);
|
|
120949
120953
|
if (!resolved) return;
|
|
120950
120954
|
if ((0, _usageFilters["default"])(resolved.desc, path2)) return;
|
|
120951
120955
|
var deps = resolved.desc.global;
|
|
@@ -120997,7 +121001,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
120997
121001
|
return;
|
|
120998
121002
|
}
|
|
120999
121003
|
}
|
|
121000
|
-
var resolved =
|
|
121004
|
+
var resolved = resolve2(meta);
|
|
121001
121005
|
if (!resolved) return;
|
|
121002
121006
|
if ((0, _usageFilters["default"])(resolved.desc, path2)) return;
|
|
121003
121007
|
if (useBabelRuntime && resolved.desc.pure && resolved.desc.pure.slice(-6) === "/index") {
|
|
@@ -125952,7 +125956,7 @@ This problem is likely caused by another plugin injecting
|
|
|
125952
125956
|
function has2(object2, key2) {
|
|
125953
125957
|
return Object.prototype.hasOwnProperty.call(object2, key2);
|
|
125954
125958
|
}
|
|
125955
|
-
function
|
|
125959
|
+
function resolve2(path2, resolved) {
|
|
125956
125960
|
if (resolved === void 0) {
|
|
125957
125961
|
resolved = /* @__PURE__ */ new Set();
|
|
125958
125962
|
}
|
|
@@ -125960,13 +125964,13 @@ This problem is likely caused by another plugin injecting
|
|
|
125960
125964
|
resolved.add(path2);
|
|
125961
125965
|
if (path2.isVariableDeclarator()) {
|
|
125962
125966
|
if (path2.get("id").isIdentifier()) {
|
|
125963
|
-
return
|
|
125967
|
+
return resolve2(path2.get("init"), resolved);
|
|
125964
125968
|
}
|
|
125965
125969
|
} else if (path2.isReferencedIdentifier()) {
|
|
125966
125970
|
var binding2 = path2.scope.getBinding(path2.node.name);
|
|
125967
125971
|
if (!binding2) return path2;
|
|
125968
125972
|
if (!binding2.constant) return;
|
|
125969
|
-
return
|
|
125973
|
+
return resolve2(binding2.path, resolved);
|
|
125970
125974
|
}
|
|
125971
125975
|
return path2;
|
|
125972
125976
|
}
|
|
@@ -125974,7 +125978,7 @@ This problem is likely caused by another plugin injecting
|
|
|
125974
125978
|
if (path2.isIdentifier() && !path2.scope.hasBinding(path2.node.name, true)) {
|
|
125975
125979
|
return path2.node.name;
|
|
125976
125980
|
}
|
|
125977
|
-
var resolved =
|
|
125981
|
+
var resolved = resolve2(path2);
|
|
125978
125982
|
if (resolved != null && resolved.isIdentifier()) {
|
|
125979
125983
|
return resolved.node.name;
|
|
125980
125984
|
}
|
|
@@ -126023,7 +126027,7 @@ This problem is likely caused by another plugin injecting
|
|
|
126023
126027
|
placement: "static"
|
|
126024
126028
|
};
|
|
126025
126029
|
}
|
|
126026
|
-
var path2 =
|
|
126030
|
+
var path2 = resolve2(obj);
|
|
126027
126031
|
switch (path2 == null ? void 0 : path2.type) {
|
|
126028
126032
|
case "RegExpLiteral":
|
|
126029
126033
|
return {
|
|
@@ -126509,8 +126513,8 @@ This problem is likely caused by another plugin injecting
|
|
|
126509
126513
|
dependencies.has = has2;
|
|
126510
126514
|
dependencies.laterLogMissing = laterLogMissing2;
|
|
126511
126515
|
dependencies.logMissing = logMissing2;
|
|
126512
|
-
dependencies.resolve =
|
|
126513
|
-
function
|
|
126516
|
+
dependencies.resolve = resolve2;
|
|
126517
|
+
function resolve2(dirname3, moduleName, absoluteImports) {
|
|
126514
126518
|
if (absoluteImports === false) return moduleName;
|
|
126515
126519
|
throw new Error('"absoluteImports" is not supported in bundles prepared for the browser.');
|
|
126516
126520
|
}
|
|
@@ -126905,7 +126909,7 @@ This problem is likely caused by another plugin injecting
|
|
|
126905
126909
|
var has2 = Function.call.bind(Object.hasOwnProperty);
|
|
126906
126910
|
lib$2["default"] = (0, _helperDefinePolyfillProvider["default"])(function(api, _ref22) {
|
|
126907
126911
|
var _ref2$presetEnvCompat = _ref22[presetEnvCompat2], _ref2$presetEnvCompat2 = _ref2$presetEnvCompat === void 0 ? {} : _ref2$presetEnvCompat, _ref2$presetEnvCompat3 = _ref2$presetEnvCompat2.entryInjectRegenerator, entryInjectRegenerator = _ref2$presetEnvCompat3 === void 0 ? false : _ref2$presetEnvCompat3, _ref2$presetEnvCompat4 = _ref2$presetEnvCompat2.noRuntimeName, noRuntimeName = _ref2$presetEnvCompat4 === void 0 ? false : _ref2$presetEnvCompat4, _ref2$runtimeCompat = _ref22[runtimeCompat2], _ref2$runtimeCompat2 = _ref2$runtimeCompat === void 0 ? {} : _ref2$runtimeCompat, _ref2$runtimeCompat2$ = _ref2$runtimeCompat2.useBabelRuntime, useBabelRuntime = _ref2$runtimeCompat2$ === void 0 ? false : _ref2$runtimeCompat2$, _ref2$runtimeCompat2$2 = _ref2$runtimeCompat2.runtimeVersion, runtimeVersion = _ref2$runtimeCompat2$2 === void 0 ? "" : _ref2$runtimeCompat2$2, _ref2$runtimeCompat2$3 = _ref2$runtimeCompat2.ext, ext = _ref2$runtimeCompat2$3 === void 0 ? ".js" : _ref2$runtimeCompat2$3;
|
|
126908
|
-
var
|
|
126912
|
+
var resolve2 = api.createMetaResolver({
|
|
126909
126913
|
global: _builtInDefinitions.BuiltIns,
|
|
126910
126914
|
"static": _builtInDefinitions.StaticProperties,
|
|
126911
126915
|
instance: _builtInDefinitions.InstanceProperties
|
|
@@ -126949,7 +126953,7 @@ This problem is likely caused by another plugin injecting
|
|
|
126949
126953
|
}
|
|
126950
126954
|
},
|
|
126951
126955
|
usageGlobal: function usageGlobal(meta, utils2) {
|
|
126952
|
-
var resolved =
|
|
126956
|
+
var resolved = resolve2(meta);
|
|
126953
126957
|
if (!resolved) return;
|
|
126954
126958
|
var deps = resolved.desc.global;
|
|
126955
126959
|
if (resolved.kind !== "global" && "object" in meta && meta.object && meta.placement === "prototype") {
|
|
@@ -126981,7 +126985,7 @@ This problem is likely caused by another plugin injecting
|
|
|
126981
126985
|
return;
|
|
126982
126986
|
}
|
|
126983
126987
|
}
|
|
126984
|
-
var resolved =
|
|
126988
|
+
var resolved = resolve2(meta);
|
|
126985
126989
|
if (!resolved) return;
|
|
126986
126990
|
var id = maybeInjectPure(resolved.desc, resolved.name, utils2);
|
|
126987
126991
|
if (id) path2.replaceWith(id);
|
|
@@ -127860,7 +127864,7 @@ This problem is likely caused by another plugin injecting
|
|
|
127860
127864
|
}
|
|
127861
127865
|
};
|
|
127862
127866
|
};
|
|
127863
|
-
function
|
|
127867
|
+
function resolve(dirname3, moduleName, absoluteImports) {
|
|
127864
127868
|
if (absoluteImports === false) return moduleName;
|
|
127865
127869
|
throw new Error('"absoluteImports" is not supported in bundles prepared for the browser.');
|
|
127866
127870
|
}
|
|
@@ -127964,7 +127968,7 @@ This problem is likely caused by another plugin injecting
|
|
|
127964
127968
|
var polyfillsNames;
|
|
127965
127969
|
var filterPolyfills;
|
|
127966
127970
|
var getUtils = createUtilsGetter(new ImportsCachedInjector(function(moduleName) {
|
|
127967
|
-
return
|
|
127971
|
+
return resolve(dirname3, moduleName, absoluteImports);
|
|
127968
127972
|
}, function(name2) {
|
|
127969
127973
|
var _polyfillsNames$get, _polyfillsNames;
|
|
127970
127974
|
return (_polyfillsNames$get = (_polyfillsNames = polyfillsNames) == null ? void 0 : _polyfillsNames.get(name2)) != null ? _polyfillsNames$get : Infinity;
|
|
@@ -128687,7 +128691,7 @@ This problem is likely caused by another plugin injecting
|
|
|
128687
128691
|
var isWebpack = babel.caller(function(caller) {
|
|
128688
128692
|
return (caller == null ? void 0 : caller.name) === "babel-loader";
|
|
128689
128693
|
});
|
|
128690
|
-
var
|
|
128694
|
+
var resolve2 = createMetaResolver2({
|
|
128691
128695
|
global: BuiltIns,
|
|
128692
128696
|
"static": StaticProperties,
|
|
128693
128697
|
instance: InstanceProperties
|
|
@@ -128775,7 +128779,7 @@ This problem is likely caused by another plugin injecting
|
|
|
128775
128779
|
path2.remove();
|
|
128776
128780
|
},
|
|
128777
128781
|
usageGlobal: function usageGlobal(meta, utils2, path2) {
|
|
128778
|
-
var resolved =
|
|
128782
|
+
var resolved = resolve2(meta);
|
|
128779
128783
|
if (!resolved) return;
|
|
128780
128784
|
if (canSkipPolyfill(resolved.desc, path2)) return;
|
|
128781
128785
|
var deps = resolved.desc.global;
|
|
@@ -128827,7 +128831,7 @@ This problem is likely caused by another plugin injecting
|
|
|
128827
128831
|
return;
|
|
128828
128832
|
}
|
|
128829
128833
|
}
|
|
128830
|
-
var resolved =
|
|
128834
|
+
var resolved = resolve2(meta);
|
|
128831
128835
|
if (!resolved) return;
|
|
128832
128836
|
if (canSkipPolyfill(resolved.desc, path2)) return;
|
|
128833
128837
|
if (useBabelRuntime && resolved.desc.pure && resolved.desc.pure.slice(-6) === "/index") {
|
|
@@ -129840,9 +129844,9 @@ var require_lib = __commonJS({
|
|
|
129840
129844
|
}
|
|
129841
129845
|
});
|
|
129842
129846
|
|
|
129843
|
-
// ../../node_modules/.pnpm/@babel+plugin-syntax-jsx@7.29.7_@babel+core@7.29.7/node_modules/@babel/plugin-syntax-jsx/lib/index.js
|
|
129847
|
+
// ../../node_modules/.pnpm/@babel+plugin-syntax-jsx@7.29.7_@babel+core@7.29.7_supports-color@7.2.0_/node_modules/@babel/plugin-syntax-jsx/lib/index.js
|
|
129844
129848
|
var require_lib2 = __commonJS({
|
|
129845
|
-
"../../node_modules/.pnpm/@babel+plugin-syntax-jsx@7.29.7_@babel+core@7.29.7/node_modules/@babel/plugin-syntax-jsx/lib/index.js"(exports) {
|
|
129849
|
+
"../../node_modules/.pnpm/@babel+plugin-syntax-jsx@7.29.7_@babel+core@7.29.7_supports-color@7.2.0_/node_modules/@babel/plugin-syntax-jsx/lib/index.js"(exports) {
|
|
129846
129850
|
"use strict";
|
|
129847
129851
|
Object.defineProperty(exports, "__esModule", {
|
|
129848
129852
|
value: true
|
|
@@ -152864,9 +152868,9 @@ var require_cjs = __commonJS({
|
|
|
152864
152868
|
}
|
|
152865
152869
|
});
|
|
152866
152870
|
|
|
152867
|
-
// ../../node_modules/.pnpm/babel-plugin-jsx-dom-expressions@0.40.11_@babel+core@7.29.7/node_modules/babel-plugin-jsx-dom-expressions/index.js
|
|
152871
|
+
// ../../node_modules/.pnpm/babel-plugin-jsx-dom-expressions@0.40.11_@babel+core@7.29.7_supports-color@7.2.0_/node_modules/babel-plugin-jsx-dom-expressions/index.js
|
|
152868
152872
|
var require_babel_plugin_jsx_dom_expressions = __commonJS({
|
|
152869
|
-
"../../node_modules/.pnpm/babel-plugin-jsx-dom-expressions@0.40.11_@babel+core@7.29.7/node_modules/babel-plugin-jsx-dom-expressions/index.js"(exports, module) {
|
|
152873
|
+
"../../node_modules/.pnpm/babel-plugin-jsx-dom-expressions@0.40.11_@babel+core@7.29.7_supports-color@7.2.0_/node_modules/babel-plugin-jsx-dom-expressions/index.js"(exports, module) {
|
|
152870
152874
|
"use strict";
|
|
152871
152875
|
var SyntaxJSX = require_lib2();
|
|
152872
152876
|
var t2 = require_lib5();
|
|
@@ -156366,9 +156370,9 @@ ${filename}
|
|
|
156366
156370
|
}
|
|
156367
156371
|
});
|
|
156368
156372
|
|
|
156369
|
-
// ../../node_modules/.pnpm/babel-preset-solid@1.9.16_@babel+core@7.29.
|
|
156373
|
+
// ../../node_modules/.pnpm/babel-preset-solid@1.9.16_@babel+core@7.29.7_supports-color@7.2.0__solid-js@1.9.16/node_modules/babel-preset-solid/index.js
|
|
156370
156374
|
var require_babel_preset_solid = __commonJS({
|
|
156371
|
-
"../../node_modules/.pnpm/babel-preset-solid@1.9.16_@babel+core@7.29.
|
|
156375
|
+
"../../node_modules/.pnpm/babel-preset-solid@1.9.16_@babel+core@7.29.7_supports-color@7.2.0__solid-js@1.9.16/node_modules/babel-preset-solid/index.js"(exports, module) {
|
|
156372
156376
|
var jsxTransform = require_babel_plugin_jsx_dom_expressions();
|
|
156373
156377
|
module.exports = function(context, options = {}) {
|
|
156374
156378
|
const plugins = [
|
|
@@ -156404,48 +156408,6 @@ var require_babel_preset_solid = __commonJS({
|
|
|
156404
156408
|
}
|
|
156405
156409
|
});
|
|
156406
156410
|
|
|
156407
|
-
// src/project.ts
|
|
156408
|
-
import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
|
|
156409
|
-
import { join, relative, resolve, sep } from "node:path";
|
|
156410
|
-
var SOURCE = /\.(tsx|ts|jsx|js)$/;
|
|
156411
|
-
var SKIP = /* @__PURE__ */ new Set(["node_modules", "media", "renders", "dist"]);
|
|
156412
|
-
function sourceFiles(dir, sub = "") {
|
|
156413
|
-
const out = [];
|
|
156414
|
-
for (const entry of readdirSync(join(dir, sub), { withFileTypes: true })) {
|
|
156415
|
-
if (entry.name.startsWith(".") || SKIP.has(entry.name)) continue;
|
|
156416
|
-
const rel = sub ? `${sub}/${entry.name}` : entry.name;
|
|
156417
|
-
if (entry.isDirectory()) out.push(...sourceFiles(dir, rel));
|
|
156418
|
-
else if (SOURCE.test(entry.name) && !entry.name.endsWith(".d.ts")) out.push(rel);
|
|
156419
|
-
}
|
|
156420
|
-
return out.toSorted();
|
|
156421
|
-
}
|
|
156422
|
-
var FONT = /\.(ttf|otf|woff2?)$/i;
|
|
156423
|
-
var SKIP_FONTS = /* @__PURE__ */ new Set(["node_modules", "renders", "dist"]);
|
|
156424
|
-
function fontFiles(dir, sub = "") {
|
|
156425
|
-
const out = [];
|
|
156426
|
-
for (const entry of readdirSync(join(dir, sub), { withFileTypes: true })) {
|
|
156427
|
-
if (entry.name.startsWith(".") || SKIP_FONTS.has(entry.name)) continue;
|
|
156428
|
-
const rel = sub ? `${sub}/${entry.name}` : entry.name;
|
|
156429
|
-
if (entry.isDirectory()) out.push(...fontFiles(dir, rel));
|
|
156430
|
-
else if (FONT.test(entry.name)) out.push(rel);
|
|
156431
|
-
}
|
|
156432
|
-
return out.toSorted();
|
|
156433
|
-
}
|
|
156434
|
-
function readSources(dir) {
|
|
156435
|
-
return Object.fromEntries(sourceFiles(dir).map((f) => [f, readFileSync(join(dir, f), "utf8")]));
|
|
156436
|
-
}
|
|
156437
|
-
function inside(dir, rel) {
|
|
156438
|
-
const root = resolve(dir);
|
|
156439
|
-
const target = resolve(root, rel.replace(/^\/+/, ""));
|
|
156440
|
-
if (target !== root && !target.startsWith(root + sep)) return void 0;
|
|
156441
|
-
return target;
|
|
156442
|
-
}
|
|
156443
|
-
function assertProject(dir) {
|
|
156444
|
-
const root = resolve(dir);
|
|
156445
|
-
if (!existsSync(root) || !statSync(root).isDirectory()) throw new Error(`${dir} is not a directory`);
|
|
156446
|
-
return root;
|
|
156447
|
-
}
|
|
156448
|
-
|
|
156449
156411
|
// ../../packages/reconciler/src/loader.ts
|
|
156450
156412
|
var ENTRY_CANDIDATES = ["index.tsx", "index.jsx", "index.ts", "project.tsx"];
|
|
156451
156413
|
var EXTENSIONS = ["", ".tsx", ".ts", ".jsx", ".js", "/index.tsx", "/index.ts", "/index.jsx", "/index.js"];
|
|
@@ -156463,7 +156425,7 @@ function findEntry(files) {
|
|
|
156463
156425
|
const set = new Set(files);
|
|
156464
156426
|
return ENTRY_CANDIDATES.find((c) => set.has(c));
|
|
156465
156427
|
}
|
|
156466
|
-
var isHostModule = (specifier) => /^(solid-js|@higgsfield
|
|
156428
|
+
var isHostModule = (specifier) => /^(solid-js|@higgsfield\/higgsedit\/jsx)(\/|$)/.test(specifier);
|
|
156467
156429
|
var packageName = (specifier) => specifier.split("/").slice(0, specifier.startsWith("@") ? 2 : 1).join("/");
|
|
156468
156430
|
function packageModules(code, externals) {
|
|
156469
156431
|
if (!code) return {};
|
|
@@ -156476,7 +156438,7 @@ function packageModules(code, externals) {
|
|
|
156476
156438
|
//# sourceURL=higgsedit-project/node_modules.js`)(require2, module, module.exports);
|
|
156477
156439
|
return module.exports;
|
|
156478
156440
|
}
|
|
156479
|
-
function evaluateProject(modules, externals, entry = findEntry(Object.keys(modules))) {
|
|
156441
|
+
function evaluateProject(modules, externals, entry = findEntry(Object.keys(modules)), options = {}) {
|
|
156480
156442
|
if (!entry || !(entry in modules)) {
|
|
156481
156443
|
throw new Error(`project has no entry file (expected one of ${ENTRY_CANDIDATES.join(", ")})`);
|
|
156482
156444
|
}
|
|
@@ -156487,6 +156449,8 @@ function evaluateProject(modules, externals, entry = findEntry(Object.keys(modul
|
|
|
156487
156449
|
const module = { exports: {} };
|
|
156488
156450
|
cache2.set(file, module);
|
|
156489
156451
|
const require2 = (specifier) => {
|
|
156452
|
+
const made = options.perFile?.[specifier];
|
|
156453
|
+
if (made) return made(file);
|
|
156490
156454
|
if (specifier in externals) return externals[specifier];
|
|
156491
156455
|
if (!specifier.startsWith(".")) {
|
|
156492
156456
|
if (isHostModule(specifier)) throw new Error(`${file}: cannot import "${specifier}" (available: ${Object.keys(externals).join(", ")}, or relative files)`);
|
|
@@ -156495,6 +156459,11 @@ function evaluateProject(modules, externals, entry = findEntry(Object.keys(modul
|
|
|
156495
156459
|
const base = normalize(`${dirname(file)}/${specifier}`);
|
|
156496
156460
|
const target = EXTENSIONS.map((ext) => base + ext).find((candidate) => candidate in modules);
|
|
156497
156461
|
if (!target) throw new Error(`${file}: cannot resolve "${specifier}"`);
|
|
156462
|
+
if (options.imports) {
|
|
156463
|
+
const list = options.imports.get(file) ?? /* @__PURE__ */ new Set();
|
|
156464
|
+
list.add(target);
|
|
156465
|
+
options.imports.set(file, list);
|
|
156466
|
+
}
|
|
156498
156467
|
return load(target);
|
|
156499
156468
|
};
|
|
156500
156469
|
const run2 = (0, eval)(`(function (require, module, exports) {${modules[file]}
|
|
@@ -157064,6 +157033,11 @@ var ProjectDocument = class {
|
|
|
157064
157033
|
nodes = /* @__PURE__ */ new Map();
|
|
157065
157034
|
keyCounts = /* @__PURE__ */ new Map();
|
|
157066
157035
|
world;
|
|
157036
|
+
/** Scope paths whose clocks stand still: the editor shows them from a cached render (live mode only). */
|
|
157037
|
+
frozen;
|
|
157038
|
+
setFrozenScopes;
|
|
157039
|
+
/** Props of every component instance that opened a scope, by scope path ("a/b"). */
|
|
157040
|
+
scopes = /* @__PURE__ */ new Map();
|
|
157067
157041
|
/** Scope of the component currently rendering, read when an element is created. */
|
|
157068
157042
|
scopeOf = () => [];
|
|
157069
157043
|
/** Where a relative `src` in HTML content (an `<img>`) points: the project's media URL. */
|
|
@@ -157077,6 +157051,17 @@ var ProjectDocument = class {
|
|
|
157077
157051
|
});
|
|
157078
157052
|
this.tick = tick;
|
|
157079
157053
|
this.setTick = setTick;
|
|
157054
|
+
const [frozen, setFrozen] = createSignal(/* @__PURE__ */ new Set(), { equals: (a, b) => a.size === b.size && [...a].every((x) => b.has(x)) });
|
|
157055
|
+
this.frozen = frozen;
|
|
157056
|
+
this.setFrozenScopes = setFrozen;
|
|
157057
|
+
}
|
|
157058
|
+
/**
|
|
157059
|
+
* Stops the clocks (`useTicker`, `useLocalTime`) of components inside `scopes` (scope paths), so their effects
|
|
157060
|
+
* stop repainting what the editor draws from a cached render; thawing catches them up. Never in capture.
|
|
157061
|
+
*/
|
|
157062
|
+
setFrozen(scopes) {
|
|
157063
|
+
if (this.mode === "capture") return;
|
|
157064
|
+
this.setFrozenScopes(new Set(scopes));
|
|
157080
157065
|
}
|
|
157081
157066
|
hold(work) {
|
|
157082
157067
|
if (this.mode !== "capture") return;
|
|
@@ -157118,6 +157103,10 @@ var ProjectDocument = class {
|
|
|
157118
157103
|
if (getOwner()) onCleanup(() => this.disposeElement(node));
|
|
157119
157104
|
return node;
|
|
157120
157105
|
}
|
|
157106
|
+
/** Records the project module whose JSX created `node`. */
|
|
157107
|
+
noteFile(node, file) {
|
|
157108
|
+
node.entity.get(Node).file = file;
|
|
157109
|
+
}
|
|
157121
157110
|
createTextNode(value2) {
|
|
157122
157111
|
return { kind: "text", value: value2, parent: null };
|
|
157123
157112
|
}
|
|
@@ -157288,7 +157277,7 @@ function sizeCanvas(canvas, name, value2) {
|
|
|
157288
157277
|
}
|
|
157289
157278
|
|
|
157290
157279
|
// ../../packages/reconciler/src/inspect.ts
|
|
157291
|
-
var INSPECT_MODULE = "@higgsfield
|
|
157280
|
+
var INSPECT_MODULE = "@higgsfield/higgsedit/jsx/inspect";
|
|
157292
157281
|
var SOURCE_VALUES = { inspected: (_declaration, initial) => initial };
|
|
157293
157282
|
|
|
157294
157283
|
// ../../packages/reconciler/src/renderer.ts
|
|
@@ -157296,6 +157285,7 @@ var renderer_exports = {};
|
|
|
157296
157285
|
__export(renderer_exports, {
|
|
157297
157286
|
createComponent: () => createComponent2,
|
|
157298
157287
|
createElement: () => createElement,
|
|
157288
|
+
createElementIn: () => createElementIn,
|
|
157299
157289
|
createTextNode: () => createTextNode,
|
|
157300
157290
|
currentScope: () => currentScope,
|
|
157301
157291
|
effect: () => effect,
|
|
@@ -157567,6 +157557,11 @@ var renderer = createRenderer({
|
|
|
157567
157557
|
getNextSibling: (node) => doc().getNextSibling(node)
|
|
157568
157558
|
});
|
|
157569
157559
|
var { render, effect, memo: memo2, createElement, createTextNode, insertNode, insert, spread, setProp, mergeProps: mergeProps2, use } = renderer;
|
|
157560
|
+
function createElementIn(file, tag) {
|
|
157561
|
+
const node = createElement(tag);
|
|
157562
|
+
if ("entity" in node) doc().noteFile(node, file);
|
|
157563
|
+
return node;
|
|
157564
|
+
}
|
|
157570
157565
|
var BUILTINS = /* @__PURE__ */ new Set();
|
|
157571
157566
|
function registerBuiltins(components) {
|
|
157572
157567
|
for (const c of components) BUILTINS.add(c);
|
|
@@ -157575,6 +157570,7 @@ function createComponent2(component, props) {
|
|
|
157575
157570
|
const id = BUILTINS.has(component) ? void 0 : untrack(() => props.id);
|
|
157576
157571
|
if (typeof id !== "string") return createComponent(component, props);
|
|
157577
157572
|
const parent = useContext(ScopeContext);
|
|
157573
|
+
doc().scopes.set([...parent, id].join("/"), props);
|
|
157578
157574
|
return createComponent(ScopeContext.Provider, {
|
|
157579
157575
|
value: [...parent, id],
|
|
157580
157576
|
get children() {
|
|
@@ -157585,20 +157581,34 @@ function createComponent2(component, props) {
|
|
|
157585
157581
|
function currentScope() {
|
|
157586
157582
|
return useContext(ScopeContext);
|
|
157587
157583
|
}
|
|
157584
|
+
function frozenHere(document2) {
|
|
157585
|
+
const scope = useContext(ScopeContext).join("/");
|
|
157586
|
+
if (!scope) return () => false;
|
|
157587
|
+
return createMemo(() => {
|
|
157588
|
+
for (const s of document2.frozen()) if (scope === s || scope.startsWith(`${s}/`)) return true;
|
|
157589
|
+
return false;
|
|
157590
|
+
});
|
|
157591
|
+
}
|
|
157592
|
+
function clock(document2, frozen, read) {
|
|
157593
|
+
return createMemo((prev) => prev !== void 0 && frozen() ? prev : read(document2.tick()), void 0);
|
|
157594
|
+
}
|
|
157588
157595
|
function useTicker() {
|
|
157589
157596
|
const document2 = doc();
|
|
157590
|
-
const
|
|
157597
|
+
const frozen = frozenHere(document2);
|
|
157591
157598
|
return {
|
|
157592
|
-
time:
|
|
157593
|
-
frame:
|
|
157594
|
-
delta:
|
|
157595
|
-
playing:
|
|
157599
|
+
time: clock(document2, frozen, (t2) => t2.time),
|
|
157600
|
+
frame: clock(document2, frozen, (t2) => t2.frame),
|
|
157601
|
+
delta: clock(document2, frozen, (t2) => t2.delta),
|
|
157602
|
+
playing: clock(document2, frozen, (t2) => t2.playing),
|
|
157596
157603
|
hold: (work) => document2.hold(work)
|
|
157597
157604
|
};
|
|
157598
157605
|
}
|
|
157599
157606
|
function useLocalTime(id) {
|
|
157600
|
-
const
|
|
157601
|
-
|
|
157607
|
+
const document2 = doc();
|
|
157608
|
+
const { world, tick } = document2;
|
|
157609
|
+
const frozen = frozenHere(document2);
|
|
157610
|
+
return createMemo((prev) => {
|
|
157611
|
+
if (prev !== void 0 && frozen()) return prev;
|
|
157602
157612
|
const time = tick().time;
|
|
157603
157613
|
const entity = findByKey(world, id) ?? world.query(Node).find((e) => e.get(Node).id === id);
|
|
157604
157614
|
if (!entity) throw new Error(`useLocalTime("${id}"): no element has id "${id}"`);
|
|
@@ -157637,8 +157647,8 @@ var JSX_MODULE = { ...src_exports, useTicker, useResolution, useLocalTime };
|
|
|
157637
157647
|
var EXTERNALS = {
|
|
157638
157648
|
"solid-js": solid_exports,
|
|
157639
157649
|
"solid-js/store": store_exports,
|
|
157640
|
-
"@higgsfield
|
|
157641
|
-
"@higgsfield
|
|
157650
|
+
"@higgsfield/higgsedit/jsx": JSX_MODULE,
|
|
157651
|
+
"@higgsfield/higgsedit/jsx/renderer": renderer_exports,
|
|
157642
157652
|
[INSPECT_MODULE]: SOURCE_VALUES
|
|
157643
157653
|
};
|
|
157644
157654
|
function mountComponent(component, world, mode = "live", options = {}) {
|
|
@@ -157664,7 +157674,7 @@ function mountComponent(component, world, mode = "live", options = {}) {
|
|
|
157664
157674
|
// ../../packages/reconciler/src/compile.ts
|
|
157665
157675
|
var import_standalone = __toESM(require_babel(), 1);
|
|
157666
157676
|
var import_babel_preset_solid = __toESM(require_babel_preset_solid(), 1);
|
|
157667
|
-
var RENDERER_MODULE = "@higgsfield
|
|
157677
|
+
var RENDERER_MODULE = "@higgsfield/higgsedit/jsx/renderer";
|
|
157668
157678
|
var SOURCE_FILE = /\.(tsx|ts|jsx|js)$/;
|
|
157669
157679
|
var CompileError = class extends Error {
|
|
157670
157680
|
file;
|
|
@@ -157702,7 +157712,7 @@ function svgContentPlugin() {
|
|
|
157702
157712
|
}
|
|
157703
157713
|
};
|
|
157704
157714
|
}
|
|
157705
|
-
function compileFile(file, code) {
|
|
157715
|
+
function compileFile(file, code, { sourceMaps = true } = {}) {
|
|
157706
157716
|
try {
|
|
157707
157717
|
const out = (0, import_standalone.transform)(code, {
|
|
157708
157718
|
filename: file,
|
|
@@ -157714,7 +157724,7 @@ function compileFile(file, code) {
|
|
|
157714
157724
|
plugins: [svgContentPlugin, inspectPlugin(file), "transform-modules-commonjs"],
|
|
157715
157725
|
// Stack traces from evaluated projects then point at the author's line, not the compiled one.
|
|
157716
157726
|
retainLines: true,
|
|
157717
|
-
sourceMaps: "inline",
|
|
157727
|
+
sourceMaps: sourceMaps ? "inline" : false,
|
|
157718
157728
|
sourceFileName: file
|
|
157719
157729
|
});
|
|
157720
157730
|
return out.code ?? "";
|
|
@@ -157818,12 +157828,12 @@ function inspectPlugin(file) {
|
|
|
157818
157828
|
}
|
|
157819
157829
|
|
|
157820
157830
|
// src/packages.ts
|
|
157821
|
-
import { statSync
|
|
157822
|
-
import { join
|
|
157823
|
-
var HOST_EXTERNALS = ["solid-js", "solid-js/*", "@higgsfield
|
|
157831
|
+
import { statSync } from "node:fs";
|
|
157832
|
+
import { join } from "node:path";
|
|
157833
|
+
var HOST_EXTERNALS = ["solid-js", "solid-js/*", "@higgsfield/higgsedit/jsx", "@higgsfield/higgsedit/jsx/*"];
|
|
157824
157834
|
var mtime = (path) => {
|
|
157825
157835
|
try {
|
|
157826
|
-
return
|
|
157836
|
+
return statSync(path).mtimeMs;
|
|
157827
157837
|
} catch {
|
|
157828
157838
|
return 0;
|
|
157829
157839
|
}
|
|
@@ -157833,7 +157843,7 @@ var parsed = /* @__PURE__ */ new Map();
|
|
|
157833
157843
|
function importsByFile(dir, files) {
|
|
157834
157844
|
const out = /* @__PURE__ */ new Map();
|
|
157835
157845
|
for (const [file, code] of Object.entries(files)) {
|
|
157836
|
-
const path =
|
|
157846
|
+
const path = join(dir, file);
|
|
157837
157847
|
let hit = parsed.get(path);
|
|
157838
157848
|
if (hit?.code !== code) parsed.set(path, hit = { code, imports: importsOf(file, code) });
|
|
157839
157849
|
for (const specifier of hit.imports) {
|
|
@@ -157847,7 +157857,7 @@ async function bundlePackages(dir) {
|
|
|
157847
157857
|
const imports = importsByFile(dir, readSources(dir));
|
|
157848
157858
|
if (!imports.size) return { errors: [] };
|
|
157849
157859
|
const specifiers = [...imports.keys()].toSorted();
|
|
157850
|
-
const key = [specifiers.join("\n"), mtime(
|
|
157860
|
+
const key = [specifiers.join("\n"), mtime(join(dir, "package.json")), mtime(join(dir, "node_modules"))].join("|");
|
|
157851
157861
|
const hit = cache.get(dir);
|
|
157852
157862
|
if (hit?.key === key) return hit.result;
|
|
157853
157863
|
let build;
|
|
@@ -157899,8 +157909,8 @@ function describe(failure, imports) {
|
|
|
157899
157909
|
// src/sync.ts
|
|
157900
157910
|
import { execFile } from "node:child_process";
|
|
157901
157911
|
import { createHash } from "node:crypto";
|
|
157902
|
-
import { mkdirSync, readFileSync
|
|
157903
|
-
import { join as
|
|
157912
|
+
import { mkdirSync, readFileSync, realpathSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
157913
|
+
import { join as join2 } from "node:path";
|
|
157904
157914
|
import { promisify } from "node:util";
|
|
157905
157915
|
|
|
157906
157916
|
// src/correlate.ts
|
|
@@ -158082,7 +158092,7 @@ function locate(dir, src) {
|
|
|
158082
158092
|
if (!file) throw new SyncError(`${src} is outside the project`, "source");
|
|
158083
158093
|
try {
|
|
158084
158094
|
const real = realpathSync(file);
|
|
158085
|
-
const st =
|
|
158095
|
+
const st = statSync2(real);
|
|
158086
158096
|
return { file: real, stamp: `${real}\0${st.size}\0${st.mtimeMs}` };
|
|
158087
158097
|
} catch {
|
|
158088
158098
|
throw new SyncError(`${src}: media file not found`, "source");
|
|
@@ -158117,17 +158127,17 @@ async function measureSync(dir, src, target) {
|
|
|
158117
158127
|
const a = locate(dir, src);
|
|
158118
158128
|
const b = locate(dir, target);
|
|
158119
158129
|
const key = createHash("sha256").update(JSON.stringify([CACHE_VERSION, a.stamp, b.stamp])).digest("hex").slice(0, 32);
|
|
158120
|
-
const file =
|
|
158130
|
+
const file = join2(dir, ".higgsedit-cache", "sync", `${key}.json`);
|
|
158121
158131
|
let cached = true;
|
|
158122
158132
|
let result;
|
|
158123
158133
|
try {
|
|
158124
|
-
result = JSON.parse(
|
|
158134
|
+
result = JSON.parse(readFileSync(file, "utf8"));
|
|
158125
158135
|
} catch {
|
|
158126
158136
|
cached = false;
|
|
158127
158137
|
let pending = inflight.get(key);
|
|
158128
158138
|
if (!pending) {
|
|
158129
158139
|
pending = measure({ file: a.file, src }, { file: b.file, src: target }).then((r) => {
|
|
158130
|
-
mkdirSync(
|
|
158140
|
+
mkdirSync(join2(dir, ".higgsedit-cache", "sync"), { recursive: true });
|
|
158131
158141
|
writeFileSync(file, JSON.stringify(r));
|
|
158132
158142
|
return r;
|
|
158133
158143
|
});
|
|
@@ -158175,11 +158185,6 @@ export {
|
|
|
158175
158185
|
CompileError,
|
|
158176
158186
|
compileFile,
|
|
158177
158187
|
compileProject,
|
|
158178
|
-
sourceFiles,
|
|
158179
|
-
fontFiles,
|
|
158180
|
-
readSources,
|
|
158181
|
-
inside,
|
|
158182
|
-
assertProject,
|
|
158183
158188
|
bundlePackages,
|
|
158184
158189
|
SyncError,
|
|
158185
158190
|
measureSync,
|